deskcord 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";var Wn,ut,vc,qe,wc,bc,Ki,_c,Yi,Xi,Ji,xc,Hn={},Sc=[],vm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Br=Array.isArray;function ke(t,e){for(var n in e)t[n]=e[n];return t}function Zi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function et(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?Wn.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??++vc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function Ec(){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 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)&&!Dr.__r++||wc!==ut.debounceRendering)&&((wc=ut.debounceRendering)||bc)(Dr)}function Dr(){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=ke({},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));Dr.__r=0}function Tc(t,e,n,r,i,o,s,a,l,f,c){var h,m,y,w,b,P,_=r&&r.__k||Sc,v=e.length;for(l=wm(n,e,_,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?Hn:_[y.__i]||Hn,y.__i=h,P=to(t,y,m,i,o,s,a,l,f,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 wm(t,e,n,r,i){var o,s,a,l,f,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,(f=s.__i=bm(s,n,l,h))!==-1&&(h--,(a=n[f])&&(a.__u|=2)),a==null||a.__v===null?(f==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):f!=l&&(f==l-1?m--:f==l+1?m++:(f>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 Ce(t,e){return e=e||[],t==null||typeof t=="boolean"||(Br(t)?t.some(function(n){Ce(n,e)}):e.push(t)),e}function bm(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"||vm.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||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,f){var c,h,m,y,w,b,P,_,v,E,N,I,$,D,F,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(_=e.props,v="prototype"in Z&&Z.prototype.render,E=(c=Z.contextType)&&r[c.__c],N=c?E?E.props.value:c.__:r,n.__c?P=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(_,N):(e.__c=h=new oe(_,N),h.constructor=Z,h.render=xm),E&&E.sub(h),h.props=_,h.state||(h.state={}),h.context=N,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=ke({},h.__s)),ke(h.__s,Z.getDerivedStateFromProps(_,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&&_!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(_,N),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(_,h.__s,N)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=_,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(nt){nt&&(nt.__=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(_,h.__s,N),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,w,b)})}if(h.context=N,h.props=_,h.__P=t,h.__e=!1,$=ut.__r,D=0,v){for(h.state=h.__s,h.__d=!1,$&&$(e),c=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do h.__d=!1,$&&$(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=ke(ke({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(b=h.getSnapshotBeforeUpdate(y,w)),a=Tc(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,f),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),P&&(h.__E=h.__=null)}catch(nt){if(e.__v=null,l||o!=null)if(nt.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(nt,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=_m(n.__e,e,n,r,i,o,s,l,f);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 _m(t,e,n,r,i,o,s,a,l){var f,c,h,m,y,w,b,P=n.props,_=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(f=0;f<o.length;f++)if((y=o[f])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[f]=null;break}}if(t==null){if(v==null)return document.createTextNode(_);t=document.createElementNS(i,v,_.is&&_),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)P===_||a&&t.data===_||(t.data=_);else{if(o=o&&Wn.call(t.childNodes),P=n.props||Hn,!a&&o!=null)for(P={},f=0;f<t.attributes.length;f++)P[(y=t.attributes[f]).name]=y.value;for(f in P)if(y=P[f],f!="children"){if(f=="dangerouslySetInnerHTML")h=y;else if(!(f in _)){if(f=="value"&&"defaultValue"in _||f=="checked"&&"defaultChecked"in _)continue;Fr(t,f,null,y,i)}}for(f in _)y=_[f],f=="children"?m=y:f=="dangerouslySetInnerHTML"?c=y:f=="value"?w=y:f=="checked"?b=y:a&&typeof y!="function"||P[f]===y||Fr(t,f,y,P[f],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,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(f=o.length;f--;)Zi(o[f]);a||(f="value",v=="progress"&&w==null?t.removeAttribute("value"):w!==void 0&&(w!==t[f]||v=="progress"&&!w||v=="option"&&w!==P[f])&&Fr(t,f,w,P[f],i),f="checked",b!==void 0&&b!==t[f]&&Fr(t,f,b,P[f],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 xm(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=et(kt,null,[t]),i||Hn,Hn,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?Wn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Oc(o,t,s)}function Rc(t,e){Kn(t,e,Rc)}function Sm(t,e,n){var r,i,o,s,a=ke({},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?Wn.call(arguments,2):n),Gn(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}Wn=Sc.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=ke({},this.state),typeof t=="function"&&(t=t(ke({},n),this.props)),t&&ke(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,qe=[],bc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ki=function(t,e){return t.__v.__b-e.__v.__b},Dr.__r=0,_c=/(PointerCapture)$|Capture$/i,Yi=0,Xi=Cc(!1),Ji=Cc(!0),xc=0;var Em=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 f={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(f),f}var Oe,At,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(At,t,dn||e),dn=0;var n=At.__H||(At.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function vt(t){return dn=1,Yn(Uc,t)}function Yn(t,e,n){var r=We(Oe++,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],f=r.t(l,a);l!==f&&(r.__N=[f,r.__[1]],r.__c.setState({}))}],r.__c=At,!At.u)){var i=function(a,l,f){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,f);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,f)||h};At.u=!0;var o=At.shouldComponentUpdate,s=At.componentWillUpdate;At.componentWillUpdate=function(a,l,f){if(this.__e){var c=o;o=void 0,i(a,l,f),o=c}s&&s.call(this,a,l,f)},At.shouldComponentUpdate=i}return r.__N||r.__}function pt(t,e){var n=We(Oe++,3);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,At.__H.__h.push(n))}function Ie(t,e){var n=We(Oe++,4);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,At.__h.push(n))}function it(t){return dn=5,Ht(function(){return{current:t}},[])}function Xn(t,e,n){dn=6,Ie(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(Oe++,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=At.context[t.__c],n=We(Oe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(At)),e.props.value):t.__}function ro(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function Am(t){var e=We(Oe++,10),n=vt();return e.__=t,At.componentDidCatch||(At.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hn(){var t=We(Oe++,11);if(!t.__){for(var e=At.__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 Tm(){for(var t;t=Nc.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){At=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),Oe=0;var e=(At=t.__c).__H;e&&(no===At?(e.__h=[],At.__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=[],Oe=0)),no=At},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)||Pm)(Tm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),no=At=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)}}),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{Lr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Vc=typeof requestAnimationFrame=="function";function Pm(t){var e,n=function(){clearTimeout(r),Vc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Vc&&(e=requestAnimationFrame(n))}function Lr(t){var e=At,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),At=e}function io(t){var e=At;t.__c=t.__(),At=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=vt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Ie(function(){i.__=n,i.u=e,co(i)&&o({t:i})},[t,n,e]),pt(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=Ie;function jr(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,et(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 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 km=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=km,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:Ce(Ce(t).map(e))},ho={map:Hc,forEach:Hc,count:function(t){return t?Ce(t).length:0},only:function(t){var e=Ce(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ce},Cm=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)}Cm(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 Zn(){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 et(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)},(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=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 f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.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]=Kc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&et(kt,null,t.fallback);return i&&(i.__u&=-33),[et(kt,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 Om(t){return this.getChildContext=function(){return t.context},t.children}function Im(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(et(Om,{context:e.context},t.__v),e.v)}function po(t,e){var n=et(Im,{__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=Ce(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,Rm=/^(?: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]/,Mm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nm=/[A-Z0-9]/g,Bm=typeof document<"u",Dm=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=""),Kn(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 Fm(){}function Lm(){return this.cancelBubble}function jm(){return this.defaultPrevented}ut.event=function(t){return nl&&(t=nl(t)),t.persist=Fm,t.isPropagationStopped=Lm,t.isDefaultPrevented=jm,t.nativeEvent=t};var mo,$m={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||Bm&&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"||Dm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Mm.test(s)&&(s=l):l=s="oninput":o&&Rm.test(s)?s=s.replace(Nm,"-$&").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=Ce(n.children).forEach(function(f){f.props.selected=i.value.indexOf(f.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Ce(n.children).forEach(function(f){f.props.selected=i.multiple?i.defaultValue.indexOf(f.props.value)!=-1:i.defaultValue==f.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",$m)):(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:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:pt,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Ie,useMemo:Ht,useReducer:Yn,useRef:it,useState:vt,useSyncExternalStore:ao,useTransition:fo}}},al="18.3.1";function cl(t){return et.bind(null,t)}function mn(t){return!!t&&t.$$typeof===Qc}function ll(t){return mn(t)&&t.type===kt}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)?Sm.apply(null,arguments):t}function fl(t){return!!t.__k&&(Kn(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=kt,yl=mn,yn={useState:vt,useId:hn,useReducer:Yn,useEffect:pt,useLayoutEffect:Ie,useInsertionEffect:Jn,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:ao,startTransition:lo,useRef:it,useImperativeHandle:Xn,useMemo:Ht,useCallback:Ct,useContext:Ft,useDebugValue:ro,version:"18.3.1",Children:ho,render:tl,hydrate:el,unmountComponentAtNode:fl,createPortal:po,createElement:et,createContext:te,createFactory:cl,cloneElement:yo,createRef:Ec,Fragment:kt,isValidElement:mn,isElement:yl,isFragment:ll,isMemo:ul,findDOMNode:dl,Component:oe,PureComponent:jr,memo:qc,forwardRef:je,flushSync:pl,unstable_batchedUpdates:hl,StrictMode:ml,Suspense:Zn,SuspenseList:pn,lazy:Jc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl};const Vm=Object.freeze(Object.defineProperty({__proto__:null,Children:ho,Component:oe,Fragment:kt,PureComponent:jr,StrictMode:ml,Suspense:Zn,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl,cloneElement:yo,createContext:te,createElement:et,createFactory:cl,createPortal:po,createRef:Ec,default:yn,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:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:pt,useErrorBoundary:Am,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Ie,useMemo:Ht,useReducer:Yn,useRef:it,useState:vt,useSyncExternalStore:ao,useTransition:fo,version:al},Symbol.toStringTag,{value:"Module"})),Um='*,: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-4{margin-top:1rem;margin-bottom:1rem}.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}.mb-4{margin-bottom:1rem}.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-1{height:.25rem}.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-1{width:.25rem}.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}.flex-1{flex:1 1 0%}.flex-shrink-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 slide-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.animate-slide-in{animation:slide-in .2s ease-out}@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-1{gap:.25rem}.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-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.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-\\[\\#7289DA\\]{--tw-bg-opacity: 1;background-color:rgb(114 137 218 / 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-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / 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}.p-5{padding:1.25rem}.\\!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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.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-3\\.5{padding-inline-start:.875rem}.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-base{font-size:1rem;line-height:1.5rem}.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}.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-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / 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}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.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-\\[\\#5B6EAB\\]:hover{--tw-bg-opacity: 1;background-color:rgb(91 110 171 / var(--tw-bg-opacity))}.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))}.hover\\:shadow-md:hover{--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)}.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\\:border-transparent:focus{border-color:transparent}.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-2:focus{--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)}.focus\\:ring-\\[\\#7289DA\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(114 137 218 / var(--tw-ring-opacity))}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-opacity-50:focus{--tw-ring-opacity: .5}.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\\:transform-none:disabled{transform:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / 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}}',zm=".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=it(null);return e.current===null&&(e.current=t()),e.current}const wo=typeof window<"u",gl=wo?Ie:pt,$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 Re=(t,e,n)=>n>e?e:n<t?t:n;let Vr=()=>{};const Me={},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,qm=(t,e)=>n=>e(t(n)),Qn=(...t)=>t.reduce(qm),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 _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,Wm=1e-7,Hm=12;function Gm(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)>Wm&&++a<Hm);return s}function er(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>Gm(o,0,1,t,n);return o=>o===0||o===1?o:xl(i(o),e,r)}const Sl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,El=t=>e=>1-t(1-e),Al=er(.33,1.53,.69,.99),Eo=El(Al),Tl=Sl(Eo),Pl=t=>(t*=2)<1?.5*Eo(t):.5*(2-Math.pow(2,-10*(t-1))),Ao=t=>1-Math.sin(Math.acos(t)),kl=El(Ao),Cl=Sl(Ao),Km=er(.42,0,1,1),Ym=er(0,0,.58,1),Ol=er(.42,0,.58,1),Xm=t=>Array.isArray(t)&&typeof t[0]!="number",Il=t=>Array.isArray(t)&&typeof t[0]=="number",Rl={linear:ce,easeIn:Km,easeInOut:Ol,easeOut:Ym,circIn:Ao,circInOut:Cl,circOut:kl,backIn:Eo,backInOut:Tl,backOut:Al,anticipate:Pl},Jm=t=>typeof t=="string",Ml=t=>{if(Il(t)){Vr(t.length===4);const[e,n,r,i]=t;return er(e,n,r,i)}else if(Jm(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 Zm(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 f(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(f),e&&Nl.value&&Nl.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const Qm=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,N)=>(E[N]=Zm(o,e?N:void 0),E),{}),{setup:a,read:l,resolveKeyframes:f,preUpdate:c,update:h,preRender:m,render:y,postRender:w}=s,b=()=>{const E=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Qm),1)),i.timestamp=E,i.isProcessing=!0,a.process(i),l.process(i),f.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,N)=>{const I=s[N];return E[N]=($,D=!1,F=!1)=>(n||P(),I.schedule($,D,F)),E},{}),cancel:E=>{for(let N=0;N<Ur.length;N++)s[Ur[N]].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 ty(){zr=void 0}const re={now:()=>(zr===void 0&&re.set(Xt.isProcessing||Me.useManualTiming?Xt.timestamp:performance.now()),zr),set:t=>{zr=t,queueMicrotask(ty)}},Dl=t=>e=>typeof e=="string"&&e.startsWith(t),Po=Dl("--"),ey=Dl("var(--"),ko=t=>ey(t)?ny.test(t.split("/*")[0].trim()):!1,ny=/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=>Re(0,1,t)},qr={...gn,default:1},rr=t=>Math.round(t*1e5)/1e5,Co=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ry(t){return t==null}const iy=/^(?:#[\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"&&iy.test(n)&&n.startsWith(t)||e&&!ry(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}},oy=t=>Re(0,255,t),Io={...gn,transform:t=>Math.round(oy(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)+", "+rr(nr.transform(r))+")"};function sy(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:sy,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("%"),ot=ir("px"),ay=ir("vh"),cy=ir("vw"),Ll={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},vn={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(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)}},ly=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uy(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Co))==null?void 0:e.length)||0)+(((n=t.match(ly))==null?void 0:n.length)||0)>0}const jl="number",$l="color",fy="var",dy="var(",Vl="${}",hy=/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(hy,l=>(Vt.test(l)?(r.color.push(o),i.push($l),n.push(Vt.parse(l))):l.startsWith(dy)?(r.var.push(o),i.push(fy),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 or(t).values}function zl(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===jl?o+=rr(i[s]):a===$l?o+=Vt.transform(i[s]):o+=i[s]}return o}}const py=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function my(t){const e=Ul(t);return zl(t)(e.map(py))}const Ue={test:uy,parse:Ul,createTransformer:zl,getAnimatableNone:my};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 yy({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)},gy=[Ro,He,vn],vy=t=>gy.find(e=>e.test(t));function ql(t){const e=vy(t);if(!e)return!1;let n=e.parse(t);return e===vn&&(n=yy(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 wy(t,e){return Bo.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function by(t,e){return n=>Mt(t,e,n)}function Do(t){return typeof t=="number"?by:typeof t=="string"?ko(t)?Wr:Vt.test(t)?Wl:Sy:Array.isArray(t)?Hl:typeof t=="object"?Vt.test(t)?Wl:_y: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 _y(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 xy(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 Sy=(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?wy(t,e):Qn(Hl(xy(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 Ay(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 Ty=5;function Yl(t,e,n){const r=Math.max(e-Ty,0);return _l(n-t(r),e-r)}const Bt={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 Py({duration:t=Bt.duration,bounce:e=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,o,s=1-e;s=Re(Bt.minDamping,Bt.maxDamping,s),t=Re(Bt.minDuration,Bt.maxDuration,be(t)),s<1?(i=f=>{const c=f*s,h=c*t,m=c-n,y=jo(f,s),w=Math.exp(-h);return Lo-m/y*w},o=f=>{const h=f*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(f,2)*t,w=Math.exp(-h),b=jo(Math.pow(f,2),s);return(-i(f)+Lo>0?-1:1)*((m-y)*w)/b}):(i=f=>{const c=Math.exp(-f*t),h=(f-n)*t+1;return-Lo+c*h},o=f=>{const c=Math.exp(-f*t),h=(n-f)*(t*t);return c*h});const a=5/t,l=Cy(i,o,a);if(t=we(t),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:t};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:t}}}const ky=12;function Cy(t,e,n){let r=n;for(let i=1;i<ky;i++)r=r-t(r)/e(r);return r}function jo(t,e){return t*Math.sqrt(1-e*e)}const Oy=["duration","bounce"],Iy=["stiffness","damping","mass"];function Xl(t,e){return e.some(n=>t[n]!==void 0)}function Ry(t){let e={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...t};if(!Xl(t,Iy)&&Xl(t,Oy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Re(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Bt.mass,stiffness:i,damping:o}}else{const n=Py(t);e={...e,...n,mass:Bt.mass},e.isResolvedFromDuration=!0}return e}function Gr(t=Bt.visualDuration,e=Bt.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:f,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=Ry({...n,velocity:-be(n.velocity||0)}),w=m||0,b=f/(2*Math.sqrt(l*c)),P=s-o,_=be(Math.sqrt(l/c)),v=Math.abs(P)<5;r||(r=v?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=v?Bt.restDelta.granular:Bt.restDelta.default);let E;if(b<1){const I=jo(_,b);E=$=>{const D=Math.exp(-b*_*$);return s-D*((w+b*_*P)/I*Math.sin(I*$)+P*Math.cos(I*$))}}else if(b===1)E=I=>s-Math.exp(-_*I)*(P+(w+_*P)*I);else{const I=_*Math.sqrt(b*b-1);E=$=>{const D=Math.exp(-b*_*$),F=Math.min(I*$,300);return s-D*((w+b*_*P)*Math.sinh(F)+I*P*Math.cosh(F))/I}}const N={calculatedDuration:y&&h||null,next:I=>{const $=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,$));const F=Math.abs(D)<=r,L=Math.abs(s-$)<=i;a.done=F&&L}return a.value=a.done?s:$,a},toString:()=>{const I=Math.min(Fo(N),Hr),$=Kl(D=>N.next(I*D).value,I,30);return I+"ms "+$},toTransition:()=>{}};return N}Gr.applyToOptions=t=>{const e=Ay(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:f=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=F=>a!==void 0&&F<a||l!==void 0&&F>l,w=F=>a===void 0?l:l===void 0||Math.abs(a-F)<Math.abs(l-F)?a:l;let b=n*e;const P=h+b,_=s===void 0?P:s(P);_!==P&&(b=_-h);const v=F=>-b*Math.exp(-F/r),E=F=>_+v(F),N=F=>{const L=v(F),Y=E(F);m.done=Math.abs(L)<=f,m.value=m.done?_:Y};let I,$;const D=F=>{y(m.value)&&(I=F,$=Gr({keyframes:[m.value,w(m.value)],velocity:Yl(E,F,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:c}))};return D(0),{calculatedDuration:null,next:F=>{let L=!1;return!$&&I===void 0&&(L=!0,N(F),D(F)),I!==void 0&&F>=I?$.next(F-I):(!L&&N(F),m)}}}function My(t,e,n){const r=[],i=n||Me.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=Qn(l,a)}r.push(a)}return r}function Ny(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=My(e,r,i),l=a.length,f=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=>f(Re(t[0],t[o-1],c)):f}function By(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 Dy(t){const e=[0];return By(e,t.length-1),e}function Fy(t,e){return t.map(n=>n*e)}function Ly(t,e){return t.map(()=>e||Ol).splice(0,t.length-1)}function sr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Xm(r)?r.map(Ml):Ml(r),o={done:!1,value:e[0]},s=Fy(n&&n.length===e.length?n:Dy(e),t),a=Ny(s,e,{ease:Array.isArray(i)?i:Ly(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const jy=t=>t!==null;function Vo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(jy),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const $y={decay:$o,inertia:$o,tween:sr,keyframes:sr,spring:Gr};function Jl(t){typeof t.type=="string"&&(t.type=$y[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 Vy=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=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(Vy,Gl(a[0],a[1])),a=[0,100]);const f=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=Fo(f));const{calculatedDuration:c}=f;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:f=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 _=this.currentTime-f*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,N=r;if(h){const F=Math.min(this.currentTime,i)/a;let L=Math.floor(F),Y=F%1;!Y&&F>=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"&&(N=s)),E=Re(0,1,Y)*a}const I=v?{done:!1,value:c[0]}:N.next(E);o&&(I.value=o(I.value));let{done:$}=I;!v&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);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 Uy(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)},zy={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]),qy={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=qy,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zy,i=a}if(!i)return Ho(e);const o=r[e],s=i[1].split(",").map(Hy);return typeof o=="function"?o(s):s[o]}const Wy=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Go(n,e)};function Hy(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),eu=t=>t===gn||t===ot,Gy=new Set(["x","y","z"]),Ky=wn.filter(t=>!Gy.has(t));function Yy(t){const e=[];return Ky.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=Yy(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 Xy(){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])}Uy(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 Jy=t=>t.startsWith("--");function Zy(t,e,n){Jy(e)?t.style.setProperty(e,n):t.style[e]=n}const Qy=xo(()=>window.ScrollTimeline!==void 0),tg={};function eg(t,e){const n=xo(t);return()=>tg[e]??n()}const iu=eg(()=>{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})`,ou={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 su(t,e){if(t)return typeof t=="function"?iu()?Kl(t,e):"ease-out":Il(t)?ar(t):Array.isArray(t)?t.map(n=>su(n,e)||ou.easeOut):ou[t]}function ng(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},f=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 f&&(m.pseudoElement=f),t.animate(c,m)}function au(t){return typeof t=="function"&&"applyToOptions"in t}function rg({type:t,...e}){return au(t)&&iu()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ig 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 f=rg(e);this.animation=ng(n,r,i,f,o),f.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):Zy(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&&Qy()?(this.animation.timeline=e,ce):n(this)}}const cu={anticipate:Pl,backInOut:Tl,circInOut:Cl};function og(t){return t in cu}function sg(t){typeof t.ease=="string"&&og(t.ease)&&(t.ease=cu[t.ease])}const lu=10;class ag extends ig{constructor(e){sg(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 cg(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 lg(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:cg(t)||(n==="spring"||au(n))&&r}function Zo(t){t.duration=0,t.type}const ug=new Set(["opacity","clipPath","filter","transform"]),fg=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dg(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:f}=e.owner.getProps();return fg()&&n&&ug.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const hg=40;class pg 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:f,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:f,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Jo;this.keyframeResolver=new y(a,(b,P,_)=>this.onKeyframesResolved(b,P,m,!_),l,f,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:f,onUpdate:c}=r;this.resolvedAt=re.now(),lg(e,o,s,a)||((Me.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>hg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!f&&dg(m)?new ag({...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(),Xy()),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 mg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yg(t){const e=mg.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function fu(t,e,n=1){const[r,i]=yg(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",...wn]),gg={test:t=>t==="auto",parse:t=>t},hu=t=>e=>e.test(t),pu=[gn,ot,_e,Ve,cy,ay,gg],mu=t=>pu.find(hu(t));function vg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||bl(t):!0}const wg=new Set(["brightness","contrast","saturate","opacity"]);function bg(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=wg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const _g=/\b([a-z-]*)\(.*?\)/gu,ts={...Ue,getAnimatableNone:t=>{const e=t.match(_g);return e?e.map(bg).join(" "):t}},yu={...gn,transform:Math.round},es={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,backgroundPositionX:ot,backgroundPositionY:ot,...{rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:qr,scaleX:qr,scaleY:qr,scaleZ:qr,skew:Ve,skewX:Ve,skewY:Ve,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:nr,originX:Ll,originY:Ll,originZ:ot},zIndex:yu,fillOpacity:nr,strokeOpacity:nr,numOctaves:yu},xg={...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=>xg[t];function vu(t,e){let n=gu(t);return n!==ts&&(n=Ue),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Sg=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"&&!Sg.has(o)&&or(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=vu(n,i)}class Ag 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 f=e[l];if(typeof f=="string"&&(f=f.trim(),ko(f))){const c=fu(f,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=f)}}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 f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}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||vg(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,f])=>{e.getValue(l).set(f)}),this.resolveNoneKeyframes()}}function Tg(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,Pg=t=>!isNaN(parseFloat(t));class kg{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=Pg(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>_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 _n(t,e){return new kg(t,e)}const{schedule:ns,cancel:nA}=Bl(queueMicrotask,!1),pe={x:!1,y:!1};function xu(){return pe.x||pe.y}function Cg(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 Su(t,e){const n=Tg(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Eu(t){return!(t.pointerType==="touch"||xu())}function Og(t,e,n={}){const[r,i,o]=Su(t,n),s=a=>{if(!Eu(a))return;const{target:l}=a,f=e(l,a);if(typeof f!="function"||!l)return;const c=h=>{Eu(h)&&(f(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,Ig=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rg(t){return Ig.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 Mg=(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 Ng(t,e,n={}){const[r,i,o]=Su(t,n),s=a=>{const l=a.currentTarget;if(!Pu(a))return;Kr.add(l);const f=e(l,a),c=(y,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),Kr.has(l)&&Kr.delete(l),Pu(y)&&typeof f=="function"&&f(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",f=>Mg(f,i)),!Rg(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ku(t){return wl(t)&&"ownerSVGElement"in t}function Bg(t){return ku(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Dg=[...pu,Vt,Ue],Fg=t=>Dg.find(hu(t)),os=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Lg 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 jg({children:t,isPresent:e,anchorX:n,root:r}){const i=hn(),o=it(null),s=it({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=Ft(os);return Jn(()=>{const{width:l,height:f,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!f)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 Wn,ut,vc,qe,wc,bc,Ki,_c,Yi,Xi,Ji,xc,Hn={},Sc=[],vm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Br=Array.isArray;function ke(t,e){for(var n in e)t[n]=e[n];return t}function Zi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function et(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?Wn.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??++vc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function Ec(){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 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)&&!Dr.__r++||wc!==ut.debounceRendering)&&((wc=ut.debounceRendering)||bc)(Dr)}function Dr(){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=ke({},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));Dr.__r=0}function Tc(t,e,n,r,i,o,s,a,l,f,c){var h,m,y,w,b,P,_=r&&r.__k||Sc,v=e.length;for(l=wm(n,e,_,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?Hn:_[y.__i]||Hn,y.__i=h,P=to(t,y,m,i,o,s,a,l,f,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 wm(t,e,n,r,i){var o,s,a,l,f,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,(f=s.__i=bm(s,n,l,h))!==-1&&(h--,(a=n[f])&&(a.__u|=2)),a==null||a.__v===null?(f==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):f!=l&&(f==l-1?m--:f==l+1?m++:(f>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 Ce(t,e){return e=e||[],t==null||typeof t=="boolean"||(Br(t)?t.some(function(n){Ce(n,e)}):e.push(t)),e}function bm(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"||vm.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||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,f){var c,h,m,y,w,b,P,_,v,E,N,I,$,D,F,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(_=e.props,v="prototype"in Z&&Z.prototype.render,E=(c=Z.contextType)&&r[c.__c],N=c?E?E.props.value:c.__:r,n.__c?P=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(_,N):(e.__c=h=new oe(_,N),h.constructor=Z,h.render=xm),E&&E.sub(h),h.props=_,h.state||(h.state={}),h.context=N,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=ke({},h.__s)),ke(h.__s,Z.getDerivedStateFromProps(_,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&&_!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(_,N),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(_,h.__s,N)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=_,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(nt){nt&&(nt.__=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(_,h.__s,N),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,w,b)})}if(h.context=N,h.props=_,h.__P=t,h.__e=!1,$=ut.__r,D=0,v){for(h.state=h.__s,h.__d=!1,$&&$(e),c=h.render(h.props,h.state,h.context),F=0;F<h._sb.length;F++)h.__h.push(h._sb[F]);h._sb=[]}else do h.__d=!1,$&&$(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=ke(ke({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(b=h.getSnapshotBeforeUpdate(y,w)),a=Tc(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,f),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),P&&(h.__E=h.__=null)}catch(nt){if(e.__v=null,l||o!=null)if(nt.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(nt,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=_m(n.__e,e,n,r,i,o,s,l,f);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 _m(t,e,n,r,i,o,s,a,l){var f,c,h,m,y,w,b,P=n.props,_=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(f=0;f<o.length;f++)if((y=o[f])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[f]=null;break}}if(t==null){if(v==null)return document.createTextNode(_);t=document.createElementNS(i,v,_.is&&_),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)P===_||a&&t.data===_||(t.data=_);else{if(o=o&&Wn.call(t.childNodes),P=n.props||Hn,!a&&o!=null)for(P={},f=0;f<t.attributes.length;f++)P[(y=t.attributes[f]).name]=y.value;for(f in P)if(y=P[f],f!="children"){if(f=="dangerouslySetInnerHTML")h=y;else if(!(f in _)){if(f=="value"&&"defaultValue"in _||f=="checked"&&"defaultChecked"in _)continue;Fr(t,f,null,y,i)}}for(f in _)y=_[f],f=="children"?m=y:f=="dangerouslySetInnerHTML"?c=y:f=="value"?w=y:f=="checked"?b=y:a&&typeof y!="function"||P[f]===y||Fr(t,f,y,P[f],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,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(f=o.length;f--;)Zi(o[f]);a||(f="value",v=="progress"&&w==null?t.removeAttribute("value"):w!==void 0&&(w!==t[f]||v=="progress"&&!w||v=="option"&&w!==P[f])&&Fr(t,f,w,P[f],i),f="checked",b!==void 0&&b!==t[f]&&Fr(t,f,b,P[f],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 xm(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=et(kt,null,[t]),i||Hn,Hn,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?Wn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Oc(o,t,s)}function Rc(t,e){Kn(t,e,Rc)}function Sm(t,e,n){var r,i,o,s,a=ke({},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?Wn.call(arguments,2):n),Gn(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}Wn=Sc.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=ke({},this.state),typeof t=="function"&&(t=t(ke({},n),this.props)),t&&ke(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,qe=[],bc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ki=function(t,e){return t.__v.__b-e.__v.__b},Dr.__r=0,_c=/(PointerCapture)$|Capture$/i,Yi=0,Xi=Cc(!1),Ji=Cc(!0),xc=0;var Em=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 f={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(f),f}var Oe,At,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(At,t,dn||e),dn=0;var n=At.__H||(At.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function vt(t){return dn=1,Yn(Uc,t)}function Yn(t,e,n){var r=We(Oe++,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],f=r.t(l,a);l!==f&&(r.__N=[f,r.__[1]],r.__c.setState({}))}],r.__c=At,!At.u)){var i=function(a,l,f){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,f);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,f)||h};At.u=!0;var o=At.shouldComponentUpdate,s=At.componentWillUpdate;At.componentWillUpdate=function(a,l,f){if(this.__e){var c=o;o=void 0,i(a,l,f),o=c}s&&s.call(this,a,l,f)},At.shouldComponentUpdate=i}return r.__N||r.__}function pt(t,e){var n=We(Oe++,3);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,At.__H.__h.push(n))}function Ie(t,e){var n=We(Oe++,4);!Rt.__s&&oo(n.__H,e)&&(n.__=t,n.i=e,At.__h.push(n))}function it(t){return dn=5,Ht(function(){return{current:t}},[])}function Xn(t,e,n){dn=6,Ie(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(Oe++,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=At.context[t.__c],n=We(Oe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(At)),e.props.value):t.__}function ro(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function Am(t){var e=We(Oe++,10),n=vt();return e.__=t,At.componentDidCatch||(At.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hn(){var t=We(Oe++,11);if(!t.__){for(var e=At.__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 Tm(){for(var t;t=Nc.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){At=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),Oe=0;var e=(At=t.__c).__H;e&&(no===At?(e.__h=[],At.__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=[],Oe=0)),no=At},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)||Pm)(Tm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),no=At=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)}}),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{Lr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Vc=typeof requestAnimationFrame=="function";function Pm(t){var e,n=function(){clearTimeout(r),Vc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Vc&&(e=requestAnimationFrame(n))}function Lr(t){var e=At,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),At=e}function io(t){var e=At;t.__c=t.__(),At=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=vt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Ie(function(){i.__=n,i.u=e,co(i)&&o({t:i})},[t,n,e]),pt(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=Ie;function jr(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,et(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 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 km=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=km,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:Ce(Ce(t).map(e))},ho={map:Hc,forEach:Hc,count:function(t){return t?Ce(t).length:0},only:function(t){var e=Ce(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ce},Cm=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)}Cm(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 Zn(){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 et(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)},(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=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 f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.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]=Kc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&et(kt,null,t.fallback);return i&&(i.__u&=-33),[et(kt,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 Om(t){return this.getChildContext=function(){return t.context},t.children}function Im(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(et(Om,{context:e.context},t.__v),e.v)}function po(t,e){var n=et(Im,{__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=Ce(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,Rm=/^(?: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]/,Mm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nm=/[A-Z0-9]/g,Bm=typeof document<"u",Dm=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=""),Kn(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 Fm(){}function Lm(){return this.cancelBubble}function jm(){return this.defaultPrevented}ut.event=function(t){return nl&&(t=nl(t)),t.persist=Fm,t.isPropagationStopped=Lm,t.isDefaultPrevented=jm,t.nativeEvent=t};var mo,$m={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||Bm&&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"||Dm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Mm.test(s)&&(s=l):l=s="oninput":o&&Rm.test(s)?s=s.replace(Nm,"-$&").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=Ce(n.children).forEach(function(f){f.props.selected=i.value.indexOf(f.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Ce(n.children).forEach(function(f){f.props.selected=i.multiple?i.defaultValue.indexOf(f.props.value)!=-1:i.defaultValue==f.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",$m)):(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:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:pt,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Ie,useMemo:Ht,useReducer:Yn,useRef:it,useState:vt,useSyncExternalStore:ao,useTransition:fo}}},al="18.3.1";function cl(t){return et.bind(null,t)}function mn(t){return!!t&&t.$$typeof===Qc}function ll(t){return mn(t)&&t.type===kt}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)?Sm.apply(null,arguments):t}function fl(t){return!!t.__k&&(Kn(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=kt,yl=mn,yn={useState:vt,useId:hn,useReducer:Yn,useEffect:pt,useLayoutEffect:Ie,useInsertionEffect:Jn,useTransition:fo,useDeferredValue:uo,useSyncExternalStore:ao,startTransition:lo,useRef:it,useImperativeHandle:Xn,useMemo:Ht,useCallback:Ct,useContext:Ft,useDebugValue:ro,version:"18.3.1",Children:ho,render:tl,hydrate:el,unmountComponentAtNode:fl,createPortal:po,createElement:et,createContext:te,createFactory:cl,cloneElement:yo,createRef:Ec,Fragment:kt,isValidElement:mn,isElement:yl,isFragment:ll,isMemo:ul,findDOMNode:dl,Component:oe,PureComponent:jr,memo:qc,forwardRef:je,flushSync:pl,unstable_batchedUpdates:hl,StrictMode:ml,Suspense:Zn,SuspenseList:pn,lazy:Jc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl};const Vm=Object.freeze(Object.defineProperty({__proto__:null,Children:ho,Component:oe,Fragment:kt,PureComponent:jr,StrictMode:ml,Suspense:Zn,SuspenseList:pn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl,cloneElement:yo,createContext:te,createElement:et,createFactory:cl,createPortal:po,createRef:Ec,default:yn,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:Ct,useContext:Ft,useDebugValue:ro,useDeferredValue:uo,useEffect:pt,useErrorBoundary:Am,useId:hn,useImperativeHandle:Xn,useInsertionEffect:Jn,useLayoutEffect:Ie,useMemo:Ht,useReducer:Yn,useRef:it,useState:vt,useSyncExternalStore:ao,useTransition:fo,version:al},Symbol.toStringTag,{value:"Module"})),Um='*,: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-4{margin-top:1rem;margin-bottom:1rem}.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}.mb-4{margin-bottom:1rem}.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-1{height:.25rem}.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-1{width:.25rem}.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}.flex-1{flex:1 1 0%}.flex-shrink-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 slide-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.animate-slide-in{animation:slide-in .2s ease-out}@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-1{gap:.25rem}.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-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.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-\\[\\#7289DA\\]{--tw-bg-opacity: 1;background-color:rgb(114 137 218 / 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-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / 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}.p-5{padding:1.25rem}.\\!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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.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-3\\.5{padding-inline-start:.875rem}.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-base{font-size:1rem;line-height:1.5rem}.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}.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-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / 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}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.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-\\[\\#5B6EAB\\]:hover{--tw-bg-opacity: 1;background-color:rgb(91 110 171 / var(--tw-bg-opacity))}.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))}.hover\\:shadow-md:hover{--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)}.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\\:border-transparent:focus{border-color:transparent}.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-2:focus{--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)}.focus\\:ring-\\[\\#7289DA\\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(114 137 218 / var(--tw-ring-opacity))}.focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-opacity-50:focus{--tw-ring-opacity: .5}.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\\:transform-none:disabled{transform:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / 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}}@media (min-width: 768px){.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}',zm=".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=it(null);return e.current===null&&(e.current=t()),e.current}const wo=typeof window<"u",gl=wo?Ie:pt,$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 Re=(t,e,n)=>n>e?e:n<t?t:n;let Vr=()=>{};const Me={},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,qm=(t,e)=>n=>e(t(n)),Qn=(...t)=>t.reduce(qm),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 _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,Wm=1e-7,Hm=12;function Gm(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)>Wm&&++a<Hm);return s}function er(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>Gm(o,0,1,t,n);return o=>o===0||o===1?o:xl(i(o),e,r)}const Sl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,El=t=>e=>1-t(1-e),Al=er(.33,1.53,.69,.99),Eo=El(Al),Tl=Sl(Eo),Pl=t=>(t*=2)<1?.5*Eo(t):.5*(2-Math.pow(2,-10*(t-1))),Ao=t=>1-Math.sin(Math.acos(t)),kl=El(Ao),Cl=Sl(Ao),Km=er(.42,0,1,1),Ym=er(0,0,.58,1),Ol=er(.42,0,.58,1),Xm=t=>Array.isArray(t)&&typeof t[0]!="number",Il=t=>Array.isArray(t)&&typeof t[0]=="number",Rl={linear:ce,easeIn:Km,easeInOut:Ol,easeOut:Ym,circIn:Ao,circInOut:Cl,circOut:kl,backIn:Eo,backInOut:Tl,backOut:Al,anticipate:Pl},Jm=t=>typeof t=="string",Ml=t=>{if(Il(t)){Vr(t.length===4);const[e,n,r,i]=t;return er(e,n,r,i)}else if(Jm(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 Zm(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 f(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(f),e&&Nl.value&&Nl.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const Qm=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,N)=>(E[N]=Zm(o,e?N:void 0),E),{}),{setup:a,read:l,resolveKeyframes:f,preUpdate:c,update:h,preRender:m,render:y,postRender:w}=s,b=()=>{const E=Me.useManualTiming?i.timestamp:performance.now();n=!1,Me.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Qm),1)),i.timestamp=E,i.isProcessing=!0,a.process(i),l.process(i),f.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,N)=>{const I=s[N];return E[N]=($,D=!1,F=!1)=>(n||P(),I.schedule($,D,F)),E},{}),cancel:E=>{for(let N=0;N<Ur.length;N++)s[Ur[N]].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 ty(){zr=void 0}const re={now:()=>(zr===void 0&&re.set(Xt.isProcessing||Me.useManualTiming?Xt.timestamp:performance.now()),zr),set:t=>{zr=t,queueMicrotask(ty)}},Dl=t=>e=>typeof e=="string"&&e.startsWith(t),Po=Dl("--"),ey=Dl("var(--"),ko=t=>ey(t)?ny.test(t.split("/*")[0].trim()):!1,ny=/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=>Re(0,1,t)},qr={...gn,default:1},rr=t=>Math.round(t*1e5)/1e5,Co=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ry(t){return t==null}const iy=/^(?:#[\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"&&iy.test(n)&&n.startsWith(t)||e&&!ry(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}},oy=t=>Re(0,255,t),Io={...gn,transform:t=>Math.round(oy(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)+", "+rr(nr.transform(r))+")"};function sy(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:sy,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("%"),ot=ir("px"),ay=ir("vh"),cy=ir("vw"),Ll={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},vn={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(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)}},ly=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uy(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Co))==null?void 0:e.length)||0)+(((n=t.match(ly))==null?void 0:n.length)||0)>0}const jl="number",$l="color",fy="var",dy="var(",Vl="${}",hy=/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(hy,l=>(Vt.test(l)?(r.color.push(o),i.push($l),n.push(Vt.parse(l))):l.startsWith(dy)?(r.var.push(o),i.push(fy),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 or(t).values}function zl(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===jl?o+=rr(i[s]):a===$l?o+=Vt.transform(i[s]):o+=i[s]}return o}}const py=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function my(t){const e=Ul(t);return zl(t)(e.map(py))}const Ue={test:uy,parse:Ul,createTransformer:zl,getAnimatableNone:my};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 yy({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)},gy=[Ro,He,vn],vy=t=>gy.find(e=>e.test(t));function ql(t){const e=vy(t);if(!e)return!1;let n=e.parse(t);return e===vn&&(n=yy(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 wy(t,e){return Bo.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function by(t,e){return n=>Mt(t,e,n)}function Do(t){return typeof t=="number"?by:typeof t=="string"?ko(t)?Wr:Vt.test(t)?Wl:Sy:Array.isArray(t)?Hl:typeof t=="object"?Vt.test(t)?Wl:_y: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 _y(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 xy(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 Sy=(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?wy(t,e):Qn(Hl(xy(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 Ay(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 Ty=5;function Yl(t,e,n){const r=Math.max(e-Ty,0);return _l(n-t(r),e-r)}const Bt={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 Py({duration:t=Bt.duration,bounce:e=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,o,s=1-e;s=Re(Bt.minDamping,Bt.maxDamping,s),t=Re(Bt.minDuration,Bt.maxDuration,be(t)),s<1?(i=f=>{const c=f*s,h=c*t,m=c-n,y=jo(f,s),w=Math.exp(-h);return Lo-m/y*w},o=f=>{const h=f*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(f,2)*t,w=Math.exp(-h),b=jo(Math.pow(f,2),s);return(-i(f)+Lo>0?-1:1)*((m-y)*w)/b}):(i=f=>{const c=Math.exp(-f*t),h=(f-n)*t+1;return-Lo+c*h},o=f=>{const c=Math.exp(-f*t),h=(n-f)*(t*t);return c*h});const a=5/t,l=Cy(i,o,a);if(t=we(t),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:t};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:t}}}const ky=12;function Cy(t,e,n){let r=n;for(let i=1;i<ky;i++)r=r-t(r)/e(r);return r}function jo(t,e){return t*Math.sqrt(1-e*e)}const Oy=["duration","bounce"],Iy=["stiffness","damping","mass"];function Xl(t,e){return e.some(n=>t[n]!==void 0)}function Ry(t){let e={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...t};if(!Xl(t,Iy)&&Xl(t,Oy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Re(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Bt.mass,stiffness:i,damping:o}}else{const n=Py(t);e={...e,...n,mass:Bt.mass},e.isResolvedFromDuration=!0}return e}function Gr(t=Bt.visualDuration,e=Bt.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:f,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=Ry({...n,velocity:-be(n.velocity||0)}),w=m||0,b=f/(2*Math.sqrt(l*c)),P=s-o,_=be(Math.sqrt(l/c)),v=Math.abs(P)<5;r||(r=v?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=v?Bt.restDelta.granular:Bt.restDelta.default);let E;if(b<1){const I=jo(_,b);E=$=>{const D=Math.exp(-b*_*$);return s-D*((w+b*_*P)/I*Math.sin(I*$)+P*Math.cos(I*$))}}else if(b===1)E=I=>s-Math.exp(-_*I)*(P+(w+_*P)*I);else{const I=_*Math.sqrt(b*b-1);E=$=>{const D=Math.exp(-b*_*$),F=Math.min(I*$,300);return s-D*((w+b*_*P)*Math.sinh(F)+I*P*Math.cosh(F))/I}}const N={calculatedDuration:y&&h||null,next:I=>{const $=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,$));const F=Math.abs(D)<=r,L=Math.abs(s-$)<=i;a.done=F&&L}return a.value=a.done?s:$,a},toString:()=>{const I=Math.min(Fo(N),Hr),$=Kl(D=>N.next(I*D).value,I,30);return I+"ms "+$},toTransition:()=>{}};return N}Gr.applyToOptions=t=>{const e=Ay(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:f=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=F=>a!==void 0&&F<a||l!==void 0&&F>l,w=F=>a===void 0?l:l===void 0||Math.abs(a-F)<Math.abs(l-F)?a:l;let b=n*e;const P=h+b,_=s===void 0?P:s(P);_!==P&&(b=_-h);const v=F=>-b*Math.exp(-F/r),E=F=>_+v(F),N=F=>{const L=v(F),Y=E(F);m.done=Math.abs(L)<=f,m.value=m.done?_:Y};let I,$;const D=F=>{y(m.value)&&(I=F,$=Gr({keyframes:[m.value,w(m.value)],velocity:Yl(E,F,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:c}))};return D(0),{calculatedDuration:null,next:F=>{let L=!1;return!$&&I===void 0&&(L=!0,N(F),D(F)),I!==void 0&&F>=I?$.next(F-I):(!L&&N(F),m)}}}function My(t,e,n){const r=[],i=n||Me.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=Qn(l,a)}r.push(a)}return r}function Ny(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=My(e,r,i),l=a.length,f=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=>f(Re(t[0],t[o-1],c)):f}function By(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 Dy(t){const e=[0];return By(e,t.length-1),e}function Fy(t,e){return t.map(n=>n*e)}function Ly(t,e){return t.map(()=>e||Ol).splice(0,t.length-1)}function sr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Xm(r)?r.map(Ml):Ml(r),o={done:!1,value:e[0]},s=Fy(n&&n.length===e.length?n:Dy(e),t),a=Ny(s,e,{ease:Array.isArray(i)?i:Ly(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const jy=t=>t!==null;function Vo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(jy),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const $y={decay:$o,inertia:$o,tween:sr,keyframes:sr,spring:Gr};function Jl(t){typeof t.type=="string"&&(t.type=$y[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 Vy=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=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(Vy,Gl(a[0],a[1])),a=[0,100]);const f=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=Fo(f));const{calculatedDuration:c}=f;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}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:f=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 _=this.currentTime-f*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,N=r;if(h){const F=Math.min(this.currentTime,i)/a;let L=Math.floor(F),Y=F%1;!Y&&F>=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"&&(N=s)),E=Re(0,1,Y)*a}const I=v?{done:!1,value:c[0]}:N.next(E);o&&(I.value=o(I.value));let{done:$}=I;!v&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);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 Uy(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)},zy={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]),qy={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=qy,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zy,i=a}if(!i)return Ho(e);const o=r[e],s=i[1].split(",").map(Hy);return typeof o=="function"?o(s):s[o]}const Wy=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Go(n,e)};function Hy(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),eu=t=>t===gn||t===ot,Gy=new Set(["x","y","z"]),Ky=wn.filter(t=>!Gy.has(t));function Yy(t){const e=[];return Ky.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=Yy(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 Xy(){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])}Uy(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 Jy=t=>t.startsWith("--");function Zy(t,e,n){Jy(e)?t.style.setProperty(e,n):t.style[e]=n}const Qy=xo(()=>window.ScrollTimeline!==void 0),tg={};function eg(t,e){const n=xo(t);return()=>tg[e]??n()}const iu=eg(()=>{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})`,ou={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 su(t,e){if(t)return typeof t=="function"?iu()?Kl(t,e):"ease-out":Il(t)?ar(t):Array.isArray(t)?t.map(n=>su(n,e)||ou.easeOut):ou[t]}function ng(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},f=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 f&&(m.pseudoElement=f),t.animate(c,m)}function au(t){return typeof t=="function"&&"applyToOptions"in t}function rg({type:t,...e}){return au(t)&&iu()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ig 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 f=rg(e);this.animation=ng(n,r,i,f,o),f.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):Zy(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&&Qy()?(this.animation.timeline=e,ce):n(this)}}const cu={anticipate:Pl,backInOut:Tl,circInOut:Cl};function og(t){return t in cu}function sg(t){typeof t.ease=="string"&&og(t.ease)&&(t.ease=cu[t.ease])}const lu=10;class ag extends ig{constructor(e){sg(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 cg(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 lg(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:cg(t)||(n==="spring"||au(n))&&r}function Zo(t){t.duration=0,t.type}const ug=new Set(["opacity","clipPath","filter","transform"]),fg=xo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dg(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:f}=e.owner.getProps();return fg()&&n&&ug.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const hg=40;class pg 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:f,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:f,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Jo;this.keyframeResolver=new y(a,(b,P,_)=>this.onKeyframesResolved(b,P,m,!_),l,f,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:f,onUpdate:c}=r;this.resolvedAt=re.now(),lg(e,o,s,a)||((Me.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>hg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!f&&dg(m)?new ag({...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(),Xy()),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 mg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yg(t){const e=mg.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function fu(t,e,n=1){const[r,i]=yg(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",...wn]),gg={test:t=>t==="auto",parse:t=>t},hu=t=>e=>e.test(t),pu=[gn,ot,_e,Ve,cy,ay,gg],mu=t=>pu.find(hu(t));function vg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||bl(t):!0}const wg=new Set(["brightness","contrast","saturate","opacity"]);function bg(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=wg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const _g=/\b([a-z-]*)\(.*?\)/gu,ts={...Ue,getAnimatableNone:t=>{const e=t.match(_g);return e?e.map(bg).join(" "):t}},yu={...gn,transform:Math.round},es={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,backgroundPositionX:ot,backgroundPositionY:ot,...{rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:qr,scaleX:qr,scaleY:qr,scaleZ:qr,skew:Ve,skewX:Ve,skewY:Ve,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:nr,originX:Ll,originY:Ll,originZ:ot},zIndex:yu,fillOpacity:nr,strokeOpacity:nr,numOctaves:yu},xg={...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=>xg[t];function vu(t,e){let n=gu(t);return n!==ts&&(n=Ue),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Sg=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"&&!Sg.has(o)&&or(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=vu(n,i)}class Ag 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 f=e[l];if(typeof f=="string"&&(f=f.trim(),ko(f))){const c=fu(f,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=f)}}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 f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}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||vg(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,f])=>{e.getValue(l).set(f)}),this.resolveNoneKeyframes()}}function Tg(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,Pg=t=>!isNaN(parseFloat(t));class kg{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=Pg(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>_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 _n(t,e){return new kg(t,e)}const{schedule:ns,cancel:nA}=Bl(queueMicrotask,!1),pe={x:!1,y:!1};function xu(){return pe.x||pe.y}function Cg(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 Su(t,e){const n=Tg(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Eu(t){return!(t.pointerType==="touch"||xu())}function Og(t,e,n={}){const[r,i,o]=Su(t,n),s=a=>{if(!Eu(a))return;const{target:l}=a,f=e(l,a);if(typeof f!="function"||!l)return;const c=h=>{Eu(h)&&(f(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,Ig=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rg(t){return Ig.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 Mg=(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 Ng(t,e,n={}){const[r,i,o]=Su(t,n),s=a=>{const l=a.currentTarget;if(!Pu(a))return;Kr.add(l);const f=e(l,a),c=(y,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),Kr.has(l)&&Kr.delete(l),Pu(y)&&typeof f=="function"&&f(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",f=>Mg(f,i)),!Rg(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ku(t){return wl(t)&&"ownerSVGElement"in t}function Bg(t){return ku(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Dg=[...pu,Vt,Ue],Fg=t=>Dg.find(hu(t)),os=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Lg 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 jg({children:t,isPresent:e,anchorX:n,root:r}){const i=hn(),o=it(null),s=it({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=Ft(os);return Jn(()=>{const{width:l,height:f,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!f)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(`
2
2
  [data-motion-pop-id="${i}"] {
3
3
  position: absolute !important;
4
4
  width: ${l}px !important;
@@ -97,9 +97,9 @@
97
97
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
98
98
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
99
99
  `);const v=_.state[a];if(v==null)return;JSON.stringify(i.getState())!==JSON.stringify(v)&&y(v);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(_)});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,_=>{if(a===void 0){y(_),c==null||c.init(i.getState());return}y(_[a]),c==null||c.init(pi(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ws(b.state,_=>{if(a===void 0){y(_);return}JSON.stringify(i.getState())!==JSON.stringify(_[a])&&y(_[a])});case"IMPORT_STATE":{const{nextLiftedState:_}=b.payload,v=(P=_.computedStates.slice(-1)[0])==null?void 0:P.state;if(!v)return;y(a===void 0?v:v[a]),c==null||c.send(null,_);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 wb(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)}}}},bb=(t,e)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:P=>P,version:0,merge:(P,_)=>({..._,...P}),...e},s=!1;const a=new Set,l=new Set;let f;try{f=o.getStorage()}catch{}if(!f)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 _;const v=c({state:P,version:o.version}).then(E=>f.setItem(o.name,E)).catch(E=>{_=E});if(_)throw _;return v},m=i.setState;i.setState=(P,_)=>{m(P,_),h()};const y=t((...P)=>{n(...P),h()},r,i);let w;const b=()=>{var P;if(!f)return;s=!1,a.forEach(v=>v(r()));const _=((P=o.onRehydrateStorage)==null?void 0:P.call(o,r()))||void 0;return br(f.getItem.bind(f))(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(()=>{_==null||_(w,void 0),s=!0,l.forEach(v=>v(w))}).catch(v=>{_==null||_(void 0,v)})};return i.persist={setOptions:P=>{o={...o,...P},P.getStorage&&(f=P.getStorage())},clearStorage:()=>{f==null||f.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},_b=(t,e)=>(n,r,i)=>{let o={storage:wb(()=>localStorage),partialize:b=>b,version:0,merge:(b,P)=>({...P,...b}),...e},s=!1;const a=new Set,l=new Set;let f=o.storage;if(!f)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 f.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(!f)return;s=!1,a.forEach(v=>{var E;return v((E=r())!=null?E:m)});const _=((P=o.onRehydrateStorage)==null?void 0:P.call(o,(b=r())!=null?b:m))||void 0;return br(f.getItem.bind(f))(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[N,I]=v;if(y=o.merge(I,(E=r())!=null?E:m),n(y,!0),N)return c()}).then(()=>{_==null||_(y,void 0),y=r(),s=!0,l.forEach(v=>v(y))}).catch(v=>{_==null||_(void 0,v)})};return i.persist={setOptions:b=>{o={...o,...b},b.storage&&(f=b.storage)},clearStorage:()=>{f==null||f.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},xb=(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."),bb(t,e)):_b(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 Sb(t,e){const n=mi(e);return t.some(r=>mi(r)===n)}const Nt=sb(vb(xb((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=Rd(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=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:Eb(t.conversations),guildSettings:t.guildSettings}),onRehydrateStorage:t=>()=>t.setRehydrated(!0)}),{enabled:!1}));function Eb(t){return t.map(e=>({...e,messages:e.messages.filter(n=>!n.ephemeral&&!n.pending)}))}const Md=460,Ab=750,Tb="https://api.staging.deskcord.chat";function Pb(){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)??Tb;if(!n)throw new Error("Cannot initialize discord chat. Please check your installation and embed.");return{app_id:n,api:r}}const ye=Pb();async function kb({content:t}){const e=Nt.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",Cb={content:"This conversation has been closed by the support.",support:!0,authorName:_r,date:Date.now()},Ob={content:"",support:!0,authorName:_r,date:Date.now(),customRenderer:Rn.IntroduceYourself};function Ib(t){return{content:`You are now chatting with ${t}.`,support:!0,authorName:_r,date:Date.now(),ephemeral:!0}}function Rb(t){return{content:"",support:!0,authorName:_r,date:Date.now(),customRenderer:Rn.UploadFile,customRendererProps:{file:t},ephemeral:!0}}function Mb(t){return{content:"",support:!1,authorName:"",date:Date.now(),ephemeral:!0,attachments:t}}const Nb=je(({accept:t,maxSize:e,uploadConfig:n,onFileSelect:r,onUploadComplete:i,onUploadStart:o,onError:s},a)=>{const l=it(null),f=it(null),{addMessage:c,getConversation:h,removeMessage:m,updateMessage:y}=Nt(),w=h();Xn(a,()=>({upload:async()=>{if(f.current)try{const N=new FormData;N.append("file",f.current),o==null||o(f.current),P(f.current);const I=await fetch(n.url,{method:n.method,headers:n.headers,body:N}),$=await I.json();i==null||i(I),_(f.current),b($)}catch(N){s==null||s(N),v(f.current)}},clear:()=>{f.current=null,l.current&&(l.current.value=""),r==null||r(null)}}));function b(N){w&&c(w.threadId,Mb(N.attachments))}function P(N){w&&c(w.threadId,Rb({fileName:N.name,status:"uploading",size:N.size}))}function _(N){var $;if(!w)return;const I=($=h())==null?void 0:$.messages.find(D=>{var F,L;return((L=(F=D.customRendererProps)==null?void 0:F.file)==null?void 0:L.fileName)===N.name});I&&m(w.threadId,I.date)}function v(N){var $,D;if(!w)return;const I=($=h())==null?void 0:$.messages.find(F=>{var L,Y;return((Y=(L=F.customRendererProps)==null?void 0:L.file)==null?void 0:Y.fileName)===N.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 C(kt,{children:[C("button",{className:"text-gray-500 hover:text-blue-500","aria-label":"Upload file",onClick:()=>{var N;return(N=l.current)==null?void 0:N.click()},children:C(Ew,{size:16})}),C("input",{type:"file",accept:t,ref:l,style:{display:"none"},onChange:N=>{var $;const I=($=N.target.files)==null?void 0:$[0];I&&I.size<=e?(f.current=I,r==null||r(I)):(f.current=null,r==null||r(null))}})]})}),Bb=({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"})}),Db=({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:Fb.map((e,n)=>C("button",{className:"text-2xl hover:bg-gray-100 rounded",onClick:()=>t(e),children:e},n))})}),Fb=["😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕"],Lb=({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(Pw,{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})]}),jb=t=>{const{inputMessage:e,setInputMessage:n,sendMessage:r,setFiles:i,files:o,showEmojiPicker:s,addEmoji:a,setShowEmojiPicker:l,attachmentPreviews:f,disabled:c=!1}=t,{getConversation:h}=Nt(),m=h(),y=yr.get("discord-widget"),w=it(null),P=(m==null?void 0:m.status)==="closed"||c,_=()=>{},v=F=>{i(o.filter(L=>(F==null?void 0:F.name)!==L.name))},E=F=>{F&&i([...o,F])},N=()=>{var F;(F=w.current)==null||F.upload()},I=()=>{o.length&&N(),r()},$=F=>{F.key==="Enter"&&(F.shiftKey?(F.preventDefault(),n(`${e}
100
- `)):(F.preventDefault(),I()))};return C("div",{className:"relative border-t border-t-gray-200",children:[s&&C(Db,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const F=o.map((L,Y)=>{if(!f[L.name])return null;const{url:Z,width:nt,height:st}=f[L.name];return C(Lb,{onDelete:()=>{var _t;i(o.filter(ft=>ft.name!==L.name)),(_t=w.current)==null||_t.clear()},fileName:L.name,width:nt,height:st,imageUrl:Z},`attachment-preview-${Y}`)});return C("div",{className:"m-2",children:F})})(),C("textarea",{id:"hs-textarea-ex-1",disabled:P,value:e,onChange:F=>n(F.target.value),onKeyDown:$,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:c?"Please introduce yourself first...":"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(Nb,{ref:w,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${y}`}},onUploadComplete:_,onUploadStart:v,onFileSelect:E})})}),C("div",{className:"flex items-center gap-x-1",children:[C("button",{type:"button",disabled:P,onClick:P?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 disabled:opacity-50 disabled:pointer-events-none",children:C(Tw,{size:16})}),C("button",{type:"button",disabled:P,onClick:()=>I(),style:{background:P?"#9CA3AF":"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:`inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white
100
+ `)):(F.preventDefault(),I()))};return C("div",{className:"relative border-t border-t-gray-200",children:[s&&C(Db,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const F=o.map((L,Y)=>{if(!f[L.name])return null;const{url:Z,width:nt,height:st}=f[L.name];return C(Lb,{onDelete:()=>{var _t;i(o.filter(ft=>ft.name!==L.name)),(_t=w.current)==null||_t.clear()},fileName:L.name,width:nt,height:st,imageUrl:Z},`attachment-preview-${Y}`)});return C("div",{className:"m-2",children:F})})(),C("textarea",{id:"hs-textarea-ex-1",disabled:P,value:e,onChange:F=>n(F.target.value),onKeyDown:$,className:"p-4 pb-12 block w-full border-t border-gray-200 text-base md: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:c?"Please introduce yourself first...":"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(Nb,{ref:w,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${y}`}},onUploadComplete:_,onUploadStart:v,onFileSelect:E})})}),C("div",{className:"flex items-center gap-x-1",children:[C("button",{type:"button",disabled:P,onClick:P?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 disabled:opacity-50 disabled:pointer-events-none",children:C(Tw,{size:16})}),C("button",{type:"button",disabled:P,onClick:()=>I(),style:{background:P?"#9CA3AF":"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:`inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white
101
101
  transform transition-transform duration-150
102
- hover:scale-105 active:scale-95 disabled:opacity-50 disabled:pointer-events-none disabled:transform-none`,children:C(Bb,{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",$b="navigation",Vb="no-scroll",Hs="portal",Ub="root",Fd="toolbar",Gs="loading",Ks="error",Ys="complete",zb="placeholder",qb=t=>`active-slide-${t}`,Ld="flex_center",Wb="no_scroll",jd="no_scroll_padding",Hb="slide_wrapper",nn="prev",rn="next",$d="swipe",Mn="close",Vd="onPointerDown",Ud="onPointerMove",zd="onPointerUp",qd="onPointerLeave",Wd="onPointerCancel",Hd="onKeyDown",Gb="onKeyUp",Gd="onWheel",Kb="Escape",Yb="ArrowLeft",Xb="ArrowRight",Jb="button",Xs="icon",Kd="contain",Yd="cover",Zb="Unknown action type",Xd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function St(t){return`${Xd}${t}`}function ie(t){return`--${Xd}${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 Jd(...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 Zd(){return typeof window<"u"}function t_(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 e_(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 n_(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 r_(t){return Qd(t)?t.src:void 0}function i_(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const o_=Number(al.split(".")[0])>=19;function s_(t){return{inert:o_?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: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 Nn(t,e,n){return t.flatMap(r=>{var i;return(i=rh(r,e,n))!==null&&i!==void 0?i:[]})}function a_(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=Nn(r,y,b=>[Gt(w,[b])])},s=(y,w)=>{r=Nn(r,y,b=>[Gt(b.module,[Gt(w,b.children)])])},a=(y,w,b)=>{r=Nn(r,y,P=>{var _;return[Gt(P.module,[...b?[Gt(w)]:[],...(_=P.children)!==null&&_!==void 0?_:[],...b?[]:[Gt(w)]])]})},l=(y,w,b)=>{r=Nn(r,y,P=>[...b?[Gt(w)]:[],P,...b?[]:[Gt(w)]])},f=y=>{s(Dd,y)},c=(y,w)=>{r=Nn(r,y,b=>[Gt(w,b.children)])},h=y=>{r=Nn(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:f,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 c_({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 et(ih.Provider,{value:n},e)}const oh=te(null),vi=on("useEvents","EventsContext",oh);function l_({children:t}){const[e]=vt({});pt(()=>()=>{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(f=>f!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(f=>f(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return et(oh.Provider,{value:n},t)}const sh=te(null),Sr=on("useLightboxProps","LightboxPropsContext",sh);function u_({children:t,...e}){return et(sh.Provider,{value:e},t)}const ah=te(null),wi=on("useLightboxState","LightboxStateContext",ah),ch=te(null),f_=on("useLightboxDispatch","LightboxDispatchContext",ch);function d_(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(Zb)}}function h_({slides:t,index:e,children:n}){const[r,i]=Yn(d_,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Zs(t,e)});pt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=Ht(()=>({...r,state:r,dispatch:i}),[r,i]);return et(ch.Provider,{value:i},et(ah.Provider,{value:o},n))}const lh=te(null),bi=on("useTimeouts","TimeoutsContext",lh);function p_({children:t}){const[e]=vt([]);pt(()=>()=>{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 et(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:f,labels:c}=Sr(),h=Qb(c,e);return et("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(St(Jb),n),onClick:o,style:{...s,...f.button},...a},i?i():et(r,{className:St(Xs),style:f.icon}))});function m_(t,e){const n=r=>et("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 m_(t,et("g",{fill:"currentColor"},et("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const y_=Er("Close",et("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"})),g_=Er("Previous",et("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),v_=Er("Next",et("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),w_=Er("Loading",et(kt,null,Array.from({length:8}).map((t,e,n)=>et("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)`})))),b_=Er("Error",et("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=Zd()?Ie:pt;function fh(){const[t,e]=vt(!1);return pt(()=>{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 __(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=it(),r=it(),i=fh();return Ar(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:f,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),__(t.current))||{};if(l&&f){(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:f,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=it(null),e=it(),[n,r]=vt();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=f=>parseFloat(f)||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=it(),{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=it(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 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 x_(t,e=!1){const n=it();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]=vt(!1);return Ar(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function S_(){const[t]=vt({}),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(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(Gb,i),onWheel:i=>e(Gd,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 mh(t,e){const n=it(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 E_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:f}){var c,h,m,y,w,b,P;const[_,v]=vt(Gs),{publish:E}=vi(),{setTimeout:N}=bi(),I=it(null);pt(()=>{e===0&&E(qb(_))},[e,_,E]);const $=Ut(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Ys),N(()=>{a==null||a(G)},0))})}),D=Ct(G=>{I.current=G,G!=null&&G.complete&&$(G)},[$]),F=Ct(G=>{$(G.currentTarget)},[$]),L=Ut(()=>{v(Ks),l==null||l()}),Y=e_(t,i),Z=(G,S)=>Number.isFinite(G)?G:S,nt=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),_t=nt&&st?{maxWidth:`min(${nt}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},ft=(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=ft&&r&&Zd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:z,...H}=o||{};return et(kt,null,et("img",{ref:D,onLoad:F,onError:L,onClick:s,draggable:!1,className:Ne(St(ia()),Y&&St(ia("cover")),_!==Ys&&St(ia("loading")),z),style:{..._t,...f,...ht},...H,alt:t.alt,sizes:at,srcSet:ft,src:t.src}),_!==Ys&&et("div",{className:St(ra(zb))},_===Gs&&(n!=null&&n.iconLoading?n.iconLoading():et(w_,{className:Ne(St(Xs),St(ra(Gs)))})),_===Ks&&(n!=null&&n.iconError?n.iconError():et(b_,{className:Ne(St(Xs),St(ra(Ks)))}))))}const A_=je(function({className:e,children:n,...r},i){const o=it(null);return et(c_,{nodeRef:o},et("div",{ref:ea(i,o),className:Ne(St("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 T_(t,e,n,r,i){pt(()=>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 P_(t,e,n,r,i,o,s,a,l,f,c,h,m,y){const w=it(0),b=it([]),P=it(),_=it(0),v=it(ge.NONE),E=Ct(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))},[]),N=Ct(L=>{E(L),L.persist(),b.current.push(L)},[E]),I=Ut(L=>{N(L)}),$=(L,Y)=>f&&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()-_.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&&($(Z,2*oa)?m(Z,Y):y(Z)),w.current=0,v.current=ge.NONE}E(L)}),F=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 nt=L.clientX-Y.clientX,st=L.clientY-Y.clientY;if(P.current===void 0){const _t=ft=>{N(L),P.current=L.pointerId,_.current=Date.now(),v.current=ft};Math.abs(nt)>Math.abs(st)&&Math.abs(nt)>oa&&e(nt)?(_t(ge.SWIPE),i()):Math.abs(st)>Math.abs(nt)&&$(st,oa)&&(_t(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(w.current=nt,o(nt)):v.current===ge.PULL&&(w.current=st,h(st)))}});T_(t,I,F,D)}function k_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=it(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 C_(t,e,n,r,i,o,s,a,l){const f=it(0),c=it(0),h=it(),m=it(),y=it(0),w=it(),b=it(0),{setTimeout:P,clearTimeout:_}=bi(),v=Ct(()=>{h.current&&(_(h.current),h.current=void 0)},[_]),E=Ct(()=>{m.current&&(_(m.current),m.current=void 0)},[_]),N=Ut(()=>{t!==Qt.SWIPE&&(f.current=0,b.current=0,v(),E())});pt(N,[t,N]);const I=Ut(D=>{m.current=void 0,f.current===D&&l(f.current)}),$=Ut(D=>{if(D.ctrlKey||Math.abs(D.deltaY)>Math.abs(D.deltaX))return;const F=L=>{y.current=L,_(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)){F(D.deltaX);return}if(!n(-D.deltaX))return;if(c.current+=D.deltaX,v(),Math.abs(c.current)>30)c.current=0,F(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=f.current-D.deltaX;if(L=Math.min(Math.abs(L),r)*Math.sign(L),f.current=L,s(L),E(),Math.abs(L)>.2*r){F(D.deltaX),a(L,Date.now()-b.current);return}m.current=P(()=>I(L),2*i)}else F(D.deltaX)});pt(()=>e(Gd,$),[e,$])}const yh=Js("container"),gh=te(null),Tr=on("useController","ControllerContext",gh);function O_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:f,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,w]=vt(),b=wi(),P=f_(),[_,v]=vt(Qt.NONE),E=it(0),N=it(0),I=it(1),{registerSensors:$,subscribeSensors:D}=S_(),{subscribe:F,publish:L}=vi(),Y=_i(),Z=_i(),nt=_i(),{containerRef:st,setContainerRef:_t,containerRect:ft}=hh(),It=ea(k_({preventDefaultWheelX:h,preventDefaultWheelY:m}),_t),at=it(null),ht=ea(at,void 0),{getOwnerDocument:z}=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()}),M=Ut(()=>e),x=Ut(()=>b),A=Ct(J=>L(nn,J),[L]),O=Ct(J=>L(rn,J),[L]),q=Ct(()=>L(Mn),[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;N.current=J,I.current=(()=>{const X=c&&J>0?J:f&&J<0?-J:0;return Math.min(Math.max(t_(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&&ft)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}}),dt=(J,gt)=>{if(f||c){K(J);let Et=0;at.current&&(Et=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:I.current,duration:Et})),nt(()=>{K(0),v(Qt.NONE)},Et),v(Qt.ANIMATION),gt||q()}},{prepareAnimation:wt,isAnimationPlaying:Pt}=dh(at,(J,gt,Et)=>{var k;if(at.current&&ft&&(!((k=b.animation)===null||k===void 0)&&k.duration)){const R=gi(r.spacing),X=(R.percent?R.percent*ft.width/100:R.pixel)||0;return{keyframes:[{transform:`translate(${G(b.globalIndex-J.index)*(ft.width+X)+J.rect.x-gt.x+Et.x}px, 0)`},{transform:"translate(0, 0)"}],duration:b.animation.duration,easing:b.animation.easing}}}),$t=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 d=ft==null?void 0:ft.width,g=J.duration||0,T=d?R/d*Math.abs(k):R;Q!==0?(g<T?p=p/T*Math.max(g,T/5):d&&(p=R/d*(d-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&&wt({rect:at.current.getBoundingClientRect(),index:b.globalIndex}),v(ct),L($d,{type:"swipe",increment:u,duration:p,easing:X})});pt(()=>{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,(ft==null?void 0:ft.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>W(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=>dt(J),J=>dt(J,!0)];P_(...Yt,f,c,...Jt),C_(_,...Yt);const Wt=Ut(()=>{o.focus&&z().querySelector(`.${St(Hs)} .${St(yh())}`)&&S()});pt(Wt,[Wt]);const U=Ut(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:b.currentIndex})});pt(U,[b.globalIndex,U]),pt(()=>Jd(F(nn,J=>$t({direction:nn,...J})),F(rn,J=>$t({direction:rn,...J})),F($d,J=>P(J))),[F,$t,P]);const he=Ht(()=>({prev:A,next:O,close:q,focus:S,slideRect:ft?n_(ft,r.padding):{width:0,height:0},containerRect:ft||{width:0,height:0},subscribeSensors:D,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:w}),[A,O,q,S,D,ft,st,ht,y,w,r.padding]);return Xn(o.ref,()=>({prev:A,next:O,close:q,focus:S,getLightboxProps:M,getLightboxState:x}),[A,O,q,S,M,x]),et("div",{ref:It,className:Ne(St(yh()),St(Ld)),style:{..._===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(E.current)}px`}:null,..._===Qt.PULL?{[ie("pull_offset")]:`${Math.round(N.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,...$},ft&&et(gh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const I_=sn(Dd,O_);function an(t){return xr(Bd,t)}function vh(t){return xr("slide",t)}function R_({slide:t,offset:e}){const n=it(null),{currentIndex:r}=wi(),{slideRect:i,close:o,focus:s}=Tr(),{render:a,carousel:{imageFit:l,imageProps:f},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=Sr(),{getOwnerDocument:y}=ta(),w=e!==0;pt(()=>{var _;w&&(!((_=n.current)===null||_===void 0)&&_.contains(y().activeElement))&&s()},[w,s,y]);const b=()=>{var _,v,E,N;let I=(_=a.slide)===null||_===void 0?void 0:_.call(a,{slide:t,offset:e,rect:i});return!I&&Qd(t)&&(I=et(E_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:f,onClick:w?void 0:()=>c==null?void 0:c({index:r})})),I?et(kt,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((E=a.slideContainer)!==null&&E!==void 0?E:({children:$})=>$)({slide:t,children:I}),(N=a.slideFooter)===null||N===void 0?void 0:N.call(a,{slide:t})):null},P=_=>{const v=n.current,E=_.target instanceof HTMLElement?_.target:void 0;h&&E&&v&&(E===v||Array.from(v.children).find(N=>N===E)&&E.classList.contains(St(Hb)))&&o()};return et("div",{ref:n,className:Ne(St(vh()),!w&&St(vh("current")),St(Ld)),...s_(w),onClick:P,style:m},b())}function M_(){const t=Sr().styles.slide;return et("div",{className:St("slide"),style:t})}function N_({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=wi(),{setCarouselRef:i}=Tr(),o=gi(t.spacing),s=gi(t.padding),a=i_(t,e,1),l=[];if(eh(e))for(let f=n-a;f<=n+a;f+=1){const c=nh(e,f),h=r-n+f,m=t.finite&&(f<0||f>e.length-1);l.push(m?{key:h}:{key:[`${h}`,r_(c)].filter(Boolean).join("|"),offset:f-n,slide:c})}return et("div",{ref:i,className:Ne(St(an()),l.length>0&&St(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:f,slide:c,offset:h})=>c?et(R_,{key:f,slide:c,offset:h}):et(M_,{key:f})))}const B_=sn(Bd,N_);function wh(){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 D_(t){var e;const n=na(),{publish:r}=vi(),{animation:i}=Sr(),{prevDisabled:o,nextDisabled:s}=wh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=mh(()=>r(nn),a),f=mh(()=>r(rn),a),c=Ut(h=>{switch(h.key){case Kb:r(Mn);break;case Yb:(n?s:o)||(n?f:l)();break;case Xb:(n?o:s)||(n?l:f)();break}});pt(()=>t(Hd,c),[t,c])}function bh({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return et(uh,{label:t,icon:e,renderIcon:n,className:St(`navigation_${r}`),disabled:o,onClick:i,style:s,...x_(Tr().focus,o)})}function F_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=Tr(),{prevDisabled:l,nextDisabled:f}=wh();return D_(a),et(kt,null,t?t():et(bh,{label:"Previous",action:nn,icon:g_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():et(bh,{label:"Next",action:rn,icon:v_,renderIcon:r,style:i.navigationNext,disabled:f,onClick:s}))}const L_=sn($b,F_),_h=St(Wb),j_=St(jd);function $_(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 V_({noScroll:{disabled:t},children:e}){const n=na(),{getOwnerDocument:r,getOwnerWindow:i}=ta();return pt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),f=Math.round(s.innerWidth-l.clientWidth);if(f>0){o.push(xh(a,f,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];$_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(j_)&&o.push(xh(m,f,n))}}return a.classList.add(_h),()=>{a.classList.remove(_h),o.forEach(c=>c())}},[n,t,r,i]),et(kt,null,e)}const U_=sn(Vb,V_);function Sh(t){return xr(Hs,t)}function Eh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function z_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=vt(!1),[f,c]=vt(!1),h=it([]),m=it(null),{setTimeout:y}=bi(),{subscribe:w}=vi(),P=fh()?0:e.fade;pt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const _=Ut(()=>{h.current.forEach(I=>I()),h.current=[]}),v=Ut(()=>{var I;c(!1),_(),(I=i.exiting)===null||I===void 0||I.call(i),y(()=>{var $;($=i.exited)===null||$===void 0||$.call(i),s()},P)});pt(()=>w(Mn,v),[w,v]);const E=Ut(I=>{var $,D,F;I.scrollTop,c(!0),($=i.entering)===null||$===void 0||$.call(i);const L=(F=(D=I.parentNode)===null||D===void 0?void 0:D.children)!==null&&F!==void 0?F:[];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(Eh(Z,"inert","")),h.current.push(Eh(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)}),N=Ct(I=>{I?E(I):_()},[E,_]);return a?po(et(A_,{ref:N,className:Ne(r,St(Sh()),St(jd),f&&St(Sh("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 q_=sn(Hs,z_);function W_({children:t}){return et(kt,null,t)}const H_=sn(Ub,W_);function G_(t){return xr(Fd,t)}function K_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=Tr(),{setContainerRef:s,containerRect:a}=hh();Ar(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():et(uh,{key:Mn,label:"Close",icon:y_,renderIcon:n,onClick:i});return et("div",{ref:s,style:r.toolbar,className:St(G_())},t==null?void 0:t.map(f=>f===Mn?l():f))}const Y_=sn(Fd,K_);function Ah(t,e){var n;return et(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>Ah(r,e)))}function X_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function J_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:f,...c}){const{animation:h,carousel:m,render:y,toolbar:w,controller:b,noScroll:P,on:_,slides:v,index:E,plugins:N,...I}=Qs,{config:$,augmentation:D}=a_([Gt(q_,[Gt(U_,[Gt(I_,[Gt(B_),Gt(Y_),Gt(L_)])])])],a||N),F=D({animation:X_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{...w,...r},controller:{...b,...i},noScroll:{...P,...o},on:{..._,...s},...I,...c});return F.open?et(u_,{...F},et(h_,{slides:l||v,index:yi(f||E)},et(p_,null,et(l_,null,Ah(Gt(H_,$),F))))):null}const Th=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Nt(),[r,i]=vt(!1),o=Ft(gm);function s(){if(o){const f=o.getElementById("deskcord-lightbox-portal");if(f)return f}const l=document.getElementById("deskcord-lightbox-portal");return l||document.body}function a(){return e!=null&&e.length?C(J_,{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,f)=>{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}-${f}`)}),a()]},`conv-cus-attachment-${t}`):null},Z_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],f=[];for(let c=0;c<a.length;c++)if(f.push(a[c]),l[c]){const h=o[l[c]];h&&f.push(C("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return f}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(Th,{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," · ",Nd(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(Th,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),t1=({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}`),e1=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Nt(),[o,s]=vt(r),[a,l]=vt(n),[f,c]=vt(""),[h,m]=vt(!1),y=_=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(_),w=!!n&&!!r,b=_=>{if(_.preventDefault(),!!a.trim()){if(!y(o)){c("Please enter a valid email address");return}h||(m(!0),c(""),t(o),e(a))}};function P(){return C("form",{onSubmit:b,className:"w-full space-y-4",children:[C("div",{className:"mb-4",children:[C("h3",{className:"text-base font-semibold text-gray-900 mb-1",children:"Let's get started"}),C("p",{className:"text-sm text-gray-600",children:"Tell us a bit about yourself so we can assist you better."})]}),C("div",{children:[C("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:"Your name"}),C("div",{className:"relative",children:[C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-3.5",children:C(kw,{size:18,className:"text-gray-400"})}),C("input",{type:"text",id:"name",value:a,onChange:_=>l(_.target.value),name:"name",className:"py-2.5 px-4 ps-11 block w-full bg-white border border-gray-300 rounded-lg text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-[#7289DA] focus:ring-opacity-50 focus:border-transparent disabled:bg-gray-100 disabled:text-gray-500 disabled:cursor-not-allowed",placeholder:"John Smith",disabled:w,required:!0})]})]}),C("div",{children:[C("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email address"}),C("div",{className:"relative",children:[C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-3.5",children:C(xw,{size:18,className:"text-gray-400"})}),C("input",{type:"email",id:"email",value:o,onChange:_=>{s(_.target.value),f&&c("")},name:"email",className:`py-2.5 px-4 ps-11 block w-full bg-white rounded-lg text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-opacity-50 focus:border-transparent disabled:bg-gray-100 disabled:text-gray-500 disabled:cursor-not-allowed border ${f?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-[#7289DA]"}`,placeholder:"you@example.com",disabled:w,required:!0})]}),f&&C("p",{className:"text-red-600 text-sm mt-2 flex items-center gap-1",children:[C("span",{className:"inline-block w-1 h-1 bg-red-600 rounded-full"}),f]})]}),C("p",{className:"text-xs text-gray-500 text-center",children:"We'll never share your information"}),!n||!r?C("button",{type:"submit",className:"w-full py-2.5 px-4 bg-[#7289DA] hover:bg-[#5B6EAB] text-white font-medium text-sm rounded-lg transition-all duration-200 transform hover:shadow-md active:scale-95 focus:outline-none focus:ring-2 focus:ring-[#7289DA] focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed",disabled:h,children:"Start Chatting"}):null]})}return C(kt,{children:[C("li",{className:`max-w-lg flex gap-x-2 sm:gap-x-4 me-11 ${i?"opacity-75":""}`,children:C("div",{className:"w-full rounded-xl p-5 bg-white shadow-lg border border-gray-100 overflow-hidden",children:P()})}),n&&r&&C("li",{className:"flex ms-auto my-4 animate-slide-in",style:{marginTop:"1rem"},children:C("div",{className:"grow",children:C("div",{style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"min-w-10 inline-block rounded-lg px-4 py-2 shadow-sm flex items-center gap-2",children:[C(bw,{size:16,className:"text-white flex-shrink-0"}),C("p",{className:"text-sm text-white font-medium",children:["Nice to meet you, ",C("span",{className:"font-semibold",children:n}),"! Feel free to ask us anything."]})]})})})]})};function n1(t,e){const n=it();pt(()=>{n.current=t},[t]),pt(()=>{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 r1(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 i1=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=vt(!0),[s,a]=vt(0);return n1(()=>{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(_w,{})}),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:r1(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}`)},o1=({conversation:t,open:e})=>{const n=it(!1),{isChatOpen:r}=Nt();pt(()=>{r?n.current=!0:n.current=!1},[r]);function i(l,f){const c=`${l.date}-${f}`;let h;if(typeof l.customRenderer<"u")switch(l.customRenderer){case Rn.IntroduceYourself:h=C(e1,{});break;case Rn.UploadFile:h=C(i1,{message:l,indexKey:c});break;default:h=a(l,c)}else l.authorName===_r?h=a(l,c):l.support?h=o(l,c):h=s(l,c);return r&&(l.pending??(l.support&&n.current))?C(Ze.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:h},c):C("li",{children:h},c)}function o(l,f){var y;const c=(y=t==null?void 0:t.messages)==null?void 0:y.filter(w=>w.support),h=c==null?void 0:c[c.length-1],m=l.date===(h==null?void 0:h.date);return C(Z_,{renderTimestamp:m,message:l,indexKey:f})}function s(l,f){return C(Q_,{message:l,indexKey:f})}function a(l,f){return C(t1,{message:l,indexKey:f})}return C("ul",{className:"space-y-[3px]",children:[[...(t==null?void 0:t.messages)??[]].sort((l,f)=>l.date-f.date).map(i),t&&!e&&i(Cb,1)]})},s1=()=>{const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,email:i,updateMessage:o,isChatOpen:s}=Nt(),a=!!(r&&i),l=it(!1);pt(()=>{s&&!l.current&&(l.current=!0),s||(l.current=!1)},[s]);const[f,c]=vt(!1),[h,m]=vt([]),[y,w]=vt({}),b=t(),P=(b==null?void 0:b.status)==="open",[_,v]=vt("");pt(()=>{const $={};h.forEach(D=>{const F=new FileReader;F.addEventListener("load",function(){const L=new Image;L.onload=()=>{$[D.name]={url:F.result,width:L.width,height:L.height,size:D.size},w($)},L.src=F.result},!1),F.readAsDataURL(D)})},[h]);const E=$=>{v(D=>D+$)},N=async()=>{const $=Date.now(),D={support:!1,content:_,date:$,authorName:r,pending:!0};if(_.trim()!==""){v(""),e(b?b.threadId:"TEMP",D);const F=await kb({content:_});F&&((!b||b.threadId==="TEMP")&&n(F.threadId),o(F.threadId,$,{...D,pending:!1,date:F.date}))}},I=s&&!l.current;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:I?{opacity:0,x:20}:!1,animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:C(o1,{conversation:b,open:P})})}),C(jb,{attachmentPreviews:y,files:h,setFiles:m,inputMessage:_,setInputMessage:v,showEmojiPicker:f,setShowEmojiPicker:c,addEmoji:E,sendMessage:N,disabled:!a})]})};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 a1(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const Se=Object.create(null);Se.open="0",Se.close="1",Se.ping="2",Se.pong="3",Se.message="4",Se.upgrade="5",Se.noop="6";const xi=Object.create(null);Object.keys(Se).forEach(t=>{xi[Se[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(Se[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 c1(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+/",Pr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Mh.length;t++)Pr[Mh.charCodeAt(t)]=t;const l1=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 f=new ArrayBuffer(e),c=new Uint8Array(f);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 f},u1=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:f1(t.substring(1),e)}:xi[n]?t.length>1?{type:xi[n],data:t.substring(1)}:{type:xi[n]}:sa},f1=(t,e)=>{if(u1){const n=l1(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="",d1=(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))})})},h1=(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 p1(){return new TransformStream({transform(t,e){c1(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 m1(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),f=new DataView(l.buffer,l.byteOffset,l.length),c=f.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(sa);break}i=c*Math.pow(2,32)+f.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 Dh=4;function zt(t){if(t)return y1(t)}function y1(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 g1=fe.setTimeout,v1=fe.clearTimeout;function Ai(t,e){e.useNativeTimers?(t.setTimeoutFn=g1.bind(fe),t.clearTimeoutFn=v1.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const w1=1.33;function b1(t){return typeof t=="string"?_1(t):Math.ceil((t.byteLength||t.size)*w1)}function _1(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 x1(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function S1(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 E1 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 E1(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=x1(e);return n.length?"?"+n:""}}const Lh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),da=64,A1={};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++)A1[Lh[Ti]]=Ti;let zh=!1;try{zh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const T1=zh;function qh(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||T1))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function cA(){}function P1(){}const k1=function(){return new qh({xdomain:!1}).responseType!=null}();class C1 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=k1&&!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)};h1(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,d1(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=P1,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 O1={},Pi={};Pi.byteLength=M1,Pi.toByteArray=B1,Pi.fromByteArray=L1;for(var Ae=[],de=[],I1=typeof Uint8Array<"u"?Uint8Array:Array,ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn=0,R1=ha.length;Bn<R1;++Bn)Ae[Bn]=ha[Bn],de[ha.charCodeAt(Bn)]=Bn;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 M1(t){var e=Hh(t),n=e[0],r=e[1];return(n+r)*3/4-r}function N1(t,e,n){return(e+n)*3/4-n}function B1(t){var e,n=Hh(t),r=n[0],i=n[1],o=new I1(N1(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 D1(t){return Ae[t>>18&63]+Ae[t>>12&63]+Ae[t>>6&63]+Ae[t&63]}function F1(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(D1(r));return i.join("")}function L1(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(F1(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Ae[e>>2]+Ae[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Ae[e>>10]+Ae[e>>4&63]+Ae[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,f=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-f;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-f}return(y?-1:1)*s*Math.pow(2,o-r)},pa.write=function(t,e,n,r,i,o){var s,a,l,f=o*8-i-1,c=(1<<f)-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,f+=i;f>0;t[n+y]=s&255,y+=w,s/=256,f-=8);t[n+y-w]|=b*128};/*!
102
+ hover:scale-105 active:scale-95 disabled:opacity-50 disabled:pointer-events-none disabled:transform-none`,children:C(Bb,{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",$b="navigation",Vb="no-scroll",Hs="portal",Ub="root",Fd="toolbar",Gs="loading",Ks="error",Ys="complete",zb="placeholder",qb=t=>`active-slide-${t}`,Ld="flex_center",Wb="no_scroll",jd="no_scroll_padding",Hb="slide_wrapper",nn="prev",rn="next",$d="swipe",Mn="close",Vd="onPointerDown",Ud="onPointerMove",zd="onPointerUp",qd="onPointerLeave",Wd="onPointerCancel",Hd="onKeyDown",Gb="onKeyUp",Gd="onWheel",Kb="Escape",Yb="ArrowLeft",Xb="ArrowRight",Jb="button",Xs="icon",Kd="contain",Yd="cover",Zb="Unknown action type",Xd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function St(t){return`${Xd}${t}`}function ie(t){return`--${Xd}${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 Jd(...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 Zd(){return typeof window<"u"}function t_(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 e_(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 n_(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 r_(t){return Qd(t)?t.src:void 0}function i_(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const o_=Number(al.split(".")[0])>=19;function s_(t){return{inert:o_?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: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 Nn(t,e,n){return t.flatMap(r=>{var i;return(i=rh(r,e,n))!==null&&i!==void 0?i:[]})}function a_(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=Nn(r,y,b=>[Gt(w,[b])])},s=(y,w)=>{r=Nn(r,y,b=>[Gt(b.module,[Gt(w,b.children)])])},a=(y,w,b)=>{r=Nn(r,y,P=>{var _;return[Gt(P.module,[...b?[Gt(w)]:[],...(_=P.children)!==null&&_!==void 0?_:[],...b?[]:[Gt(w)]])]})},l=(y,w,b)=>{r=Nn(r,y,P=>[...b?[Gt(w)]:[],P,...b?[]:[Gt(w)]])},f=y=>{s(Dd,y)},c=(y,w)=>{r=Nn(r,y,b=>[Gt(w,b.children)])},h=y=>{r=Nn(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:f,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 c_({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 et(ih.Provider,{value:n},e)}const oh=te(null),vi=on("useEvents","EventsContext",oh);function l_({children:t}){const[e]=vt({});pt(()=>()=>{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(f=>f!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(f=>f(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return et(oh.Provider,{value:n},t)}const sh=te(null),Sr=on("useLightboxProps","LightboxPropsContext",sh);function u_({children:t,...e}){return et(sh.Provider,{value:e},t)}const ah=te(null),wi=on("useLightboxState","LightboxStateContext",ah),ch=te(null),f_=on("useLightboxDispatch","LightboxDispatchContext",ch);function d_(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(Zb)}}function h_({slides:t,index:e,children:n}){const[r,i]=Yn(d_,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Zs(t,e)});pt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=Ht(()=>({...r,state:r,dispatch:i}),[r,i]);return et(ch.Provider,{value:i},et(ah.Provider,{value:o},n))}const lh=te(null),bi=on("useTimeouts","TimeoutsContext",lh);function p_({children:t}){const[e]=vt([]);pt(()=>()=>{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 et(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:f,labels:c}=Sr(),h=Qb(c,e);return et("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(St(Jb),n),onClick:o,style:{...s,...f.button},...a},i?i():et(r,{className:St(Xs),style:f.icon}))});function m_(t,e){const n=r=>et("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 m_(t,et("g",{fill:"currentColor"},et("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const y_=Er("Close",et("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"})),g_=Er("Previous",et("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),v_=Er("Next",et("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),w_=Er("Loading",et(kt,null,Array.from({length:8}).map((t,e,n)=>et("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)`})))),b_=Er("Error",et("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=Zd()?Ie:pt;function fh(){const[t,e]=vt(!1);return pt(()=>{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 __(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=it(),r=it(),i=fh();return Ar(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:f,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),__(t.current))||{};if(l&&f){(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:f,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=it(null),e=it(),[n,r]=vt();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=f=>parseFloat(f)||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=it(),{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=it(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 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 x_(t,e=!1){const n=it();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]=vt(!1);return Ar(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function S_(){const[t]=vt({}),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(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(Gb,i),onWheel:i=>e(Gd,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 mh(t,e){const n=it(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 E_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:f}){var c,h,m,y,w,b,P;const[_,v]=vt(Gs),{publish:E}=vi(),{setTimeout:N}=bi(),I=it(null);pt(()=>{e===0&&E(qb(_))},[e,_,E]);const $=Ut(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Ys),N(()=>{a==null||a(G)},0))})}),D=Ct(G=>{I.current=G,G!=null&&G.complete&&$(G)},[$]),F=Ct(G=>{$(G.currentTarget)},[$]),L=Ut(()=>{v(Ks),l==null||l()}),Y=e_(t,i),Z=(G,S)=>Number.isFinite(G)?G:S,nt=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),_t=nt&&st?{maxWidth:`min(${nt}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},ft=(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=ft&&r&&Zd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:z,...H}=o||{};return et(kt,null,et("img",{ref:D,onLoad:F,onError:L,onClick:s,draggable:!1,className:Ne(St(ia()),Y&&St(ia("cover")),_!==Ys&&St(ia("loading")),z),style:{..._t,...f,...ht},...H,alt:t.alt,sizes:at,srcSet:ft,src:t.src}),_!==Ys&&et("div",{className:St(ra(zb))},_===Gs&&(n!=null&&n.iconLoading?n.iconLoading():et(w_,{className:Ne(St(Xs),St(ra(Gs)))})),_===Ks&&(n!=null&&n.iconError?n.iconError():et(b_,{className:Ne(St(Xs),St(ra(Ks)))}))))}const A_=je(function({className:e,children:n,...r},i){const o=it(null);return et(c_,{nodeRef:o},et("div",{ref:ea(i,o),className:Ne(St("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 T_(t,e,n,r,i){pt(()=>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 P_(t,e,n,r,i,o,s,a,l,f,c,h,m,y){const w=it(0),b=it([]),P=it(),_=it(0),v=it(ge.NONE),E=Ct(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))},[]),N=Ct(L=>{E(L),L.persist(),b.current.push(L)},[E]),I=Ut(L=>{N(L)}),$=(L,Y)=>f&&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()-_.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&&($(Z,2*oa)?m(Z,Y):y(Z)),w.current=0,v.current=ge.NONE}E(L)}),F=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 nt=L.clientX-Y.clientX,st=L.clientY-Y.clientY;if(P.current===void 0){const _t=ft=>{N(L),P.current=L.pointerId,_.current=Date.now(),v.current=ft};Math.abs(nt)>Math.abs(st)&&Math.abs(nt)>oa&&e(nt)?(_t(ge.SWIPE),i()):Math.abs(st)>Math.abs(nt)&&$(st,oa)&&(_t(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(w.current=nt,o(nt)):v.current===ge.PULL&&(w.current=st,h(st)))}});T_(t,I,F,D)}function k_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=it(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 C_(t,e,n,r,i,o,s,a,l){const f=it(0),c=it(0),h=it(),m=it(),y=it(0),w=it(),b=it(0),{setTimeout:P,clearTimeout:_}=bi(),v=Ct(()=>{h.current&&(_(h.current),h.current=void 0)},[_]),E=Ct(()=>{m.current&&(_(m.current),m.current=void 0)},[_]),N=Ut(()=>{t!==Qt.SWIPE&&(f.current=0,b.current=0,v(),E())});pt(N,[t,N]);const I=Ut(D=>{m.current=void 0,f.current===D&&l(f.current)}),$=Ut(D=>{if(D.ctrlKey||Math.abs(D.deltaY)>Math.abs(D.deltaX))return;const F=L=>{y.current=L,_(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)){F(D.deltaX);return}if(!n(-D.deltaX))return;if(c.current+=D.deltaX,v(),Math.abs(c.current)>30)c.current=0,F(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=f.current-D.deltaX;if(L=Math.min(Math.abs(L),r)*Math.sign(L),f.current=L,s(L),E(),Math.abs(L)>.2*r){F(D.deltaX),a(L,Date.now()-b.current);return}m.current=P(()=>I(L),2*i)}else F(D.deltaX)});pt(()=>e(Gd,$),[e,$])}const yh=Js("container"),gh=te(null),Tr=on("useController","ControllerContext",gh);function O_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:f,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,w]=vt(),b=wi(),P=f_(),[_,v]=vt(Qt.NONE),E=it(0),N=it(0),I=it(1),{registerSensors:$,subscribeSensors:D}=S_(),{subscribe:F,publish:L}=vi(),Y=_i(),Z=_i(),nt=_i(),{containerRef:st,setContainerRef:_t,containerRect:ft}=hh(),It=ea(k_({preventDefaultWheelX:h,preventDefaultWheelY:m}),_t),at=it(null),ht=ea(at,void 0),{getOwnerDocument:z}=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()}),M=Ut(()=>e),x=Ut(()=>b),A=Ct(J=>L(nn,J),[L]),O=Ct(J=>L(rn,J),[L]),q=Ct(()=>L(Mn),[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;N.current=J,I.current=(()=>{const X=c&&J>0?J:f&&J<0?-J:0;return Math.min(Math.max(t_(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&&ft)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}}),dt=(J,gt)=>{if(f||c){K(J);let Et=0;at.current&&(Et=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:I.current,duration:Et})),nt(()=>{K(0),v(Qt.NONE)},Et),v(Qt.ANIMATION),gt||q()}},{prepareAnimation:wt,isAnimationPlaying:Pt}=dh(at,(J,gt,Et)=>{var k;if(at.current&&ft&&(!((k=b.animation)===null||k===void 0)&&k.duration)){const R=gi(r.spacing),X=(R.percent?R.percent*ft.width/100:R.pixel)||0;return{keyframes:[{transform:`translate(${G(b.globalIndex-J.index)*(ft.width+X)+J.rect.x-gt.x+Et.x}px, 0)`},{transform:"translate(0, 0)"}],duration:b.animation.duration,easing:b.animation.easing}}}),$t=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 d=ft==null?void 0:ft.width,g=J.duration||0,T=d?R/d*Math.abs(k):R;Q!==0?(g<T?p=p/T*Math.max(g,T/5):d&&(p=R/d*(d-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&&wt({rect:at.current.getBoundingClientRect(),index:b.globalIndex}),v(ct),L($d,{type:"swipe",increment:u,duration:p,easing:X})});pt(()=>{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,(ft==null?void 0:ft.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>W(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=>dt(J),J=>dt(J,!0)];P_(...Yt,f,c,...Jt),C_(_,...Yt);const Wt=Ut(()=>{o.focus&&z().querySelector(`.${St(Hs)} .${St(yh())}`)&&S()});pt(Wt,[Wt]);const U=Ut(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:b.currentIndex})});pt(U,[b.globalIndex,U]),pt(()=>Jd(F(nn,J=>$t({direction:nn,...J})),F(rn,J=>$t({direction:rn,...J})),F($d,J=>P(J))),[F,$t,P]);const he=Ht(()=>({prev:A,next:O,close:q,focus:S,slideRect:ft?n_(ft,r.padding):{width:0,height:0},containerRect:ft||{width:0,height:0},subscribeSensors:D,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:w}),[A,O,q,S,D,ft,st,ht,y,w,r.padding]);return Xn(o.ref,()=>({prev:A,next:O,close:q,focus:S,getLightboxProps:M,getLightboxState:x}),[A,O,q,S,M,x]),et("div",{ref:It,className:Ne(St(yh()),St(Ld)),style:{..._===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(E.current)}px`}:null,..._===Qt.PULL?{[ie("pull_offset")]:`${Math.round(N.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,...$},ft&&et(gh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const I_=sn(Dd,O_);function an(t){return xr(Bd,t)}function vh(t){return xr("slide",t)}function R_({slide:t,offset:e}){const n=it(null),{currentIndex:r}=wi(),{slideRect:i,close:o,focus:s}=Tr(),{render:a,carousel:{imageFit:l,imageProps:f},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=Sr(),{getOwnerDocument:y}=ta(),w=e!==0;pt(()=>{var _;w&&(!((_=n.current)===null||_===void 0)&&_.contains(y().activeElement))&&s()},[w,s,y]);const b=()=>{var _,v,E,N;let I=(_=a.slide)===null||_===void 0?void 0:_.call(a,{slide:t,offset:e,rect:i});return!I&&Qd(t)&&(I=et(E_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:f,onClick:w?void 0:()=>c==null?void 0:c({index:r})})),I?et(kt,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((E=a.slideContainer)!==null&&E!==void 0?E:({children:$})=>$)({slide:t,children:I}),(N=a.slideFooter)===null||N===void 0?void 0:N.call(a,{slide:t})):null},P=_=>{const v=n.current,E=_.target instanceof HTMLElement?_.target:void 0;h&&E&&v&&(E===v||Array.from(v.children).find(N=>N===E)&&E.classList.contains(St(Hb)))&&o()};return et("div",{ref:n,className:Ne(St(vh()),!w&&St(vh("current")),St(Ld)),...s_(w),onClick:P,style:m},b())}function M_(){const t=Sr().styles.slide;return et("div",{className:St("slide"),style:t})}function N_({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=wi(),{setCarouselRef:i}=Tr(),o=gi(t.spacing),s=gi(t.padding),a=i_(t,e,1),l=[];if(eh(e))for(let f=n-a;f<=n+a;f+=1){const c=nh(e,f),h=r-n+f,m=t.finite&&(f<0||f>e.length-1);l.push(m?{key:h}:{key:[`${h}`,r_(c)].filter(Boolean).join("|"),offset:f-n,slide:c})}return et("div",{ref:i,className:Ne(St(an()),l.length>0&&St(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:f,slide:c,offset:h})=>c?et(R_,{key:f,slide:c,offset:h}):et(M_,{key:f})))}const B_=sn(Bd,N_);function wh(){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 D_(t){var e;const n=na(),{publish:r}=vi(),{animation:i}=Sr(),{prevDisabled:o,nextDisabled:s}=wh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=mh(()=>r(nn),a),f=mh(()=>r(rn),a),c=Ut(h=>{switch(h.key){case Kb:r(Mn);break;case Yb:(n?s:o)||(n?f:l)();break;case Xb:(n?o:s)||(n?l:f)();break}});pt(()=>t(Hd,c),[t,c])}function bh({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return et(uh,{label:t,icon:e,renderIcon:n,className:St(`navigation_${r}`),disabled:o,onClick:i,style:s,...x_(Tr().focus,o)})}function F_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=Tr(),{prevDisabled:l,nextDisabled:f}=wh();return D_(a),et(kt,null,t?t():et(bh,{label:"Previous",action:nn,icon:g_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():et(bh,{label:"Next",action:rn,icon:v_,renderIcon:r,style:i.navigationNext,disabled:f,onClick:s}))}const L_=sn($b,F_),_h=St(Wb),j_=St(jd);function $_(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 V_({noScroll:{disabled:t},children:e}){const n=na(),{getOwnerDocument:r,getOwnerWindow:i}=ta();return pt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),f=Math.round(s.innerWidth-l.clientWidth);if(f>0){o.push(xh(a,f,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];$_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(j_)&&o.push(xh(m,f,n))}}return a.classList.add(_h),()=>{a.classList.remove(_h),o.forEach(c=>c())}},[n,t,r,i]),et(kt,null,e)}const U_=sn(Vb,V_);function Sh(t){return xr(Hs,t)}function Eh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function z_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=vt(!1),[f,c]=vt(!1),h=it([]),m=it(null),{setTimeout:y}=bi(),{subscribe:w}=vi(),P=fh()?0:e.fade;pt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const _=Ut(()=>{h.current.forEach(I=>I()),h.current=[]}),v=Ut(()=>{var I;c(!1),_(),(I=i.exiting)===null||I===void 0||I.call(i),y(()=>{var $;($=i.exited)===null||$===void 0||$.call(i),s()},P)});pt(()=>w(Mn,v),[w,v]);const E=Ut(I=>{var $,D,F;I.scrollTop,c(!0),($=i.entering)===null||$===void 0||$.call(i);const L=(F=(D=I.parentNode)===null||D===void 0?void 0:D.children)!==null&&F!==void 0?F:[];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(Eh(Z,"inert","")),h.current.push(Eh(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)}),N=Ct(I=>{I?E(I):_()},[E,_]);return a?po(et(A_,{ref:N,className:Ne(r,St(Sh()),St(jd),f&&St(Sh("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 q_=sn(Hs,z_);function W_({children:t}){return et(kt,null,t)}const H_=sn(Ub,W_);function G_(t){return xr(Fd,t)}function K_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=Tr(),{setContainerRef:s,containerRect:a}=hh();Ar(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():et(uh,{key:Mn,label:"Close",icon:y_,renderIcon:n,onClick:i});return et("div",{ref:s,style:r.toolbar,className:St(G_())},t==null?void 0:t.map(f=>f===Mn?l():f))}const Y_=sn(Fd,K_);function Ah(t,e){var n;return et(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>Ah(r,e)))}function X_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function J_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:f,...c}){const{animation:h,carousel:m,render:y,toolbar:w,controller:b,noScroll:P,on:_,slides:v,index:E,plugins:N,...I}=Qs,{config:$,augmentation:D}=a_([Gt(q_,[Gt(U_,[Gt(I_,[Gt(B_),Gt(Y_),Gt(L_)])])])],a||N),F=D({animation:X_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{...w,...r},controller:{...b,...i},noScroll:{...P,...o},on:{..._,...s},...I,...c});return F.open?et(u_,{...F},et(h_,{slides:l||v,index:yi(f||E)},et(p_,null,et(l_,null,Ah(Gt(H_,$),F))))):null}const Th=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Nt(),[r,i]=vt(!1),o=Ft(gm);function s(){if(o){const f=o.getElementById("deskcord-lightbox-portal");if(f)return f}const l=document.getElementById("deskcord-lightbox-portal");return l||document.body}function a(){return e!=null&&e.length?C(J_,{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,f)=>{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}-${f}`)}),a()]},`conv-cus-attachment-${t}`):null},Z_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],f=[];for(let c=0;c<a.length;c++)if(f.push(a[c]),l[c]){const h=o[l[c]];h&&f.push(C("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return f}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(Th,{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," · ",Nd(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(Th,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),t1=({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}`),e1=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Nt(),[o,s]=vt(r),[a,l]=vt(n),[f,c]=vt(""),[h,m]=vt(!1),y=_=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(_),w=!!n&&!!r,b=_=>{if(_.preventDefault(),!!a.trim()){if(!y(o)){c("Please enter a valid email address");return}h||(m(!0),c(""),t(o),e(a))}};function P(){return C("form",{onSubmit:b,className:"w-full space-y-4",children:[C("div",{className:"mb-4",children:[C("h3",{className:"text-base font-semibold text-gray-900 mb-1",children:"Let's get started"}),C("p",{className:"text-sm text-gray-600",children:"Tell us a bit about yourself so we can assist you better."})]}),C("div",{children:[C("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:"Your name"}),C("div",{className:"relative",children:[C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-3.5",children:C(kw,{size:18,className:"text-gray-400"})}),C("input",{type:"text",id:"name",value:a,onChange:_=>l(_.target.value),name:"name",className:"py-2.5 px-4 ps-11 block w-full bg-white border border-gray-300 rounded-lg text-base md:text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-[#7289DA] focus:ring-opacity-50 focus:border-transparent disabled:bg-gray-100 disabled:text-gray-500 disabled:cursor-not-allowed",placeholder:"John Smith",disabled:w,required:!0})]})]}),C("div",{children:[C("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email address"}),C("div",{className:"relative",children:[C("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-3.5",children:C(xw,{size:18,className:"text-gray-400"})}),C("input",{type:"email",id:"email",value:o,onChange:_=>{s(_.target.value),f&&c("")},name:"email",className:`py-2.5 px-4 ps-11 block w-full bg-white rounded-lg text-base md:text-sm text-gray-900 placeholder-gray-500 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-opacity-50 focus:border-transparent disabled:bg-gray-100 disabled:text-gray-500 disabled:cursor-not-allowed border ${f?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-[#7289DA]"}`,placeholder:"you@example.com",disabled:w,required:!0})]}),f&&C("p",{className:"text-red-600 text-sm mt-2 flex items-center gap-1",children:[C("span",{className:"inline-block w-1 h-1 bg-red-600 rounded-full"}),f]})]}),C("p",{className:"text-xs text-gray-500 text-center",children:"We'll never share your information"}),!n||!r?C("button",{type:"submit",className:"w-full py-2.5 px-4 bg-[#7289DA] hover:bg-[#5B6EAB] text-white font-medium text-sm rounded-lg transition-all duration-200 transform hover:shadow-md active:scale-95 focus:outline-none focus:ring-2 focus:ring-[#7289DA] focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed",disabled:h,children:"Start Chatting"}):null]})}return C(kt,{children:[C("li",{className:`max-w-lg flex gap-x-2 sm:gap-x-4 me-11 ${i?"opacity-75":""}`,children:C("div",{className:"w-full rounded-xl p-5 bg-white shadow-lg border border-gray-100 overflow-hidden",children:P()})}),n&&r&&C("li",{className:"flex ms-auto my-4 animate-slide-in",style:{marginTop:"1rem"},children:C("div",{className:"grow",children:C("div",{style:{background:"linear-gradient(167deg, #7289DA 0%, #5B6EAB 100%)"},className:"min-w-10 inline-block rounded-lg px-4 py-2 shadow-sm flex items-center gap-2",children:[C(bw,{size:16,className:"text-white flex-shrink-0"}),C("p",{className:"text-sm text-white font-medium",children:["Nice to meet you, ",C("span",{className:"font-semibold",children:n}),"! Feel free to ask us anything."]})]})})})]})};function n1(t,e){const n=it();pt(()=>{n.current=t},[t]),pt(()=>{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 r1(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 i1=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=vt(!0),[s,a]=vt(0);return n1(()=>{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(_w,{})}),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:r1(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}`)},o1=({conversation:t,open:e})=>{const n=it(!1),{isChatOpen:r}=Nt();pt(()=>{r?n.current=!0:n.current=!1},[r]);function i(l,f){const c=`${l.date}-${f}`;let h;if(typeof l.customRenderer<"u")switch(l.customRenderer){case Rn.IntroduceYourself:h=C(e1,{});break;case Rn.UploadFile:h=C(i1,{message:l,indexKey:c});break;default:h=a(l,c)}else l.authorName===_r?h=a(l,c):l.support?h=o(l,c):h=s(l,c);return r&&(l.pending??(l.support&&n.current))?C(Ze.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:h},c):C("li",{children:h},c)}function o(l,f){var y;const c=(y=t==null?void 0:t.messages)==null?void 0:y.filter(w=>w.support),h=c==null?void 0:c[c.length-1],m=l.date===(h==null?void 0:h.date);return C(Z_,{renderTimestamp:m,message:l,indexKey:f})}function s(l,f){return C(Q_,{message:l,indexKey:f})}function a(l,f){return C(t1,{message:l,indexKey:f})}return C("ul",{className:"space-y-[3px]",children:[[...(t==null?void 0:t.messages)??[]].sort((l,f)=>l.date-f.date).map(i),t&&!e&&i(Cb,1)]})},s1=()=>{const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,email:i,updateMessage:o,isChatOpen:s}=Nt(),a=!!(r&&i),l=it(!1);pt(()=>{s&&!l.current&&(l.current=!0),s||(l.current=!1)},[s]);const[f,c]=vt(!1),[h,m]=vt([]),[y,w]=vt({}),b=t(),P=(b==null?void 0:b.status)==="open",[_,v]=vt("");pt(()=>{const $={};h.forEach(D=>{const F=new FileReader;F.addEventListener("load",function(){const L=new Image;L.onload=()=>{$[D.name]={url:F.result,width:L.width,height:L.height,size:D.size},w($)},L.src=F.result},!1),F.readAsDataURL(D)})},[h]);const E=$=>{v(D=>D+$)},N=async()=>{const $=Date.now(),D={support:!1,content:_,date:$,authorName:r,pending:!0};if(_.trim()!==""){v(""),e(b?b.threadId:"TEMP",D);const F=await kb({content:_});F&&((!b||b.threadId==="TEMP")&&n(F.threadId),o(F.threadId,$,{...D,pending:!1,date:F.date}))}},I=s&&!l.current;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:I?{opacity:0,x:20}:!1,animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:C(o1,{conversation:b,open:P})})}),C(jb,{attachmentPreviews:y,files:h,setFiles:m,inputMessage:_,setInputMessage:v,showEmojiPicker:f,setShowEmojiPicker:c,addEmoji:E,sendMessage:N,disabled:!a})]})};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 a1(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const Se=Object.create(null);Se.open="0",Se.close="1",Se.ping="2",Se.pong="3",Se.message="4",Se.upgrade="5",Se.noop="6";const xi=Object.create(null);Object.keys(Se).forEach(t=>{xi[Se[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(Se[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 c1(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+/",Pr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Mh.length;t++)Pr[Mh.charCodeAt(t)]=t;const l1=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 f=new ArrayBuffer(e),c=new Uint8Array(f);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 f},u1=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:f1(t.substring(1),e)}:xi[n]?t.length>1?{type:xi[n],data:t.substring(1)}:{type:xi[n]}:sa},f1=(t,e)=>{if(u1){const n=l1(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="",d1=(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))})})},h1=(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 p1(){return new TransformStream({transform(t,e){c1(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 m1(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),f=new DataView(l.buffer,l.byteOffset,l.length),c=f.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(sa);break}i=c*Math.pow(2,32)+f.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 Dh=4;function zt(t){if(t)return y1(t)}function y1(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 g1=fe.setTimeout,v1=fe.clearTimeout;function Ai(t,e){e.useNativeTimers?(t.setTimeoutFn=g1.bind(fe),t.clearTimeoutFn=v1.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const w1=1.33;function b1(t){return typeof t=="string"?_1(t):Math.ceil((t.byteLength||t.size)*w1)}function _1(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 x1(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function S1(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 E1 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 E1(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=x1(e);return n.length?"?"+n:""}}const Lh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),da=64,A1={};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++)A1[Lh[Ti]]=Ti;let zh=!1;try{zh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const T1=zh;function qh(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||T1))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function cA(){}function P1(){}const k1=function(){return new qh({xdomain:!1}).responseType!=null}();class C1 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=k1&&!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)};h1(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,d1(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=P1,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 O1={},Pi={};Pi.byteLength=M1,Pi.toByteArray=B1,Pi.fromByteArray=L1;for(var Ae=[],de=[],I1=typeof Uint8Array<"u"?Uint8Array:Array,ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn=0,R1=ha.length;Bn<R1;++Bn)Ae[Bn]=ha[Bn],de[ha.charCodeAt(Bn)]=Bn;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 M1(t){var e=Hh(t),n=e[0],r=e[1];return(n+r)*3/4-r}function N1(t,e,n){return(e+n)*3/4-n}function B1(t){var e,n=Hh(t),r=n[0],i=n[1],o=new I1(N1(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 D1(t){return Ae[t>>18&63]+Ae[t>>12&63]+Ae[t>>6&63]+Ae[t&63]}function F1(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(D1(r));return i.join("")}function L1(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(F1(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Ae[e>>2]+Ae[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Ae[e>>10]+Ae[e>>4&63]+Ae[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,f=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-f;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-f}return(y?-1:1)*s*Math.pow(2,o-r)},pa.write=function(t,e,n,r,i,o){var s,a,l,f=o*8-i-1,c=(1<<f)-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,f+=i;f>0;t[n+y]=s&255,y+=w,s/=256,f-=8);t[n+y-w]|=b*128};/*!
103
103
  * The buffer module from node.js, for the browser.
104
104
  *
105
105
  * @author Feross Aboukhadijeh <https://feross.org>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "deskcord",
3
3
  "private": false,
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "author": "Maxime Bertonnier <m.bertonnier@gmail.com>",
6
6
  "homepage": "https://deskcord.chat",
7
7
  "type": "module",