deskcord 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/dist/deskcord.min.js +107 -70
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- (function(){"use strict";var qn,ut,vc,qe,wc,bc,Ki,_c,Yi,Xi,Ji,xc,Wn={},Ec=[],gm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nr=Array.isArray;function Pe(t,e){for(var n in e)t[n]=e[n];return t}function Zi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function nt(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?qn.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Hn(t,s,r,i,null)}function Hn(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++vc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function Sc(){return{current:null}}function Ct(t){return t.children}function oe(t,e){this.props=t,this.context=e}function fn(t,e){if(e==null)return t.__?fn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fn(t):null}function Ac(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Ac(t)}}function Qi(t){(!t.__d&&(t.__d=!0)&&qe.push(t)&&!Br.__r++||wc!==ut.debounceRendering)&&((wc=ut.debounceRendering)||bc)(Br)}function Br(){var t,e,n,r,i,o,s,a;for(qe.sort(Ki);t=qe.shift();)t.__d&&(e=qe.length,r=void 0,o=(i=(n=t).__v).__e,s=[],a=[],n.__P&&((r=Pe({},i)).__v=i.__v+1,ut.vnode&&ut.vnode(r),to(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??fn(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Oc(s,r,a),r.__e!=o&&Ac(r)),qe.length>e&&qe.sort(Ki));Br.__r=0}function Tc(t,e,n,r,i,o,s,a,l,d,c){var h,m,y,w,b,P,x=r&&r.__k||Ec,v=e.length;for(l=vm(n,e,x,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?Wn:x[y.__i]||Wn,y.__i=h,P=to(t,y,m,i,o,s,a,l,d,c),w=y.__e,y.ref&&m.ref!=y.ref&&(m.ref&&eo(m.ref,null,y),c.push(y.ref,y.__c||w,y)),b==null&&w!=null&&(b=w),4&y.__u||m.__k===y.__k?l=Pc(y,l,t):typeof y.type=="function"&&P!==void 0?l=P:w&&(l=w.nextSibling),y.__u&=-7);return n.__e=b,l}function vm(t,e,n,r,i){var o,s,a,l,d,c=n.length,h=c,m=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+m,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Hn(null,s,null,null,null):Nr(s)?Hn(Ct,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Hn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=wm(s,n,l,h))!==-1&&(h--,(a=n[d])&&(a.__u|=2)),a==null||a.__v===null?(d==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?m--:d==l+1?m++:(d>l?m--:m++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<c;o++)(a=n[o])!=null&&!(2&a.__u)&&(a.__e==r&&(r=fn(a)),Ic(a,a));return r}function Pc(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=Pc(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=fn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ke(t,e){return e=e||[],t==null||typeof t=="boolean"||(Nr(t)?t.some(function(n){ke(n,e)}):e.push(t)),e}function wm(t,e,n,r){var i,o,s=t.key,a=t.type,l=e[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((l=e[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i--}if(o<e.length){if((l=e[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o++}}return-1}function kc(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||gm.test(e)?n:n+"px"}function Dr(t,e,n,r,i){var o;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||kc(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||kc(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(_c,"$1")),e=e.toLowerCase()in t||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Yi,t.addEventListener(e,o?Ji:Xi,o)):t.removeEventListener(e,o?Ji:Xi,o);else{if(i=="http://www.w3.org/2000/svg")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!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Cc(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Yi++;else if(e.t<n.u)return;return n(ut.event?ut.event(e):e)}}}function to(t,e,n,r,i,o,s,a,l,d){var c,h,m,y,w,b,P,x,v,E,M,I,F,D,q,L,Y,Z=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=ut.__b)&&c(e);t:if(typeof Z=="function")try{if(x=e.props,v="prototype"in Z&&Z.prototype.render,E=(c=Z.contextType)&&r[c.__c],M=c?E?E.props.value:c.__:r,n.__c?P=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(x,M):(e.__c=h=new oe(x,M),h.constructor=Z,h.render=_m),E&&E.sub(h),h.props=x,h.state||(h.state={}),h.context=M,h.__n=r,m=h.__d=!0,h.__h=[],h._sb=[]),v&&h.__s==null&&(h.__s=h.state),v&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Pe({},h.__s)),Pe(h.__s,Z.getDerivedStateFromProps(x,h.__s))),y=h.props,w=h.state,h.__v=e,m)v&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),v&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(v&&Z.getDerivedStateFromProps==null&&x!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(x,M),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(x,h.__s,M)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(et){et&&(et.__=e)}),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[],h.__h.length&&s.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(x,h.__s,M),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,w,b)})}if(h.context=M,h.props=x,h.__P=t,h.__e=!1,F=ut.__r,D=0,v){for(h.state=h.__s,h.__d=!1,F&&F(e),c=h.render(h.props,h.state,h.context),q=0;q<h._sb.length;q++)h.__h.push(h._sb[q]);h._sb=[]}else do h.__d=!1,F&&F(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++D<25);h.state=h.__s,h.getChildContext!=null&&(r=Pe(Pe({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(b=h.getSnapshotBeforeUpdate(y,w)),a=Tc(t,Nr(L=c!=null&&c.type===Ct&&c.key==null?c.props.children:c)?L:[L],e,n,r,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),P&&(h.__E=h.__=null)}catch(et){if(e.__v=null,l||o!=null)if(et.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Y=o.length;Y--;)Zi(o[Y]);else e.__e=n.__e,e.__k=n.__k;ut.__e(et,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=bm(n.__e,e,n,r,i,o,s,l,d);return(c=ut.diffed)&&c(e),128&e.__u?void 0:a}function Oc(t,e,n){for(var r=0;r<n.length;r++)eo(n[r],n[++r],n[++r]);ut.__c&&ut.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){ut.__e(o,i.__v)}})}function bm(t,e,n,r,i,o,s,a,l){var d,c,h,m,y,w,b,P=n.props,x=e.props,v=e.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(v==null)return document.createTextNode(x);t=document.createElementNS(i,v,x.is&&x),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)P===x||a&&t.data===x||(t.data=x);else{if(o=o&&qn.call(t.childNodes),P=n.props||Wn,!a&&o!=null)for(P={},d=0;d<t.attributes.length;d++)P[(y=t.attributes[d]).name]=y.value;for(d in P)if(y=P[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;Dr(t,d,null,y,i)}}for(d in x)y=x[d],d=="children"?m=y:d=="dangerouslySetInnerHTML"?c=y:d=="value"?w=y:d=="checked"?b=y:a&&typeof y!="function"||P[d]===y||Dr(t,d,y,P[d],i);if(c)a||h&&(c.__html===h.__html||c.__html===t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),Tc(t,Nr(m)?m:[m],e,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&fn(n,0),a,l),o!=null)for(d=o.length;d--;)Zi(o[d]);a||(d="value",v=="progress"&&w==null?t.removeAttribute("value"):w!==void 0&&(w!==t[d]||v=="progress"&&!w||v=="option"&&w!==P[d])&&Dr(t,d,w,P[d],i),d="checked",b!==void 0&&b!==t[d]&&Dr(t,d,b,P[d],i))}return t}function eo(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){ut.__e(i,n)}}function Ic(t,e,n){var r,i;if(ut.unmount&&ut.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||eo(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ut.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Ic(r[i],e,n||typeof t.type!="function");n||Zi(t.__e),t.__c=t.__=t.__e=void 0}function _m(t,e,n){return this.constructor(t,n)}function Gn(t,e,n){var r,i,o,s;e==document&&(e=document.documentElement),ut.__&&ut.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],s=[],to(e,t=(!r&&n||e).__k=nt(Ct,null,[t]),i||Wn,Wn,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?qn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Oc(o,t,s)}function Rc(t,e){Gn(t,e,Rc)}function xm(t,e,n){var r,i,o,s,a=Pe({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!==void 0?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?qn.call(arguments,2):n),Hn(t.type,a,r||t.key,i||t.ref,null)}function te(t,e){var n={__c:e="__cC"+xc++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[e]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Qi(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}qn=Ec.slice,ut={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},vc=0,oe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Pe({},this.state),typeof t=="function"&&(t=t(Pe({},n),this.props)),t&&Pe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Qi(this))},oe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Qi(this))},oe.prototype.render=Ct,qe=[],bc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ki=function(t,e){return t.__v.__b-e.__v.__b},Br.__r=0,_c=/(PointerCapture)$|Capture$/i,Yi=0,Xi=Cc(!1),Ji=Cc(!0),xc=0;var Em=0;function O(t,e,n,r,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Em,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return ut.vnode&&ut.vnode(d),d}var Ce,St,no,Mc,dn=0,Nc=[],Rt=ut,Bc=Rt.__b,Dc=Rt.__r,Fc=Rt.diffed,Lc=Rt.__c,jc=Rt.unmount,$c=Rt.__;function We(t,e){Rt.__h&&Rt.__h(St,t,dn||e),dn=0;var n=St.__H||(St.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function bt(t){return dn=1,Kn(Uc,t)}function Kn(t,e,n){var r=We(Ce++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Uc(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,a);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=St,!St.u)){var i=function(a,l,d){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(m){return!!m.__c});if(c.every(function(m){return!m.__N}))return!o||o.call(this,a,l,d);var h=r.__c.props!==a;return c.forEach(function(m){if(m.__N){var y=m.__[0];m.__=m.__N,m.__N=void 0,y!==m.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};St.u=!0;var o=St.shouldComponentUpdate,s=St.componentWillUpdate;St.componentWillUpdate=function(a,l,d){if(this.__e){var c=o;o=void 0,i(a,l,d),o=c}s&&s.call(this,a,l,d)},St.shouldComponentUpdate=i}return r.__N||r.__}function mt(t,e){var n=We(Ce++,3);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,St.__H.__h.push(n))}function Oe(t,e){var n=We(Ce++,4);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,St.__h.push(n))}function ot(t){return dn=5,Ht(function(){return{current:t}},[])}function Yn(t,e,n){dn=6,Oe(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function Ht(t,e){var n=We(Ce++,7);return oo(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function kt(t,e){return dn=8,Ht(function(){return t},e)}function $t(t){var e=St.context[t.__c],n=We(Ce++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(St)),e.props.value):t.__}function ro(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function Sm(t){var e=We(Ce++,10),n=bt();return e.__=t,St.componentDidCatch||(St.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hn(){var t=We(Ce++,11);if(!t.__){for(var e=St.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function Am(){for(var t;t=Nc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Fr),t.__H.__h.forEach(io),t.__H.__h=[]}catch(e){t.__H.__h=[],Rt.__e(e,t.__v)}}Rt.__b=function(t){St=null,Bc&&Bc(t)},Rt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),$c&&$c(t,e)},Rt.__r=function(t){Dc&&Dc(t),Ce=0;var e=(St=t.__c).__H;e&&(no===St?(e.__h=[],St.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(Fr),e.__h.forEach(io),e.__h=[],Ce=0)),no=St},Rt.diffed=function(t){Fc&&Fc(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Nc.push(e)!==1&&Mc===Rt.requestAnimationFrame||((Mc=Rt.requestAnimationFrame)||Tm)(Am)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),no=St=null},Rt.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Fr),n.__h=n.__h.filter(function(r){return!r.__||io(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Rt.__e(r,n.__v)}}),Lc&&Lc(t,e)},Rt.unmount=function(t){jc&&jc(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Fr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Vc=typeof requestAnimationFrame=="function";function Tm(t){var e,n=function(){clearTimeout(r),Vc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Vc&&(e=requestAnimationFrame(n))}function Fr(t){var e=St,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),St=e}function io(t){var e=St;t.__c=t.__(),St=e}function oo(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Uc(t,e){return typeof e=="function"?e(t):e}function zc(t,e){for(var n in e)t[n]=e[n];return t}function so(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ao(t,e){var n=e(),r=bt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Oe(function(){i.__=n,i.u=e,co(i)&&o({t:i})},[t,n,e]),mt(function(){return co(i)&&o({t:i}),t(function(){co(i)&&o({t:i})})},[t]),n}function co(t){var e,n,r=t.u,i=t.__;try{var o=r();return!((e=i)===(n=o)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}function lo(t){t()}function uo(t){return t}function fo(){return[!1,lo]}var Xn=Oe;function Lr(t,e){this.props=t,this.context=e}function qc(t,e){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,i)||!s:so(this.props,i)}function r(i){return this.shouldComponentUpdate=n,nt(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Lr.prototype=new oe).isPureReactComponent=!0,Lr.prototype.shouldComponentUpdate=function(t,e){return so(this.props,t)||so(this.state,e)};var Wc=ut.__b;ut.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Wc&&Wc(t)};var Pm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function je(t){function e(n){var r=zc({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=Pm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Hc=function(t,e){return t==null?null:ke(ke(t).map(e))},ho={map:Hc,forEach:Hc,count:function(t){return t?ke(t).length:0},only:function(t){var e=ke(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:ke},km=ut.__e;ut.__e=function(t,e,n,r){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}km(t,e,n,r)};var Gc=ut.unmount;function Kc(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=zc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Kc(r,e,n)})),t}function Yc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Yc(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Jn(){this.__u=0,this.o=null,this.__b=null}function Xc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Jc(t){var e,n,r;function i(o){if(e||(e=t()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw e;return nt(n,o)}return i.displayName="Lazy",i.__f=!0,i}function pn(){this.i=null,this.l=null}ut.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Gc&&Gc(t)},(Jn.prototype=new oe).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Xc(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Yc(l,l.__c.__P,l.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},Jn.prototype.componentWillUnmount=function(){this.o=[]},Jn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Kc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&nt(Ct,null,t.fallback);return i&&(i.__u&=-33),[nt(Ct,null,e.__a?null:t.children),i]};var Zc=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}};function Cm(t){return this.getChildContext=function(){return t.context},t.children}function Om(t){var e=this,n=t.h;e.componentWillUnmount=function(){Gn(null,e.v),e.v=null,e.h=null},e.h&&e.h!==n&&e.componentWillUnmount(),e.v||(e.h=n,e.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),e.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.h.insertBefore(r,i)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.h.removeChild(r)}}),Gn(nt(Cm,{context:e.context},t.__v),e.v)}function po(t,e){var n=nt(Om,{__v:t,h:e});return n.containerInfo=e,n}(pn.prototype=new oe).__a=function(t){var e=this,n=Xc(e.__v),r=e.l.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Zc(e,t,r)):i()};n?n(o):o()}},pn.prototype.render=function(t){this.i=null,this.l=new Map;var e=ke(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},pn.prototype.componentDidUpdate=pn.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Zc(t,n,e)})};var Qc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Im=/^(?: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]/,Rm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Mm=/[A-Z0-9]/g,Nm=typeof document<"u",Bm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function tl(t,e,n){return e.__k==null&&(e.textContent=""),Gn(t,e),typeof n=="function"&&n(),t?t.__c:null}function el(t,e,n){return Rc(t,e),typeof n=="function"&&n(),t?t.__c:null}oe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(oe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var nl=ut.event;function Dm(){}function Fm(){return this.cancelBubble}function Lm(){return this.defaultPrevented}ut.event=function(t){return nl&&(t=nl(t)),t.persist=Dm,t.isPropagationStopped=Fm,t.isDefaultPrevented=Lm,t.nativeEvent=t};var mo,jm={enumerable:!1,configurable:!0,get:function(){return this.class}},rl=ut.vnode;ut.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Nm&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Bm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Rm.test(s)&&(s=l):l=s="oninput":o&&Im.test(s)?s=s.replace(Mm,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",jm)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=Qc,rl&&rl(t)};var il=ut.__r;ut.__r=function(t){il&&il(t),mo=t.__c};var ol=ut.diffed;ut.diffed=function(t){ol&&ol(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),mo=null};var sl={ReactCurrentDispatcher:{current:{readContext:function(t){return mo.__n[t.__c].props.value},useCallback:kt,useContext:$t,useDebugValue:ro,useDeferredValue:uo,useEffect:mt,useId:hn,useImperativeHandle:Yn,useInsertionEffect:Xn,useLayoutEffect:Oe,useMemo:Ht,useReducer:Kn,useRef:ot,useState:bt,useSyncExternalStore:ao,useTransition:fo}}},al="18.3.1";function cl(t){return nt.bind(null,t)}function mn(t){return!!t&&t.$$typeof===Qc}function ll(t){return mn(t)&&t.type===Ct}function ul(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function yo(t){return mn(t)?xm.apply(null,arguments):t}function fl(t){return!!t.__k&&(Gn(null,t),!0)}function dl(t){return t&&(t.base||t.nodeType===1&&t)||null}var hl=function(t,e){return t(e)},pl=function(t,e){return t(e)},ml=Ct,yl=mn,jr={useState:bt,useId:hn,useReducer:Kn,useEffect:mt,useLayoutEffect:Oe,useInsertionEffect:Xn,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:ao,startTransition:lo,useRef:ot,useImperativeHandle:Yn,useMemo:Ht,useCallback:kt,useContext:$t,useDebugValue:ro,version:"18.3.1",Children:ho,render:tl,hydrate:el,unmountComponentAtNode:fl,createPortal:po,createElement:nt,createContext:te,createFactory:cl,cloneElement:yo,createRef:Sc,Fragment:Ct,isValidElement:mn,isElement:yl,isFragment:ll,isMemo:ul,findDOMNode:dl,Component:oe,PureComponent:Lr,memo:qc,forwardRef:je,flushSync:pl,unstable_batchedUpdates:hl,StrictMode:ml,Suspense:Jn,SuspenseList:pn,lazy:Jc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl};const $m=Object.freeze(Object.defineProperty({__proto__:null,Children:ho,Component:oe,Fragment:Ct,PureComponent:Lr,StrictMode:ml,Suspense:Jn,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl,cloneElement:yo,createContext:te,createElement:nt,createFactory:cl,createPortal:po,createRef:Sc,default:jr,findDOMNode:dl,flushSync:pl,forwardRef:je,hydrate:el,isElement:yl,isFragment:ll,isMemo:ul,isValidElement:mn,lazy:Jc,memo:qc,render:tl,startTransition:lo,unmountComponentAtNode:fl,unstable_batchedUpdates:hl,useCallback:kt,useContext:$t,useDebugValue:ro,useDeferredValue:uo,useEffect:mt,useErrorBoundary:Sm,useId:hn,useImperativeHandle:Yn,useInsertionEffect:Xn,useLayoutEffect:Oe,useMemo:Ht,useReducer:Kn,useRef:ot,useState:bt,useSyncExternalStore:ao,useTransition:fo,version:al},Symbol.toStringTag,{value:"Module"})),Vm='*,: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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}#deskcord-root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}#deskcord-root .dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}#deskcord-root *{border-color:hsl(var(--border))}#deskcord-root body{background-color:hsl(var(--background))}#deskcord-root body{color:hsl(var(--foreground))}*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.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}.inset-x-px{left:1px;right:1px}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.bottom-px{bottom:1px}.end-0{inset-inline-end:0px}.left-0{left:0}.right-0{right:0}.right-1{right:.25rem}.start-0{inset-inline-start:0px}.top-0{top:0}.top-1{top:.25rem}.top-full{top:100%}.z-20{z-index:20}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-\\[3px\\]{margin-top:3px;margin-bottom:3px}.\\!me-1{margin-inline-end:.25rem!important}.\\!me-1\\.5{margin-inline-end:.375rem!important}.\\!ms-auto{margin-inline-start:auto!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.me-11{margin-inline-end:2.75rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.ms-0\\.5{margin-inline-start:.125rem}.ms-2{margin-inline-start:.5rem}.ms-auto{margin-inline-start:auto}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\\[32px\\]{width:32px;height:32px}.\\!h-2\\.5{height:.625rem!important}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-32{height:8rem}.h-8{height:2rem}.h-full{height:100%}.max-h-40{max-height:10rem}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[200px\\]{max-height:200px}.\\!w-2\\.5{width:.625rem!important}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[40px\\]{width:40px}.w-\\[calc\\(100\\%-2rem\\)\\]{width:calc(100% - 2rem)}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-\\[100px\\]{max-width:100px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-\\[3px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(3px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3px * var(--tw-space-y-reverse))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-b-md{border-bottom-right-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.\\!border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity))!important}.border-current{border-color:currentColor}.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-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-gray-200{--tw-border-opacity: 1;border-top-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.\\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.bg-\\[\\#5d6fb3\\]{--tw-bg-opacity: 1;background-color:rgb(93 111 179 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / 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-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-80{--tw-bg-opacity: .8}.fill-black{fill:#000}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-12{padding-bottom:3rem}.pr-3{padding-right:.75rem}.ps-11{padding-inline-start:2.75rem}.ps-4{padding-inline-start:1rem}.text-center{text-align:center}.text-end{text-align:end}.align-bottom{vertical-align:bottom}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-lg\\/5{font-size:1.125rem;line-height:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/3{font-size:.875rem;line-height:.75rem}.text-xs,.text-xs\\/4{font-size:.75rem;line-height:1rem}.\\!font-medium{font-weight:500!important}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.italic{font-style:italic}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-500{transition-duration:.5s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-150{animation-duration:.15s}.duration-500{animation-duration:.5s}.running{animation-play-state:running}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:text-white:disabled{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.selected .hs-combo-box-selected\\:block,.selected.hs-combo-box-selected\\:block{display:block}.complete .hs-file-upload-complete\\:bg-green-600,.complete.hs-file-upload-complete\\:bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.dark\\:\\!border-neutral-700:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(64 64 64 / var(--tw-border-opacity))!important}.dark\\:border-neutral-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity))}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity))}.dark\\:\\!bg-neutral-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(38 38 38 / var(--tw-bg-opacity))!important}.dark\\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.dark\\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.dark\\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\\:fill-neutral-200:is(.dark *){fill:#e5e5e5}.dark\\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:placeholder-neutral-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity))}.dark\\:placeholder-neutral-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity))}.dark\\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity))}.dark\\:hover\\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:hover\\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:focus\\:bg-neutral-800:focus:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}}',Um=".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}@media screen and (min-width:800px){.yarl__slide_wrapper:not(.yarl__slide_wrapper_interactive) .yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translate(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}",go=te({});function vo(t){const e=ot(null);return e.current===null&&(e.current=t()),e.current}const wo=typeof window<"u",gl=wo?Oe:mt,$r=te(null);function bo(t,e){t.indexOf(e)===-1&&t.push(e)}function _o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ie=(t,e,n)=>n>e?e:n<t?t:n;let Vr=()=>{};const Re={},vl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function wl(t){return typeof t=="object"&&t!==null}const bl=t=>/^0[^.\s]+$/u.test(t);function xo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ce=t=>t,zm=(t,e)=>n=>e(t(n)),Zn=(...t)=>t.reduce(zm),Qn=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class Eo{constructor(){this.subscriptions=[]}add(e){return bo(this.subscriptions,e),()=>_o(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=t=>t*1e3,be=t=>t/1e3;function _l(t,e){return e?t*(1e3/e):0}const xl=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,qm=1e-7,Wm=12;function Hm(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=xl(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>qm&&++a<Wm);return s}function tr(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>Hm(o,0,1,t,n);return o=>o===0||o===1?o:xl(i(o),e,r)}const El=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Sl=t=>e=>1-t(1-e),Al=tr(.33,1.53,.69,.99),So=Sl(Al),Tl=El(So),Pl=t=>(t*=2)<1?.5*So(t):.5*(2-Math.pow(2,-10*(t-1))),Ao=t=>1-Math.sin(Math.acos(t)),kl=Sl(Ao),Cl=El(Ao),Gm=tr(.42,0,1,1),Km=tr(0,0,.58,1),Ol=tr(.42,0,.58,1),Ym=t=>Array.isArray(t)&&typeof t[0]!="number",Il=t=>Array.isArray(t)&&typeof t[0]=="number",Rl={linear:ce,easeIn:Gm,easeInOut:Ol,easeOut:Km,circIn:Ao,circInOut:Cl,circOut:kl,backIn:So,backInOut:Tl,backOut:Al,anticipate:Pl},Xm=t=>typeof t=="string",Ml=t=>{if(Il(t)){Vr(t.length===4);const[e,n,r,i]=t;return tr(e,n,r,i)}else if(Xm(t))return Vr(Rl[t]!==void 0),Rl[t];return t},Ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Nl={value:null,addProjectionMetrics:null};function Jm(t,e){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function d(h){s.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,m=!1,y=!1)=>{const b=y&&i?n:r;return m&&s.add(h),b.has(h)||b.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(a=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),e&&Nl.value&&Nl.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const Zm=40;function Bl(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ur.reduce((E,M)=>(E[M]=Jm(o,e?M:void 0),E),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:c,update:h,preRender:m,render:y,postRender:w}=s,b=()=>{const E=Re.useManualTiming?i.timestamp:performance.now();n=!1,Re.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Zm),1)),i.timestamp=E,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),c.process(i),h.process(i),m.process(i),y.process(i),w.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(b))},P=()=>{n=!0,r=!0,i.isProcessing||t(b)};return{schedule:Ur.reduce((E,M)=>{const I=s[M];return E[M]=(F,D=!1,q=!1)=>(n||P(),I.schedule(F,D,q)),E},{}),cancel:E=>{for(let M=0;M<Ur.length;M++)s[Ur[M]].cancel(E)},state:i,steps:s}}const{schedule:Ot,cancel:$e,state:Xt,steps:To}=Bl(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0);let zr;function Qm(){zr=void 0}const re={now:()=>(zr===void 0&&re.set(Xt.isProcessing||Re.useManualTiming?Xt.timestamp:performance.now()),zr),set:t=>{zr=t,queueMicrotask(Qm)}},Dl=t=>e=>typeof e=="string"&&e.startsWith(t),Po=Dl("--"),ty=Dl("var(--"),ko=t=>ty(t)?ey.test(t.split("/*")[0].trim()):!1,ey=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yn={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},er={...yn,transform:t=>Ie(0,1,t)},qr={...yn,default:1},nr=t=>Math.round(t*1e5)/1e5,Co=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ny(t){return t==null}const ry=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oo=(t,e)=>n=>!!(typeof n=="string"&&ry.test(n)&&n.startsWith(t)||e&&!ny(n)&&Object.prototype.hasOwnProperty.call(n,e)),Fl=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Co);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},iy=t=>Ie(0,255,t),Io={...yn,transform:t=>Math.round(iy(t))},He={test:Oo("rgb","red"),parse:Fl("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Io.transform(t)+", "+Io.transform(e)+", "+Io.transform(n)+", "+nr(er.transform(r))+")"};function oy(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ro={test:Oo("#"),parse:oy,transform:He.transform},rr=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ve=rr("deg"),_e=rr("%"),it=rr("px"),sy=rr("vh"),ay=rr("vw"),Ll={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},gn={test:Oo("hsl","hue"),parse:Fl("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+_e.transform(nr(e))+", "+_e.transform(nr(n))+", "+nr(er.transform(r))+")"},Vt={test:t=>He.test(t)||Ro.test(t)||gn.test(t),parse:t=>He.test(t)?He.parse(t):gn.test(t)?gn.parse(t):Ro.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?He.transform(t):gn.transform(t),getAnimatableNone:t=>{const e=Vt.parse(t);return e.alpha=0,Vt.transform(e)}},cy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ly(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Co))==null?void 0:e.length)||0)+(((n=t.match(cy))==null?void 0:n.length)||0)>0}const jl="number",$l="color",uy="var",fy="var(",Vl="${}",dy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ir(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(dy,l=>(Vt.test(l)?(r.color.push(o),i.push($l),n.push(Vt.parse(l))):l.startsWith(fy)?(r.var.push(o),i.push(uy),n.push(l)):(r.number.push(o),i.push(jl),n.push(parseFloat(l))),++o,Vl)).split(Vl);return{values:n,split:a,indexes:r,types:i}}function Ul(t){return ir(t).values}function zl(t){const{split:e,types:n}=ir(t),r=e.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=e[s],i[s]!==void 0){const a=n[s];a===jl?o+=nr(i[s]):a===$l?o+=Vt.transform(i[s]):o+=i[s]}return o}}const hy=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function py(t){const e=Ul(t);return zl(t)(e.map(hy))}const Ue={test:ly,parse:Ul,createTransformer:zl,getAnimatableNone:py};function Mo(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function my({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Mo(l,a,t+1/3),o=Mo(l,a,t),s=Mo(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Wr(t,e){return n=>n>0?e:t}const Mt=(t,e,n)=>t+(e-t)*n,No=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},yy=[Ro,He,gn],gy=t=>yy.find(e=>e.test(t));function ql(t){const e=gy(t);if(!e)return!1;let n=e.parse(t);return e===gn&&(n=my(n)),n}const Wl=(t,e)=>{const n=ql(t),r=ql(e);if(!n||!r)return Wr(t,e);const i={...n};return o=>(i.red=No(n.red,r.red,o),i.green=No(n.green,r.green,o),i.blue=No(n.blue,r.blue,o),i.alpha=Mt(n.alpha,r.alpha,o),He.transform(i))},Bo=new Set(["none","hidden"]);function vy(t,e){return Bo.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wy(t,e){return n=>Mt(t,e,n)}function Do(t){return typeof t=="number"?wy:typeof t=="string"?ko(t)?Wr:Vt.test(t)?Wl:xy:Array.isArray(t)?Hl:typeof t=="object"?Vt.test(t)?Wl:by:Wr}function Hl(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>Do(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function by(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Do(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function _y(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],s=t.indexes[o][r[o]],a=t.values[s]??0;n[i]=a,r[o]++}return n}const xy=(t,e)=>{const n=Ue.createTransformer(e),r=ir(t),i=ir(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Bo.has(t)&&!i.values.length||Bo.has(e)&&!r.values.length?vy(t,e):Zn(Hl(_y(r,i),i.values),n):Wr(t,e)};function Gl(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Mt(t,e,n):Do(t)(t,e)}const Ey=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Ot.update(e,n),stop:()=>$e(e),now:()=>Xt.isProcessing?Xt.timestamp:re.now()}},Kl=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Hr=2e4;function Fo(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Hr;)e+=n,r=t.next(e);return e>=Hr?1/0:e}function Sy(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(Fo(r),Hr);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:be(i)}}const Ay=5;function Yl(t,e,n){const r=Math.max(e-Ay,0);return _l(n-t(r),e-r)}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Lo=.001;function Ty({duration:t=Nt.duration,bounce:e=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let i,o,s=1-e;s=Ie(Nt.minDamping,Nt.maxDamping,s),t=Ie(Nt.minDuration,Nt.maxDuration,be(t)),s<1?(i=d=>{const c=d*s,h=c*t,m=c-n,y=jo(d,s),w=Math.exp(-h);return Lo-m/y*w},o=d=>{const h=d*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(d,2)*t,w=Math.exp(-h),b=jo(Math.pow(d,2),s);return(-i(d)+Lo>0?-1:1)*((m-y)*w)/b}):(i=d=>{const c=Math.exp(-d*t),h=(d-n)*t+1;return-Lo+c*h},o=d=>{const c=Math.exp(-d*t),h=(n-d)*(t*t);return c*h});const a=5/t,l=ky(i,o,a);if(t=we(t),isNaN(l))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:t};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:t}}}const Py=12;function ky(t,e,n){let r=n;for(let i=1;i<Py;i++)r=r-t(r)/e(r);return r}function jo(t,e){return t*Math.sqrt(1-e*e)}const Cy=["duration","bounce"],Oy=["stiffness","damping","mass"];function Xl(t,e){return e.some(n=>t[n]!==void 0)}function Iy(t){let e={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...t};if(!Xl(t,Oy)&&Xl(t,Cy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ie(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Nt.mass,stiffness:i,damping:o}}else{const n=Ty(t);e={...e,...n,mass:Nt.mass},e.isResolvedFromDuration=!0}return e}function Gr(t=Nt.visualDuration,e=Nt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:d,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=Iy({...n,velocity:-be(n.velocity||0)}),w=m||0,b=d/(2*Math.sqrt(l*c)),P=s-o,x=be(Math.sqrt(l/c)),v=Math.abs(P)<5;r||(r=v?Nt.restSpeed.granular:Nt.restSpeed.default),i||(i=v?Nt.restDelta.granular:Nt.restDelta.default);let E;if(b<1){const I=jo(x,b);E=F=>{const D=Math.exp(-b*x*F);return s-D*((w+b*x*P)/I*Math.sin(I*F)+P*Math.cos(I*F))}}else if(b===1)E=I=>s-Math.exp(-x*I)*(P+(w+x*P)*I);else{const I=x*Math.sqrt(b*b-1);E=F=>{const D=Math.exp(-b*x*F),q=Math.min(I*F,300);return s-D*((w+b*x*P)*Math.sinh(q)+I*P*Math.cosh(q))/I}}const M={calculatedDuration:y&&h||null,next:I=>{const F=E(I);if(y)a.done=I>=h;else{let D=I===0?w:0;b<1&&(D=I===0?we(w):Yl(E,I,F));const q=Math.abs(D)<=r,L=Math.abs(s-F)<=i;a.done=q&&L}return a.value=a.done?s:F,a},toString:()=>{const I=Math.min(Fo(M),Hr),F=Kl(D=>M.next(I*D).value,I,30);return I+"ms "+F},toTransition:()=>{}};return M}Gr.applyToOptions=t=>{const e=Sy(t,100,Gr);return t.ease=e.ease,t.duration=we(e.duration),t.type="keyframes",t};function $o({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=q=>a!==void 0&&q<a||l!==void 0&&q>l,w=q=>a===void 0?l:l===void 0||Math.abs(a-q)<Math.abs(l-q)?a:l;let b=n*e;const P=h+b,x=s===void 0?P:s(P);x!==P&&(b=x-h);const v=q=>-b*Math.exp(-q/r),E=q=>x+v(q),M=q=>{const L=v(q),Y=E(q);m.done=Math.abs(L)<=d,m.value=m.done?x:Y};let I,F;const D=q=>{y(m.value)&&(I=q,F=Gr({keyframes:[m.value,w(m.value)],velocity:Yl(E,q,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:c}))};return D(0),{calculatedDuration:null,next:q=>{let L=!1;return!F&&I===void 0&&(L=!0,M(q),D(q)),I!==void 0&&q>=I?F.next(q-I):(!L&&M(q),m)}}}function Ry(t,e,n){const r=[],i=n||Re.mix||Gl,o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ce:e;a=Zn(l,a)}r.push(a)}return r}function My(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Vr(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ry(e,r,i),l=a.length,d=c=>{if(s&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const m=Qn(t[h],t[h+1],c);return a[h](m)};return n?c=>d(Ie(t[0],t[o-1],c)):d}function Ny(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Qn(0,e,r);t.push(Mt(n,1,i))}}function By(t){const e=[0];return Ny(e,t.length-1),e}function Dy(t,e){return t.map(n=>n*e)}function Fy(t,e){return t.map(()=>e||Ol).splice(0,t.length-1)}function or({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Ym(r)?r.map(Ml):Ml(r),o={done:!1,value:e[0]},s=Dy(n&&n.length===e.length?n:By(e),t),a=My(s,e,{ease:Array.isArray(i)?i:Fy(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ly=t=>t!==null;function Vo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Ly),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const jy={decay:$o,inertia:$o,tween:or,keyframes:or,spring:Gr};function Jl(t){typeof t.type=="string"&&(t.type=jy[t.type])}class Uo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const $y=t=>t/100;class zo extends Uo{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==re.now()&&this.tick(re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Jl(e);const{type:n=or,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e;let{keyframes:a}=e;const l=n||or;l!==or&&typeof a[0]!="number"&&(this.mixKeyframes=Zn($y,Gl(a[0],a[1])),a=[0,100]);const d=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Fo(d));const{calculatedDuration:c}=d;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:c,repeat:h,repeatType:m,repeatDelay:y,type:w,onUpdate:b,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,M=r;if(h){const q=Math.min(this.currentTime,i)/a;let L=Math.floor(q),Y=q%1;!Y&&q>=1&&(Y=1),Y===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(m==="reverse"?(Y=1-Y,y&&(Y-=y/a)):m==="mirror"&&(M=s)),E=Ie(0,1,Y)*a}const I=v?{done:!1,value:c[0]}:M.next(E);o&&(I.value=o(I.value));let{done:F}=I;!v&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return D&&w!==$o&&(I.value=Vo(c,this.options,P,this.speed)),b&&b(I.value),D&&this.finish(),I}then(e,n){return this.finished.then(e,n)}get duration(){return be(this.calculatedDuration)}get time(){return be(this.currentTime)}set time(e){var n;e=we(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(re.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=be(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=Ey,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(re.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Vy(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ge=t=>t*180/Math.PI,qo=t=>{const e=Ge(Math.atan2(t[1],t[0]));return Wo(e)},Uy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:qo,rotateZ:qo,skewX:t=>Ge(Math.atan(t[1])),skewY:t=>Ge(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Wo=t=>(t=t%360,t<0&&(t+=360),t),Zl=qo,Ql=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tu=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),zy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ql,scaleY:tu,scale:t=>(Ql(t)+tu(t))/2,rotateX:t=>Wo(Ge(Math.atan2(t[6],t[5]))),rotateY:t=>Wo(Ge(Math.atan2(-t[2],t[0]))),rotateZ:Zl,rotate:Zl,skewX:t=>Ge(Math.atan(t[4])),skewY:t=>Ge(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ho(t){return t.includes("scale")?1:0}function Go(t,e){if(!t||t==="none")return Ho(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=zy,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Uy,i=a}if(!i)return Ho(e);const o=r[e],s=i[1].split(",").map(Wy);return typeof o=="function"?o(s):s[o]}const qy=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Go(n,e)};function Wy(t){return parseFloat(t.trim())}const vn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(vn),eu=t=>t===yn||t===it,Hy=new Set(["x","y","z"]),Gy=vn.filter(t=>!Hy.has(t));function Ky(t){const e=[];return Gy.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Ke={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Go(e,"x"),y:(t,{transform:e})=>Go(e,"y")};Ke.translateX=Ke.x,Ke.translateY=Ke.y;const Ye=new Set;let Ko=!1,Yo=!1,Xo=!1;function nu(){if(Yo){const t=Array.from(Ye).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Ky(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yo=!1,Ko=!1,Ye.forEach(t=>t.complete(Xo)),Ye.clear()}function ru(){Ye.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Yo=!0)})}function Yy(){Xo=!0,ru(),nu(),Xo=!1}class Jo{constructor(e,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ye.add(this),Ko||(Ko=!0,Ot.read(ru),Ot.resolveKeyframes(nu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),s=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=s),i&&o===void 0&&i.set(e[0])}Vy(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ye.delete(this)}cancel(){this.state==="scheduled"&&(Ye.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xy=t=>t.startsWith("--");function Jy(t,e,n){Xy(e)?t.style.setProperty(e,n):t.style[e]=n}const Zy=xo(()=>window.ScrollTimeline!==void 0),Qy={};function tg(t,e){const n=xo(t);return()=>Qy[e]??n()}const iu=tg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sr=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ou={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sr([0,.65,.55,1]),circOut:sr([.55,0,1,.45]),backIn:sr([.31,.01,.66,-.59]),backOut:sr([.33,1.53,.69,.99])};function su(t,e){if(t)return typeof t=="function"?iu()?Kl(t,e):"ease-out":Il(t)?sr(t):Array.isArray(t)?t.map(n=>su(n,e)||ou.easeOut):ou[t]}function eg(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const c={[e]:n};l&&(c.offset=l);const h=su(a,i);Array.isArray(h)&&(c.easing=h);const m={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),t.animate(c,m)}function au(t){return typeof t=="function"&&"applyToOptions"in t}function ng({type:t,...e}){return au(t)&&iu()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class rg extends Uo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,Vr(typeof e.type!="string");const d=ng(e);this.animation=eg(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Vo(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Jy(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return be(Number(e))}get time(){return be(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=we(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Zy()?(this.animation.timeline=e,ce):n(this)}}const cu={anticipate:Pl,backInOut:Tl,circInOut:Cl};function ig(t){return t in cu}function og(t){typeof t.ease=="string"&&ig(t.ease)&&(t.ease=cu[t.ease])}const lu=10;class sg extends rg{constructor(e){og(e),Jl(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new zo({...s,autoplay:!1}),l=we(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-lu).value,a.sample(l).value,lu),a.stop()}}const uu=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ue.test(t)||t==="0")&&!t.startsWith("url("));function ag(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function cg(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=uu(i,e),a=uu(o,e);return!s||!a?!1:ag(t)||(n==="spring"||au(n))&&r}function Zo(t){t.duration=0,t.type}const lg=new Set(["opacity","clipPath","filter","transform"]),ug=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fg(t){var c;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return ug()&&n&&lg.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const dg=40;class hg extends Uo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:c,...h}){var w;super(),this.stop=()=>{var b,P;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(P=this.keyframeResolver)==null||P.cancel()},this.createdAt=re.now();const m={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:d,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Jo;this.keyframeResolver=new y(a,(b,P,x)=>this.onKeyframesResolved(b,P,m,!x),l,d,c),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:c}=r;this.resolvedAt=re.now(),cg(e,o,s,a)||((Re.instantAnimations||!l)&&(c==null||c(Vo(e,r,n))),e[0]=e[e.length-1],Zo(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>dg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!d&&fg(m)?new sg({...m,element:m.motionValue.owner.current}):new zo(m);y.finished.then(()=>this.notifyFinished()).catch(ce),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Yy()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const pg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mg(t){const e=pg.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function fu(t,e,n=1){const[r,i]=mg(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return vl(s)?parseFloat(s):s}return ko(i)?fu(i,e,n+1):i}function Qo(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const du=new Set(["width","height","top","left","right","bottom",...vn]),yg={test:t=>t==="auto",parse:t=>t},hu=t=>e=>e.test(t),pu=[yn,it,_e,Ve,ay,sy,yg],mu=t=>pu.find(hu(t));function gg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||bl(t):!0}const vg=new Set(["brightness","contrast","saturate","opacity"]);function wg(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Co)||[];if(!r)return t;const i=n.replace(r,"");let o=vg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const bg=/\b([a-z-]*)\(.*?\)/gu,ts={...Ue,getAnimatableNone:t=>{const e=t.match(bg);return e?e.map(wg).join(" "):t}},yu={...yn,transform:Math.round},es={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...{rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:qr,scaleX:qr,scaleY:qr,scaleZ:qr,skew:Ve,skewX:Ve,skewY:Ve,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:er,originX:Ll,originY:Ll,originZ:it},zIndex:yu,fillOpacity:er,strokeOpacity:er,numOctaves:yu},_g={...es,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:ts,WebkitFilter:ts},gu=t=>_g[t];function vu(t,e){let n=gu(t);return n!==ts&&(n=Ue),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const xg=new Set(["auto","none","0"]);function Eg(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!xg.has(o)&&ir(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=vu(n,i)}class Sg extends Jo{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let d=e[l];if(typeof d=="string"&&(d=d.trim(),ko(d))){const c=fu(d,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!du.has(r)||e.length!==2)return;const[i,o]=e,s=mu(i),a=mu(o);if(s!==a)if(eu(s)&&eu(a))for(let l=0;l<e.length;l++){const d=e[l];typeof d=="string"&&(e[l]=parseFloat(d))}else Ke[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||gg(e[i]))&&r.push(i);r.length&&Eg(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ke[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Ke[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{e.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function Ag(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const wu=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function bu(t){return wl(t)&&"offsetHeight"in t}const _u=30,Tg=t=>!isNaN(parseFloat(t));class Pg{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=re.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=re.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Tg(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Eo);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>_u)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_u);return _l(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bn(t,e){return new Pg(t,e)}const{schedule:ns,cancel:QS}=Bl(queueMicrotask,!1),pe={x:!1,y:!1};function xu(){return pe.x||pe.y}function kg(t){return t==="x"||t==="y"?pe[t]?null:(pe[t]=!0,()=>{pe[t]=!1}):pe.x||pe.y?null:(pe.x=pe.y=!0,()=>{pe.x=pe.y=!1})}function Eu(t,e){const n=Ag(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Su(t){return!(t.pointerType==="touch"||xu())}function Cg(t,e,n={}){const[r,i,o]=Eu(t,n),s=a=>{if(!Su(a))return;const{target:l}=a,d=e(l,a);if(typeof d!="function"||!l)return;const c=h=>{Su(h)&&(d(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Au=(t,e)=>e?t===e?!0:Au(t,e.parentElement):!1,rs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Og=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ig(t){return Og.has(t.tagName)||t.tabIndex!==-1}const Kr=new WeakSet;function Tu(t){return e=>{e.key==="Enter"&&t(e)}}function is(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Rg=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Tu(()=>{if(Kr.has(n))return;is(n,"down");const i=Tu(()=>{is(n,"up")}),o=()=>is(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Pu(t){return rs(t)&&!xu()}function Mg(t,e,n={}){const[r,i,o]=Eu(t,n),s=a=>{const l=a.currentTarget;if(!Pu(a))return;Kr.add(l);const d=e(l,a),c=(y,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),Kr.has(l)&&Kr.delete(l),Pu(y)&&typeof d=="function"&&d(y,{success:w})},h=y=>{c(y,l===window||l===document||n.useGlobalTarget||Au(l,y.target))},m=y=>{c(y,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),bu(a)&&(a.addEventListener("focus",d=>Rg(d,i)),!Ig(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ku(t){return wl(t)&&"ownerSVGElement"in t}function Ng(t){return ku(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Bg=[...pu,Vt,Ue],Dg=t=>Bg.find(hu(t)),os=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Fg extends oe{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=bu(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Lg({children:t,isPresent:e,anchorX:n,root:r}){const i=hn(),o=ot(null),s=ot({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=$t(os);return Xn(()=>{const{width:l,height:d,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!d)return;const y=n==="left"?`left: ${h}`:`right: ${m}`;o.current.dataset.motionPopId=i;const w=document.createElement("style");a&&(w.nonce=a);const b=r??document.head;return b.appendChild(w),w.sheet&&w.sheet.insertRule(`
1
+ (function(){"use strict";var qn,ut,pc,We,mc,yc,Ki,gc,Yi,Xi,Ji,vc,Hn={},wc=[],fm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Br=Array.isArray;function Pe(t,e){for(var n in e)t[n]=e[n];return t}function Zi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function nt(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?qn.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Gn(t,s,r,i,null)}function Gn(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++pc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function bc(){return{current:null}}function kt(t){return t.children}function oe(t,e){this.props=t,this.context=e}function fn(t,e){if(e==null)return t.__?fn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fn(t):null}function _c(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return _c(t)}}function Qi(t){(!t.__d&&(t.__d=!0)&&We.push(t)&&!Dr.__r++||mc!==ut.debounceRendering)&&((mc=ut.debounceRendering)||yc)(Dr)}function Dr(){var t,e,n,r,i,o,s,a;for(We.sort(Ki);t=We.shift();)t.__d&&(e=We.length,r=void 0,o=(i=(n=t).__v).__e,s=[],a=[],n.__P&&((r=Pe({},i)).__v=i.__v+1,ut.vnode&&ut.vnode(r),to(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??fn(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Tc(s,r,a),r.__e!=o&&_c(r)),We.length>e&&We.sort(Ki));Dr.__r=0}function xc(t,e,n,r,i,o,s,a,l,d,c){var h,m,y,b,_,P,x=r&&r.__k||wc,v=e.length;for(l=dm(n,e,x,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?Hn:x[y.__i]||Hn,y.__i=h,P=to(t,y,m,i,o,s,a,l,d,c),b=y.__e,y.ref&&m.ref!=y.ref&&(m.ref&&eo(m.ref,null,y),c.push(y.ref,y.__c||b,y)),_==null&&b!=null&&(_=b),4&y.__u||m.__k===y.__k?l=Sc(y,l,t):typeof y.type=="function"&&P!==void 0?l=P:b&&(l=b.nextSibling),y.__u&=-7);return n.__e=_,l}function dm(t,e,n,r,i){var o,s,a,l,d,c=n.length,h=c,m=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+m,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Gn(null,s,null,null,null):Br(s)?Gn(kt,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Gn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=hm(s,n,l,h))!==-1&&(h--,(a=n[d])&&(a.__u|=2)),a==null||a.__v===null?(d==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?m--:d==l+1?m++:(d>l?m--:m++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<c;o++)(a=n[o])!=null&&!(2&a.__u)&&(a.__e==r&&(r=fn(a)),Pc(a,a));return r}function Sc(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=Sc(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=fn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ke(t,e){return e=e||[],t==null||typeof t=="boolean"||(Br(t)?t.some(function(n){ke(n,e)}):e.push(t)),e}function hm(t,e,n,r){var i,o,s=t.key,a=t.type,l=e[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((l=e[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i--}if(o<e.length){if((l=e[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o++}}return-1}function Ec(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||fm.test(e)?n:n+"px"}function Fr(t,e,n,r,i){var o;t:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Ec(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Ec(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(gc,"$1")),e=e.toLowerCase()in t||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Yi,t.addEventListener(e,o?Ji:Xi,o)):t.removeEventListener(e,o?Ji:Xi,o);else{if(i=="http://www.w3.org/2000/svg")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!="popover"&&e in t)try{t[e]=n??"";break t}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Ac(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Yi++;else if(e.t<n.u)return;return n(ut.event?ut.event(e):e)}}}function to(t,e,n,r,i,o,s,a,l,d){var c,h,m,y,b,_,P,x,v,S,M,I,F,D,W,L,Y,Z=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=ut.__b)&&c(e);t:if(typeof Z=="function")try{if(x=e.props,v="prototype"in Z&&Z.prototype.render,S=(c=Z.contextType)&&r[c.__c],M=c?S?S.props.value:c.__:r,n.__c?P=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(x,M):(e.__c=h=new oe(x,M),h.constructor=Z,h.render=mm),S&&S.sub(h),h.props=x,h.state||(h.state={}),h.context=M,h.__n=r,m=h.__d=!0,h.__h=[],h._sb=[]),v&&h.__s==null&&(h.__s=h.state),v&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Pe({},h.__s)),Pe(h.__s,Z.getDerivedStateFromProps(x,h.__s))),y=h.props,b=h.state,h.__v=e,m)v&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),v&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(v&&Z.getDerivedStateFromProps==null&&x!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(x,M),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(x,h.__s,M)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(et){et&&(et.__=e)}),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[],h.__h.length&&s.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(x,h.__s,M),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,b,_)})}if(h.context=M,h.props=x,h.__P=t,h.__e=!1,F=ut.__r,D=0,v){for(h.state=h.__s,h.__d=!1,F&&F(e),c=h.render(h.props,h.state,h.context),W=0;W<h._sb.length;W++)h.__h.push(h._sb[W]);h._sb=[]}else do h.__d=!1,F&&F(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++D<25);h.state=h.__s,h.getChildContext!=null&&(r=Pe(Pe({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(_=h.getSnapshotBeforeUpdate(y,b)),a=xc(t,Br(L=c!=null&&c.type===kt&&c.key==null?c.props.children:c)?L:[L],e,n,r,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),P&&(h.__E=h.__=null)}catch(et){if(e.__v=null,l||o!=null)if(et.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Y=o.length;Y--;)Zi(o[Y]);else e.__e=n.__e,e.__k=n.__k;ut.__e(et,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=pm(n.__e,e,n,r,i,o,s,l,d);return(c=ut.diffed)&&c(e),128&e.__u?void 0:a}function Tc(t,e,n){for(var r=0;r<n.length;r++)eo(n[r],n[++r],n[++r]);ut.__c&&ut.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){ut.__e(o,i.__v)}})}function pm(t,e,n,r,i,o,s,a,l){var d,c,h,m,y,b,_,P=n.props,x=e.props,v=e.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(v==null)return document.createTextNode(x);t=document.createElementNS(i,v,x.is&&x),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)P===x||a&&t.data===x||(t.data=x);else{if(o=o&&qn.call(t.childNodes),P=n.props||Hn,!a&&o!=null)for(P={},d=0;d<t.attributes.length;d++)P[(y=t.attributes[d]).name]=y.value;for(d in P)if(y=P[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;Fr(t,d,null,y,i)}}for(d in x)y=x[d],d=="children"?m=y:d=="dangerouslySetInnerHTML"?c=y:d=="value"?b=y:d=="checked"?_=y:a&&typeof y!="function"||P[d]===y||Fr(t,d,y,P[d],i);if(c)a||h&&(c.__html===h.__html||c.__html===t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),xc(t,Br(m)?m:[m],e,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&fn(n,0),a,l),o!=null)for(d=o.length;d--;)Zi(o[d]);a||(d="value",v=="progress"&&b==null?t.removeAttribute("value"):b!==void 0&&(b!==t[d]||v=="progress"&&!b||v=="option"&&b!==P[d])&&Fr(t,d,b,P[d],i),d="checked",_!==void 0&&_!==t[d]&&Fr(t,d,_,P[d],i))}return t}function eo(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){ut.__e(i,n)}}function Pc(t,e,n){var r,i;if(ut.unmount&&ut.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||eo(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ut.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Pc(r[i],e,n||typeof t.type!="function");n||Zi(t.__e),t.__c=t.__=t.__e=void 0}function mm(t,e,n){return this.constructor(t,n)}function Kn(t,e,n){var r,i,o,s;e==document&&(e=document.documentElement),ut.__&&ut.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],s=[],to(e,t=(!r&&n||e).__k=nt(kt,null,[t]),i||Hn,Hn,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?qn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Tc(o,t,s)}function kc(t,e){Kn(t,e,kc)}function ym(t,e,n){var r,i,o,s,a=Pe({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!==void 0?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?qn.call(arguments,2):n),Gn(t.type,a,r||t.key,i||t.ref,null)}function te(t,e){var n={__c:e="__cC"+vc++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[e]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Qi(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}qn=wc.slice,ut={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},pc=0,oe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Pe({},this.state),typeof t=="function"&&(t=t(Pe({},n),this.props)),t&&Pe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Qi(this))},oe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Qi(this))},oe.prototype.render=kt,We=[],yc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ki=function(t,e){return t.__v.__b-e.__v.__b},Dr.__r=0,gc=/(PointerCapture)$|Capture$/i,Yi=0,Xi=Ac(!1),Ji=Ac(!0),vc=0;var gm=0;function C(t,e,n,r,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--gm,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return ut.vnode&&ut.vnode(d),d}var Ce,Et,no,Cc,dn=0,Oc=[],Rt=ut,Ic=Rt.__b,Rc=Rt.__r,Mc=Rt.diffed,Nc=Rt.__c,Bc=Rt.unmount,Dc=Rt.__;function qe(t,e){Rt.__h&&Rt.__h(Et,t,dn||e),dn=0;var n=Et.__H||(Et.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function wt(t){return dn=1,Yn(Lc,t)}function Yn(t,e,n){var r=qe(Ce++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Lc(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,a);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=Et,!Et.u)){var i=function(a,l,d){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(m){return!!m.__c});if(c.every(function(m){return!m.__N}))return!o||o.call(this,a,l,d);var h=r.__c.props!==a;return c.forEach(function(m){if(m.__N){var y=m.__[0];m.__=m.__N,m.__N=void 0,y!==m.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Et.u=!0;var o=Et.shouldComponentUpdate,s=Et.componentWillUpdate;Et.componentWillUpdate=function(a,l,d){if(this.__e){var c=o;o=void 0,i(a,l,d),o=c}s&&s.call(this,a,l,d)},Et.shouldComponentUpdate=i}return r.__N||r.__}function mt(t,e){var n=qe(Ce++,3);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,Et.__H.__h.push(n))}function Oe(t,e){var n=qe(Ce++,4);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,Et.__h.push(n))}function ot(t){return dn=5,Ht(function(){return{current:t}},[])}function Xn(t,e,n){dn=6,Oe(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function Ht(t,e){var n=qe(Ce++,7);return oo(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Ct(t,e){return dn=8,Ht(function(){return t},e)}function Ft(t){var e=Et.context[t.__c],n=qe(Ce++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(Et)),e.props.value):t.__}function ro(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function vm(t){var e=qe(Ce++,10),n=wt();return e.__=t,Et.componentDidCatch||(Et.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hn(){var t=qe(Ce++,11);if(!t.__){for(var e=Et.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function wm(){for(var t;t=Oc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Lr),t.__H.__h.forEach(io),t.__H.__h=[]}catch(e){t.__H.__h=[],Rt.__e(e,t.__v)}}Rt.__b=function(t){Et=null,Ic&&Ic(t)},Rt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Dc&&Dc(t,e)},Rt.__r=function(t){Rc&&Rc(t),Ce=0;var e=(Et=t.__c).__H;e&&(no===Et?(e.__h=[],Et.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(Lr),e.__h.forEach(io),e.__h=[],Ce=0)),no=Et},Rt.diffed=function(t){Mc&&Mc(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Oc.push(e)!==1&&Cc===Rt.requestAnimationFrame||((Cc=Rt.requestAnimationFrame)||bm)(wm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),no=Et=null},Rt.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Lr),n.__h=n.__h.filter(function(r){return!r.__||io(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Rt.__e(r,n.__v)}}),Nc&&Nc(t,e)},Rt.unmount=function(t){Bc&&Bc(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Lr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Fc=typeof requestAnimationFrame=="function";function bm(t){var e,n=function(){clearTimeout(r),Fc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Fc&&(e=requestAnimationFrame(n))}function Lr(t){var e=Et,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Et=e}function io(t){var e=Et;t.__c=t.__(),Et=e}function oo(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Lc(t,e){return typeof e=="function"?e(t):e}function jc(t,e){for(var n in e)t[n]=e[n];return t}function so(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ao(t,e){var n=e(),r=wt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Oe(function(){i.__=n,i.u=e,co(i)&&o({t:i})},[t,n,e]),mt(function(){return co(i)&&o({t:i}),t(function(){co(i)&&o({t:i})})},[t]),n}function co(t){var e,n,r=t.u,i=t.__;try{var o=r();return!((e=i)===(n=o)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}function lo(t){t()}function uo(t){return t}function fo(){return[!1,lo]}var Jn=Oe;function jr(t,e){this.props=t,this.context=e}function $c(t,e){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,i)||!s:so(this.props,i)}function r(i){return this.shouldComponentUpdate=n,nt(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jr.prototype=new oe).isPureReactComponent=!0,jr.prototype.shouldComponentUpdate=function(t,e){return so(this.props,t)||so(this.state,e)};var Vc=ut.__b;ut.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Vc&&Vc(t)};var _m=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function je(t){function e(n){var r=jc({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=_m,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Uc=function(t,e){return t==null?null:ke(ke(t).map(e))},ho={map:Uc,forEach:Uc,count:function(t){return t?ke(t).length:0},only:function(t){var e=ke(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:ke},xm=ut.__e;ut.__e=function(t,e,n,r){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}xm(t,e,n,r)};var zc=ut.unmount;function Wc(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=jc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Wc(r,e,n)})),t}function qc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return qc(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Zn(){this.__u=0,this.o=null,this.__b=null}function Hc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Gc(t){var e,n,r;function i(o){if(e||(e=t()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw e;return nt(n,o)}return i.displayName="Lazy",i.__f=!0,i}function pn(){this.i=null,this.l=null}ut.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),zc&&zc(t)},(Zn.prototype=new oe).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Hc(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=qc(l,l.__c.__P,l.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},Zn.prototype.componentWillUnmount=function(){this.o=[]},Zn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Wc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&nt(kt,null,t.fallback);return i&&(i.__u&=-33),[nt(kt,null,e.__a?null:t.children),i]};var Kc=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}};function Sm(t){return this.getChildContext=function(){return t.context},t.children}function Em(t){var e=this,n=t.h;e.componentWillUnmount=function(){Kn(null,e.v),e.v=null,e.h=null},e.h&&e.h!==n&&e.componentWillUnmount(),e.v||(e.h=n,e.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),e.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.h.insertBefore(r,i)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.h.removeChild(r)}}),Kn(nt(Sm,{context:e.context},t.__v),e.v)}function po(t,e){var n=nt(Em,{__v:t,h:e});return n.containerInfo=e,n}(pn.prototype=new oe).__a=function(t){var e=this,n=Hc(e.__v),r=e.l.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Kc(e,t,r)):i()};n?n(o):o()}},pn.prototype.render=function(t){this.i=null,this.l=new Map;var e=ke(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},pn.prototype.componentDidUpdate=pn.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Kc(t,n,e)})};var Yc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Am=/^(?: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]/,Tm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pm=/[A-Z0-9]/g,km=typeof document<"u",Cm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Xc(t,e,n){return e.__k==null&&(e.textContent=""),Kn(t,e),typeof n=="function"&&n(),t?t.__c:null}function Jc(t,e,n){return kc(t,e),typeof n=="function"&&n(),t?t.__c:null}oe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(oe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Zc=ut.event;function Om(){}function Im(){return this.cancelBubble}function Rm(){return this.defaultPrevented}ut.event=function(t){return Zc&&(t=Zc(t)),t.persist=Om,t.isPropagationStopped=Im,t.isDefaultPrevented=Rm,t.nativeEvent=t};var mo,Mm={enumerable:!1,configurable:!0,get:function(){return this.class}},Qc=ut.vnode;ut.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||km&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Cm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Tm.test(s)&&(s=l):l=s="oninput":o&&Am.test(s)?s=s.replace(Pm,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Mm)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=Yc,Qc&&Qc(t)};var tl=ut.__r;ut.__r=function(t){tl&&tl(t),mo=t.__c};var el=ut.diffed;ut.diffed=function(t){el&&el(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),mo=null};var nl={ReactCurrentDispatcher:{current:{readContext:function(t){return mo.__n[t.__c].props.value},useCallback:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:mt,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Oe,useMemo:Ht,useReducer:Yn,useRef:ot,useState:wt,useSyncExternalStore:ao,useTransition:fo}}},rl="18.3.1";function il(t){return nt.bind(null,t)}function mn(t){return!!t&&t.$$typeof===Yc}function ol(t){return mn(t)&&t.type===kt}function sl(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function yo(t){return mn(t)?ym.apply(null,arguments):t}function al(t){return!!t.__k&&(Kn(null,t),!0)}function cl(t){return t&&(t.base||t.nodeType===1&&t)||null}var ll=function(t,e){return t(e)},ul=function(t,e){return t(e)},fl=kt,dl=mn,yn={useState:wt,useId:hn,useReducer:Yn,useEffect:mt,useLayoutEffect:Oe,useInsertionEffect:Jn,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:ao,startTransition:lo,useRef:ot,useImperativeHandle:Xn,useMemo:Ht,useCallback:Ct,useContext:Ft,useDebugValue:ro,version:"18.3.1",Children:ho,render:Xc,hydrate:Jc,unmountComponentAtNode:al,createPortal:po,createElement:nt,createContext:te,createFactory:il,cloneElement:yo,createRef:bc,Fragment:kt,isValidElement:mn,isElement:dl,isFragment:ol,isMemo:sl,findDOMNode:cl,Component:oe,PureComponent:jr,memo:$c,forwardRef:je,flushSync:ul,unstable_batchedUpdates:ll,StrictMode:fl,Suspense:Zn,SuspenseList:pn,lazy:Gc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nl};const Nm=Object.freeze(Object.defineProperty({__proto__:null,Children:ho,Component:oe,Fragment:kt,PureComponent:jr,StrictMode:fl,Suspense:Zn,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nl,cloneElement:yo,createContext:te,createElement:nt,createFactory:il,createPortal:po,createRef:bc,default:yn,findDOMNode:cl,flushSync:ul,forwardRef:je,hydrate:Jc,isElement:dl,isFragment:ol,isMemo:sl,isValidElement:mn,lazy:Gc,memo:$c,render:Xc,startTransition:lo,unmountComponentAtNode:al,unstable_batchedUpdates:ll,useCallback:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:mt,useErrorBoundary:vm,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Oe,useMemo:Ht,useReducer:Yn,useRef:ot,useState:wt,useSyncExternalStore:ao,useTransition:fo,version:rl},Symbol.toStringTag,{value:"Module"})),Bm='*,: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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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{border-color:hsl(var(--border))}#deskcord-shadow-container{color:hsl(var(--foreground));font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.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}.inset-x-px{left:1px;right:1px}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.bottom-px{bottom:1px}.end-0{inset-inline-end:0px}.left-0{left:0}.right-0{right:0}.right-1{right:.25rem}.start-0{inset-inline-start:0px}.top-0{top:0}.top-1{top:.25rem}.top-full{top:100%}.z-20{z-index:20}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-\\[3px\\]{margin-top:3px;margin-bottom:3px}.\\!me-1{margin-inline-end:.25rem!important}.\\!me-1\\.5{margin-inline-end:.375rem!important}.\\!ms-auto{margin-inline-start:auto!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.me-11{margin-inline-end:2.75rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.ms-0\\.5{margin-inline-start:.125rem}.ms-2{margin-inline-start:.5rem}.ms-auto{margin-inline-start:auto}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\\[32px\\]{width:32px;height:32px}.\\!h-2\\.5{height:.625rem!important}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-32{height:8rem}.h-8{height:2rem}.h-full{height:100%}.max-h-40{max-height:10rem}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[200px\\]{max-height:200px}.\\!w-2\\.5{width:.625rem!important}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[40px\\]{width:40px}.w-\\[calc\\(100\\%-2rem\\)\\]{width:calc(100% - 2rem)}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-\\[100px\\]{max-width:100px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.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 spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-\\[3px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(3px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3px * var(--tw-space-y-reverse))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 1}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-b-md{border-bottom-right-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.\\!border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity))!important}.border-current{border-color:currentColor}.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-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-gray-200{--tw-border-opacity: 1;border-top-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.\\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.bg-\\[\\#5d6fb3\\]{--tw-bg-opacity: 1;background-color:rgb(93 111 179 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / 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-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-80{--tw-bg-opacity: .8}.fill-black{fill:#000}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-12{padding-bottom:3rem}.pr-3{padding-right:.75rem}.ps-11{padding-inline-start:2.75rem}.ps-4{padding-inline-start:1rem}.text-center{text-align:center}.text-end{text-align:end}.align-bottom{vertical-align:bottom}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-lg\\/5{font-size:1.125rem;line-height:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/3{font-size:.875rem;line-height:.75rem}.text-xs,.text-xs\\/4{font-size:.75rem;line-height:1rem}.\\!font-medium{font-weight:500!important}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.italic{font-style:italic}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.\\!shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.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-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);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)}.grayscale{--tw-grayscale: grayscale(100%);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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-500{transition-duration:.5s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-150{animation-duration:.15s}.duration-500{animation-duration:.5s}.running{animation-play-state:running}:host,#deskcord-shadow-container{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}.dark,:host(.dark) #deskcord-shadow-container{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}.hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:text-white:disabled{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.selected .hs-combo-box-selected\\:block,.selected.hs-combo-box-selected\\:block{display:block}.complete .hs-file-upload-complete\\:bg-green-600,.complete.hs-file-upload-complete\\:bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.dark\\:\\!border-neutral-700:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(64 64 64 / var(--tw-border-opacity))!important}.dark\\:border-neutral-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity))}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity))}.dark\\:\\!bg-neutral-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(38 38 38 / var(--tw-bg-opacity))!important}.dark\\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.dark\\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.dark\\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\\:fill-neutral-200:is(.dark *){fill:#e5e5e5}.dark\\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:placeholder-neutral-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity))}.dark\\:placeholder-neutral-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity))}.dark\\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity))}.dark\\:hover\\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:hover\\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:focus\\:bg-neutral-800:focus:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}}',Dm=".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}@media screen and (min-width:800px){.yarl__slide_wrapper:not(.yarl__slide_wrapper_interactive) .yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translate(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}",go=te({});function vo(t){const e=ot(null);return e.current===null&&(e.current=t()),e.current}const wo=typeof window<"u",hl=wo?Oe:mt,$r=te(null);function bo(t,e){t.indexOf(e)===-1&&t.push(e)}function _o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ie=(t,e,n)=>n>e?e:n<t?t:n;let Vr=()=>{};const Re={},pl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ml(t){return typeof t=="object"&&t!==null}const yl=t=>/^0[^.\s]+$/u.test(t);function xo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ce=t=>t,Fm=(t,e)=>n=>e(t(n)),Qn=(...t)=>t.reduce(Fm),tr=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class So{constructor(){this.subscriptions=[]}add(e){return bo(this.subscriptions,e),()=>_o(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const we=t=>t*1e3,be=t=>t/1e3;function gl(t,e){return e?t*(1e3/e):0}const vl=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Lm=1e-7,jm=12;function $m(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=vl(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>Lm&&++a<jm);return s}function er(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>$m(o,0,1,t,n);return o=>o===0||o===1?o:vl(i(o),e,r)}const wl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,bl=t=>e=>1-t(1-e),_l=er(.33,1.53,.69,.99),Eo=bl(_l),xl=wl(Eo),Sl=t=>(t*=2)<1?.5*Eo(t):.5*(2-Math.pow(2,-10*(t-1))),Ao=t=>1-Math.sin(Math.acos(t)),El=bl(Ao),Al=wl(Ao),Vm=er(.42,0,1,1),Um=er(0,0,.58,1),Tl=er(.42,0,.58,1),zm=t=>Array.isArray(t)&&typeof t[0]!="number",Pl=t=>Array.isArray(t)&&typeof t[0]=="number",kl={linear:ce,easeIn:Vm,easeInOut:Tl,easeOut:Um,circIn:Ao,circInOut:Al,circOut:El,backIn:Eo,backInOut:xl,backOut:_l,anticipate:Sl},Wm=t=>typeof t=="string",Cl=t=>{if(Pl(t)){Vr(t.length===4);const[e,n,r,i]=t;return er(e,n,r,i)}else if(Wm(t))return Vr(kl[t]!==void 0),kl[t];return t},Ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ol={value:null,addProjectionMetrics:null};function qm(t,e){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function d(h){s.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,m=!1,y=!1)=>{const _=y&&i?n:r;return m&&s.add(h),_.has(h)||_.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(a=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),e&&Ol.value&&Ol.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const Hm=40;function Il(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ur.reduce((S,M)=>(S[M]=qm(o,e?M:void 0),S),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:c,update:h,preRender:m,render:y,postRender:b}=s,_=()=>{const S=Re.useManualTiming?i.timestamp:performance.now();n=!1,Re.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Hm),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),c.process(i),h.process(i),m.process(i),y.process(i),b.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(_))},P=()=>{n=!0,r=!0,i.isProcessing||t(_)};return{schedule:Ur.reduce((S,M)=>{const I=s[M];return S[M]=(F,D=!1,W=!1)=>(n||P(),I.schedule(F,D,W)),S},{}),cancel:S=>{for(let M=0;M<Ur.length;M++)s[Ur[M]].cancel(S)},state:i,steps:s}}const{schedule:Ot,cancel:$e,state:Xt,steps:To}=Il(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0);let zr;function Gm(){zr=void 0}const re={now:()=>(zr===void 0&&re.set(Xt.isProcessing||Re.useManualTiming?Xt.timestamp:performance.now()),zr),set:t=>{zr=t,queueMicrotask(Gm)}},Rl=t=>e=>typeof e=="string"&&e.startsWith(t),Po=Rl("--"),Km=Rl("var(--"),ko=t=>Km(t)?Ym.test(t.split("/*")[0].trim()):!1,Ym=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gn={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},nr={...gn,transform:t=>Ie(0,1,t)},Wr={...gn,default:1},rr=t=>Math.round(t*1e5)/1e5,Co=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xm(t){return t==null}const Jm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oo=(t,e)=>n=>!!(typeof n=="string"&&Jm.test(n)&&n.startsWith(t)||e&&!Xm(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ml=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Co);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Zm=t=>Ie(0,255,t),Io={...gn,transform:t=>Math.round(Zm(t))},He={test:Oo("rgb","red"),parse:Ml("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Io.transform(t)+", "+Io.transform(e)+", "+Io.transform(n)+", "+rr(nr.transform(r))+")"};function Qm(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ro={test:Oo("#"),parse:Qm,transform:He.transform},ir=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ve=ir("deg"),_e=ir("%"),it=ir("px"),ty=ir("vh"),ey=ir("vw"),Nl={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},vn={test:Oo("hsl","hue"),parse:Ml("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+_e.transform(rr(e))+", "+_e.transform(rr(n))+", "+rr(nr.transform(r))+")"},Vt={test:t=>He.test(t)||Ro.test(t)||vn.test(t),parse:t=>He.test(t)?He.parse(t):vn.test(t)?vn.parse(t):Ro.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?He.transform(t):vn.transform(t),getAnimatableNone:t=>{const e=Vt.parse(t);return e.alpha=0,Vt.transform(e)}},ny=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ry(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Co))==null?void 0:e.length)||0)+(((n=t.match(ny))==null?void 0:n.length)||0)>0}const Bl="number",Dl="color",iy="var",oy="var(",Fl="${}",sy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function or(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(sy,l=>(Vt.test(l)?(r.color.push(o),i.push(Dl),n.push(Vt.parse(l))):l.startsWith(oy)?(r.var.push(o),i.push(iy),n.push(l)):(r.number.push(o),i.push(Bl),n.push(parseFloat(l))),++o,Fl)).split(Fl);return{values:n,split:a,indexes:r,types:i}}function Ll(t){return or(t).values}function jl(t){const{split:e,types:n}=or(t),r=e.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=e[s],i[s]!==void 0){const a=n[s];a===Bl?o+=rr(i[s]):a===Dl?o+=Vt.transform(i[s]):o+=i[s]}return o}}const ay=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function cy(t){const e=Ll(t);return jl(t)(e.map(ay))}const Ue={test:ry,parse:Ll,createTransformer:jl,getAnimatableNone:cy};function Mo(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ly({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Mo(l,a,t+1/3),o=Mo(l,a,t),s=Mo(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function qr(t,e){return n=>n>0?e:t}const Mt=(t,e,n)=>t+(e-t)*n,No=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},uy=[Ro,He,vn],fy=t=>uy.find(e=>e.test(t));function $l(t){const e=fy(t);if(!e)return!1;let n=e.parse(t);return e===vn&&(n=ly(n)),n}const Vl=(t,e)=>{const n=$l(t),r=$l(e);if(!n||!r)return qr(t,e);const i={...n};return o=>(i.red=No(n.red,r.red,o),i.green=No(n.green,r.green,o),i.blue=No(n.blue,r.blue,o),i.alpha=Mt(n.alpha,r.alpha,o),He.transform(i))},Bo=new Set(["none","hidden"]);function dy(t,e){return Bo.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function hy(t,e){return n=>Mt(t,e,n)}function Do(t){return typeof t=="number"?hy:typeof t=="string"?ko(t)?qr:Vt.test(t)?Vl:yy:Array.isArray(t)?Ul:typeof t=="object"?Vt.test(t)?Vl:py:qr}function Ul(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>Do(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function py(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Do(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function my(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],s=t.indexes[o][r[o]],a=t.values[s]??0;n[i]=a,r[o]++}return n}const yy=(t,e)=>{const n=Ue.createTransformer(e),r=or(t),i=or(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Bo.has(t)&&!i.values.length||Bo.has(e)&&!r.values.length?dy(t,e):Qn(Ul(my(r,i),i.values),n):qr(t,e)};function zl(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Mt(t,e,n):Do(t)(t,e)}const gy=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Ot.update(e,n),stop:()=>$e(e),now:()=>Xt.isProcessing?Xt.timestamp:re.now()}},Wl=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Hr=2e4;function Fo(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Hr;)e+=n,r=t.next(e);return e>=Hr?1/0:e}function vy(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(Fo(r),Hr);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:be(i)}}const wy=5;function ql(t,e,n){const r=Math.max(e-wy,0);return gl(n-t(r),e-r)}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Lo=.001;function by({duration:t=Nt.duration,bounce:e=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let i,o,s=1-e;s=Ie(Nt.minDamping,Nt.maxDamping,s),t=Ie(Nt.minDuration,Nt.maxDuration,be(t)),s<1?(i=d=>{const c=d*s,h=c*t,m=c-n,y=jo(d,s),b=Math.exp(-h);return Lo-m/y*b},o=d=>{const h=d*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(d,2)*t,b=Math.exp(-h),_=jo(Math.pow(d,2),s);return(-i(d)+Lo>0?-1:1)*((m-y)*b)/_}):(i=d=>{const c=Math.exp(-d*t),h=(d-n)*t+1;return-Lo+c*h},o=d=>{const c=Math.exp(-d*t),h=(n-d)*(t*t);return c*h});const a=5/t,l=xy(i,o,a);if(t=we(t),isNaN(l))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:t};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:t}}}const _y=12;function xy(t,e,n){let r=n;for(let i=1;i<_y;i++)r=r-t(r)/e(r);return r}function jo(t,e){return t*Math.sqrt(1-e*e)}const Sy=["duration","bounce"],Ey=["stiffness","damping","mass"];function Hl(t,e){return e.some(n=>t[n]!==void 0)}function Ay(t){let e={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...t};if(!Hl(t,Ey)&&Hl(t,Sy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ie(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Nt.mass,stiffness:i,damping:o}}else{const n=by(t);e={...e,...n,mass:Nt.mass},e.isResolvedFromDuration=!0}return e}function Gr(t=Nt.visualDuration,e=Nt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:d,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=Ay({...n,velocity:-be(n.velocity||0)}),b=m||0,_=d/(2*Math.sqrt(l*c)),P=s-o,x=be(Math.sqrt(l/c)),v=Math.abs(P)<5;r||(r=v?Nt.restSpeed.granular:Nt.restSpeed.default),i||(i=v?Nt.restDelta.granular:Nt.restDelta.default);let S;if(_<1){const I=jo(x,_);S=F=>{const D=Math.exp(-_*x*F);return s-D*((b+_*x*P)/I*Math.sin(I*F)+P*Math.cos(I*F))}}else if(_===1)S=I=>s-Math.exp(-x*I)*(P+(b+x*P)*I);else{const I=x*Math.sqrt(_*_-1);S=F=>{const D=Math.exp(-_*x*F),W=Math.min(I*F,300);return s-D*((b+_*x*P)*Math.sinh(W)+I*P*Math.cosh(W))/I}}const M={calculatedDuration:y&&h||null,next:I=>{const F=S(I);if(y)a.done=I>=h;else{let D=I===0?b:0;_<1&&(D=I===0?we(b):ql(S,I,F));const W=Math.abs(D)<=r,L=Math.abs(s-F)<=i;a.done=W&&L}return a.value=a.done?s:F,a},toString:()=>{const I=Math.min(Fo(M),Hr),F=Wl(D=>M.next(I*D).value,I,30);return I+"ms "+F},toTransition:()=>{}};return M}Gr.applyToOptions=t=>{const e=vy(t,100,Gr);return t.ease=e.ease,t.duration=we(e.duration),t.type="keyframes",t};function $o({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=W=>a!==void 0&&W<a||l!==void 0&&W>l,b=W=>a===void 0?l:l===void 0||Math.abs(a-W)<Math.abs(l-W)?a:l;let _=n*e;const P=h+_,x=s===void 0?P:s(P);x!==P&&(_=x-h);const v=W=>-_*Math.exp(-W/r),S=W=>x+v(W),M=W=>{const L=v(W),Y=S(W);m.done=Math.abs(L)<=d,m.value=m.done?x:Y};let I,F;const D=W=>{y(m.value)&&(I=W,F=Gr({keyframes:[m.value,b(m.value)],velocity:ql(S,W,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:c}))};return D(0),{calculatedDuration:null,next:W=>{let L=!1;return!F&&I===void 0&&(L=!0,M(W),D(W)),I!==void 0&&W>=I?F.next(W-I):(!L&&M(W),m)}}}function Ty(t,e,n){const r=[],i=n||Re.mix||zl,o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ce:e;a=Qn(l,a)}r.push(a)}return r}function Py(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Vr(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ty(e,r,i),l=a.length,d=c=>{if(s&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const m=tr(t[h],t[h+1],c);return a[h](m)};return n?c=>d(Ie(t[0],t[o-1],c)):d}function ky(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=tr(0,e,r);t.push(Mt(n,1,i))}}function Cy(t){const e=[0];return ky(e,t.length-1),e}function Oy(t,e){return t.map(n=>n*e)}function Iy(t,e){return t.map(()=>e||Tl).splice(0,t.length-1)}function sr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=zm(r)?r.map(Cl):Cl(r),o={done:!1,value:e[0]},s=Oy(n&&n.length===e.length?n:Cy(e),t),a=Py(s,e,{ease:Array.isArray(i)?i:Iy(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ry=t=>t!==null;function Vo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Ry),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const My={decay:$o,inertia:$o,tween:sr,keyframes:sr,spring:Gr};function Gl(t){typeof t.type=="string"&&(t.type=My[t.type])}class Uo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Ny=t=>t/100;class zo extends Uo{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==re.now()&&this.tick(re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Gl(e);const{type:n=sr,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e;let{keyframes:a}=e;const l=n||sr;l!==sr&&typeof a[0]!="number"&&(this.mixKeyframes=Qn(Ny,zl(a[0],a[1])),a=[0,100]);const d=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Fo(d));const{calculatedDuration:c}=d;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:c,repeat:h,repeatType:m,repeatDelay:y,type:b,onUpdate:_,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,M=r;if(h){const W=Math.min(this.currentTime,i)/a;let L=Math.floor(W),Y=W%1;!Y&&W>=1&&(Y=1),Y===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(m==="reverse"?(Y=1-Y,y&&(Y-=y/a)):m==="mirror"&&(M=s)),S=Ie(0,1,Y)*a}const I=v?{done:!1,value:c[0]}:M.next(S);o&&(I.value=o(I.value));let{done:F}=I;!v&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return D&&b!==$o&&(I.value=Vo(c,this.options,P,this.speed)),_&&_(I.value),D&&this.finish(),I}then(e,n){return this.finished.then(e,n)}get duration(){return be(this.calculatedDuration)}get time(){return be(this.currentTime)}set time(e){var n;e=we(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(re.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=be(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=gy,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(re.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function By(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ge=t=>t*180/Math.PI,Wo=t=>{const e=Ge(Math.atan2(t[1],t[0]));return qo(e)},Dy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Wo,rotateZ:Wo,skewX:t=>Ge(Math.atan(t[1])),skewY:t=>Ge(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},qo=t=>(t=t%360,t<0&&(t+=360),t),Kl=Wo,Yl=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Xl=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Fy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yl,scaleY:Xl,scale:t=>(Yl(t)+Xl(t))/2,rotateX:t=>qo(Ge(Math.atan2(t[6],t[5]))),rotateY:t=>qo(Ge(Math.atan2(-t[2],t[0]))),rotateZ:Kl,rotate:Kl,skewX:t=>Ge(Math.atan(t[4])),skewY:t=>Ge(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ho(t){return t.includes("scale")?1:0}function Go(t,e){if(!t||t==="none")return Ho(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Fy,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Dy,i=a}if(!i)return Ho(e);const o=r[e],s=i[1].split(",").map(jy);return typeof o=="function"?o(s):s[o]}const Ly=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Go(n,e)};function jy(t){return parseFloat(t.trim())}const wn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bn=new Set(wn),Jl=t=>t===gn||t===it,$y=new Set(["x","y","z"]),Vy=wn.filter(t=>!$y.has(t));function Uy(t){const e=[];return Vy.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Ke={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Go(e,"x"),y:(t,{transform:e})=>Go(e,"y")};Ke.translateX=Ke.x,Ke.translateY=Ke.y;const Ye=new Set;let Ko=!1,Yo=!1,Xo=!1;function Zl(){if(Yo){const t=Array.from(Ye).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Uy(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yo=!1,Ko=!1,Ye.forEach(t=>t.complete(Xo)),Ye.clear()}function Ql(){Ye.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Yo=!0)})}function zy(){Xo=!0,Ql(),Zl(),Xo=!1}class Jo{constructor(e,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Ye.add(this),Ko||(Ko=!0,Ot.read(Ql),Ot.resolveKeyframes(Zl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),s=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=s),i&&o===void 0&&i.set(e[0])}By(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ye.delete(this)}cancel(){this.state==="scheduled"&&(Ye.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wy=t=>t.startsWith("--");function qy(t,e,n){Wy(e)?t.style.setProperty(e,n):t.style[e]=n}const Hy=xo(()=>window.ScrollTimeline!==void 0),Gy={};function Ky(t,e){const n=xo(t);return()=>Gy[e]??n()}const tu=Ky(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ar=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,eu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function nu(t,e){if(t)return typeof t=="function"?tu()?Wl(t,e):"ease-out":Pl(t)?ar(t):Array.isArray(t)?t.map(n=>nu(n,e)||eu.easeOut):eu[t]}function Yy(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const c={[e]:n};l&&(c.offset=l);const h=nu(a,i);Array.isArray(h)&&(c.easing=h);const m={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),t.animate(c,m)}function ru(t){return typeof t=="function"&&"applyToOptions"in t}function Xy({type:t,...e}){return ru(t)&&tu()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Jy extends Uo{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,Vr(typeof e.type!="string");const d=Xy(e);this.animation=Yy(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Vo(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):qy(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return be(Number(e))}get time(){return be(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=we(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Hy()?(this.animation.timeline=e,ce):n(this)}}const iu={anticipate:Sl,backInOut:xl,circInOut:Al};function Zy(t){return t in iu}function Qy(t){typeof t.ease=="string"&&Zy(t.ease)&&(t.ease=iu[t.ease])}const ou=10;class tg extends Jy{constructor(e){Qy(e),Gl(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new zo({...s,autoplay:!1}),l=we(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-ou).value,a.sample(l).value,ou),a.stop()}}const su=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ue.test(t)||t==="0")&&!t.startsWith("url("));function eg(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ng(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=su(i,e),a=su(o,e);return!s||!a?!1:eg(t)||(n==="spring"||ru(n))&&r}function Zo(t){t.duration=0,t.type}const rg=new Set(["opacity","clipPath","filter","transform"]),ig=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function og(t){var c;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return ig()&&n&&rg.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const sg=40;class ag extends Uo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:c,...h}){var b;super(),this.stop=()=>{var _,P;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(P=this.keyframeResolver)==null||P.cancel()},this.createdAt=re.now();const m={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:d,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Jo;this.keyframeResolver=new y(a,(_,P,x)=>this.onKeyframesResolved(_,P,m,!x),l,d,c),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:c}=r;this.resolvedAt=re.now(),ng(e,o,s,a)||((Re.instantAnimations||!l)&&(c==null||c(Vo(e,r,n))),e[0]=e[e.length-1],Zo(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>sg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!d&&og(m)?new tg({...m,element:m.motionValue.owner.current}):new zo(m);y.finished.then(()=>this.notifyFinished()).catch(ce),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),zy()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const cg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lg(t){const e=cg.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function au(t,e,n=1){const[r,i]=lg(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return pl(s)?parseFloat(s):s}return ko(i)?au(i,e,n+1):i}function Qo(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const cu=new Set(["width","height","top","left","right","bottom",...wn]),ug={test:t=>t==="auto",parse:t=>t},lu=t=>e=>e.test(t),uu=[gn,it,_e,Ve,ey,ty,ug],fu=t=>uu.find(lu(t));function fg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||yl(t):!0}const dg=new Set(["brightness","contrast","saturate","opacity"]);function hg(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Co)||[];if(!r)return t;const i=n.replace(r,"");let o=dg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const pg=/\b([a-z-]*)\(.*?\)/gu,ts={...Ue,getAnimatableNone:t=>{const e=t.match(pg);return e?e.map(hg).join(" "):t}},du={...gn,transform:Math.round},es={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...{rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:Wr,scaleX:Wr,scaleY:Wr,scaleZ:Wr,skew:Ve,skewX:Ve,skewY:Ve,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:nr,originX:Nl,originY:Nl,originZ:it},zIndex:du,fillOpacity:nr,strokeOpacity:nr,numOctaves:du},mg={...es,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:ts,WebkitFilter:ts},hu=t=>mg[t];function pu(t,e){let n=hu(t);return n!==ts&&(n=Ue),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const yg=new Set(["auto","none","0"]);function gg(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!yg.has(o)&&or(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=pu(n,i)}class vg extends Jo{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let d=e[l];if(typeof d=="string"&&(d=d.trim(),ko(d))){const c=au(d,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!cu.has(r)||e.length!==2)return;const[i,o]=e,s=fu(i),a=fu(o);if(s!==a)if(Jl(s)&&Jl(a))for(let l=0;l<e.length;l++){const d=e[l];typeof d=="string"&&(e[l]=parseFloat(d))}else Ke[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||fg(e[i]))&&r.push(i);r.length&&gg(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ke[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Ke[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{e.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function wg(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const mu=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function yu(t){return ml(t)&&"offsetHeight"in t}const gu=30,bg=t=>!isNaN(parseFloat(t));class _g{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=re.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=re.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=bg(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new So);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>gu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gu);return gl(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _n(t,e){return new _g(t,e)}const{schedule:ns,cancel:eA}=Il(queueMicrotask,!1),pe={x:!1,y:!1};function vu(){return pe.x||pe.y}function xg(t){return t==="x"||t==="y"?pe[t]?null:(pe[t]=!0,()=>{pe[t]=!1}):pe.x||pe.y?null:(pe.x=pe.y=!0,()=>{pe.x=pe.y=!1})}function wu(t,e){const n=wg(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function bu(t){return!(t.pointerType==="touch"||vu())}function Sg(t,e,n={}){const[r,i,o]=wu(t,n),s=a=>{if(!bu(a))return;const{target:l}=a,d=e(l,a);if(typeof d!="function"||!l)return;const c=h=>{bu(h)&&(d(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const _u=(t,e)=>e?t===e?!0:_u(t,e.parentElement):!1,rs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Eg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ag(t){return Eg.has(t.tagName)||t.tabIndex!==-1}const Kr=new WeakSet;function xu(t){return e=>{e.key==="Enter"&&t(e)}}function is(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Tg=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=xu(()=>{if(Kr.has(n))return;is(n,"down");const i=xu(()=>{is(n,"up")}),o=()=>is(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Su(t){return rs(t)&&!vu()}function Pg(t,e,n={}){const[r,i,o]=wu(t,n),s=a=>{const l=a.currentTarget;if(!Su(a))return;Kr.add(l);const d=e(l,a),c=(y,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),Kr.has(l)&&Kr.delete(l),Su(y)&&typeof d=="function"&&d(y,{success:b})},h=y=>{c(y,l===window||l===document||n.useGlobalTarget||_u(l,y.target))},m=y=>{c(y,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),yu(a)&&(a.addEventListener("focus",d=>Tg(d,i)),!Ag(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Eu(t){return ml(t)&&"ownerSVGElement"in t}function kg(t){return Eu(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Cg=[...uu,Vt,Ue],Og=t=>Cg.find(lu(t)),os=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Ig extends oe{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=yu(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Rg({children:t,isPresent:e,anchorX:n,root:r}){const i=hn(),o=ot(null),s=ot({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=Ft(os);return Jn(()=>{const{width:l,height:d,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!d)return;const y=n==="left"?`left: ${h}`:`right: ${m}`;o.current.dataset.motionPopId=i;const b=document.createElement("style");a&&(b.nonce=a);const _=r??document.head;return _.appendChild(b),b.sheet&&b.sheet.insertRule(`
2
2
  [data-motion-pop-id="${i}"] {
3
3
  position: absolute !important;
4
4
  width: ${l}px !important;
@@ -6,72 +6,72 @@
6
6
  ${y}px !important;
7
7
  top: ${c}px !important;
8
8
  }
9
- `),()=>{b.contains(w)&&b.removeChild(w)}},[e]),O(Fg,{isPresent:e,childRef:o,sizeRef:s,children:yo(t,{ref:o})})}const jg=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const d=vo($g),c=hn();let h=!0,m=Ht(()=>(h=!1,{id:c,initial:e,isPresent:n,custom:i,onExitComplete:y=>{d.set(y,!0);for(const w of d.values())if(!w)return;r&&r()},register:y=>(d.set(y,!1),()=>d.delete(y))}),[n,d,r]);return o&&h&&(m={...m}),Ht(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),mt(()=>{!n&&!d.size&&r&&r()},[n]),s==="popLayout"&&(t=O(Lg,{isPresent:n,anchorX:a,root:l,children:t})),O($r.Provider,{value:m,children:t})};function $g(){return new Map}function Cu(t=!0){const e=$t($r);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=hn();mt(()=>{if(t)return i(o)},[t]);const s=kt(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,s]:[!0]}const Yr=t=>t.key||"";function Ou(t){const e=[];return ho.forEach(t,n=>{mn(n)&&e.push(n)}),e}const Iu=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[d,c]=Cu(s),h=Ht(()=>Ou(t),[t]),m=s&&!d?[]:h.map(Yr),y=ot(!0),w=ot(h),b=vo(()=>new Map),[P,x]=bt(h),[v,E]=bt(h);gl(()=>{y.current=!1,w.current=h;for(let F=0;F<v.length;F++){const D=Yr(v[F]);m.includes(D)?b.delete(D):b.get(D)!==!0&&b.set(D,!1)}},[v,m.length,m.join("-")]);const M=[];if(h!==P){let F=[...h];for(let D=0;D<v.length;D++){const q=v[D],L=Yr(q);m.includes(L)||(F.splice(D,0,q),M.push(q))}return o==="wait"&&M.length&&(F=M),E(Ou(F)),x(h),null}const{forceRender:I}=$t(go);return O(Ct,{children:v.map(F=>{const D=Yr(F),q=s&&!d?!1:h===v||m.includes(D),L=()=>{if(b.has(D))b.set(D,!0);else return;let Y=!0;b.forEach(Z=>{Z||(Y=!1)}),Y&&(I==null||I(),E(w.current),s&&(c==null||c()),r&&r())};return O(jg,{isPresent:q,initial:!y.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:q?void 0:L,anchorX:a,children:F},D)})})},Ru=te({strict:!1}),Mu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_n={};for(const t in Mu)_n[t]={isEnabled:e=>Mu[t].some(n=>!!e[n])};function Vg(t){for(const e in t)_n[e]={..._n[e],...t[e]}}const Ug=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Xr(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ug.has(t)}let Nu=t=>!Xr(t);function zg(t){typeof t=="function"&&(Nu=e=>e.startsWith("on")?!Xr(e):t(e))}try{zg(require("@emotion/is-prop-valid").default)}catch{}function qg(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Nu(i)||n===!0&&Xr(i)||!e&&!Xr(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Jr=te({});function Zr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ar(t){return typeof t=="string"||Array.isArray(t)}const ss=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],as=["initial",...ss];function Qr(t){return Zr(t.animate)||as.some(e=>ar(t[e]))}function Bu(t){return!!(Qr(t)||t.variants)}function Wg(t,e){if(Qr(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ar(n)?n:void 0,animate:ar(r)?r:void 0}}return t.inherit!==!1?e:{}}function Hg(t){const{initial:e,animate:n}=Wg(t,$t(Jr));return Ht(()=>({initial:e,animate:n}),[Du(e),Du(n)])}function Du(t){return Array.isArray(t)?t.join(" "):t}const cr={};function Gg(t){for(const e in t)cr[e]=t[e],Po(e)&&(cr[e].isCSSVariable=!0)}function Fu(t,{layout:e,layoutId:n}){return wn.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cr[t]||t==="opacity")}const Kg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yg=vn.length;function Xg(t,e,n){let r="",i=!0;for(let o=0;o<Yg;o++){const s=vn[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=wu(a,es[s]);if(!l){i=!1;const c=Kg[s]||s;r+=`${c}(${d}) `}n&&(e[s]=d)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function cs(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const d=e[l];if(wn.has(l)){s=!0;continue}else if(Po(l)){i[l]=d;continue}else{const c=wu(d,es[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(e.transform||(s||n?r.transform=Xg(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${d} ${c}`}}const ls=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lu(t,e,n){for(const r in e)!Zt(e[r])&&!Fu(r,n)&&(t[r]=e[r])}function Jg({transformTemplate:t},e){return Ht(()=>{const n=ls();return cs(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Zg(t,e){const n=t.style||{},r={};return Lu(r,n,t),Object.assign(r,Jg(t,e)),r}function Qg(t,e){const n={},r=Zg(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const t0={offset:"stroke-dashoffset",array:"stroke-dasharray"},e0={offset:"strokeDashoffset",array:"strokeDasharray"};function n0(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?t0:e0;t[o.offset]=it.transform(-r);const s=it.transform(e),a=it.transform(n);t[o.array]=`${s} ${a}`}function ju(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,d,c){if(cs(t,a,d),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:m}=t;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&n0(h,i,o,s,!1)}const $u=()=>({...ls(),attrs:{}}),Vu=t=>typeof t=="string"&&t.toLowerCase()==="svg";function r0(t,e,n,r){const i=Ht(()=>{const o=$u();return ju(o,e,Vu(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Lu(o,t.style,t),i.style={...o,...i.style}}return i}const i0=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function us(t){return typeof t!="string"||t.includes("-")?!1:!!(i0.indexOf(t)>-1||/[A-Z]/u.test(t))}function o0(t,e,n,{latestValues:r},i,o=!1){const a=(us(t)?r0:Qg)(e,r,i,t),l=qg(e,typeof t=="string",o),d=t!==Ct?{...l,...a,ref:n}:{},{children:c}=e,h=Ht(()=>Zt(c)?c.get():c,[c]);return nt(t,{...d,children:h})}function Uu(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function fs(t,e,n,r){if(typeof e=="function"){const[i,o]=Uu(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Uu(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function ti(t){return Zt(t)?t.get():t}function s0({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:a0(n,r,i,t),renderState:e()}}function a0(t,e,n,r){const i={},o=r(t,{});for(const m in o)i[m]=ti(o[m]);let{initial:s,animate:a}=t;const l=Qr(t),d=Bu(t);e&&d&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const h=c?a:s;if(h&&typeof h!="boolean"&&!Zr(h)){const m=Array.isArray(h)?h:[h];for(let y=0;y<m.length;y++){const w=fs(t,m[y]);if(w){const{transitionEnd:b,transition:P,...x}=w;for(const v in x){let E=x[v];if(Array.isArray(E)){const M=c?E.length-1:0;E=E[M]}E!==null&&(i[v]=E)}for(const v in b)i[v]=b[v]}}}return i}const zu=t=>(e,n)=>{const r=$t(Jr),i=$t($r),o=()=>s0(t,e,r,i);return n?o():vo(o)};function ds(t,e,n){var o;const{style:r}=t,i={};for(const s in r)(Zt(r[s])||e.style&&Zt(e.style[s])||Fu(s,t)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const c0=zu({scrapeMotionValuesFromProps:ds,createRenderState:ls});function qu(t,e,n){const r=ds(t,e,n);for(const i in t)if(Zt(t[i])||Zt(e[i])){const o=vn.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}const l0=zu({scrapeMotionValuesFromProps:qu,createRenderState:$u}),u0=Symbol.for("motionComponentSymbol");function xn(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function f0(t,e,n){return kt(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):xn(n)&&(n.current=r))},[e])}const hs=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Wu="data-"+hs("framerAppearId"),Hu=te({});function d0(t,e,n,r,i){var b,P;const{visualElement:o}=$t(Jr),s=$t(Ru),a=$t($r),l=$t(os).reducedMotion,d=ot(null);r=r||s.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=d.current,h=$t(Hu);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&h0(d.current,n,i,h);const m=ot(!1);Xn(()=>{c&&m.current&&c.update(n,a)});const y=n[Wu],w=ot(!!y&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,y))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,y)));return gl(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),w.current&&c.animationState&&c.animationState.animateChanges())}),mt(()=>{c&&(!w.current&&c.animationState&&c.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)==null||x.call(window,y)}),w.current=!1),c.enteringChildren=void 0)}),c}function h0(t,e,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gu(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&xn(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:d})}function Gu(t){if(t)return t.options.allowProjection!==!1?t.projection:Gu(t.parent)}function ps(t,{forwardMotionProps:e=!1}={},n,r){n&&Vg(n);const i=us(t)?l0:c0;function o(a,l){let d;const c={...$t(os),...a,layoutId:p0(a)},{isStatic:h}=c,m=Hg(a),y=i(a,h);if(!h&&wo){m0();const w=y0(c);d=w.MeasureLayout,m.visualElement=d0(t,y,c,r,w.ProjectionNode)}return O(Jr.Provider,{value:m,children:[d&&m.visualElement?O(d,{visualElement:m.visualElement,...c}):null,o0(t,a,f0(y,m.visualElement,l),y,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=je(o);return s[u0]=t,s}function p0({layoutId:t}){const e=$t(go).id;return e&&t!==void 0?e+"-"+t:t}function m0(t,e){$t(Ru).strict}function y0(t){const{drag:e,layout:n}=_n;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function g0(t,e){if(typeof Proxy>"u")return ps;const n=new Map,r=(o,s)=>ps(o,s,t,e),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,ps(s,void 0,t,e)),n.get(s))})}function Ku({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function v0({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function w0(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ms(t){return t===void 0||t===1}function ys({scale:t,scaleX:e,scaleY:n}){return!ms(t)||!ms(e)||!ms(n)}function Xe(t){return ys(t)||Yu(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Yu(t){return Xu(t.x)||Xu(t.y)}function Xu(t){return t&&t!=="0%"}function ei(t,e,n){const r=t-n,i=e*r;return n+i}function Ju(t,e,n,r,i){return i!==void 0&&(t=ei(t,i,r)),ei(t,n,r)+e}function gs(t,e=0,n=1,r,i){t.min=Ju(t.min,e,n,r,i),t.max=Ju(t.max,e,n,r,i)}function Zu(t,{x:e,y:n}){gs(t.x,e.translate,e.scale,e.originPoint),gs(t.y,n.translate,n.scale,n.originPoint)}const Qu=.999999999999,tf=1.0000000000001;function b0(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Sn(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Zu(t,s)),r&&Xe(o.latestValues)&&Sn(t,o.latestValues))}e.x<tf&&e.x>Qu&&(e.x=1),e.y<tf&&e.y>Qu&&(e.y=1)}function En(t,e){t.min=t.min+e,t.max=t.max+e}function ef(t,e,n,r,i=.5){const o=Mt(t.min,t.max,i);gs(t,e,n,o,r)}function Sn(t,e){ef(t.x,e.x,e.scaleX,e.scale,e.originX),ef(t.y,e.y,e.scaleY,e.scale,e.originY)}function nf(t,e){return Ku(w0(t.getBoundingClientRect(),e))}function _0(t,e,n){const r=nf(t,n),{scroll:i}=e;return i&&(En(r.x,i.offset.x),En(r.y,i.offset.y)),r}const rf=()=>({translate:0,scale:1,origin:0,originPoint:0}),An=()=>({x:rf(),y:rf()}),of=()=>({min:0,max:0}),Ft=()=>({x:of(),y:of()}),vs={current:null},sf={current:!1};function x0(){if(sf.current=!0,!!wo)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>vs.current=t.matches;t.addEventListener("change",e),e()}else vs.current=!1}const E0=new WeakMap;function S0(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Zt(i))t.addValue(r,i);else if(Zt(o))t.addValue(r,bn(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const s=t.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=t.getStaticValue(r);t.addValue(r,bn(s!==void 0?s:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const af=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class A0{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=re.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ot.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Qr(n),this.isVariantNode=Bu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];l[m]!==void 0&&Zt(y)&&y.set(l[m])}}mount(e){var n;this.current=e,E0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),sf.current||x0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vs.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),$e(this.notifyUpdate),$e(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=wn.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in _n){const n=_n[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<af.length;r++){const i=af[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=e[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=S0(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=bn(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(vl(r)||bl(r))?r=parseFloat(r):!Dg(r)&&Ue.test(n)&&(r=vu(e,n)),this.setBaseTarget(e,Zt(r)?r.get():r)),Zt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=fs(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Zt(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Eo),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){ns.render(this.render)}}class cf extends A0{constructor(){super(...arguments),this.KeyframeResolver=Sg}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Zt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function lf(t,{style:e,vars:n},r,i){const o=t.style;let s;for(s in e)o[s]=e[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function T0(t){return window.getComputedStyle(t)}class P0 extends cf{constructor(){super(...arguments),this.type="html",this.renderInstance=lf}readValueFromInstance(e,n){var r;if(wn.has(n))return(r=this.projection)!=null&&r.isProjecting?Ho(n):qy(e,n);{const i=T0(e),o=(Po(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return nf(e,n)}build(e,n,r){cs(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ds(e,n,r)}}const uf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function k0(t,e,n,r){lf(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(uf.has(i)?i:hs(i),e.attrs[i])}class C0 extends cf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(wn.has(n)){const r=gu(n);return r&&r.default||0}return n=uf.has(n)?n:hs(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return qu(e,n,r)}build(e,n,r){ju(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){k0(e,n,r,i)}mount(e){this.isSVGTag=Vu(e.tagName),super.mount(e)}}const O0=(t,e)=>us(t)?new C0(e):new P0(e,{allowProjection:t!==Ct});function Tn(t,e,n){const r=t.getProps();return fs(r,e,n!==void 0?n:r.custom,t)}const ws=t=>Array.isArray(t);function I0(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,bn(n))}function R0(t){return ws(t)?t[t.length-1]||0:t}function M0(t,e){const n=Tn(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=R0(o[s]);I0(t,s,a)}}function N0(t){return!!(Zt(t)&&t.add)}function bs(t,e){const n=t.getValue("willChange");if(N0(n))return n.add(e);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function ff(t){return t.props[Wu]}const B0=t=>t!==null;function D0(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(B0),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const F0={type:"spring",stiffness:500,damping:25,restSpeed:10},L0=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),j0={type:"keyframes",duration:.8},$0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V0=(t,{keyframes:e})=>e.length>2?j0:wn.has(t)?t.startsWith("scale")?L0(e[1]):F0:$0;function U0({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:d,...c}){return!!Object.keys(c).length}const _s=(t,e,n,r={},i,o)=>s=>{const a=Qo(r,t)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-we(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:m=>{e.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};U0(a)||Object.assign(c,V0(t,c)),c.duration&&(c.duration=we(c.duration)),c.repeatDelay&&(c.repeatDelay=we(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Zo(c),c.delay===0&&(h=!0)),(Re.instantAnimations||Re.skipAnimations)&&(h=!0,Zo(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const m=D0(c.keyframes,a);if(m!==void 0){Ot.update(()=>{c.onUpdate(m),c.onComplete()});return}}return a.isSync?new zo(c):new hg(c)};function z0({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function df(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;r&&(o=r);const l=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),m=a[c];if(m===void 0||d&&z0(d,c))continue;const y={delay:n,...Qo(o||{},c)},w=h.get();if(w!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===w&&!y.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const x=ff(t);if(x){const v=window.MotionHandoffAnimation(x,c,Ot);v!==null&&(y.startTime=v,b=!0)}}bs(t,c),h.start(_s(c,h,m,t.shouldReduceMotion&&du.has(c)?{type:!1}:y,t,b));const P=h.animation;P&&l.push(P)}return s&&Promise.all(l).then(()=>{Ot.update(()=>{s&&M0(t,s)})}),l}function hf(t,e,n,r=0,i=1){const o=Array.from(t).sort((d,c)=>d.sortNodePosition(c)).indexOf(e),s=t.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function xs(t,e,n={}){var l;const r=Tn(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(df(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:m}=i;return q0(t,e,d,c,h,m,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[d,c]=a==="beforeChildren"?[o,s]:[s,o];return d().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function q0(t,e,n=0,r=0,i=0,o=1,s){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(xs(l,e,{...s,delay:n+(typeof r=="function"?0:r)+hf(t.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function W0(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>xs(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=xs(t,e,n);else{const i=typeof e=="function"?Tn(t,e,n.custom):e;r=Promise.all(df(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function pf(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const H0=as.length;function mf(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?mf(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<H0;n++){const r=as[n],i=t.props[r];(ar(i)||i===!1)&&(e[r]=i)}return e}const G0=[...ss].reverse(),K0=ss.length;function Y0(t){return e=>Promise.all(e.map(({animation:n,options:r})=>W0(t,n,r)))}function X0(t){let e=Y0(t),n=yf(),r=!0;const i=l=>(d,c)=>{var m;const h=Tn(t,c,l==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:y,transitionEnd:w,...b}=h;d={...d,...b,...w}}return d};function o(l){e=l(t)}function s(l){const{props:d}=t,c=mf(t.parent)||{},h=[],m=new Set;let y={},w=1/0;for(let P=0;P<K0;P++){const x=G0[P],v=n[x],E=d[x]!==void 0?d[x]:c[x],M=ar(E),I=x===l?v.isActive:null;I===!1&&(w=P);let F=E===c[x]&&E!==d[x]&&M;if(F&&r&&t.manuallyAnimateOnMount&&(F=!1),v.protectedKeys={...y},!v.isActive&&I===null||!E&&!v.prevProp||Zr(E)||typeof E=="boolean")continue;const D=J0(v.prevProp,E);let q=D||x===l&&v.isActive&&!F&&M||P>w&&M,L=!1;const Y=Array.isArray(E)?E:[E];let Z=Y.reduce(i(x),{});I===!1&&(Z={});const{prevResolvedValues:et={}}=v,st={...et,...Z},At=at=>{q=!0,m.has(at)&&(L=!0,m.delete(at)),v.needsAnimating[at]=!0;const ht=t.getValue(at);ht&&(ht.liveStyle=!1)};for(const at in st){const ht=Z[at],U=et[at];if(y.hasOwnProperty(at))continue;let H=!1;ws(ht)&&ws(U)?H=!pf(ht,U):H=ht!==U,H?ht!=null?At(at):m.add(at):ht!==void 0&&m.has(at)?At(at):v.protectedKeys[at]=!0}v.prevProp=E,v.prevResolvedValues=Z,v.isActive&&(y={...y,...Z}),r&&t.blockInitialAnimation&&(q=!1);const dt=F&&D;q&&(!dt||L)&&h.push(...Y.map(at=>{const ht={type:x};if(typeof at=="string"&&r&&!dt&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,H=Tn(U,at);if(U.enteringChildren&&H){const{delayChildren:G}=H.transition||{};ht.delay=hf(U.enteringChildren,t,G)}}return{animation:at,options:ht}}))}if(m.size){const P={};if(typeof d.initial!="boolean"){const x=Tn(t,Array.isArray(d.initial)?d.initial[0]:d.initial);x&&x.transition&&(P.transition=x.transition)}m.forEach(x=>{const v=t.getBaseTarget(x),E=t.getValue(x);E&&(E.liveStyle=!0),P[x]=v??null}),h.push({animation:P})}let b=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(b=!1),r=!1,b?e(h):Promise.resolve()}function a(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(m=>{var y;return(y=m.animationState)==null?void 0:y.setActive(l,d)}),n[l].isActive=d;const c=s(l);for(const m in n)n[m].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=yf(),r=!0}}}function J0(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!pf(e,t):!1}function Je(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yf(){return{animate:Je(!0),whileInView:Je(),whileHover:Je(),whileTap:Je(),whileDrag:Je(),whileFocus:Je(),exit:Je()}}class ze{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Z0 extends ze{constructor(e){super(e),e.animationState||(e.animationState=X0(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Q0=0;class tv extends ze{constructor(){super(...arguments),this.id=Q0++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ev={animation:{Feature:Z0},exit:{Feature:tv}};function lr(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function ur(t){return{point:{x:t.pageX,y:t.pageY}}}const nv=t=>e=>rs(e)&&t(e,ur(e));function fr(t,e,n,r){return lr(t,e,nv(n),r)}const gf=1e-4,rv=1-gf,iv=1+gf,vf=.01,ov=0-vf,sv=0+vf;function ee(t){return t.max-t.min}function av(t,e,n){return Math.abs(t-e)<=n}function wf(t,e,n,r=.5){t.origin=r,t.originPoint=Mt(e.min,e.max,t.origin),t.scale=ee(n)/ee(e),t.translate=Mt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=rv&&t.scale<=iv||isNaN(t.scale))&&(t.scale=1),(t.translate>=ov&&t.translate<=sv||isNaN(t.translate))&&(t.translate=0)}function dr(t,e,n,r){wf(t.x,e.x,n.x,r?r.originX:void 0),wf(t.y,e.y,n.y,r?r.originY:void 0)}function bf(t,e,n){t.min=n.min+e.min,t.max=t.min+ee(e)}function cv(t,e,n){bf(t.x,e.x,n.x),bf(t.y,e.y,n.y)}function _f(t,e,n){t.min=e.min-n.min,t.max=t.min+ee(e)}function hr(t,e,n){_f(t.x,e.x,n.x),_f(t.y,e.y,n.y)}function le(t){return[t("x"),t("y")]}const xf=({current:t})=>t?t.ownerDocument.defaultView:null,Ef=(t,e)=>Math.abs(t-e);function lv(t,e){const n=Ef(t.x,e.x),r=Ef(t.y,e.y);return Math.sqrt(n**2+r**2)}class Sf{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Ss(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,w=lv(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!w)return;const{point:b}=m,{timestamp:P}=Xt;this.history.push({...b,timestamp:P});const{onStart:x,onMove:v}=this.handlers;y||(x&&x(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Es(y,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:w,onSessionEnd:b,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ss(m.type==="pointercancel"?this.lastMoveEventInfo:Es(y,this.transformPagePoint),this.history);this.startEvent&&w&&w(m,x),b&&b(m,x)},!rs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=ur(e),l=Es(a,this.transformPagePoint),{point:d}=l,{timestamp:c}=Xt;this.history=[{...d,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,Ss(l,this.history)),this.removeListeners=Zn(fr(this.contextWindow,"pointermove",this.handlePointerMove),fr(this.contextWindow,"pointerup",this.handlePointerUp),fr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$e(this.updatePoint)}}function Es(t,e){return e?{point:e(t.point)}:t}function Af(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ss({point:t},e){return{point:t,delta:Af(t,Tf(e)),offset:Af(t,uv(e)),velocity:fv(e,.1)}}function uv(t){return t[0]}function Tf(t){return t[t.length-1]}function fv(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Tf(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>we(e)));)n--;if(!r)return{x:0,y:0};const o=be(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function dv(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Mt(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Mt(n,t,r.max):Math.min(t,n)),t}function Pf(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function hv(t,{top:e,left:n,bottom:r,right:i}){return{x:Pf(t.x,n,i),y:Pf(t.y,e,r)}}function kf(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function pv(t,e){return{x:kf(t.x,e.x),y:kf(t.y,e.y)}}function mv(t,e){let n=.5;const r=ee(t),i=ee(e);return i>r?n=Qn(e.min,e.max-r,t.min):r>i&&(n=Qn(t.min,t.max-i,e.min)),Ie(0,1,n)}function yv(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const As=.35;function gv(t=As){return t===!1?t=0:t===!0&&(t=As),{x:Cf(t,"left","right"),y:Cf(t,"top","bottom")}}function Cf(t,e,n){return{min:Of(t,e),max:Of(t,n)}}function Of(t,e){return typeof t=="number"?t:t[e]||0}const vv=new WeakMap;class wv{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ur(h).point)},s=(h,m)=>{const{drag:y,dragPropagation:w,onDragStart:b}=this.getProps();if(y&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kg(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),le(x=>{let v=this.getAxisMotionValue(x).get()||0;if(_e.test(v)){const{projection:E}=this.visualElement;if(E&&E.layout){const M=E.layout.layoutBox[x];M&&(v=ee(M)*(parseFloat(v)/100))}}this.originPoint[x]=v}),b&&Ot.postRender(()=>b(h,m)),bs(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m;const{dragPropagation:y,dragDirectionLock:w,onDirectionLock:b,onDrag:P}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:x}=m;if(w&&this.currentDirection===null){this.currentDirection=bv(x),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",m.point,x),this.updateAxis("y",m.point,x),this.visualElement.render(),P&&P(h,m)},l=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m,this.stop(h,m),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>le(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)==null?void 0:m.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sf(e,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:xf(this.visualElement)})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Ot.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!ni(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=dv(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&xn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=hv(r.layoutBox,e):this.constraints=!1,this.elastic=gv(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&le(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=yv(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xn(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=_0(r,i.root,this.visualElement.getTransformPagePoint());let s=pv(i.layout.layoutBox,o);if(n){const a=n(v0(s));this.hasMutatedConstraints=!!a,a&&(s=Ku(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=le(c=>{if(!ni(c,n,this.currentDirection))return;let h=l&&l[c]||{};s&&(h={min:0,max:0});const m=i?200:1e6,y=i?40:1e7,w={type:"inertia",velocity:r?e[c]:0,bounceStiffness:m,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,w)});return Promise.all(d).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return bs(this.visualElement,e),r.start(_s(e,r,0,n,this.visualElement,!1))}stopAnimation(){le(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){le(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){le(n=>{const{drag:r}=this.getProps();if(!ni(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-Mt(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};le(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=mv({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),le(s=>{if(!ni(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];a.set(Mt(l,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;vv.set(this.visualElement,this);const e=this.visualElement.current,n=fr(e,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ot.read(r);const s=lr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(le(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=As,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ni(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function bv(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class _v extends ze{constructor(e){super(e),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new wv(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const If=t=>(e,n)=>{t&&Ot.postRender(()=>t(e,n))};class xv extends ze{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(e){this.session=new Sf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xf(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:If(e),onStart:If(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Ot.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=fr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ri={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rf(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const pr={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(it.test(t))t=parseFloat(t);else return t;const n=Rf(t,e.target.x),r=Rf(t,e.target.y);return`${n}% ${r}%`}},Ev={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ue.parse(t);if(i.length>5)return r;const o=Ue.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const d=Mt(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};let Ts=!1;class Sv extends oe{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Gg(Av),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Ts&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ri.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,Ts=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Ot.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ns.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;Ts=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Mf(t){const[e,n]=Cu(),r=$t(go);return O(Sv,{...t,layoutGroup:r,switchLayoutGroup:$t(Hu),isPresent:e,safeToRemove:n})}const Av={borderRadius:{...pr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pr,borderTopRightRadius:pr,borderBottomLeftRadius:pr,borderBottomRightRadius:pr,boxShadow:Ev};function Tv(t,e,n){const r=Zt(t)?t:bn(t);return r.start(_s("",r,e,n)),r.animation}const Pv=(t,e)=>t.depth-e.depth;class kv{constructor(){this.children=[],this.isDirty=!1}add(e){bo(this.children,e),this.isDirty=!0}remove(e){_o(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Pv),this.isDirty=!1,this.children.forEach(e)}}function Cv(t,e){const n=re.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&($e(r),t(o-e))};return Ot.setup(r,!0),()=>$e(r)}const Nf=["TopLeft","TopRight","BottomLeft","BottomRight"],Ov=Nf.length,Bf=t=>typeof t=="string"?parseFloat(t):t,Df=t=>typeof t=="number"||it.test(t);function Iv(t,e,n,r,i,o){i?(t.opacity=Mt(0,n.opacity??1,Rv(r)),t.opacityExit=Mt(e.opacity??1,0,Mv(r))):o&&(t.opacity=Mt(e.opacity??1,n.opacity??1,r));for(let s=0;s<Ov;s++){const a=`border${Nf[s]}Radius`;let l=Ff(e,a),d=Ff(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Df(l)===Df(d)?(t[a]=Math.max(Mt(Bf(l),Bf(d),r),0),(_e.test(d)||_e.test(l))&&(t[a]+="%")):t[a]=d}(e.rotate||n.rotate)&&(t.rotate=Mt(e.rotate||0,n.rotate||0,r))}function Ff(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Rv=Lf(0,.5,kl),Mv=Lf(.5,.95,ce);function Lf(t,e,n){return r=>r<t?0:r>e?1:n(Qn(t,e,r))}function jf(t,e){t.min=e.min,t.max=e.max}function ue(t,e){jf(t.x,e.x),jf(t.y,e.y)}function $f(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Vf(t,e,n,r,i){return t-=e,t=ei(t,1/n,r),i!==void 0&&(t=ei(t,1/i,r)),t}function Nv(t,e=0,n=1,r=.5,i,o=t,s=t){if(_e.test(e)&&(e=parseFloat(e),e=Mt(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=Mt(o.min,o.max,r);t===o&&(a-=e),t.min=Vf(t.min,e,n,a,i),t.max=Vf(t.max,e,n,a,i)}function Uf(t,e,[n,r,i],o,s){Nv(t,e[n],e[r],e[i],e.scale,o,s)}const Bv=["x","scaleX","originX"],Dv=["y","scaleY","originY"];function zf(t,e,n,r){Uf(t.x,e,Bv,n?n.x:void 0,r?r.x:void 0),Uf(t.y,e,Dv,n?n.y:void 0,r?r.y:void 0)}function qf(t){return t.translate===0&&t.scale===1}function Wf(t){return qf(t.x)&&qf(t.y)}function Hf(t,e){return t.min===e.min&&t.max===e.max}function Fv(t,e){return Hf(t.x,e.x)&&Hf(t.y,e.y)}function Gf(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Kf(t,e){return Gf(t.x,e.x)&&Gf(t.y,e.y)}function Yf(t){return ee(t.x)/ee(t.y)}function Xf(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Lv{constructor(){this.members=[]}add(e){bo(this.members,e),e.scheduleRender()}remove(e){if(_o(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jv(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:h,rotateY:m,skewX:y,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ps=["","X","Y","Z"],$v=1e3;let Vv=0;function ks(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Jf(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ff(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ot,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Jf(r)}function Zf({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=Vv++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qv),this.nodes.forEach(Kv),this.nodes.forEach(Yv),this.nodes.forEach(Wv)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new kv)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Eo),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=ku(s)&&!Ng(s),this.instance=s;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const m=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{h=window.innerWidth}),t(s,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,c&&c(),c=Cv(m,250),ri.hasAnimatedSinceResize&&(ri.hasAnimatedSinceResize=!1,this.nodes.forEach(ed)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||tw,{onLayoutAnimationStart:b,onLayoutAnimationComplete:P}=d.getProps(),x=!this.targetLayout||!Kf(this.targetLayout,y),v=!h&&m;if(this.options.layoutRoot||this.resumeFrom||v||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...Qo(w,"layout"),onPlay:b,onComplete:P};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(c,v)}else h||ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$e(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Xv),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Qf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(td);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gv),this.nodes.forEach(Uv),this.nodes.forEach(zv)):this.nodes.forEach(td),this.clearAllSnapshots();const a=re.now();Xt.delta=Ie(0,1e3/60,a-Xt.timestamp),Xt.timestamp=a,Xt.isProcessing=!0,To.update.process(Xt),To.preRender.process(Xt),To.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ns.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hv),this.sharedNodes.forEach(Jv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ee(this.snapshot.measuredBox.x)&&!ee(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Wf(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;s&&this.instance&&(a||Xe(this.latestValues)||c)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),ew(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Ft();const a=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(nw))){const{scroll:c}=this.root;c&&(En(a.x,c.offset.x),En(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=Ft();if(ue(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let d=0;d<this.path.length;d++){const c=this.path[d],{scroll:h,options:m}=c;c!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&ue(a,s),En(a.x,h.offset.x),En(a.y,h.offset.y))}return a}applyTransform(s,a=!1){const l=Ft();ue(l,s);for(let d=0;d<this.path.length;d++){const c=this.path[d];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Sn(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Xe(c.latestValues)&&Sn(l,c.latestValues)}return Xe(this.latestValues)&&Sn(l,this.latestValues),l}removeTransform(s){const a=Ft();ue(a,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!Xe(d.latestValues))continue;ys(d.latestValues)&&d.updateSnapshot();const c=Ft(),h=d.measurePageBox();ue(c,h),zf(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return Xe(this.latestValues)&&zf(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=Xt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),hr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ue(this.target,this.layout.layoutBox),Zu(this.target,this.targetDelta)):ue(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),hr(this.relativeTargetOrigin,this.target,y.target),ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ys(this.parent.latestValues)||Yu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var w;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(l=!1),l)return;const{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;ue(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;b0(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Ft());const{target:y}=s;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($f(this.prevProjectionDelta.x,this.projectionDelta.x),$f(this.prevProjectionDelta.y,this.projectionDelta.y)),dr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!Xf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=An(),this.projectionDelta=An(),this.projectionDeltaWithTransform=An()}setAnimationOrigin(s,a=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},h=An();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=Ft(),y=l?l.source:void 0,w=this.layout?this.layout.source:void 0,b=y!==w,P=this.getStack(),x=!P||P.members.length<=1,v=!!(b&&!x&&this.options.crossfade===!0&&!this.path.some(Qv));this.animationProgress=0;let E;this.mixTargetDelta=M=>{const I=M/1e3;nd(h.x,s.x,I),nd(h.y,s.y,I),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hr(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zv(this.relativeTarget,this.relativeTargetOrigin,m,I),E&&Fv(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Ft()),ue(E,this.relativeTarget)),b&&(this.animationValues=c,Iv(c,d,this.latestValues,I,v,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,d;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&($e(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{ri.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bn(0)),this.currentAnimation=Tv(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($v),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:c}=s;if(!(!a||!l||!d)){if(this!==s&&this.layout&&d&&ad(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Ft();const h=ee(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const m=ee(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}ue(a,l),Sn(a,c),dr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Lv),this.sharedNodes.get(s).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&ks("z",s,d,this.animationValues);for(let c=0;c<Ps.length;c++)ks(`rotate${Ps[c]}`,s,d,this.animationValues),ks(`skew${Ps[c]}`,s,d,this.animationValues);s.render();for(const c in d)s.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ti(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ti(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=jv(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),s.transform=h;const{x:m,y}=this.projectionDelta;s.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,d.animationValues?s.opacity=d===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=d===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const w in cr){if(c[w]===void 0)continue;const{correct:b,applyTo:P,isCSSVariable:x}=cr[w],v=h==="none"?c[w]:b(c[w],d);if(P){const E=P.length;for(let M=0;M<E;M++)s[P[M]]=v}else x?this.options.visualElement.renderState.vars[w]=v:s[w]=v}this.options.layoutId&&(s.pointerEvents=d===this?ti(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Qf),this.root.sharedNodes.clear()}}}function Uv(t){t.updateLayout()}function zv(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=e.source!==t.layout.source;o==="size"?le(h=>{const m=s?e.measuredBox[h]:e.layoutBox[h],y=ee(m);m.min=r[h].min,m.max=m.min+y}):ad(o,e.layoutBox,r)&&le(h=>{const m=s?e.measuredBox[h]:e.layoutBox[h],y=ee(r[h]);m.max=m.min+y,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+y)});const a=An();dr(a,r,e.layoutBox);const l=An();s?dr(l,t.applyTransform(i,!0),e.measuredBox):dr(l,r,e.layoutBox);const d=!Wf(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:y}=h;if(m&&y){const w=Ft();hr(w,e.layoutBox,m.layoutBox);const b=Ft();hr(b,r,y.layoutBox),Kf(w,b)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=w,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:d,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function qv(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Wv(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hv(t){t.clearSnapshot()}function Qf(t){t.clearMeasurements()}function td(t){t.isLayoutDirty=!1}function Gv(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ed(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Kv(t){t.resolveTargetDelta()}function Yv(t){t.calcProjection()}function Xv(t){t.resetSkewAndRotation()}function Jv(t){t.removeLeadSnapshot()}function nd(t,e,n){t.translate=Mt(e.translate,0,n),t.scale=Mt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function rd(t,e,n,r){t.min=Mt(e.min,n.min,r),t.max=Mt(e.max,n.max,r)}function Zv(t,e,n,r){rd(t.x,e.x,n.x,r),rd(t.y,e.y,n.y,r)}function Qv(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const tw={duration:.45,ease:[.4,0,.1,1]},id=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),od=id("applewebkit/")&&!id("chrome/")?Math.round:ce;function sd(t){t.min=od(t.min),t.max=od(t.max)}function ew(t){sd(t.x),sd(t.y)}function ad(t,e,n){return t==="position"||t==="preserve-aspect"&&!av(Yf(e),Yf(n),.2)}function nw(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const rw=Zf({attachResizeListener:(t,e)=>lr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cs={current:void 0},cd=Zf({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Cs.current){const t=new rw({});t.mount(window),t.setOptions({layoutScroll:!0}),Cs.current=t}return Cs.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),iw={pan:{Feature:xv},drag:{Feature:_v,ProjectionNode:cd,MeasureLayout:Mf}};function ld(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ot.postRender(()=>o(e,ur(e)))}class ow extends ze{mount(){const{current:e}=this.node;e&&(this.unmount=Cg(e,(n,r)=>(ld(this.node,r,"Start"),i=>ld(this.node,i,"End"))))}unmount(){}}class sw extends ze{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zn(lr(this.node.current,"focus",()=>this.onFocus()),lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ud(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ot.postRender(()=>o(e,ur(e)))}class aw extends ze{mount(){const{current:e}=this.node;e&&(this.unmount=Mg(e,(n,r)=>(ud(this.node,r,"Start"),(i,{success:o})=>ud(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Os=new WeakMap,Is=new WeakMap,cw=t=>{const e=Os.get(t.target);e&&e(t)},lw=t=>{t.forEach(cw)};function uw({root:t,...e}){const n=t||document;Is.has(n)||Is.set(n,{});const r=Is.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(lw,{root:t,...e})),r[i]}function fw(t,e,n){const r=uw(e);return Os.set(t,n),r.observe(t),()=>{Os.delete(t),r.unobserve(t)}}const dw={some:0,all:1};class hw extends ze{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:dw[i]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),m=d?c:h;m&&m(l)};return fw(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(pw(e,n))&&this.startObserver()}unmount(){}}function pw({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const mw={...ev,...{inView:{Feature:hw},tap:{Feature:aw},focus:{Feature:sw},hover:{Feature:ow}},...iw,...{layout:{ProjectionNode:cd,MeasureLayout:Mf}}},Ze=g0(mw,O0);/**
9
+ `),()=>{_.contains(b)&&_.removeChild(b)}},[e]),C(Ig,{isPresent:e,childRef:o,sizeRef:s,children:yo(t,{ref:o})})}const Mg=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const d=vo(Ng),c=hn();let h=!0,m=Ht(()=>(h=!1,{id:c,initial:e,isPresent:n,custom:i,onExitComplete:y=>{d.set(y,!0);for(const b of d.values())if(!b)return;r&&r()},register:y=>(d.set(y,!1),()=>d.delete(y))}),[n,d,r]);return o&&h&&(m={...m}),Ht(()=>{d.forEach((y,b)=>d.set(b,!1))},[n]),mt(()=>{!n&&!d.size&&r&&r()},[n]),s==="popLayout"&&(t=C(Rg,{isPresent:n,anchorX:a,root:l,children:t})),C($r.Provider,{value:m,children:t})};function Ng(){return new Map}function Au(t=!0){const e=Ft($r);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=hn();mt(()=>{if(t)return i(o)},[t]);const s=Ct(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,s]:[!0]}const Yr=t=>t.key||"";function Tu(t){const e=[];return ho.forEach(t,n=>{mn(n)&&e.push(n)}),e}const Pu=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[d,c]=Au(s),h=Ht(()=>Tu(t),[t]),m=s&&!d?[]:h.map(Yr),y=ot(!0),b=ot(h),_=vo(()=>new Map),[P,x]=wt(h),[v,S]=wt(h);hl(()=>{y.current=!1,b.current=h;for(let F=0;F<v.length;F++){const D=Yr(v[F]);m.includes(D)?_.delete(D):_.get(D)!==!0&&_.set(D,!1)}},[v,m.length,m.join("-")]);const M=[];if(h!==P){let F=[...h];for(let D=0;D<v.length;D++){const W=v[D],L=Yr(W);m.includes(L)||(F.splice(D,0,W),M.push(W))}return o==="wait"&&M.length&&(F=M),S(Tu(F)),x(h),null}const{forceRender:I}=Ft(go);return C(kt,{children:v.map(F=>{const D=Yr(F),W=s&&!d?!1:h===v||m.includes(D),L=()=>{if(_.has(D))_.set(D,!0);else return;let Y=!0;_.forEach(Z=>{Z||(Y=!1)}),Y&&(I==null||I(),S(b.current),s&&(c==null||c()),r&&r())};return C(Mg,{isPresent:W,initial:!y.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:W?void 0:L,anchorX:a,children:F},D)})})},ku=te({strict:!1}),Cu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xn={};for(const t in Cu)xn[t]={isEnabled:e=>Cu[t].some(n=>!!e[n])};function Bg(t){for(const e in t)xn[e]={...xn[e],...t[e]}}const Dg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Xr(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Dg.has(t)}let Ou=t=>!Xr(t);function Fg(t){typeof t=="function"&&(Ou=e=>e.startsWith("on")?!Xr(e):t(e))}try{Fg(require("@emotion/is-prop-valid").default)}catch{}function Lg(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ou(i)||n===!0&&Xr(i)||!e&&!Xr(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Jr=te({});function Zr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function cr(t){return typeof t=="string"||Array.isArray(t)}const ss=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],as=["initial",...ss];function Qr(t){return Zr(t.animate)||as.some(e=>cr(t[e]))}function Iu(t){return!!(Qr(t)||t.variants)}function jg(t,e){if(Qr(t)){const{initial:n,animate:r}=t;return{initial:n===!1||cr(n)?n:void 0,animate:cr(r)?r:void 0}}return t.inherit!==!1?e:{}}function $g(t){const{initial:e,animate:n}=jg(t,Ft(Jr));return Ht(()=>({initial:e,animate:n}),[Ru(e),Ru(n)])}function Ru(t){return Array.isArray(t)?t.join(" "):t}const lr={};function Vg(t){for(const e in t)lr[e]=t[e],Po(e)&&(lr[e].isCSSVariable=!0)}function Mu(t,{layout:e,layoutId:n}){return bn.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!lr[t]||t==="opacity")}const Ug={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zg=wn.length;function Wg(t,e,n){let r="",i=!0;for(let o=0;o<zg;o++){const s=wn[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const d=mu(a,es[s]);if(!l){i=!1;const c=Ug[s]||s;r+=`${c}(${d}) `}n&&(e[s]=d)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function cs(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const d=e[l];if(bn.has(l)){s=!0;continue}else if(Po(l)){i[l]=d;continue}else{const c=mu(d,es[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(e.transform||(s||n?r.transform=Wg(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:d="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${d} ${c}`}}const ls=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Nu(t,e,n){for(const r in e)!Zt(e[r])&&!Mu(r,n)&&(t[r]=e[r])}function qg({transformTemplate:t},e){return Ht(()=>{const n=ls();return cs(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Hg(t,e){const n=t.style||{},r={};return Nu(r,n,t),Object.assign(r,qg(t,e)),r}function Gg(t,e){const n={},r=Hg(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Kg={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yg={offset:"strokeDashoffset",array:"strokeDasharray"};function Xg(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?Kg:Yg;t[o.offset]=it.transform(-r);const s=it.transform(e),a=it.transform(n);t[o.array]=`${s} ${a}`}function Bu(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,d,c){if(cs(t,a,d),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:m}=t;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&Xg(h,i,o,s,!1)}const Du=()=>({...ls(),attrs:{}}),Fu=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Jg(t,e,n,r){const i=Ht(()=>{const o=Du();return Bu(o,e,Fu(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Nu(o,t.style,t),i.style={...o,...i.style}}return i}const Zg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function us(t){return typeof t!="string"||t.includes("-")?!1:!!(Zg.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qg(t,e,n,{latestValues:r},i,o=!1){const a=(us(t)?Jg:Gg)(e,r,i,t),l=Lg(e,typeof t=="string",o),d=t!==kt?{...l,...a,ref:n}:{},{children:c}=e,h=Ht(()=>Zt(c)?c.get():c,[c]);return nt(t,{...d,children:h})}function Lu(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function fs(t,e,n,r){if(typeof e=="function"){const[i,o]=Lu(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Lu(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function ti(t){return Zt(t)?t.get():t}function t0({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:e0(n,r,i,t),renderState:e()}}function e0(t,e,n,r){const i={},o=r(t,{});for(const m in o)i[m]=ti(o[m]);let{initial:s,animate:a}=t;const l=Qr(t),d=Iu(t);e&&d&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const h=c?a:s;if(h&&typeof h!="boolean"&&!Zr(h)){const m=Array.isArray(h)?h:[h];for(let y=0;y<m.length;y++){const b=fs(t,m[y]);if(b){const{transitionEnd:_,transition:P,...x}=b;for(const v in x){let S=x[v];if(Array.isArray(S)){const M=c?S.length-1:0;S=S[M]}S!==null&&(i[v]=S)}for(const v in _)i[v]=_[v]}}}return i}const ju=t=>(e,n)=>{const r=Ft(Jr),i=Ft($r),o=()=>t0(t,e,r,i);return n?o():vo(o)};function ds(t,e,n){var o;const{style:r}=t,i={};for(const s in r)(Zt(r[s])||e.style&&Zt(e.style[s])||Mu(s,t)||((o=n==null?void 0:n.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const n0=ju({scrapeMotionValuesFromProps:ds,createRenderState:ls});function $u(t,e,n){const r=ds(t,e,n);for(const i in t)if(Zt(t[i])||Zt(e[i])){const o=wn.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}const r0=ju({scrapeMotionValuesFromProps:$u,createRenderState:Du}),i0=Symbol.for("motionComponentSymbol");function Sn(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function o0(t,e,n){return Ct(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Sn(n)&&(n.current=r))},[e])}const hs=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vu="data-"+hs("framerAppearId"),Uu=te({});function s0(t,e,n,r,i){var _,P;const{visualElement:o}=Ft(Jr),s=Ft(ku),a=Ft($r),l=Ft(os).reducedMotion,d=ot(null);r=r||s.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=d.current,h=Ft(Uu);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&a0(d.current,n,i,h);const m=ot(!1);Jn(()=>{c&&m.current&&c.update(n,a)});const y=n[Vu],b=ot(!!y&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,y))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,y)));return hl(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),mt(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)==null||x.call(window,y)}),b.current=!1),c.enteringChildren=void 0)}),c}function a0(t,e,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:zu(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Sn(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:d})}function zu(t){if(t)return t.options.allowProjection!==!1?t.projection:zu(t.parent)}function ps(t,{forwardMotionProps:e=!1}={},n,r){n&&Bg(n);const i=us(t)?r0:n0;function o(a,l){let d;const c={...Ft(os),...a,layoutId:c0(a)},{isStatic:h}=c,m=$g(a),y=i(a,h);if(!h&&wo){l0();const b=u0(c);d=b.MeasureLayout,m.visualElement=s0(t,y,c,r,b.ProjectionNode)}return C(Jr.Provider,{value:m,children:[d&&m.visualElement?C(d,{visualElement:m.visualElement,...c}):null,Qg(t,a,o0(y,m.visualElement,l),y,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=je(o);return s[i0]=t,s}function c0({layoutId:t}){const e=Ft(go).id;return e&&t!==void 0?e+"-"+t:t}function l0(t,e){Ft(ku).strict}function u0(t){const{drag:e,layout:n}=xn;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function f0(t,e){if(typeof Proxy>"u")return ps;const n=new Map,r=(o,s)=>ps(o,s,t,e),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,ps(s,void 0,t,e)),n.get(s))})}function Wu({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function d0({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function h0(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ms(t){return t===void 0||t===1}function ys({scale:t,scaleX:e,scaleY:n}){return!ms(t)||!ms(e)||!ms(n)}function Xe(t){return ys(t)||qu(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qu(t){return Hu(t.x)||Hu(t.y)}function Hu(t){return t&&t!=="0%"}function ei(t,e,n){const r=t-n,i=e*r;return n+i}function Gu(t,e,n,r,i){return i!==void 0&&(t=ei(t,i,r)),ei(t,n,r)+e}function gs(t,e=0,n=1,r,i){t.min=Gu(t.min,e,n,r,i),t.max=Gu(t.max,e,n,r,i)}function Ku(t,{x:e,y:n}){gs(t.x,e.translate,e.scale,e.originPoint),gs(t.y,n.translate,n.scale,n.originPoint)}const Yu=.999999999999,Xu=1.0000000000001;function p0(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&An(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Ku(t,s)),r&&Xe(o.latestValues)&&An(t,o.latestValues))}e.x<Xu&&e.x>Yu&&(e.x=1),e.y<Xu&&e.y>Yu&&(e.y=1)}function En(t,e){t.min=t.min+e,t.max=t.max+e}function Ju(t,e,n,r,i=.5){const o=Mt(t.min,t.max,i);gs(t,e,n,o,r)}function An(t,e){Ju(t.x,e.x,e.scaleX,e.scale,e.originX),Ju(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zu(t,e){return Wu(h0(t.getBoundingClientRect(),e))}function m0(t,e,n){const r=Zu(t,n),{scroll:i}=e;return i&&(En(r.x,i.offset.x),En(r.y,i.offset.y)),r}const Qu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tn=()=>({x:Qu(),y:Qu()}),tf=()=>({min:0,max:0}),Lt=()=>({x:tf(),y:tf()}),vs={current:null},ef={current:!1};function y0(){if(ef.current=!0,!!wo)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>vs.current=t.matches;t.addEventListener("change",e),e()}else vs.current=!1}const g0=new WeakMap;function v0(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Zt(i))t.addValue(r,i);else if(Zt(o))t.addValue(r,_n(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const s=t.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=t.getStaticValue(r);t.addValue(r,_n(s!==void 0?s:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const nf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class w0{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=re.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ot.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Qr(n),this.isVariantNode=Iu(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];l[m]!==void 0&&Zt(y)&&y.set(l[m])}}mount(e){var n;this.current=e,g0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),ef.current||y0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vs.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),$e(this.notifyUpdate),$e(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=bn.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in xn){const n=xn[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<nf.length;r++){const i=nf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=e[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=v0(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=_n(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(pl(r)||yl(r))?r=parseFloat(r):!Og(r)&&Ue.test(n)&&(r=pu(e,n)),this.setBaseTarget(e,Zt(r)?r.get():r)),Zt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=fs(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Zt(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new So),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){ns.render(this.render)}}class rf extends w0{constructor(){super(...arguments),this.KeyframeResolver=vg}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Zt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function of(t,{style:e,vars:n},r,i){const o=t.style;let s;for(s in e)o[s]=e[s];i==null||i.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function b0(t){return window.getComputedStyle(t)}class _0 extends rf{constructor(){super(...arguments),this.type="html",this.renderInstance=of}readValueFromInstance(e,n){var r;if(bn.has(n))return(r=this.projection)!=null&&r.isProjecting?Ho(n):Ly(e,n);{const i=b0(e),o=(Po(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zu(e,n)}build(e,n,r){cs(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ds(e,n,r)}}const sf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function x0(t,e,n,r){of(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(sf.has(i)?i:hs(i),e.attrs[i])}class S0 extends rf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(bn.has(n)){const r=hu(n);return r&&r.default||0}return n=sf.has(n)?n:hs(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return $u(e,n,r)}build(e,n,r){Bu(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){x0(e,n,r,i)}mount(e){this.isSVGTag=Fu(e.tagName),super.mount(e)}}const E0=(t,e)=>us(t)?new S0(e):new _0(e,{allowProjection:t!==kt});function Pn(t,e,n){const r=t.getProps();return fs(r,e,n!==void 0?n:r.custom,t)}const ws=t=>Array.isArray(t);function A0(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,_n(n))}function T0(t){return ws(t)?t[t.length-1]||0:t}function P0(t,e){const n=Pn(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=T0(o[s]);A0(t,s,a)}}function k0(t){return!!(Zt(t)&&t.add)}function bs(t,e){const n=t.getValue("willChange");if(k0(n))return n.add(e);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function af(t){return t.props[Vu]}const C0=t=>t!==null;function O0(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(C0),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const I0={type:"spring",stiffness:500,damping:25,restSpeed:10},R0=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),M0={type:"keyframes",duration:.8},N0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B0=(t,{keyframes:e})=>e.length>2?M0:bn.has(t)?t.startsWith("scale")?R0(e[1]):I0:N0;function D0({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:d,...c}){return!!Object.keys(c).length}const _s=(t,e,n,r={},i,o)=>s=>{const a=Qo(r,t)||{},l=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-we(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:m=>{e.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};D0(a)||Object.assign(c,B0(t,c)),c.duration&&(c.duration=we(c.duration)),c.repeatDelay&&(c.repeatDelay=we(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Zo(c),c.delay===0&&(h=!0)),(Re.instantAnimations||Re.skipAnimations)&&(h=!0,Zo(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const m=O0(c.keyframes,a);if(m!==void 0){Ot.update(()=>{c.onUpdate(m),c.onComplete()});return}}return a.isSync?new zo(c):new ag(c)};function F0({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function cf(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;r&&(o=r);const l=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),m=a[c];if(m===void 0||d&&F0(d,c))continue;const y={delay:n,...Qo(o||{},c)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===b&&!y.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const x=af(t);if(x){const v=window.MotionHandoffAnimation(x,c,Ot);v!==null&&(y.startTime=v,_=!0)}}bs(t,c),h.start(_s(c,h,m,t.shouldReduceMotion&&cu.has(c)?{type:!1}:y,t,_));const P=h.animation;P&&l.push(P)}return s&&Promise.all(l).then(()=>{Ot.update(()=>{s&&P0(t,s)})}),l}function lf(t,e,n,r=0,i=1){const o=Array.from(t).sort((d,c)=>d.sortNodePosition(c)).indexOf(e),s=t.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function xs(t,e,n={}){var l;const r=Pn(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(cf(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:m}=i;return L0(t,e,d,c,h,m,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[d,c]=a==="beforeChildren"?[o,s]:[s,o];return d().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function L0(t,e,n=0,r=0,i=0,o=1,s){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(xs(l,e,{...s,delay:n+(typeof r=="function"?0:r)+lf(t.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function j0(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>xs(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=xs(t,e,n);else{const i=typeof e=="function"?Pn(t,e,n.custom):e;r=Promise.all(cf(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function uf(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const $0=as.length;function ff(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ff(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<$0;n++){const r=as[n],i=t.props[r];(cr(i)||i===!1)&&(e[r]=i)}return e}const V0=[...ss].reverse(),U0=ss.length;function z0(t){return e=>Promise.all(e.map(({animation:n,options:r})=>j0(t,n,r)))}function W0(t){let e=z0(t),n=df(),r=!0;const i=l=>(d,c)=>{var m;const h=Pn(t,c,l==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);if(h){const{transition:y,transitionEnd:b,..._}=h;d={...d,..._,...b}}return d};function o(l){e=l(t)}function s(l){const{props:d}=t,c=ff(t.parent)||{},h=[],m=new Set;let y={},b=1/0;for(let P=0;P<U0;P++){const x=V0[P],v=n[x],S=d[x]!==void 0?d[x]:c[x],M=cr(S),I=x===l?v.isActive:null;I===!1&&(b=P);let F=S===c[x]&&S!==d[x]&&M;if(F&&r&&t.manuallyAnimateOnMount&&(F=!1),v.protectedKeys={...y},!v.isActive&&I===null||!S&&!v.prevProp||Zr(S)||typeof S=="boolean")continue;const D=q0(v.prevProp,S);let W=D||x===l&&v.isActive&&!F&&M||P>b&&M,L=!1;const Y=Array.isArray(S)?S:[S];let Z=Y.reduce(i(x),{});I===!1&&(Z={});const{prevResolvedValues:et={}}=v,st={...et,...Z},At=at=>{W=!0,m.has(at)&&(L=!0,m.delete(at)),v.needsAnimating[at]=!0;const ht=t.getValue(at);ht&&(ht.liveStyle=!1)};for(const at in st){const ht=Z[at],U=et[at];if(y.hasOwnProperty(at))continue;let H=!1;ws(ht)&&ws(U)?H=!uf(ht,U):H=ht!==U,H?ht!=null?At(at):m.add(at):ht!==void 0&&m.has(at)?At(at):v.protectedKeys[at]=!0}v.prevProp=S,v.prevResolvedValues=Z,v.isActive&&(y={...y,...Z}),r&&t.blockInitialAnimation&&(W=!1);const dt=F&&D;W&&(!dt||L)&&h.push(...Y.map(at=>{const ht={type:x};if(typeof at=="string"&&r&&!dt&&t.manuallyAnimateOnMount&&t.parent){const{parent:U}=t,H=Pn(U,at);if(U.enteringChildren&&H){const{delayChildren:G}=H.transition||{};ht.delay=lf(U.enteringChildren,t,G)}}return{animation:at,options:ht}}))}if(m.size){const P={};if(typeof d.initial!="boolean"){const x=Pn(t,Array.isArray(d.initial)?d.initial[0]:d.initial);x&&x.transition&&(P.transition=x.transition)}m.forEach(x=>{const v=t.getBaseTarget(x),S=t.getValue(x);S&&(S.liveStyle=!0),P[x]=v??null}),h.push({animation:P})}let _=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(_=!1),r=!1,_?e(h):Promise.resolve()}function a(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(m=>{var y;return(y=m.animationState)==null?void 0:y.setActive(l,d)}),n[l].isActive=d;const c=s(l);for(const m in n)n[m].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=df(),r=!0}}}function q0(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!uf(e,t):!1}function Je(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function df(){return{animate:Je(!0),whileInView:Je(),whileHover:Je(),whileTap:Je(),whileDrag:Je(),whileFocus:Je(),exit:Je()}}class ze{constructor(e){this.isMounted=!1,this.node=e}update(){}}class H0 extends ze{constructor(e){super(e),e.animationState||(e.animationState=W0(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let G0=0;class K0 extends ze{constructor(){super(...arguments),this.id=G0++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Y0={animation:{Feature:H0},exit:{Feature:K0}};function ur(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function fr(t){return{point:{x:t.pageX,y:t.pageY}}}const X0=t=>e=>rs(e)&&t(e,fr(e));function dr(t,e,n,r){return ur(t,e,X0(n),r)}const hf=1e-4,J0=1-hf,Z0=1+hf,pf=.01,Q0=0-pf,tv=0+pf;function ee(t){return t.max-t.min}function ev(t,e,n){return Math.abs(t-e)<=n}function mf(t,e,n,r=.5){t.origin=r,t.originPoint=Mt(e.min,e.max,t.origin),t.scale=ee(n)/ee(e),t.translate=Mt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=J0&&t.scale<=Z0||isNaN(t.scale))&&(t.scale=1),(t.translate>=Q0&&t.translate<=tv||isNaN(t.translate))&&(t.translate=0)}function hr(t,e,n,r){mf(t.x,e.x,n.x,r?r.originX:void 0),mf(t.y,e.y,n.y,r?r.originY:void 0)}function yf(t,e,n){t.min=n.min+e.min,t.max=t.min+ee(e)}function nv(t,e,n){yf(t.x,e.x,n.x),yf(t.y,e.y,n.y)}function gf(t,e,n){t.min=e.min-n.min,t.max=t.min+ee(e)}function pr(t,e,n){gf(t.x,e.x,n.x),gf(t.y,e.y,n.y)}function le(t){return[t("x"),t("y")]}const vf=({current:t})=>t?t.ownerDocument.defaultView:null,wf=(t,e)=>Math.abs(t-e);function rv(t,e){const n=wf(t.x,e.x),r=wf(t.y,e.y);return Math.sqrt(n**2+r**2)}class bf{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Es(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,b=rv(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!b)return;const{point:_}=m,{timestamp:P}=Xt;this.history.push({..._,timestamp:P});const{onStart:x,onMove:v}=this.handlers;y||(x&&x(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Ss(y,this.transformPagePoint),Ot.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:b,onSessionEnd:_,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Es(m.type==="pointercancel"?this.lastMoveEventInfo:Ss(y,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,x),_&&_(m,x)},!rs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=fr(e),l=Ss(a,this.transformPagePoint),{point:d}=l,{timestamp:c}=Xt;this.history=[{...d,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,Es(l,this.history)),this.removeListeners=Qn(dr(this.contextWindow,"pointermove",this.handlePointerMove),dr(this.contextWindow,"pointerup",this.handlePointerUp),dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$e(this.updatePoint)}}function Ss(t,e){return e?{point:e(t.point)}:t}function _f(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Es({point:t},e){return{point:t,delta:_f(t,xf(e)),offset:_f(t,iv(e)),velocity:ov(e,.1)}}function iv(t){return t[0]}function xf(t){return t[t.length-1]}function ov(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=xf(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>we(e)));)n--;if(!r)return{x:0,y:0};const o=be(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function sv(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Mt(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Mt(n,t,r.max):Math.min(t,n)),t}function Sf(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function av(t,{top:e,left:n,bottom:r,right:i}){return{x:Sf(t.x,n,i),y:Sf(t.y,e,r)}}function Ef(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function cv(t,e){return{x:Ef(t.x,e.x),y:Ef(t.y,e.y)}}function lv(t,e){let n=.5;const r=ee(t),i=ee(e);return i>r?n=tr(e.min,e.max-r,t.min):r>i&&(n=tr(t.min,t.max-i,e.min)),Ie(0,1,n)}function uv(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const As=.35;function fv(t=As){return t===!1?t=0:t===!0&&(t=As),{x:Af(t,"left","right"),y:Af(t,"top","bottom")}}function Af(t,e,n){return{min:Tf(t,e),max:Tf(t,n)}}function Tf(t,e){return typeof t=="number"?t:t[e]||0}const dv=new WeakMap;class hv{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fr(h).point)},s=(h,m)=>{const{drag:y,dragPropagation:b,onDragStart:_}=this.getProps();if(y&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xg(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),le(x=>{let v=this.getAxisMotionValue(x).get()||0;if(_e.test(v)){const{projection:S}=this.visualElement;if(S&&S.layout){const M=S.layout.layoutBox[x];M&&(v=ee(M)*(parseFloat(v)/100))}}this.originPoint[x]=v}),_&&Ot.postRender(()=>_(h,m)),bs(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m;const{dragPropagation:y,dragDirectionLock:b,onDirectionLock:_,onDrag:P}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:x}=m;if(b&&this.currentDirection===null){this.currentDirection=pv(x),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",m.point,x),this.updateAxis("y",m.point,x),this.visualElement.render(),P&&P(h,m)},l=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m,this.stop(h,m),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>le(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)==null?void 0:m.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new bf(e,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:vf(this.visualElement)})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Ot.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!ni(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=sv(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&Sn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=av(r.layoutBox,e):this.constraints=!1,this.elastic=fv(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&le(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=uv(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Sn(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=m0(r,i.root,this.visualElement.getTransformPagePoint());let s=cv(i.layout.layoutBox,o);if(n){const a=n(d0(s));this.hasMutatedConstraints=!!a,a&&(s=Wu(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},d=le(c=>{if(!ni(c,n,this.currentDirection))return;let h=l&&l[c]||{};s&&(h={min:0,max:0});const m=i?200:1e6,y=i?40:1e7,b={type:"inertia",velocity:r?e[c]:0,bounceStiffness:m,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,b)});return Promise.all(d).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return bs(this.visualElement,e),r.start(_s(e,r,0,n,this.visualElement,!1))}stopAnimation(){le(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){le(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){le(n=>{const{drag:r}=this.getProps();if(!ni(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-Mt(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Sn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};le(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=lv({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),le(s=>{if(!ni(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];a.set(Mt(l,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;dv.set(this.visualElement,this);const e=this.visualElement.current,n=dr(e,"pointerdown",l=>{const{drag:d,dragListener:c=!0}=this.getProps();d&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Sn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ot.read(r);const s=ur(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(le(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=As,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ni(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function pv(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class mv extends ze{constructor(e){super(e),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new hv(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pf=t=>(e,n)=>{t&&Ot.postRender(()=>t(e,n))};class yv extends ze{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(e){this.session=new bf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vf(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pf(e),onStart:Pf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Ot.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=dr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ri={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kf(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mr={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(it.test(t))t=parseFloat(t);else return t;const n=kf(t,e.target.x),r=kf(t,e.target.y);return`${n}% ${r}%`}},gv={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ue.parse(t);if(i.length>5)return r;const o=Ue.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const d=Mt(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};let Ts=!1;class vv extends oe{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Vg(wv),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Ts&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ri.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,Ts=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Ot.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ns.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;Ts=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Cf(t){const[e,n]=Au(),r=Ft(go);return C(vv,{...t,layoutGroup:r,switchLayoutGroup:Ft(Uu),isPresent:e,safeToRemove:n})}const wv={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:gv};function bv(t,e,n){const r=Zt(t)?t:_n(t);return r.start(_s("",r,e,n)),r.animation}const _v=(t,e)=>t.depth-e.depth;class xv{constructor(){this.children=[],this.isDirty=!1}add(e){bo(this.children,e),this.isDirty=!0}remove(e){_o(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_v),this.isDirty=!1,this.children.forEach(e)}}function Sv(t,e){const n=re.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&($e(r),t(o-e))};return Ot.setup(r,!0),()=>$e(r)}const Of=["TopLeft","TopRight","BottomLeft","BottomRight"],Ev=Of.length,If=t=>typeof t=="string"?parseFloat(t):t,Rf=t=>typeof t=="number"||it.test(t);function Av(t,e,n,r,i,o){i?(t.opacity=Mt(0,n.opacity??1,Tv(r)),t.opacityExit=Mt(e.opacity??1,0,Pv(r))):o&&(t.opacity=Mt(e.opacity??1,n.opacity??1,r));for(let s=0;s<Ev;s++){const a=`border${Of[s]}Radius`;let l=Mf(e,a),d=Mf(n,a);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Rf(l)===Rf(d)?(t[a]=Math.max(Mt(If(l),If(d),r),0),(_e.test(d)||_e.test(l))&&(t[a]+="%")):t[a]=d}(e.rotate||n.rotate)&&(t.rotate=Mt(e.rotate||0,n.rotate||0,r))}function Mf(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Tv=Nf(0,.5,El),Pv=Nf(.5,.95,ce);function Nf(t,e,n){return r=>r<t?0:r>e?1:n(tr(t,e,r))}function Bf(t,e){t.min=e.min,t.max=e.max}function ue(t,e){Bf(t.x,e.x),Bf(t.y,e.y)}function Df(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ff(t,e,n,r,i){return t-=e,t=ei(t,1/n,r),i!==void 0&&(t=ei(t,1/i,r)),t}function kv(t,e=0,n=1,r=.5,i,o=t,s=t){if(_e.test(e)&&(e=parseFloat(e),e=Mt(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=Mt(o.min,o.max,r);t===o&&(a-=e),t.min=Ff(t.min,e,n,a,i),t.max=Ff(t.max,e,n,a,i)}function Lf(t,e,[n,r,i],o,s){kv(t,e[n],e[r],e[i],e.scale,o,s)}const Cv=["x","scaleX","originX"],Ov=["y","scaleY","originY"];function jf(t,e,n,r){Lf(t.x,e,Cv,n?n.x:void 0,r?r.x:void 0),Lf(t.y,e,Ov,n?n.y:void 0,r?r.y:void 0)}function $f(t){return t.translate===0&&t.scale===1}function Vf(t){return $f(t.x)&&$f(t.y)}function Uf(t,e){return t.min===e.min&&t.max===e.max}function Iv(t,e){return Uf(t.x,e.x)&&Uf(t.y,e.y)}function zf(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Wf(t,e){return zf(t.x,e.x)&&zf(t.y,e.y)}function qf(t){return ee(t.x)/ee(t.y)}function Hf(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Rv{constructor(){this.members=[]}add(e){bo(this.members,e),e.scheduleRender()}remove(e){if(_o(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mv(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:d,rotate:c,rotateX:h,rotateY:m,skewX:y,skewY:b}=n;d&&(r=`perspective(${d}px) ${r}`),c&&(r+=`rotate(${c}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),y&&(r+=`skewX(${y}deg) `),b&&(r+=`skewY(${b}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ps=["","X","Y","Z"],Nv=1e3;let Bv=0;function ks(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Gf(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=af(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Ot,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Gf(r)}function Kf({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=Bv++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Lv),this.nodes.forEach(Uv),this.nodes.forEach(zv),this.nodes.forEach(jv)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new xv)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new So),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Eu(s)&&!kg(s),this.instance=s;const{layoutId:a,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const m=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{h=window.innerWidth}),t(s,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,c&&c(),c=Sv(m,250),ri.hasAnimatedSinceResize&&(ri.hasAnimatedSinceResize=!1,this.nodes.forEach(Jf)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Kv,{onLayoutAnimationStart:_,onLayoutAnimationComplete:P}=d.getProps(),x=!this.targetLayout||!Wf(this.targetLayout,y),v=!h&&m;if(this.options.layoutRoot||this.resumeFrom||v||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Qo(b,"layout"),onPlay:_,onComplete:P};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(c,v)}else h||Jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$e(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wv),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Yf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Vv),this.nodes.forEach(Dv),this.nodes.forEach(Fv)):this.nodes.forEach(Xf),this.clearAllSnapshots();const a=re.now();Xt.delta=Ie(0,1e3/60,a-Xt.timestamp),Xt.timestamp=a,Xt.isProcessing=!0,To.update.process(Xt),To.preRender.process(Xt),To.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ns.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($v),this.sharedNodes.forEach(qv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ee(this.snapshot.measuredBox.x)&&!ee(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Vf(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,c=d!==this.prevTransformTemplateValue;s&&this.instance&&(a||Xe(this.latestValues)||c)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Yv(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Lt();const a=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Xv))){const{scroll:c}=this.root;c&&(En(a.x,c.offset.x),En(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=Lt();if(ue(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let d=0;d<this.path.length;d++){const c=this.path[d],{scroll:h,options:m}=c;c!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&ue(a,s),En(a.x,h.offset.x),En(a.y,h.offset.y))}return a}applyTransform(s,a=!1){const l=Lt();ue(l,s);for(let d=0;d<this.path.length;d++){const c=this.path[d];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&An(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Xe(c.latestValues)&&An(l,c.latestValues)}return Xe(this.latestValues)&&An(l,this.latestValues),l}removeTransform(s){const a=Lt();ue(a,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!Xe(d.latestValues))continue;ys(d.latestValues)&&d.updateSnapshot();const c=Lt(),h=d.measurePageBox();ue(c,h),jf(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,c)}return Xe(this.latestValues)&&jf(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var m;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=Xt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),pr(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ue(this.target,this.layout.layoutBox),Ku(this.target,this.targetDelta)):ue(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),pr(this.relativeTargetOrigin,this.target,y.target),ue(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ys(this.parent.latestValues)||qu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var b;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(l=!1),l)return;const{layout:d,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||c))return;ue(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;p0(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Lt());const{target:y}=s;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Df(this.prevProjectionDelta.x,this.projectionDelta.x),Df(this.prevProjectionDelta.y,this.projectionDelta.y)),hr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!Hf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tn(),this.projectionDelta=Tn(),this.projectionDeltaWithTransform=Tn()}setAnimationOrigin(s,a=!1){const l=this.snapshot,d=l?l.latestValues:{},c={...this.latestValues},h=Tn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=Lt(),y=l?l.source:void 0,b=this.layout?this.layout.source:void 0,_=y!==b,P=this.getStack(),x=!P||P.members.length<=1,v=!!(_&&!x&&this.options.crossfade===!0&&!this.path.some(Gv));this.animationProgress=0;let S;this.mixTargetDelta=M=>{const I=M/1e3;Zf(h.x,s.x,I),Zf(h.y,s.y,I),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pr(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Hv(this.relativeTarget,this.relativeTargetOrigin,m,I),S&&Iv(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Lt()),ue(S,this.relativeTarget)),_&&(this.animationValues=c,Av(c,d,this.latestValues,I,v,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,d;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&($e(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{ri.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_n(0)),this.currentAnimation=bv(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:d,latestValues:c}=s;if(!(!a||!l||!d)){if(this!==s&&this.layout&&d&&rd(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Lt();const h=ee(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+h;const m=ee(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}ue(a,l),An(a,c),hr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Rv),this.sharedNodes.get(s).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const d={};l.z&&ks("z",s,d,this.animationValues);for(let c=0;c<Ps.length;c++)ks(`rotate${Ps[c]}`,s,d,this.animationValues),ks(`skew${Ps[c]}`,s,d,this.animationValues);s.render();for(const c in d)s.setStaticValue(c,d[c]),this.animationValues&&(this.animationValues[c]=d[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ti(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ti(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=Mv(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),s.transform=h;const{x:m,y}=this.projectionDelta;s.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,d.animationValues?s.opacity=d===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=d===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const b in lr){if(c[b]===void 0)continue;const{correct:_,applyTo:P,isCSSVariable:x}=lr[b],v=h==="none"?c[b]:_(c[b],d);if(P){const S=P.length;for(let M=0;M<S;M++)s[P[M]]=v}else x?this.options.visualElement.renderState.vars[b]=v:s[b]=v}this.options.layoutId&&(s.pointerEvents=d===this?ti(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Yf),this.root.sharedNodes.clear()}}}function Dv(t){t.updateLayout()}function Fv(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=e.source!==t.layout.source;o==="size"?le(h=>{const m=s?e.measuredBox[h]:e.layoutBox[h],y=ee(m);m.min=r[h].min,m.max=m.min+y}):rd(o,e.layoutBox,r)&&le(h=>{const m=s?e.measuredBox[h]:e.layoutBox[h],y=ee(r[h]);m.max=m.min+y,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+y)});const a=Tn();hr(a,r,e.layoutBox);const l=Tn();s?hr(l,t.applyTransform(i,!0),e.measuredBox):hr(l,r,e.layoutBox);const d=!Vf(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:y}=h;if(m&&y){const b=Lt();pr(b,e.layoutBox,m.layoutBox);const _=Lt();pr(_,r,y.layoutBox),Wf(b,_)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=b,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:d,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Lv(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jv(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function $v(t){t.clearSnapshot()}function Yf(t){t.clearMeasurements()}function Xf(t){t.isLayoutDirty=!1}function Vv(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Jf(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Uv(t){t.resolveTargetDelta()}function zv(t){t.calcProjection()}function Wv(t){t.resetSkewAndRotation()}function qv(t){t.removeLeadSnapshot()}function Zf(t,e,n){t.translate=Mt(e.translate,0,n),t.scale=Mt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qf(t,e,n,r){t.min=Mt(e.min,n.min,r),t.max=Mt(e.max,n.max,r)}function Hv(t,e,n,r){Qf(t.x,e.x,n.x,r),Qf(t.y,e.y,n.y,r)}function Gv(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Kv={duration:.45,ease:[.4,0,.1,1]},td=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ed=td("applewebkit/")&&!td("chrome/")?Math.round:ce;function nd(t){t.min=ed(t.min),t.max=ed(t.max)}function Yv(t){nd(t.x),nd(t.y)}function rd(t,e,n){return t==="position"||t==="preserve-aspect"&&!ev(qf(e),qf(n),.2)}function Xv(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Jv=Kf({attachResizeListener:(t,e)=>ur(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cs={current:void 0},id=Kf({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Cs.current){const t=new Jv({});t.mount(window),t.setOptions({layoutScroll:!0}),Cs.current=t}return Cs.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Zv={pan:{Feature:yv},drag:{Feature:mv,ProjectionNode:id,MeasureLayout:Cf}};function od(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ot.postRender(()=>o(e,fr(e)))}class Qv extends ze{mount(){const{current:e}=this.node;e&&(this.unmount=Sg(e,(n,r)=>(od(this.node,r,"Start"),i=>od(this.node,i,"End"))))}unmount(){}}class tw extends ze{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qn(ur(this.node.current,"focus",()=>this.onFocus()),ur(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sd(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ot.postRender(()=>o(e,fr(e)))}class ew extends ze{mount(){const{current:e}=this.node;e&&(this.unmount=Pg(e,(n,r)=>(sd(this.node,r,"Start"),(i,{success:o})=>sd(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Os=new WeakMap,Is=new WeakMap,nw=t=>{const e=Os.get(t.target);e&&e(t)},rw=t=>{t.forEach(nw)};function iw({root:t,...e}){const n=t||document;Is.has(n)||Is.set(n,{});const r=Is.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(rw,{root:t,...e})),r[i]}function ow(t,e,n){const r=iw(e);return Os.set(t,n),r.observe(t),()=>{Os.delete(t),r.unobserve(t)}}const sw={some:0,all:1};class aw extends ze{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sw[i]},a=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),m=d?c:h;m&&m(l)};return ow(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(cw(e,n))&&this.startObserver()}unmount(){}}function cw({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const lw={...Y0,...{inView:{Feature:aw},tap:{Feature:ew},focus:{Feature:tw},hover:{Feature:Qv}},...Zv,...{layout:{ProjectionNode:id,MeasureLayout:Cf}}},Ze=f0(lw,E0);/**
10
10
  * @license lucide-react v0.435.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
- */const yw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fd=(...t)=>t.filter((e,n,r)=>!!e&&r.indexOf(e)===n).join(" ");/**
14
+ */const uw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ad=(...t)=>t.filter((e,n,r)=>!!e&&r.indexOf(e)===n).join(" ");/**
15
15
  * @license lucide-react v0.435.0 - ISC
16
16
  *
17
17
  * This source code is licensed under the ISC license.
18
18
  * See the LICENSE file in the root directory of this source tree.
19
- */var gw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
19
+ */var fw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
20
20
  * @license lucide-react v0.435.0 - ISC
21
21
  *
22
22
  * This source code is licensed under the ISC license.
23
23
  * See the LICENSE file in the root directory of this source tree.
24
- */const vw=je(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>nt("svg",{ref:l,...gw,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:fd("lucide",i),...a},[...s.map(([d,c])=>nt(d,c)),...Array.isArray(o)?o:[o]]));/**
24
+ */const dw=je(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>nt("svg",{ref:l,...fw,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:ad("lucide",i),...a},[...s.map(([d,c])=>nt(d,c)),...Array.isArray(o)?o:[o]]));/**
25
25
  * @license lucide-react v0.435.0 - ISC
26
26
  *
27
27
  * This source code is licensed under the ISC license.
28
28
  * See the LICENSE file in the root directory of this source tree.
29
- */const Me=(t,e)=>{const n=je(({className:r,...i},o)=>nt(vw,{ref:o,iconNode:e,className:fd(`lucide-${yw(t)}`,r),...i}));return n.displayName=`${t}`,n};/**
29
+ */const Me=(t,e)=>{const n=je(({className:r,...i},o)=>nt(dw,{ref:o,iconNode:e,className:ad(`lucide-${uw(t)}`,r),...i}));return n.displayName=`${t}`,n};/**
30
30
  * @license lucide-react v0.435.0 - ISC
31
31
  *
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
- */const ww=Me("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
34
+ */const hw=Me("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
35
35
  * @license lucide-react v0.435.0 - ISC
36
36
  *
37
37
  * This source code is licensed under the ISC license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
- */const bw=Me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
39
+ */const pw=Me("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
40
40
  * @license lucide-react v0.435.0 - ISC
41
41
  *
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
- */const _w=Me("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
44
+ */const mw=Me("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
45
45
  * @license lucide-react v0.435.0 - ISC
46
46
  *
47
47
  * This source code is licensed under the ISC license.
48
48
  * See the LICENSE file in the root directory of this source tree.
49
- */const xw=Me("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
49
+ */const yw=Me("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
50
50
  * @license lucide-react v0.435.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const Ew=Me("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
54
+ */const gw=Me("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
55
55
  * @license lucide-react v0.435.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */const Sw=Me("SmilePlus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]]);/**
59
+ */const vw=Me("SmilePlus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]]);/**
60
60
  * @license lucide-react v0.435.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const Aw=Me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
64
+ */const ww=Me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
65
65
  * @license lucide-react v0.435.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const Tw=Me("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
69
+ */const bw=Me("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
70
70
  * @license lucide-react v0.435.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const Pw=Me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kw=({onClick:t,isOpen:e})=>O(Ze.button,{onClick:t,className:"fixed w-14 h-14 rounded-full shadow-lg flex items-center justify-center outline-none",style:{zIndex:9998,bottom:30,right:30,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.25)",background:"linear-gradient(135deg, #7289DA 0%, #5B6EAB 80%, #22252A 100%)"},"aria-label":e?"Close chat":"Open chat",animate:{scale:[1,.9,1.05,1]},transition:{duration:.25,ease:"easeOut"},children:O(Iu,{mode:"wait",initial:!1,children:O(Ze.div,{initial:{rotate:-90,opacity:0,scale:.9},animate:{rotate:0,opacity:1,scale:1},exit:{rotate:90,opacity:0,scale:.9},transition:{duration:.18,ease:"easeInOut"},className:"flex items-center justify-center",whileHover:{scale:1.1},whileTap:{scale:.95},children:e?O(Pw,{size:24,color:"#FFFFFF"}):O(_w,{size:22,fill:"#FFFFFF",color:"#FFFFFF"})},e?"close":"open")})});/*! js-cookie v3.0.5 | MIT */function ii(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Cw={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Rs(t,e){function n(i,o,s){if(!(typeof document>"u")){s=ii({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),d=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=t.read(d,c),i===c)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",ii({},o,{expires:-1}))},withAttributes:function(i){return Rs(this.converter,ii({},this.attributes,i))},withConverter:function(i){return Rs(ii({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var mr=Rs(Cw,{path:"/"});const Ow={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},dd=t=>{let e;const n=new Set,r=(c,h)=>{const m=typeof c=="function"?c(e):c;if(!Object.is(m,e)){const y=e;e=h??(typeof m!="object"||m===null)?m:Object.assign({},e,m),n.forEach(w=>w(e,y))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>d,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(Ow?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=e=t(r,i,l);return l},Iw=t=>t?dd(t):dd;var yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Mw(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var hd={exports:{}},pd={};const md=Mw($m);var yd={exports:{}},gd={};/**
74
+ */const _w=Me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),xw=({onClick:t,isOpen:e})=>C(Ze.button,{onClick:t,className:"fixed w-14 h-14 rounded-full shadow-lg flex items-center justify-center outline-none",style:{zIndex:9998,bottom:30,right:30,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.25)",background:"linear-gradient(135deg, #7289DA 0%, #5B6EAB 80%, #22252A 100%)"},"aria-label":e?"Close chat":"Open chat",animate:{scale:[1,.9,1.05,1]},transition:{duration:.25,ease:"easeOut"},children:C(Pu,{mode:"wait",initial:!1,children:C(Ze.div,{initial:{rotate:-90,opacity:0,scale:.9},animate:{rotate:0,opacity:1,scale:1},exit:{rotate:90,opacity:0,scale:.9},transition:{duration:.18,ease:"easeInOut"},className:"flex items-center justify-center",whileHover:{scale:1.1},whileTap:{scale:.95},children:e?C(_w,{size:24,color:"#FFFFFF"}):C(mw,{size:22,fill:"#FFFFFF",color:"#FFFFFF"})},e?"close":"open")})});/*! js-cookie v3.0.5 | MIT */function ii(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Sw={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Rs(t,e){function n(i,o,s){if(!(typeof document>"u")){s=ii({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),d=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=t.read(d,c),i===c)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",ii({},o,{expires:-1}))},withAttributes:function(i){return Rs(this.converter,ii({},this.attributes,i))},withConverter:function(i){return Rs(ii({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var yr=Rs(Sw,{path:"/"});const Ew={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},cd=t=>{let e;const n=new Set,r=(c,h)=>{const m=typeof c=="function"?c(e):c;if(!Object.is(m,e)){const y=e;e=h??(typeof m!="object"||m===null)?m:Object.assign({},e,m),n.forEach(b=>b(e,y))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>d,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(Ew?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=e=t(r,i,l);return l},Aw=t=>t?cd(t):cd;var gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pw(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var ld={exports:{}},ud={};const fd=Pw(Nm);var dd={exports:{}},hd={};/**
75
75
  * @license React
76
76
  * use-sync-external-store-shim.production.min.js
77
77
  *
@@ -79,7 +79,7 @@
79
79
  *
80
80
  * This source code is licensed under the MIT license found in the
81
81
  * LICENSE file in the root directory of this source tree.
82
- */var Pn=md;function Nw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Bw=typeof Object.is=="function"?Object.is:Nw,Dw=Pn.useState,Fw=Pn.useEffect,Lw=Pn.useLayoutEffect,jw=Pn.useDebugValue;function $w(t,e){var n=e(),r=Dw({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return Lw(function(){i.value=n,i.getSnapshot=e,Ms(i)&&o({inst:i})},[t,n,e]),Fw(function(){return Ms(i)&&o({inst:i}),t(function(){Ms(i)&&o({inst:i})})},[t]),jw(n),n}function Ms(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Bw(t,n)}catch{return!0}}function Vw(t,e){return e()}var Uw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Vw:$w;gd.useSyncExternalStore=Pn.useSyncExternalStore!==void 0?Pn.useSyncExternalStore:Uw,yd.exports=gd;var zw=yd.exports;/**
82
+ */var kn=fd;function kw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Cw=typeof Object.is=="function"?Object.is:kw,Ow=kn.useState,Iw=kn.useEffect,Rw=kn.useLayoutEffect,Mw=kn.useDebugValue;function Nw(t,e){var n=e(),r=Ow({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return Rw(function(){i.value=n,i.getSnapshot=e,Ms(i)&&o({inst:i})},[t,n,e]),Iw(function(){return Ms(i)&&o({inst:i}),t(function(){Ms(i)&&o({inst:i})})},[t]),Mw(n),n}function Ms(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Cw(t,n)}catch{return!0}}function Bw(t,e){return e()}var Dw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Bw:Nw;hd.useSyncExternalStore=kn.useSyncExternalStore!==void 0?kn.useSyncExternalStore:Dw,dd.exports=hd;var Fw=dd.exports;/**
83
83
  * @license React
84
84
  * use-sync-external-store-shim/with-selector.production.min.js
85
85
  *
@@ -87,90 +87,127 @@
87
87
  *
88
88
  * This source code is licensed under the MIT license found in the
89
89
  * LICENSE file in the root directory of this source tree.
90
- */var oi=md,qw=zw;function Ww(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Hw=typeof Object.is=="function"?Object.is:Ww,Gw=qw.useSyncExternalStore,Kw=oi.useRef,Yw=oi.useEffect,Xw=oi.useMemo,Jw=oi.useDebugValue;pd.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=Kw(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Xw(function(){function l(y){if(!d){if(d=!0,c=y,y=r(y),i!==void 0&&s.hasValue){var w=s.value;if(i(w,y))return h=w}return h=y}if(w=h,Hw(c,y))return w;var b=r(y);return i!==void 0&&i(w,b)?w:(c=y,h=b)}var d=!1,c,h,m=n===void 0?null:n;return[function(){return l(e())},m===null?void 0:function(){return l(m())}]},[e,n,r,i]);var a=Gw(t,o[0],o[1]);return Yw(function(){s.hasValue=!0,s.value=a},[a]),Jw(a),a},hd.exports=pd;var Zw=hd.exports;const Qw=Rw(Zw),vd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:tb}=jr,{useSyncExternalStoreWithSelector:eb}=Qw;let wd=!1;const nb=t=>t;function rb(t,e=nb,n){(vd?"production":void 0)!=="production"&&n&&!wd&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),wd=!0);const r=eb(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return tb(r),r}const bd=t=>{(vd?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?Iw(t):t,n=(r,i)=>rb(e,r,i);return Object.assign(n,e),n},ib=t=>t?bd(t):bd;var _d=Symbol.for("immer-nothing"),xd=Symbol.for("immer-draftable"),se=Symbol.for("immer-state");function me(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var kn=Object.getPrototypeOf;function Cn(t){return!!t&&!!t[se]}function Qe(t){var e;return t?Ed(t)||Array.isArray(t)||!!t[xd]||!!((e=t.constructor)!=null&&e[xd])||ci(t)||li(t):!1}var ob=Object.prototype.constructor.toString();function Ed(t){if(!t||typeof t!="object")return!1;const e=kn(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===ob}function si(t,e){ai(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function ai(t){const e=t[se];return e?e.type_:Array.isArray(t)?1:ci(t)?2:li(t)?3:0}function Ns(t,e){return ai(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Sd(t,e,n){const r=ai(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function sb(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ci(t){return t instanceof Map}function li(t){return t instanceof Set}function tn(t){return t.copy_||t.base_}function Bs(t,e){if(ci(t))return new Map(t);if(li(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=Ed(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[se];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[s]})}return Object.create(kn(t),r)}else{const r=kn(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function Ds(t,e=!1){return ui(t)||Cn(t)||!Qe(t)||(ai(t)>1&&(t.set=t.add=t.clear=t.delete=ab),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>Ds(r,!0))),t}function ab(){me(2)}function ui(t){return Object.isFrozen(t)}var cb={};function en(t){const e=cb[t];return e||me(0,t),e}var gr;function Ad(){return gr}function lb(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Td(t,e){e&&(en("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Fs(t){Ls(t),t.drafts_.forEach(ub),t.drafts_=null}function Ls(t){t===gr&&(gr=t.parent_)}function Pd(t){return gr=lb(gr,t)}function ub(t){const e=t[se];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function kd(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[se].modified_&&(Fs(e),me(4)),Qe(t)&&(t=fi(e,t),e.parent_||di(e,t)),e.patches_&&en("Patches").generateReplacementPatches_(n[se].base_,t,e.patches_,e.inversePatches_)):t=fi(e,n,[]),Fs(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==_d?t:void 0}function fi(t,e,n){if(ui(e))return e;const r=e[se];if(!r)return si(e,(i,o)=>Cd(t,r,e,i,o,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return di(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),si(o,(a,l)=>Cd(t,r,i,a,l,n,s)),di(t,i,!1),n&&t.patches_&&en("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Cd(t,e,n,r,i,o,s){if(Cn(i)){const a=o&&e&&e.type_!==3&&!Ns(e.assigned_,r)?o.concat(r):void 0,l=fi(t,i,a);if(Sd(n,r,l),Cn(l))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Qe(i)&&!ui(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;fi(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&di(t,i)}}function di(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ds(e,n)}function fb(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:Ad(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=js;n&&(i=[r],o=vr);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var js={get(t,e){if(e===se)return t;const n=tn(t);if(!Ns(n,e))return db(t,n,e);const r=n[e];return t.finalized_||!Qe(r)?r:r===$s(t.base_,e)?(Us(t),t.copy_[e]=zs(r,t)):r},has(t,e){return e in tn(t)},ownKeys(t){return Reflect.ownKeys(tn(t))},set(t,e,n){const r=Od(tn(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=$s(tn(t),e),o=i==null?void 0:i[se];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(sb(n,i)&&(n!==void 0||Ns(t.base_,e)))return!0;Us(t),Vs(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return $s(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,Us(t),Vs(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=tn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){me(11)},getPrototypeOf(t){return kn(t.base_)},setPrototypeOf(){me(12)}},vr={};si(js,(t,e)=>{vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vr.deleteProperty=function(t,e){return vr.set.call(this,t,e,void 0)},vr.set=function(t,e,n){return js.set.call(this,t[0],e,n,t[0])};function $s(t,e){const n=t[se];return(n?tn(n):t)[e]}function db(t,e,n){var i;const r=Od(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function Od(t,e){if(!(e in t))return;let n=kn(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=kn(n)}}function Vs(t){t.modified_||(t.modified_=!0,t.parent_&&Vs(t.parent_))}function Us(t){t.copy_||(t.copy_=Bs(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var hb=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const o=n;n=e;const s=this;return function(l=o,...d){return s.produce(l,c=>n.call(this,c,...d))}}typeof n!="function"&&me(6),r!==void 0&&typeof r!="function"&&me(7);let i;if(Qe(e)){const o=Pd(this),s=zs(e,void 0);let a=!0;try{i=n(s),a=!1}finally{a?Fs(o):Ls(o)}return Td(o,r),kd(i,o)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===_d&&(i=void 0),this.autoFreeze_&&Ds(i,!0),r){const o=[],s=[];en("Patches").generateReplacementPatches_(e,i,o,s),r(o,s)}return i}else me(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,i;return[this.produce(e,n,(s,a)=>{r=s,i=a}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Qe(t)||me(8),Cn(t)&&(t=pb(t));const e=Pd(this),n=zs(t,void 0);return n[se].isManual_=!0,Ls(e),n}finishDraft(t,e){const n=t&&t[se];(!n||!n.isManual_)&&me(9);const{scope_:r}=n;return Td(r,e),kd(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=en("Patches").applyPatches_;return Cn(t)?r(t,e):this.produce(t,i=>r(i,e))}};function zs(t,e){const n=ci(t)?en("MapSet").proxyMap_(t,e):li(t)?en("MapSet").proxySet_(t,e):fb(t,e);return(e?e.scope_:Ad()).drafts_.push(n),n}function pb(t){return Cn(t)||me(10,t),Id(t)}function Id(t){if(!Qe(t)||ui(t))return t;const e=t[se];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Bs(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Bs(t,!0);return si(n,(r,i)=>{Sd(n,r,Id(i))}),e&&(e.finalized_=!1),n}var ae=new hb,On=ae.produce;ae.produceWithPatches.bind(ae),ae.setAutoFreeze.bind(ae),ae.setUseStrictShallowCopy.bind(ae),ae.applyPatches.bind(ae),ae.createDraft.bind(ae),ae.finishDraft.bind(ae);const hi={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},qs=new Map,pi=t=>{const e=qs.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([n,r])=>[n,r.getState()])):{}},mb=(t,e,n)=>{if(t===void 0)return{type:"untracked",connection:e.connect(n)};const r=qs.get(n.name);if(r)return{type:"tracked",store:t,...r};const i={connection:e.connect(n),stores:{}};return qs.set(n.name,i),{type:"tracked",store:t,...i}},yb=(t,e={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,store:a,...l}=e;let d;try{d=(o??(hi?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return(hi?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,i);const{connection:c,...h}=mb(a,d,l);let m=!0;i.setState=(b,P,x)=>{const v=n(b,P);if(!m)return v;const E=x===void 0?{type:s||"anonymous"}:typeof x=="string"?{type:x}:x;return a===void 0?(c==null||c.send(E,r()),v):(c==null||c.send({...E,type:`${a}/${E.type}`},{...pi(l.name),[a]:i.getState()}),v)};const y=(...b)=>{const P=m;m=!1,n(...b),m=P},w=t(i.setState,r,i);if(h.type==="untracked"?c==null||c.init(w):(h.stores[h.store]=i,c==null||c.init(Object.fromEntries(Object.entries(h.stores).map(([b,P])=>[b,b===h.store?w:P.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let b=!1;const P=i.dispatch;i.dispatch=(...x)=>{(hi?"production":void 0)!=="production"&&x[0].type==="__setState"&&!b&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),b=!0),P(...x)}}return c.subscribe(b=>{var P;switch(b.type){case"ACTION":if(typeof b.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Ws(b.payload,x=>{if(x.type==="__setState"){if(a===void 0){y(x.state);return}Object.keys(x.state).length!==1&&console.error(`
90
+ */var oi=fd,Lw=Fw;function jw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var $w=typeof Object.is=="function"?Object.is:jw,Vw=Lw.useSyncExternalStore,Uw=oi.useRef,zw=oi.useEffect,Ww=oi.useMemo,qw=oi.useDebugValue;ud.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=Uw(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Ww(function(){function l(y){if(!d){if(d=!0,c=y,y=r(y),i!==void 0&&s.hasValue){var b=s.value;if(i(b,y))return h=b}return h=y}if(b=h,$w(c,y))return b;var _=r(y);return i!==void 0&&i(b,_)?b:(c=y,h=_)}var d=!1,c,h,m=n===void 0?null:n;return[function(){return l(e())},m===null?void 0:function(){return l(m())}]},[e,n,r,i]);var a=Vw(t,o[0],o[1]);return zw(function(){s.hasValue=!0,s.value=a},[a]),qw(a),a},ld.exports=ud;var Hw=ld.exports;const Gw=Tw(Hw),pd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:Kw}=yn,{useSyncExternalStoreWithSelector:Yw}=Gw;let md=!1;const Xw=t=>t;function Jw(t,e=Xw,n){(pd?"production":void 0)!=="production"&&n&&!md&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),md=!0);const r=Yw(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Kw(r),r}const yd=t=>{(pd?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?Aw(t):t,n=(r,i)=>Jw(e,r,i);return Object.assign(n,e),n},Zw=t=>t?yd(t):yd;var gd=Symbol.for("immer-nothing"),vd=Symbol.for("immer-draftable"),se=Symbol.for("immer-state");function me(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Cn=Object.getPrototypeOf;function On(t){return!!t&&!!t[se]}function Qe(t){var e;return t?wd(t)||Array.isArray(t)||!!t[vd]||!!((e=t.constructor)!=null&&e[vd])||ci(t)||li(t):!1}var Qw=Object.prototype.constructor.toString();function wd(t){if(!t||typeof t!="object")return!1;const e=Cn(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Qw}function si(t,e){ai(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function ai(t){const e=t[se];return e?e.type_:Array.isArray(t)?1:ci(t)?2:li(t)?3:0}function Ns(t,e){return ai(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function bd(t,e,n){const r=ai(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function tb(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function ci(t){return t instanceof Map}function li(t){return t instanceof Set}function tn(t){return t.copy_||t.base_}function Bs(t,e){if(ci(t))return new Map(t);if(li(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=wd(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[se];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[s]})}return Object.create(Cn(t),r)}else{const r=Cn(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function Ds(t,e=!1){return ui(t)||On(t)||!Qe(t)||(ai(t)>1&&(t.set=t.add=t.clear=t.delete=eb),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>Ds(r,!0))),t}function eb(){me(2)}function ui(t){return Object.isFrozen(t)}var nb={};function en(t){const e=nb[t];return e||me(0,t),e}var vr;function _d(){return vr}function rb(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function xd(t,e){e&&(en("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Fs(t){Ls(t),t.drafts_.forEach(ib),t.drafts_=null}function Ls(t){t===vr&&(vr=t.parent_)}function Sd(t){return vr=rb(vr,t)}function ib(t){const e=t[se];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ed(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[se].modified_&&(Fs(e),me(4)),Qe(t)&&(t=fi(e,t),e.parent_||di(e,t)),e.patches_&&en("Patches").generateReplacementPatches_(n[se].base_,t,e.patches_,e.inversePatches_)):t=fi(e,n,[]),Fs(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==gd?t:void 0}function fi(t,e,n){if(ui(e))return e;const r=e[se];if(!r)return si(e,(i,o)=>Ad(t,r,e,i,o,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return di(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),si(o,(a,l)=>Ad(t,r,i,a,l,n,s)),di(t,i,!1),n&&t.patches_&&en("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Ad(t,e,n,r,i,o,s){if(On(i)){const a=o&&e&&e.type_!==3&&!Ns(e.assigned_,r)?o.concat(r):void 0,l=fi(t,i,a);if(bd(n,r,l),On(l))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Qe(i)&&!ui(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;fi(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&di(t,i)}}function di(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ds(e,n)}function ob(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:_d(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=js;n&&(i=[r],o=wr);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var js={get(t,e){if(e===se)return t;const n=tn(t);if(!Ns(n,e))return sb(t,n,e);const r=n[e];return t.finalized_||!Qe(r)?r:r===$s(t.base_,e)?(Us(t),t.copy_[e]=zs(r,t)):r},has(t,e){return e in tn(t)},ownKeys(t){return Reflect.ownKeys(tn(t))},set(t,e,n){const r=Td(tn(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=$s(tn(t),e),o=i==null?void 0:i[se];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(tb(n,i)&&(n!==void 0||Ns(t.base_,e)))return!0;Us(t),Vs(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return $s(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,Us(t),Vs(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=tn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){me(11)},getPrototypeOf(t){return Cn(t.base_)},setPrototypeOf(){me(12)}},wr={};si(js,(t,e)=>{wr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),wr.deleteProperty=function(t,e){return wr.set.call(this,t,e,void 0)},wr.set=function(t,e,n){return js.set.call(this,t[0],e,n,t[0])};function $s(t,e){const n=t[se];return(n?tn(n):t)[e]}function sb(t,e,n){var i;const r=Td(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function Td(t,e){if(!(e in t))return;let n=Cn(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Cn(n)}}function Vs(t){t.modified_||(t.modified_=!0,t.parent_&&Vs(t.parent_))}function Us(t){t.copy_||(t.copy_=Bs(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var ab=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const o=n;n=e;const s=this;return function(l=o,...d){return s.produce(l,c=>n.call(this,c,...d))}}typeof n!="function"&&me(6),r!==void 0&&typeof r!="function"&&me(7);let i;if(Qe(e)){const o=Sd(this),s=zs(e,void 0);let a=!0;try{i=n(s),a=!1}finally{a?Fs(o):Ls(o)}return xd(o,r),Ed(i,o)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===gd&&(i=void 0),this.autoFreeze_&&Ds(i,!0),r){const o=[],s=[];en("Patches").generateReplacementPatches_(e,i,o,s),r(o,s)}return i}else me(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,i;return[this.produce(e,n,(s,a)=>{r=s,i=a}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Qe(t)||me(8),On(t)&&(t=cb(t));const e=Sd(this),n=zs(t,void 0);return n[se].isManual_=!0,Ls(e),n}finishDraft(t,e){const n=t&&t[se];(!n||!n.isManual_)&&me(9);const{scope_:r}=n;return xd(r,e),Ed(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=en("Patches").applyPatches_;return On(t)?r(t,e):this.produce(t,i=>r(i,e))}};function zs(t,e){const n=ci(t)?en("MapSet").proxyMap_(t,e):li(t)?en("MapSet").proxySet_(t,e):ob(t,e);return(e?e.scope_:_d()).drafts_.push(n),n}function cb(t){return On(t)||me(10,t),Pd(t)}function Pd(t){if(!Qe(t)||ui(t))return t;const e=t[se];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Bs(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Bs(t,!0);return si(n,(r,i)=>{bd(n,r,Pd(i))}),e&&(e.finalized_=!1),n}var ae=new ab,In=ae.produce;ae.produceWithPatches.bind(ae),ae.setAutoFreeze.bind(ae),ae.setUseStrictShallowCopy.bind(ae),ae.applyPatches.bind(ae),ae.createDraft.bind(ae),ae.finishDraft.bind(ae);const hi={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Ws=new Map,pi=t=>{const e=Ws.get(t);return e?Object.fromEntries(Object.entries(e.stores).map(([n,r])=>[n,r.getState()])):{}},lb=(t,e,n)=>{if(t===void 0)return{type:"untracked",connection:e.connect(n)};const r=Ws.get(n.name);if(r)return{type:"tracked",store:t,...r};const i={connection:e.connect(n),stores:{}};return Ws.set(n.name,i),{type:"tracked",store:t,...i}},ub=(t,e={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:s,store:a,...l}=e;let d;try{d=(o??(hi?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!d)return(hi?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(n,r,i);const{connection:c,...h}=lb(a,d,l);let m=!0;i.setState=(_,P,x)=>{const v=n(_,P);if(!m)return v;const S=x===void 0?{type:s||"anonymous"}:typeof x=="string"?{type:x}:x;return a===void 0?(c==null||c.send(S,r()),v):(c==null||c.send({...S,type:`${a}/${S.type}`},{...pi(l.name),[a]:i.getState()}),v)};const y=(..._)=>{const P=m;m=!1,n(..._),m=P},b=t(i.setState,r,i);if(h.type==="untracked"?c==null||c.init(b):(h.stores[h.store]=i,c==null||c.init(Object.fromEntries(Object.entries(h.stores).map(([_,P])=>[_,_===h.store?b:P.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let _=!1;const P=i.dispatch;i.dispatch=(...x)=>{(hi?"production":void 0)!=="production"&&x[0].type==="__setState"&&!_&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),_=!0),P(...x)}}return c.subscribe(_=>{var P;switch(_.type){case"ACTION":if(typeof _.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return qs(_.payload,x=>{if(x.type==="__setState"){if(a===void 0){y(x.state);return}Object.keys(x.state).length!==1&&console.error(`
91
91
  [zustand devtools middleware] Unsupported __setState action format.
92
92
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
93
93
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
94
- `);const v=x.state[a];if(v==null)return;JSON.stringify(i.getState())!==JSON.stringify(v)&&y(v);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(x)});case"DISPATCH":switch(b.payload.type){case"RESET":return y(w),a===void 0?c==null?void 0:c.init(i.getState()):c==null?void 0:c.init(pi(l.name));case"COMMIT":if(a===void 0){c==null||c.init(i.getState());return}return c==null?void 0:c.init(pi(l.name));case"ROLLBACK":return Ws(b.state,x=>{if(a===void 0){y(x),c==null||c.init(i.getState());return}y(x[a]),c==null||c.init(pi(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ws(b.state,x=>{if(a===void 0){y(x);return}JSON.stringify(i.getState())!==JSON.stringify(x[a])&&y(x[a])});case"IMPORT_STATE":{const{nextLiftedState:x}=b.payload,v=(P=x.computedStates.slice(-1)[0])==null?void 0:P.state;if(!v)return;y(a===void 0?v:v[a]),c==null||c.send(null,x);return}case"PAUSE_RECORDING":return m=!m}return}}),w},Ws=(t,e)=>{let n;try{n=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&e(n)};function gb(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var o;const s=l=>l===null?null:JSON.parse(l,void 0),a=(o=n.getItem(i))!=null?o:null;return a instanceof Promise?a.then(s):s(a)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const wr=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return wr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return wr(r)(n)}}}},vb=(t,e)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:P=>P,version:0,merge:(P,x)=>({...x,...P}),...e},s=!1;const a=new Set,l=new Set;let d;try{d=o.getStorage()}catch{}if(!d)return t((...P)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...P)},r,i);const c=wr(o.serialize),h=()=>{const P=o.partialize({...r()});let x;const v=c({state:P,version:o.version}).then(E=>d.setItem(o.name,E)).catch(E=>{x=E});if(x)throw x;return v},m=i.setState;i.setState=(P,x)=>{m(P,x),h()};const y=t((...P)=>{n(...P),h()},r,i);let w;const b=()=>{var P;if(!d)return;s=!1,a.forEach(v=>v(r()));const x=((P=o.onRehydrateStorage)==null?void 0:P.call(o,r()))||void 0;return wr(d.getItem.bind(d))(o.name).then(v=>{if(v)return o.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return o.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var E;return w=o.merge(v,(E=r())!=null?E:y),n(w,!0),h()}).then(()=>{x==null||x(w,void 0),s=!0,l.forEach(v=>v(w))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:P=>{o={...o,...P},P.getStorage&&(d=P.getStorage())},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>s,onHydrate:P=>(a.add(P),()=>{a.delete(P)}),onFinishHydration:P=>(l.add(P),()=>{l.delete(P)})},b(),w||y},wb=(t,e)=>(n,r,i)=>{let o={storage:gb(()=>localStorage),partialize:b=>b,version:0,merge:(b,P)=>({...P,...b}),...e},s=!1;const a=new Set,l=new Set;let d=o.storage;if(!d)return t((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...b)},r,i);const c=()=>{const b=o.partialize({...r()});return d.setItem(o.name,{state:b,version:o.version})},h=i.setState;i.setState=(b,P)=>{h(b,P),c()};const m=t((...b)=>{n(...b),c()},r,i);i.getInitialState=()=>m;let y;const w=()=>{var b,P;if(!d)return;s=!1,a.forEach(v=>{var E;return v((E=r())!=null?E:m)});const x=((P=o.onRehydrateStorage)==null?void 0:P.call(o,(b=r())!=null?b:m))||void 0;return wr(d.getItem.bind(d))(o.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return[!0,o.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var E;const[M,I]=v;if(y=o.merge(I,(E=r())!=null?E:m),n(y,!0),M)return c()}).then(()=>{x==null||x(y,void 0),y=r(),s=!0,l.forEach(v=>v(y))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:b=>{o={...o,...b},b.storage&&(d=b.storage)},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>w(),hasHydrated:()=>s,onHydrate:b=>(a.add(b),()=>{a.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},o.skipHydration||w(),y||m},bb=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((hi?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),vb(t,e)):wb(t,e);function mi(t){const e=t.content.slice(0,50);return t.support?`${t.date}-${t.authorName}-${e}`:`${t.date}-customer-${e}`}function Rd(t,e){const n=new Map;return t.forEach(r=>{const i=mi(r);n.set(i,r)}),e.forEach(r=>{const i=mi(r);n.set(i,r)}),Array.from(n.values()).sort((r,i)=>r.date-i.date)}function _b(t,e){const n=mi(e);return t.some(r=>mi(r)===n)}const Bt=ib(yb(bb((t,e)=>({_REHYDRATED_:!1,token:"",isNetworkInitialized:!1,isChatOpen:!1,isChatVisible:!1,isConversationOpen:!0,conversations:[],email:"",username:"",openConversationId:null,guildSettings:{iconURL:"",header_title:"",header_subtitle:"",lastUpdate:null},fullScreen:!1,isLoading:!1,networkError:null,currentConversationLastFetchedAt:null,pastConversationsLastFetchedAt:null,setRehydrated:n=>t(()=>({_REHYDRATED_:n})),setFullScreen:n=>t(()=>({fullScreen:n})),setToken:n=>t(()=>({token:n})),toggleChatOpen:()=>t(n=>({isChatOpen:!n.isChatOpen})),setNetworkInitialized:n=>t(()=>({isNetworkInitialized:n})),setChatVisible:n=>t(()=>({isChatVisible:n})),setChatOpen:n=>t(()=>({isChatOpen:n})),setOpenConversationId:n=>t(()=>({openConversationId:n})),setConversations:n=>t(()=>({conversations:n})),setGuildSettings:n=>t(r=>({guildSettings:{...r.guildSettings,...n}})),setConversationOpen:(n,r)=>t(i=>({conversations:i.conversations.map(o=>o.threadId===n?{...o,status:r?"open":"closed"}:o)})),setConversationCSMember:(n,r)=>t(On(i=>{const o=i.conversations.find(s=>s.threadId===n);o&&(o.csMember=r)})),addMessage:(n,r)=>t(On(i=>{const o=i.conversations.find(s=>s.threadId===n);o?o.messages.push(r):(i.conversations.push({threadId:n,lastMessageDate:Date.now(),firstMessageDate:Date.now(),status:"open",messages:[r]}),i.openConversationId=n)})),updateMessage:(n,r,i)=>t(On(o=>{const s=o.conversations.findIndex(a=>a.threadId===n);if(s!==-1){const a=o.conversations[s].messages.findIndex(l=>l.date===r);o.conversations[s].messages[a]=i}})),removeMessage:(n,r)=>t(On(i=>{const o=i.conversations.findIndex(s=>s.threadId===n);o!==-1&&(i.conversations[o].messages=i.conversations[o].messages.filter(s=>s.date!==r))})),tempConversationToThread:n=>t(r=>({...r,openConversationId:n,conversations:r.conversations.map(i=>i.threadId==="TEMP"?{...i,threadId:n}:i)})),setEmail:n=>t(()=>({email:n})),setUsername:n=>t(()=>({username:n})),getConversation:()=>{const{conversations:n,openConversationId:r}=e();return r?n.find(i=>i.threadId===r)??null:null},setLoading:n=>t(()=>({isLoading:n})),setNetworkError:n=>t(()=>({networkError:n})),setCurrentConversationLastFetchedAt:n=>t(()=>({currentConversationLastFetchedAt:n})),setPastConversationsLastFetchedAt:n=>t(()=>({pastConversationsLastFetchedAt:n})),smartMergeCurrentConversation:n=>t(On(r=>{const i=r.conversations.findIndex(o=>o.threadId===n.threadId);if(i!==-1){const o=r.conversations[i],s=Rd(o.messages,n.messages);r.conversations[i]={...n,messages:s}}else r.conversations.push(n);r.currentConversationLastFetchedAt=Date.now()})),smartMergePastConversations:n=>t(On(r=>{n.forEach(i=>{const o=r.conversations.findIndex(s=>s.threadId===i.threadId);if(o!==-1){const s=r.conversations[o],a=Rd(s.messages,i.messages);r.conversations[o]={...i,messages:a}}else r.conversations.push(i)}),r.pastConversationsLastFetchedAt=Date.now()}))}),{name:"discord-widget-storage",partialize:t=>({token:t.token,username:t.username,email:t.email,openConversationId:t.openConversationId,conversations:xb(t.conversations),guildSettings:t.guildSettings}),onRehydrateStorage:t=>()=>t.setRehydrated(!0)}),{enabled:!1}));function xb(t){return t.map(e=>({...e,messages:e.messages.filter(n=>!n.ephemeral&&!n.pending)}))}const Md=460,Eb=750,Sb="http://localhost:10001";function Ab(){var i;const t=(i=window.deskcord)==null?void 0:i.settings,e=window.deskcordSettings,n=(t==null?void 0:t.app_id)??(e==null?void 0:e.app_id),r=(t==null?void 0:t.api)??(e==null?void 0:e.api)??Sb;if(!n)throw new Error("Cannot initialize discord chat. Please check your installation and embed.");return{app_id:n,api:r}}const ye=Ab();async function Tb({content:t}){const e=Bt.getState().username,n=mr.get("discord-widget"),r=JSON.stringify({name:e,content:t}),i=new Headers;i.append("Content-Type","application/json"),i.append("Authorization",`Bearer ${n}`);const o={method:"POST",headers:i,body:r};return await(await fetch(`${ye.api}/conversations/sendMessage`,o)).json()}var In=(t=>(t[t.IntroduceYourself=0]="IntroduceYourself",t[t.UploadFile=1]="UploadFile",t))(In||{});const br="System",Pb={content:"This conversation has been closed by the support.",support:!0,authorName:br,date:Date.now()},kb={content:"",support:!0,authorName:br,date:Date.now(),customRenderer:In.IntroduceYourself};function Cb(t){return{content:`You are now chatting with ${t}.`,support:!0,authorName:br,date:Date.now(),ephemeral:!0}}function Ob(t){return{content:"",support:!0,authorName:br,date:Date.now(),customRenderer:In.UploadFile,customRendererProps:{file:t},ephemeral:!0}}function Ib(t){return{content:"",support:!1,authorName:"",date:Date.now(),ephemeral:!0,attachments:t}}const Rb=je(({accept:t,maxSize:e,uploadConfig:n,onFileSelect:r,onUploadComplete:i,onUploadStart:o,onError:s},a)=>{const l=ot(null),d=ot(null),{addMessage:c,getConversation:h,removeMessage:m,updateMessage:y}=Bt(),w=h();Yn(a,()=>({upload:async()=>{if(d.current)try{const M=new FormData;M.append("file",d.current),o==null||o(d.current),P(d.current);const I=await fetch(n.url,{method:n.method,headers:n.headers,body:M}),F=await I.json();i==null||i(I),x(d.current),b(F)}catch(M){s==null||s(M),v(d.current)}},clear:()=>{d.current=null,l.current&&(l.current.value=""),r==null||r(null)}}));function b(M){w&&c(w.threadId,Ib(M.attachments))}function P(M){w&&c(w.threadId,Ob({fileName:M.name,status:"uploading",size:M.size}))}function x(M){var F;if(!w)return;const I=(F=h())==null?void 0:F.messages.find(D=>{var q,L;return((L=(q=D.customRendererProps)==null?void 0:q.file)==null?void 0:L.fileName)===M.name});I&&m(w.threadId,I.date)}function v(M){var F,D;if(!w)return;const I=(F=h())==null?void 0:F.messages.find(q=>{var L,Y;return((Y=(L=q.customRendererProps)==null?void 0:L.file)==null?void 0:Y.fileName)===M.name});(D=I==null?void 0:I.customRendererProps)!=null&&D.file&&y(w.threadId,I.date,{...I,customRendererProps:{...I.customRendererProps,file:{...I.customRendererProps.file,status:"error"}}})}return O(Ct,{children:[O("button",{className:"text-gray-500 hover:text-blue-500","aria-label":"Upload file",onClick:()=>{var M;return(M=l.current)==null?void 0:M.click()},children:O(xw,{size:16})}),O("input",{type:"file",accept:t,ref:l,style:{display:"none"},onChange:M=>{var F;const I=(F=M.target.files)==null?void 0:F[0];I&&I.size<=e?(d.current=I,r==null||r(I)):(d.current=null,r==null||r(null))}})]})}),Mb=({size:t})=>O("svg",{className:"shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:t||16,height:t||16,fill:"currentColor",viewBox:"0 0 16 16",children:O("path",{d:"M15.964.686a.5.5 0 0 0-.65-.65L.767 5.855H.766l-.452.18a.5.5 0 0 0-.082.887l.41.26.001.002 4.995 3.178 3.178 4.995.002.002.26.41a.5.5 0 0 0 .886-.083l6-15Zm-1.833 1.89L6.637 10.07l-.215-.338a.5.5 0 0 0-.154-.154l-.338-.215 7.494-7.494 1.178-.471-.47 1.178Z"})}),Nb=({onPickEmoji:t})=>O("div",{className:"mb-2 p-2 bg-white max-h-40 overflow-y-auto",children:O("div",{className:"grid grid-cols-8 gap-2",children:Bb.map((e,n)=>O("button",{className:"text-2xl hover:bg-gray-100 rounded",onClick:()=>t(e),children:e},n))})}),Bb=["😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕"],Db=({imageUrl:t,fileName:e,onDelete:n,width:r,height:i})=>O("div",{className:"relative w-32 h-32 rounded-lg overflow-hidden bg-gray-100 border border-gray-200",children:[O("div",{className:"flex justify-center absolute inset-0",children:O("img",{src:t,alt:"Preview",className:`w-[${r}px] h-[${i}px] max-w-[100px] max-h-[100px] aspect-auto`})}),O("button",{onClick:n,className:"absolute top-1 right-1 bg-gray-600 p-1 rounded-lg text-red-400 hover:text-white transition",children:O(Aw,{size:20})}),O("div",{className:"absolute bottom-0 left-0 right-0 bg-gray-800 bg-opacity-80 text-white text-sm px-2 py-1 truncate",children:e})]}),Fb=t=>{const{inputMessage:e,setInputMessage:n,sendMessage:r,setFiles:i,files:o,showEmojiPicker:s,addEmoji:a,setShowEmojiPicker:l,attachmentPreviews:d}=t,{getConversation:c}=Bt(),h=c(),m=mr.get("discord-widget"),y=ot(null),w=(h==null?void 0:h.status)==="closed",b=()=>{},P=F=>{i(o.filter(D=>(F==null?void 0:F.name)!==D.name))},x=F=>{F&&i([...o,F])},v=()=>{var F;(F=y.current)==null||F.upload()},E=()=>{o.length&&v(),r()},M=F=>{F.key==="Enter"&&(F.shiftKey?(F.preventDefault(),n(`${e}
95
- `)):(F.preventDefault(),E()))};return O("div",{className:"relative border-t border-t-gray-200",children:[s&&O(Nb,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const F=o.map((D,q)=>{if(!d[D.name])return null;const{url:L,width:Y,height:Z}=d[D.name];return O(Db,{onDelete:()=>{var et;i(o.filter(st=>st.name!==D.name)),(et=y.current)==null||et.clear()},fileName:D.name,width:Y,height:Z,imageUrl:L},`attachment-preview-${q}`)});return O("div",{className:"m-2",children:F})})(),O("textarea",{id:"hs-textarea-ex-1",disabled:w,value:e,onChange:F=>n(F.target.value),onKeyDown:M,className:"p-4 pb-12 block w-full border-t border-gray-200 text-sm outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 resize-none",placeholder:"Ask us anything!","data-hs-textarea-auto-height":""}),O("div",{className:"absolute bottom-px inset-x-px p-2 rounded-b-md bg-white dark:bg-neutral-900",children:O("div",{className:"flex justify-between items-center",children:[O("div",{className:"flex items-center",children:O("div",{className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:O(Rb,{ref:y,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${m}`}},onUploadComplete:b,onUploadStart:P,onFileSelect:x})})}),O("div",{className:"flex items-center gap-x-1",children:[O("button",{type:"button",onClick:w?void 0:()=>l(!s),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:O(Sw,{size:16})}),O("button",{type:"button",onClick:()=>E(),style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:`inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white
94
+ `);const v=x.state[a];if(v==null)return;JSON.stringify(i.getState())!==JSON.stringify(v)&&y(v);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(x)});case"DISPATCH":switch(_.payload.type){case"RESET":return y(b),a===void 0?c==null?void 0:c.init(i.getState()):c==null?void 0:c.init(pi(l.name));case"COMMIT":if(a===void 0){c==null||c.init(i.getState());return}return c==null?void 0:c.init(pi(l.name));case"ROLLBACK":return qs(_.state,x=>{if(a===void 0){y(x),c==null||c.init(i.getState());return}y(x[a]),c==null||c.init(pi(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return qs(_.state,x=>{if(a===void 0){y(x);return}JSON.stringify(i.getState())!==JSON.stringify(x[a])&&y(x[a])});case"IMPORT_STATE":{const{nextLiftedState:x}=_.payload,v=(P=x.computedStates.slice(-1)[0])==null?void 0:P.state;if(!v)return;y(a===void 0?v:v[a]),c==null||c.send(null,x);return}case"PAUSE_RECORDING":return m=!m}return}}),b},qs=(t,e)=>{let n;try{n=JSON.parse(t)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&e(n)};function fb(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var o;const s=l=>l===null?null:JSON.parse(l,void 0),a=(o=n.getItem(i))!=null?o:null;return a instanceof Promise?a.then(s):s(a)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const br=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return br(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return br(r)(n)}}}},db=(t,e)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:P=>P,version:0,merge:(P,x)=>({...x,...P}),...e},s=!1;const a=new Set,l=new Set;let d;try{d=o.getStorage()}catch{}if(!d)return t((...P)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...P)},r,i);const c=br(o.serialize),h=()=>{const P=o.partialize({...r()});let x;const v=c({state:P,version:o.version}).then(S=>d.setItem(o.name,S)).catch(S=>{x=S});if(x)throw x;return v},m=i.setState;i.setState=(P,x)=>{m(P,x),h()};const y=t((...P)=>{n(...P),h()},r,i);let b;const _=()=>{var P;if(!d)return;s=!1,a.forEach(v=>v(r()));const x=((P=o.onRehydrateStorage)==null?void 0:P.call(o,r()))||void 0;return br(d.getItem.bind(d))(o.name).then(v=>{if(v)return o.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return o.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var S;return b=o.merge(v,(S=r())!=null?S:y),n(b,!0),h()}).then(()=>{x==null||x(b,void 0),s=!0,l.forEach(v=>v(b))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:P=>{o={...o,...P},P.getStorage&&(d=P.getStorage())},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>_(),hasHydrated:()=>s,onHydrate:P=>(a.add(P),()=>{a.delete(P)}),onFinishHydration:P=>(l.add(P),()=>{l.delete(P)})},_(),b||y},hb=(t,e)=>(n,r,i)=>{let o={storage:fb(()=>localStorage),partialize:_=>_,version:0,merge:(_,P)=>({...P,..._}),...e},s=!1;const a=new Set,l=new Set;let d=o.storage;if(!d)return t((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(..._)},r,i);const c=()=>{const _=o.partialize({...r()});return d.setItem(o.name,{state:_,version:o.version})},h=i.setState;i.setState=(_,P)=>{h(_,P),c()};const m=t((..._)=>{n(..._),c()},r,i);i.getInitialState=()=>m;let y;const b=()=>{var _,P;if(!d)return;s=!1,a.forEach(v=>{var S;return v((S=r())!=null?S:m)});const x=((P=o.onRehydrateStorage)==null?void 0:P.call(o,(_=r())!=null?_:m))||void 0;return br(d.getItem.bind(d))(o.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return[!0,o.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var S;const[M,I]=v;if(y=o.merge(I,(S=r())!=null?S:m),n(y,!0),M)return c()}).then(()=>{x==null||x(y,void 0),y=r(),s=!0,l.forEach(v=>v(y))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:_=>{o={...o,..._},_.storage&&(d=_.storage)},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>s,onHydrate:_=>(a.add(_),()=>{a.delete(_)}),onFinishHydration:_=>(l.add(_),()=>{l.delete(_)})},o.skipHydration||b(),y||m},pb=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((hi?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),db(t,e)):hb(t,e);function mi(t){const e=t.content.slice(0,50);return t.support?`${t.date}-${t.authorName}-${e}`:`${t.date}-customer-${e}`}function kd(t,e){const n=new Map;return t.forEach(r=>{const i=mi(r);n.set(i,r)}),e.forEach(r=>{const i=mi(r);n.set(i,r)}),Array.from(n.values()).sort((r,i)=>r.date-i.date)}function mb(t,e){const n=mi(e);return t.some(r=>mi(r)===n)}const Bt=Zw(ub(pb((t,e)=>({_REHYDRATED_:!1,token:"",isNetworkInitialized:!1,isChatOpen:!1,isChatVisible:!1,isConversationOpen:!0,conversations:[],email:"",username:"",openConversationId:null,guildSettings:{iconURL:"",header_title:"",header_subtitle:"",lastUpdate:null},fullScreen:!1,isLoading:!1,networkError:null,currentConversationLastFetchedAt:null,pastConversationsLastFetchedAt:null,setRehydrated:n=>t(()=>({_REHYDRATED_:n})),setFullScreen:n=>t(()=>({fullScreen:n})),setToken:n=>t(()=>({token:n})),toggleChatOpen:()=>t(n=>({isChatOpen:!n.isChatOpen})),setNetworkInitialized:n=>t(()=>({isNetworkInitialized:n})),setChatVisible:n=>t(()=>({isChatVisible:n})),setChatOpen:n=>t(()=>({isChatOpen:n})),setOpenConversationId:n=>t(()=>({openConversationId:n})),setConversations:n=>t(()=>({conversations:n})),setGuildSettings:n=>t(r=>({guildSettings:{...r.guildSettings,...n}})),setConversationOpen:(n,r)=>t(i=>({conversations:i.conversations.map(o=>o.threadId===n?{...o,status:r?"open":"closed"}:o)})),setConversationCSMember:(n,r)=>t(In(i=>{const o=i.conversations.find(s=>s.threadId===n);o&&(o.csMember=r)})),addMessage:(n,r)=>t(In(i=>{const o=i.conversations.find(s=>s.threadId===n);o?o.messages.push(r):(i.conversations.push({threadId:n,lastMessageDate:Date.now(),firstMessageDate:Date.now(),status:"open",messages:[r]}),i.openConversationId=n)})),updateMessage:(n,r,i)=>t(In(o=>{const s=o.conversations.findIndex(a=>a.threadId===n);if(s!==-1){const a=o.conversations[s].messages.findIndex(l=>l.date===r);o.conversations[s].messages[a]=i}})),removeMessage:(n,r)=>t(In(i=>{const o=i.conversations.findIndex(s=>s.threadId===n);o!==-1&&(i.conversations[o].messages=i.conversations[o].messages.filter(s=>s.date!==r))})),tempConversationToThread:n=>t(r=>({...r,openConversationId:n,conversations:r.conversations.map(i=>i.threadId==="TEMP"?{...i,threadId:n}:i)})),setEmail:n=>t(()=>({email:n})),setUsername:n=>t(()=>({username:n})),getConversation:()=>{const{conversations:n,openConversationId:r}=e();return r?n.find(i=>i.threadId===r)??null:null},setLoading:n=>t(()=>({isLoading:n})),setNetworkError:n=>t(()=>({networkError:n})),setCurrentConversationLastFetchedAt:n=>t(()=>({currentConversationLastFetchedAt:n})),setPastConversationsLastFetchedAt:n=>t(()=>({pastConversationsLastFetchedAt:n})),smartMergeCurrentConversation:n=>t(In(r=>{const i=r.conversations.findIndex(o=>o.threadId===n.threadId);if(i!==-1){const o=r.conversations[i],s=kd(o.messages,n.messages);r.conversations[i]={...n,messages:s}}else r.conversations.push(n);r.currentConversationLastFetchedAt=Date.now()})),smartMergePastConversations:n=>t(In(r=>{n.forEach(i=>{const o=r.conversations.findIndex(s=>s.threadId===i.threadId);if(o!==-1){const s=r.conversations[o],a=kd(s.messages,i.messages);r.conversations[o]={...i,messages:a}}else r.conversations.push(i)}),r.pastConversationsLastFetchedAt=Date.now()}))}),{name:"discord-widget-storage",partialize:t=>({token:t.token,username:t.username,email:t.email,openConversationId:t.openConversationId,conversations:yb(t.conversations),guildSettings:t.guildSettings}),onRehydrateStorage:t=>()=>t.setRehydrated(!0)}),{enabled:!1}));function yb(t){return t.map(e=>({...e,messages:e.messages.filter(n=>!n.ephemeral&&!n.pending)}))}const Cd=460,gb=750,vb="https://api.staging.deskcord.chat";function wb(){var i;const t=(i=window.deskcord)==null?void 0:i.settings,e=window.deskcordSettings,n=(t==null?void 0:t.app_id)??(e==null?void 0:e.app_id),r=(t==null?void 0:t.api)??(e==null?void 0:e.api)??vb;if(!n)throw new Error("Cannot initialize discord chat. Please check your installation and embed.");return{app_id:n,api:r}}const ye=wb();async function bb({content:t}){const e=Bt.getState().username,n=yr.get("discord-widget"),r=JSON.stringify({name:e,content:t}),i=new Headers;i.append("Content-Type","application/json"),i.append("Authorization",`Bearer ${n}`);const o={method:"POST",headers:i,body:r};return await(await fetch(`${ye.api}/conversations/sendMessage`,o)).json()}var Rn=(t=>(t[t.IntroduceYourself=0]="IntroduceYourself",t[t.UploadFile=1]="UploadFile",t))(Rn||{});const _r="System",_b={content:"This conversation has been closed by the support.",support:!0,authorName:_r,date:Date.now()},xb={content:"",support:!0,authorName:_r,date:Date.now(),customRenderer:Rn.IntroduceYourself};function Sb(t){return{content:`You are now chatting with ${t}.`,support:!0,authorName:_r,date:Date.now(),ephemeral:!0}}function Eb(t){return{content:"",support:!0,authorName:_r,date:Date.now(),customRenderer:Rn.UploadFile,customRendererProps:{file:t},ephemeral:!0}}function Ab(t){return{content:"",support:!1,authorName:"",date:Date.now(),ephemeral:!0,attachments:t}}const Tb=je(({accept:t,maxSize:e,uploadConfig:n,onFileSelect:r,onUploadComplete:i,onUploadStart:o,onError:s},a)=>{const l=ot(null),d=ot(null),{addMessage:c,getConversation:h,removeMessage:m,updateMessage:y}=Bt(),b=h();Xn(a,()=>({upload:async()=>{if(d.current)try{const M=new FormData;M.append("file",d.current),o==null||o(d.current),P(d.current);const I=await fetch(n.url,{method:n.method,headers:n.headers,body:M}),F=await I.json();i==null||i(I),x(d.current),_(F)}catch(M){s==null||s(M),v(d.current)}},clear:()=>{d.current=null,l.current&&(l.current.value=""),r==null||r(null)}}));function _(M){b&&c(b.threadId,Ab(M.attachments))}function P(M){b&&c(b.threadId,Eb({fileName:M.name,status:"uploading",size:M.size}))}function x(M){var F;if(!b)return;const I=(F=h())==null?void 0:F.messages.find(D=>{var W,L;return((L=(W=D.customRendererProps)==null?void 0:W.file)==null?void 0:L.fileName)===M.name});I&&m(b.threadId,I.date)}function v(M){var F,D;if(!b)return;const I=(F=h())==null?void 0:F.messages.find(W=>{var L,Y;return((Y=(L=W.customRendererProps)==null?void 0:L.file)==null?void 0:Y.fileName)===M.name});(D=I==null?void 0:I.customRendererProps)!=null&&D.file&&y(b.threadId,I.date,{...I,customRendererProps:{...I.customRendererProps,file:{...I.customRendererProps.file,status:"error"}}})}return C(kt,{children:[C("button",{className:"text-gray-500 hover:text-blue-500","aria-label":"Upload file",onClick:()=>{var M;return(M=l.current)==null?void 0:M.click()},children:C(yw,{size:16})}),C("input",{type:"file",accept:t,ref:l,style:{display:"none"},onChange:M=>{var F;const I=(F=M.target.files)==null?void 0:F[0];I&&I.size<=e?(d.current=I,r==null||r(I)):(d.current=null,r==null||r(null))}})]})}),Pb=({size:t})=>C("svg",{className:"shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:t||16,height:t||16,fill:"currentColor",viewBox:"0 0 16 16",children:C("path",{d:"M15.964.686a.5.5 0 0 0-.65-.65L.767 5.855H.766l-.452.18a.5.5 0 0 0-.082.887l.41.26.001.002 4.995 3.178 3.178 4.995.002.002.26.41a.5.5 0 0 0 .886-.083l6-15Zm-1.833 1.89L6.637 10.07l-.215-.338a.5.5 0 0 0-.154-.154l-.338-.215 7.494-7.494 1.178-.471-.47 1.178Z"})}),kb=({onPickEmoji:t})=>C("div",{className:"mb-2 p-2 bg-white max-h-40 overflow-y-auto",children:C("div",{className:"grid grid-cols-8 gap-2",children:Cb.map((e,n)=>C("button",{className:"text-2xl hover:bg-gray-100 rounded",onClick:()=>t(e),children:e},n))})}),Cb=["😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕"],Ob=({imageUrl:t,fileName:e,onDelete:n,width:r,height:i})=>C("div",{className:"relative w-32 h-32 rounded-lg overflow-hidden bg-gray-100 border border-gray-200",children:[C("div",{className:"flex justify-center absolute inset-0",children:C("img",{src:t,alt:"Preview",className:`w-[${r}px] h-[${i}px] max-w-[100px] max-h-[100px] aspect-auto`})}),C("button",{onClick:n,className:"absolute top-1 right-1 bg-gray-600 p-1 rounded-lg text-red-400 hover:text-white transition",children:C(ww,{size:20})}),C("div",{className:"absolute bottom-0 left-0 right-0 bg-gray-800 bg-opacity-80 text-white text-sm px-2 py-1 truncate",children:e})]}),Ib=t=>{const{inputMessage:e,setInputMessage:n,sendMessage:r,setFiles:i,files:o,showEmojiPicker:s,addEmoji:a,setShowEmojiPicker:l,attachmentPreviews:d}=t,{getConversation:c}=Bt(),h=c(),m=yr.get("discord-widget"),y=ot(null),b=(h==null?void 0:h.status)==="closed",_=()=>{},P=F=>{i(o.filter(D=>(F==null?void 0:F.name)!==D.name))},x=F=>{F&&i([...o,F])},v=()=>{var F;(F=y.current)==null||F.upload()},S=()=>{o.length&&v(),r()},M=F=>{F.key==="Enter"&&(F.shiftKey?(F.preventDefault(),n(`${e}
95
+ `)):(F.preventDefault(),S()))};return C("div",{className:"relative border-t border-t-gray-200",children:[s&&C(kb,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const F=o.map((D,W)=>{if(!d[D.name])return null;const{url:L,width:Y,height:Z}=d[D.name];return C(Ob,{onDelete:()=>{var et;i(o.filter(st=>st.name!==D.name)),(et=y.current)==null||et.clear()},fileName:D.name,width:Y,height:Z,imageUrl:L},`attachment-preview-${W}`)});return C("div",{className:"m-2",children:F})})(),C("textarea",{id:"hs-textarea-ex-1",disabled:b,value:e,onChange:F=>n(F.target.value),onKeyDown:M,className:"p-4 pb-12 block w-full border-t border-gray-200 text-sm outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 resize-none",placeholder:"Ask us anything!","data-hs-textarea-auto-height":""}),C("div",{className:"absolute bottom-px inset-x-px p-2 rounded-b-md bg-white dark:bg-neutral-900",children:C("div",{className:"flex justify-between items-center",children:[C("div",{className:"flex items-center",children:C("div",{className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:C(Tb,{ref:y,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${m}`}},onUploadComplete:_,onUploadStart:P,onFileSelect:x})})}),C("div",{className:"flex items-center gap-x-1",children:[C("button",{type:"button",onClick:b?void 0:()=>l(!s),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:C(vw,{size:16})}),C("button",{type:"button",onClick:()=>S(),style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:`inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white
96
96
  transform transition-transform duration-150
97
- hover:scale-105 active:scale-95`,children:O(Mb,{size:16})})]})]})})]})},Nd=t=>{const e=Date.now(),n=Math.floor((e-t)/1e3);return n<60?"Just now":n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`},Bd="carousel",Dd="controller",Lb="navigation",jb="no-scroll",Hs="portal",$b="root",Fd="toolbar",Gs="loading",Ks="error",Ys="complete",Vb="placeholder",Ub=t=>`active-slide-${t}`,Ld="flex_center",zb="no_scroll",jd="no_scroll_padding",qb="slide_wrapper",nn="prev",rn="next",$d="swipe",Rn="close",Vd="onPointerDown",Ud="onPointerMove",zd="onPointerUp",qd="onPointerLeave",Wd="onPointerCancel",Hd="onKeyDown",Wb="onKeyUp",Gd="onWheel",Hb="Escape",Gb="ArrowLeft",Kb="ArrowRight",Yb="button",Xs="icon",Kd="contain",Yd="cover",Xb="Unknown action type",Xd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function xt(t){return`${Xd}${t}`}function ie(t){return`--${Xd}${t}`}function _r(t,e){return`${t}${e?`_${e}`:""}`}function Js(t){return e=>_r(t,e)}function Jb(t,e){var n;return(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e}function Jd(...t){return()=>{t.forEach(e=>{e()})}}function on(t,e,n){return()=>{const r=$t(n);if(!r)throw new Error(`${t} must be used within a ${e}.Provider`);return r}}function Zd(){return typeof window<"u"}function Zb(t,e=0){const n=10**e;return Math.round((t+Number.EPSILON)*n)/n}function Qd(t){return t.type===void 0||t.type==="image"}function Qb(t,e){return t.imageFit===Yd||t.imageFit!==Kd&&e===Yd}function yi(t){return typeof t=="string"?Number.parseInt(t,10):t}function gi(t){if(typeof t=="number")return{pixel:t};if(typeof t=="string"){const e=yi(t);return t.endsWith("%")?{percent:e}:{pixel:e}}return{pixel:0}}function t_(t,e){const n=gi(e),r=n.percent!==void 0?t.width/100*n.percent:n.pixel;return{width:Math.max(t.width-2*r,0),height:Math.max(t.height-2*r,0)}}function th(t,e){return e>0?(t%e+e)%e:0}function eh(t){return t.length>0}function nh(t,e){return t[th(e,t.length)]}function Zs(t,e){return eh(t)?nh(t,e):void 0}function e_(t){return Qd(t)?t.src:void 0}function n_(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const r_=Number(al.split(".")[0])>=19;function i_(t){return{inert:r_?t:t?"":void 0}}const Qs={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Rn]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Kd,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function sn(t,e){return{name:t,component:e}}function Gt(t,e){return{module:t,children:e}}function rh(t,e,n){return t.module.name===e?n(t):t.children?[Gt(t.module,t.children.flatMap(r=>{var i;return(i=rh(r,e,n))!==null&&i!==void 0?i:[]}))]:[t]}function Mn(t,e,n){return t.flatMap(r=>{var i;return(i=rh(r,e,n))!==null&&i!==void 0?i:[]})}function o_(t,e=[],n=[]){let r=t;const i=y=>{const w=[...r];for(;w.length>0;){const b=w.pop();if((b==null?void 0:b.module.name)===y)return!0;b!=null&&b.children&&w.push(...b.children)}return!1},o=(y,w)=>{if(y===""){r=[Gt(w,r)];return}r=Mn(r,y,b=>[Gt(w,[b])])},s=(y,w)=>{r=Mn(r,y,b=>[Gt(b.module,[Gt(w,b.children)])])},a=(y,w,b)=>{r=Mn(r,y,P=>{var x;return[Gt(P.module,[...b?[Gt(w)]:[],...(x=P.children)!==null&&x!==void 0?x:[],...b?[]:[Gt(w)]])]})},l=(y,w,b)=>{r=Mn(r,y,P=>[...b?[Gt(w)]:[],P,...b?[]:[Gt(w)]])},d=y=>{s(Dd,y)},c=(y,w)=>{r=Mn(r,y,b=>[Gt(w,b.children)])},h=y=>{r=Mn(r,y,w=>w.children)},m=y=>{n.push(y)};return e.forEach(y=>{y({contains:i,addParent:o,append:s,addChild:a,addSibling:l,addModule:d,replace:c,remove:h,augment:m})}),{config:r,augmentation:y=>n.reduce((w,b)=>b(w),y)}}const ih=te(null),ta=on("useDocument","DocumentContext",ih);function s_({nodeRef:t,children:e}){const n=Ht(()=>{const r=o=>{var s;return((s=o||t.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:o=>{var s;return((s=r(o))===null||s===void 0?void 0:s.defaultView)||window}}},[t]);return nt(ih.Provider,{value:n},e)}const oh=te(null),vi=on("useEvents","EventsContext",oh);function a_({children:t}){const[e]=bt({});mt(()=>()=>{Object.keys(e).forEach(r=>delete e[r])},[e]);const n=Ht(()=>{const r=(s,a)=>{var l;(l=e[s])===null||l===void 0||l.splice(0,e[s].length,...e[s].filter(d=>d!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(d=>d(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return nt(oh.Provider,{value:n},t)}const sh=te(null),xr=on("useLightboxProps","LightboxPropsContext",sh);function c_({children:t,...e}){return nt(sh.Provider,{value:e},t)}const ah=te(null),wi=on("useLightboxState","LightboxStateContext",ah),ch=te(null),l_=on("useLightboxDispatch","LightboxDispatchContext",ch);function u_(t,e){switch(e.type){case"swipe":{const{slides:n}=t,r=(e==null?void 0:e.increment)||0,i=t.globalIndex+r,o=th(i,n.length),s=Zs(n,o),a=r||e.duration?{increment:r,duration:e.duration,easing:e.easing}:void 0;return{slides:n,currentIndex:o,globalIndex:i,currentSlide:s,animation:a}}case"update":return e.slides!==t.slides||e.index!==t.currentIndex?{slides:e.slides,currentIndex:e.index,globalIndex:e.index,currentSlide:Zs(e.slides,e.index)}:t;default:throw new Error(Xb)}}function f_({slides:t,index:e,children:n}){const[r,i]=Kn(u_,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Zs(t,e)});mt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=Ht(()=>({...r,state:r,dispatch:i}),[r,i]);return nt(ch.Provider,{value:i},nt(ah.Provider,{value:o},n))}const lh=te(null),bi=on("useTimeouts","TimeoutsContext",lh);function d_({children:t}){const[e]=bt([]);mt(()=>()=>{e.forEach(r=>window.clearTimeout(r)),e.splice(0,e.length)},[e]);const n=Ht(()=>{const r=s=>{e.splice(0,e.length,...e.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const l=window.setTimeout(()=>{r(l),s()},a);return e.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[e]);return nt(lh.Provider,{value:n},t)}const uh=je(function({label:e,className:n,icon:r,renderIcon:i,onClick:o,style:s,...a},l){const{styles:d,labels:c}=xr(),h=Jb(c,e);return nt("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(xt(Yb),n),onClick:o,style:{...s,...d.button},...a},i?i():nt(r,{className:xt(Xs),style:d.icon}))});function h_(t,e){const n=r=>nt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},e);return n.displayName=t,n}function Er(t,e){return h_(t,nt("g",{fill:"currentColor"},nt("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const p_=Er("Close",nt("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),m_=Er("Previous",nt("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),y_=Er("Next",nt("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),g_=Er("Loading",nt(Ct,null,Array.from({length:8}).map((t,e,n)=>nt("line",{key:e,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(e+1),transform:`rotate(${360/n.length*e}, 12, 12)`})))),v_=Er("Error",nt("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Sr=Zd()?Oe:mt;function fh(){const[t,e]=bt(!1);return mt(()=>{var n,r;const i=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");e(i==null?void 0:i.matches);const o=s=>e(s.matches);return(r=i==null?void 0:i.addEventListener)===null||r===void 0||r.call(i,"change",o),()=>{var s;return(s=i==null?void 0:i.removeEventListener)===null||s===void 0?void 0:s.call(i,"change",o)}},[]),t}function w_(t){let e=0,n=0,r=0;const o=window.getComputedStyle(t).transform.match(/matrix.*\((.+)\)/);if(o){const s=o[1].split(",").map(yi);s.length===6?(e=s[4],n=s[5]):s.length===16&&(e=s[12],n=s[13],r=s[14])}return{x:e,y:n,z:r}}function dh(t,e){const n=ot(),r=ot(),i=fh();return Sr(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:d,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),w_(t.current))||{};if(l&&d){(o=r.current)===null||o===void 0||o.cancel(),r.current=void 0;try{r.current=(a=(s=t.current).animate)===null||a===void 0?void 0:a.call(s,l,{duration:d,easing:c})}catch(m){console.error(m)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}n.current=void 0}),{prepareAnimation:o=>{n.current=o},isAnimationPlaying:()=>{var o;return((o=r.current)===null||o===void 0?void 0:o.playState)==="running"}}}function hh(){const t=ot(null),e=ot(),[n,r]=bt();return{setContainerRef:kt(o=>{t.current=o,e.current&&(e.current.disconnect(),e.current=void 0);const s=()=>{if(o){const a=window.getComputedStyle(o),l=d=>parseFloat(d)||0;r({width:Math.round(o.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(o.clientHeight-l(a.paddingTop)-l(a.paddingBottom))})}else r(void 0)};s(),o&&typeof ResizeObserver<"u"&&(e.current=new ResizeObserver(s),e.current.observe(o))},[]),containerRef:t,containerRect:n}}function _i(){const t=ot(),{setTimeout:e,clearTimeout:n}=bi();return kt((r,i)=>{n(t.current),t.current=e(r,i>0?i:0)},[e,n])}function Ut(t){const e=ot(t);return Sr(()=>{e.current=t}),kt((...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function ph(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function ea(t,e){return Ht(()=>t==null&&e==null?null:n=>{ph(t,n),ph(e,n)},[t,e])}function b_(t,e=!1){const n=ot();Sr(()=>{e&&n.current&&(n.current=!1,t())},[e,t]);const r=kt(()=>{n.current=!0},[]),i=kt(()=>{n.current=!1},[]);return{onFocus:r,onBlur:i}}function na(){const[t,e]=bt(!1);return Sr(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function __(){const[t]=bt({}),e=kt((i,o)=>{var s;(s=t[i])===null||s===void 0||s.forEach(a=>{o.isPropagationStopped()||a(o)})},[t]),n=Ht(()=>({onPointerDown:i=>e(Vd,i),onPointerMove:i=>e(Ud,i),onPointerUp:i=>e(zd,i),onPointerLeave:i=>e(qd,i),onPointerCancel:i=>e(Wd,i),onKeyDown:i=>e(Hd,i),onKeyUp:i=>e(Wb,i),onWheel:i=>e(Gd,i)}),[e]),r=kt((i,o)=>(t[i]||(t[i]=[]),t[i].unshift(o),()=>{const s=t[i];s&&s.splice(0,s.length,...s.filter(a=>a!==o))}),[t]);return{registerSensors:n,subscribeSensors:r}}function mh(t,e){const n=ot(0),r=_i(),i=Ut((...o)=>{n.current=Date.now(),t(o)});return kt((...o)=>{r(()=>{i(o)},e-(Date.now()-n.current))},[e,i,r])}const ra=Js("slide"),ia=Js("slide_image");function x_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:d}){var c,h,m,y,w,b,P;const[x,v]=bt(Gs),{publish:E}=vi(),{setTimeout:M}=bi(),I=ot(null);mt(()=>{e===0&&E(Ub(x))},[e,x,E]);const F=Ut(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Ys),M(()=>{a==null||a(G)},0))})}),D=kt(G=>{I.current=G,G!=null&&G.complete&&F(G)},[F]),q=kt(G=>{F(G.currentTarget)},[F]),L=Ut(()=>{v(Ks),l==null||l()}),Y=Qb(t,i),Z=(G,S)=>Number.isFinite(G)?G:S,et=Z(Math.max(...((h=(c=t.srcSet)===null||c===void 0?void 0:c.map(G=>G.width))!==null&&h!==void 0?h:[]).concat(t.width?[t.width]:[]).filter(Boolean)),((m=I.current)===null||m===void 0?void 0:m.naturalWidth)||0),st=Z(Math.max(...((w=(y=t.srcSet)===null||y===void 0?void 0:y.map(G=>G.height))!==null&&w!==void 0?w:[]).concat(t.height?[t.height]:[]).filter(Boolean)),((b=I.current)===null||b===void 0?void 0:b.naturalHeight)||0),At=et&&st?{maxWidth:`min(${et}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},dt=(P=t.srcSet)===null||P===void 0?void 0:P.sort((G,S)=>G.width-S.width).map(G=>`${G.src} ${G.width}w`).join(", "),It=()=>r&&!Y&&t.width&&t.height?r.height/t.height*t.width:Number.MAX_VALUE,at=dt&&r&&Zd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:U,...H}=o||{};return nt(Ct,null,nt("img",{ref:D,onLoad:q,onError:L,onClick:s,draggable:!1,className:Ne(xt(ia()),Y&&xt(ia("cover")),x!==Ys&&xt(ia("loading")),U),style:{...At,...d,...ht},...H,alt:t.alt,sizes:at,srcSet:dt,src:t.src}),x!==Ys&&nt("div",{className:xt(ra(Vb))},x===Gs&&(n!=null&&n.iconLoading?n.iconLoading():nt(g_,{className:Ne(xt(Xs),xt(ra(Gs)))})),x===Ks&&(n!=null&&n.iconError?n.iconError():nt(v_,{className:Ne(xt(Xs),xt(ra(Ks)))}))))}const E_=je(function({className:e,children:n,...r},i){const o=ot(null);return nt(s_,{nodeRef:o},nt("div",{ref:ea(i,o),className:Ne(xt("root"),e),...r},n))});var Qt;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION"})(Qt||(Qt={}));function S_(t,e,n,r,i){mt(()=>Jd(t(Vd,e),t(Ud,n),t(zd,r),t(qd,r),t(Wd,r)),[t,e,n,r,i])}var ge;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL"})(ge||(ge={}));const oa=30;function A_(t,e,n,r,i,o,s,a,l,d,c,h,m,y){const w=ot(0),b=ot([]),P=ot(),x=ot(0),v=ot(ge.NONE),E=kt(L=>{P.current===L.pointerId&&(P.current=void 0,v.current=ge.NONE);const Y=b.current;Y.splice(0,Y.length,...Y.filter(Z=>Z.pointerId!==L.pointerId))},[]),M=kt(L=>{E(L),L.persist(),b.current.push(L)},[E]),I=Ut(L=>{M(L)}),F=(L,Y)=>d&&L>Y||l&&L<-Y,D=Ut(L=>{if(b.current.find(Y=>Y.pointerId===L.pointerId)&&P.current===L.pointerId){const Y=Date.now()-x.current,Z=w.current;v.current===ge.SWIPE?Math.abs(Z)>.3*n||Math.abs(Z)>5&&Y<r?s(Z,Y):a(Z):v.current===ge.PULL&&(F(Z,2*oa)?m(Z,Y):y(Z)),w.current=0,v.current=ge.NONE}E(L)}),q=Ut(L=>{const Y=b.current.find(Z=>Z.pointerId===L.pointerId);if(Y){const Z=P.current===L.pointerId;if(L.buttons===0){Z&&w.current!==0?D(L):E(Y);return}const et=L.clientX-Y.clientX,st=L.clientY-Y.clientY;if(P.current===void 0){const At=dt=>{M(L),P.current=L.pointerId,x.current=Date.now(),v.current=dt};Math.abs(et)>Math.abs(st)&&Math.abs(et)>oa&&e(et)?(At(ge.SWIPE),i()):Math.abs(st)>Math.abs(et)&&F(st,oa)&&(At(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(w.current=et,o(et)):v.current===ge.PULL&&(w.current=st,h(st)))}});S_(t,I,q,D)}function T_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=ot(null),r=Ut(i=>{const o=Math.abs(i.deltaX)>Math.abs(i.deltaY);(o&&t||!o&&e||i.ctrlKey)&&i.preventDefault()});return kt(i=>{var o;i?i.addEventListener("wheel",r,{passive:!1}):(o=n.current)===null||o===void 0||o.removeEventListener("wheel",r),n.current=i},[r])}function P_(t,e,n,r,i,o,s,a,l){const d=ot(0),c=ot(0),h=ot(),m=ot(),y=ot(0),w=ot(),b=ot(0),{setTimeout:P,clearTimeout:x}=bi(),v=kt(()=>{h.current&&(x(h.current),h.current=void 0)},[x]),E=kt(()=>{m.current&&(x(m.current),m.current=void 0)},[x]),M=Ut(()=>{t!==Qt.SWIPE&&(d.current=0,b.current=0,v(),E())});mt(M,[t,M]);const I=Ut(D=>{m.current=void 0,d.current===D&&l(d.current)}),F=Ut(D=>{if(D.ctrlKey||Math.abs(D.deltaY)>Math.abs(D.deltaX))return;const q=L=>{y.current=L,x(w.current),w.current=L>0?P(()=>{y.current=0,w.current=void 0},300):void 0};if(t===Qt.NONE){if(Math.abs(D.deltaX)<=1.2*Math.abs(y.current)){q(D.deltaX);return}if(!n(-D.deltaX))return;if(c.current+=D.deltaX,v(),Math.abs(c.current)>30)c.current=0,q(0),b.current=Date.now(),o();else{const L=c.current;h.current=P(()=>{h.current=void 0,L===c.current&&(c.current=0)},i)}}else if(t===Qt.SWIPE){let L=d.current-D.deltaX;if(L=Math.min(Math.abs(L),r)*Math.sign(L),d.current=L,s(L),E(),Math.abs(L)>.2*r){q(D.deltaX),a(L,Date.now()-b.current);return}m.current=P(()=>I(L),2*i)}else q(D.deltaX)});mt(()=>e(Gd,F),[e,F])}const yh=Js("container"),gh=te(null),Ar=on("useController","ControllerContext",gh);function k_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:d,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,w]=bt(),b=wi(),P=l_(),[x,v]=bt(Qt.NONE),E=ot(0),M=ot(0),I=ot(1),{registerSensors:F,subscribeSensors:D}=__(),{subscribe:q,publish:L}=vi(),Y=_i(),Z=_i(),et=_i(),{containerRef:st,setContainerRef:At,containerRect:dt}=hh(),It=ea(T_({preventDefaultWheelX:h,preventDefaultWheelY:m}),At),at=ot(null),ht=ea(at,void 0),{getOwnerDocument:U}=ta(),H=na(),G=J=>(H?-1:1)*(typeof J=="number"?J:1),S=Ut(()=>{var J;return(J=st.current)===null||J===void 0?void 0:J.focus()}),N=Ut(()=>e),_=Ut(()=>b),A=kt(J=>L(nn,J),[L]),C=kt(J=>L(rn,J),[L]),z=kt(()=>L(Rn),[L]),j=J=>!(r.finite&&(G(J)>0&&b.currentIndex===0||G(J)<0&&b.currentIndex===b.slides.length-1)),W=J=>{var gt;E.current=J,(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("swipe_offset"),`${Math.round(J)}px`)},K=J=>{var gt,Et;M.current=J,I.current=(()=>{const X=c&&J>0?J:d&&J<0?-J:0;return Math.min(Math.max(Zb(1-X/60*(1-.5),2),.5),1)})(),(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("pull_offset"),`${Math.round(J)}px`),(Et=st.current)===null||Et===void 0||Et.style.setProperty(ie("pull_opacity"),`${I.current}`)},{prepareAnimation:rt}=dh(at,(J,gt,Et)=>{if(at.current&&dt)return{keyframes:[{transform:`translate(0, ${J.rect.y-gt.y+Et.y}px)`,opacity:J.opacity},{transform:"translate(0, 0)",opacity:1}],duration:J.duration,easing:i.easing.fade}}),ft=(J,gt)=>{if(d||c){K(J);let Et=0;at.current&&(Et=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:I.current,duration:Et})),et(()=>{K(0),v(Qt.NONE)},Et),v(Qt.ANIMATION),gt||z()}},{prepareAnimation:vt,isAnimationPlaying:Pt}=dh(at,(J,gt,Et)=>{var k;if(at.current&&dt&&(!((k=b.animation)===null||k===void 0)&&k.duration)){const R=gi(r.spacing),X=(R.percent?R.percent*dt.width/100:R.pixel)||0;return{keyframes:[{transform:`translate(${G(b.globalIndex-J.index)*(dt.width+X)+J.rect.x-gt.x+Et.x}px, 0)`},{transform:"translate(0, 0)"}],duration:b.animation.duration,easing:b.animation.easing}}}),jt=Ut(J=>{var gt,Et;const k=J.offset||0,R=k?i.swipe:(gt=i.navigation)!==null&&gt!==void 0?gt:i.swipe,X=!k&&!Pt()?i.easing.navigation:i.easing.swipe;let{direction:tt}=J;const Q=(Et=J.count)!==null&&Et!==void 0?Et:1;let ct=Qt.ANIMATION,p=R*Q;if(!tt){const f=dt==null?void 0:dt.width,g=J.duration||0,T=f?R/f*Math.abs(k):R;Q!==0?(g<T?p=p/T*Math.max(g,T/5):f&&(p=R/f*(f-Math.abs(k))),tt=G(k)>0?nn:rn):p=R/2}let u=0;tt===nn?j(G(1))?u=-Q:(ct=Qt.NONE,p=R):tt===rn&&(j(G(-1))?u=Q:(ct=Qt.NONE,p=R)),p=Math.round(p),Z(()=>{W(0),v(Qt.NONE)},p),at.current&&vt({rect:at.current.getBoundingClientRect(),index:b.globalIndex}),v(ct),L($d,{type:"swipe",increment:u,duration:p,easing:X})});mt(()=>{var J,gt;!((J=b.animation)===null||J===void 0)&&J.increment&&(!((gt=b.animation)===null||gt===void 0)&&gt.duration)&&Y(()=>P({type:"swipe",increment:0}),b.animation.duration)},[b.animation,P,Y]);const Yt=[D,j,(dt==null?void 0:dt.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>W(J),(J,gt)=>jt({offset:J,duration:gt,count:1}),J=>jt({offset:J,count:0})],Jt=[()=>{c&&v(Qt.PULL)},J=>K(J),J=>ft(J),J=>ft(J,!0)];A_(...Yt,d,c,...Jt),P_(x,...Yt);const Wt=Ut(()=>{o.focus&&U().querySelector(`.${xt(Hs)} .${xt(yh())}`)&&S()});mt(Wt,[Wt]);const V=Ut(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:b.currentIndex})});mt(V,[b.globalIndex,V]),mt(()=>Jd(q(nn,J=>jt({direction:nn,...J})),q(rn,J=>jt({direction:rn,...J})),q($d,J=>P(J))),[q,jt,P]);const he=Ht(()=>({prev:A,next:C,close:z,focus:S,slideRect:dt?t_(dt,r.padding):{width:0,height:0},containerRect:dt||{width:0,height:0},subscribeSensors:D,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:w}),[A,C,z,S,D,dt,st,ht,y,w,r.padding]);return Yn(o.ref,()=>({prev:A,next:C,close:z,focus:S,getLightboxProps:N,getLightboxState:_}),[A,C,z,S,N,_]),nt("div",{ref:It,className:Ne(xt(yh()),xt(Ld)),style:{...x===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(E.current)}px`}:null,...x===Qt.PULL?{[ie("pull_offset")]:`${Math.round(M.current)}px`,[ie("pull_opacity")]:`${I.current}`}:null,...o.touchAction!=="none"?{[ie("controller_touch_action")]:o.touchAction}:null,...a.container},...o.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...F},dt&&nt(gh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const C_=sn(Dd,k_);function an(t){return _r(Bd,t)}function vh(t){return _r("slide",t)}function O_({slide:t,offset:e}){const n=ot(null),{currentIndex:r}=wi(),{slideRect:i,close:o,focus:s}=Ar(),{render:a,carousel:{imageFit:l,imageProps:d},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=xr(),{getOwnerDocument:y}=ta(),w=e!==0;mt(()=>{var x;w&&(!((x=n.current)===null||x===void 0)&&x.contains(y().activeElement))&&s()},[w,s,y]);const b=()=>{var x,v,E,M;let I=(x=a.slide)===null||x===void 0?void 0:x.call(a,{slide:t,offset:e,rect:i});return!I&&Qd(t)&&(I=nt(x_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:d,onClick:w?void 0:()=>c==null?void 0:c({index:r})})),I?nt(Ct,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((E=a.slideContainer)!==null&&E!==void 0?E:({children:F})=>F)({slide:t,children:I}),(M=a.slideFooter)===null||M===void 0?void 0:M.call(a,{slide:t})):null},P=x=>{const v=n.current,E=x.target instanceof HTMLElement?x.target:void 0;h&&E&&v&&(E===v||Array.from(v.children).find(M=>M===E)&&E.classList.contains(xt(qb)))&&o()};return nt("div",{ref:n,className:Ne(xt(vh()),!w&&xt(vh("current")),xt(Ld)),...i_(w),onClick:P,style:m},b())}function I_(){const t=xr().styles.slide;return nt("div",{className:xt("slide"),style:t})}function R_({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=wi(),{setCarouselRef:i}=Ar(),o=gi(t.spacing),s=gi(t.padding),a=n_(t,e,1),l=[];if(eh(e))for(let d=n-a;d<=n+a;d+=1){const c=nh(e,d),h=r-n+d,m=t.finite&&(d<0||d>e.length-1);l.push(m?{key:h}:{key:[`${h}`,e_(c)].filter(Boolean).join("|"),offset:d-n,slide:c})}return nt("div",{ref:i,className:Ne(xt(an()),l.length>0&&xt(an("with_slides"))),style:{[`${ie(an("slides_count"))}`]:l.length,[`${ie(an("spacing_px"))}`]:o.pixel||0,[`${ie(an("spacing_percent"))}`]:o.percent||0,[`${ie(an("padding_px"))}`]:s.pixel||0,[`${ie(an("padding_percent"))}`]:s.percent||0}},l.map(({key:d,slide:c,offset:h})=>c?nt(O_,{key:d,slide:c,offset:h}):nt(I_,{key:d})))}const M_=sn(Bd,R_);function wh(){const{carousel:t}=xr(),{slides:e,currentIndex:n}=wi(),r=e.length===0||t.finite&&n===0,i=e.length===0||t.finite&&n===e.length-1;return{prevDisabled:r,nextDisabled:i}}function N_(t){var e;const n=na(),{publish:r}=vi(),{animation:i}=xr(),{prevDisabled:o,nextDisabled:s}=wh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=mh(()=>r(nn),a),d=mh(()=>r(rn),a),c=Ut(h=>{switch(h.key){case Hb:r(Rn);break;case Gb:(n?s:o)||(n?d:l)();break;case Kb:(n?o:s)||(n?l:d)();break}});mt(()=>t(Hd,c),[t,c])}function bh({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return nt(uh,{label:t,icon:e,renderIcon:n,className:xt(`navigation_${r}`),disabled:o,onClick:i,style:s,...b_(Ar().focus,o)})}function B_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=Ar(),{prevDisabled:l,nextDisabled:d}=wh();return N_(a),nt(Ct,null,t?t():nt(bh,{label:"Previous",action:nn,icon:m_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():nt(bh,{label:"Next",action:rn,icon:y_,renderIcon:r,style:i.navigationNext,disabled:d,onClick:s}))}const D_=sn(Lb,B_),_h=xt(zb),F_=xt(jd);function L_(t){return"style"in t}function xh(t,e,n){const r=window.getComputedStyle(t),i=n?"padding-left":"padding-right",o=n?r.paddingLeft:r.paddingRight,s=t.style.getPropertyValue(i);return t.style.setProperty(i,`${(yi(o)||0)+e}px`),()=>{s?t.style.setProperty(i,s):t.style.removeProperty(i)}}function j_({noScroll:{disabled:t},children:e}){const n=na(),{getOwnerDocument:r,getOwnerWindow:i}=ta();return mt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),d=Math.round(s.innerWidth-l.clientWidth);if(d>0){o.push(xh(a,d,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];L_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(F_)&&o.push(xh(m,d,n))}}return a.classList.add(_h),()=>{a.classList.remove(_h),o.forEach(c=>c())}},[n,t,r,i]),nt(Ct,null,e)}const $_=sn(jb,j_);function Eh(t){return _r(Hs,t)}function Sh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function V_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=bt(!1),[d,c]=bt(!1),h=ot([]),m=ot(null),{setTimeout:y}=bi(),{subscribe:w}=vi(),P=fh()?0:e.fade;mt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const x=Ut(()=>{h.current.forEach(I=>I()),h.current=[]}),v=Ut(()=>{var I;c(!1),x(),(I=i.exiting)===null||I===void 0||I.call(i),y(()=>{var F;(F=i.exited)===null||F===void 0||F.call(i),s()},P)});mt(()=>w(Rn,v),[w,v]);const E=Ut(I=>{var F,D,q;I.scrollTop,c(!0),(F=i.entering)===null||F===void 0||F.call(i);const L=(q=(D=I.parentNode)===null||D===void 0?void 0:D.children)!==null&&q!==void 0?q:[];for(let Y=0;Y<L.length;Y+=1){const Z=L[Y];["TEMPLATE","SCRIPT","STYLE"].indexOf(Z.tagName)===-1&&Z!==I&&(h.current.push(Sh(Z,"inert","")),h.current.push(Sh(Z,"aria-hidden","true")))}h.current.push(()=>{var Y,Z;(Z=(Y=m.current)===null||Y===void 0?void 0:Y.focus)===null||Z===void 0||Z.call(Y)}),y(()=>{var Y;(Y=i.entered)===null||Y===void 0||Y.call(i)},P)}),M=kt(I=>{I?E(I):x()},[E,x]);return a?po(nt(E_,{ref:M,className:Ne(r,xt(Eh()),xt(jd),d&&xt(Eh("open"))),role:"presentation","aria-live":"polite",style:{...e.fade!==Qs.animation.fade?{[ie("fade_animation_duration")]:`${P}ms`}:null,...e.easing.fade!==Qs.animation.easing.fade?{[ie("fade_animation_timing_function")]:e.easing.fade}:null,...n.root},onFocus:I=>{m.current||(m.current=I.relatedTarget)}},t),o.root||document.body):null}const U_=sn(Hs,V_);function z_({children:t}){return nt(Ct,null,t)}const q_=sn($b,z_);function W_(t){return _r(Fd,t)}function H_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=Ar(),{setContainerRef:s,containerRect:a}=hh();Sr(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():nt(uh,{key:Rn,label:"Close",icon:p_,renderIcon:n,onClick:i});return nt("div",{ref:s,style:r.toolbar,className:xt(W_())},t==null?void 0:t.map(d=>d===Rn?l():d))}const G_=sn(Fd,H_);function Ah(t,e){var n;return nt(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>Ah(r,e)))}function K_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function Y_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:d,...c}){const{animation:h,carousel:m,render:y,toolbar:w,controller:b,noScroll:P,on:x,slides:v,index:E,plugins:M,...I}=Qs,{config:F,augmentation:D}=o_([Gt(U_,[Gt($_,[Gt(C_,[Gt(M_),Gt(G_),Gt(D_)])])])],a||M),q=D({animation:K_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{...w,...r},controller:{...b,...i},noScroll:{...P,...o},on:{...x,...s},...I,...c});return q.open?nt(c_,{...q},nt(f_,{slides:l||v,index:yi(d||E)},nt(d_,null,nt(a_,null,Ah(Gt(q_,F),q))))):null}const Th=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Bt(),[r,i]=bt(!1);function o(){return document.getElementById("deskcord-lightbox-portal")??document.body}function s(){return e!=null&&e.length?O(Y_,{open:r,portal:{root:o()},close:()=>{i(!1),n(!1)},slides:e.map(a=>({src:a.proxyURL}))}):null}return e!=null&&e.length?O("div",{children:[e.map((a,l)=>{const{proxyURL:d,width:c,height:h}=a;return O("div",{onClick:()=>{n(!0),i(!0)},children:O("img",{src:d,alt:"Preview",className:`rounded-lg w-[${c}px] h-[${h}px] max-w-[200px] max-h-[200px] aspect-auto`})},`conv-cus-attachment-${t}-${l}`)}),s()]},`conv-cus-attachment-${t}`):null},X_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],d=[];for(let c=0;c<a.length;c++)if(d.push(a[c]),l[c]){const h=o[l[c]];h&&d.push(O("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return d}return O("li",{className:"flex flex-col items-start max-w-lg gap-x-2 sm:gap-x-4 me-11",children:[e.content&&O("div",{style:{background:"linear-gradient(167deg, #27292A 0%, #404547 100%)"},className:"text-white text-sm min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm",children:r(e.content,e.emojis??{})}),O("div",{className:"flex flex-1",children:O(Th,{attachments:e.attachments,messageIndexKey:n})}),t&&O("div",{children:O("span",{className:"mt-1.5 flex items-center gap-x-1 text-xs text-gray-500",children:[e.authorName," · ",Nd(e.date)," ",e.edited?"(edited)":""]})})]},`conv-cs-${n}`)},J_=({message:t,indexKey:e})=>O("li",{className:`flex ms-auto my-[3px] ${t.pending?"opacity-80":""}`,children:[t.content&&O("div",{className:"grow text-end",children:O("div",{style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm",children:O("p",{className:"text-center text-sm text-white",children:t.content})})}),t.attachments&&O("div",{className:"flex flex-1 justify-end",children:O(Th,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),Z_=({message:t,indexKey:e})=>O("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:O("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 space-y-3 dark:bg-neutral-900 dark:border-neutral-700",children:O("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:t.content})})},`conv-system-${e}`),Q_=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Bt(),[o,s]=bt(r),[a,l]=bt(n),[d,c]=bt(""),h=b=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(b),m=!!n&&!!r,y=()=>{h(o)?(c(""),t(o)):c("Please enter a valid email address"),e(a)};function w(){return O("form",{onSubmit:y,className:"max-w-sm space-y-3 text-white",children:[O("div",{children:[O("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2",children:"Name"}),O("div",{className:"relative",children:[O("input",{type:"text",id:"name",value:a,onChange:b=>l(b.target.value),name:"name",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 text-black disabled:text-white disabled:opacity-50 disabled:pointer-events-none",placeholder:"John Smith",disabled:m,required:!0}),O("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:O(Tw,{size:16,color:m?"#FFFFFF":"#000000"})})]})]}),O("div",{children:[O("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Email address"}),O("div",{className:"relative",children:[O("input",{type:"email",id:"email",value:o,onChange:b=>s(b.target.value),name:"email",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 text-black disabled:text-white disabled:opacity-50 disabled:pointer-events-none",placeholder:"you@site.com",disabled:m,required:!0}),O("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:O(bw,{size:16,color:m?"#FFFFFF":"#000000"})})]}),d&&O("p",{className:"text-white italic text-sm mt-2",children:d})]}),!n||!r?O("button",{type:"submit",onClick:y,style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-white disabled:opacity-50 disabled:pointer-events-none",children:"Submit"}):null]})}return O(Ct,{children:[O("li",{className:`flex ms-auto my-[3px] ${i?"opacity-75":""}`,children:O("div",{className:"grow",children:O("div",{className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm bg-[#5d6fb3]",children:O("p",{className:"text-center text-sm text-white",children:"Hello! Please introduce yourself."})})})}),O("li",{className:`max-w-lg flex gap-x-2 sm:gap-x-4 me-11 ${i?"opacity-75":""}`,children:O("div",{className:"rounded-2xl p-4 space-y-3 bg-[#5d6fb3]",children:w()})}),n&&r&&O("li",{className:"flex ms-auto my-[3px]",children:O("div",{className:"grow",children:O("div",{className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm bg-[#5d6fb3]",children:O("p",{className:"text-center text-sm text-white",children:["Nice to meet you, ",n,"! Feel free to ask us anything."]})})})})]})};function t1(t,e){const n=ot();mt(()=>{n.current=t},[t]),mt(()=>{function r(){var i;(i=n==null?void 0:n.current)==null||i.call(n)}if(e!==null){const i=setInterval(r,e);return()=>clearInterval(i)}},[e])}function e1(t,e=!1,n=1){const r=e?1e3:1024;if(Math.abs(t)<r)return t+" B";const i=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let o=-1;const s=10**n;do t/=r,++o;while(Math.round(Math.abs(t)*s)/s>=r&&o<i.length-1);return t.toFixed(n)+" "+i[o]}const n1=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=bt(!0),[s,a]=bt(0);return t1(()=>{s<88?a(s+2.5):o(!1)},i&&!r?250:null),O("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4",style:{marginTop:"20px",marginBottom:"20px"},children:O("div",{className:"w-full bg-white border border-gray-200 rounded-2xl p-4 space-y-4",children:O("div",{children:[O("div",{className:"mb-2 flex justify-between items-center",children:[O("div",{className:"flex items-center gap-x-3",children:[O("span",{className:`size-8 flex ${r?"text-red-500":"text-blue-600"} justify-center items-center border border-gray-200 rounded-lg dark:border-neutral-700 dark:text-neutral-500`,children:O(ww,{})}),O("div",{children:[O("p",{className:`text-sm ${r?"font-semibold text-red-500":"font-medium text-gray-800"}`,children:n.fileName}),O("p",{className:"text-xs text-gray-500 dark:text-neutral-500",children:e1(n.size)})]})]}),r&&O("div",{className:"inline-flex items-center gap-x-2",children:O("span",{className:"relative",children:[O("svg",{className:"shrink-0 size-4 text-red-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:O("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),O("span",{className:"sr-only",children:"Danger"})]})})]}),O("div",{className:"flex items-center gap-x-3 whitespace-nowrap",children:[O("div",{className:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar",children:O("div",{className:`flex flex-col justify-center rounded-full overflow-hidden ${r?"bg-red-500":"bg-blue-600"} text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500`,style:{width:`${s}%`}})}),O("div",{className:"w-6 text-end",children:O("span",{className:"text-sm text-gray-800 dark:text-white",children:[Math.round(s),"%"]})})]})]})})},`conv-fileupload-${t}`)},r1=({conversation:t,open:e})=>{const n=ot(!1);mt(()=>{n.current=!0},[]);function r(a,l){const d=`${a.date}-${l}`;let c;if(typeof a.customRenderer<"u")switch(a.customRenderer){case In.IntroduceYourself:c=O(Q_,{});break;case In.UploadFile:c=O(n1,{message:a,indexKey:d});break;default:c=s(a,d)}else a.authorName===br?c=s(a,d):a.support?c=i(a,d):c=o(a,d);return a.pending??(a.support&&n.current)?O(Ze.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:c},d):O("li",{children:c},d)}function i(a,l){var m;const d=(m=t==null?void 0:t.messages)==null?void 0:m.filter(y=>y.support),c=d==null?void 0:d[d.length-1],h=a.date===(c==null?void 0:c.date);return O(X_,{renderTimestamp:h,message:a,indexKey:l})}function o(a,l){return O(J_,{message:a,indexKey:l})}function s(a,l){return O(Z_,{message:a,indexKey:l})}return O("ul",{className:"space-y-[3px]",children:[[...(t==null?void 0:t.messages)??[]].sort((a,l)=>a.date-l.date).map(r),t&&!e&&r(Pb,1)]})},i1=()=>{const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,updateMessage:i}=Bt(),[o,s]=bt(!1),[a,l]=bt([]),[d,c]=bt({}),h=t(),m=(h==null?void 0:h.status)==="open",[y,w]=bt("");mt(()=>{const x={};a.forEach(v=>{const E=new FileReader;E.addEventListener("load",function(){const M=new Image;M.onload=()=>{x[v.name]={url:E.result,width:M.width,height:M.height,size:v.size},c(x)},M.src=E.result},!1),E.readAsDataURL(v)})},[a]);const b=x=>{w(v=>v+x)},P=async()=>{const x=Date.now(),v={support:!1,content:y,date:x,authorName:r,pending:!0};if(y.trim()!==""){w(""),e(h?h.threadId:"TEMP",v);const E=await Tb({content:y});E&&(h||n(E.threadId),i(E.threadId,x,{...v,pending:!1,date:E.date}))}};return O(Ct,{children:[O("div",{className:"flex-1 overflow-y-auto overflow-x-hidden p-4 flex flex-col-reverse space-y-4 space-y-reverse",children:O(Ze.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:O(r1,{conversation:h,open:m})})}),O(Fb,{attachmentPreviews:d,files:a,setFiles:l,inputMessage:y,setInputMessage:w,showEmojiPicker:o,setShowEmojiPicker:s,addEmoji:b,sendMessage:P})]})};function Ph(t,e){switch(t){case"online":return e==="text"?"text-teal-600":"bg-teal-400";case"idle":return e==="text"?"text-yellow-600":"bg-yellow-400";case"dnd":return e==="text"?"text-red-600":"bg-red-400";case"offline":case"invisible":return e==="text"?"text-black":"bg-gray-400";default:return e==="text"?"text-black":"bg-gray-400"}}function o1(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const xe=Object.create(null);xe.open="0",xe.close="1",xe.ping="2",xe.pong="3",xe.message="4",xe.upgrade="5",xe.noop="6";const xi=Object.create(null);Object.keys(xe).forEach(t=>{xi[xe[t]]=t});const sa={type:"error",data:"parser error"},kh=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ch=typeof ArrayBuffer=="function",Oh=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,aa=({type:t,data:e},n,r)=>kh&&e instanceof Blob?n?r(e):Ih(e,r):Ch&&(e instanceof ArrayBuffer||Oh(e))?n?r(e):Ih(new Blob([e]),r):r(xe[t]+(e||"")),Ih=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function Rh(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let ca;function s1(t,e){if(kh&&t.data instanceof Blob)return t.data.arrayBuffer().then(Rh).then(e);if(Ch&&(t.data instanceof ArrayBuffer||Oh(t.data)))return e(Rh(t.data));aa(t,!1,n=>{ca||(ca=new TextEncoder),e(ca.encode(n))})}const Mh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Mh.length;t++)Tr[Mh.charCodeAt(t)]=t;const a1=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),c=new Uint8Array(d);for(r=0;r<n;r+=4)o=Tr[t.charCodeAt(r)],s=Tr[t.charCodeAt(r+1)],a=Tr[t.charCodeAt(r+2)],l=Tr[t.charCodeAt(r+3)],c[i++]=o<<2|s>>4,c[i++]=(s&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return d},c1=typeof ArrayBuffer=="function",la=(t,e)=>{if(typeof t!="string")return{type:"message",data:Nh(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:l1(t.substring(1),e)}:xi[n]?t.length>1?{type:xi[n],data:t.substring(1)}:{type:xi[n]}:sa},l1=(t,e)=>{if(c1){const n=a1(t);return Nh(n,e)}else return{base64:!0,data:t}},Nh=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Bh="",u1=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{aa(o,!1,a=>{r[s]=a,++i===n&&e(r.join(Bh))})})},f1=(t,e)=>{const n=t.split(Bh),r=[];for(let i=0;i<n.length;i++){const o=la(n[i],e);if(r.push(o),o.type==="error")break}return r};function d1(){return new TransformStream({transform(t,e){s1(t,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let ua;function Ei(t){return t.reduce((e,n)=>e+n.length,0)}function Si(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)n[i]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function h1(t,e){ua||(ua=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(Ei(n)<1)break;const l=Si(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Ei(n)<2)break;const l=Si(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Ei(n)<8)break;const l=Si(n,8),d=new DataView(l.buffer,l.byteOffset,l.length),c=d.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(sa);break}i=c*Math.pow(2,32)+d.getUint32(4),r=3}else{if(Ei(n)<i)break;const l=Si(n,i);a.enqueue(la(o?l:ua.decode(l),e)),r=0}if(i===0||i>t){a.enqueue(sa);break}}}})}const Dh=4;function zt(t){if(t)return p1(t)}function p1(t){for(var e in zt.prototype)t[e]=zt.prototype[e];return t}zt.prototype.on=zt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},zt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},zt.prototype.off=zt.prototype.removeListener=zt.prototype.removeAllListeners=zt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+t],this},zt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this},zt.prototype.emitReserved=zt.prototype.emit,zt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},zt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Fh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const m1=fe.setTimeout,y1=fe.clearTimeout;function Ai(t,e){e.useNativeTimers?(t.setTimeoutFn=m1.bind(fe),t.clearTimeoutFn=y1.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const g1=1.33;function v1(t){return typeof t=="string"?w1(t):Math.ceil((t.byteLength||t.size)*g1)}function w1(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function b1(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function _1(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class x1 extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class fa extends zt{constructor(e){super(),this.writable=!1,Ai(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new x1(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=la(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=b1(e);return n.length?"?"+n:""}}const Lh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),da=64,E1={};let jh=0,Ti=0,$h;function Vh(t){let e="";do e=Lh[t%da]+e,t=Math.floor(t/da);while(t>0);return e}function Uh(){const t=Vh(+new Date);return t!==$h?(jh=0,$h=t):t+"."+Vh(jh++)}for(;Ti<da;Ti++)E1[Lh[Ti]]=Ti;let zh=!1;try{zh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const S1=zh;function qh(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||S1))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function oA(){}function A1(){}const T1=function(){return new qh({xdomain:!1}).responseType!=null}();class P1 extends fa{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const n=e&&e.forceBase64;this.supportsBinary=T1&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};f1(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,u1(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Uh()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ee(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Ee extends zt{constructor(e,n){super(),Ai(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=Fh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new qh(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Ee.requestsCount++,Ee.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=A1,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ee.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Ee.requestsCount=0,Ee.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wh);else if(typeof addEventListener=="function"){const t="onpagehide"in fe?"pagehide":"unload";addEventListener(t,Wh,!1)}}function Wh(){for(let t in Ee.requests)Ee.requests.hasOwnProperty(t)&&Ee.requests[t].abort()}var k1={},Pi={};Pi.byteLength=I1,Pi.toByteArray=M1,Pi.fromByteArray=D1;for(var Se=[],de=[],C1=typeof Uint8Array<"u"?Uint8Array:Array,ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nn=0,O1=ha.length;Nn<O1;++Nn)Se[Nn]=ha[Nn],de[ha.charCodeAt(Nn)]=Nn;de[45]=62,de[95]=63;function Hh(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function I1(t){var e=Hh(t),n=e[0],r=e[1];return(n+r)*3/4-r}function R1(t,e,n){return(e+n)*3/4-n}function M1(t){var e,n=Hh(t),r=n[0],i=n[1],o=new C1(R1(t,r,i)),s=0,a=i>0?r-4:r,l;for(l=0;l<a;l+=4)e=de[t.charCodeAt(l)]<<18|de[t.charCodeAt(l+1)]<<12|de[t.charCodeAt(l+2)]<<6|de[t.charCodeAt(l+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=de[t.charCodeAt(l)]<<2|de[t.charCodeAt(l+1)]>>4,o[s++]=e&255),i===1&&(e=de[t.charCodeAt(l)]<<10|de[t.charCodeAt(l+1)]<<4|de[t.charCodeAt(l+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function N1(t){return Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[t&63]}function B1(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(N1(r));return i.join("")}function D1(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(B1(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Se[e>>2]+Se[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Se[e>>10]+Se[e>>4&63]+Se[e<<2&63]+"=")),i.join("")}var pa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */pa.read=function(t,e,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,d=l>>1,c=-7,h=n?i-1:0,m=n?-1:1,y=t[e+h];for(h+=m,o=y&(1<<-c)-1,y>>=-c,c+=a;c>0;o=o*256+t[e+h],h+=m,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+t[e+h],h+=m,c-=8);if(o===0)o=1-d;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-d}return(y?-1:1)*s*Math.pow(2,o-r)},pa.write=function(t,e,n,r,i,o){var s,a,l,d=o*8-i-1,c=(1<<d)-1,h=c>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:o-1,w=r?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=m/l:e+=m*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,i),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+y]=a&255,y+=w,a/=256,i-=8);for(s=s<<i|a,d+=i;d>0;t[n+y]=s&255,y+=w,s/=256,d-=8);t[n+y-w]|=b*128};/*!
97
+ hover:scale-105 active:scale-95`,children:C(Pb,{size:16})})]})]})})]})},Od=t=>{const e=Date.now(),n=Math.floor((e-t)/1e3);return n<60?"Just now":n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`},Id="carousel",Rd="controller",Rb="navigation",Mb="no-scroll",Hs="portal",Nb="root",Md="toolbar",Gs="loading",Ks="error",Ys="complete",Bb="placeholder",Db=t=>`active-slide-${t}`,Nd="flex_center",Fb="no_scroll",Bd="no_scroll_padding",Lb="slide_wrapper",nn="prev",rn="next",Dd="swipe",Mn="close",Fd="onPointerDown",Ld="onPointerMove",jd="onPointerUp",$d="onPointerLeave",Vd="onPointerCancel",Ud="onKeyDown",jb="onKeyUp",zd="onWheel",$b="Escape",Vb="ArrowLeft",Ub="ArrowRight",zb="button",Xs="icon",Wd="contain",qd="cover",Wb="Unknown action type",Hd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function xt(t){return`${Hd}${t}`}function ie(t){return`--${Hd}${t}`}function xr(t,e){return`${t}${e?`_${e}`:""}`}function Js(t){return e=>xr(t,e)}function qb(t,e){var n;return(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e}function Gd(...t){return()=>{t.forEach(e=>{e()})}}function on(t,e,n){return()=>{const r=Ft(n);if(!r)throw new Error(`${t} must be used within a ${e}.Provider`);return r}}function Kd(){return typeof window<"u"}function Hb(t,e=0){const n=10**e;return Math.round((t+Number.EPSILON)*n)/n}function Yd(t){return t.type===void 0||t.type==="image"}function Gb(t,e){return t.imageFit===qd||t.imageFit!==Wd&&e===qd}function yi(t){return typeof t=="string"?Number.parseInt(t,10):t}function gi(t){if(typeof t=="number")return{pixel:t};if(typeof t=="string"){const e=yi(t);return t.endsWith("%")?{percent:e}:{pixel:e}}return{pixel:0}}function Kb(t,e){const n=gi(e),r=n.percent!==void 0?t.width/100*n.percent:n.pixel;return{width:Math.max(t.width-2*r,0),height:Math.max(t.height-2*r,0)}}function Xd(t,e){return e>0?(t%e+e)%e:0}function Jd(t){return t.length>0}function Zd(t,e){return t[Xd(e,t.length)]}function Zs(t,e){return Jd(t)?Zd(t,e):void 0}function Yb(t){return Yd(t)?t.src:void 0}function Xb(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const Jb=Number(rl.split(".")[0])>=19;function Zb(t){return{inert:Jb?t:t?"":void 0}}const Qs={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[Mn]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Wd,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function sn(t,e){return{name:t,component:e}}function Gt(t,e){return{module:t,children:e}}function Qd(t,e,n){return t.module.name===e?n(t):t.children?[Gt(t.module,t.children.flatMap(r=>{var i;return(i=Qd(r,e,n))!==null&&i!==void 0?i:[]}))]:[t]}function Nn(t,e,n){return t.flatMap(r=>{var i;return(i=Qd(r,e,n))!==null&&i!==void 0?i:[]})}function Qb(t,e=[],n=[]){let r=t;const i=y=>{const b=[...r];for(;b.length>0;){const _=b.pop();if((_==null?void 0:_.module.name)===y)return!0;_!=null&&_.children&&b.push(..._.children)}return!1},o=(y,b)=>{if(y===""){r=[Gt(b,r)];return}r=Nn(r,y,_=>[Gt(b,[_])])},s=(y,b)=>{r=Nn(r,y,_=>[Gt(_.module,[Gt(b,_.children)])])},a=(y,b,_)=>{r=Nn(r,y,P=>{var x;return[Gt(P.module,[..._?[Gt(b)]:[],...(x=P.children)!==null&&x!==void 0?x:[],..._?[]:[Gt(b)]])]})},l=(y,b,_)=>{r=Nn(r,y,P=>[..._?[Gt(b)]:[],P,..._?[]:[Gt(b)]])},d=y=>{s(Rd,y)},c=(y,b)=>{r=Nn(r,y,_=>[Gt(b,_.children)])},h=y=>{r=Nn(r,y,b=>b.children)},m=y=>{n.push(y)};return e.forEach(y=>{y({contains:i,addParent:o,append:s,addChild:a,addSibling:l,addModule:d,replace:c,remove:h,augment:m})}),{config:r,augmentation:y=>n.reduce((b,_)=>_(b),y)}}const th=te(null),ta=on("useDocument","DocumentContext",th);function t_({nodeRef:t,children:e}){const n=Ht(()=>{const r=o=>{var s;return((s=o||t.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:o=>{var s;return((s=r(o))===null||s===void 0?void 0:s.defaultView)||window}}},[t]);return nt(th.Provider,{value:n},e)}const eh=te(null),vi=on("useEvents","EventsContext",eh);function e_({children:t}){const[e]=wt({});mt(()=>()=>{Object.keys(e).forEach(r=>delete e[r])},[e]);const n=Ht(()=>{const r=(s,a)=>{var l;(l=e[s])===null||l===void 0||l.splice(0,e[s].length,...e[s].filter(d=>d!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(d=>d(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return nt(eh.Provider,{value:n},t)}const nh=te(null),Sr=on("useLightboxProps","LightboxPropsContext",nh);function n_({children:t,...e}){return nt(nh.Provider,{value:e},t)}const rh=te(null),wi=on("useLightboxState","LightboxStateContext",rh),ih=te(null),r_=on("useLightboxDispatch","LightboxDispatchContext",ih);function i_(t,e){switch(e.type){case"swipe":{const{slides:n}=t,r=(e==null?void 0:e.increment)||0,i=t.globalIndex+r,o=Xd(i,n.length),s=Zs(n,o),a=r||e.duration?{increment:r,duration:e.duration,easing:e.easing}:void 0;return{slides:n,currentIndex:o,globalIndex:i,currentSlide:s,animation:a}}case"update":return e.slides!==t.slides||e.index!==t.currentIndex?{slides:e.slides,currentIndex:e.index,globalIndex:e.index,currentSlide:Zs(e.slides,e.index)}:t;default:throw new Error(Wb)}}function o_({slides:t,index:e,children:n}){const[r,i]=Yn(i_,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Zs(t,e)});mt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=Ht(()=>({...r,state:r,dispatch:i}),[r,i]);return nt(ih.Provider,{value:i},nt(rh.Provider,{value:o},n))}const oh=te(null),bi=on("useTimeouts","TimeoutsContext",oh);function s_({children:t}){const[e]=wt([]);mt(()=>()=>{e.forEach(r=>window.clearTimeout(r)),e.splice(0,e.length)},[e]);const n=Ht(()=>{const r=s=>{e.splice(0,e.length,...e.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const l=window.setTimeout(()=>{r(l),s()},a);return e.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[e]);return nt(oh.Provider,{value:n},t)}const sh=je(function({label:e,className:n,icon:r,renderIcon:i,onClick:o,style:s,...a},l){const{styles:d,labels:c}=Sr(),h=qb(c,e);return nt("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(xt(zb),n),onClick:o,style:{...s,...d.button},...a},i?i():nt(r,{className:xt(Xs),style:d.icon}))});function a_(t,e){const n=r=>nt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},e);return n.displayName=t,n}function Er(t,e){return a_(t,nt("g",{fill:"currentColor"},nt("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const c_=Er("Close",nt("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),l_=Er("Previous",nt("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),u_=Er("Next",nt("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),f_=Er("Loading",nt(kt,null,Array.from({length:8}).map((t,e,n)=>nt("line",{key:e,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(e+1),transform:`rotate(${360/n.length*e}, 12, 12)`})))),d_=Er("Error",nt("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Ar=Kd()?Oe:mt;function ah(){const[t,e]=wt(!1);return mt(()=>{var n,r;const i=(n=window.matchMedia)===null||n===void 0?void 0:n.call(window,"(prefers-reduced-motion: reduce)");e(i==null?void 0:i.matches);const o=s=>e(s.matches);return(r=i==null?void 0:i.addEventListener)===null||r===void 0||r.call(i,"change",o),()=>{var s;return(s=i==null?void 0:i.removeEventListener)===null||s===void 0?void 0:s.call(i,"change",o)}},[]),t}function h_(t){let e=0,n=0,r=0;const o=window.getComputedStyle(t).transform.match(/matrix.*\((.+)\)/);if(o){const s=o[1].split(",").map(yi);s.length===6?(e=s[4],n=s[5]):s.length===16&&(e=s[12],n=s[13],r=s[14])}return{x:e,y:n,z:r}}function ch(t,e){const n=ot(),r=ot(),i=ah();return Ar(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:d,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),h_(t.current))||{};if(l&&d){(o=r.current)===null||o===void 0||o.cancel(),r.current=void 0;try{r.current=(a=(s=t.current).animate)===null||a===void 0?void 0:a.call(s,l,{duration:d,easing:c})}catch(m){console.error(m)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}n.current=void 0}),{prepareAnimation:o=>{n.current=o},isAnimationPlaying:()=>{var o;return((o=r.current)===null||o===void 0?void 0:o.playState)==="running"}}}function lh(){const t=ot(null),e=ot(),[n,r]=wt();return{setContainerRef:Ct(o=>{t.current=o,e.current&&(e.current.disconnect(),e.current=void 0);const s=()=>{if(o){const a=window.getComputedStyle(o),l=d=>parseFloat(d)||0;r({width:Math.round(o.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(o.clientHeight-l(a.paddingTop)-l(a.paddingBottom))})}else r(void 0)};s(),o&&typeof ResizeObserver<"u"&&(e.current=new ResizeObserver(s),e.current.observe(o))},[]),containerRef:t,containerRect:n}}function _i(){const t=ot(),{setTimeout:e,clearTimeout:n}=bi();return Ct((r,i)=>{n(t.current),t.current=e(r,i>0?i:0)},[e,n])}function Ut(t){const e=ot(t);return Ar(()=>{e.current=t}),Ct((...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function uh(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function ea(t,e){return Ht(()=>t==null&&e==null?null:n=>{uh(t,n),uh(e,n)},[t,e])}function p_(t,e=!1){const n=ot();Ar(()=>{e&&n.current&&(n.current=!1,t())},[e,t]);const r=Ct(()=>{n.current=!0},[]),i=Ct(()=>{n.current=!1},[]);return{onFocus:r,onBlur:i}}function na(){const[t,e]=wt(!1);return Ar(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function m_(){const[t]=wt({}),e=Ct((i,o)=>{var s;(s=t[i])===null||s===void 0||s.forEach(a=>{o.isPropagationStopped()||a(o)})},[t]),n=Ht(()=>({onPointerDown:i=>e(Fd,i),onPointerMove:i=>e(Ld,i),onPointerUp:i=>e(jd,i),onPointerLeave:i=>e($d,i),onPointerCancel:i=>e(Vd,i),onKeyDown:i=>e(Ud,i),onKeyUp:i=>e(jb,i),onWheel:i=>e(zd,i)}),[e]),r=Ct((i,o)=>(t[i]||(t[i]=[]),t[i].unshift(o),()=>{const s=t[i];s&&s.splice(0,s.length,...s.filter(a=>a!==o))}),[t]);return{registerSensors:n,subscribeSensors:r}}function fh(t,e){const n=ot(0),r=_i(),i=Ut((...o)=>{n.current=Date.now(),t(o)});return Ct((...o)=>{r(()=>{i(o)},e-(Date.now()-n.current))},[e,i,r])}const ra=Js("slide"),ia=Js("slide_image");function y_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:d}){var c,h,m,y,b,_,P;const[x,v]=wt(Gs),{publish:S}=vi(),{setTimeout:M}=bi(),I=ot(null);mt(()=>{e===0&&S(Db(x))},[e,x,S]);const F=Ut(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Ys),M(()=>{a==null||a(G)},0))})}),D=Ct(G=>{I.current=G,G!=null&&G.complete&&F(G)},[F]),W=Ct(G=>{F(G.currentTarget)},[F]),L=Ut(()=>{v(Ks),l==null||l()}),Y=Gb(t,i),Z=(G,E)=>Number.isFinite(G)?G:E,et=Z(Math.max(...((h=(c=t.srcSet)===null||c===void 0?void 0:c.map(G=>G.width))!==null&&h!==void 0?h:[]).concat(t.width?[t.width]:[]).filter(Boolean)),((m=I.current)===null||m===void 0?void 0:m.naturalWidth)||0),st=Z(Math.max(...((b=(y=t.srcSet)===null||y===void 0?void 0:y.map(G=>G.height))!==null&&b!==void 0?b:[]).concat(t.height?[t.height]:[]).filter(Boolean)),((_=I.current)===null||_===void 0?void 0:_.naturalHeight)||0),At=et&&st?{maxWidth:`min(${et}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},dt=(P=t.srcSet)===null||P===void 0?void 0:P.sort((G,E)=>G.width-E.width).map(G=>`${G.src} ${G.width}w`).join(", "),It=()=>r&&!Y&&t.width&&t.height?r.height/t.height*t.width:Number.MAX_VALUE,at=dt&&r&&Kd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:U,...H}=o||{};return nt(kt,null,nt("img",{ref:D,onLoad:W,onError:L,onClick:s,draggable:!1,className:Ne(xt(ia()),Y&&xt(ia("cover")),x!==Ys&&xt(ia("loading")),U),style:{...At,...d,...ht},...H,alt:t.alt,sizes:at,srcSet:dt,src:t.src}),x!==Ys&&nt("div",{className:xt(ra(Bb))},x===Gs&&(n!=null&&n.iconLoading?n.iconLoading():nt(f_,{className:Ne(xt(Xs),xt(ra(Gs)))})),x===Ks&&(n!=null&&n.iconError?n.iconError():nt(d_,{className:Ne(xt(Xs),xt(ra(Ks)))}))))}const g_=je(function({className:e,children:n,...r},i){const o=ot(null);return nt(t_,{nodeRef:o},nt("div",{ref:ea(i,o),className:Ne(xt("root"),e),...r},n))});var Qt;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION"})(Qt||(Qt={}));function v_(t,e,n,r,i){mt(()=>Gd(t(Fd,e),t(Ld,n),t(jd,r),t($d,r),t(Vd,r)),[t,e,n,r,i])}var ge;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL"})(ge||(ge={}));const oa=30;function w_(t,e,n,r,i,o,s,a,l,d,c,h,m,y){const b=ot(0),_=ot([]),P=ot(),x=ot(0),v=ot(ge.NONE),S=Ct(L=>{P.current===L.pointerId&&(P.current=void 0,v.current=ge.NONE);const Y=_.current;Y.splice(0,Y.length,...Y.filter(Z=>Z.pointerId!==L.pointerId))},[]),M=Ct(L=>{S(L),L.persist(),_.current.push(L)},[S]),I=Ut(L=>{M(L)}),F=(L,Y)=>d&&L>Y||l&&L<-Y,D=Ut(L=>{if(_.current.find(Y=>Y.pointerId===L.pointerId)&&P.current===L.pointerId){const Y=Date.now()-x.current,Z=b.current;v.current===ge.SWIPE?Math.abs(Z)>.3*n||Math.abs(Z)>5&&Y<r?s(Z,Y):a(Z):v.current===ge.PULL&&(F(Z,2*oa)?m(Z,Y):y(Z)),b.current=0,v.current=ge.NONE}S(L)}),W=Ut(L=>{const Y=_.current.find(Z=>Z.pointerId===L.pointerId);if(Y){const Z=P.current===L.pointerId;if(L.buttons===0){Z&&b.current!==0?D(L):S(Y);return}const et=L.clientX-Y.clientX,st=L.clientY-Y.clientY;if(P.current===void 0){const At=dt=>{M(L),P.current=L.pointerId,x.current=Date.now(),v.current=dt};Math.abs(et)>Math.abs(st)&&Math.abs(et)>oa&&e(et)?(At(ge.SWIPE),i()):Math.abs(st)>Math.abs(et)&&F(st,oa)&&(At(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(b.current=et,o(et)):v.current===ge.PULL&&(b.current=st,h(st)))}});v_(t,I,W,D)}function b_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=ot(null),r=Ut(i=>{const o=Math.abs(i.deltaX)>Math.abs(i.deltaY);(o&&t||!o&&e||i.ctrlKey)&&i.preventDefault()});return Ct(i=>{var o;i?i.addEventListener("wheel",r,{passive:!1}):(o=n.current)===null||o===void 0||o.removeEventListener("wheel",r),n.current=i},[r])}function __(t,e,n,r,i,o,s,a,l){const d=ot(0),c=ot(0),h=ot(),m=ot(),y=ot(0),b=ot(),_=ot(0),{setTimeout:P,clearTimeout:x}=bi(),v=Ct(()=>{h.current&&(x(h.current),h.current=void 0)},[x]),S=Ct(()=>{m.current&&(x(m.current),m.current=void 0)},[x]),M=Ut(()=>{t!==Qt.SWIPE&&(d.current=0,_.current=0,v(),S())});mt(M,[t,M]);const I=Ut(D=>{m.current=void 0,d.current===D&&l(d.current)}),F=Ut(D=>{if(D.ctrlKey||Math.abs(D.deltaY)>Math.abs(D.deltaX))return;const W=L=>{y.current=L,x(b.current),b.current=L>0?P(()=>{y.current=0,b.current=void 0},300):void 0};if(t===Qt.NONE){if(Math.abs(D.deltaX)<=1.2*Math.abs(y.current)){W(D.deltaX);return}if(!n(-D.deltaX))return;if(c.current+=D.deltaX,v(),Math.abs(c.current)>30)c.current=0,W(0),_.current=Date.now(),o();else{const L=c.current;h.current=P(()=>{h.current=void 0,L===c.current&&(c.current=0)},i)}}else if(t===Qt.SWIPE){let L=d.current-D.deltaX;if(L=Math.min(Math.abs(L),r)*Math.sign(L),d.current=L,s(L),S(),Math.abs(L)>.2*r){W(D.deltaX),a(L,Date.now()-_.current);return}m.current=P(()=>I(L),2*i)}else W(D.deltaX)});mt(()=>e(zd,F),[e,F])}const dh=Js("container"),hh=te(null),Tr=on("useController","ControllerContext",hh);function x_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:d,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,b]=wt(),_=wi(),P=r_(),[x,v]=wt(Qt.NONE),S=ot(0),M=ot(0),I=ot(1),{registerSensors:F,subscribeSensors:D}=m_(),{subscribe:W,publish:L}=vi(),Y=_i(),Z=_i(),et=_i(),{containerRef:st,setContainerRef:At,containerRect:dt}=lh(),It=ea(b_({preventDefaultWheelX:h,preventDefaultWheelY:m}),At),at=ot(null),ht=ea(at,void 0),{getOwnerDocument:U}=ta(),H=na(),G=J=>(H?-1:1)*(typeof J=="number"?J:1),E=Ut(()=>{var J;return(J=st.current)===null||J===void 0?void 0:J.focus()}),N=Ut(()=>e),w=Ut(()=>_),A=Ct(J=>L(nn,J),[L]),O=Ct(J=>L(rn,J),[L]),z=Ct(()=>L(Mn),[L]),j=J=>!(r.finite&&(G(J)>0&&_.currentIndex===0||G(J)<0&&_.currentIndex===_.slides.length-1)),q=J=>{var gt;S.current=J,(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("swipe_offset"),`${Math.round(J)}px`)},K=J=>{var gt,St;M.current=J,I.current=(()=>{const X=c&&J>0?J:d&&J<0?-J:0;return Math.min(Math.max(Hb(1-X/60*(1-.5),2),.5),1)})(),(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("pull_offset"),`${Math.round(J)}px`),(St=st.current)===null||St===void 0||St.style.setProperty(ie("pull_opacity"),`${I.current}`)},{prepareAnimation:rt}=ch(at,(J,gt,St)=>{if(at.current&&dt)return{keyframes:[{transform:`translate(0, ${J.rect.y-gt.y+St.y}px)`,opacity:J.opacity},{transform:"translate(0, 0)",opacity:1}],duration:J.duration,easing:i.easing.fade}}),ft=(J,gt)=>{if(d||c){K(J);let St=0;at.current&&(St=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:I.current,duration:St})),et(()=>{K(0),v(Qt.NONE)},St),v(Qt.ANIMATION),gt||z()}},{prepareAnimation:vt,isAnimationPlaying:Pt}=ch(at,(J,gt,St)=>{var k;if(at.current&&dt&&(!((k=_.animation)===null||k===void 0)&&k.duration)){const R=gi(r.spacing),X=(R.percent?R.percent*dt.width/100:R.pixel)||0;return{keyframes:[{transform:`translate(${G(_.globalIndex-J.index)*(dt.width+X)+J.rect.x-gt.x+St.x}px, 0)`},{transform:"translate(0, 0)"}],duration:_.animation.duration,easing:_.animation.easing}}}),$t=Ut(J=>{var gt,St;const k=J.offset||0,R=k?i.swipe:(gt=i.navigation)!==null&&gt!==void 0?gt:i.swipe,X=!k&&!Pt()?i.easing.navigation:i.easing.swipe;let{direction:tt}=J;const Q=(St=J.count)!==null&&St!==void 0?St:1;let ct=Qt.ANIMATION,p=R*Q;if(!tt){const f=dt==null?void 0:dt.width,g=J.duration||0,T=f?R/f*Math.abs(k):R;Q!==0?(g<T?p=p/T*Math.max(g,T/5):f&&(p=R/f*(f-Math.abs(k))),tt=G(k)>0?nn:rn):p=R/2}let u=0;tt===nn?j(G(1))?u=-Q:(ct=Qt.NONE,p=R):tt===rn&&(j(G(-1))?u=Q:(ct=Qt.NONE,p=R)),p=Math.round(p),Z(()=>{q(0),v(Qt.NONE)},p),at.current&&vt({rect:at.current.getBoundingClientRect(),index:_.globalIndex}),v(ct),L(Dd,{type:"swipe",increment:u,duration:p,easing:X})});mt(()=>{var J,gt;!((J=_.animation)===null||J===void 0)&&J.increment&&(!((gt=_.animation)===null||gt===void 0)&&gt.duration)&&Y(()=>P({type:"swipe",increment:0}),_.animation.duration)},[_.animation,P,Y]);const Yt=[D,j,(dt==null?void 0:dt.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>q(J),(J,gt)=>$t({offset:J,duration:gt,count:1}),J=>$t({offset:J,count:0})],Jt=[()=>{c&&v(Qt.PULL)},J=>K(J),J=>ft(J),J=>ft(J,!0)];w_(...Yt,d,c,...Jt),__(x,...Yt);const qt=Ut(()=>{o.focus&&U().querySelector(`.${xt(Hs)} .${xt(dh())}`)&&E()});mt(qt,[qt]);const V=Ut(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:_.currentIndex})});mt(V,[_.globalIndex,V]),mt(()=>Gd(W(nn,J=>$t({direction:nn,...J})),W(rn,J=>$t({direction:rn,...J})),W(Dd,J=>P(J))),[W,$t,P]);const he=Ht(()=>({prev:A,next:O,close:z,focus:E,slideRect:dt?Kb(dt,r.padding):{width:0,height:0},containerRect:dt||{width:0,height:0},subscribeSensors:D,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:b}),[A,O,z,E,D,dt,st,ht,y,b,r.padding]);return Xn(o.ref,()=>({prev:A,next:O,close:z,focus:E,getLightboxProps:N,getLightboxState:w}),[A,O,z,E,N,w]),nt("div",{ref:It,className:Ne(xt(dh()),xt(Nd)),style:{...x===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(S.current)}px`}:null,...x===Qt.PULL?{[ie("pull_offset")]:`${Math.round(M.current)}px`,[ie("pull_opacity")]:`${I.current}`}:null,...o.touchAction!=="none"?{[ie("controller_touch_action")]:o.touchAction}:null,...a.container},...o.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...F},dt&&nt(hh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const S_=sn(Rd,x_);function an(t){return xr(Id,t)}function ph(t){return xr("slide",t)}function E_({slide:t,offset:e}){const n=ot(null),{currentIndex:r}=wi(),{slideRect:i,close:o,focus:s}=Tr(),{render:a,carousel:{imageFit:l,imageProps:d},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=Sr(),{getOwnerDocument:y}=ta(),b=e!==0;mt(()=>{var x;b&&(!((x=n.current)===null||x===void 0)&&x.contains(y().activeElement))&&s()},[b,s,y]);const _=()=>{var x,v,S,M;let I=(x=a.slide)===null||x===void 0?void 0:x.call(a,{slide:t,offset:e,rect:i});return!I&&Yd(t)&&(I=nt(y_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:d,onClick:b?void 0:()=>c==null?void 0:c({index:r})})),I?nt(kt,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((S=a.slideContainer)!==null&&S!==void 0?S:({children:F})=>F)({slide:t,children:I}),(M=a.slideFooter)===null||M===void 0?void 0:M.call(a,{slide:t})):null},P=x=>{const v=n.current,S=x.target instanceof HTMLElement?x.target:void 0;h&&S&&v&&(S===v||Array.from(v.children).find(M=>M===S)&&S.classList.contains(xt(Lb)))&&o()};return nt("div",{ref:n,className:Ne(xt(ph()),!b&&xt(ph("current")),xt(Nd)),...Zb(b),onClick:P,style:m},_())}function A_(){const t=Sr().styles.slide;return nt("div",{className:xt("slide"),style:t})}function T_({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=wi(),{setCarouselRef:i}=Tr(),o=gi(t.spacing),s=gi(t.padding),a=Xb(t,e,1),l=[];if(Jd(e))for(let d=n-a;d<=n+a;d+=1){const c=Zd(e,d),h=r-n+d,m=t.finite&&(d<0||d>e.length-1);l.push(m?{key:h}:{key:[`${h}`,Yb(c)].filter(Boolean).join("|"),offset:d-n,slide:c})}return nt("div",{ref:i,className:Ne(xt(an()),l.length>0&&xt(an("with_slides"))),style:{[`${ie(an("slides_count"))}`]:l.length,[`${ie(an("spacing_px"))}`]:o.pixel||0,[`${ie(an("spacing_percent"))}`]:o.percent||0,[`${ie(an("padding_px"))}`]:s.pixel||0,[`${ie(an("padding_percent"))}`]:s.percent||0}},l.map(({key:d,slide:c,offset:h})=>c?nt(E_,{key:d,slide:c,offset:h}):nt(A_,{key:d})))}const P_=sn(Id,T_);function mh(){const{carousel:t}=Sr(),{slides:e,currentIndex:n}=wi(),r=e.length===0||t.finite&&n===0,i=e.length===0||t.finite&&n===e.length-1;return{prevDisabled:r,nextDisabled:i}}function k_(t){var e;const n=na(),{publish:r}=vi(),{animation:i}=Sr(),{prevDisabled:o,nextDisabled:s}=mh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=fh(()=>r(nn),a),d=fh(()=>r(rn),a),c=Ut(h=>{switch(h.key){case $b:r(Mn);break;case Vb:(n?s:o)||(n?d:l)();break;case Ub:(n?o:s)||(n?l:d)();break}});mt(()=>t(Ud,c),[t,c])}function yh({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return nt(sh,{label:t,icon:e,renderIcon:n,className:xt(`navigation_${r}`),disabled:o,onClick:i,style:s,...p_(Tr().focus,o)})}function C_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=Tr(),{prevDisabled:l,nextDisabled:d}=mh();return k_(a),nt(kt,null,t?t():nt(yh,{label:"Previous",action:nn,icon:l_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():nt(yh,{label:"Next",action:rn,icon:u_,renderIcon:r,style:i.navigationNext,disabled:d,onClick:s}))}const O_=sn(Rb,C_),gh=xt(Fb),I_=xt(Bd);function R_(t){return"style"in t}function vh(t,e,n){const r=window.getComputedStyle(t),i=n?"padding-left":"padding-right",o=n?r.paddingLeft:r.paddingRight,s=t.style.getPropertyValue(i);return t.style.setProperty(i,`${(yi(o)||0)+e}px`),()=>{s?t.style.setProperty(i,s):t.style.removeProperty(i)}}function M_({noScroll:{disabled:t},children:e}){const n=na(),{getOwnerDocument:r,getOwnerWindow:i}=ta();return mt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),d=Math.round(s.innerWidth-l.clientWidth);if(d>0){o.push(vh(a,d,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];R_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(I_)&&o.push(vh(m,d,n))}}return a.classList.add(gh),()=>{a.classList.remove(gh),o.forEach(c=>c())}},[n,t,r,i]),nt(kt,null,e)}const N_=sn(Mb,M_);function wh(t){return xr(Hs,t)}function bh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function B_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=wt(!1),[d,c]=wt(!1),h=ot([]),m=ot(null),{setTimeout:y}=bi(),{subscribe:b}=vi(),P=ah()?0:e.fade;mt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const x=Ut(()=>{h.current.forEach(I=>I()),h.current=[]}),v=Ut(()=>{var I;c(!1),x(),(I=i.exiting)===null||I===void 0||I.call(i),y(()=>{var F;(F=i.exited)===null||F===void 0||F.call(i),s()},P)});mt(()=>b(Mn,v),[b,v]);const S=Ut(I=>{var F,D,W;I.scrollTop,c(!0),(F=i.entering)===null||F===void 0||F.call(i);const L=(W=(D=I.parentNode)===null||D===void 0?void 0:D.children)!==null&&W!==void 0?W:[];for(let Y=0;Y<L.length;Y+=1){const Z=L[Y];["TEMPLATE","SCRIPT","STYLE"].indexOf(Z.tagName)===-1&&Z!==I&&(h.current.push(bh(Z,"inert","")),h.current.push(bh(Z,"aria-hidden","true")))}h.current.push(()=>{var Y,Z;(Z=(Y=m.current)===null||Y===void 0?void 0:Y.focus)===null||Z===void 0||Z.call(Y)}),y(()=>{var Y;(Y=i.entered)===null||Y===void 0||Y.call(i)},P)}),M=Ct(I=>{I?S(I):x()},[S,x]);return a?po(nt(g_,{ref:M,className:Ne(r,xt(wh()),xt(Bd),d&&xt(wh("open"))),role:"presentation","aria-live":"polite",style:{...e.fade!==Qs.animation.fade?{[ie("fade_animation_duration")]:`${P}ms`}:null,...e.easing.fade!==Qs.animation.easing.fade?{[ie("fade_animation_timing_function")]:e.easing.fade}:null,...n.root},onFocus:I=>{m.current||(m.current=I.relatedTarget)}},t),o.root||document.body):null}const D_=sn(Hs,B_);function F_({children:t}){return nt(kt,null,t)}const L_=sn(Nb,F_);function j_(t){return xr(Md,t)}function $_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=Tr(),{setContainerRef:s,containerRect:a}=lh();Ar(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():nt(sh,{key:Mn,label:"Close",icon:c_,renderIcon:n,onClick:i});return nt("div",{ref:s,style:r.toolbar,className:xt(j_())},t==null?void 0:t.map(d=>d===Mn?l():d))}const V_=sn(Md,$_);function _h(t,e){var n;return nt(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>_h(r,e)))}function U_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function z_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:d,...c}){const{animation:h,carousel:m,render:y,toolbar:b,controller:_,noScroll:P,on:x,slides:v,index:S,plugins:M,...I}=Qs,{config:F,augmentation:D}=Qb([Gt(D_,[Gt(N_,[Gt(S_,[Gt(P_),Gt(V_),Gt(O_)])])])],a||M),W=D({animation:U_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{...b,...r},controller:{..._,...i},noScroll:{...P,...o},on:{...x,...s},...I,...c});return W.open?nt(n_,{...W},nt(o_,{slides:l||v,index:yi(d||S)},nt(s_,null,nt(e_,null,_h(Gt(L_,F),W))))):null}const xh=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Bt(),[r,i]=wt(!1),o=Ft(um);function s(){if(o){const d=o.getElementById("deskcord-lightbox-portal");if(d)return d}const l=document.getElementById("deskcord-lightbox-portal");return l||document.body}function a(){return e!=null&&e.length?C(z_,{open:r,portal:{root:s()},close:()=>{i(!1),n(!1)},slides:e.map(l=>({src:l.proxyURL}))}):null}return e!=null&&e.length?C("div",{children:[e.map((l,d)=>{const{proxyURL:c,width:h,height:m}=l;return C("div",{onClick:()=>{n(!0),i(!0)},children:C("img",{src:c,alt:"Preview",className:`rounded-lg w-[${h}px] h-[${m}px] max-w-[200px] max-h-[200px] aspect-auto`})},`conv-cus-attachment-${t}-${d}`)}),a()]},`conv-cus-attachment-${t}`):null},W_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],d=[];for(let c=0;c<a.length;c++)if(d.push(a[c]),l[c]){const h=o[l[c]];h&&d.push(C("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return d}return C("li",{className:"flex flex-col items-start max-w-lg gap-x-2 sm:gap-x-4 me-11",children:[e.content&&C("div",{style:{background:"linear-gradient(167deg, #27292A 0%, #404547 100%)"},className:"text-white text-sm min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm",children:r(e.content,e.emojis??{})}),C("div",{className:"flex flex-1",children:C(xh,{attachments:e.attachments,messageIndexKey:n})}),t&&C("div",{children:C("span",{className:"mt-1.5 flex items-center gap-x-1 text-xs text-gray-500",children:[e.authorName," · ",Od(e.date)," ",e.edited?"(edited)":""]})})]},`conv-cs-${n}`)},q_=({message:t,indexKey:e})=>C("li",{className:`flex ms-auto my-[3px] ${t.pending?"opacity-80":""}`,children:[t.content&&C("div",{className:"grow text-end",children:C("div",{style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm",children:C("p",{className:"text-center text-sm text-white",children:t.content})})}),t.attachments&&C("div",{className:"flex flex-1 justify-end",children:C(xh,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),H_=({message:t,indexKey:e})=>C("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:C("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 space-y-3 dark:bg-neutral-900 dark:border-neutral-700",children:C("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:t.content})})},`conv-system-${e}`),G_=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Bt(),[o,s]=wt(r),[a,l]=wt(n),[d,c]=wt(""),h=_=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(_),m=!!n&&!!r,y=()=>{h(o)?(c(""),t(o)):c("Please enter a valid email address"),e(a)};function b(){return C("form",{onSubmit:y,className:"max-w-sm space-y-3 text-white",children:[C("div",{children:[C("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2",children:"Name"}),C("div",{className:"relative",children:[C("input",{type:"text",id:"name",value:a,onChange:_=>l(_.target.value),name:"name",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 text-black disabled:text-white disabled:opacity-50 disabled:pointer-events-none",placeholder:"John Smith",disabled:m,required:!0}),C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:C(bw,{size:16,color:m?"#FFFFFF":"#000000"})})]})]}),C("div",{children:[C("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Email address"}),C("div",{className:"relative",children:[C("input",{type:"email",id:"email",value:o,onChange:_=>s(_.target.value),name:"email",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 text-black disabled:text-white disabled:opacity-50 disabled:pointer-events-none",placeholder:"you@site.com",disabled:m,required:!0}),C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:C(pw,{size:16,color:m?"#FFFFFF":"#000000"})})]}),d&&C("p",{className:"text-white italic text-sm mt-2",children:d})]}),!n||!r?C("button",{type:"submit",onClick:y,style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-white disabled:opacity-50 disabled:pointer-events-none",children:"Submit"}):null]})}return C(kt,{children:[C("li",{className:`flex ms-auto my-[3px] ${i?"opacity-75":""}`,children:C("div",{className:"grow",children:C("div",{className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm bg-[#5d6fb3]",children:C("p",{className:"text-center text-sm text-white",children:"Hello! Please introduce yourself."})})})}),C("li",{className:`max-w-lg flex gap-x-2 sm:gap-x-4 me-11 ${i?"opacity-75":""}`,children:C("div",{className:"rounded-2xl p-4 space-y-3 bg-[#5d6fb3]",children:b()})}),n&&r&&C("li",{className:"flex ms-auto my-[3px]",children:C("div",{className:"grow",children:C("div",{className:"min-w-10 inline-block rounded-lg px-3 py-2 shadow-sm bg-[#5d6fb3]",children:C("p",{className:"text-center text-sm text-white",children:["Nice to meet you, ",n,"! Feel free to ask us anything."]})})})})]})};function K_(t,e){const n=ot();mt(()=>{n.current=t},[t]),mt(()=>{function r(){var i;(i=n==null?void 0:n.current)==null||i.call(n)}if(e!==null){const i=setInterval(r,e);return()=>clearInterval(i)}},[e])}function Y_(t,e=!1,n=1){const r=e?1e3:1024;if(Math.abs(t)<r)return t+" B";const i=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let o=-1;const s=10**n;do t/=r,++o;while(Math.round(Math.abs(t)*s)/s>=r&&o<i.length-1);return t.toFixed(n)+" "+i[o]}const X_=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=wt(!0),[s,a]=wt(0);return K_(()=>{s<88?a(s+2.5):o(!1)},i&&!r?250:null),C("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4",style:{marginTop:"20px",marginBottom:"20px"},children:C("div",{className:"w-full bg-white border border-gray-200 rounded-2xl p-4 space-y-4",children:C("div",{children:[C("div",{className:"mb-2 flex justify-between items-center",children:[C("div",{className:"flex items-center gap-x-3",children:[C("span",{className:`size-8 flex ${r?"text-red-500":"text-blue-600"} justify-center items-center border border-gray-200 rounded-lg dark:border-neutral-700 dark:text-neutral-500`,children:C(hw,{})}),C("div",{children:[C("p",{className:`text-sm ${r?"font-semibold text-red-500":"font-medium text-gray-800"}`,children:n.fileName}),C("p",{className:"text-xs text-gray-500 dark:text-neutral-500",children:Y_(n.size)})]})]}),r&&C("div",{className:"inline-flex items-center gap-x-2",children:C("span",{className:"relative",children:[C("svg",{className:"shrink-0 size-4 text-red-500",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:C("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})}),C("span",{className:"sr-only",children:"Danger"})]})})]}),C("div",{className:"flex items-center gap-x-3 whitespace-nowrap",children:[C("div",{className:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar",children:C("div",{className:`flex flex-col justify-center rounded-full overflow-hidden ${r?"bg-red-500":"bg-blue-600"} text-xs text-white text-center whitespace-nowrap transition duration-500 dark:bg-blue-500`,style:{width:`${s}%`}})}),C("div",{className:"w-6 text-end",children:C("span",{className:"text-sm text-gray-800 dark:text-white",children:[Math.round(s),"%"]})})]})]})})},`conv-fileupload-${t}`)},J_=({conversation:t,open:e})=>{const n=ot(!1);mt(()=>{n.current=!0},[]);function r(a,l){const d=`${a.date}-${l}`;let c;if(typeof a.customRenderer<"u")switch(a.customRenderer){case Rn.IntroduceYourself:c=C(G_,{});break;case Rn.UploadFile:c=C(X_,{message:a,indexKey:d});break;default:c=s(a,d)}else a.authorName===_r?c=s(a,d):a.support?c=i(a,d):c=o(a,d);return a.pending??(a.support&&n.current)?C(Ze.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:c},d):C("li",{children:c},d)}function i(a,l){var m;const d=(m=t==null?void 0:t.messages)==null?void 0:m.filter(y=>y.support),c=d==null?void 0:d[d.length-1],h=a.date===(c==null?void 0:c.date);return C(W_,{renderTimestamp:h,message:a,indexKey:l})}function o(a,l){return C(q_,{message:a,indexKey:l})}function s(a,l){return C(H_,{message:a,indexKey:l})}return C("ul",{className:"space-y-[3px]",children:[[...(t==null?void 0:t.messages)??[]].sort((a,l)=>a.date-l.date).map(r),t&&!e&&r(_b,1)]})},Z_=()=>{const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,updateMessage:i}=Bt(),[o,s]=wt(!1),[a,l]=wt([]),[d,c]=wt({}),h=t(),m=(h==null?void 0:h.status)==="open",[y,b]=wt("");mt(()=>{const x={};a.forEach(v=>{const S=new FileReader;S.addEventListener("load",function(){const M=new Image;M.onload=()=>{x[v.name]={url:S.result,width:M.width,height:M.height,size:v.size},c(x)},M.src=S.result},!1),S.readAsDataURL(v)})},[a]);const _=x=>{b(v=>v+x)},P=async()=>{const x=Date.now(),v={support:!1,content:y,date:x,authorName:r,pending:!0};if(y.trim()!==""){b(""),e(h?h.threadId:"TEMP",v);const S=await bb({content:y});S&&(h||n(S.threadId),i(S.threadId,x,{...v,pending:!1,date:S.date}))}};return C(kt,{children:[C("div",{className:"flex-1 overflow-y-auto overflow-x-hidden p-4 flex flex-col-reverse space-y-4 space-y-reverse",children:C(Ze.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:C(J_,{conversation:h,open:m})})}),C(Ib,{attachmentPreviews:d,files:a,setFiles:l,inputMessage:y,setInputMessage:b,showEmojiPicker:o,setShowEmojiPicker:s,addEmoji:_,sendMessage:P})]})};function Sh(t,e){switch(t){case"online":return e==="text"?"text-teal-600":"bg-teal-400";case"idle":return e==="text"?"text-yellow-600":"bg-yellow-400";case"dnd":return e==="text"?"text-red-600":"bg-red-400";case"offline":case"invisible":return e==="text"?"text-black":"bg-gray-400";default:return e==="text"?"text-black":"bg-gray-400"}}function Q_(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const xe=Object.create(null);xe.open="0",xe.close="1",xe.ping="2",xe.pong="3",xe.message="4",xe.upgrade="5",xe.noop="6";const xi=Object.create(null);Object.keys(xe).forEach(t=>{xi[xe[t]]=t});const sa={type:"error",data:"parser error"},Eh=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ah=typeof ArrayBuffer=="function",Th=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,aa=({type:t,data:e},n,r)=>Eh&&e instanceof Blob?n?r(e):Ph(e,r):Ah&&(e instanceof ArrayBuffer||Th(e))?n?r(e):Ph(new Blob([e]),r):r(xe[t]+(e||"")),Ph=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function kh(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let ca;function tx(t,e){if(Eh&&t.data instanceof Blob)return t.data.arrayBuffer().then(kh).then(e);if(Ah&&(t.data instanceof ArrayBuffer||Th(t.data)))return e(kh(t.data));aa(t,!1,n=>{ca||(ca=new TextEncoder),e(ca.encode(n))})}const Ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Ch.length;t++)Pr[Ch.charCodeAt(t)]=t;const ex=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),c=new Uint8Array(d);for(r=0;r<n;r+=4)o=Pr[t.charCodeAt(r)],s=Pr[t.charCodeAt(r+1)],a=Pr[t.charCodeAt(r+2)],l=Pr[t.charCodeAt(r+3)],c[i++]=o<<2|s>>4,c[i++]=(s&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return d},nx=typeof ArrayBuffer=="function",la=(t,e)=>{if(typeof t!="string")return{type:"message",data:Oh(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:rx(t.substring(1),e)}:xi[n]?t.length>1?{type:xi[n],data:t.substring(1)}:{type:xi[n]}:sa},rx=(t,e)=>{if(nx){const n=ex(t);return Oh(n,e)}else return{base64:!0,data:t}},Oh=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ih="",ix=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{aa(o,!1,a=>{r[s]=a,++i===n&&e(r.join(Ih))})})},ox=(t,e)=>{const n=t.split(Ih),r=[];for(let i=0;i<n.length;i++){const o=la(n[i],e);if(r.push(o),o.type==="error")break}return r};function sx(){return new TransformStream({transform(t,e){tx(t,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let ua;function Si(t){return t.reduce((e,n)=>e+n.length,0)}function Ei(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)n[i]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function ax(t,e){ua||(ua=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(Si(n)<1)break;const l=Ei(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Si(n)<2)break;const l=Ei(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Si(n)<8)break;const l=Ei(n,8),d=new DataView(l.buffer,l.byteOffset,l.length),c=d.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(sa);break}i=c*Math.pow(2,32)+d.getUint32(4),r=3}else{if(Si(n)<i)break;const l=Ei(n,i);a.enqueue(la(o?l:ua.decode(l),e)),r=0}if(i===0||i>t){a.enqueue(sa);break}}}})}const Rh=4;function zt(t){if(t)return cx(t)}function cx(t){for(var e in zt.prototype)t[e]=zt.prototype[e];return t}zt.prototype.on=zt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},zt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},zt.prototype.off=zt.prototype.removeListener=zt.prototype.removeAllListeners=zt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+t],this},zt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this},zt.prototype.emitReserved=zt.prototype.emit,zt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},zt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Mh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const lx=fe.setTimeout,ux=fe.clearTimeout;function Ai(t,e){e.useNativeTimers?(t.setTimeoutFn=lx.bind(fe),t.clearTimeoutFn=ux.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const fx=1.33;function dx(t){return typeof t=="string"?hx(t):Math.ceil((t.byteLength||t.size)*fx)}function hx(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function px(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function mx(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class yx extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class fa extends zt{constructor(e){super(),this.writable=!1,Ai(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new yx(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=la(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=px(e);return n.length?"?"+n:""}}const Nh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),da=64,gx={};let Bh=0,Ti=0,Dh;function Fh(t){let e="";do e=Nh[t%da]+e,t=Math.floor(t/da);while(t>0);return e}function Lh(){const t=Fh(+new Date);return t!==Dh?(Bh=0,Dh=t):t+"."+Fh(Bh++)}for(;Ti<da;Ti++)gx[Nh[Ti]]=Ti;let jh=!1;try{jh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vx=jh;function $h(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||vx))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function aA(){}function wx(){}const bx=function(){return new $h({xdomain:!1}).responseType!=null}();class _x extends fa{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const n=e&&e.forceBase64;this.supportsBinary=bx&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};ox(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ix(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Lh()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Se(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Se extends zt{constructor(e,n){super(),Ai(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=Mh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new $h(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Se.requestsCount++,Se.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=wx,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Se.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Se.requestsCount=0,Se.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vh);else if(typeof addEventListener=="function"){const t="onpagehide"in fe?"pagehide":"unload";addEventListener(t,Vh,!1)}}function Vh(){for(let t in Se.requests)Se.requests.hasOwnProperty(t)&&Se.requests[t].abort()}var xx={},Pi={};Pi.byteLength=Ax,Pi.toByteArray=Px,Pi.fromByteArray=Ox;for(var Ee=[],de=[],Sx=typeof Uint8Array<"u"?Uint8Array:Array,ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn=0,Ex=ha.length;Bn<Ex;++Bn)Ee[Bn]=ha[Bn],de[ha.charCodeAt(Bn)]=Bn;de[45]=62,de[95]=63;function Uh(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Ax(t){var e=Uh(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Tx(t,e,n){return(e+n)*3/4-n}function Px(t){var e,n=Uh(t),r=n[0],i=n[1],o=new Sx(Tx(t,r,i)),s=0,a=i>0?r-4:r,l;for(l=0;l<a;l+=4)e=de[t.charCodeAt(l)]<<18|de[t.charCodeAt(l+1)]<<12|de[t.charCodeAt(l+2)]<<6|de[t.charCodeAt(l+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=de[t.charCodeAt(l)]<<2|de[t.charCodeAt(l+1)]>>4,o[s++]=e&255),i===1&&(e=de[t.charCodeAt(l)]<<10|de[t.charCodeAt(l+1)]<<4|de[t.charCodeAt(l+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function kx(t){return Ee[t>>18&63]+Ee[t>>12&63]+Ee[t>>6&63]+Ee[t&63]}function Cx(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(kx(r));return i.join("")}function Ox(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(Cx(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Ee[e>>2]+Ee[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Ee[e>>10]+Ee[e>>4&63]+Ee[e<<2&63]+"=")),i.join("")}var pa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */pa.read=function(t,e,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,d=l>>1,c=-7,h=n?i-1:0,m=n?-1:1,y=t[e+h];for(h+=m,o=y&(1<<-c)-1,y>>=-c,c+=a;c>0;o=o*256+t[e+h],h+=m,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+t[e+h],h+=m,c-=8);if(o===0)o=1-d;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-d}return(y?-1:1)*s*Math.pow(2,o-r)},pa.write=function(t,e,n,r,i,o){var s,a,l,d=o*8-i-1,c=(1<<d)-1,h=c>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:o-1,b=r?1:-1,_=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=m/l:e+=m*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,i),s=s+h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+y]=a&255,y+=b,a/=256,i-=8);for(s=s<<i|a,d+=i;d>0;t[n+y]=s&255,y+=b,s/=256,d-=8);t[n+y-b]|=_*128};/*!
98
98
  * The buffer module from node.js, for the browser.
99
99
  *
100
100
  * @author Feross Aboukhadijeh <https://feross.org>
101
101
  * @license MIT
102
- */(function(t){const e=Pi,n=pa,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=I,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;c.TYPED_ARRAY_SUPPORT=l(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const p=new o(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,o.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function d(p){if(p>i)throw new RangeError('The value "'+p+'" is invalid for option "size"');const u=new o(p);return Object.setPrototypeOf(u,c.prototype),u}function c(p,u,f){if(typeof p=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(p)}return h(p,u,f)}c.poolSize=8192;function h(p,u,f){if(typeof p=="string")return b(p,u);if(s.isView(p))return x(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(R(p,s)||p&&R(p.buffer,s)||typeof a<"u"&&(R(p,a)||p&&R(p.buffer,a)))return v(p,u,f);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=p.valueOf&&p.valueOf();if(g!=null&&g!==p)return c.from(g,u,f);const T=E(p);if(T)return T;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return c.from(p[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}c.from=function(p,u,f){return h(p,u,f)},Object.setPrototypeOf(c.prototype,o.prototype),Object.setPrototypeOf(c,o);function m(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function y(p,u,f){return m(p),p<=0?d(p):u!==void 0?typeof f=="string"?d(p).fill(u,f):d(p).fill(u):d(p)}c.alloc=function(p,u,f){return y(p,u,f)};function w(p){return m(p),d(p<0?0:M(p)|0)}c.allocUnsafe=function(p){return w(p)},c.allocUnsafeSlow=function(p){return w(p)};function b(p,u){if((typeof u!="string"||u==="")&&(u="utf8"),!c.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=F(p,u)|0;let g=d(f);const T=g.write(p,u);return T!==f&&(g=g.slice(0,T)),g}function P(p){const u=p.length<0?0:M(p.length)|0,f=d(u);for(let g=0;g<u;g+=1)f[g]=p[g]&255;return f}function x(p){if(R(p,o)){const u=new o(p);return v(u.buffer,u.byteOffset,u.byteLength)}return P(p)}function v(p,u,f){if(u<0||p.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let g;return u===void 0&&f===void 0?g=new o(p):f===void 0?g=new o(p,u):g=new o(p,u,f),Object.setPrototypeOf(g,c.prototype),g}function E(p){if(c.isBuffer(p)){const u=M(p.length)|0,f=d(u);return f.length===0||p.copy(f,0,0,u),f}if(p.length!==void 0)return typeof p.length!="number"||X(p.length)?d(0):P(p);if(p.type==="Buffer"&&Array.isArray(p.data))return P(p.data)}function M(p){if(p>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return p|0}function I(p){return+p!=p&&(p=0),c.alloc(+p)}c.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==c.prototype},c.compare=function(u,f){if(R(u,o)&&(u=c.from(u,u.offset,u.byteLength)),R(f,o)&&(f=c.from(f,f.offset,f.byteLength)),!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let g=u.length,T=f.length;for(let B=0,$=Math.min(g,T);B<$;++B)if(u[B]!==f[B]){g=u[B],T=f[B];break}return g<T?-1:T<g?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);let g;if(f===void 0)for(f=0,g=0;g<u.length;++g)f+=u[g].length;const T=c.allocUnsafe(f);let B=0;for(g=0;g<u.length;++g){let $=u[g];if(R($,o))B+$.length>T.length?(c.isBuffer($)||($=c.from($)),$.copy(T,B)):o.prototype.set.call(T,$,B);else if(c.isBuffer($))$.copy(T,B);else throw new TypeError('"list" argument must be an Array of Buffers');B+=$.length}return T};function F(p,u){if(c.isBuffer(p))return p.length;if(s.isView(p)||R(p,s))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const f=p.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&f===0)return 0;let T=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return he(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return Et(p).length;default:if(T)return g?-1:he(p).length;u=(""+u).toLowerCase(),T=!0}}c.byteLength=F;function D(p,u,f){let g=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(p||(p="utf8");;)switch(p){case"hex":return S(this,u,f);case"utf8":case"utf-8":return at(this,u,f);case"ascii":return H(this,u,f);case"latin1":case"binary":return G(this,u,f);case"base64":return It(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,u,f);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),g=!0}}c.prototype._isBuffer=!0;function q(p,u,f){const g=p[u];p[u]=p[f],p[f]=g}c.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)q(this,f,f+1);return this},c.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)q(this,f,f+3),q(this,f+1,f+2);return this},c.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)q(this,f,f+7),q(this,f+1,f+6),q(this,f+2,f+5),q(this,f+3,f+4);return this},c.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?at(this,0,u):D.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){let u="";const f=t.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(u,f,g,T,B){if(R(u,o)&&(u=c.from(u,u.offset,u.byteLength)),!c.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),g===void 0&&(g=u?u.length:0),T===void 0&&(T=0),B===void 0&&(B=this.length),f<0||g>u.length||T<0||B>this.length)throw new RangeError("out of range index");if(T>=B&&f>=g)return 0;if(T>=B)return-1;if(f>=g)return 1;if(f>>>=0,g>>>=0,T>>>=0,B>>>=0,this===u)return 0;let $=B-T,lt=g-f;const wt=Math.min($,lt),_t=this.slice(T,B),Dt=u.slice(f,g);for(let Tt=0;Tt<wt;++Tt)if(_t[Tt]!==Dt[Tt]){$=_t[Tt],lt=Dt[Tt];break}return $<lt?-1:lt<$?1:0};function L(p,u,f,g,T){if(p.length===0)return-1;if(typeof f=="string"?(g=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,X(f)&&(f=T?0:p.length-1),f<0&&(f=p.length+f),f>=p.length){if(T)return-1;f=p.length-1}else if(f<0)if(T)f=0;else return-1;if(typeof u=="string"&&(u=c.from(u,g)),c.isBuffer(u))return u.length===0?-1:Y(p,u,f,g,T);if(typeof u=="number")return u=u&255,typeof o.prototype.indexOf=="function"?T?o.prototype.indexOf.call(p,u,f):o.prototype.lastIndexOf.call(p,u,f):Y(p,[u],f,g,T);throw new TypeError("val must be string, number or Buffer")}function Y(p,u,f,g,T){let B=1,$=p.length,lt=u.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(p.length<2||u.length<2)return-1;B=2,$/=2,lt/=2,f/=2}function wt(Dt,Tt){return B===1?Dt[Tt]:Dt.readUInt16BE(Tt*B)}let _t;if(T){let Dt=-1;for(_t=f;_t<$;_t++)if(wt(p,_t)===wt(u,Dt===-1?0:_t-Dt)){if(Dt===-1&&(Dt=_t),_t-Dt+1===lt)return Dt*B}else Dt!==-1&&(_t-=_t-Dt),Dt=-1}else for(f+lt>$&&(f=$-lt),_t=f;_t>=0;_t--){let Dt=!0;for(let Tt=0;Tt<lt;Tt++)if(wt(p,_t+Tt)!==wt(u,Tt)){Dt=!1;break}if(Dt)return _t}return-1}c.prototype.includes=function(u,f,g){return this.indexOf(u,f,g)!==-1},c.prototype.indexOf=function(u,f,g){return L(this,u,f,g,!0)},c.prototype.lastIndexOf=function(u,f,g){return L(this,u,f,g,!1)};function Z(p,u,f,g){f=Number(f)||0;const T=p.length-f;g?(g=Number(g),g>T&&(g=T)):g=T;const B=u.length;g>B/2&&(g=B/2);let $;for($=0;$<g;++$){const lt=parseInt(u.substr($*2,2),16);if(X(lt))return $;p[f+$]=lt}return $}function et(p,u,f,g){return k(he(u,p.length-f),p,f,g)}function st(p,u,f,g){return k(J(u),p,f,g)}function At(p,u,f,g){return k(Et(u),p,f,g)}function dt(p,u,f,g){return k(gt(u,p.length-f),p,f,g)}c.prototype.write=function(u,f,g,T){if(f===void 0)T="utf8",g=this.length,f=0;else if(g===void 0&&typeof f=="string")T=f,g=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(g)?(g=g>>>0,T===void 0&&(T="utf8")):(T=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const B=this.length-f;if((g===void 0||g>B)&&(g=B),u.length>0&&(g<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let $=!1;for(;;)switch(T){case"hex":return Z(this,u,f,g);case"utf8":case"utf-8":return et(this,u,f,g);case"ascii":case"latin1":case"binary":return st(this,u,f,g);case"base64":return At(this,u,f,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,u,f,g);default:if($)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),$=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function It(p,u,f){return u===0&&f===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(u,f))}function at(p,u,f){f=Math.min(p.length,f);const g=[];let T=u;for(;T<f;){const B=p[T];let $=null,lt=B>239?4:B>223?3:B>191?2:1;if(T+lt<=f){let wt,_t,Dt,Tt;switch(lt){case 1:B<128&&($=B);break;case 2:wt=p[T+1],(wt&192)===128&&(Tt=(B&31)<<6|wt&63,Tt>127&&($=Tt));break;case 3:wt=p[T+1],_t=p[T+2],(wt&192)===128&&(_t&192)===128&&(Tt=(B&15)<<12|(wt&63)<<6|_t&63,Tt>2047&&(Tt<55296||Tt>57343)&&($=Tt));break;case 4:wt=p[T+1],_t=p[T+2],Dt=p[T+3],(wt&192)===128&&(_t&192)===128&&(Dt&192)===128&&(Tt=(B&15)<<18|(wt&63)<<12|(_t&63)<<6|Dt&63,Tt>65535&&Tt<1114112&&($=Tt))}}$===null?($=65533,lt=1):$>65535&&($-=65536,g.push($>>>10&1023|55296),$=56320|$&1023),g.push($),T+=lt}return U(g)}const ht=4096;function U(p){const u=p.length;if(u<=ht)return String.fromCharCode.apply(String,p);let f="",g=0;for(;g<u;)f+=String.fromCharCode.apply(String,p.slice(g,g+=ht));return f}function H(p,u,f){let g="";f=Math.min(p.length,f);for(let T=u;T<f;++T)g+=String.fromCharCode(p[T]&127);return g}function G(p,u,f){let g="";f=Math.min(p.length,f);for(let T=u;T<f;++T)g+=String.fromCharCode(p[T]);return g}function S(p,u,f){const g=p.length;(!u||u<0)&&(u=0),(!f||f<0||f>g)&&(f=g);let T="";for(let B=u;B<f;++B)T+=tt[p[B]];return T}function N(p,u,f){const g=p.slice(u,f);let T="";for(let B=0;B<g.length-1;B+=2)T+=String.fromCharCode(g[B]+g[B+1]*256);return T}c.prototype.slice=function(u,f){const g=this.length;u=~~u,f=f===void 0?g:~~f,u<0?(u+=g,u<0&&(u=0)):u>g&&(u=g),f<0?(f+=g,f<0&&(f=0)):f>g&&(f=g),f<u&&(f=u);const T=this.subarray(u,f);return Object.setPrototypeOf(T,c.prototype),T};function _(p,u,f){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+u>f)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(u,f,g){u=u>>>0,f=f>>>0,g||_(u,f,this.length);let T=this[u],B=1,$=0;for(;++$<f&&(B*=256);)T+=this[u+$]*B;return T},c.prototype.readUintBE=c.prototype.readUIntBE=function(u,f,g){u=u>>>0,f=f>>>0,g||_(u,f,this.length);let T=this[u+--f],B=1;for(;f>0&&(B*=256);)T+=this[u+--f]*B;return T},c.prototype.readUint8=c.prototype.readUInt8=function(u,f){return u=u>>>0,f||_(u,1,this.length),this[u]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||_(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||_(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||_(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||_(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readBigUInt64LE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,B=this[++u]+this[++u]*2**8+this[++u]*2**16+g*2**24;return BigInt(T)+(BigInt(B)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],B=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+g;return(BigInt(T)<<BigInt(32))+BigInt(B)}),c.prototype.readIntLE=function(u,f,g){u=u>>>0,f=f>>>0,g||_(u,f,this.length);let T=this[u],B=1,$=0;for(;++$<f&&(B*=256);)T+=this[u+$]*B;return B*=128,T>=B&&(T-=Math.pow(2,8*f)),T},c.prototype.readIntBE=function(u,f,g){u=u>>>0,f=f>>>0,g||_(u,f,this.length);let T=f,B=1,$=this[u+--T];for(;T>0&&(B*=256);)$+=this[u+--T]*B;return B*=128,$>=B&&($-=Math.pow(2,8*f)),$},c.prototype.readInt8=function(u,f){return u=u>>>0,f||_(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){u=u>>>0,f||_(u,2,this.length);const g=this[u]|this[u+1]<<8;return g&32768?g|4294901760:g},c.prototype.readInt16BE=function(u,f){u=u>>>0,f||_(u,2,this.length);const g=this[u+1]|this[u]<<8;return g&32768?g|4294901760:g},c.prototype.readInt32LE=function(u,f){return u=u>>>0,f||_(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,f){return u=u>>>0,f||_(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readBigInt64LE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(g<<24);return(BigInt(T)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),c.prototype.readBigInt64BE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(T)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+g)}),c.prototype.readFloatLE=function(u,f){return u=u>>>0,f||_(u,4,this.length),n.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return u=u>>>0,f||_(u,4,this.length),n.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||_(u,8,this.length),n.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||_(u,8,this.length),n.read(this,u,!1,52,8)};function A(p,u,f,g,T,B){if(!c.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>T||u<B)throw new RangeError('"value" argument is out of bounds');if(f+g>p.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(u,f,g,T){if(u=+u,f=f>>>0,g=g>>>0,!T){const lt=Math.pow(2,8*g)-1;A(this,u,f,g,lt,0)}let B=1,$=0;for(this[f]=u&255;++$<g&&(B*=256);)this[f+$]=u/B&255;return f+g},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(u,f,g,T){if(u=+u,f=f>>>0,g=g>>>0,!T){const lt=Math.pow(2,8*g)-1;A(this,u,f,g,lt,0)}let B=g-1,$=1;for(this[f+B]=u&255;--B>=0&&($*=256);)this[f+B]=u/$&255;return f+g},c.prototype.writeUint8=c.prototype.writeUInt8=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,1,255,0),this[f]=u&255,f+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function C(p,u,f,g,T){jt(u,g,T,p,f,7);let B=Number(u&BigInt(4294967295));p[f++]=B,B=B>>8,p[f++]=B,B=B>>8,p[f++]=B,B=B>>8,p[f++]=B;let $=Number(u>>BigInt(32)&BigInt(4294967295));return p[f++]=$,$=$>>8,p[f++]=$,$=$>>8,p[f++]=$,$=$>>8,p[f++]=$,f}function z(p,u,f,g,T){jt(u,g,T,p,f,7);let B=Number(u&BigInt(4294967295));p[f+7]=B,B=B>>8,p[f+6]=B,B=B>>8,p[f+5]=B,B=B>>8,p[f+4]=B;let $=Number(u>>BigInt(32)&BigInt(4294967295));return p[f+3]=$,$=$>>8,p[f+2]=$,$=$>>8,p[f+1]=$,$=$>>8,p[f]=$,f+8}c.prototype.writeBigUInt64LE=Q(function(u,f=0){return C(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(u,f=0){return z(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(u,f,g,T){if(u=+u,f=f>>>0,!T){const wt=Math.pow(2,8*g-1);A(this,u,f,g,wt-1,-wt)}let B=0,$=1,lt=0;for(this[f]=u&255;++B<g&&($*=256);)u<0&&lt===0&&this[f+B-1]!==0&&(lt=1),this[f+B]=(u/$>>0)-lt&255;return f+g},c.prototype.writeIntBE=function(u,f,g,T){if(u=+u,f=f>>>0,!T){const wt=Math.pow(2,8*g-1);A(this,u,f,g,wt-1,-wt)}let B=g-1,$=1,lt=0;for(this[f+B]=u&255;--B>=0&&($*=256);)u<0&&lt===0&&this[f+B+1]!==0&&(lt=1),this[f+B]=(u/$>>0)-lt&255;return f+g},c.prototype.writeInt8=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},c.prototype.writeInt16LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeInt16BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeInt32LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},c.prototype.writeInt32BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},c.prototype.writeBigInt64LE=Q(function(u,f=0){return C(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(u,f=0){return z(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function j(p,u,f,g,T,B){if(f+g>p.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function W(p,u,f,g,T){return u=+u,f=f>>>0,T||j(p,u,f,4),n.write(p,u,f,g,23,4),f+4}c.prototype.writeFloatLE=function(u,f,g){return W(this,u,f,!0,g)},c.prototype.writeFloatBE=function(u,f,g){return W(this,u,f,!1,g)};function K(p,u,f,g,T){return u=+u,f=f>>>0,T||j(p,u,f,8),n.write(p,u,f,g,52,8),f+8}c.prototype.writeDoubleLE=function(u,f,g){return K(this,u,f,!0,g)},c.prototype.writeDoubleBE=function(u,f,g){return K(this,u,f,!1,g)},c.prototype.copy=function(u,f,g,T){if(!c.isBuffer(u))throw new TypeError("argument should be a Buffer");if(g||(g=0),!T&&T!==0&&(T=this.length),f>=u.length&&(f=u.length),f||(f=0),T>0&&T<g&&(T=g),T===g||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),u.length-f<T-g&&(T=u.length-f+g);const B=T-g;return this===u&&typeof o.prototype.copyWithin=="function"?this.copyWithin(f,g,T):o.prototype.set.call(u,this.subarray(g,T),f),B},c.prototype.fill=function(u,f,g,T){if(typeof u=="string"){if(typeof f=="string"?(T=f,f=0,g=this.length):typeof g=="string"&&(T=g,g=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!c.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(u.length===1){const $=u.charCodeAt(0);(T==="utf8"&&$<128||T==="latin1")&&(u=$)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<g)throw new RangeError("Out of range index");if(g<=f)return this;f=f>>>0,g=g===void 0?this.length:g>>>0,u||(u=0);let B;if(typeof u=="number")for(B=f;B<g;++B)this[B]=u;else{const $=c.isBuffer(u)?u:c.from(u,T),lt=$.length;if(lt===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(B=0;B<g-f;++B)this[B+f]=$[B%lt]}return this};const rt={};function ft(p,u,f){rt[p]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(p,u){return`The "${p}" argument must be of type number. Received type ${typeof u}`},TypeError),ft("ERR_OUT_OF_RANGE",function(p,u,f){let g=`The value of "${p}" is out of range.`,T=f;return Number.isInteger(f)&&Math.abs(f)>2**32?T=vt(String(f)):typeof f=="bigint"&&(T=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(T=vt(T)),T+="n"),g+=` It must be ${u}. Received ${T}`,g},RangeError);function vt(p){let u="",f=p.length;const g=p[0]==="-"?1:0;for(;f>=g+4;f-=3)u=`_${p.slice(f-3,f)}${u}`;return`${p.slice(0,f)}${u}`}function Pt(p,u,f){Yt(u,"offset"),(p[u]===void 0||p[u+f]===void 0)&&Jt(u,p.length-(f+1))}function jt(p,u,f,g,T,B){if(p>f||p<u){const $=typeof u=="bigint"?"n":"";let lt;throw u===0||u===BigInt(0)?lt=`>= 0${$} and < 2${$} ** ${(B+1)*8}${$}`:lt=`>= -(2${$} ** ${(B+1)*8-1}${$}) and < 2 ** ${(B+1)*8-1}${$}`,new rt.ERR_OUT_OF_RANGE("value",lt,p)}Pt(g,T,B)}function Yt(p,u){if(typeof p!="number")throw new rt.ERR_INVALID_ARG_TYPE(u,"number",p)}function Jt(p,u,f){throw Math.floor(p)!==p?(Yt(p,f),new rt.ERR_OUT_OF_RANGE("offset","an integer",p)):u<0?new rt.ERR_BUFFER_OUT_OF_BOUNDS:new rt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,p)}const Wt=/[^+/0-9A-Za-z-_]/g;function V(p){if(p=p.split("=")[0],p=p.trim().replace(Wt,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function he(p,u){u=u||1/0;let f;const g=p.length;let T=null;const B=[];for(let $=0;$<g;++$){if(f=p.charCodeAt($),f>55295&&f<57344){if(!T){if(f>56319){(u-=3)>-1&&B.push(239,191,189);continue}else if($+1===g){(u-=3)>-1&&B.push(239,191,189);continue}T=f;continue}if(f<56320){(u-=3)>-1&&B.push(239,191,189),T=f;continue}f=(T-55296<<10|f-56320)+65536}else T&&(u-=3)>-1&&B.push(239,191,189);if(T=null,f<128){if((u-=1)<0)break;B.push(f)}else if(f<2048){if((u-=2)<0)break;B.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;B.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;B.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return B}function J(p){const u=[];for(let f=0;f<p.length;++f)u.push(p.charCodeAt(f)&255);return u}function gt(p,u){let f,g,T;const B=[];for(let $=0;$<p.length&&!((u-=2)<0);++$)f=p.charCodeAt($),g=f>>8,T=f%256,B.push(T),B.push(g);return B}function Et(p){return e.toByteArray(V(p))}function k(p,u,f,g){let T;for(T=0;T<g&&!(T+f>=u.length||T>=p.length);++T)u[T+f]=p[T];return T}function R(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function X(p){return p!==p}const tt=function(){const p="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const g=f*16;for(let T=0;T<16;++T)u[g+T]=p[f]+p[T]}return u}();function Q(p){return typeof BigInt>"u"?ct:p}function ct(){throw new Error("BigInt not supported")}})(k1);const ma=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ki=fe.WebSocket||fe.MozWebSocket,Gh=!0,F1="arraybuffer",Kh=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class L1 extends fa{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=Kh?{}:Fh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Gh&&!Kh?n?new ki(e,n):new ki(e):new ki(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;aa(r,this.supportsBinary,o=>{const s={};try{Gh&&this.ws.send(o)}catch{}i&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Uh()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!ki}}class j1 extends fa{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=h1(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=d1();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;this.writer.write(r).then(()=>{i&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const $1={websocket:L1,webtransport:j1,polling:P1},V1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,U1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ya(t){if(t.length>2e3)throw"URI too long";const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=V1.exec(t||""),o={},s=14;for(;s--;)o[U1[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=z1(o,o.path),o.queryKey=q1(o,o.query),o}function z1(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function q1(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Yh=class zn extends zt{constructor(e,n={}){super(),this.binaryType=F1,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=ya(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=ya(n.host).host),Ai(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_1(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Dh,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new $1[e](r)}open(){let e;if(this.opts.rememberUpgrade&&zn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;zn.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;zn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){r||(r=!0,c(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function a(){s("transport closed")}function l(){s("socket closed")}function d(h){n&&h.name!==n.name&&o()}const c=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",zn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=v1(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){zn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}};Yh.protocol=Dh;function W1(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=ya(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const H1=typeof ArrayBuffer=="function",G1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Xh=Object.prototype.toString,K1=typeof Blob=="function"||typeof Blob<"u"&&Xh.call(Blob)==="[object BlobConstructor]",Y1=typeof File=="function"||typeof File<"u"&&Xh.call(File)==="[object FileConstructor]";function ga(t){return H1&&(t instanceof ArrayBuffer||G1(t))||K1&&t instanceof Blob||Y1&&t instanceof File}function Ci(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(Ci(t[n]))return!0;return!1}if(ga(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ci(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Ci(t[n]))return!0;return!1}function X1(t){const e=[],n=t.data,r=t;return r.data=va(n,e),r.attachments=e.length,{packet:r,buffers:e}}function va(t,e){if(!t)return t;if(ga(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=va(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=va(t[r],e));return n}return t}function J1(t,e){return t.data=wa(t.data,e),delete t.attachments,t}function wa(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=wa(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=wa(t[n],e));return t}const Z1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Q1=5;var yt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(yt||(yt={}));class tx{constructor(e){this.replacer=e}encode(e){return(e.type===yt.EVENT||e.type===yt.ACK)&&Ci(e)?this.encodeAsBinary({type:e.type===yt.EVENT?yt.BINARY_EVENT:yt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===yt.BINARY_EVENT||e.type===yt.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=X1(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Jh(t){return Object.prototype.toString.call(t)==="[object Object]"}class ba extends zt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===yt.BINARY_EVENT;r||n.type===yt.BINARY_ACK?(n.type=r?yt.EVENT:yt.ACK,this.reconstructor=new ex(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ga(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if(yt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===yt.BINARY_EVENT||r.type===yt.BINARY_ACK){const o=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const s=e.substring(o,n);if(s!=Number(s)||e.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(e.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(o,n)}else r.nsp="/";const i=e.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=e.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===e.length)break}r.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){const o=this.tryParse(e.substr(n));if(ba.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case yt.CONNECT:return Jh(n);case yt.DISCONNECT:return n===void 0;case yt.CONNECT_ERROR:return typeof n=="string"||Jh(n);case yt.EVENT:case yt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Z1.indexOf(n[0])===-1);case yt.ACK:case yt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ex{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=J1(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const nx=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ba,Encoder:tx,get PacketType(){return yt},protocol:Q1},Symbol.toStringTag,{value:"Module"}));function ve(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const rx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Zh extends zt{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ve(e,"open",this.onopen.bind(this)),ve(e,"packet",this.onpacket.bind(this)),ve(e,"error",this.onerror.bind(this)),ve(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(rx.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:yt.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:yt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case yt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case yt.EVENT:case yt.BINARY_EVENT:this.onevent(e);break;case yt.ACK:case yt.BINARY_ACK:this.onack(e);break;case yt.DISCONNECT:this.ondisconnect();break;case yt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:yt.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:yt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function Bn(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Bn.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0},Bn.prototype.reset=function(){this.attempts=0},Bn.prototype.setMin=function(t){this.ms=t},Bn.prototype.setMax=function(t){this.max=t},Bn.prototype.setJitter=function(t){this.jitter=t};class _a extends zt{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ai(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Bn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||nx;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Yh(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ve(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=ve(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ve(e,"ping",this.onping.bind(this)),ve(e,"data",this.ondata.bind(this)),ve(e,"error",this.onerror.bind(this)),ve(e,"close",this.onclose.bind(this)),ve(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){ma(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Zh(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Pr={};function Oi(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=W1(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Pr[i]&&o in Pr[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new _a(r,e):(Pr[i]||(Pr[i]=new _a(r,e)),l=Pr[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Oi,{Manager:_a,Socket:Zh,io:Oi,connect:Oi});function ix(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qh={exports:{}},Lt=Qh.exports={},Ae,Te;function xa(){throw new Error("setTimeout has not been defined")}function Ea(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ae=setTimeout:Ae=xa}catch{Ae=xa}try{typeof clearTimeout=="function"?Te=clearTimeout:Te=Ea}catch{Te=Ea}})();function tp(t){if(Ae===setTimeout)return setTimeout(t,0);if((Ae===xa||!Ae)&&setTimeout)return Ae=setTimeout,setTimeout(t,0);try{return Ae(t,0)}catch{try{return Ae.call(null,t,0)}catch{return Ae.call(this,t,0)}}}function ox(t){if(Te===clearTimeout)return clearTimeout(t);if((Te===Ea||!Te)&&clearTimeout)return Te=clearTimeout,clearTimeout(t);try{return Te(t)}catch{try{return Te.call(null,t)}catch{return Te.call(this,t)}}}var Be=[],Dn=!1,cn,Ii=-1;function sx(){!Dn||!cn||(Dn=!1,cn.length?Be=cn.concat(Be):Ii=-1,Be.length&&ep())}function ep(){if(!Dn){var t=tp(sx);Dn=!0;for(var e=Be.length;e;){for(cn=Be,Be=[];++Ii<e;)cn&&cn[Ii].run();Ii=-1,e=Be.length}cn=null,Dn=!1,ox(t)}}Lt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Be.push(new np(t,e)),Be.length===1&&!Dn&&tp(ep)};function np(t,e){this.fun=t,this.array=e}np.prototype.run=function(){this.fun.apply(null,this.array)},Lt.title="browser",Lt.browser=!0,Lt.env={},Lt.argv=[],Lt.version="",Lt.versions={};function De(){}Lt.on=De,Lt.addListener=De,Lt.once=De,Lt.off=De,Lt.removeListener=De,Lt.removeAllListeners=De,Lt.emit=De,Lt.prependListener=De,Lt.prependOnceListener=De,Lt.listeners=function(t){return[]},Lt.binding=function(t){throw new Error("process.binding is not supported")},Lt.cwd=function(){return"/"},Lt.chdir=function(t){throw new Error("process.chdir is not supported")},Lt.umask=function(){return 0};var ax=Qh.exports;const qt=ix(ax);var ln={},rp={},Sa=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},cx=Sa,Aa=function(){return cx()&&!!Symbol.toStringTag},ip=Object,lx=Error,ux=EvalError,fx=RangeError,dx=ReferenceError,op=SyntaxError,Ri=TypeError,hx=URIError,px=Math.abs,mx=Math.floor,yx=Math.max,gx=Math.min,vx=Math.pow,wx=Object.getOwnPropertyDescriptor,Mi=wx;if(Mi)try{Mi([],"length")}catch{Mi=null}var kr=Mi,Ni=Object.defineProperty||!1;if(Ni)try{Ni({},"a",{value:1})}catch{Ni=!1}var Bi=Ni,Ta,sp;function bx(){if(sp)return Ta;sp=1;var t=typeof Symbol<"u"&&Symbol,e=Sa;return Ta=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ta}var Pa,ap;function _x(){if(ap)return Pa;ap=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(l,d){for(var c=[],h=0;h<l.length;h+=1)c[h]=l[h];for(var m=0;m<d.length;m+=1)c[m+l.length]=d[m];return c},o=function(l,d){for(var c=[],h=d,m=0;h<l.length;h+=1,m+=1)c[m]=l[h];return c},s=function(a,l){for(var d="",c=0;c<a.length;c+=1)d+=a[c],c+1<a.length&&(d+=l);return d};return Pa=function(l){var d=this;if(typeof d!="function"||e.apply(d)!==r)throw new TypeError(t+d);for(var c=o(arguments,1),h,m=function(){if(this instanceof h){var x=d.apply(this,i(c,arguments));return Object(x)===x?x:this}return d.apply(l,i(c,arguments))},y=n(0,d.length-c.length),w=[],b=0;b<y;b++)w[b]="$"+b;if(h=Function("binder","return function ("+s(w,",")+"){ return binder.apply(this,arguments); }")(m),d.prototype){var P=function(){};P.prototype=d.prototype,h.prototype=new P,P.prototype=null}return h},Pa}var ka,cp;function Cr(){if(cp)return ka;cp=1;var t=_x();return ka=Function.prototype.bind||t,ka}var Ca,lp;function Oa(){return lp||(lp=1,Ca=Function.prototype.call),Ca}var Ia,up;function Ra(){return up||(up=1,Ia=Function.prototype.apply),Ia}var xx=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ex=Cr(),Sx=Ra(),Ax=Oa(),Tx=xx,fp=Tx||Ex.call(Ax,Sx),Px=Cr(),kx=Ri,Cx=Oa(),Ox=fp,Ma=function(e){if(e.length<1||typeof e[0]!="function")throw new kx("a function is required");return Ox(Px,Cx,e)},Na,dp;function Ix(){if(dp)return Na;dp=1;var t=Ma,e=kr,n;try{n=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var r=!!n&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Na=r&&typeof r.get=="function"?t([r.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Na}var Ba,hp;function Rx(){if(hp)return Ba;hp=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Cr();return Ba=n.call(t,e),Ba}var pt,pp=ip,Mx=lx,Nx=ux,Bx=fx,Dx=dx,Fn=op,Ln=Ri,Fx=hx,Lx=px,jx=mx,$x=yx,Vx=gx,Ux=vx,mp=Function,Da=function(t){try{return mp('"use strict"; return ('+t+").constructor;")()}catch{}},Or=kr,zx=Bi,Fa=function(){throw new Ln},qx=Or?function(){try{return arguments.callee,Fa}catch{try{return Or(arguments,"callee").get}catch{return Fa}}}():Fa,jn=bx()(),Wx=Ix(),Kt=typeof Reflect=="function"&&Reflect.getPrototypeOf||pp.getPrototypeOf||Wx,yp=Ra(),Ir=Oa(),$n={},Hx=typeof Uint8Array>"u"||!Kt?pt:Kt(Uint8Array),un={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pt:ArrayBuffer,"%ArrayIteratorPrototype%":jn&&Kt?Kt([][Symbol.iterator]()):pt,"%AsyncFromSyncIteratorPrototype%":pt,"%AsyncFunction%":$n,"%AsyncGenerator%":$n,"%AsyncGeneratorFunction%":$n,"%AsyncIteratorPrototype%":$n,"%Atomics%":typeof Atomics>"u"?pt:Atomics,"%BigInt%":typeof BigInt>"u"?pt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Mx,"%eval%":eval,"%EvalError%":Nx,"%Float32Array%":typeof Float32Array>"u"?pt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pt:FinalizationRegistry,"%Function%":mp,"%GeneratorFunction%":$n,"%Int8Array%":typeof Int8Array>"u"?pt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":jn&&Kt?Kt(Kt([][Symbol.iterator]())):pt,"%JSON%":typeof JSON=="object"?JSON:pt,"%Map%":typeof Map>"u"?pt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!jn||!Kt?pt:Kt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":pp,"%Object.getOwnPropertyDescriptor%":Or,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pt:Promise,"%Proxy%":typeof Proxy>"u"?pt:Proxy,"%RangeError%":Bx,"%ReferenceError%":Dx,"%Reflect%":typeof Reflect>"u"?pt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!jn||!Kt?pt:Kt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":jn&&Kt?Kt(""[Symbol.iterator]()):pt,"%Symbol%":jn?Symbol:pt,"%SyntaxError%":Fn,"%ThrowTypeError%":qx,"%TypedArray%":Hx,"%TypeError%":Ln,"%Uint8Array%":typeof Uint8Array>"u"?pt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pt:Uint32Array,"%URIError%":Fx,"%WeakMap%":typeof WeakMap>"u"?pt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pt:WeakSet,"%Function.prototype.call%":Ir,"%Function.prototype.apply%":yp,"%Object.defineProperty%":zx,"%Math.abs%":Lx,"%Math.floor%":jx,"%Math.max%":$x,"%Math.min%":Vx,"%Math.pow%":Ux};if(Kt)try{null.error}catch(t){var Gx=Kt(Kt(t));un["%Error.prototype%"]=Gx}var Kx=function t(e){var n;if(e==="%AsyncFunction%")n=Da("async function () {}");else if(e==="%GeneratorFunction%")n=Da("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Da("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Kt&&(n=Kt(i.prototype))}return un[e]=n,n},gp={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Rr=Cr(),Di=Rx(),Yx=Rr.call(Ir,Array.prototype.concat),Xx=Rr.call(yp,Array.prototype.splice),vp=Rr.call(Ir,String.prototype.replace),Fi=Rr.call(Ir,String.prototype.slice),Jx=Rr.call(Ir,RegExp.prototype.exec),Zx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qx=/\\(\\)?/g,tE=function(e){var n=Fi(e,0,1),r=Fi(e,-1);if(n==="%"&&r!=="%")throw new Fn("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Fn("invalid intrinsic syntax, expected opening `%`");var i=[];return vp(e,Zx,function(o,s,a,l){i[i.length]=a?vp(l,Qx,"$1"):s||o}),i},eE=function(e,n){var r=e,i;if(Di(gp,r)&&(i=gp[r],r="%"+i[0]+"%"),Di(un,r)){var o=un[r];if(o===$n&&(o=Kx(r)),typeof o>"u"&&!n)throw new Ln("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Fn("intrinsic "+e+" does not exist!")},La=function(e,n){if(typeof e!="string"||e.length===0)throw new Ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ln('"allowMissing" argument must be a boolean');if(Jx(/^%?[^%]*%?$/,e)===null)throw new Fn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=tE(e),i=r.length>0?r[0]:"",o=eE("%"+i+"%",n),s=o.name,a=o.value,l=!1,d=o.alias;d&&(i=d[0],Xx(r,Yx([0,1],d)));for(var c=1,h=!0;c<r.length;c+=1){var m=r[c],y=Fi(m,0,1),w=Fi(m,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new Fn("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(l=!0),i+="."+m,s="%"+i+"%",Di(un,s))a=un[s];else if(a!=null){if(!(m in a)){if(!n)throw new Ln("base intrinsic for "+e+" exists, but the property is not available.");return}if(Or&&c+1>=r.length){var b=Or(a,m);h=!!b,h&&"get"in b&&!("originalValue"in b.get)?a=b.get:a=a[m]}else h=Di(a,m),a=a[m];h&&!l&&(un[s]=a)}}return a},wp=La,bp=Ma,nE=bp([wp("%String.prototype.indexOf%")]),ja=function(e,n){var r=wp(e,!!n);return typeof r=="function"&&nE(e,".prototype.")>-1?bp([r]):r},rE=Aa(),iE=ja,$a=iE("Object.prototype.toString"),Li=function(e){return rE&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:$a(e)==="[object Arguments]"},_p=function(e){return Li(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&$a(e)!=="[object Array]"&&"callee"in e&&$a(e.callee)==="[object Function]"},oE=function(){return Li(arguments)}();Li.isLegacyArguments=_p;var sE=oE?Li:_p,aE=Object.prototype.toString,cE=Function.prototype.toString,lE=/^\s*(?:function)?\*/,xp=Aa(),Va=Object.getPrototypeOf,uE=function(){if(!xp)return!1;try{return Function("return function*() {}")()}catch{}},Ua,fE=function(e){if(typeof e!="function")return!1;if(lE.test(cE.call(e)))return!0;if(!xp){var n=aE.call(e);return n==="[object GeneratorFunction]"}if(!Va)return!1;if(typeof Ua>"u"){var r=uE();Ua=r?Va(r):!1}return Va(e)===Ua},Ep=Function.prototype.toString,Vn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,za,ji;if(typeof Vn=="function"&&typeof Object.defineProperty=="function")try{za=Object.defineProperty({},"length",{get:function(){throw ji}}),ji={},Vn(function(){throw 42},null,za)}catch(t){t!==ji&&(Vn=null)}else Vn=null;var dE=/^\s*class\b/,qa=function(e){try{var n=Ep.call(e);return dE.test(n)}catch{return!1}},Wa=function(e){try{return qa(e)?!1:(Ep.call(e),!0)}catch{return!1}},$i=Object.prototype.toString,hE="[object Object]",pE="[object Function]",mE="[object GeneratorFunction]",yE="[object HTMLAllCollection]",gE="[object HTML document.all class]",vE="[object HTMLCollection]",wE=typeof Symbol=="function"&&!!Symbol.toStringTag,bE=!(0 in[,]),Ha=function(){return!1};if(typeof document=="object"){var _E=document.all;$i.call(_E)===$i.call(document.all)&&(Ha=function(e){if((bE||!e)&&(typeof e>"u"||typeof e=="object"))try{var n=$i.call(e);return(n===yE||n===gE||n===vE||n===hE)&&e("")==null}catch{}return!1})}var xE=Vn?function(e){if(Ha(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Vn(e,null,za)}catch(n){if(n!==ji)return!1}return!qa(e)&&Wa(e)}:function(e){if(Ha(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(wE)return Wa(e);if(qa(e))return!1;var n=$i.call(e);return n!==pE&&n!==mE&&!/^\[object HTML/.test(n)?!1:Wa(e)},EE=xE,SE=Object.prototype.toString,Sp=Object.prototype.hasOwnProperty,AE=function(e,n,r){for(var i=0,o=e.length;i<o;i++)Sp.call(e,i)&&(r==null?n(e[i],i,e):n.call(r,e[i],i,e))},TE=function(e,n,r){for(var i=0,o=e.length;i<o;i++)r==null?n(e.charAt(i),i,e):n.call(r,e.charAt(i),i,e)},PE=function(e,n,r){for(var i in e)Sp.call(e,i)&&(r==null?n(e[i],i,e):n.call(r,e[i],i,e))},kE=function(e,n,r){if(!EE(n))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),SE.call(e)==="[object Array]"?AE(e,n,i):typeof e=="string"?TE(e,n,i):PE(e,n,i)},CE=kE,OE=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Ga=OE,IE=typeof globalThis>"u"?yr:globalThis,RE=function(){for(var e=[],n=0;n<Ga.length;n++)typeof IE[Ga[n]]=="function"&&(e[e.length]=Ga[n]);return e},Ap={exports:{}},Tp=Bi,ME=op,Un=Ri,Pp=kr,kp=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Un("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Un("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Un("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Un("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Un("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Un("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Pp&&Pp(e,n);if(Tp)Tp(e,n,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)e[n]=r;else throw new ME("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ka=Bi,Cp=function(){return!!Ka};Cp.hasArrayLengthDefineBug=function(){if(!Ka)return null;try{return Ka([],"length",{value:1}).length!==1}catch{return!0}};var Op=Cp,NE=La,Ip=kp,BE=Op(),Rp=kr,Mp=Ri,DE=NE("%Math.floor%"),FE=function(e,n){if(typeof e!="function")throw new Mp("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||DE(n)!==n)throw new Mp("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&Rp){var s=Rp(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!r)&&(BE?Ip(e,"length",n,!0,!0):Ip(e,"length",n)),e},LE=Cr(),jE=Ra(),$E=fp,VE=function(){return $E(LE,jE,arguments)};(function(t){var e=FE,n=Bi,r=Ma,i=VE;t.exports=function(s){var a=r(arguments),l=s.length-(arguments.length-1);return e(a,1+(l>0?l:0),!0)},n?n(t.exports,"apply",{value:i}):t.exports.apply=i})(Ap);var Vi=Ap.exports,Ui=CE,UE=RE,Np=Vi,Ya=ja,zi=kr,zE=Ya("Object.prototype.toString"),Bp=Aa(),Dp=typeof globalThis>"u"?yr:globalThis,Xa=UE(),Ja=Ya("String.prototype.slice"),Za=Object.getPrototypeOf,qE=Ya("Array.prototype.indexOf",!0)||function(e,n){for(var r=0;r<e.length;r+=1)if(e[r]===n)return r;return-1},qi={__proto__:null};Bp&&zi&&Za?Ui(Xa,function(t){var e=new Dp[t];if(Symbol.toStringTag in e){var n=Za(e),r=zi(n,Symbol.toStringTag);if(!r){var i=Za(n);r=zi(i,Symbol.toStringTag)}qi["$"+t]=Np(r.get)}}):Ui(Xa,function(t){var e=new Dp[t],n=e.slice||e.set;n&&(qi["$"+t]=Np(n))});var WE=function(e){var n=!1;return Ui(qi,function(r,i){if(!n)try{"$"+r(e)===i&&(n=Ja(i,1))}catch{}}),n},HE=function(e){var n=!1;return Ui(qi,function(r,i){if(!n)try{r(e),n=Ja(i,1)}catch{}}),n},Fp=function(e){if(!e||typeof e!="object")return!1;if(!Bp){var n=Ja(zE(e),8,-1);return qE(Xa,n)>-1?n:n!=="Object"?!1:HE(e)}return zi?WE(e):null},GE=Fp,KE=function(e){return!!GE(e)};(function(t){var e=sE,n=fE,r=Fp,i=KE;function o(V){return V.call.bind(V)}var s=typeof BigInt<"u",a=typeof Symbol<"u",l=o(Object.prototype.toString),d=o(Number.prototype.valueOf),c=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(s)var m=o(BigInt.prototype.valueOf);if(a)var y=o(Symbol.prototype.valueOf);function w(V,he){if(typeof V!="object")return!1;try{return he(V),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=i;function b(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}t.isPromise=b;function P(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):i(V)||N(V)}t.isArrayBufferView=P;function x(V){return r(V)==="Uint8Array"}t.isUint8Array=x;function v(V){return r(V)==="Uint8ClampedArray"}t.isUint8ClampedArray=v;function E(V){return r(V)==="Uint16Array"}t.isUint16Array=E;function M(V){return r(V)==="Uint32Array"}t.isUint32Array=M;function I(V){return r(V)==="Int8Array"}t.isInt8Array=I;function F(V){return r(V)==="Int16Array"}t.isInt16Array=F;function D(V){return r(V)==="Int32Array"}t.isInt32Array=D;function q(V){return r(V)==="Float32Array"}t.isFloat32Array=q;function L(V){return r(V)==="Float64Array"}t.isFloat64Array=L;function Y(V){return r(V)==="BigInt64Array"}t.isBigInt64Array=Y;function Z(V){return r(V)==="BigUint64Array"}t.isBigUint64Array=Z;function et(V){return l(V)==="[object Map]"}et.working=typeof Map<"u"&&et(new Map);function st(V){return typeof Map>"u"?!1:et.working?et(V):V instanceof Map}t.isMap=st;function At(V){return l(V)==="[object Set]"}At.working=typeof Set<"u"&&At(new Set);function dt(V){return typeof Set>"u"?!1:At.working?At(V):V instanceof Set}t.isSet=dt;function It(V){return l(V)==="[object WeakMap]"}It.working=typeof WeakMap<"u"&&It(new WeakMap);function at(V){return typeof WeakMap>"u"?!1:It.working?It(V):V instanceof WeakMap}t.isWeakMap=at;function ht(V){return l(V)==="[object WeakSet]"}ht.working=typeof WeakSet<"u"&&ht(new WeakSet);function U(V){return ht(V)}t.isWeakSet=U;function H(V){return l(V)==="[object ArrayBuffer]"}H.working=typeof ArrayBuffer<"u"&&H(new ArrayBuffer);function G(V){return typeof ArrayBuffer>"u"?!1:H.working?H(V):V instanceof ArrayBuffer}t.isArrayBuffer=G;function S(V){return l(V)==="[object DataView]"}S.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&S(new DataView(new ArrayBuffer(1),0,1));function N(V){return typeof DataView>"u"?!1:S.working?S(V):V instanceof DataView}t.isDataView=N;var _=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(V){return l(V)==="[object SharedArrayBuffer]"}function C(V){return typeof _>"u"?!1:(typeof A.working>"u"&&(A.working=A(new _)),A.working?A(V):V instanceof _)}t.isSharedArrayBuffer=C;function z(V){return l(V)==="[object AsyncFunction]"}t.isAsyncFunction=z;function j(V){return l(V)==="[object Map Iterator]"}t.isMapIterator=j;function W(V){return l(V)==="[object Set Iterator]"}t.isSetIterator=W;function K(V){return l(V)==="[object Generator]"}t.isGeneratorObject=K;function rt(V){return l(V)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=rt;function ft(V){return w(V,d)}t.isNumberObject=ft;function vt(V){return w(V,c)}t.isStringObject=vt;function Pt(V){return w(V,h)}t.isBooleanObject=Pt;function jt(V){return s&&w(V,m)}t.isBigIntObject=jt;function Yt(V){return a&&w(V,y)}t.isSymbolObject=Yt;function Jt(V){return ft(V)||vt(V)||Pt(V)||jt(V)||Yt(V)}t.isBoxedPrimitive=Jt;function Wt(V){return typeof Uint8Array<"u"&&(G(V)||C(V))}t.isAnyArrayBuffer=Wt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(t,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})})(rp);var YE=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Qa={exports:{}};typeof Object.create=="function"?Qa.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Qa.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var XE=Qa.exports;(function(t){var e=Object.getOwnPropertyDescriptors||function(N){for(var _=Object.keys(N),A={},C=0;C<_.length;C++)A[_[C]]=Object.getOwnPropertyDescriptor(N,_[C]);return A},n=/%[sdj%]/g;t.format=function(S){if(!I(S)){for(var N=[],_=0;_<arguments.length;_++)N.push(s(arguments[_]));return N.join(" ")}for(var _=1,A=arguments,C=A.length,z=String(S).replace(n,function(W){if(W==="%%")return"%";if(_>=C)return W;switch(W){case"%s":return String(A[_++]);case"%d":return Number(A[_++]);case"%j":try{return JSON.stringify(A[_++])}catch{return"[Circular]"}default:return W}}),j=A[_];_<C;j=A[++_])v(j)||!L(j)?z+=" "+j:z+=" "+s(j);return z},t.deprecate=function(S,N){if(typeof qt<"u"&&qt.noDeprecation===!0)return S;if(typeof qt>"u")return function(){return t.deprecate(S,N).apply(this,arguments)};var _=!1;function A(){if(!_){if(qt.throwDeprecation)throw new Error(N);qt.traceDeprecation?console.trace(N):console.error(N),_=!0}return S.apply(this,arguments)}return A};var r={},i=/^$/;if(qt.env.NODE_DEBUG){var o=qt.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}t.debuglog=function(S){if(S=S.toUpperCase(),!r[S])if(i.test(S)){var N=qt.pid;r[S]=function(){var _=t.format.apply(t,arguments);console.error("%s %d: %s",S,N,_)}}else r[S]=function(){};return r[S]};function s(S,N){var _={seen:[],stylize:l};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),x(N)?_.showHidden=N:N&&t._extend(_,N),D(_.showHidden)&&(_.showHidden=!1),D(_.depth)&&(_.depth=2),D(_.colors)&&(_.colors=!1),D(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=a),c(_,S,_.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(S,N){var _=s.styles[N];return _?"\x1B["+s.colors[_][0]+"m"+S+"\x1B["+s.colors[_][1]+"m":S}function l(S,N){return S}function d(S){var N={};return S.forEach(function(_,A){N[_]=!0}),N}function c(S,N,_){if(S.customInspect&&N&&et(N.inspect)&&N.inspect!==t.inspect&&!(N.constructor&&N.constructor.prototype===N)){var A=N.inspect(_,S);return I(A)||(A=c(S,A,_)),A}var C=h(S,N);if(C)return C;var z=Object.keys(N),j=d(z);if(S.showHidden&&(z=Object.getOwnPropertyNames(N)),Z(N)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return m(N);if(z.length===0){if(et(N)){var W=N.name?": "+N.name:"";return S.stylize("[Function"+W+"]","special")}if(q(N))return S.stylize(RegExp.prototype.toString.call(N),"regexp");if(Y(N))return S.stylize(Date.prototype.toString.call(N),"date");if(Z(N))return m(N)}var K="",rt=!1,ft=["{","}"];if(P(N)&&(rt=!0,ft=["[","]"]),et(N)){var vt=N.name?": "+N.name:"";K=" [Function"+vt+"]"}if(q(N)&&(K=" "+RegExp.prototype.toString.call(N)),Y(N)&&(K=" "+Date.prototype.toUTCString.call(N)),Z(N)&&(K=" "+m(N)),z.length===0&&(!rt||N.length==0))return ft[0]+K+ft[1];if(_<0)return q(N)?S.stylize(RegExp.prototype.toString.call(N),"regexp"):S.stylize("[Object]","special");S.seen.push(N);var Pt;return rt?Pt=y(S,N,_,j,z):Pt=z.map(function(jt){return w(S,N,_,j,jt,rt)}),S.seen.pop(),b(Pt,K,ft)}function h(S,N){if(D(N))return S.stylize("undefined","undefined");if(I(N)){var _="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return S.stylize(_,"string")}if(M(N))return S.stylize(""+N,"number");if(x(N))return S.stylize(""+N,"boolean");if(v(N))return S.stylize("null","null")}function m(S){return"["+Error.prototype.toString.call(S)+"]"}function y(S,N,_,A,C){for(var z=[],j=0,W=N.length;j<W;++j)ht(N,String(j))?z.push(w(S,N,_,A,String(j),!0)):z.push("");return C.forEach(function(K){K.match(/^\d+$/)||z.push(w(S,N,_,A,K,!0))}),z}function w(S,N,_,A,C,z){var j,W,K;if(K=Object.getOwnPropertyDescriptor(N,C)||{value:N[C]},K.get?K.set?W=S.stylize("[Getter/Setter]","special"):W=S.stylize("[Getter]","special"):K.set&&(W=S.stylize("[Setter]","special")),ht(A,C)||(j="["+C+"]"),W||(S.seen.indexOf(K.value)<0?(v(_)?W=c(S,K.value,null):W=c(S,K.value,_-1),W.indexOf(`
103
- `)>-1&&(z?W=W.split(`
102
+ */(function(t){const e=Pi,n=pa,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=I,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;c.TYPED_ARRAY_SUPPORT=l(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const p=new o(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,o.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function d(p){if(p>i)throw new RangeError('The value "'+p+'" is invalid for option "size"');const u=new o(p);return Object.setPrototypeOf(u,c.prototype),u}function c(p,u,f){if(typeof p=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(p)}return h(p,u,f)}c.poolSize=8192;function h(p,u,f){if(typeof p=="string")return _(p,u);if(s.isView(p))return x(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(R(p,s)||p&&R(p.buffer,s)||typeof a<"u"&&(R(p,a)||p&&R(p.buffer,a)))return v(p,u,f);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=p.valueOf&&p.valueOf();if(g!=null&&g!==p)return c.from(g,u,f);const T=S(p);if(T)return T;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return c.from(p[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}c.from=function(p,u,f){return h(p,u,f)},Object.setPrototypeOf(c.prototype,o.prototype),Object.setPrototypeOf(c,o);function m(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function y(p,u,f){return m(p),p<=0?d(p):u!==void 0?typeof f=="string"?d(p).fill(u,f):d(p).fill(u):d(p)}c.alloc=function(p,u,f){return y(p,u,f)};function b(p){return m(p),d(p<0?0:M(p)|0)}c.allocUnsafe=function(p){return b(p)},c.allocUnsafeSlow=function(p){return b(p)};function _(p,u){if((typeof u!="string"||u==="")&&(u="utf8"),!c.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=F(p,u)|0;let g=d(f);const T=g.write(p,u);return T!==f&&(g=g.slice(0,T)),g}function P(p){const u=p.length<0?0:M(p.length)|0,f=d(u);for(let g=0;g<u;g+=1)f[g]=p[g]&255;return f}function x(p){if(R(p,o)){const u=new o(p);return v(u.buffer,u.byteOffset,u.byteLength)}return P(p)}function v(p,u,f){if(u<0||p.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let g;return u===void 0&&f===void 0?g=new o(p):f===void 0?g=new o(p,u):g=new o(p,u,f),Object.setPrototypeOf(g,c.prototype),g}function S(p){if(c.isBuffer(p)){const u=M(p.length)|0,f=d(u);return f.length===0||p.copy(f,0,0,u),f}if(p.length!==void 0)return typeof p.length!="number"||X(p.length)?d(0):P(p);if(p.type==="Buffer"&&Array.isArray(p.data))return P(p.data)}function M(p){if(p>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return p|0}function I(p){return+p!=p&&(p=0),c.alloc(+p)}c.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==c.prototype},c.compare=function(u,f){if(R(u,o)&&(u=c.from(u,u.offset,u.byteLength)),R(f,o)&&(f=c.from(f,f.offset,f.byteLength)),!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let g=u.length,T=f.length;for(let B=0,$=Math.min(g,T);B<$;++B)if(u[B]!==f[B]){g=u[B],T=f[B];break}return g<T?-1:T<g?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);let g;if(f===void 0)for(f=0,g=0;g<u.length;++g)f+=u[g].length;const T=c.allocUnsafe(f);let B=0;for(g=0;g<u.length;++g){let $=u[g];if(R($,o))B+$.length>T.length?(c.isBuffer($)||($=c.from($)),$.copy(T,B)):o.prototype.set.call(T,$,B);else if(c.isBuffer($))$.copy(T,B);else throw new TypeError('"list" argument must be an Array of Buffers');B+=$.length}return T};function F(p,u){if(c.isBuffer(p))return p.length;if(s.isView(p)||R(p,s))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const f=p.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&f===0)return 0;let T=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return he(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return St(p).length;default:if(T)return g?-1:he(p).length;u=(""+u).toLowerCase(),T=!0}}c.byteLength=F;function D(p,u,f){let g=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(p||(p="utf8");;)switch(p){case"hex":return E(this,u,f);case"utf8":case"utf-8":return at(this,u,f);case"ascii":return H(this,u,f);case"latin1":case"binary":return G(this,u,f);case"base64":return It(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,u,f);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),g=!0}}c.prototype._isBuffer=!0;function W(p,u,f){const g=p[u];p[u]=p[f],p[f]=g}c.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)W(this,f,f+1);return this},c.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)W(this,f,f+3),W(this,f+1,f+2);return this},c.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)W(this,f,f+7),W(this,f+1,f+6),W(this,f+2,f+5),W(this,f+3,f+4);return this},c.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?at(this,0,u):D.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){let u="";const f=t.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(u,f,g,T,B){if(R(u,o)&&(u=c.from(u,u.offset,u.byteLength)),!c.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),g===void 0&&(g=u?u.length:0),T===void 0&&(T=0),B===void 0&&(B=this.length),f<0||g>u.length||T<0||B>this.length)throw new RangeError("out of range index");if(T>=B&&f>=g)return 0;if(T>=B)return-1;if(f>=g)return 1;if(f>>>=0,g>>>=0,T>>>=0,B>>>=0,this===u)return 0;let $=B-T,lt=g-f;const bt=Math.min($,lt),_t=this.slice(T,B),Dt=u.slice(f,g);for(let Tt=0;Tt<bt;++Tt)if(_t[Tt]!==Dt[Tt]){$=_t[Tt],lt=Dt[Tt];break}return $<lt?-1:lt<$?1:0};function L(p,u,f,g,T){if(p.length===0)return-1;if(typeof f=="string"?(g=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,X(f)&&(f=T?0:p.length-1),f<0&&(f=p.length+f),f>=p.length){if(T)return-1;f=p.length-1}else if(f<0)if(T)f=0;else return-1;if(typeof u=="string"&&(u=c.from(u,g)),c.isBuffer(u))return u.length===0?-1:Y(p,u,f,g,T);if(typeof u=="number")return u=u&255,typeof o.prototype.indexOf=="function"?T?o.prototype.indexOf.call(p,u,f):o.prototype.lastIndexOf.call(p,u,f):Y(p,[u],f,g,T);throw new TypeError("val must be string, number or Buffer")}function Y(p,u,f,g,T){let B=1,$=p.length,lt=u.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(p.length<2||u.length<2)return-1;B=2,$/=2,lt/=2,f/=2}function bt(Dt,Tt){return B===1?Dt[Tt]:Dt.readUInt16BE(Tt*B)}let _t;if(T){let Dt=-1;for(_t=f;_t<$;_t++)if(bt(p,_t)===bt(u,Dt===-1?0:_t-Dt)){if(Dt===-1&&(Dt=_t),_t-Dt+1===lt)return Dt*B}else Dt!==-1&&(_t-=_t-Dt),Dt=-1}else for(f+lt>$&&(f=$-lt),_t=f;_t>=0;_t--){let Dt=!0;for(let Tt=0;Tt<lt;Tt++)if(bt(p,_t+Tt)!==bt(u,Tt)){Dt=!1;break}if(Dt)return _t}return-1}c.prototype.includes=function(u,f,g){return this.indexOf(u,f,g)!==-1},c.prototype.indexOf=function(u,f,g){return L(this,u,f,g,!0)},c.prototype.lastIndexOf=function(u,f,g){return L(this,u,f,g,!1)};function Z(p,u,f,g){f=Number(f)||0;const T=p.length-f;g?(g=Number(g),g>T&&(g=T)):g=T;const B=u.length;g>B/2&&(g=B/2);let $;for($=0;$<g;++$){const lt=parseInt(u.substr($*2,2),16);if(X(lt))return $;p[f+$]=lt}return $}function et(p,u,f,g){return k(he(u,p.length-f),p,f,g)}function st(p,u,f,g){return k(J(u),p,f,g)}function At(p,u,f,g){return k(St(u),p,f,g)}function dt(p,u,f,g){return k(gt(u,p.length-f),p,f,g)}c.prototype.write=function(u,f,g,T){if(f===void 0)T="utf8",g=this.length,f=0;else if(g===void 0&&typeof f=="string")T=f,g=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(g)?(g=g>>>0,T===void 0&&(T="utf8")):(T=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const B=this.length-f;if((g===void 0||g>B)&&(g=B),u.length>0&&(g<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");let $=!1;for(;;)switch(T){case"hex":return Z(this,u,f,g);case"utf8":case"utf-8":return et(this,u,f,g);case"ascii":case"latin1":case"binary":return st(this,u,f,g);case"base64":return At(this,u,f,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dt(this,u,f,g);default:if($)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),$=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function It(p,u,f){return u===0&&f===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(u,f))}function at(p,u,f){f=Math.min(p.length,f);const g=[];let T=u;for(;T<f;){const B=p[T];let $=null,lt=B>239?4:B>223?3:B>191?2:1;if(T+lt<=f){let bt,_t,Dt,Tt;switch(lt){case 1:B<128&&($=B);break;case 2:bt=p[T+1],(bt&192)===128&&(Tt=(B&31)<<6|bt&63,Tt>127&&($=Tt));break;case 3:bt=p[T+1],_t=p[T+2],(bt&192)===128&&(_t&192)===128&&(Tt=(B&15)<<12|(bt&63)<<6|_t&63,Tt>2047&&(Tt<55296||Tt>57343)&&($=Tt));break;case 4:bt=p[T+1],_t=p[T+2],Dt=p[T+3],(bt&192)===128&&(_t&192)===128&&(Dt&192)===128&&(Tt=(B&15)<<18|(bt&63)<<12|(_t&63)<<6|Dt&63,Tt>65535&&Tt<1114112&&($=Tt))}}$===null?($=65533,lt=1):$>65535&&($-=65536,g.push($>>>10&1023|55296),$=56320|$&1023),g.push($),T+=lt}return U(g)}const ht=4096;function U(p){const u=p.length;if(u<=ht)return String.fromCharCode.apply(String,p);let f="",g=0;for(;g<u;)f+=String.fromCharCode.apply(String,p.slice(g,g+=ht));return f}function H(p,u,f){let g="";f=Math.min(p.length,f);for(let T=u;T<f;++T)g+=String.fromCharCode(p[T]&127);return g}function G(p,u,f){let g="";f=Math.min(p.length,f);for(let T=u;T<f;++T)g+=String.fromCharCode(p[T]);return g}function E(p,u,f){const g=p.length;(!u||u<0)&&(u=0),(!f||f<0||f>g)&&(f=g);let T="";for(let B=u;B<f;++B)T+=tt[p[B]];return T}function N(p,u,f){const g=p.slice(u,f);let T="";for(let B=0;B<g.length-1;B+=2)T+=String.fromCharCode(g[B]+g[B+1]*256);return T}c.prototype.slice=function(u,f){const g=this.length;u=~~u,f=f===void 0?g:~~f,u<0?(u+=g,u<0&&(u=0)):u>g&&(u=g),f<0?(f+=g,f<0&&(f=0)):f>g&&(f=g),f<u&&(f=u);const T=this.subarray(u,f);return Object.setPrototypeOf(T,c.prototype),T};function w(p,u,f){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+u>f)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(u,f,g){u=u>>>0,f=f>>>0,g||w(u,f,this.length);let T=this[u],B=1,$=0;for(;++$<f&&(B*=256);)T+=this[u+$]*B;return T},c.prototype.readUintBE=c.prototype.readUIntBE=function(u,f,g){u=u>>>0,f=f>>>0,g||w(u,f,this.length);let T=this[u+--f],B=1;for(;f>0&&(B*=256);)T+=this[u+--f]*B;return T},c.prototype.readUint8=c.prototype.readUInt8=function(u,f){return u=u>>>0,f||w(u,1,this.length),this[u]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||w(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||w(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||w(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||w(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readBigUInt64LE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,B=this[++u]+this[++u]*2**8+this[++u]*2**16+g*2**24;return BigInt(T)+(BigInt(B)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],B=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+g;return(BigInt(T)<<BigInt(32))+BigInt(B)}),c.prototype.readIntLE=function(u,f,g){u=u>>>0,f=f>>>0,g||w(u,f,this.length);let T=this[u],B=1,$=0;for(;++$<f&&(B*=256);)T+=this[u+$]*B;return B*=128,T>=B&&(T-=Math.pow(2,8*f)),T},c.prototype.readIntBE=function(u,f,g){u=u>>>0,f=f>>>0,g||w(u,f,this.length);let T=f,B=1,$=this[u+--T];for(;T>0&&(B*=256);)$+=this[u+--T]*B;return B*=128,$>=B&&($-=Math.pow(2,8*f)),$},c.prototype.readInt8=function(u,f){return u=u>>>0,f||w(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){u=u>>>0,f||w(u,2,this.length);const g=this[u]|this[u+1]<<8;return g&32768?g|4294901760:g},c.prototype.readInt16BE=function(u,f){u=u>>>0,f||w(u,2,this.length);const g=this[u+1]|this[u]<<8;return g&32768?g|4294901760:g},c.prototype.readInt32LE=function(u,f){return u=u>>>0,f||w(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,f){return u=u>>>0,f||w(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readBigInt64LE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(g<<24);return(BigInt(T)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),c.prototype.readBigInt64BE=Q(function(u){u=u>>>0,Yt(u,"offset");const f=this[u],g=this[u+7];(f===void 0||g===void 0)&&Jt(u,this.length-8);const T=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(T)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+g)}),c.prototype.readFloatLE=function(u,f){return u=u>>>0,f||w(u,4,this.length),n.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return u=u>>>0,f||w(u,4,this.length),n.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||w(u,8,this.length),n.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||w(u,8,this.length),n.read(this,u,!1,52,8)};function A(p,u,f,g,T,B){if(!c.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>T||u<B)throw new RangeError('"value" argument is out of bounds');if(f+g>p.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(u,f,g,T){if(u=+u,f=f>>>0,g=g>>>0,!T){const lt=Math.pow(2,8*g)-1;A(this,u,f,g,lt,0)}let B=1,$=0;for(this[f]=u&255;++$<g&&(B*=256);)this[f+$]=u/B&255;return f+g},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(u,f,g,T){if(u=+u,f=f>>>0,g=g>>>0,!T){const lt=Math.pow(2,8*g)-1;A(this,u,f,g,lt,0)}let B=g-1,$=1;for(this[f+B]=u&255;--B>=0&&($*=256);)this[f+B]=u/$&255;return f+g},c.prototype.writeUint8=c.prototype.writeUInt8=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,1,255,0),this[f]=u&255,f+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function O(p,u,f,g,T){$t(u,g,T,p,f,7);let B=Number(u&BigInt(4294967295));p[f++]=B,B=B>>8,p[f++]=B,B=B>>8,p[f++]=B,B=B>>8,p[f++]=B;let $=Number(u>>BigInt(32)&BigInt(4294967295));return p[f++]=$,$=$>>8,p[f++]=$,$=$>>8,p[f++]=$,$=$>>8,p[f++]=$,f}function z(p,u,f,g,T){$t(u,g,T,p,f,7);let B=Number(u&BigInt(4294967295));p[f+7]=B,B=B>>8,p[f+6]=B,B=B>>8,p[f+5]=B,B=B>>8,p[f+4]=B;let $=Number(u>>BigInt(32)&BigInt(4294967295));return p[f+3]=$,$=$>>8,p[f+2]=$,$=$>>8,p[f+1]=$,$=$>>8,p[f]=$,f+8}c.prototype.writeBigUInt64LE=Q(function(u,f=0){return O(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(u,f=0){return z(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(u,f,g,T){if(u=+u,f=f>>>0,!T){const bt=Math.pow(2,8*g-1);A(this,u,f,g,bt-1,-bt)}let B=0,$=1,lt=0;for(this[f]=u&255;++B<g&&($*=256);)u<0&&lt===0&&this[f+B-1]!==0&&(lt=1),this[f+B]=(u/$>>0)-lt&255;return f+g},c.prototype.writeIntBE=function(u,f,g,T){if(u=+u,f=f>>>0,!T){const bt=Math.pow(2,8*g-1);A(this,u,f,g,bt-1,-bt)}let B=g-1,$=1,lt=0;for(this[f+B]=u&255;--B>=0&&($*=256);)u<0&&lt===0&&this[f+B+1]!==0&&(lt=1),this[f+B]=(u/$>>0)-lt&255;return f+g},c.prototype.writeInt8=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},c.prototype.writeInt16LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeInt16BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeInt32LE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},c.prototype.writeInt32BE=function(u,f,g){return u=+u,f=f>>>0,g||A(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},c.prototype.writeBigInt64LE=Q(function(u,f=0){return O(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(u,f=0){return z(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function j(p,u,f,g,T,B){if(f+g>p.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function q(p,u,f,g,T){return u=+u,f=f>>>0,T||j(p,u,f,4),n.write(p,u,f,g,23,4),f+4}c.prototype.writeFloatLE=function(u,f,g){return q(this,u,f,!0,g)},c.prototype.writeFloatBE=function(u,f,g){return q(this,u,f,!1,g)};function K(p,u,f,g,T){return u=+u,f=f>>>0,T||j(p,u,f,8),n.write(p,u,f,g,52,8),f+8}c.prototype.writeDoubleLE=function(u,f,g){return K(this,u,f,!0,g)},c.prototype.writeDoubleBE=function(u,f,g){return K(this,u,f,!1,g)},c.prototype.copy=function(u,f,g,T){if(!c.isBuffer(u))throw new TypeError("argument should be a Buffer");if(g||(g=0),!T&&T!==0&&(T=this.length),f>=u.length&&(f=u.length),f||(f=0),T>0&&T<g&&(T=g),T===g||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),u.length-f<T-g&&(T=u.length-f+g);const B=T-g;return this===u&&typeof o.prototype.copyWithin=="function"?this.copyWithin(f,g,T):o.prototype.set.call(u,this.subarray(g,T),f),B},c.prototype.fill=function(u,f,g,T){if(typeof u=="string"){if(typeof f=="string"?(T=f,f=0,g=this.length):typeof g=="string"&&(T=g,g=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!c.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(u.length===1){const $=u.charCodeAt(0);(T==="utf8"&&$<128||T==="latin1")&&(u=$)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<g)throw new RangeError("Out of range index");if(g<=f)return this;f=f>>>0,g=g===void 0?this.length:g>>>0,u||(u=0);let B;if(typeof u=="number")for(B=f;B<g;++B)this[B]=u;else{const $=c.isBuffer(u)?u:c.from(u,T),lt=$.length;if(lt===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(B=0;B<g-f;++B)this[B+f]=$[B%lt]}return this};const rt={};function ft(p,u,f){rt[p]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(T){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:T,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}ft("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ft("ERR_INVALID_ARG_TYPE",function(p,u){return`The "${p}" argument must be of type number. Received type ${typeof u}`},TypeError),ft("ERR_OUT_OF_RANGE",function(p,u,f){let g=`The value of "${p}" is out of range.`,T=f;return Number.isInteger(f)&&Math.abs(f)>2**32?T=vt(String(f)):typeof f=="bigint"&&(T=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(T=vt(T)),T+="n"),g+=` It must be ${u}. Received ${T}`,g},RangeError);function vt(p){let u="",f=p.length;const g=p[0]==="-"?1:0;for(;f>=g+4;f-=3)u=`_${p.slice(f-3,f)}${u}`;return`${p.slice(0,f)}${u}`}function Pt(p,u,f){Yt(u,"offset"),(p[u]===void 0||p[u+f]===void 0)&&Jt(u,p.length-(f+1))}function $t(p,u,f,g,T,B){if(p>f||p<u){const $=typeof u=="bigint"?"n":"";let lt;throw u===0||u===BigInt(0)?lt=`>= 0${$} and < 2${$} ** ${(B+1)*8}${$}`:lt=`>= -(2${$} ** ${(B+1)*8-1}${$}) and < 2 ** ${(B+1)*8-1}${$}`,new rt.ERR_OUT_OF_RANGE("value",lt,p)}Pt(g,T,B)}function Yt(p,u){if(typeof p!="number")throw new rt.ERR_INVALID_ARG_TYPE(u,"number",p)}function Jt(p,u,f){throw Math.floor(p)!==p?(Yt(p,f),new rt.ERR_OUT_OF_RANGE("offset","an integer",p)):u<0?new rt.ERR_BUFFER_OUT_OF_BOUNDS:new rt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,p)}const qt=/[^+/0-9A-Za-z-_]/g;function V(p){if(p=p.split("=")[0],p=p.trim().replace(qt,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function he(p,u){u=u||1/0;let f;const g=p.length;let T=null;const B=[];for(let $=0;$<g;++$){if(f=p.charCodeAt($),f>55295&&f<57344){if(!T){if(f>56319){(u-=3)>-1&&B.push(239,191,189);continue}else if($+1===g){(u-=3)>-1&&B.push(239,191,189);continue}T=f;continue}if(f<56320){(u-=3)>-1&&B.push(239,191,189),T=f;continue}f=(T-55296<<10|f-56320)+65536}else T&&(u-=3)>-1&&B.push(239,191,189);if(T=null,f<128){if((u-=1)<0)break;B.push(f)}else if(f<2048){if((u-=2)<0)break;B.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;B.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;B.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return B}function J(p){const u=[];for(let f=0;f<p.length;++f)u.push(p.charCodeAt(f)&255);return u}function gt(p,u){let f,g,T;const B=[];for(let $=0;$<p.length&&!((u-=2)<0);++$)f=p.charCodeAt($),g=f>>8,T=f%256,B.push(T),B.push(g);return B}function St(p){return e.toByteArray(V(p))}function k(p,u,f,g){let T;for(T=0;T<g&&!(T+f>=u.length||T>=p.length);++T)u[T+f]=p[T];return T}function R(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function X(p){return p!==p}const tt=function(){const p="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const g=f*16;for(let T=0;T<16;++T)u[g+T]=p[f]+p[T]}return u}();function Q(p){return typeof BigInt>"u"?ct:p}function ct(){throw new Error("BigInt not supported")}})(xx);const ma=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ki=fe.WebSocket||fe.MozWebSocket,zh=!0,Ix="arraybuffer",Wh=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Rx extends fa{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=Wh?{}:Mh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=zh&&!Wh?n?new ki(e,n):new ki(e):new ki(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;aa(r,this.supportsBinary,o=>{const s={};try{zh&&this.ws.send(o)}catch{}i&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Lh()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!ki}}class Mx extends fa{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=ax(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=sx();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;this.writer.write(r).then(()=>{i&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const Nx={websocket:Rx,webtransport:Mx,polling:_x},Bx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Dx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ya(t){if(t.length>2e3)throw"URI too long";const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=Bx.exec(t||""),o={},s=14;for(;s--;)o[Dx[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Fx(o,o.path),o.queryKey=Lx(o,o.query),o}function Fx(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Lx(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let qh=class Wn extends zt{constructor(e,n={}){super(),this.binaryType=Ix,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=ya(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=ya(n.host).host),Ai(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=mx(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Rh,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Nx[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Wn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;Wn.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Wn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){r||(r=!0,c(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function a(){s("transport closed")}function l(){s("socket closed")}function d(h){n&&h.name!==n.name&&o()}const c=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",d)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Wn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=dx(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Wn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}};qh.protocol=Rh;function jx(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=ya(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+e,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const $x=typeof ArrayBuffer=="function",Vx=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Hh=Object.prototype.toString,Ux=typeof Blob=="function"||typeof Blob<"u"&&Hh.call(Blob)==="[object BlobConstructor]",zx=typeof File=="function"||typeof File<"u"&&Hh.call(File)==="[object FileConstructor]";function ga(t){return $x&&(t instanceof ArrayBuffer||Vx(t))||Ux&&t instanceof Blob||zx&&t instanceof File}function Ci(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(Ci(t[n]))return!0;return!1}if(ga(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ci(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Ci(t[n]))return!0;return!1}function Wx(t){const e=[],n=t.data,r=t;return r.data=va(n,e),r.attachments=e.length,{packet:r,buffers:e}}function va(t,e){if(!t)return t;if(ga(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=va(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=va(t[r],e));return n}return t}function qx(t,e){return t.data=wa(t.data,e),delete t.attachments,t}function wa(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=wa(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=wa(t[n],e));return t}const Hx=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Gx=5;var yt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(yt||(yt={}));class Kx{constructor(e){this.replacer=e}encode(e){return(e.type===yt.EVENT||e.type===yt.ACK)&&Ci(e)?this.encodeAsBinary({type:e.type===yt.EVENT?yt.BINARY_EVENT:yt.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===yt.BINARY_EVENT||e.type===yt.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=Wx(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Gh(t){return Object.prototype.toString.call(t)==="[object Object]"}class ba extends zt{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===yt.BINARY_EVENT;r||n.type===yt.BINARY_ACK?(n.type=r?yt.EVENT:yt.ACK,this.reconstructor=new Yx(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ga(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if(yt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===yt.BINARY_EVENT||r.type===yt.BINARY_ACK){const o=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const s=e.substring(o,n);if(s!=Number(s)||e.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(e.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(o,n)}else r.nsp="/";const i=e.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=e.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===e.length)break}r.id=Number(e.substring(o,n+1))}if(e.charAt(++n)){const o=this.tryParse(e.substr(n));if(ba.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case yt.CONNECT:return Gh(n);case yt.DISCONNECT:return n===void 0;case yt.CONNECT_ERROR:return typeof n=="string"||Gh(n);case yt.EVENT:case yt.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Hx.indexOf(n[0])===-1);case yt.ACK:case yt.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Yx{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=qx(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Xx=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ba,Encoder:Kx,get PacketType(){return yt},protocol:Gx},Symbol.toStringTag,{value:"Module"}));function ve(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const Jx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Kh extends zt{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ve(e,"open",this.onopen.bind(this)),ve(e,"packet",this.onpacket.bind(this)),ve(e,"error",this.onerror.bind(this)),ve(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(Jx.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:yt.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,a=n.pop();this._registerAckCallback(s,a),r.id=s}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:yt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case yt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case yt.EVENT:case yt.BINARY_EVENT:this.onevent(e);break;case yt.ACK:case yt.BINARY_ACK:this.onack(e);break;case yt.DISCONNECT:this.ondisconnect();break;case yt.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:yt.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:yt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function Dn(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Dn.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0},Dn.prototype.reset=function(){this.attempts=0},Dn.prototype.setMin=function(t){this.ms=t},Dn.prototype.setMax=function(t){this.max=t},Dn.prototype.setJitter=function(t){this.jitter=t};class _a extends zt{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ai(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Dn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||Xx;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new qh(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ve(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=ve(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ve(e,"ping",this.onping.bind(this)),ve(e,"data",this.ondata.bind(this)),ve(e,"error",this.onerror.bind(this)),ve(e,"close",this.onclose.bind(this)),ve(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){ma(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Kh(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const kr={};function Oi(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=jx(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=kr[i]&&o in kr[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new _a(r,e):(kr[i]||(kr[i]=new _a(r,e)),l=kr[i]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Oi,{Manager:_a,Socket:Kh,io:Oi,connect:Oi});function Zx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yh={exports:{}},jt=Yh.exports={},Ae,Te;function xa(){throw new Error("setTimeout has not been defined")}function Sa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ae=setTimeout:Ae=xa}catch{Ae=xa}try{typeof clearTimeout=="function"?Te=clearTimeout:Te=Sa}catch{Te=Sa}})();function Xh(t){if(Ae===setTimeout)return setTimeout(t,0);if((Ae===xa||!Ae)&&setTimeout)return Ae=setTimeout,setTimeout(t,0);try{return Ae(t,0)}catch{try{return Ae.call(null,t,0)}catch{return Ae.call(this,t,0)}}}function Qx(t){if(Te===clearTimeout)return clearTimeout(t);if((Te===Sa||!Te)&&clearTimeout)return Te=clearTimeout,clearTimeout(t);try{return Te(t)}catch{try{return Te.call(null,t)}catch{return Te.call(this,t)}}}var Be=[],Fn=!1,cn,Ii=-1;function t1(){!Fn||!cn||(Fn=!1,cn.length?Be=cn.concat(Be):Ii=-1,Be.length&&Jh())}function Jh(){if(!Fn){var t=Xh(t1);Fn=!0;for(var e=Be.length;e;){for(cn=Be,Be=[];++Ii<e;)cn&&cn[Ii].run();Ii=-1,e=Be.length}cn=null,Fn=!1,Qx(t)}}jt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Be.push(new Zh(t,e)),Be.length===1&&!Fn&&Xh(Jh)};function Zh(t,e){this.fun=t,this.array=e}Zh.prototype.run=function(){this.fun.apply(null,this.array)},jt.title="browser",jt.browser=!0,jt.env={},jt.argv=[],jt.version="",jt.versions={};function De(){}jt.on=De,jt.addListener=De,jt.once=De,jt.off=De,jt.removeListener=De,jt.removeAllListeners=De,jt.emit=De,jt.prependListener=De,jt.prependOnceListener=De,jt.listeners=function(t){return[]},jt.binding=function(t){throw new Error("process.binding is not supported")},jt.cwd=function(){return"/"},jt.chdir=function(t){throw new Error("process.chdir is not supported")},jt.umask=function(){return 0};var e1=Yh.exports;const Wt=Zx(e1);var ln={},Qh={},Ea=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},n1=Ea,Aa=function(){return n1()&&!!Symbol.toStringTag},tp=Object,r1=Error,i1=EvalError,o1=RangeError,s1=ReferenceError,ep=SyntaxError,Ri=TypeError,a1=URIError,c1=Math.abs,l1=Math.floor,u1=Math.max,f1=Math.min,d1=Math.pow,h1=Object.getOwnPropertyDescriptor,Mi=h1;if(Mi)try{Mi([],"length")}catch{Mi=null}var Cr=Mi,Ni=Object.defineProperty||!1;if(Ni)try{Ni({},"a",{value:1})}catch{Ni=!1}var Bi=Ni,Ta,np;function p1(){if(np)return Ta;np=1;var t=typeof Symbol<"u"&&Symbol,e=Ea;return Ta=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ta}var m1="Function.prototype.bind called on incompatible ",y1=Object.prototype.toString,g1=Math.max,v1="[object Function]",rp=function(e,n){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var o=0;o<n.length;o+=1)r[o+e.length]=n[o];return r},w1=function(e,n){for(var r=[],i=n,o=0;i<e.length;i+=1,o+=1)r[o]=e[i];return r},b1=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n},_1=function(e){var n=this;if(typeof n!="function"||y1.apply(n)!==v1)throw new TypeError(m1+n);for(var r=w1(arguments,1),i,o=function(){if(this instanceof i){var c=n.apply(this,rp(r,arguments));return Object(c)===c?c:this}return n.apply(e,rp(r,arguments))},s=g1(0,n.length-r.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+b1(a,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var d=function(){};d.prototype=n.prototype,i.prototype=new d,d.prototype=null}return i},x1=_1,Or=Function.prototype.bind||x1,Pa=Function.prototype.call,ka=Function.prototype.apply,S1=typeof Reflect<"u"&&Reflect&&Reflect.apply,E1=Or,A1=ka,T1=Pa,P1=S1,ip=P1||E1.call(T1,A1),k1=Or,C1=Ri,O1=Pa,I1=ip,Ca=function(e){if(e.length<1||typeof e[0]!="function")throw new C1("a function is required");return I1(k1,O1,e)},Oa,op;function R1(){if(op)return Oa;op=1;var t=Ca,e=Cr,n;try{n=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var r=!!n&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Oa=r&&typeof r.get=="function"?t([r.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Oa}var Ia,sp;function M1(){if(sp)return Ia;sp=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Or;return Ia=n.call(t,e),Ia}var pt,ap=tp,N1=r1,B1=i1,D1=o1,F1=s1,Ln=ep,jn=Ri,L1=a1,j1=c1,$1=l1,V1=u1,U1=f1,z1=d1,cp=Function,Ra=function(t){try{return cp('"use strict"; return ('+t+").constructor;")()}catch{}},Ir=Cr,W1=Bi,Ma=function(){throw new jn},q1=Ir?function(){try{return arguments.callee,Ma}catch{try{return Ir(arguments,"callee").get}catch{return Ma}}}():Ma,$n=p1()(),H1=R1(),Kt=typeof Reflect=="function"&&Reflect.getPrototypeOf||ap.getPrototypeOf||H1,lp=ka,Rr=Pa,Vn={},G1=typeof Uint8Array>"u"||!Kt?pt:Kt(Uint8Array),un={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pt:ArrayBuffer,"%ArrayIteratorPrototype%":$n&&Kt?Kt([][Symbol.iterator]()):pt,"%AsyncFromSyncIteratorPrototype%":pt,"%AsyncFunction%":Vn,"%AsyncGenerator%":Vn,"%AsyncGeneratorFunction%":Vn,"%AsyncIteratorPrototype%":Vn,"%Atomics%":typeof Atomics>"u"?pt:Atomics,"%BigInt%":typeof BigInt>"u"?pt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":N1,"%eval%":eval,"%EvalError%":B1,"%Float32Array%":typeof Float32Array>"u"?pt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pt:FinalizationRegistry,"%Function%":cp,"%GeneratorFunction%":Vn,"%Int8Array%":typeof Int8Array>"u"?pt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$n&&Kt?Kt(Kt([][Symbol.iterator]())):pt,"%JSON%":typeof JSON=="object"?JSON:pt,"%Map%":typeof Map>"u"?pt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$n||!Kt?pt:Kt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ap,"%Object.getOwnPropertyDescriptor%":Ir,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pt:Promise,"%Proxy%":typeof Proxy>"u"?pt:Proxy,"%RangeError%":D1,"%ReferenceError%":F1,"%Reflect%":typeof Reflect>"u"?pt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$n||!Kt?pt:Kt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$n&&Kt?Kt(""[Symbol.iterator]()):pt,"%Symbol%":$n?Symbol:pt,"%SyntaxError%":Ln,"%ThrowTypeError%":q1,"%TypedArray%":G1,"%TypeError%":jn,"%Uint8Array%":typeof Uint8Array>"u"?pt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pt:Uint32Array,"%URIError%":L1,"%WeakMap%":typeof WeakMap>"u"?pt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pt:WeakSet,"%Function.prototype.call%":Rr,"%Function.prototype.apply%":lp,"%Object.defineProperty%":W1,"%Math.abs%":j1,"%Math.floor%":$1,"%Math.max%":V1,"%Math.min%":U1,"%Math.pow%":z1};if(Kt)try{null.error}catch(t){var K1=Kt(Kt(t));un["%Error.prototype%"]=K1}var Y1=function t(e){var n;if(e==="%AsyncFunction%")n=Ra("async function () {}");else if(e==="%GeneratorFunction%")n=Ra("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Ra("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Kt&&(n=Kt(i.prototype))}return un[e]=n,n},up={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Mr=Or,Di=M1(),X1=Mr.call(Rr,Array.prototype.concat),J1=Mr.call(lp,Array.prototype.splice),fp=Mr.call(Rr,String.prototype.replace),Fi=Mr.call(Rr,String.prototype.slice),Z1=Mr.call(Rr,RegExp.prototype.exec),Q1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tS=/\\(\\)?/g,eS=function(e){var n=Fi(e,0,1),r=Fi(e,-1);if(n==="%"&&r!=="%")throw new Ln("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ln("invalid intrinsic syntax, expected opening `%`");var i=[];return fp(e,Q1,function(o,s,a,l){i[i.length]=a?fp(l,tS,"$1"):s||o}),i},nS=function(e,n){var r=e,i;if(Di(up,r)&&(i=up[r],r="%"+i[0]+"%"),Di(un,r)){var o=un[r];if(o===Vn&&(o=Y1(r)),typeof o>"u"&&!n)throw new jn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Ln("intrinsic "+e+" does not exist!")},Na=function(e,n){if(typeof e!="string"||e.length===0)throw new jn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new jn('"allowMissing" argument must be a boolean');if(Z1(/^%?[^%]*%?$/,e)===null)throw new Ln("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=eS(e),i=r.length>0?r[0]:"",o=nS("%"+i+"%",n),s=o.name,a=o.value,l=!1,d=o.alias;d&&(i=d[0],J1(r,X1([0,1],d)));for(var c=1,h=!0;c<r.length;c+=1){var m=r[c],y=Fi(m,0,1),b=Fi(m,-1);if((y==='"'||y==="'"||y==="`"||b==='"'||b==="'"||b==="`")&&y!==b)throw new Ln("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(l=!0),i+="."+m,s="%"+i+"%",Di(un,s))a=un[s];else if(a!=null){if(!(m in a)){if(!n)throw new jn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ir&&c+1>=r.length){var _=Ir(a,m);h=!!_,h&&"get"in _&&!("originalValue"in _.get)?a=_.get:a=a[m]}else h=Di(a,m),a=a[m];h&&!l&&(un[s]=a)}}return a},dp=Na,hp=Ca,rS=hp([dp("%String.prototype.indexOf%")]),Ba=function(e,n){var r=dp(e,!!n);return typeof r=="function"&&rS(e,".prototype.")>-1?hp([r]):r},iS=Aa(),oS=Ba,Da=oS("Object.prototype.toString"),Li=function(e){return iS&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Da(e)==="[object Arguments]"},pp=function(e){return Li(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Da(e)!=="[object Array]"&&"callee"in e&&Da(e.callee)==="[object Function]"},sS=function(){return Li(arguments)}();Li.isLegacyArguments=pp;var aS=sS?Li:pp,cS=Object.prototype.toString,lS=Function.prototype.toString,uS=/^\s*(?:function)?\*/,mp=Aa(),Fa=Object.getPrototypeOf,fS=function(){if(!mp)return!1;try{return Function("return function*() {}")()}catch{}},La,dS=function(e){if(typeof e!="function")return!1;if(uS.test(lS.call(e)))return!0;if(!mp){var n=cS.call(e);return n==="[object GeneratorFunction]"}if(!Fa)return!1;if(typeof La>"u"){var r=fS();La=r?Fa(r):!1}return Fa(e)===La},yp=Function.prototype.toString,Un=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ja,ji;if(typeof Un=="function"&&typeof Object.defineProperty=="function")try{ja=Object.defineProperty({},"length",{get:function(){throw ji}}),ji={},Un(function(){throw 42},null,ja)}catch(t){t!==ji&&(Un=null)}else Un=null;var hS=/^\s*class\b/,$a=function(e){try{var n=yp.call(e);return hS.test(n)}catch{return!1}},Va=function(e){try{return $a(e)?!1:(yp.call(e),!0)}catch{return!1}},$i=Object.prototype.toString,pS="[object Object]",mS="[object Function]",yS="[object GeneratorFunction]",gS="[object HTMLAllCollection]",vS="[object HTML document.all class]",wS="[object HTMLCollection]",bS=typeof Symbol=="function"&&!!Symbol.toStringTag,_S=!(0 in[,]),Ua=function(){return!1};if(typeof document=="object"){var xS=document.all;$i.call(xS)===$i.call(document.all)&&(Ua=function(e){if((_S||!e)&&(typeof e>"u"||typeof e=="object"))try{var n=$i.call(e);return(n===gS||n===vS||n===wS||n===pS)&&e("")==null}catch{}return!1})}var SS=Un?function(e){if(Ua(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Un(e,null,ja)}catch(n){if(n!==ji)return!1}return!$a(e)&&Va(e)}:function(e){if(Ua(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(bS)return Va(e);if($a(e))return!1;var n=$i.call(e);return n!==mS&&n!==yS&&!/^\[object HTML/.test(n)?!1:Va(e)},ES=SS,AS=Object.prototype.toString,gp=Object.prototype.hasOwnProperty,TS=function(e,n,r){for(var i=0,o=e.length;i<o;i++)gp.call(e,i)&&(r==null?n(e[i],i,e):n.call(r,e[i],i,e))},PS=function(e,n,r){for(var i=0,o=e.length;i<o;i++)r==null?n(e.charAt(i),i,e):n.call(r,e.charAt(i),i,e)},kS=function(e,n,r){for(var i in e)gp.call(e,i)&&(r==null?n(e[i],i,e):n.call(r,e[i],i,e))},CS=function(e,n,r){if(!ES(n))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),AS.call(e)==="[object Array]"?TS(e,n,i):typeof e=="string"?PS(e,n,i):kS(e,n,i)},OS=CS,IS=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],za=IS,RS=typeof globalThis>"u"?gr:globalThis,MS=function(){for(var e=[],n=0;n<za.length;n++)typeof RS[za[n]]=="function"&&(e[e.length]=za[n]);return e},vp={exports:{}},wp=Bi,NS=ep,zn=Ri,bp=Cr,_p=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new zn("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new zn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new zn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new zn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new zn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new zn("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!bp&&bp(e,n);if(wp)wp(e,n,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)e[n]=r;else throw new NS("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Wa=Bi,xp=function(){return!!Wa};xp.hasArrayLengthDefineBug=function(){if(!Wa)return null;try{return Wa([],"length",{value:1}).length!==1}catch{return!0}};var Sp=xp,BS=Na,Ep=_p,DS=Sp(),Ap=Cr,Tp=Ri,FS=BS("%Math.floor%"),LS=function(e,n){if(typeof e!="function")throw new Tp("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||FS(n)!==n)throw new Tp("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&Ap){var s=Ap(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!r)&&(DS?Ep(e,"length",n,!0,!0):Ep(e,"length",n)),e},jS=Or,$S=ka,VS=ip,US=function(){return VS(jS,$S,arguments)};(function(t){var e=LS,n=Bi,r=Ca,i=US;t.exports=function(s){var a=r(arguments),l=s.length-(arguments.length-1);return e(a,1+(l>0?l:0),!0)},n?n(t.exports,"apply",{value:i}):t.exports.apply=i})(vp);var Vi=vp.exports,Ui=OS,zS=MS,Pp=Vi,qa=Ba,zi=Cr,WS=qa("Object.prototype.toString"),kp=Aa(),Cp=typeof globalThis>"u"?gr:globalThis,Ha=zS(),Ga=qa("String.prototype.slice"),Ka=Object.getPrototypeOf,qS=qa("Array.prototype.indexOf",!0)||function(e,n){for(var r=0;r<e.length;r+=1)if(e[r]===n)return r;return-1},Wi={__proto__:null};kp&&zi&&Ka?Ui(Ha,function(t){var e=new Cp[t];if(Symbol.toStringTag in e){var n=Ka(e),r=zi(n,Symbol.toStringTag);if(!r){var i=Ka(n);r=zi(i,Symbol.toStringTag)}Wi["$"+t]=Pp(r.get)}}):Ui(Ha,function(t){var e=new Cp[t],n=e.slice||e.set;n&&(Wi["$"+t]=Pp(n))});var HS=function(e){var n=!1;return Ui(Wi,function(r,i){if(!n)try{"$"+r(e)===i&&(n=Ga(i,1))}catch{}}),n},GS=function(e){var n=!1;return Ui(Wi,function(r,i){if(!n)try{r(e),n=Ga(i,1)}catch{}}),n},Op=function(e){if(!e||typeof e!="object")return!1;if(!kp){var n=Ga(WS(e),8,-1);return qS(Ha,n)>-1?n:n!=="Object"?!1:GS(e)}return zi?HS(e):null},KS=Op,YS=function(e){return!!KS(e)};(function(t){var e=aS,n=dS,r=Op,i=YS;function o(V){return V.call.bind(V)}var s=typeof BigInt<"u",a=typeof Symbol<"u",l=o(Object.prototype.toString),d=o(Number.prototype.valueOf),c=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(s)var m=o(BigInt.prototype.valueOf);if(a)var y=o(Symbol.prototype.valueOf);function b(V,he){if(typeof V!="object")return!1;try{return he(V),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=i;function _(V){return typeof Promise<"u"&&V instanceof Promise||V!==null&&typeof V=="object"&&typeof V.then=="function"&&typeof V.catch=="function"}t.isPromise=_;function P(V){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(V):i(V)||N(V)}t.isArrayBufferView=P;function x(V){return r(V)==="Uint8Array"}t.isUint8Array=x;function v(V){return r(V)==="Uint8ClampedArray"}t.isUint8ClampedArray=v;function S(V){return r(V)==="Uint16Array"}t.isUint16Array=S;function M(V){return r(V)==="Uint32Array"}t.isUint32Array=M;function I(V){return r(V)==="Int8Array"}t.isInt8Array=I;function F(V){return r(V)==="Int16Array"}t.isInt16Array=F;function D(V){return r(V)==="Int32Array"}t.isInt32Array=D;function W(V){return r(V)==="Float32Array"}t.isFloat32Array=W;function L(V){return r(V)==="Float64Array"}t.isFloat64Array=L;function Y(V){return r(V)==="BigInt64Array"}t.isBigInt64Array=Y;function Z(V){return r(V)==="BigUint64Array"}t.isBigUint64Array=Z;function et(V){return l(V)==="[object Map]"}et.working=typeof Map<"u"&&et(new Map);function st(V){return typeof Map>"u"?!1:et.working?et(V):V instanceof Map}t.isMap=st;function At(V){return l(V)==="[object Set]"}At.working=typeof Set<"u"&&At(new Set);function dt(V){return typeof Set>"u"?!1:At.working?At(V):V instanceof Set}t.isSet=dt;function It(V){return l(V)==="[object WeakMap]"}It.working=typeof WeakMap<"u"&&It(new WeakMap);function at(V){return typeof WeakMap>"u"?!1:It.working?It(V):V instanceof WeakMap}t.isWeakMap=at;function ht(V){return l(V)==="[object WeakSet]"}ht.working=typeof WeakSet<"u"&&ht(new WeakSet);function U(V){return ht(V)}t.isWeakSet=U;function H(V){return l(V)==="[object ArrayBuffer]"}H.working=typeof ArrayBuffer<"u"&&H(new ArrayBuffer);function G(V){return typeof ArrayBuffer>"u"?!1:H.working?H(V):V instanceof ArrayBuffer}t.isArrayBuffer=G;function E(V){return l(V)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function N(V){return typeof DataView>"u"?!1:E.working?E(V):V instanceof DataView}t.isDataView=N;var w=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(V){return l(V)==="[object SharedArrayBuffer]"}function O(V){return typeof w>"u"?!1:(typeof A.working>"u"&&(A.working=A(new w)),A.working?A(V):V instanceof w)}t.isSharedArrayBuffer=O;function z(V){return l(V)==="[object AsyncFunction]"}t.isAsyncFunction=z;function j(V){return l(V)==="[object Map Iterator]"}t.isMapIterator=j;function q(V){return l(V)==="[object Set Iterator]"}t.isSetIterator=q;function K(V){return l(V)==="[object Generator]"}t.isGeneratorObject=K;function rt(V){return l(V)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=rt;function ft(V){return b(V,d)}t.isNumberObject=ft;function vt(V){return b(V,c)}t.isStringObject=vt;function Pt(V){return b(V,h)}t.isBooleanObject=Pt;function $t(V){return s&&b(V,m)}t.isBigIntObject=$t;function Yt(V){return a&&b(V,y)}t.isSymbolObject=Yt;function Jt(V){return ft(V)||vt(V)||Pt(V)||$t(V)||Yt(V)}t.isBoxedPrimitive=Jt;function qt(V){return typeof Uint8Array<"u"&&(G(V)||O(V))}t.isAnyArrayBuffer=qt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(V){Object.defineProperty(t,V,{enumerable:!1,value:function(){throw new Error(V+" is not supported in userland")}})})})(Qh);var XS=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Ya={exports:{}};typeof Object.create=="function"?Ya.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ya.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var JS=Ya.exports;(function(t){var e=Object.getOwnPropertyDescriptors||function(N){for(var w=Object.keys(N),A={},O=0;O<w.length;O++)A[w[O]]=Object.getOwnPropertyDescriptor(N,w[O]);return A},n=/%[sdj%]/g;t.format=function(E){if(!I(E)){for(var N=[],w=0;w<arguments.length;w++)N.push(s(arguments[w]));return N.join(" ")}for(var w=1,A=arguments,O=A.length,z=String(E).replace(n,function(q){if(q==="%%")return"%";if(w>=O)return q;switch(q){case"%s":return String(A[w++]);case"%d":return Number(A[w++]);case"%j":try{return JSON.stringify(A[w++])}catch{return"[Circular]"}default:return q}}),j=A[w];w<O;j=A[++w])v(j)||!L(j)?z+=" "+j:z+=" "+s(j);return z},t.deprecate=function(E,N){if(typeof Wt<"u"&&Wt.noDeprecation===!0)return E;if(typeof Wt>"u")return function(){return t.deprecate(E,N).apply(this,arguments)};var w=!1;function A(){if(!w){if(Wt.throwDeprecation)throw new Error(N);Wt.traceDeprecation?console.trace(N):console.error(N),w=!0}return E.apply(this,arguments)}return A};var r={},i=/^$/;if(Wt.env.NODE_DEBUG){var o=Wt.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+o+"$","i")}t.debuglog=function(E){if(E=E.toUpperCase(),!r[E])if(i.test(E)){var N=Wt.pid;r[E]=function(){var w=t.format.apply(t,arguments);console.error("%s %d: %s",E,N,w)}}else r[E]=function(){};return r[E]};function s(E,N){var w={seen:[],stylize:l};return arguments.length>=3&&(w.depth=arguments[2]),arguments.length>=4&&(w.colors=arguments[3]),x(N)?w.showHidden=N:N&&t._extend(w,N),D(w.showHidden)&&(w.showHidden=!1),D(w.depth)&&(w.depth=2),D(w.colors)&&(w.colors=!1),D(w.customInspect)&&(w.customInspect=!0),w.colors&&(w.stylize=a),c(w,E,w.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(E,N){var w=s.styles[N];return w?"\x1B["+s.colors[w][0]+"m"+E+"\x1B["+s.colors[w][1]+"m":E}function l(E,N){return E}function d(E){var N={};return E.forEach(function(w,A){N[w]=!0}),N}function c(E,N,w){if(E.customInspect&&N&&et(N.inspect)&&N.inspect!==t.inspect&&!(N.constructor&&N.constructor.prototype===N)){var A=N.inspect(w,E);return I(A)||(A=c(E,A,w)),A}var O=h(E,N);if(O)return O;var z=Object.keys(N),j=d(z);if(E.showHidden&&(z=Object.getOwnPropertyNames(N)),Z(N)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return m(N);if(z.length===0){if(et(N)){var q=N.name?": "+N.name:"";return E.stylize("[Function"+q+"]","special")}if(W(N))return E.stylize(RegExp.prototype.toString.call(N),"regexp");if(Y(N))return E.stylize(Date.prototype.toString.call(N),"date");if(Z(N))return m(N)}var K="",rt=!1,ft=["{","}"];if(P(N)&&(rt=!0,ft=["[","]"]),et(N)){var vt=N.name?": "+N.name:"";K=" [Function"+vt+"]"}if(W(N)&&(K=" "+RegExp.prototype.toString.call(N)),Y(N)&&(K=" "+Date.prototype.toUTCString.call(N)),Z(N)&&(K=" "+m(N)),z.length===0&&(!rt||N.length==0))return ft[0]+K+ft[1];if(w<0)return W(N)?E.stylize(RegExp.prototype.toString.call(N),"regexp"):E.stylize("[Object]","special");E.seen.push(N);var Pt;return rt?Pt=y(E,N,w,j,z):Pt=z.map(function($t){return b(E,N,w,j,$t,rt)}),E.seen.pop(),_(Pt,K,ft)}function h(E,N){if(D(N))return E.stylize("undefined","undefined");if(I(N)){var w="'"+JSON.stringify(N).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(w,"string")}if(M(N))return E.stylize(""+N,"number");if(x(N))return E.stylize(""+N,"boolean");if(v(N))return E.stylize("null","null")}function m(E){return"["+Error.prototype.toString.call(E)+"]"}function y(E,N,w,A,O){for(var z=[],j=0,q=N.length;j<q;++j)ht(N,String(j))?z.push(b(E,N,w,A,String(j),!0)):z.push("");return O.forEach(function(K){K.match(/^\d+$/)||z.push(b(E,N,w,A,K,!0))}),z}function b(E,N,w,A,O,z){var j,q,K;if(K=Object.getOwnPropertyDescriptor(N,O)||{value:N[O]},K.get?K.set?q=E.stylize("[Getter/Setter]","special"):q=E.stylize("[Getter]","special"):K.set&&(q=E.stylize("[Setter]","special")),ht(A,O)||(j="["+O+"]"),q||(E.seen.indexOf(K.value)<0?(v(w)?q=c(E,K.value,null):q=c(E,K.value,w-1),q.indexOf(`
103
+ `)>-1&&(z?q=q.split(`
104
104
  `).map(function(rt){return" "+rt}).join(`
105
- `).slice(2):W=`
106
- `+W.split(`
105
+ `).slice(2):q=`
106
+ `+q.split(`
107
107
  `).map(function(rt){return" "+rt}).join(`
108
- `))):W=S.stylize("[Circular]","special")),D(j)){if(z&&C.match(/^\d+$/))return W;j=JSON.stringify(""+C),j.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.slice(1,-1),j=S.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=S.stylize(j,"string"))}return j+": "+W}function b(S,N,_){var A=S.reduce(function(C,z){return z.indexOf(`
109
- `)>=0,C+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?_[0]+(N===""?"":N+`
110
- `)+" "+S.join(`,
111
- `)+" "+_[1]:_[0]+N+" "+S.join(", ")+" "+_[1]}t.types=rp;function P(S){return Array.isArray(S)}t.isArray=P;function x(S){return typeof S=="boolean"}t.isBoolean=x;function v(S){return S===null}t.isNull=v;function E(S){return S==null}t.isNullOrUndefined=E;function M(S){return typeof S=="number"}t.isNumber=M;function I(S){return typeof S=="string"}t.isString=I;function F(S){return typeof S=="symbol"}t.isSymbol=F;function D(S){return S===void 0}t.isUndefined=D;function q(S){return L(S)&&At(S)==="[object RegExp]"}t.isRegExp=q,t.types.isRegExp=q;function L(S){return typeof S=="object"&&S!==null}t.isObject=L;function Y(S){return L(S)&&At(S)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function Z(S){return L(S)&&(At(S)==="[object Error]"||S instanceof Error)}t.isError=Z,t.types.isNativeError=Z;function et(S){return typeof S=="function"}t.isFunction=et;function st(S){return S===null||typeof S=="boolean"||typeof S=="number"||typeof S=="string"||typeof S=="symbol"||typeof S>"u"}t.isPrimitive=st,t.isBuffer=YE;function At(S){return Object.prototype.toString.call(S)}function dt(S){return S<10?"0"+S.toString(10):S.toString(10)}var It=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function at(){var S=new Date,N=[dt(S.getHours()),dt(S.getMinutes()),dt(S.getSeconds())].join(":");return[S.getDate(),It[S.getMonth()],N].join(" ")}t.log=function(){console.log("%s - %s",at(),t.format.apply(t,arguments))},t.inherits=XE,t._extend=function(S,N){if(!N||!L(N))return S;for(var _=Object.keys(N),A=_.length;A--;)S[_[A]]=N[_[A]];return S};function ht(S,N){return Object.prototype.hasOwnProperty.call(S,N)}var U=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');if(U&&N[U]){var _=N[U];if(typeof _!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(_,U,{value:_,enumerable:!1,writable:!1,configurable:!0}),_}function _(){for(var A,C,z=new Promise(function(K,rt){A=K,C=rt}),j=[],W=0;W<arguments.length;W++)j.push(arguments[W]);j.push(function(K,rt){K?C(K):A(rt)});try{N.apply(this,j)}catch(K){C(K)}return z}return Object.setPrototypeOf(_,Object.getPrototypeOf(N)),U&&Object.defineProperty(_,U,{value:_,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(_,e(N))},t.promisify.custom=U;function H(S,N){if(!S){var _=new Error("Promise was rejected with a falsy value");_.reason=S,S=_}return N(S)}function G(S){if(typeof S!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var _=[],A=0;A<arguments.length;A++)_.push(arguments[A]);var C=_.pop();if(typeof C!="function")throw new TypeError("The last argument must be of type Function");var z=this,j=function(){return C.apply(z,arguments)};S.apply(this,_).then(function(W){qt.nextTick(j.bind(null,null,W))},function(W){qt.nextTick(H.bind(null,W,j))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(S)),Object.defineProperties(N,e(S)),N}t.callbackify=G})(ln);var tc={exports:{}},ec={},Lp;function jp(){if(Lp)return ec;Lp=1;function t(v){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},t(v)}function e(v,E,M){return Object.defineProperty(v,"prototype",{writable:!1}),v}function n(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function r(v,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(E&&E.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),E&&i(v,E)}function i(v,E){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,F){return I.__proto__=F,I},i(v,E)}function o(v){var E=l();return function(){var I=d(v),F;if(E){var D=d(this).constructor;F=Reflect.construct(I,arguments,D)}else F=I.apply(this,arguments);return s(this,F)}}function s(v,E){if(E&&(t(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(v)}function a(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(v){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},d(v)}var c={},h,m;function y(v,E,M){M||(M=Error);function I(D,q,L){return typeof E=="string"?E:E(D,q,L)}var F=function(D){r(L,D);var q=o(L);function L(Y,Z,et){var st;return n(this,L),st=q.call(this,I(Y,Z,et)),st.code=v,st}return e(L)}(M);c[v]=F}function w(v,E){if(Array.isArray(v)){var M=v.length;return v=v.map(function(I){return String(I)}),M>2?"one of ".concat(E," ").concat(v.slice(0,M-1).join(", "),", or ")+v[M-1]:M===2?"one of ".concat(E," ").concat(v[0]," or ").concat(v[1]):"of ".concat(E," ").concat(v[0])}else return"of ".concat(E," ").concat(String(v))}function b(v,E,M){return v.substr(0,E.length)===E}function P(v,E,M){return(M===void 0||M>v.length)&&(M=v.length),v.substring(M-E.length,M)===E}function x(v,E,M){return typeof M!="number"&&(M=0),M+E.length>v.length?!1:v.indexOf(E,M)!==-1}return y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(v,E,M){h===void 0&&(h=pc()),h(typeof v=="string","'name' must be a string");var I;typeof E=="string"&&b(E,"not ")?(I="must not be",E=E.replace(/^not /,"")):I="must be";var F;if(P(v," argument"))F="The ".concat(v," ").concat(I," ").concat(w(E,"type"));else{var D=x(v,".")?"property":"argument";F='The "'.concat(v,'" ').concat(D," ").concat(I," ").concat(w(E,"type"))}return F+=". Received type ".concat(t(M)),F},TypeError),y("ERR_INVALID_ARG_VALUE",function(v,E){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";m===void 0&&(m=ln);var I=m.inspect(E);return I.length>128&&(I="".concat(I.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(M,". Received ").concat(I)},TypeError),y("ERR_INVALID_RETURN_VALUE",function(v,E,M){var I;return M&&M.constructor&&M.constructor.name?I="instance of ".concat(M.constructor.name):I="type ".concat(t(M)),"Expected ".concat(v,' to be returned from the "').concat(E,'"')+" function but got ".concat(I,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var v=arguments.length,E=new Array(v),M=0;M<v;M++)E[M]=arguments[M];h===void 0&&(h=pc()),h(E.length>0,"At least one arg needs to be specified");var I="The ",F=E.length;switch(E=E.map(function(D){return'"'.concat(D,'"')}),F){case 1:I+="".concat(E[0]," argument");break;case 2:I+="".concat(E[0]," and ").concat(E[1]," arguments");break;default:I+=E.slice(0,F-1).join(", "),I+=", and ".concat(E[F-1]," arguments");break}return"".concat(I," must be specified")},TypeError),ec.codes=c,ec}var nc,$p;function JE(){if($p)return nc;$p=1;function t(U,H){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(U);H&&(S=S.filter(function(N){return Object.getOwnPropertyDescriptor(U,N).enumerable})),G.push.apply(G,S)}return G}function e(U){for(var H=1;H<arguments.length;H++){var G=arguments[H]!=null?arguments[H]:{};H%2?t(Object(G),!0).forEach(function(S){n(U,S,G[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(G)):t(Object(G)).forEach(function(S){Object.defineProperty(U,S,Object.getOwnPropertyDescriptor(G,S))})}return U}function n(U,H,G){return H=s(H),H in U?Object.defineProperty(U,H,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[H]=G,U}function r(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")}function i(U,H){for(var G=0;G<H.length;G++){var S=H[G];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(U,s(S.key),S)}}function o(U,H,G){return H&&i(U.prototype,H),Object.defineProperty(U,"prototype",{writable:!1}),U}function s(U){var H=a(U,"string");return v(H)==="symbol"?H:String(H)}function a(U,H){if(v(U)!=="object"||U===null)return U;var G=U[Symbol.toPrimitive];if(G!==void 0){var S=G.call(U,H||"default");if(v(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(U)}function l(U,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(H&&H.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),H&&P(U,H)}function d(U){var H=w();return function(){var S=x(U),N;if(H){var _=x(this).constructor;N=Reflect.construct(S,arguments,_)}else N=S.apply(this,arguments);return c(this,N)}}function c(U,H){if(H&&(v(H)==="object"||typeof H=="function"))return H;if(H!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(U)}function h(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function m(U){var H=typeof Map=="function"?new Map:void 0;return m=function(S){if(S===null||!b(S))return S;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(typeof H<"u"){if(H.has(S))return H.get(S);H.set(S,N)}function N(){return y(S,arguments,x(this).constructor)}return N.prototype=Object.create(S.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),P(N,S)},m(U)}function y(U,H,G){return w()?y=Reflect.construct.bind():y=function(N,_,A){var C=[null];C.push.apply(C,_);var z=Function.bind.apply(N,C),j=new z;return A&&P(j,A.prototype),j},y.apply(null,arguments)}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function P(U,H){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,N){return S.__proto__=N,S},P(U,H)}function x(U){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},x(U)}function v(U){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},v(U)}var E=ln,M=E.inspect,I=jp(),F=I.codes.ERR_INVALID_ARG_TYPE;function D(U,H,G){return(G===void 0||G>U.length)&&(G=U.length),U.substring(G-H.length,G)===H}function q(U,H){if(H=Math.floor(H),U.length==0||H==0)return"";var G=U.length*H;for(H=Math.floor(Math.log(H)/Math.log(2));H;)U+=U,H--;return U+=U.substring(0,G-U.length),U}var L="",Y="",Z="",et="",st={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},At=10;function dt(U){var H=Object.keys(U),G=Object.create(Object.getPrototypeOf(U));return H.forEach(function(S){G[S]=U[S]}),Object.defineProperty(G,"message",{value:U.message}),G}function It(U){return M(U,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function at(U,H,G){var S="",N="",_=0,A="",C=!1,z=It(U),j=z.split(`
112
- `),W=It(H).split(`
113
- `),K=0,rt="";if(G==="strictEqual"&&v(U)==="object"&&v(H)==="object"&&U!==null&&H!==null&&(G="strictEqualObject"),j.length===1&&W.length===1&&j[0]!==W[0]){var ft=j[0].length+W[0].length;if(ft<=At){if((v(U)!=="object"||U===null)&&(v(H)!=="object"||H===null)&&(U!==0||H!==0))return"".concat(st[G],`
108
+ `))):q=E.stylize("[Circular]","special")),D(j)){if(z&&O.match(/^\d+$/))return q;j=JSON.stringify(""+O),j.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.slice(1,-1),j=E.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=E.stylize(j,"string"))}return j+": "+q}function _(E,N,w){var A=E.reduce(function(O,z){return z.indexOf(`
109
+ `)>=0,O+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?w[0]+(N===""?"":N+`
110
+ `)+" "+E.join(`,
111
+ `)+" "+w[1]:w[0]+N+" "+E.join(", ")+" "+w[1]}t.types=Qh;function P(E){return Array.isArray(E)}t.isArray=P;function x(E){return typeof E=="boolean"}t.isBoolean=x;function v(E){return E===null}t.isNull=v;function S(E){return E==null}t.isNullOrUndefined=S;function M(E){return typeof E=="number"}t.isNumber=M;function I(E){return typeof E=="string"}t.isString=I;function F(E){return typeof E=="symbol"}t.isSymbol=F;function D(E){return E===void 0}t.isUndefined=D;function W(E){return L(E)&&At(E)==="[object RegExp]"}t.isRegExp=W,t.types.isRegExp=W;function L(E){return typeof E=="object"&&E!==null}t.isObject=L;function Y(E){return L(E)&&At(E)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function Z(E){return L(E)&&(At(E)==="[object Error]"||E instanceof Error)}t.isError=Z,t.types.isNativeError=Z;function et(E){return typeof E=="function"}t.isFunction=et;function st(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}t.isPrimitive=st,t.isBuffer=XS;function At(E){return Object.prototype.toString.call(E)}function dt(E){return E<10?"0"+E.toString(10):E.toString(10)}var It=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function at(){var E=new Date,N=[dt(E.getHours()),dt(E.getMinutes()),dt(E.getSeconds())].join(":");return[E.getDate(),It[E.getMonth()],N].join(" ")}t.log=function(){console.log("%s - %s",at(),t.format.apply(t,arguments))},t.inherits=JS,t._extend=function(E,N){if(!N||!L(N))return E;for(var w=Object.keys(N),A=w.length;A--;)E[w[A]]=N[w[A]];return E};function ht(E,N){return Object.prototype.hasOwnProperty.call(E,N)}var U=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(N){if(typeof N!="function")throw new TypeError('The "original" argument must be of type Function');if(U&&N[U]){var w=N[U];if(typeof w!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(w,U,{value:w,enumerable:!1,writable:!1,configurable:!0}),w}function w(){for(var A,O,z=new Promise(function(K,rt){A=K,O=rt}),j=[],q=0;q<arguments.length;q++)j.push(arguments[q]);j.push(function(K,rt){K?O(K):A(rt)});try{N.apply(this,j)}catch(K){O(K)}return z}return Object.setPrototypeOf(w,Object.getPrototypeOf(N)),U&&Object.defineProperty(w,U,{value:w,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(w,e(N))},t.promisify.custom=U;function H(E,N){if(!E){var w=new Error("Promise was rejected with a falsy value");w.reason=E,E=w}return N(E)}function G(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');function N(){for(var w=[],A=0;A<arguments.length;A++)w.push(arguments[A]);var O=w.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var z=this,j=function(){return O.apply(z,arguments)};E.apply(this,w).then(function(q){Wt.nextTick(j.bind(null,null,q))},function(q){Wt.nextTick(H.bind(null,q,j))})}return Object.setPrototypeOf(N,Object.getPrototypeOf(E)),Object.defineProperties(N,e(E)),N}t.callbackify=G})(ln);var Xa={exports:{}},Ja={},Ip;function Rp(){if(Ip)return Ja;Ip=1;function t(v){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},t(v)}function e(v,S,M){return Object.defineProperty(v,"prototype",{writable:!1}),v}function n(v,S){if(!(v instanceof S))throw new TypeError("Cannot call a class as a function")}function r(v,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(S&&S.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),S&&i(v,S)}function i(v,S){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,F){return I.__proto__=F,I},i(v,S)}function o(v){var S=l();return function(){var I=d(v),F;if(S){var D=d(this).constructor;F=Reflect.construct(I,arguments,D)}else F=I.apply(this,arguments);return s(this,F)}}function s(v,S){if(S&&(t(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(v)}function a(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(v){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},d(v)}var c={},h,m;function y(v,S,M){M||(M=Error);function I(D,W,L){return typeof S=="string"?S:S(D,W,L)}var F=function(D){r(L,D);var W=o(L);function L(Y,Z,et){var st;return n(this,L),st=W.call(this,I(Y,Z,et)),st.code=v,st}return e(L)}(M);c[v]=F}function b(v,S){if(Array.isArray(v)){var M=v.length;return v=v.map(function(I){return String(I)}),M>2?"one of ".concat(S," ").concat(v.slice(0,M-1).join(", "),", or ")+v[M-1]:M===2?"one of ".concat(S," ").concat(v[0]," or ").concat(v[1]):"of ".concat(S," ").concat(v[0])}else return"of ".concat(S," ").concat(String(v))}function _(v,S,M){return v.substr(0,S.length)===S}function P(v,S,M){return(M===void 0||M>v.length)&&(M=v.length),v.substring(M-S.length,M)===S}function x(v,S,M){return typeof M!="number"&&(M=0),M+S.length>v.length?!1:v.indexOf(S,M)!==-1}return y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(v,S,M){h===void 0&&(h=uc()),h(typeof v=="string","'name' must be a string");var I;typeof S=="string"&&_(S,"not ")?(I="must not be",S=S.replace(/^not /,"")):I="must be";var F;if(P(v," argument"))F="The ".concat(v," ").concat(I," ").concat(b(S,"type"));else{var D=x(v,".")?"property":"argument";F='The "'.concat(v,'" ').concat(D," ").concat(I," ").concat(b(S,"type"))}return F+=". Received type ".concat(t(M)),F},TypeError),y("ERR_INVALID_ARG_VALUE",function(v,S){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";m===void 0&&(m=ln);var I=m.inspect(S);return I.length>128&&(I="".concat(I.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(M,". Received ").concat(I)},TypeError),y("ERR_INVALID_RETURN_VALUE",function(v,S,M){var I;return M&&M.constructor&&M.constructor.name?I="instance of ".concat(M.constructor.name):I="type ".concat(t(M)),"Expected ".concat(v,' to be returned from the "').concat(S,'"')+" function but got ".concat(I,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var v=arguments.length,S=new Array(v),M=0;M<v;M++)S[M]=arguments[M];h===void 0&&(h=uc()),h(S.length>0,"At least one arg needs to be specified");var I="The ",F=S.length;switch(S=S.map(function(D){return'"'.concat(D,'"')}),F){case 1:I+="".concat(S[0]," argument");break;case 2:I+="".concat(S[0]," and ").concat(S[1]," arguments");break;default:I+=S.slice(0,F-1).join(", "),I+=", and ".concat(S[F-1]," arguments");break}return"".concat(I," must be specified")},TypeError),Ja.codes=c,Ja}var Za,Mp;function ZS(){if(Mp)return Za;Mp=1;function t(U,H){var G=Object.keys(U);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(U);H&&(E=E.filter(function(N){return Object.getOwnPropertyDescriptor(U,N).enumerable})),G.push.apply(G,E)}return G}function e(U){for(var H=1;H<arguments.length;H++){var G=arguments[H]!=null?arguments[H]:{};H%2?t(Object(G),!0).forEach(function(E){n(U,E,G[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(G)):t(Object(G)).forEach(function(E){Object.defineProperty(U,E,Object.getOwnPropertyDescriptor(G,E))})}return U}function n(U,H,G){return H=s(H),H in U?Object.defineProperty(U,H,{value:G,enumerable:!0,configurable:!0,writable:!0}):U[H]=G,U}function r(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")}function i(U,H){for(var G=0;G<H.length;G++){var E=H[G];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(U,s(E.key),E)}}function o(U,H,G){return H&&i(U.prototype,H),Object.defineProperty(U,"prototype",{writable:!1}),U}function s(U){var H=a(U,"string");return v(H)==="symbol"?H:String(H)}function a(U,H){if(v(U)!=="object"||U===null)return U;var G=U[Symbol.toPrimitive];if(G!==void 0){var E=G.call(U,H||"default");if(v(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(U)}function l(U,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(H&&H.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),H&&P(U,H)}function d(U){var H=b();return function(){var E=x(U),N;if(H){var w=x(this).constructor;N=Reflect.construct(E,arguments,w)}else N=E.apply(this,arguments);return c(this,N)}}function c(U,H){if(H&&(v(H)==="object"||typeof H=="function"))return H;if(H!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(U)}function h(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function m(U){var H=typeof Map=="function"?new Map:void 0;return m=function(E){if(E===null||!_(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof H<"u"){if(H.has(E))return H.get(E);H.set(E,N)}function N(){return y(E,arguments,x(this).constructor)}return N.prototype=Object.create(E.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),P(N,E)},m(U)}function y(U,H,G){return b()?y=Reflect.construct.bind():y=function(N,w,A){var O=[null];O.push.apply(O,w);var z=Function.bind.apply(N,O),j=new z;return A&&P(j,A.prototype),j},y.apply(null,arguments)}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function P(U,H){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,N){return E.__proto__=N,E},P(U,H)}function x(U){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},x(U)}function v(U){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},v(U)}var S=ln,M=S.inspect,I=Rp(),F=I.codes.ERR_INVALID_ARG_TYPE;function D(U,H,G){return(G===void 0||G>U.length)&&(G=U.length),U.substring(G-H.length,G)===H}function W(U,H){if(H=Math.floor(H),U.length==0||H==0)return"";var G=U.length*H;for(H=Math.floor(Math.log(H)/Math.log(2));H;)U+=U,H--;return U+=U.substring(0,G-U.length),U}var L="",Y="",Z="",et="",st={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},At=10;function dt(U){var H=Object.keys(U),G=Object.create(Object.getPrototypeOf(U));return H.forEach(function(E){G[E]=U[E]}),Object.defineProperty(G,"message",{value:U.message}),G}function It(U){return M(U,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function at(U,H,G){var E="",N="",w=0,A="",O=!1,z=It(U),j=z.split(`
112
+ `),q=It(H).split(`
113
+ `),K=0,rt="";if(G==="strictEqual"&&v(U)==="object"&&v(H)==="object"&&U!==null&&H!==null&&(G="strictEqualObject"),j.length===1&&q.length===1&&j[0]!==q[0]){var ft=j[0].length+q[0].length;if(ft<=At){if((v(U)!=="object"||U===null)&&(v(H)!=="object"||H===null)&&(U!==0||H!==0))return"".concat(st[G],`
114
114
 
115
- `)+"".concat(j[0]," !== ").concat(W[0],`
116
- `)}else if(G!=="strictEqualObject"){var vt=qt.stderr&&qt.stderr.isTTY?qt.stderr.columns:80;if(ft<vt){for(;j[0][K]===W[0][K];)K++;K>2&&(rt=`
117
- `.concat(q(" ",K),"^"),K=0)}}}for(var Pt=j[j.length-1],jt=W[W.length-1];Pt===jt&&(K++<2?A=`
118
- `.concat(Pt).concat(A):S=Pt,j.pop(),W.pop(),!(j.length===0||W.length===0));)Pt=j[j.length-1],jt=W[W.length-1];var Yt=Math.max(j.length,W.length);if(Yt===0){var Jt=z.split(`
115
+ `)+"".concat(j[0]," !== ").concat(q[0],`
116
+ `)}else if(G!=="strictEqualObject"){var vt=Wt.stderr&&Wt.stderr.isTTY?Wt.stderr.columns:80;if(ft<vt){for(;j[0][K]===q[0][K];)K++;K>2&&(rt=`
117
+ `.concat(W(" ",K),"^"),K=0)}}}for(var Pt=j[j.length-1],$t=q[q.length-1];Pt===$t&&(K++<2?A=`
118
+ `.concat(Pt).concat(A):E=Pt,j.pop(),q.pop(),!(j.length===0||q.length===0));)Pt=j[j.length-1],$t=q[q.length-1];var Yt=Math.max(j.length,q.length);if(Yt===0){var Jt=z.split(`
119
119
  `);if(Jt.length>30)for(Jt[26]="".concat(L,"...").concat(et);Jt.length>27;)Jt.pop();return"".concat(st.notIdentical,`
120
120
 
121
121
  `).concat(Jt.join(`
122
122
  `),`
123
123
  `)}K>3&&(A=`
124
- `.concat(L,"...").concat(et).concat(A),C=!0),S!==""&&(A=`
125
- `.concat(S).concat(A),S="");var Wt=0,V=st[G]+`
126
- `.concat(Y,"+ actual").concat(et," ").concat(Z,"- expected").concat(et),he=" ".concat(L,"...").concat(et," Lines skipped");for(K=0;K<Yt;K++){var J=K-_;if(j.length<K+1)J>1&&K>2&&(J>4?(N+=`
127
- `.concat(L,"...").concat(et),C=!0):J>3&&(N+=`
128
- `.concat(W[K-2]),Wt++),N+=`
129
- `.concat(W[K-1]),Wt++),_=K,S+=`
130
- `.concat(Z,"-").concat(et," ").concat(W[K]),Wt++;else if(W.length<K+1)J>1&&K>2&&(J>4?(N+=`
131
- `.concat(L,"...").concat(et),C=!0):J>3&&(N+=`
132
- `.concat(j[K-2]),Wt++),N+=`
133
- `.concat(j[K-1]),Wt++),_=K,N+=`
134
- `.concat(Y,"+").concat(et," ").concat(j[K]),Wt++;else{var gt=W[K],Et=j[K],k=Et!==gt&&(!D(Et,",")||Et.slice(0,-1)!==gt);k&&D(gt,",")&&gt.slice(0,-1)===Et&&(k=!1,Et+=","),k?(J>1&&K>2&&(J>4?(N+=`
135
- `.concat(L,"...").concat(et),C=!0):J>3&&(N+=`
136
- `.concat(j[K-2]),Wt++),N+=`
137
- `.concat(j[K-1]),Wt++),_=K,N+=`
138
- `.concat(Y,"+").concat(et," ").concat(Et),S+=`
139
- `.concat(Z,"-").concat(et," ").concat(gt),Wt+=2):(N+=S,S="",(J===1||K===0)&&(N+=`
140
- `.concat(Et),Wt++))}if(Wt>20&&K<Yt-2)return"".concat(V).concat(he,`
124
+ `.concat(L,"...").concat(et).concat(A),O=!0),E!==""&&(A=`
125
+ `.concat(E).concat(A),E="");var qt=0,V=st[G]+`
126
+ `.concat(Y,"+ actual").concat(et," ").concat(Z,"- expected").concat(et),he=" ".concat(L,"...").concat(et," Lines skipped");for(K=0;K<Yt;K++){var J=K-w;if(j.length<K+1)J>1&&K>2&&(J>4?(N+=`
127
+ `.concat(L,"...").concat(et),O=!0):J>3&&(N+=`
128
+ `.concat(q[K-2]),qt++),N+=`
129
+ `.concat(q[K-1]),qt++),w=K,E+=`
130
+ `.concat(Z,"-").concat(et," ").concat(q[K]),qt++;else if(q.length<K+1)J>1&&K>2&&(J>4?(N+=`
131
+ `.concat(L,"...").concat(et),O=!0):J>3&&(N+=`
132
+ `.concat(j[K-2]),qt++),N+=`
133
+ `.concat(j[K-1]),qt++),w=K,N+=`
134
+ `.concat(Y,"+").concat(et," ").concat(j[K]),qt++;else{var gt=q[K],St=j[K],k=St!==gt&&(!D(St,",")||St.slice(0,-1)!==gt);k&&D(gt,",")&&gt.slice(0,-1)===St&&(k=!1,St+=","),k?(J>1&&K>2&&(J>4?(N+=`
135
+ `.concat(L,"...").concat(et),O=!0):J>3&&(N+=`
136
+ `.concat(j[K-2]),qt++),N+=`
137
+ `.concat(j[K-1]),qt++),w=K,N+=`
138
+ `.concat(Y,"+").concat(et," ").concat(St),E+=`
139
+ `.concat(Z,"-").concat(et," ").concat(gt),qt+=2):(N+=E,E="",(J===1||K===0)&&(N+=`
140
+ `.concat(St),qt++))}if(qt>20&&K<Yt-2)return"".concat(V).concat(he,`
141
141
  `).concat(N,`
142
- `).concat(L,"...").concat(et).concat(S,`
143
- `)+"".concat(L,"...").concat(et)}return"".concat(V).concat(C?he:"",`
144
- `).concat(N).concat(S).concat(A).concat(rt)}var ht=function(U,H){l(S,U);var G=d(S);function S(N){var _;if(r(this,S),v(N)!=="object"||N===null)throw new F("options","Object",N);var A=N.message,C=N.operator,z=N.stackStartFn,j=N.actual,W=N.expected,K=Error.stackTraceLimit;if(Error.stackTraceLimit=0,A!=null)_=G.call(this,String(A));else if(qt.stderr&&qt.stderr.isTTY&&(qt.stderr&&qt.stderr.getColorDepth&&qt.stderr.getColorDepth()!==1?(L="\x1B[34m",Y="\x1B[32m",et="\x1B[39m",Z="\x1B[31m"):(L="",Y="",et="",Z="")),v(j)==="object"&&j!==null&&v(W)==="object"&&W!==null&&"stack"in j&&j instanceof Error&&"stack"in W&&W instanceof Error&&(j=dt(j),W=dt(W)),C==="deepStrictEqual"||C==="strictEqual")_=G.call(this,at(j,W,C));else if(C==="notDeepStrictEqual"||C==="notStrictEqual"){var rt=st[C],ft=It(j).split(`
145
- `);if(C==="notStrictEqual"&&v(j)==="object"&&j!==null&&(rt=st.notStrictEqualObject),ft.length>30)for(ft[26]="".concat(L,"...").concat(et);ft.length>27;)ft.pop();ft.length===1?_=G.call(this,"".concat(rt," ").concat(ft[0])):_=G.call(this,"".concat(rt,`
142
+ `).concat(L,"...").concat(et).concat(E,`
143
+ `)+"".concat(L,"...").concat(et)}return"".concat(V).concat(O?he:"",`
144
+ `).concat(N).concat(E).concat(A).concat(rt)}var ht=function(U,H){l(E,U);var G=d(E);function E(N){var w;if(r(this,E),v(N)!=="object"||N===null)throw new F("options","Object",N);var A=N.message,O=N.operator,z=N.stackStartFn,j=N.actual,q=N.expected,K=Error.stackTraceLimit;if(Error.stackTraceLimit=0,A!=null)w=G.call(this,String(A));else if(Wt.stderr&&Wt.stderr.isTTY&&(Wt.stderr&&Wt.stderr.getColorDepth&&Wt.stderr.getColorDepth()!==1?(L="\x1B[34m",Y="\x1B[32m",et="\x1B[39m",Z="\x1B[31m"):(L="",Y="",et="",Z="")),v(j)==="object"&&j!==null&&v(q)==="object"&&q!==null&&"stack"in j&&j instanceof Error&&"stack"in q&&q instanceof Error&&(j=dt(j),q=dt(q)),O==="deepStrictEqual"||O==="strictEqual")w=G.call(this,at(j,q,O));else if(O==="notDeepStrictEqual"||O==="notStrictEqual"){var rt=st[O],ft=It(j).split(`
145
+ `);if(O==="notStrictEqual"&&v(j)==="object"&&j!==null&&(rt=st.notStrictEqualObject),ft.length>30)for(ft[26]="".concat(L,"...").concat(et);ft.length>27;)ft.pop();ft.length===1?w=G.call(this,"".concat(rt," ").concat(ft[0])):w=G.call(this,"".concat(rt,`
146
146
 
147
147
  `).concat(ft.join(`
148
148
  `),`
149
- `))}else{var vt=It(j),Pt="",jt=st[C];C==="notDeepEqual"||C==="notEqual"?(vt="".concat(st[C],`
149
+ `))}else{var vt=It(j),Pt="",$t=st[O];O==="notDeepEqual"||O==="notEqual"?(vt="".concat(st[O],`
150
150
 
151
- `).concat(vt),vt.length>1024&&(vt="".concat(vt.slice(0,1021),"..."))):(Pt="".concat(It(W)),vt.length>512&&(vt="".concat(vt.slice(0,509),"...")),Pt.length>512&&(Pt="".concat(Pt.slice(0,509),"...")),C==="deepEqual"||C==="equal"?vt="".concat(jt,`
151
+ `).concat(vt),vt.length>1024&&(vt="".concat(vt.slice(0,1021),"..."))):(Pt="".concat(It(q)),vt.length>512&&(vt="".concat(vt.slice(0,509),"...")),Pt.length>512&&(Pt="".concat(Pt.slice(0,509),"...")),O==="deepEqual"||O==="equal"?vt="".concat($t,`
152
152
 
153
153
  `).concat(vt,`
154
154
 
155
155
  should equal
156
156
 
157
- `):Pt=" ".concat(C," ").concat(Pt)),_=G.call(this,"".concat(vt).concat(Pt))}return Error.stackTraceLimit=K,_.generatedMessage=!A,Object.defineProperty(h(_),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),_.code="ERR_ASSERTION",_.actual=j,_.expected=W,_.operator=C,Error.captureStackTrace&&Error.captureStackTrace(h(_),z),_.stack,_.name="AssertionError",c(_)}return o(S,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:H,value:function(_,A){return M(this,e(e({},A),{},{customInspect:!1,depth:0}))}}]),S}(m(Error),M.custom);return nc=ht,nc}var Vp=Object.prototype.toString,Up=function(e){var n=Vp.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Vp.call(e.callee)==="[object Function]"),r},rc,zp;function ZE(){if(zp)return rc;zp=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Up,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var y=m.constructor;return y&&y.prototype===m},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!d["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),h=function(m){if(typeof window>"u"||!c)return l(m);try{return l(m)}catch{return!1}};t=function(y){var w=y!==null&&typeof y=="object",b=n.call(y)==="[object Function]",P=r(y),x=w&&n.call(y)==="[object String]",v=[];if(!w&&!b&&!P)throw new TypeError("Object.keys called on a non-object");var E=s&&b;if(x&&y.length>0&&!e.call(y,0))for(var M=0;M<y.length;++M)v.push(String(M));if(P&&y.length>0)for(var I=0;I<y.length;++I)v.push(String(I));else for(var F in y)!(E&&F==="prototype")&&e.call(y,F)&&v.push(String(F));if(o)for(var D=h(y),q=0;q<a.length;++q)!(D&&a[q]==="constructor")&&e.call(y,a[q])&&v.push(a[q]);return v}}return rc=t,rc}var QE=Array.prototype.slice,tS=Up,qp=Object.keys,Wi=qp?function(e){return qp(e)}:ZE(),Wp=Object.keys;Wi.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return tS(r)?Wp(QE.call(r)):Wp(r)})}else Object.keys=Wi;return Object.keys||Wi};var Hp=Wi,eS=Hp,Gp=Sa(),Kp=ja,Hi=ip,nS=Kp("Array.prototype.push"),Yp=Kp("Object.prototype.propertyIsEnumerable"),rS=Gp?Hi.getOwnPropertySymbols:null,iS=function(e,n){if(e==null)throw new TypeError("target must be an object");var r=Hi(e);if(arguments.length===1)return r;for(var i=1;i<arguments.length;++i){var o=Hi(arguments[i]),s=eS(o),a=Gp&&(Hi.getOwnPropertySymbols||rS);if(a)for(var l=a(o),d=0;d<l.length;++d){var c=l[d];Yp(o,c)&&nS(s,c)}for(var h=0;h<s.length;++h){var m=s[h];if(Yp(o,m)){var y=o[m];r[m]=y}}}return r},ic=iS,oS=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},r=0;r<e.length;++r)n[e[r]]=e[r];var i=Object.assign({},n),o="";for(var s in i)o+=s;return t!==o},sS=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},aS=function(){return!Object.assign||oS()||sS()?ic:Object.assign},Xp=function(t){return t!==t},Jp=function(e,n){return e===0&&n===0?1/e===1/n:!!(e===n||Xp(e)&&Xp(n))},cS=Jp,oc=function(){return typeof Object.is=="function"?Object.is:cS},Zp=La,Qp=Vi,lS=Qp(Zp("String.prototype.indexOf")),uS=function(e,n){var r=Zp(e,!!n);return typeof r=="function"&&lS(e,".prototype.")>-1?Qp(r):r},sc,tm;function Gi(){if(tm)return sc;tm=1;var t=Hp,e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,r=Array.prototype.concat,i=kp,o=function(d){return typeof d=="function"&&n.call(d)==="[object Function]"},s=Op(),a=function(d,c,h,m){if(c in d){if(m===!0){if(d[c]===h)return}else if(!o(m)||!m())return}s?i(d,c,h,!0):i(d,c,h)},l=function(d,c){var h=arguments.length>2?arguments[2]:{},m=t(c);e&&(m=r.call(m,Object.getOwnPropertySymbols(c)));for(var y=0;y<m.length;y+=1)a(d,m[y],c[m[y]],h[m[y]])};return l.supportsDescriptors=!!s,sc=l,sc}var ac,em;function fS(){if(em)return ac;em=1;var t=oc,e=Gi();return ac=function(){var r=t();return e(Object,{is:r},{is:function(){return Object.is!==r}}),r},ac}var cc,nm;function dS(){if(nm)return cc;nm=1;var t=Gi(),e=Vi,n=Jp,r=oc,i=fS(),o=e(r(),Object);return t(o,{getPolyfill:r,implementation:n,shim:i}),cc=o,cc}var lc,rm;function im(){return rm||(rm=1,lc=function(e){return e!==e}),lc}var uc,om;function sm(){if(om)return uc;om=1;var t=im();return uc=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:t},uc}var fc,am;function hS(){if(am)return fc;am=1;var t=Gi(),e=sm();return fc=function(){var r=e();return t(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r},fc}var dc,cm;function pS(){if(cm)return dc;cm=1;var t=Vi,e=Gi(),n=im(),r=sm(),i=hS(),o=t(r(),Number);return e(o,{getPolyfill:r,implementation:n,shim:i}),dc=o,dc}var hc,lm;function mS(){if(lm)return hc;lm=1;function t(k,R){return o(k)||i(k,R)||n(k,R)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
158
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(k,R){if(k){if(typeof k=="string")return r(k,R);var X=Object.prototype.toString.call(k).slice(8,-1);if(X==="Object"&&k.constructor&&(X=k.constructor.name),X==="Map"||X==="Set")return Array.from(k);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return r(k,R)}}function r(k,R){(R==null||R>k.length)&&(R=k.length);for(var X=0,tt=new Array(R);X<R;X++)tt[X]=k[X];return tt}function i(k,R){var X=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(X!=null){var tt,Q,ct,p,u=[],f=!0,g=!1;try{if(ct=(X=X.call(k)).next,R!==0)for(;!(f=(tt=ct.call(X)).done)&&(u.push(tt.value),u.length!==R);f=!0);}catch(T){g=!0,Q=T}finally{try{if(!f&&X.return!=null&&(p=X.return(),Object(p)!==p))return}finally{if(g)throw Q}}return u}}function o(k){if(Array.isArray(k))return k}function s(k){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},s(k)}var a=/a/g.flags!==void 0,l=function(R){var X=[];return R.forEach(function(tt){return X.push(tt)}),X},d=function(R){var X=[];return R.forEach(function(tt,Q){return X.push([Q,tt])}),X},c=Object.is?Object.is:dS(),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:pS();function y(k){return k.call.bind(k)}var w=y(Object.prototype.hasOwnProperty),b=y(Object.prototype.propertyIsEnumerable),P=y(Object.prototype.toString),x=ln.types,v=x.isAnyArrayBuffer,E=x.isArrayBufferView,M=x.isDate,I=x.isMap,F=x.isRegExp,D=x.isSet,q=x.isNativeError,L=x.isBoxedPrimitive,Y=x.isNumberObject,Z=x.isStringObject,et=x.isBooleanObject,st=x.isBigIntObject,At=x.isSymbolObject,dt=x.isFloat32Array,It=x.isFloat64Array;function at(k){if(k.length===0||k.length>10)return!0;for(var R=0;R<k.length;R++){var X=k.charCodeAt(R);if(X<48||X>57)return!0}return k.length===10&&k>=Math.pow(2,32)}function ht(k){return Object.keys(k).filter(at).concat(h(k).filter(Object.prototype.propertyIsEnumerable.bind(k)))}/*!
157
+ `):Pt=" ".concat(O," ").concat(Pt)),w=G.call(this,"".concat(vt).concat(Pt))}return Error.stackTraceLimit=K,w.generatedMessage=!A,Object.defineProperty(h(w),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),w.code="ERR_ASSERTION",w.actual=j,w.expected=q,w.operator=O,Error.captureStackTrace&&Error.captureStackTrace(h(w),z),w.stack,w.name="AssertionError",c(w)}return o(E,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:H,value:function(w,A){return M(this,e(e({},A),{},{customInspect:!1,depth:0}))}}]),E}(m(Error),M.custom);return Za=ht,Za}var Np=Object.prototype.toString,Bp=function(e){var n=Np.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Np.call(e.callee)==="[object Function]"),r},Qa,Dp;function QS(){if(Dp)return Qa;Dp=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Bp,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var y=m.constructor;return y&&y.prototype===m},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!d["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),h=function(m){if(typeof window>"u"||!c)return l(m);try{return l(m)}catch{return!1}};t=function(y){var b=y!==null&&typeof y=="object",_=n.call(y)==="[object Function]",P=r(y),x=b&&n.call(y)==="[object String]",v=[];if(!b&&!_&&!P)throw new TypeError("Object.keys called on a non-object");var S=s&&_;if(x&&y.length>0&&!e.call(y,0))for(var M=0;M<y.length;++M)v.push(String(M));if(P&&y.length>0)for(var I=0;I<y.length;++I)v.push(String(I));else for(var F in y)!(S&&F==="prototype")&&e.call(y,F)&&v.push(String(F));if(o)for(var D=h(y),W=0;W<a.length;++W)!(D&&a[W]==="constructor")&&e.call(y,a[W])&&v.push(a[W]);return v}}return Qa=t,Qa}var tE=Array.prototype.slice,eE=Bp,Fp=Object.keys,qi=Fp?function(e){return Fp(e)}:QS(),Lp=Object.keys;qi.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return eE(r)?Lp(tE.call(r)):Lp(r)})}else Object.keys=qi;return Object.keys||qi};var jp=qi,nE=jp,$p=Ea(),Vp=Ba,Hi=tp,rE=Vp("Array.prototype.push"),Up=Vp("Object.prototype.propertyIsEnumerable"),iE=$p?Hi.getOwnPropertySymbols:null,oE=function(e,n){if(e==null)throw new TypeError("target must be an object");var r=Hi(e);if(arguments.length===1)return r;for(var i=1;i<arguments.length;++i){var o=Hi(arguments[i]),s=nE(o),a=$p&&(Hi.getOwnPropertySymbols||iE);if(a)for(var l=a(o),d=0;d<l.length;++d){var c=l[d];Up(o,c)&&rE(s,c)}for(var h=0;h<s.length;++h){var m=s[h];if(Up(o,m)){var y=o[m];r[m]=y}}}return r},tc=oE,sE=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},r=0;r<e.length;++r)n[e[r]]=e[r];var i=Object.assign({},n),o="";for(var s in i)o+=s;return t!==o},aE=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},cE=function(){return!Object.assign||sE()||aE()?tc:Object.assign},zp=function(t){return t!==t},Wp=function(e,n){return e===0&&n===0?1/e===1/n:!!(e===n||zp(e)&&zp(n))},lE=Wp,ec=function(){return typeof Object.is=="function"?Object.is:lE},qp=Na,Hp=Vi,uE=Hp(qp("String.prototype.indexOf")),fE=function(e,n){var r=qp(e,!!n);return typeof r=="function"&&uE(e,".prototype.")>-1?Hp(r):r},nc,Gp;function Gi(){if(Gp)return nc;Gp=1;var t=jp,e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,r=Array.prototype.concat,i=_p,o=function(d){return typeof d=="function"&&n.call(d)==="[object Function]"},s=Sp(),a=function(d,c,h,m){if(c in d){if(m===!0){if(d[c]===h)return}else if(!o(m)||!m())return}s?i(d,c,h,!0):i(d,c,h)},l=function(d,c){var h=arguments.length>2?arguments[2]:{},m=t(c);e&&(m=r.call(m,Object.getOwnPropertySymbols(c)));for(var y=0;y<m.length;y+=1)a(d,m[y],c[m[y]],h[m[y]])};return l.supportsDescriptors=!!s,nc=l,nc}var rc,Kp;function dE(){if(Kp)return rc;Kp=1;var t=ec,e=Gi();return rc=function(){var r=t();return e(Object,{is:r},{is:function(){return Object.is!==r}}),r},rc}var ic,Yp;function hE(){if(Yp)return ic;Yp=1;var t=Gi(),e=Vi,n=Wp,r=ec,i=dE(),o=e(r(),Object);return t(o,{getPolyfill:r,implementation:n,shim:i}),ic=o,ic}var oc,Xp;function Jp(){return Xp||(Xp=1,oc=function(e){return e!==e}),oc}var sc,Zp;function Qp(){if(Zp)return sc;Zp=1;var t=Jp();return sc=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:t},sc}var ac,tm;function pE(){if(tm)return ac;tm=1;var t=Gi(),e=Qp();return ac=function(){var r=e();return t(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r},ac}var cc,em;function mE(){if(em)return cc;em=1;var t=Vi,e=Gi(),n=Jp(),r=Qp(),i=pE(),o=t(r(),Number);return e(o,{getPolyfill:r,implementation:n,shim:i}),cc=o,cc}var lc,nm;function yE(){if(nm)return lc;nm=1;function t(k,R){return o(k)||i(k,R)||n(k,R)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(k,R){if(k){if(typeof k=="string")return r(k,R);var X=Object.prototype.toString.call(k).slice(8,-1);if(X==="Object"&&k.constructor&&(X=k.constructor.name),X==="Map"||X==="Set")return Array.from(k);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return r(k,R)}}function r(k,R){(R==null||R>k.length)&&(R=k.length);for(var X=0,tt=new Array(R);X<R;X++)tt[X]=k[X];return tt}function i(k,R){var X=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(X!=null){var tt,Q,ct,p,u=[],f=!0,g=!1;try{if(ct=(X=X.call(k)).next,R!==0)for(;!(f=(tt=ct.call(X)).done)&&(u.push(tt.value),u.length!==R);f=!0);}catch(T){g=!0,Q=T}finally{try{if(!f&&X.return!=null&&(p=X.return(),Object(p)!==p))return}finally{if(g)throw Q}}return u}}function o(k){if(Array.isArray(k))return k}function s(k){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},s(k)}var a=/a/g.flags!==void 0,l=function(R){var X=[];return R.forEach(function(tt){return X.push(tt)}),X},d=function(R){var X=[];return R.forEach(function(tt,Q){return X.push([Q,tt])}),X},c=Object.is?Object.is:hE(),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:mE();function y(k){return k.call.bind(k)}var b=y(Object.prototype.hasOwnProperty),_=y(Object.prototype.propertyIsEnumerable),P=y(Object.prototype.toString),x=ln.types,v=x.isAnyArrayBuffer,S=x.isArrayBufferView,M=x.isDate,I=x.isMap,F=x.isRegExp,D=x.isSet,W=x.isNativeError,L=x.isBoxedPrimitive,Y=x.isNumberObject,Z=x.isStringObject,et=x.isBooleanObject,st=x.isBigIntObject,At=x.isSymbolObject,dt=x.isFloat32Array,It=x.isFloat64Array;function at(k){if(k.length===0||k.length>10)return!0;for(var R=0;R<k.length;R++){var X=k.charCodeAt(R);if(X<48||X>57)return!0}return k.length===10&&k>=Math.pow(2,32)}function ht(k){return Object.keys(k).filter(at).concat(h(k).filter(Object.prototype.propertyIsEnumerable.bind(k)))}/*!
159
159
  * The buffer module from node.js, for the browser.
160
160
  *
161
161
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
162
162
  * @license MIT
163
- */function U(k,R){if(k===R)return 0;for(var X=k.length,tt=R.length,Q=0,ct=Math.min(X,tt);Q<ct;++Q)if(k[Q]!==R[Q]){X=k[Q],tt=R[Q];break}return X<tt?-1:tt<X?1:0}var H=!0,G=!1,S=0,N=1,_=2,A=3;function C(k,R){return a?k.source===R.source&&k.flags===R.flags:RegExp.prototype.toString.call(k)===RegExp.prototype.toString.call(R)}function z(k,R){if(k.byteLength!==R.byteLength)return!1;for(var X=0;X<k.byteLength;X++)if(k[X]!==R[X])return!1;return!0}function j(k,R){return k.byteLength!==R.byteLength?!1:U(new Uint8Array(k.buffer,k.byteOffset,k.byteLength),new Uint8Array(R.buffer,R.byteOffset,R.byteLength))===0}function W(k,R){return k.byteLength===R.byteLength&&U(new Uint8Array(k),new Uint8Array(R))===0}function K(k,R){return Y(k)?Y(R)&&c(Number.prototype.valueOf.call(k),Number.prototype.valueOf.call(R)):Z(k)?Z(R)&&String.prototype.valueOf.call(k)===String.prototype.valueOf.call(R):et(k)?et(R)&&Boolean.prototype.valueOf.call(k)===Boolean.prototype.valueOf.call(R):st(k)?st(R)&&BigInt.prototype.valueOf.call(k)===BigInt.prototype.valueOf.call(R):At(R)&&Symbol.prototype.valueOf.call(k)===Symbol.prototype.valueOf.call(R)}function rt(k,R,X,tt){if(k===R)return k!==0?!0:X?c(k,R):!0;if(X){if(s(k)!=="object")return typeof k=="number"&&m(k)&&m(R);if(s(R)!=="object"||k===null||R===null||Object.getPrototypeOf(k)!==Object.getPrototypeOf(R))return!1}else{if(k===null||s(k)!=="object")return R===null||s(R)!=="object"?k==R:!1;if(R===null||s(R)!=="object")return!1}var Q=P(k),ct=P(R);if(Q!==ct)return!1;if(Array.isArray(k)){if(k.length!==R.length)return!1;var p=ht(k),u=ht(R);return p.length!==u.length?!1:vt(k,R,X,tt,N,p)}if(Q==="[object Object]"&&(!I(k)&&I(R)||!D(k)&&D(R)))return!1;if(M(k)){if(!M(R)||Date.prototype.getTime.call(k)!==Date.prototype.getTime.call(R))return!1}else if(F(k)){if(!F(R)||!C(k,R))return!1}else if(q(k)||k instanceof Error){if(k.message!==R.message||k.name!==R.name)return!1}else if(E(k)){if(!X&&(dt(k)||It(k))){if(!z(k,R))return!1}else if(!j(k,R))return!1;var f=ht(k),g=ht(R);return f.length!==g.length?!1:vt(k,R,X,tt,S,f)}else{if(D(k))return!D(R)||k.size!==R.size?!1:vt(k,R,X,tt,_);if(I(k))return!I(R)||k.size!==R.size?!1:vt(k,R,X,tt,A);if(v(k)){if(!W(k,R))return!1}else if(L(k)&&!K(k,R))return!1}return vt(k,R,X,tt,S)}function ft(k,R){return R.filter(function(X){return b(k,X)})}function vt(k,R,X,tt,Q,ct){if(arguments.length===5){ct=Object.keys(k);var p=Object.keys(R);if(ct.length!==p.length)return!1}for(var u=0;u<ct.length;u++)if(!w(R,ct[u]))return!1;if(X&&arguments.length===5){var f=h(k);if(f.length!==0){var g=0;for(u=0;u<f.length;u++){var T=f[u];if(b(k,T)){if(!b(R,T))return!1;ct.push(T),g++}else if(b(R,T))return!1}var B=h(R);if(f.length!==B.length&&ft(R,B).length!==g)return!1}else{var $=h(R);if($.length!==0&&ft(R,$).length!==0)return!1}}if(ct.length===0&&(Q===S||Q===N&&k.length===0||k.size===0))return!0;if(tt===void 0)tt={val1:new Map,val2:new Map,position:0};else{var lt=tt.val1.get(k);if(lt!==void 0){var wt=tt.val2.get(R);if(wt!==void 0)return lt===wt}tt.position++}tt.val1.set(k,tt.position),tt.val2.set(R,tt.position);var _t=J(k,R,X,ct,tt,Q);return tt.val1.delete(k),tt.val2.delete(R),_t}function Pt(k,R,X,tt){for(var Q=l(k),ct=0;ct<Q.length;ct++){var p=Q[ct];if(rt(R,p,X,tt))return k.delete(p),!0}return!1}function jt(k){switch(s(k)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":k=+k;case"number":if(m(k))return!1}return!0}function Yt(k,R,X){var tt=jt(X);return tt??(R.has(tt)&&!k.has(tt))}function Jt(k,R,X,tt,Q){var ct=jt(X);if(ct!=null)return ct;var p=R.get(ct);return p===void 0&&!R.has(ct)||!rt(tt,p,!1,Q)?!1:!k.has(ct)&&rt(tt,p,!1,Q)}function Wt(k,R,X,tt){for(var Q=null,ct=l(k),p=0;p<ct.length;p++){var u=ct[p];if(s(u)==="object"&&u!==null)Q===null&&(Q=new Set),Q.add(u);else if(!R.has(u)){if(X||!Yt(k,R,u))return!1;Q===null&&(Q=new Set),Q.add(u)}}if(Q!==null){for(var f=l(R),g=0;g<f.length;g++){var T=f[g];if(s(T)==="object"&&T!==null){if(!Pt(Q,T,X,tt))return!1}else if(!X&&!k.has(T)&&!Pt(Q,T,X,tt))return!1}return Q.size===0}return!0}function V(k,R,X,tt,Q,ct){for(var p=l(k),u=0;u<p.length;u++){var f=p[u];if(rt(X,f,Q,ct)&&rt(tt,R.get(f),Q,ct))return k.delete(f),!0}return!1}function he(k,R,X,tt){for(var Q=null,ct=d(k),p=0;p<ct.length;p++){var u=t(ct[p],2),f=u[0],g=u[1];if(s(f)==="object"&&f!==null)Q===null&&(Q=new Set),Q.add(f);else{var T=R.get(f);if(T===void 0&&!R.has(f)||!rt(g,T,X,tt)){if(X||!Jt(k,R,f,g,tt))return!1;Q===null&&(Q=new Set),Q.add(f)}}}if(Q!==null){for(var B=d(R),$=0;$<B.length;$++){var lt=t(B[$],2),wt=lt[0],_t=lt[1];if(s(wt)==="object"&&wt!==null){if(!V(Q,k,wt,_t,X,tt))return!1}else if(!X&&(!k.has(wt)||!rt(k.get(wt),_t,!1,tt))&&!V(Q,k,wt,_t,!1,tt))return!1}return Q.size===0}return!0}function J(k,R,X,tt,Q,ct){var p=0;if(ct===_){if(!Wt(k,R,X,Q))return!1}else if(ct===A){if(!he(k,R,X,Q))return!1}else if(ct===N)for(;p<k.length;p++)if(w(k,p)){if(!w(R,p)||!rt(k[p],R[p],X,Q))return!1}else{if(w(R,p))return!1;for(var u=Object.keys(k);p<u.length;p++){var f=u[p];if(!w(R,f)||!rt(k[f],R[f],X,Q))return!1}return u.length===Object.keys(R).length}for(p=0;p<tt.length;p++){var g=tt[p];if(!rt(k[g],R[g],X,Q))return!1}return!0}function gt(k,R){return rt(k,R,G)}function Et(k,R){return rt(k,R,H)}return hc={isDeepEqual:gt,isDeepStrictEqual:Et},hc}var um;function pc(){if(um)return tc.exports;um=1;function t(_){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(_)}function e(_,A,C){return Object.defineProperty(_,"prototype",{writable:!1}),_}function n(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}var r=jp(),i=r.codes,o=i.ERR_AMBIGUOUS_ARGUMENT,s=i.ERR_INVALID_ARG_TYPE,a=i.ERR_INVALID_ARG_VALUE,l=i.ERR_INVALID_RETURN_VALUE,d=i.ERR_MISSING_ARGS,c=JE(),h=ln,m=h.inspect,y=ln.types,w=y.isPromise,b=y.isRegExp,P=aS(),x=oc(),v=uS("RegExp.prototype.test"),E,M;function I(){var _=mS();E=_.isDeepEqual,M=_.isDeepStrictEqual}var F=!1,D=tc.exports=et,q={};function L(_){throw _.message instanceof Error?_.message:new c(_)}function Y(_,A,C,z,j){var W=arguments.length,K;if(W===0)K="Failed";else if(W===1)C=_,_=void 0;else{if(F===!1){F=!0;var rt=qt.emitWarning?qt.emitWarning:console.warn.bind(console);rt("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}W===2&&(z="!=")}if(C instanceof Error)throw C;var ft={actual:_,expected:A,operator:z===void 0?"fail":z,stackStartFn:j||Y};C!==void 0&&(ft.message=C);var vt=new c(ft);throw K&&(vt.message=K,vt.generatedMessage=!0),vt}D.fail=Y,D.AssertionError=c;function Z(_,A,C,z){if(!C){var j=!1;if(A===0)j=!0,z="No value argument passed to `assert.ok()`";else if(z instanceof Error)throw z;var W=new c({actual:C,expected:!0,message:z,operator:"==",stackStartFn:_});throw W.generatedMessage=j,W}}function et(){for(var _=arguments.length,A=new Array(_),C=0;C<_;C++)A[C]=arguments[C];Z.apply(void 0,[et,A.length].concat(A))}D.ok=et,D.equal=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");A!=C&&L({actual:A,expected:C,message:z,operator:"==",stackStartFn:_})},D.notEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");A==C&&L({actual:A,expected:C,message:z,operator:"!=",stackStartFn:_})},D.deepEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");E===void 0&&I(),E(A,C)||L({actual:A,expected:C,message:z,operator:"deepEqual",stackStartFn:_})},D.notDeepEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");E===void 0&&I(),E(A,C)&&L({actual:A,expected:C,message:z,operator:"notDeepEqual",stackStartFn:_})},D.deepStrictEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");E===void 0&&I(),M(A,C)||L({actual:A,expected:C,message:z,operator:"deepStrictEqual",stackStartFn:_})},D.notDeepStrictEqual=st;function st(_,A,C){if(arguments.length<2)throw new d("actual","expected");E===void 0&&I(),M(_,A)&&L({actual:_,expected:A,message:C,operator:"notDeepStrictEqual",stackStartFn:st})}D.strictEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");x(A,C)||L({actual:A,expected:C,message:z,operator:"strictEqual",stackStartFn:_})},D.notStrictEqual=function _(A,C,z){if(arguments.length<2)throw new d("actual","expected");x(A,C)&&L({actual:A,expected:C,message:z,operator:"notStrictEqual",stackStartFn:_})};var At=e(function _(A,C,z){var j=this;n(this,_),C.forEach(function(W){W in A&&(z!==void 0&&typeof z[W]=="string"&&b(A[W])&&v(A[W],z[W])?j[W]=z[W]:j[W]=A[W])})});function dt(_,A,C,z,j,W){if(!(C in _)||!M(_[C],A[C])){if(!z){var K=new At(_,j),rt=new At(A,j,_),ft=new c({actual:K,expected:rt,operator:"deepStrictEqual",stackStartFn:W});throw ft.actual=_,ft.expected=A,ft.operator=W.name,ft}L({actual:_,expected:A,message:z,operator:W.name,stackStartFn:W})}}function It(_,A,C,z){if(typeof A!="function"){if(b(A))return v(A,_);if(arguments.length===2)throw new s("expected",["Function","RegExp"],A);if(t(_)!=="object"||_===null){var j=new c({actual:_,expected:A,message:C,operator:"deepStrictEqual",stackStartFn:z});throw j.operator=z.name,j}var W=Object.keys(A);if(A instanceof Error)W.push("name","message");else if(W.length===0)throw new a("error",A,"may not be an empty object");return E===void 0&&I(),W.forEach(function(K){typeof _[K]=="string"&&b(A[K])&&v(A[K],_[K])||dt(_,A,K,C,W,z)}),!0}return A.prototype!==void 0&&_ instanceof A?!0:Error.isPrototypeOf(A)?!1:A.call({},_)===!0}function at(_){if(typeof _!="function")throw new s("fn","Function",_);try{_()}catch(A){return A}return q}function ht(_){return w(_)||_!==null&&t(_)==="object"&&typeof _.then=="function"&&typeof _.catch=="function"}function U(_){return Promise.resolve().then(function(){var A;if(typeof _=="function"){if(A=_(),!ht(A))throw new l("instance of Promise","promiseFn",A)}else if(ht(_))A=_;else throw new s("promiseFn",["Function","Promise"],_);return Promise.resolve().then(function(){return A}).then(function(){return q}).catch(function(C){return C})})}function H(_,A,C,z){if(typeof C=="string"){if(arguments.length===4)throw new s("error",["Object","Error","Function","RegExp"],C);if(t(A)==="object"&&A!==null){if(A.message===C)throw new o("error/message",'The error message "'.concat(A.message,'" is identical to the message.'))}else if(A===C)throw new o("error/message",'The error "'.concat(A,'" is identical to the message.'));z=C,C=void 0}else if(C!=null&&t(C)!=="object"&&typeof C!="function")throw new s("error",["Object","Error","Function","RegExp"],C);if(A===q){var j="";C&&C.name&&(j+=" (".concat(C.name,")")),j+=z?": ".concat(z):".";var W=_.name==="rejects"?"rejection":"exception";L({actual:void 0,expected:C,operator:_.name,message:"Missing expected ".concat(W).concat(j),stackStartFn:_})}if(C&&!It(A,C,z,_))throw A}function G(_,A,C,z){if(A!==q){if(typeof C=="string"&&(z=C,C=void 0),!C||It(A,C)){var j=z?": ".concat(z):".",W=_.name==="doesNotReject"?"rejection":"exception";L({actual:A,expected:C,operator:_.name,message:"Got unwanted ".concat(W).concat(j,`
164
- `)+'Actual message: "'.concat(A&&A.message,'"'),stackStartFn:_})}throw A}}D.throws=function _(A){for(var C=arguments.length,z=new Array(C>1?C-1:0),j=1;j<C;j++)z[j-1]=arguments[j];H.apply(void 0,[_,at(A)].concat(z))},D.rejects=function _(A){for(var C=arguments.length,z=new Array(C>1?C-1:0),j=1;j<C;j++)z[j-1]=arguments[j];return U(A).then(function(W){return H.apply(void 0,[_,W].concat(z))})},D.doesNotThrow=function _(A){for(var C=arguments.length,z=new Array(C>1?C-1:0),j=1;j<C;j++)z[j-1]=arguments[j];G.apply(void 0,[_,at(A)].concat(z))},D.doesNotReject=function _(A){for(var C=arguments.length,z=new Array(C>1?C-1:0),j=1;j<C;j++)z[j-1]=arguments[j];return U(A).then(function(W){return G.apply(void 0,[_,W].concat(z))})},D.ifError=function _(A){if(A!=null){var C="ifError got unwanted exception: ";t(A)==="object"&&typeof A.message=="string"?A.message.length===0&&A.constructor?C+=A.constructor.name:C+=A.message:C+=m(A);var z=new c({actual:A,expected:null,operator:"ifError",message:C,stackStartFn:_}),j=A.stack;if(typeof j=="string"){var W=j.split(`
165
- `);W.shift();for(var K=z.stack.split(`
166
- `),rt=0;rt<W.length;rt++){var ft=K.indexOf(W[rt]);if(ft!==-1){K=K.slice(0,ft);break}}z.stack="".concat(K.join(`
163
+ */function U(k,R){if(k===R)return 0;for(var X=k.length,tt=R.length,Q=0,ct=Math.min(X,tt);Q<ct;++Q)if(k[Q]!==R[Q]){X=k[Q],tt=R[Q];break}return X<tt?-1:tt<X?1:0}var H=!0,G=!1,E=0,N=1,w=2,A=3;function O(k,R){return a?k.source===R.source&&k.flags===R.flags:RegExp.prototype.toString.call(k)===RegExp.prototype.toString.call(R)}function z(k,R){if(k.byteLength!==R.byteLength)return!1;for(var X=0;X<k.byteLength;X++)if(k[X]!==R[X])return!1;return!0}function j(k,R){return k.byteLength!==R.byteLength?!1:U(new Uint8Array(k.buffer,k.byteOffset,k.byteLength),new Uint8Array(R.buffer,R.byteOffset,R.byteLength))===0}function q(k,R){return k.byteLength===R.byteLength&&U(new Uint8Array(k),new Uint8Array(R))===0}function K(k,R){return Y(k)?Y(R)&&c(Number.prototype.valueOf.call(k),Number.prototype.valueOf.call(R)):Z(k)?Z(R)&&String.prototype.valueOf.call(k)===String.prototype.valueOf.call(R):et(k)?et(R)&&Boolean.prototype.valueOf.call(k)===Boolean.prototype.valueOf.call(R):st(k)?st(R)&&BigInt.prototype.valueOf.call(k)===BigInt.prototype.valueOf.call(R):At(R)&&Symbol.prototype.valueOf.call(k)===Symbol.prototype.valueOf.call(R)}function rt(k,R,X,tt){if(k===R)return k!==0?!0:X?c(k,R):!0;if(X){if(s(k)!=="object")return typeof k=="number"&&m(k)&&m(R);if(s(R)!=="object"||k===null||R===null||Object.getPrototypeOf(k)!==Object.getPrototypeOf(R))return!1}else{if(k===null||s(k)!=="object")return R===null||s(R)!=="object"?k==R:!1;if(R===null||s(R)!=="object")return!1}var Q=P(k),ct=P(R);if(Q!==ct)return!1;if(Array.isArray(k)){if(k.length!==R.length)return!1;var p=ht(k),u=ht(R);return p.length!==u.length?!1:vt(k,R,X,tt,N,p)}if(Q==="[object Object]"&&(!I(k)&&I(R)||!D(k)&&D(R)))return!1;if(M(k)){if(!M(R)||Date.prototype.getTime.call(k)!==Date.prototype.getTime.call(R))return!1}else if(F(k)){if(!F(R)||!O(k,R))return!1}else if(W(k)||k instanceof Error){if(k.message!==R.message||k.name!==R.name)return!1}else if(S(k)){if(!X&&(dt(k)||It(k))){if(!z(k,R))return!1}else if(!j(k,R))return!1;var f=ht(k),g=ht(R);return f.length!==g.length?!1:vt(k,R,X,tt,E,f)}else{if(D(k))return!D(R)||k.size!==R.size?!1:vt(k,R,X,tt,w);if(I(k))return!I(R)||k.size!==R.size?!1:vt(k,R,X,tt,A);if(v(k)){if(!q(k,R))return!1}else if(L(k)&&!K(k,R))return!1}return vt(k,R,X,tt,E)}function ft(k,R){return R.filter(function(X){return _(k,X)})}function vt(k,R,X,tt,Q,ct){if(arguments.length===5){ct=Object.keys(k);var p=Object.keys(R);if(ct.length!==p.length)return!1}for(var u=0;u<ct.length;u++)if(!b(R,ct[u]))return!1;if(X&&arguments.length===5){var f=h(k);if(f.length!==0){var g=0;for(u=0;u<f.length;u++){var T=f[u];if(_(k,T)){if(!_(R,T))return!1;ct.push(T),g++}else if(_(R,T))return!1}var B=h(R);if(f.length!==B.length&&ft(R,B).length!==g)return!1}else{var $=h(R);if($.length!==0&&ft(R,$).length!==0)return!1}}if(ct.length===0&&(Q===E||Q===N&&k.length===0||k.size===0))return!0;if(tt===void 0)tt={val1:new Map,val2:new Map,position:0};else{var lt=tt.val1.get(k);if(lt!==void 0){var bt=tt.val2.get(R);if(bt!==void 0)return lt===bt}tt.position++}tt.val1.set(k,tt.position),tt.val2.set(R,tt.position);var _t=J(k,R,X,ct,tt,Q);return tt.val1.delete(k),tt.val2.delete(R),_t}function Pt(k,R,X,tt){for(var Q=l(k),ct=0;ct<Q.length;ct++){var p=Q[ct];if(rt(R,p,X,tt))return k.delete(p),!0}return!1}function $t(k){switch(s(k)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":k=+k;case"number":if(m(k))return!1}return!0}function Yt(k,R,X){var tt=$t(X);return tt??(R.has(tt)&&!k.has(tt))}function Jt(k,R,X,tt,Q){var ct=$t(X);if(ct!=null)return ct;var p=R.get(ct);return p===void 0&&!R.has(ct)||!rt(tt,p,!1,Q)?!1:!k.has(ct)&&rt(tt,p,!1,Q)}function qt(k,R,X,tt){for(var Q=null,ct=l(k),p=0;p<ct.length;p++){var u=ct[p];if(s(u)==="object"&&u!==null)Q===null&&(Q=new Set),Q.add(u);else if(!R.has(u)){if(X||!Yt(k,R,u))return!1;Q===null&&(Q=new Set),Q.add(u)}}if(Q!==null){for(var f=l(R),g=0;g<f.length;g++){var T=f[g];if(s(T)==="object"&&T!==null){if(!Pt(Q,T,X,tt))return!1}else if(!X&&!k.has(T)&&!Pt(Q,T,X,tt))return!1}return Q.size===0}return!0}function V(k,R,X,tt,Q,ct){for(var p=l(k),u=0;u<p.length;u++){var f=p[u];if(rt(X,f,Q,ct)&&rt(tt,R.get(f),Q,ct))return k.delete(f),!0}return!1}function he(k,R,X,tt){for(var Q=null,ct=d(k),p=0;p<ct.length;p++){var u=t(ct[p],2),f=u[0],g=u[1];if(s(f)==="object"&&f!==null)Q===null&&(Q=new Set),Q.add(f);else{var T=R.get(f);if(T===void 0&&!R.has(f)||!rt(g,T,X,tt)){if(X||!Jt(k,R,f,g,tt))return!1;Q===null&&(Q=new Set),Q.add(f)}}}if(Q!==null){for(var B=d(R),$=0;$<B.length;$++){var lt=t(B[$],2),bt=lt[0],_t=lt[1];if(s(bt)==="object"&&bt!==null){if(!V(Q,k,bt,_t,X,tt))return!1}else if(!X&&(!k.has(bt)||!rt(k.get(bt),_t,!1,tt))&&!V(Q,k,bt,_t,!1,tt))return!1}return Q.size===0}return!0}function J(k,R,X,tt,Q,ct){var p=0;if(ct===w){if(!qt(k,R,X,Q))return!1}else if(ct===A){if(!he(k,R,X,Q))return!1}else if(ct===N)for(;p<k.length;p++)if(b(k,p)){if(!b(R,p)||!rt(k[p],R[p],X,Q))return!1}else{if(b(R,p))return!1;for(var u=Object.keys(k);p<u.length;p++){var f=u[p];if(!b(R,f)||!rt(k[f],R[f],X,Q))return!1}return u.length===Object.keys(R).length}for(p=0;p<tt.length;p++){var g=tt[p];if(!rt(k[g],R[g],X,Q))return!1}return!0}function gt(k,R){return rt(k,R,G)}function St(k,R){return rt(k,R,H)}return lc={isDeepEqual:gt,isDeepStrictEqual:St},lc}var rm;function uc(){if(rm)return Xa.exports;rm=1;function t(w){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(w)}function e(w,A,O){return Object.defineProperty(w,"prototype",{writable:!1}),w}function n(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")}var r=Rp(),i=r.codes,o=i.ERR_AMBIGUOUS_ARGUMENT,s=i.ERR_INVALID_ARG_TYPE,a=i.ERR_INVALID_ARG_VALUE,l=i.ERR_INVALID_RETURN_VALUE,d=i.ERR_MISSING_ARGS,c=ZS(),h=ln,m=h.inspect,y=ln.types,b=y.isPromise,_=y.isRegExp,P=cE(),x=ec(),v=fE("RegExp.prototype.test"),S,M;function I(){var w=yE();S=w.isDeepEqual,M=w.isDeepStrictEqual}var F=!1,D=Xa.exports=et,W={};function L(w){throw w.message instanceof Error?w.message:new c(w)}function Y(w,A,O,z,j){var q=arguments.length,K;if(q===0)K="Failed";else if(q===1)O=w,w=void 0;else{if(F===!1){F=!0;var rt=Wt.emitWarning?Wt.emitWarning:console.warn.bind(console);rt("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}q===2&&(z="!=")}if(O instanceof Error)throw O;var ft={actual:w,expected:A,operator:z===void 0?"fail":z,stackStartFn:j||Y};O!==void 0&&(ft.message=O);var vt=new c(ft);throw K&&(vt.message=K,vt.generatedMessage=!0),vt}D.fail=Y,D.AssertionError=c;function Z(w,A,O,z){if(!O){var j=!1;if(A===0)j=!0,z="No value argument passed to `assert.ok()`";else if(z instanceof Error)throw z;var q=new c({actual:O,expected:!0,message:z,operator:"==",stackStartFn:w});throw q.generatedMessage=j,q}}function et(){for(var w=arguments.length,A=new Array(w),O=0;O<w;O++)A[O]=arguments[O];Z.apply(void 0,[et,A.length].concat(A))}D.ok=et,D.equal=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");A!=O&&L({actual:A,expected:O,message:z,operator:"==",stackStartFn:w})},D.notEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");A==O&&L({actual:A,expected:O,message:z,operator:"!=",stackStartFn:w})},D.deepEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");S===void 0&&I(),S(A,O)||L({actual:A,expected:O,message:z,operator:"deepEqual",stackStartFn:w})},D.notDeepEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");S===void 0&&I(),S(A,O)&&L({actual:A,expected:O,message:z,operator:"notDeepEqual",stackStartFn:w})},D.deepStrictEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");S===void 0&&I(),M(A,O)||L({actual:A,expected:O,message:z,operator:"deepStrictEqual",stackStartFn:w})},D.notDeepStrictEqual=st;function st(w,A,O){if(arguments.length<2)throw new d("actual","expected");S===void 0&&I(),M(w,A)&&L({actual:w,expected:A,message:O,operator:"notDeepStrictEqual",stackStartFn:st})}D.strictEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");x(A,O)||L({actual:A,expected:O,message:z,operator:"strictEqual",stackStartFn:w})},D.notStrictEqual=function w(A,O,z){if(arguments.length<2)throw new d("actual","expected");x(A,O)&&L({actual:A,expected:O,message:z,operator:"notStrictEqual",stackStartFn:w})};var At=e(function w(A,O,z){var j=this;n(this,w),O.forEach(function(q){q in A&&(z!==void 0&&typeof z[q]=="string"&&_(A[q])&&v(A[q],z[q])?j[q]=z[q]:j[q]=A[q])})});function dt(w,A,O,z,j,q){if(!(O in w)||!M(w[O],A[O])){if(!z){var K=new At(w,j),rt=new At(A,j,w),ft=new c({actual:K,expected:rt,operator:"deepStrictEqual",stackStartFn:q});throw ft.actual=w,ft.expected=A,ft.operator=q.name,ft}L({actual:w,expected:A,message:z,operator:q.name,stackStartFn:q})}}function It(w,A,O,z){if(typeof A!="function"){if(_(A))return v(A,w);if(arguments.length===2)throw new s("expected",["Function","RegExp"],A);if(t(w)!=="object"||w===null){var j=new c({actual:w,expected:A,message:O,operator:"deepStrictEqual",stackStartFn:z});throw j.operator=z.name,j}var q=Object.keys(A);if(A instanceof Error)q.push("name","message");else if(q.length===0)throw new a("error",A,"may not be an empty object");return S===void 0&&I(),q.forEach(function(K){typeof w[K]=="string"&&_(A[K])&&v(A[K],w[K])||dt(w,A,K,O,q,z)}),!0}return A.prototype!==void 0&&w instanceof A?!0:Error.isPrototypeOf(A)?!1:A.call({},w)===!0}function at(w){if(typeof w!="function")throw new s("fn","Function",w);try{w()}catch(A){return A}return W}function ht(w){return b(w)||w!==null&&t(w)==="object"&&typeof w.then=="function"&&typeof w.catch=="function"}function U(w){return Promise.resolve().then(function(){var A;if(typeof w=="function"){if(A=w(),!ht(A))throw new l("instance of Promise","promiseFn",A)}else if(ht(w))A=w;else throw new s("promiseFn",["Function","Promise"],w);return Promise.resolve().then(function(){return A}).then(function(){return W}).catch(function(O){return O})})}function H(w,A,O,z){if(typeof O=="string"){if(arguments.length===4)throw new s("error",["Object","Error","Function","RegExp"],O);if(t(A)==="object"&&A!==null){if(A.message===O)throw new o("error/message",'The error message "'.concat(A.message,'" is identical to the message.'))}else if(A===O)throw new o("error/message",'The error "'.concat(A,'" is identical to the message.'));z=O,O=void 0}else if(O!=null&&t(O)!=="object"&&typeof O!="function")throw new s("error",["Object","Error","Function","RegExp"],O);if(A===W){var j="";O&&O.name&&(j+=" (".concat(O.name,")")),j+=z?": ".concat(z):".";var q=w.name==="rejects"?"rejection":"exception";L({actual:void 0,expected:O,operator:w.name,message:"Missing expected ".concat(q).concat(j),stackStartFn:w})}if(O&&!It(A,O,z,w))throw A}function G(w,A,O,z){if(A!==W){if(typeof O=="string"&&(z=O,O=void 0),!O||It(A,O)){var j=z?": ".concat(z):".",q=w.name==="doesNotReject"?"rejection":"exception";L({actual:A,expected:O,operator:w.name,message:"Got unwanted ".concat(q).concat(j,`
164
+ `)+'Actual message: "'.concat(A&&A.message,'"'),stackStartFn:w})}throw A}}D.throws=function w(A){for(var O=arguments.length,z=new Array(O>1?O-1:0),j=1;j<O;j++)z[j-1]=arguments[j];H.apply(void 0,[w,at(A)].concat(z))},D.rejects=function w(A){for(var O=arguments.length,z=new Array(O>1?O-1:0),j=1;j<O;j++)z[j-1]=arguments[j];return U(A).then(function(q){return H.apply(void 0,[w,q].concat(z))})},D.doesNotThrow=function w(A){for(var O=arguments.length,z=new Array(O>1?O-1:0),j=1;j<O;j++)z[j-1]=arguments[j];G.apply(void 0,[w,at(A)].concat(z))},D.doesNotReject=function w(A){for(var O=arguments.length,z=new Array(O>1?O-1:0),j=1;j<O;j++)z[j-1]=arguments[j];return U(A).then(function(q){return G.apply(void 0,[w,q].concat(z))})},D.ifError=function w(A){if(A!=null){var O="ifError got unwanted exception: ";t(A)==="object"&&typeof A.message=="string"?A.message.length===0&&A.constructor?O+=A.constructor.name:O+=A.message:O+=m(A);var z=new c({actual:A,expected:null,operator:"ifError",message:O,stackStartFn:w}),j=A.stack;if(typeof j=="string"){var q=j.split(`
165
+ `);q.shift();for(var K=z.stack.split(`
166
+ `),rt=0;rt<q.length;rt++){var ft=K.indexOf(q[rt]);if(ft!==-1){K=K.slice(0,ft);break}}z.stack="".concat(K.join(`
167
167
  `),`
168
- `).concat(W.join(`
169
- `))}throw z}};function S(_,A,C,z,j){if(!b(A))throw new s("regexp","RegExp",A);var W=j==="match";if(typeof _!="string"||v(A,_)!==W){if(C instanceof Error)throw C;var K=!C;C=C||(typeof _!="string"?'The "string" argument must be of type string. Received type '+"".concat(t(_)," (").concat(m(_),")"):(W?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(A),`. Input:
168
+ `).concat(q.join(`
169
+ `))}throw z}};function E(w,A,O,z,j){if(!_(A))throw new s("regexp","RegExp",A);var q=j==="match";if(typeof w!="string"||v(A,w)!==q){if(O instanceof Error)throw O;var K=!O;O=O||(typeof w!="string"?'The "string" argument must be of type string. Received type '+"".concat(t(w)," (").concat(m(w),")"):(q?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(A),`. Input:
170
170
 
171
- `).concat(m(_),`
172
- `));var rt=new c({actual:_,expected:A,message:C,operator:j,stackStartFn:z});throw rt.generatedMessage=K,rt}}D.match=function _(A,C,z){S(A,C,z,_,"match")},D.doesNotMatch=function _(A,C,z){S(A,C,z,_,"doesNotMatch")};function N(){for(var _=arguments.length,A=new Array(_),C=0;C<_;C++)A[C]=arguments[C];Z.apply(void 0,[N,A.length].concat(A))}return D.strict=P(N,D,{equal:D.strictEqual,deepEqual:D.deepStrictEqual,notEqual:D.notStrictEqual,notDeepEqual:D.notDeepStrictEqual}),D.strict.strict=D.strict,tc.exports}var mc=ln,yS=pc();function fm(){return new Date().getTime()}var gS=Array.prototype.slice,ne,yc={};typeof yr<"u"&&yr.console?ne=yr.console:typeof window<"u"&&window.console?ne=window.console:ne={};for(var dm=[[wS,"log"],[bS,"info"],[_S,"warn"],[xS,"error"],[ES,"time"],[SS,"timeEnd"],[AS,"trace"],[TS,"dir"],[PS,"assert"]],gc=0;gc<dm.length;gc++){var hm=dm[gc],vS=hm[0],pm=hm[1];ne[pm]||(ne[pm]=vS)}var Fe=ne;function wS(){}function bS(){ne.log.apply(ne,arguments)}function _S(){ne.log.apply(ne,arguments)}function xS(){ne.warn.apply(ne,arguments)}function ES(t){yc[t]=fm()}function SS(t){var e=yc[t];if(!e)throw new Error("No such label: "+t);delete yc[t];var n=fm()-e;ne.log(t+": "+n+"ms")}function AS(){var t=new Error;t.name="Trace",t.message=mc.format.apply(null,arguments),ne.error(t.stack)}function TS(t){ne.log(mc.inspect(t)+`
173
- `)}function PS(t){if(!t){var e=gS.call(arguments,1);yS.ok(!1,mc.format.apply(null,e))}}function kS(t){Fe.log("✨ onNewSupportMessage",t);const{conversations:e,addMessage:n}=Bt.getState(),r={support:!0,content:t.message.content,authorName:t.message.authorName,date:t.message.date,attachments:t.message.attachments,emojis:t.message.emojis},i=e.find(o=>o.threadId===t.threadId);if(i&&_b(i.messages,r)){Fe.log("⚠️ Duplicate message detected, skipping:",t.threadId);return}n(t.threadId,r)}function Le(...t){}function CS(t){const e=Bt.getState().setConversationOpen;e(t.threadId,!1)}function OS(t){const{setConversationCSMember:e,addMessage:n,tempConversationToThread:r}=Bt.getState();r(t.threadId),e(t.threadId,t.csMember),n(t.threadId,Cb(t.csMember.displayName))}function IS(t){Fe.log("✨ onUpdatedSupportMessage",t);const{conversations:e,updateMessage:n}=Bt.getState(),r=e.find(o=>o.threadId===t.threadId);if(!r){Fe.log("⚠️ Conversation not found for update:",t.threadId);return}if(!r.messages.some(o=>o.date===t.message.date)){Fe.log("⚠️ Message not found for update:",t.message.date);return}n(t.threadId,t.message.date,{support:!0,content:t.message.content,authorName:t.message.authorName,date:t.message.date,attachments:t.message.attachments,edited:!0,emojis:t.message.emojis})}function RS(t){Fe.log("✨ onDeletedSupportMessage",t);const{conversations:e,removeMessage:n}=Bt.getState(),r=e.find(o=>o.threadId===t.threadId);if(!r){Fe.log("⚠️ Conversation not found for deletion:",t.threadId);return}if(!r.messages.some(o=>o.date===t.messageDate)){Fe.log("⚠️ Message not found for deletion:",t.messageDate);return}n(t.threadId,t.messageDate)}function MS(){return new Promise(t=>{const e=Oi(ye.api,{path:"/socket"});e.on("connect",async()=>(Fe.log("⚡ socket connected"),e.on("new-support-message",kS),e.on("updated-support-message",IS),e.on("deleted-support-message",RS),e.on("thread-closed",CS),e.on("thread-assigned",OS),t(e)))})}async function NS({name:t,email:e}){const n=JSON.stringify({guildId:ye.app_id,name:t,email:e}),r=new Headers;r.append("Content-Type","application/json");const i={method:"POST",headers:r,body:n},s=await(await fetch(`${ye.api}/auth/token`,i)).json();return s.token&&s.token!=="undefined"&&(mr.set("discord-widget",s.token),Bt.getState().setToken(s.token)),s}async function BS(t){const e=new Headers;e.append("Content-Type","application/json"),e.append("Authorization",`Bearer ${t}`);try{const n=await fetch(`${ye.api}/conversations/current`,{method:"GET",headers:e});return n.status!==200?null:(await n.json()).currentConversation??null}catch(n){return console.error("Error fetching current conversation",n),null}}async function DS(t){const e=new Headers;e.append("Content-Type","application/json"),e.append("Authorization",`Bearer ${t}`);try{const n=await fetch(`${ye.api}/conversations/past`,{method:"GET",headers:e});return n.status!==200?null:(await n.json()).pastConversations??null}catch(n){return console.error("Error fetching past conversations",n),null}}async function FS(t){const e=await MS();return e.emit("identify",{jwt:t}),e}async function LS(t){const{smartMergeCurrentConversation:e,setConversationOpen:n,conversations:r}=Bt.getState();try{const i=await BS(t);if(i)Le("✅ Found current conversation:",i.threadId),e(i);else{Le("ℹ️ No current conversation found");const o=r.find(s=>s.status==="open"&&s.threadId!=="TEMP");o&&(Le("ℹ️ Closing stale conversation:",o.threadId),n(o.threadId,!1))}}catch{Bt.getState().setNetworkError("Failed to load conversation")}}async function jS(t){const{pastConversationsLastFetchedAt:e,smartMergePastConversations:n,setLoading:r,setNetworkError:i}=Bt.getState(),o=5*60*1e3;if(!e||Date.now()-e>o)try{r(!0);const a=await DS(t);a&&a.length>0?(Le(`✅ Loaded ${a.length} past conversations`),n(a)):Le("ℹ️ No past conversations found")}catch{i("Failed to load conversation history")}finally{r(!1)}}async function $S(){const{username:t,email:e,setNetworkError:n,setLoading:r}=Bt.getState();try{r(!0),n(null);let i=mr.get("discord-widget");i?Le("ℹ️ Returning user - JWT found in cookies"):(Le("ℹ️ New user - obtaining JWT token..."),i=(await NS({name:t,email:e})).token,Le("✅ JWT token obtained")),await FS(i),await LS(i),Le("✅ Network initialization complete")}catch(i){n(i instanceof Error?i.message:"Network initialization failed")}finally{r(!1)}}const VS=()=>{const{conversations:t,setOpenConversationId:e,pastConversationsLastFetchedAt:n}=Bt(),r=t.filter(a=>a.status==="open").length;mt(()=>{const a=mr.get("discord-widget");if(!a)return;const l=5*60*1e3;(!n||Date.now()-n>l)&&jS(a)},[n]);function i(){return r!==0?null:O(Ze.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},onClick:()=>e("TEMP"),style:{background:"linear-gradient(135deg, #7289DA, #5B6EAB)"},type:"button",className:"flex justify-center items-center w-full h-16 border-t border-gray-200",children:O("div",{className:`flex flex-row items-center transform transition-transform duration-150
174
- hover:scale-105 active:scale-95`,children:[O("span",{className:"text-sm text-slate-50 pr-3",children:"Send us a new message"}),O(Ew,{color:"#FFFFFF",size:18,strokeWidth:1})]})})}function o(a,l,d){var m,y,w;const c=a.messages[a.messages.length-1],h=a.status==="open";return O("div",{className:`flex flex-row items-center px-3 py-4 hover:bg-gray-200 cursor-pointer ${d?"":"border-b border-gray-200 "}`,onClick:()=>e(a.threadId),children:[O("div",{className:"relative inline-block mr-3",children:[O("img",{className:"inline-block size-[32px] rounded-full",src:((m=a==null?void 0:a.csMember)==null?void 0:m.displayAvatarURL)??"http://placehold.co/250x250"}),((y=a==null?void 0:a.csMember)==null?void 0:y.status)&&O("span",{className:`absolute top-0 end-0 block size-3 rounded-full ring-2 ring-white dark:ring-neutral-900 ${Ph(a.csMember.status,"bg")}`})]}),O("div",{className:"flex flex-1 flex-col",children:[O("p",{className:`text-sm/3 ${h?"font-semibold":""}`,children:(w=a==null?void 0:a.csMember)==null?void 0:w.displayName}),O("p",{className:"text-xs text-gray-500 line-clamp-1",children:c.content})]}),O("div",{className:"ml-2",children:O("p",{className:"text-xs text-gray-500",children:Nd(c.date)})})]},`conversation-${l}`)}function s(){const a=[...t].filter(c=>c.status==="open"),l=[...t].filter(c=>c.status==="closed"),d=c=>c.sort((h,m)=>m.lastMessageDate-h.lastMessageDate).map((h,m)=>h.messages.length?o(h,m,m+1===c.length):null);return O(Ze.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col flex-1 p-2 overflow-y-scroll",children:[a.length>0&&O("div",{className:"mb-2",children:[O("span",{className:"text-sm",children:"Current conversation"}),d(a)]}),l.length>0&&O(Ct,{children:[O("span",{className:"text-sm",children:"Closed messages"}),d(l)]})]})}return O("div",{className:"flex flex-col flex-1 overflow-scroll",children:[s(),i()]})},mm=({IconComponent:t,onClick:e})=>O("button",{onClick:e,className:`flex mr-2 items-center justify-center w-8 h-8
171
+ `).concat(m(w),`
172
+ `));var rt=new c({actual:w,expected:A,message:O,operator:j,stackStartFn:z});throw rt.generatedMessage=K,rt}}D.match=function w(A,O,z){E(A,O,z,w,"match")},D.doesNotMatch=function w(A,O,z){E(A,O,z,w,"doesNotMatch")};function N(){for(var w=arguments.length,A=new Array(w),O=0;O<w;O++)A[O]=arguments[O];Z.apply(void 0,[N,A.length].concat(A))}return D.strict=P(N,D,{equal:D.strictEqual,deepEqual:D.deepStrictEqual,notEqual:D.notStrictEqual,notDeepEqual:D.notDeepStrictEqual}),D.strict.strict=D.strict,Xa.exports}var fc=ln,gE=uc();function im(){return new Date().getTime()}var vE=Array.prototype.slice,ne,dc={};typeof gr<"u"&&gr.console?ne=gr.console:typeof window<"u"&&window.console?ne=window.console:ne={};for(var om=[[bE,"log"],[_E,"info"],[xE,"warn"],[SE,"error"],[EE,"time"],[AE,"timeEnd"],[TE,"trace"],[PE,"dir"],[kE,"assert"]],hc=0;hc<om.length;hc++){var sm=om[hc],wE=sm[0],am=sm[1];ne[am]||(ne[am]=wE)}var Fe=ne;function bE(){}function _E(){ne.log.apply(ne,arguments)}function xE(){ne.log.apply(ne,arguments)}function SE(){ne.warn.apply(ne,arguments)}function EE(t){dc[t]=im()}function AE(t){var e=dc[t];if(!e)throw new Error("No such label: "+t);delete dc[t];var n=im()-e;ne.log(t+": "+n+"ms")}function TE(){var t=new Error;t.name="Trace",t.message=fc.format.apply(null,arguments),ne.error(t.stack)}function PE(t){ne.log(fc.inspect(t)+`
173
+ `)}function kE(t){if(!t){var e=vE.call(arguments,1);gE.ok(!1,fc.format.apply(null,e))}}function CE(t){Fe.log("✨ onNewSupportMessage",t);const{conversations:e,addMessage:n}=Bt.getState(),r={support:!0,content:t.message.content,authorName:t.message.authorName,date:t.message.date,attachments:t.message.attachments,emojis:t.message.emojis},i=e.find(o=>o.threadId===t.threadId);if(i&&mb(i.messages,r)){Fe.log("⚠️ Duplicate message detected, skipping:",t.threadId);return}n(t.threadId,r)}function Le(...t){}function OE(t){const e=Bt.getState().setConversationOpen;e(t.threadId,!1)}function IE(t){const{setConversationCSMember:e,addMessage:n,tempConversationToThread:r}=Bt.getState();r(t.threadId),e(t.threadId,t.csMember),n(t.threadId,Sb(t.csMember.displayName))}function RE(t){Fe.log("✨ onUpdatedSupportMessage",t);const{conversations:e,updateMessage:n}=Bt.getState(),r=e.find(o=>o.threadId===t.threadId);if(!r){Fe.log("⚠️ Conversation not found for update:",t.threadId);return}if(!r.messages.some(o=>o.date===t.message.date)){Fe.log("⚠️ Message not found for update:",t.message.date);return}n(t.threadId,t.message.date,{support:!0,content:t.message.content,authorName:t.message.authorName,date:t.message.date,attachments:t.message.attachments,edited:!0,emojis:t.message.emojis})}function ME(t){Fe.log("✨ onDeletedSupportMessage",t);const{conversations:e,removeMessage:n}=Bt.getState(),r=e.find(o=>o.threadId===t.threadId);if(!r){Fe.log("⚠️ Conversation not found for deletion:",t.threadId);return}if(!r.messages.some(o=>o.date===t.messageDate)){Fe.log("⚠️ Message not found for deletion:",t.messageDate);return}n(t.threadId,t.messageDate)}function NE(){return new Promise(t=>{const e=Oi(ye.api,{path:"/socket"});e.on("connect",async()=>(Fe.log("⚡ socket connected"),e.on("new-support-message",CE),e.on("updated-support-message",RE),e.on("deleted-support-message",ME),e.on("thread-closed",OE),e.on("thread-assigned",IE),t(e)))})}async function BE({name:t,email:e}){const n=JSON.stringify({guildId:ye.app_id,name:t,email:e}),r=new Headers;r.append("Content-Type","application/json");const i={method:"POST",headers:r,body:n},s=await(await fetch(`${ye.api}/auth/token`,i)).json();return s.token&&s.token!=="undefined"&&(yr.set("discord-widget",s.token),Bt.getState().setToken(s.token)),s}async function DE(t){const e=new Headers;e.append("Content-Type","application/json"),e.append("Authorization",`Bearer ${t}`);try{const n=await fetch(`${ye.api}/conversations/current`,{method:"GET",headers:e});return n.status!==200?null:(await n.json()).currentConversation??null}catch(n){return console.error("Error fetching current conversation",n),null}}async function FE(t){const e=new Headers;e.append("Content-Type","application/json"),e.append("Authorization",`Bearer ${t}`);try{const n=await fetch(`${ye.api}/conversations/past`,{method:"GET",headers:e});return n.status!==200?null:(await n.json()).pastConversations??null}catch(n){return console.error("Error fetching past conversations",n),null}}async function LE(t){const e=await NE();return e.emit("identify",{jwt:t}),e}async function jE(t){const{smartMergeCurrentConversation:e,setConversationOpen:n,conversations:r}=Bt.getState();try{const i=await DE(t);if(i)Le("✅ Found current conversation:",i.threadId),e(i);else{Le("ℹ️ No current conversation found");const o=r.find(s=>s.status==="open"&&s.threadId!=="TEMP");o&&(Le("ℹ️ Closing stale conversation:",o.threadId),n(o.threadId,!1))}}catch{Bt.getState().setNetworkError("Failed to load conversation")}}async function $E(t){const{pastConversationsLastFetchedAt:e,smartMergePastConversations:n,setLoading:r,setNetworkError:i}=Bt.getState(),o=5*60*1e3;if(!e||Date.now()-e>o)try{r(!0);const a=await FE(t);a&&a.length>0?(Le(`✅ Loaded ${a.length} past conversations`),n(a)):Le("ℹ️ No past conversations found")}catch{i("Failed to load conversation history")}finally{r(!1)}}async function VE(){const{username:t,email:e,setNetworkError:n,setLoading:r}=Bt.getState();try{r(!0),n(null);let i=yr.get("discord-widget");i?Le("ℹ️ Returning user - JWT found in cookies"):(Le("ℹ️ New user - obtaining JWT token..."),i=(await BE({name:t,email:e})).token,Le("✅ JWT token obtained")),await LE(i),await jE(i),Le("✅ Network initialization complete")}catch(i){n(i instanceof Error?i.message:"Network initialization failed")}finally{r(!1)}}const UE=()=>{const{conversations:t,setOpenConversationId:e,pastConversationsLastFetchedAt:n}=Bt(),r=t.filter(a=>a.status==="open").length;mt(()=>{const a=yr.get("discord-widget");if(!a)return;const l=5*60*1e3;(!n||Date.now()-n>l)&&$E(a)},[n]);function i(){return r!==0?null:C(Ze.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},onClick:()=>e("TEMP"),style:{background:"linear-gradient(135deg, #7289DA, #5B6EAB)"},type:"button",className:"flex justify-center items-center w-full h-16 border-t border-gray-200",children:C("div",{className:`flex flex-row items-center transform transition-transform duration-150
174
+ hover:scale-105 active:scale-95`,children:[C("span",{className:"text-sm text-slate-50 pr-3",children:"Send us a new message"}),C(gw,{color:"#FFFFFF",size:18,strokeWidth:1})]})})}function o(a,l,d){var m,y,b;const c=a.messages[a.messages.length-1],h=a.status==="open";return C("div",{className:`flex flex-row items-center px-3 py-4 hover:bg-gray-200 cursor-pointer ${d?"":"border-b border-gray-200 "}`,onClick:()=>e(a.threadId),children:[C("div",{className:"relative inline-block mr-3",children:[C("img",{className:"inline-block size-[32px] rounded-full",src:((m=a==null?void 0:a.csMember)==null?void 0:m.displayAvatarURL)??"http://placehold.co/250x250"}),((y=a==null?void 0:a.csMember)==null?void 0:y.status)&&C("span",{className:`absolute top-0 end-0 block size-3 rounded-full ring-2 ring-white dark:ring-neutral-900 ${Sh(a.csMember.status,"bg")}`})]}),C("div",{className:"flex flex-1 flex-col",children:[C("p",{className:`text-sm/3 ${h?"font-semibold":""}`,children:(b=a==null?void 0:a.csMember)==null?void 0:b.displayName}),C("p",{className:"text-xs text-gray-500 line-clamp-1",children:c.content})]}),C("div",{className:"ml-2",children:C("p",{className:"text-xs text-gray-500",children:Od(c.date)})})]},`conversation-${l}`)}function s(){const a=[...t].filter(c=>c.status==="open"),l=[...t].filter(c=>c.status==="closed"),d=c=>c.sort((h,m)=>m.lastMessageDate-h.lastMessageDate).map((h,m)=>h.messages.length?o(h,m,m+1===c.length):null);return C(Ze.div,{initial:{opacity:0,x:-30},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col flex-1 p-2 overflow-y-scroll",children:[a.length>0&&C("div",{className:"mb-2",children:[C("span",{className:"text-sm",children:"Current conversation"}),d(a)]}),l.length>0&&C(kt,{children:[C("span",{className:"text-sm",children:"Closed messages"}),d(l)]})]})}return C("div",{className:"flex flex-col flex-1 overflow-scroll",children:[s(),i()]})},cm=({IconComponent:t,onClick:e})=>C("button",{onClick:e,className:`flex mr-2 items-center justify-center w-8 h-8
175
175
  transform transition-transform duration-150
176
- hover:scale-110 active:scale-95`,children:O(t,{})}),US=({size:t})=>O("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||26,height:t||26,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[O("path",{d:"M18 6 6 18"}),O("path",{d:"m6 6 12 12"})]}),zS=({size:t})=>O("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-left",children:O("path",{d:"m15 18-6-6 6-6"})}),ym={title:"Hi there 👋",subtitle:"We typically reply within a few minutes"},qS=()=>{var h,m,y,w,b,P;const{setChatOpen:t,setOpenConversationId:e,guildSettings:n,conversations:r,openConversationId:i}=Bt(),o=r.find(x=>x.status==="open"),s=!!i,a=r.length===1&&r[0].status==="closed",l=r.length>1,d=s&&(a||l),c=i&&(o!=null&&o.csMember)&&((h=o==null?void 0:o.csMember)==null?void 0:h.displayName)!=="Customer support"?{title:(m=o==null?void 0:o.csMember)==null?void 0:m.displayName,subtitle:(y=o==null?void 0:o.csMember)!=null&&y.status?o1((w=o==null?void 0:o.csMember)==null?void 0:w.status):null,avatar:(b=o==null?void 0:o.csMember)==null?void 0:b.displayAvatarURL,status:(P=o==null?void 0:o.csMember)==null?void 0:P.status}:{title:(n==null?void 0:n.header_title)??ym.title,subtitle:(n==null?void 0:n.header_subtitle)??ym.subtitle,avatar:(n==null?void 0:n.iconURL)||"https://i.imgur.com/ecjl5HR.png"};return O("div",{style:{background:"linear-gradient(135deg, #7289DA, #5B6EAB)",boxShadow:"0 4px 4px rgba(0, 0, 0, 0.1)"},className:"flex flex-row items-center py-5 px-4 text-white",children:[d&&O(mm,{onClick:()=>e(null),IconComponent:zS}),O("div",{className:"relative inline-block mr-3",children:[O("img",{className:"inline-block w-[40px] rounded-full",src:c.avatar}),c.status&&O("span",{className:`absolute top-0 end-0 block size-3.5 rounded-full ring-2 ring-white dark:ring-neutral-900 ${Ph(c.status,"bg")}`})]}),O("div",{className:"flex-1 flex-col",children:[O("p",{className:"text-lg/5 font-regular",children:c.title}),c.subtitle&&O("p",{className:"flex-1 text-xs/4 line-clamp-2",children:c.subtitle})]}),O(mm,{onClick:()=>t(!1),IconComponent:US})]})};function WS(){const[t,e]=bt({width:null,height:null});return Oe(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),t}const HS=()=>{const t=WS();return!t.width||!t.height?!1:t.width>t.height?t.width<=Md||t.height<=Eb:t.width<=Md},GS=()=>{const{openConversationId:t,conversations:e,isChatVisible:n}=Bt(),r=HS(),i=!t&&e.length,o={position:"fixed",inset:"0px",width:"100%",height:"100%",zIndex:9999,transformOrigin:"bottom right"},s={position:"fixed",bottom:"110px",right:"30px",width:"400px",height:"700px",maxWidth:"calc(100% - 60px)",maxHeight:"calc(100% - 124px)",zIndex:9999,transformOrigin:"bottom right"};return O(Iu,{children:n&&O(Ze.div,{initial:{opacity:0,scale:.8,y:r?0:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:r?0:20},transition:r?{duration:.2,ease:"easeInOut"}:{type:"spring",stiffness:500,damping:28,mass:.8},style:r?o:s,children:O("div",{className:`flex flex-col h-full bg-white shadow-xl overflow-hidden ${r?"":"rounded-xl"}`,children:[O(qS,{}),i?O(VS,{}):O(i1,{})]})},"chatbox")})};async function KS(){const{setGuildSettings:t,guildSettings:e}=Bt.getState();if(e.lastUpdate)return;const n=new Headers;n.append("Content-Type","application/json");try{const i=await(await fetch(`${ye.api}/guildSettings/${ye.app_id}`,{method:"GET",headers:n})).json();t(i)}catch{}}async function YS(){const t=new Headers;t.append("Content-Type","application/json");try{return(await(await fetch(`${ye.api}/guildSettings/status/${ye.app_id}`,{method:"GET",headers:t})).json()).active}catch{return!1}}function XS(){const{isChatOpen:t,setChatVisible:e,toggleChatOpen:n,isNetworkInitialized:r,setNetworkInitialized:i,username:o,email:s,addMessage:a,conversations:l,_REHYDRATED_:d,networkError:c,isLoading:h}=Bt(),[m,y]=bt(!1);mt(()=>{(async()=>{const x=await YS();y(x)})()},[]);const w=kt(()=>(!o||!s)&&!l.filter(v=>v.messages.filter(E=>E.customRenderer===In.IntroduceYourself)).length?(a("TEMP",kb),!0):!1,[o,s,a,l]);return mt(()=>{d&&(async()=>(await KS(),!w()&&(o||s)&&!r&&($S(),i(!0))))()},[r,i,w,o,s,d]),mt(()=>{if(t)e(!0);else{const x=setTimeout(()=>e(!1),300);return()=>clearTimeout(x)}},[t,e]),m?O(Ct,{children:[O(kw,{onClick:()=>n(),isOpen:t}),O(GS,{}),O(()=>c?O("div",{style:{position:"fixed",bottom:"90px",right:"20px",backgroundColor:"#EF4444",color:"white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:9999,maxWidth:"300px",fontSize:"14px"},children:[O("strong",{children:"Connection Error"}),O("p",{style:{margin:"4px 0 0 0",fontSize:"12px"},children:c})]}):null,{}),O(()=>!h||!t?null:O("div",{style:{position:"fixed",bottom:"90px",right:"20px",backgroundColor:"#7289DA",color:"white",padding:"8px 12px",borderRadius:"8px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:9999,fontSize:"12px"},children:"Loading..."}),{}),O("div",{id:"deskcord-lightbox-portal",style:{zIndex:2147482e3}})]}):null}const JS=()=>{const[t,e]=bt(!1);return mt(()=>{const n=document.getElementsByTagName("body")[0],r=document.createElement("style");r.textContent=Vm,n.appendChild(r);const i=document.createElement("style");i.textContent=Um,n.appendChild(i),e(!0)},[]),t&&O(XS,{})};window.deskcord||(window.deskcord={settings:{},openChatbox:()=>{}}),window.deskcord.openChatbox=()=>{Bt.getState().setChatOpen(!0)};let Mr=document.getElementById("deskcord-root");Mr||(Mr=document.createElement("div"),Mr.id="deskcord-root",document.body.appendChild(Mr)),jr.render(O(jr.StrictMode,{children:O(JS,{})}),Mr)})();
176
+ hover:scale-110 active:scale-95`,children:C(t,{})}),zE=({size:t})=>C("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||26,height:t||26,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[C("path",{d:"M18 6 6 18"}),C("path",{d:"m6 6 12 12"})]}),WE=({size:t})=>C("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-left",children:C("path",{d:"m15 18-6-6 6-6"})}),lm={title:"Hi there 👋",subtitle:"We typically reply within a few minutes"},qE=()=>{var h,m,y,b,_,P;const{setChatOpen:t,setOpenConversationId:e,guildSettings:n,conversations:r,openConversationId:i}=Bt(),o=r.find(x=>x.status==="open"),s=!!i,a=r.length===1&&r[0].status==="closed",l=r.length>1,d=s&&(a||l),c=i&&(o!=null&&o.csMember)&&((h=o==null?void 0:o.csMember)==null?void 0:h.displayName)!=="Customer support"?{title:(m=o==null?void 0:o.csMember)==null?void 0:m.displayName,subtitle:(y=o==null?void 0:o.csMember)!=null&&y.status?Q_((b=o==null?void 0:o.csMember)==null?void 0:b.status):null,avatar:(_=o==null?void 0:o.csMember)==null?void 0:_.displayAvatarURL,status:(P=o==null?void 0:o.csMember)==null?void 0:P.status}:{title:(n==null?void 0:n.header_title)??lm.title,subtitle:(n==null?void 0:n.header_subtitle)??lm.subtitle,avatar:(n==null?void 0:n.iconURL)||"https://i.imgur.com/ecjl5HR.png"};return C("div",{style:{background:"linear-gradient(135deg, #7289DA, #5B6EAB)",boxShadow:"0 4px 4px rgba(0, 0, 0, 0.1)"},className:"flex flex-row items-center py-5 px-4 text-white",children:[d&&C(cm,{onClick:()=>e(null),IconComponent:WE}),C("div",{className:"relative inline-block mr-3",children:[C("img",{className:"inline-block w-[40px] rounded-full",src:c.avatar}),c.status&&C("span",{className:`absolute top-0 end-0 block size-3.5 rounded-full ring-2 ring-white dark:ring-neutral-900 ${Sh(c.status,"bg")}`})]}),C("div",{className:"flex-1 flex-col",children:[C("p",{className:"text-lg/5 font-regular",children:c.title}),c.subtitle&&C("p",{className:"flex-1 text-xs/4 line-clamp-2",children:c.subtitle})]}),C(cm,{onClick:()=>t(!1),IconComponent:zE})]})};function HE(){const[t,e]=wt({width:null,height:null});return Oe(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),t}const GE=()=>{const t=HE();return!t.width||!t.height?!1:t.width>t.height?t.width<=Cd||t.height<=gb:t.width<=Cd},KE=()=>{const{openConversationId:t,conversations:e,isChatVisible:n}=Bt(),r=GE(),i=!t&&e.length,o={position:"fixed",inset:"0px",width:"100%",height:"100%",zIndex:9999,transformOrigin:"bottom right"},s={position:"fixed",bottom:"110px",right:"30px",width:"400px",height:"700px",maxWidth:"calc(100% - 60px)",maxHeight:"calc(100% - 124px)",zIndex:9999,transformOrigin:"bottom right"};return C(Pu,{children:n&&C(Ze.div,{initial:{opacity:0,scale:.8,y:r?0:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:r?0:20},transition:r?{duration:.2,ease:"easeInOut"}:{type:"spring",stiffness:500,damping:28,mass:.8},style:r?o:s,children:C("div",{className:`flex flex-col h-full bg-white shadow-xl overflow-hidden ${r?"":"rounded-xl"}`,children:[C(qE,{}),i?C(UE,{}):C(Z_,{})]})},"chatbox")})};async function YE(){const{setGuildSettings:t,guildSettings:e}=Bt.getState();if(e.lastUpdate)return;const n=new Headers;n.append("Content-Type","application/json");try{const i=await(await fetch(`${ye.api}/guildSettings/${ye.app_id}`,{method:"GET",headers:n})).json();t(i)}catch{}}async function XE(){const t=new Headers;t.append("Content-Type","application/json");try{return(await(await fetch(`${ye.api}/guildSettings/status/${ye.app_id}`,{method:"GET",headers:t})).json()).active}catch{return!1}}function JE(){const{isChatOpen:t,setChatVisible:e,toggleChatOpen:n,isNetworkInitialized:r,setNetworkInitialized:i,username:o,email:s,addMessage:a,conversations:l,_REHYDRATED_:d,networkError:c,isLoading:h}=Bt(),[m,y]=wt(!1);mt(()=>{(async()=>{const x=await XE();y(x)})()},[]);const b=Ct(()=>(!o||!s)&&!l.filter(v=>v.messages.filter(S=>S.customRenderer===Rn.IntroduceYourself)).length?(a("TEMP",xb),!0):!1,[o,s,a,l]);return mt(()=>{d&&(async()=>(await YE(),!b()&&(o||s)&&!r&&(VE(),i(!0))))()},[r,i,b,o,s,d]),mt(()=>{if(t)e(!0);else{const x=setTimeout(()=>e(!1),300);return()=>clearTimeout(x)}},[t,e]),m?C(kt,{children:[C(xw,{onClick:()=>n(),isOpen:t}),C(KE,{}),C(()=>c?C("div",{style:{position:"fixed",bottom:"90px",right:"20px",backgroundColor:"#EF4444",color:"white",padding:"12px 16px",borderRadius:"8px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:9999,maxWidth:"300px",fontSize:"14px"},children:[C("strong",{children:"Connection Error"}),C("p",{style:{margin:"4px 0 0 0",fontSize:"12px"},children:c})]}):null,{}),C(()=>!h||!t?null:C("div",{style:{position:"fixed",bottom:"90px",right:"20px",backgroundColor:"#7289DA",color:"white",padding:"8px 12px",borderRadius:"8px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:9999,fontSize:"12px"},children:"Loading..."}),{}),C("div",{id:"deskcord-lightbox-portal",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:2147482e3,pointerEvents:"none"}})]}):null}const ZE=()=>{const t=ot(null),[e,n]=wt(null),[r,i]=wt(null);return mt(()=>{if(!t.current)return;let o=t.current.shadowRoot;o||(o=t.current.attachShadow({mode:"open"}));let s=o.querySelector("#deskcord-shadow-container");s||(s=document.createElement("div"),s.id="deskcord-shadow-container",s.style.cssText=`
177
+ all: initial;
178
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
179
+ font-size: 16px;
180
+ line-height: 1.5;
181
+ color: #000;
182
+ box-sizing: border-box;
183
+ `,o.appendChild(s));let a=o.querySelector("#deskcord-tailwind-styles");a||(a=document.createElement("style"),a.id="deskcord-tailwind-styles",a.textContent=Bm,o.insertBefore(a,o.firstChild));let l=o.querySelector("#deskcord-lightbox-styles");l||(l=document.createElement("style"),l.id="deskcord-lightbox-styles",l.textContent=Dm,o.insertBefore(l,a.nextSibling));let d=o.querySelector("#deskcord-reset-styles");return d||(d=document.createElement("style"),d.id="deskcord-reset-styles",d.textContent=`
184
+ /* Reset styles to ensure isolation from parent page */
185
+ :host {
186
+ all: initial;
187
+ display: block;
188
+ position: fixed;
189
+ top: 0;
190
+ left: 0;
191
+ width: 0;
192
+ height: 0;
193
+ z-index: 2147483647;
194
+ pointer-events: none;
195
+ }
196
+
197
+ /* Allow pointer events on actual widget elements */
198
+ #deskcord-shadow-container,
199
+ #deskcord-shadow-container * {
200
+ pointer-events: auto;
201
+ }
202
+
203
+ /* Ensure box-sizing is consistent */
204
+ *, *::before, *::after {
205
+ box-sizing: border-box;
206
+ }
207
+
208
+ /* Prevent text selection issues */
209
+ * {
210
+ -webkit-font-smoothing: antialiased;
211
+ -moz-osx-font-smoothing: grayscale;
212
+ }
213
+ `,o.insertBefore(d,o.firstChild)),n(o),i(s),()=>{}},[]),C(kt,{children:[C("div",{ref:t,id:"deskcord-shadow-host",style:{position:"fixed",top:0,left:0,width:0,height:0,overflow:"visible",zIndex:2147483647,pointerEvents:"none"}}),e&&r&&yn.createPortal(C(QE,{value:e,children:C(JE,{})}),r)]})},um=yn.createContext(null),QE=({value:t,children:e})=>C(um.Provider,{value:t,children:e});window.deskcord||(window.deskcord={settings:{},openChatbox:()=>{}}),window.deskcord.openChatbox=()=>{Bt.getState().setChatOpen(!0)};let Nr=document.getElementById("deskcord-root");Nr||(Nr=document.createElement("div"),Nr.id="deskcord-root",document.body.appendChild(Nr)),yn.render(C(yn.StrictMode,{children:C(ZE,{})}),Nr)})();