deskcord 0.2.1 โ†’ 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";var Vn,ut,hc,Ue,pc,mc,qi,yc,Hi,Gi,Ki,gc,$n={},vc=[],cm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Or=Array.isArray;function Pe(t,e){for(var n in e)t[n]=e[n];return t}function Yi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function nt(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Vn.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 Un(t,s,r,i,null)}function Un(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??++hc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function bc(){return{current:null}}function Ot(t){return t.children}function oe(t,e){this.props=t,this.context=e}function cn(t,e){if(e==null)return t.__?cn(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"?cn(t):null}function wc(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 wc(t)}}function Xi(t){(!t.__d&&(t.__d=!0)&&Ue.push(t)&&!Cr.__r++||pc!==ut.debounceRendering)&&((pc=ut.debounceRendering)||mc)(Cr)}function Cr(){var t,e,n,r,i,o,s,a;for(Ue.sort(qi);t=Ue.shift();)t.__d&&(e=Ue.length,r=void 0,o=(i=(n=t).__v).__e,s=[],a=[],n.__P&&((r=Pe({},i)).__v=i.__v+1,ut.vnode&&ut.vnode(r),Ji(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??cn(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Ac(s,r,a),r.__e!=o&&wc(r)),Ue.length>e&&Ue.sort(qi));Cr.__r=0}function _c(t,e,n,r,i,o,s,a,l,d,c){var h,m,y,_,w,k,x=r&&r.__k||vc,v=e.length;for(l=lm(n,e,x,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?$n:x[y.__i]||$n,y.__i=h,k=Ji(t,y,m,i,o,s,a,l,d,c),_=y.__e,y.ref&&m.ref!=y.ref&&(m.ref&&Zi(m.ref,null,y),c.push(y.ref,y.__c||_,y)),w==null&&_!=null&&(w=_),4&y.__u||m.__k===y.__k?l=xc(y,l,t):typeof y.type=="function"&&k!==void 0?l=k:_&&(l=_.nextSibling),y.__u&=-7);return n.__e=w,l}function lm(t,e,n,r,i){var o,s,a,l,d,c=n.length,h=c,m=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+m,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Un(null,s,null,null,null):Or(s)?Un(Ot,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Un(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=um(s,n,l,h))!==-1&&(h--,(a=n[d])&&(a.__u|=2)),a==null||a.__v===null?(d==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?m--:d==l+1?m++:(d>l?m--:m++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<c;o++)(a=n[o])!=null&&!(2&a.__u)&&(a.__e==r&&(r=cn(a)),Tc(a,a));return r}function xc(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=xc(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=cn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ke(t,e){return e=e||[],t==null||typeof t=="boolean"||(Or(t)?t.some(function(n){ke(n,e)}):e.push(t)),e}function um(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 Sc(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||cm.test(e)?n:n+"px"}function Ir(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||Sc(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Sc(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(yc,"$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=Hi,t.addEventListener(e,o?Ki:Gi,o)):t.removeEventListener(e,o?Ki:Gi,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 Ec(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Hi++;else if(e.t<n.u)return;return n(ut.event?ut.event(e):e)}}}function Ji(t,e,n,r,i,o,s,a,l,d){var c,h,m,y,_,w,k,x,v,S,R,O,B,L,W,F,Y,Z=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=ut.__b)&&c(e);t:if(typeof Z=="function")try{if(x=e.props,v="prototype"in Z&&Z.prototype.render,S=(c=Z.contextType)&&r[c.__c],R=c?S?S.props.value:c.__:r,n.__c?k=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(x,R):(e.__c=h=new oe(x,R),h.constructor=Z,h.render=dm),S&&S.sub(h),h.props=x,h.state||(h.state={}),h.context=R,h.__n=r,m=h.__d=!0,h.__h=[],h._sb=[]),v&&h.__s==null&&(h.__s=h.state),v&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Pe({},h.__s)),Pe(h.__s,Z.getDerivedStateFromProps(x,h.__s))),y=h.props,_=h.state,h.__v=e,m)v&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),v&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(v&&Z.getDerivedStateFromProps==null&&x!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(x,R),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(x,h.__s,R)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(et){et&&(et.__=e)}),O=0;O<h._sb.length;O++)h.__h.push(h._sb[O]);h._sb=[],h.__h.length&&s.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(x,h.__s,R),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,_,w)})}if(h.context=R,h.props=x,h.__P=t,h.__e=!1,B=ut.__r,L=0,v){for(h.state=h.__s,h.__d=!1,B&&B(e),c=h.render(h.props,h.state,h.context),W=0;W<h._sb.length;W++)h.__h.push(h._sb[W]);h._sb=[]}else do h.__d=!1,B&&B(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++L<25);h.state=h.__s,h.getChildContext!=null&&(r=Pe(Pe({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(w=h.getSnapshotBeforeUpdate(y,_)),a=_c(t,Or(F=c!=null&&c.type===Ot&&c.key==null?c.props.children:c)?F:[F],e,n,r,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),k&&(h.__E=h.__=null)}catch(et){if(e.__v=null,l||o!=null)if(et.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Y=o.length;Y--;)Yi(o[Y]);else e.__e=n.__e,e.__k=n.__k;ut.__e(et,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=fm(n.__e,e,n,r,i,o,s,l,d);return(c=ut.diffed)&&c(e),128&e.__u?void 0:a}function Ac(t,e,n){for(var r=0;r<n.length;r++)Zi(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 fm(t,e,n,r,i,o,s,a,l){var d,c,h,m,y,_,w,k=n.props,x=e.props,v=e.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(v==null)return document.createTextNode(x);t=document.createElementNS(i,v,x.is&&x),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)k===x||a&&t.data===x||(t.data=x);else{if(o=o&&Vn.call(t.childNodes),k=n.props||$n,!a&&o!=null)for(k={},d=0;d<t.attributes.length;d++)k[(y=t.attributes[d]).name]=y.value;for(d in k)if(y=k[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;Ir(t,d,null,y,i)}}for(d in x)y=x[d],d=="children"?m=y:d=="dangerouslySetInnerHTML"?c=y:d=="value"?_=y:d=="checked"?w=y:a&&typeof y!="function"||k[d]===y||Ir(t,d,y,k[d],i);if(c)a||h&&(c.__html===h.__html||c.__html===t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),_c(t,Or(m)?m:[m],e,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&cn(n,0),a,l),o!=null)for(d=o.length;d--;)Yi(o[d]);a||(d="value",v=="progress"&&_==null?t.removeAttribute("value"):_!==void 0&&(_!==t[d]||v=="progress"&&!_||v=="option"&&_!==k[d])&&Ir(t,d,_,k[d],i),d="checked",w!==void 0&&w!==t[d]&&Ir(t,d,w,k[d],i))}return t}function Zi(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 Tc(t,e,n){var r,i;if(ut.unmount&&ut.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Zi(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]&&Tc(r[i],e,n||typeof t.type!="function");n||Yi(t.__e),t.__c=t.__=t.__e=void 0}function dm(t,e,n){return this.constructor(t,n)}function zn(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=[],Ji(e,t=(!r&&n||e).__k=nt(Ot,null,[t]),i||$n,$n,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?Vn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Ac(o,t,s)}function Pc(t,e){zn(t,e,Pc)}function hm(t,e,n){var r,i,o,s,a=Pe({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!==void 0?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?Vn.call(arguments,2):n),Un(t.type,a,r||t.key,i||t.ref,null)}function te(t,e){var n={__c:e="__cC"+gc++,__: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,Xi(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}Vn=vc.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}},hc=0,oe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Pe({},this.state),typeof t=="function"&&(t=t(Pe({},n),this.props)),t&&Pe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Xi(this))},oe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Xi(this))},oe.prototype.render=Ot,Ue=[],mc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qi=function(t,e){return t.__v.__b-e.__v.__b},Cr.__r=0,yc=/(PointerCapture)$|Capture$/i,Hi=0,Gi=Ec(!1),Ki=Ec(!0),gc=0;var pm=0;function M(t,e,n,r,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--pm,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return ut.vnode&&ut.vnode(d),d}var Oe,Et,Qi,kc,ln=0,Oc=[],Rt=ut,Cc=Rt.__b,Ic=Rt.__r,Rc=Rt.diffed,Mc=Rt.__c,Nc=Rt.unmount,Dc=Rt.__;function ze(t,e){Rt.__h&&Rt.__h(Et,t,ln||e),ln=0;var n=Et.__H||(Et.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function wt(t){return ln=1,Wn(Lc,t)}function Wn(t,e,n){var r=ze(Oe++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Lc(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,a);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=Et,!Et.u)){var i=function(a,l,d){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(m){return!!m.__c});if(c.every(function(m){return!m.__N}))return!o||o.call(this,a,l,d);var h=r.__c.props!==a;return c.forEach(function(m){if(m.__N){var y=m.__[0];m.__=m.__N,m.__N=void 0,y!==m.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Et.u=!0;var o=Et.shouldComponentUpdate,s=Et.componentWillUpdate;Et.componentWillUpdate=function(a,l,d){if(this.__e){var c=o;o=void 0,i(a,l,d),o=c}s&&s.call(this,a,l,d)},Et.shouldComponentUpdate=i}return r.__N||r.__}function yt(t,e){var n=ze(Oe++,3);!Rt.__s&&no(n.__H,e)&&(n.__=t,n.i=e,Et.__H.__h.push(n))}function Ce(t,e){var n=ze(Oe++,4);!Rt.__s&&no(n.__H,e)&&(n.__=t,n.i=e,Et.__h.push(n))}function ot(t){return ln=5,qt(function(){return{current:t}},[])}function qn(t,e,n){ln=6,Ce(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 qt(t,e){var n=ze(Oe++,7);return no(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function kt(t,e){return ln=8,qt(function(){return t},e)}function jt(t){var e=Et.context[t.__c],n=ze(Oe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(Et)),e.props.value):t.__}function to(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function mm(t){var e=ze(Oe++,10),n=wt();return e.__=t,Et.componentDidCatch||(Et.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function un(){var t=ze(Oe++,11);if(!t.__){for(var e=Et.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function ym(){for(var t;t=Oc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rr),t.__H.__h.forEach(eo),t.__H.__h=[]}catch(e){t.__H.__h=[],Rt.__e(e,t.__v)}}Rt.__b=function(t){Et=null,Cc&&Cc(t)},Rt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Dc&&Dc(t,e)},Rt.__r=function(t){Ic&&Ic(t),Oe=0;var e=(Et=t.__c).__H;e&&(Qi===Et?(e.__h=[],Et.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(Rr),e.__h.forEach(eo),e.__h=[],Oe=0)),Qi=Et},Rt.diffed=function(t){Rc&&Rc(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Oc.push(e)!==1&&kc===Rt.requestAnimationFrame||((kc=Rt.requestAnimationFrame)||gm)(ym)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Qi=Et=null},Rt.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(r){return!r.__||eo(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Rt.__e(r,n.__v)}}),Mc&&Mc(t,e)},Rt.unmount=function(t){Nc&&Nc(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Rr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Bc=typeof requestAnimationFrame=="function";function gm(t){var e,n=function(){clearTimeout(r),Bc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Bc&&(e=requestAnimationFrame(n))}function Rr(t){var e=Et,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Et=e}function eo(t){var e=Et;t.__c=t.__(),Et=e}function no(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Lc(t,e){return typeof e=="function"?e(t):e}function Fc(t,e){for(var n in e)t[n]=e[n];return t}function ro(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 io(t,e){var n=e(),r=wt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Ce(function(){i.__=n,i.u=e,oo(i)&&o({t:i})},[t,n,e]),yt(function(){return oo(i)&&o({t:i}),t(function(){oo(i)&&o({t:i})})},[t]),n}function oo(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 so(t){t()}function ao(t){return t}function co(){return[!1,so]}var Hn=Ce;function Mr(t,e){this.props=t,this.context=e}function jc(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:ro(this.props,i)}function r(i){return this.shouldComponentUpdate=n,nt(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Mr.prototype=new oe).isPureReactComponent=!0,Mr.prototype.shouldComponentUpdate=function(t,e){return ro(this.props,t)||ro(this.state,e)};var Vc=ut.__b;ut.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Vc&&Vc(t)};var vm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Le(t){function e(n){var r=Fc({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=vm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var $c=function(t,e){return t==null?null:ke(ke(t).map(e))},lo={map:$c,forEach:$c,count:function(t){return t?ke(t).length:0},only:function(t){var e=ke(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:ke},bm=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)}bm(t,e,n,r)};var Uc=ut.unmount;function zc(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=Fc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return zc(r,e,n)})),t}function Wc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Wc(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 Gn(){this.__u=0,this.o=null,this.__b=null}function qc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Hc(t){var e,n,r;function i(o){if(e||(e=t()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw e;return nt(n,o)}return i.displayName="Lazy",i.__f=!0,i}function fn(){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),Uc&&Uc(t)},(Gn.prototype=new oe).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=qc(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]=Wc(l,l.__c.__P,l.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},Gn.prototype.componentWillUnmount=function(){this.o=[]},Gn.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]=zc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&nt(Ot,null,t.fallback);return i&&(i.__u&=-33),[nt(Ot,null,e.__a?null:t.children),i]};var Gc=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 wm(t){return this.getChildContext=function(){return t.context},t.children}function _m(t){var e=this,n=t.h;e.componentWillUnmount=function(){zn(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)}}),zn(nt(wm,{context:e.context},t.__v),e.v)}function uo(t,e){var n=nt(_m,{__v:t,h:e});return n.containerInfo=e,n}(fn.prototype=new oe).__a=function(t){var e=this,n=qc(e.__v),r=e.l.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Gc(e,t,r)):i()};n?n(o):o()}},fn.prototype.render=function(t){this.i=null,this.l=new Map;var e=ke(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},fn.prototype.componentDidUpdate=fn.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Gc(t,n,e)})};var Kc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xm=/^(?: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]/,Sm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Em=/[A-Z0-9]/g,Am=typeof document<"u",Tm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Yc(t,e,n){return e.__k==null&&(e.textContent=""),zn(t,e),typeof n=="function"&&n(),t?t.__c:null}function Xc(t,e,n){return Pc(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 Jc=ut.event;function Pm(){}function km(){return this.cancelBubble}function Om(){return this.defaultPrevented}ut.event=function(t){return Jc&&(t=Jc(t)),t.persist=Pm,t.isPropagationStopped=km,t.isDefaultPrevented=Om,t.nativeEvent=t};var fo,Cm={enumerable:!1,configurable:!0,get:function(){return this.class}},Zc=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||Am&&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"||Tm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Sm.test(s)&&(s=l):l=s="oninput":o&&xm.test(s)?s=s.replace(Em,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Cm)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=Kc,Zc&&Zc(t)};var Qc=ut.__r;ut.__r=function(t){Qc&&Qc(t),fo=t.__c};var tl=ut.diffed;ut.diffed=function(t){tl&&tl(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),fo=null};var el={ReactCurrentDispatcher:{current:{readContext:function(t){return fo.__n[t.__c].props.value},useCallback:kt,useContext:jt,useDebugValue:to,useDeferredValue:ao,useEffect:yt,useId:un,useImperativeHandle:qn,useInsertionEffect:Hn,useLayoutEffect:Ce,useMemo:qt,useReducer:Wn,useRef:ot,useState:wt,useSyncExternalStore:io,useTransition:co}}},nl="18.3.1";function rl(t){return nt.bind(null,t)}function dn(t){return!!t&&t.$$typeof===Kc}function il(t){return dn(t)&&t.type===Ot}function ol(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function ho(t){return dn(t)?hm.apply(null,arguments):t}function sl(t){return!!t.__k&&(zn(null,t),!0)}function al(t){return t&&(t.base||t.nodeType===1&&t)||null}var cl=function(t,e){return t(e)},ll=function(t,e){return t(e)},ul=Ot,fl=dn,Nr={useState:wt,useId:un,useReducer:Wn,useEffect:yt,useLayoutEffect:Ce,useInsertionEffect:Hn,useTransition:co,useDeferredValue:ao,useSyncExternalStore:io,startTransition:so,useRef:ot,useImperativeHandle:qn,useMemo:qt,useCallback:kt,useContext:jt,useDebugValue:to,version:"18.3.1",Children:lo,render:Yc,hydrate:Xc,unmountComponentAtNode:sl,createPortal:uo,createElement:nt,createContext:te,createFactory:rl,cloneElement:ho,createRef:bc,Fragment:Ot,isValidElement:dn,isElement:fl,isFragment:il,isMemo:ol,findDOMNode:al,Component:oe,PureComponent:Mr,memo:jc,forwardRef:Le,flushSync:ll,unstable_batchedUpdates:cl,StrictMode:ul,Suspense:Gn,SuspenseList:fn,lazy:Hc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el};const Im=Object.freeze(Object.defineProperty({__proto__:null,Children:lo,Component:oe,Fragment:Ot,PureComponent:Mr,StrictMode:ul,Suspense:Gn,SuspenseList:fn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el,cloneElement:ho,createContext:te,createElement:nt,createFactory:rl,createPortal:uo,createRef:bc,default:Nr,findDOMNode:al,flushSync:ll,forwardRef:Le,hydrate:Xc,isElement:fl,isFragment:il,isMemo:ol,isValidElement:dn,lazy:Hc,memo:jc,render:Yc,startTransition:so,unmountComponentAtNode:sl,unstable_batchedUpdates:cl,useCallback:kt,useContext:jt,useDebugValue:to,useDeferredValue:ao,useEffect:yt,useErrorBoundary:mm,useId:un,useImperativeHandle:qn,useInsertionEffect:Hn,useLayoutEffect:Ce,useMemo:qt,useReducer:Wn,useRef:ot,useState:wt,useSyncExternalStore:io,useTransition:co,version:nl},Symbol.toStringTag,{value:"Module"})),Rm='*,: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}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-px{left:1px;right:1px}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.bottom-px{bottom:1px}.end-0{inset-inline-end:0px}.left-0{left:0}.right-0{right:0}.right-1{right:.25rem}.start-0{inset-inline-start:0px}.top-0{top:0}.top-1{top:.25rem}.top-full{top:100%}.z-20{z-index:20}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.\\!me-1{margin-inline-end:.25rem!important}.\\!me-1\\.5{margin-inline-end:.375rem!important}.\\!ms-auto{margin-inline-start:auto!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.me-11{margin-inline-end:2.75rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.ms-0\\.5{margin-inline-start:.125rem}.ms-2{margin-inline-start:.5rem}.ms-auto{margin-inline-start:auto}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\\[32px\\]{width:32px;height:32px}.size-\\[40px\\]{width:40px;height:40px}.\\!h-2\\.5{height:.625rem!important}.h-16{height:4rem}.h-2{height:.5rem}.h-32{height:8rem}.h-8{height:2rem}.h-full{height:100%}.max-h-40{max-height:10rem}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[200px\\]{max-height:200px}.\\!w-2\\.5{width:.625rem!important}.w-10{width:2.5rem}.w-16{width:4rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[calc\\(100\\%-2rem\\)\\]{width:calc(100% - 2rem)}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-\\[100px\\]{max-width:100px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.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))}.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}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-b-md{border-bottom-right-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.\\!border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity))!important}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-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-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-80{--tw-bg-opacity: .8}.fill-black{fill:#000}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-12{padding-bottom:3rem}.ps-11{padding-inline-start:2.75rem}.ps-4{padding-inline-start:1rem}.text-center{text-align:center}.text-end{text-align:end}.align-bottom{vertical-align:bottom}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-lg\\/5{font-size:1.125rem;line-height:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/3{font-size:.875rem;line-height:.75rem}.text-xs,.text-xs\\/4{font-size:.75rem;line-height:1rem}.\\!font-medium{font-weight:500!important}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-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-200{animation-duration:.2s}.duration-500{animation-duration:.5s}.running{animation-play-state:running}.hover\\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / 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\\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:bg-blue-500:focus{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.focus\\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.focus\\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-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-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.focus\\:ring-opacity-50:focus{--tw-ring-opacity: .5}.disabled\\:pointer-events-none:disabled{pointer-events:none}.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))}.dark\\:focus\\:ring-neutral-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}}',Mm=".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}}",po=te({});function mo(t){const e=ot(null);return e.current===null&&(e.current=t()),e.current}const yo=typeof window<"u",dl=yo?Ce:yt,Dr=te(null);function go(t,e){t.indexOf(e)===-1&&t.push(e)}function vo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ie=(t,e,n)=>n>e?e:n<t?t:n;let Br=()=>{};const Re={},hl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function pl(t){return typeof t=="object"&&t!==null}const ml=t=>/^0[^.\s]+$/u.test(t);function bo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ce=t=>t,Nm=(t,e)=>n=>e(t(n)),Kn=(...t)=>t.reduce(Nm),Yn=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class wo{constructor(){this.subscriptions=[]}add(e){return go(this.subscriptions,e),()=>vo(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 be=t=>t*1e3,we=t=>t/1e3;function yl(t,e){return e?t*(1e3/e):0}const gl=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Dm=1e-7,Bm=12;function Lm(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=gl(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>Dm&&++a<Bm);return s}function Xn(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>Lm(o,0,1,t,n);return o=>o===0||o===1?o:gl(i(o),e,r)}const vl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,bl=t=>e=>1-t(1-e),wl=Xn(.33,1.53,.69,.99),_o=bl(wl),_l=vl(_o),xl=t=>(t*=2)<1?.5*_o(t):.5*(2-Math.pow(2,-10*(t-1))),xo=t=>1-Math.sin(Math.acos(t)),Sl=bl(xo),El=vl(xo),Fm=Xn(.42,0,1,1),jm=Xn(0,0,.58,1),Al=Xn(.42,0,.58,1),Vm=t=>Array.isArray(t)&&typeof t[0]!="number",Tl=t=>Array.isArray(t)&&typeof t[0]=="number",Pl={linear:ce,easeIn:Fm,easeInOut:Al,easeOut:jm,circIn:xo,circInOut:El,circOut:Sl,backIn:_o,backInOut:_l,backOut:wl,anticipate:xl},$m=t=>typeof t=="string",kl=t=>{if(Tl(t)){Br(t.length===4);const[e,n,r,i]=t;return Xn(e,n,r,i)}else if($m(t))return Br(Pl[t]!==void 0),Pl[t];return t},Lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ol={value:null,addProjectionMetrics:null};function Um(t,e){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function d(h){s.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,m=!1,y=!1)=>{const w=y&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(a=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),e&&Ol.value&&Ol.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const zm=40;function Cl(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Lr.reduce((S,R)=>(S[R]=Um(o,e?R:void 0),S),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:c,update:h,preRender:m,render:y,postRender:_}=s,w=()=>{const S=Re.useManualTiming?i.timestamp:performance.now();n=!1,Re.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,zm),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),c.process(i),h.process(i),m.process(i),y.process(i),_.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(w))},k=()=>{n=!0,r=!0,i.isProcessing||t(w)};return{schedule:Lr.reduce((S,R)=>{const O=s[R];return S[R]=(B,L=!1,W=!1)=>(n||k(),O.schedule(B,L,W)),S},{}),cancel:S=>{for(let R=0;R<Lr.length;R++)s[Lr[R]].cancel(S)},state:i,steps:s}}const{schedule:Ct,cancel:Fe,state:Xt,steps:So}=Cl(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0);let Fr;function Wm(){Fr=void 0}const re={now:()=>(Fr===void 0&&re.set(Xt.isProcessing||Re.useManualTiming?Xt.timestamp:performance.now()),Fr),set:t=>{Fr=t,queueMicrotask(Wm)}},Il=t=>e=>typeof e=="string"&&e.startsWith(t),Eo=Il("--"),qm=Il("var(--"),Ao=t=>qm(t)?Hm.test(t.split("/*")[0].trim()):!1,Hm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hn={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Jn={...hn,transform:t=>Ie(0,1,t)},jr={...hn,default:1},Zn=t=>Math.round(t*1e5)/1e5,To=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gm(t){return t==null}const Km=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Po=(t,e)=>n=>!!(typeof n=="string"&&Km.test(n)&&n.startsWith(t)||e&&!Gm(n)&&Object.prototype.hasOwnProperty.call(n,e)),Rl=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(To);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ym=t=>Ie(0,255,t),ko={...hn,transform:t=>Math.round(Ym(t))},We={test:Po("rgb","red"),parse:Rl("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+ko.transform(t)+", "+ko.transform(e)+", "+ko.transform(n)+", "+Zn(Jn.transform(r))+")"};function Xm(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 Oo={test:Po("#"),parse:Xm,transform:We.transform},Qn=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),je=Qn("deg"),_e=Qn("%"),it=Qn("px"),Jm=Qn("vh"),Zm=Qn("vw"),Ml={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},pn={test:Po("hsl","hue"),parse:Rl("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+_e.transform(Zn(e))+", "+_e.transform(Zn(n))+", "+Zn(Jn.transform(r))+")"},Vt={test:t=>We.test(t)||Oo.test(t)||pn.test(t),parse:t=>We.test(t)?We.parse(t):pn.test(t)?pn.parse(t):Oo.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?We.transform(t):pn.transform(t),getAnimatableNone:t=>{const e=Vt.parse(t);return e.alpha=0,Vt.transform(e)}},Qm=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ty(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(To))==null?void 0:e.length)||0)+(((n=t.match(Qm))==null?void 0:n.length)||0)>0}const Nl="number",Dl="color",ey="var",ny="var(",Bl="${}",ry=/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 tr(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ry,l=>(Vt.test(l)?(r.color.push(o),i.push(Dl),n.push(Vt.parse(l))):l.startsWith(ny)?(r.var.push(o),i.push(ey),n.push(l)):(r.number.push(o),i.push(Nl),n.push(parseFloat(l))),++o,Bl)).split(Bl);return{values:n,split:a,indexes:r,types:i}}function Ll(t){return tr(t).values}function Fl(t){const{split:e,types:n}=tr(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===Nl?o+=Zn(i[s]):a===Dl?o+=Vt.transform(i[s]):o+=i[s]}return o}}const iy=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function oy(t){const e=Ll(t);return Fl(t)(e.map(iy))}const Ve={test:ty,parse:Ll,createTransformer:Fl,getAnimatableNone:oy};function Co(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 sy({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=Co(l,a,t+1/3),o=Co(l,a,t),s=Co(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Vr(t,e){return n=>n>0?e:t}const Mt=(t,e,n)=>t+(e-t)*n,Io=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},ay=[Oo,We,pn],cy=t=>ay.find(e=>e.test(t));function jl(t){const e=cy(t);if(!e)return!1;let n=e.parse(t);return e===pn&&(n=sy(n)),n}const Vl=(t,e)=>{const n=jl(t),r=jl(e);if(!n||!r)return Vr(t,e);const i={...n};return o=>(i.red=Io(n.red,r.red,o),i.green=Io(n.green,r.green,o),i.blue=Io(n.blue,r.blue,o),i.alpha=Mt(n.alpha,r.alpha,o),We.transform(i))},Ro=new Set(["none","hidden"]);function ly(t,e){return Ro.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function uy(t,e){return n=>Mt(t,e,n)}function Mo(t){return typeof t=="number"?uy:typeof t=="string"?Ao(t)?Vr:Vt.test(t)?Vl:hy:Array.isArray(t)?$l:typeof t=="object"?Vt.test(t)?Vl:fy:Vr}function $l(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>Mo(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function fy(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Mo(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function dy(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 hy=(t,e)=>{const n=Ve.createTransformer(e),r=tr(t),i=tr(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?Ro.has(t)&&!i.values.length||Ro.has(e)&&!r.values.length?ly(t,e):Kn($l(dy(r,i),i.values),n):Vr(t,e)};function Ul(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Mt(t,e,n):Mo(t)(t,e)}const py=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Ct.update(e,n),stop:()=>Fe(e),now:()=>Xt.isProcessing?Xt.timestamp:re.now()}},zl=(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)})`},$r=2e4;function No(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<$r;)e+=n,r=t.next(e);return e>=$r?1/0:e}function my(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(No(r),$r);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:we(i)}}const yy=5;function Wl(t,e,n){const r=Math.max(e-yy,0);return yl(n-t(r),e-r)}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Do=.001;function gy({duration:t=Nt.duration,bounce:e=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let i,o,s=1-e;s=Ie(Nt.minDamping,Nt.maxDamping,s),t=Ie(Nt.minDuration,Nt.maxDuration,we(t)),s<1?(i=d=>{const c=d*s,h=c*t,m=c-n,y=Bo(d,s),_=Math.exp(-h);return Do-m/y*_},o=d=>{const h=d*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(d,2)*t,_=Math.exp(-h),w=Bo(Math.pow(d,2),s);return(-i(d)+Do>0?-1:1)*((m-y)*_)/w}):(i=d=>{const c=Math.exp(-d*t),h=(d-n)*t+1;return-Do+c*h},o=d=>{const c=Math.exp(-d*t),h=(n-d)*(t*t);return c*h});const a=5/t,l=by(i,o,a);if(t=be(t),isNaN(l))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:t};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:t}}}const vy=12;function by(t,e,n){let r=n;for(let i=1;i<vy;i++)r=r-t(r)/e(r);return r}function Bo(t,e){return t*Math.sqrt(1-e*e)}const wy=["duration","bounce"],_y=["stiffness","damping","mass"];function ql(t,e){return e.some(n=>t[n]!==void 0)}function xy(t){let e={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...t};if(!ql(t,_y)&&ql(t,wy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ie(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Nt.mass,stiffness:i,damping:o}}else{const n=gy(t);e={...e,...n,mass:Nt.mass},e.isResolvedFromDuration=!0}return e}function Ur(t=Nt.visualDuration,e=Nt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:d,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=xy({...n,velocity:-we(n.velocity||0)}),_=m||0,w=d/(2*Math.sqrt(l*c)),k=s-o,x=we(Math.sqrt(l/c)),v=Math.abs(k)<5;r||(r=v?Nt.restSpeed.granular:Nt.restSpeed.default),i||(i=v?Nt.restDelta.granular:Nt.restDelta.default);let S;if(w<1){const O=Bo(x,w);S=B=>{const L=Math.exp(-w*x*B);return s-L*((_+w*x*k)/O*Math.sin(O*B)+k*Math.cos(O*B))}}else if(w===1)S=O=>s-Math.exp(-x*O)*(k+(_+x*k)*O);else{const O=x*Math.sqrt(w*w-1);S=B=>{const L=Math.exp(-w*x*B),W=Math.min(O*B,300);return s-L*((_+w*x*k)*Math.sinh(W)+O*k*Math.cosh(W))/O}}const R={calculatedDuration:y&&h||null,next:O=>{const B=S(O);if(y)a.done=O>=h;else{let L=O===0?_:0;w<1&&(L=O===0?be(_):Wl(S,O,B));const W=Math.abs(L)<=r,F=Math.abs(s-B)<=i;a.done=W&&F}return a.value=a.done?s:B,a},toString:()=>{const O=Math.min(No(R),$r),B=zl(L=>R.next(O*L).value,O,30);return O+"ms "+B},toTransition:()=>{}};return R}Ur.applyToOptions=t=>{const e=my(t,100,Ur);return t.ease=e.ease,t.duration=be(e.duration),t.type="keyframes",t};function Lo({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=W=>a!==void 0&&W<a||l!==void 0&&W>l,_=W=>a===void 0?l:l===void 0||Math.abs(a-W)<Math.abs(l-W)?a:l;let w=n*e;const k=h+w,x=s===void 0?k:s(k);x!==k&&(w=x-h);const v=W=>-w*Math.exp(-W/r),S=W=>x+v(W),R=W=>{const F=v(W),Y=S(W);m.done=Math.abs(F)<=d,m.value=m.done?x:Y};let O,B;const L=W=>{y(m.value)&&(O=W,B=Ur({keyframes:[m.value,_(m.value)],velocity:Wl(S,W,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:c}))};return L(0),{calculatedDuration:null,next:W=>{let F=!1;return!B&&O===void 0&&(F=!0,R(W),L(W)),O!==void 0&&W>=O?B.next(W-O):(!F&&R(W),m)}}}function Sy(t,e,n){const r=[],i=n||Re.mix||Ul,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=Kn(l,a)}r.push(a)}return r}function Ey(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Br(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=Sy(e,r,i),l=a.length,d=c=>{if(s&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const m=Yn(t[h],t[h+1],c);return a[h](m)};return n?c=>d(Ie(t[0],t[o-1],c)):d}function Ay(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Yn(0,e,r);t.push(Mt(n,1,i))}}function Ty(t){const e=[0];return Ay(e,t.length-1),e}function Py(t,e){return t.map(n=>n*e)}function ky(t,e){return t.map(()=>e||Al).splice(0,t.length-1)}function er({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Vm(r)?r.map(kl):kl(r),o={done:!1,value:e[0]},s=Py(n&&n.length===e.length?n:Ty(e),t),a=Ey(s,e,{ease:Array.isArray(i)?i:ky(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Oy=t=>t!==null;function Fo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Oy),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const Cy={decay:Lo,inertia:Lo,tween:er,keyframes:er,spring:Ur};function Hl(t){typeof t.type=="string"&&(t.type=Cy[t.type])}class jo{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 Iy=t=>t/100;class Vo extends jo{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;Hl(e);const{type:n=er,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e;let{keyframes:a}=e;const l=n||er;l!==er&&typeof a[0]!="number"&&(this.mixKeyframes=Kn(Iy,Ul(a[0],a[1])),a=[0,100]);const d=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=No(d));const{calculatedDuration:c}=d;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:c,repeat:h,repeatType:m,repeatDelay:y,type:_,onUpdate:w,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(h){const W=Math.min(this.currentTime,i)/a;let F=Math.floor(W),Y=W%1;!Y&&W>=1&&(Y=1),Y===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(m==="reverse"?(Y=1-Y,y&&(Y-=y/a)):m==="mirror"&&(R=s)),S=Ie(0,1,Y)*a}const O=v?{done:!1,value:c[0]}:R.next(S);o&&(O.value=o(O.value));let{done:B}=O;!v&&l!==null&&(B=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return L&&_!==Lo&&(O.value=Fo(c,this.options,k,this.speed)),w&&w(O.value),L&&this.finish(),O}then(e,n){return this.finished.then(e,n)}get duration(){return we(this.calculatedDuration)}get time(){return we(this.currentTime)}set time(e){var n;e=be(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=we(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=py,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 Ry(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const qe=t=>t*180/Math.PI,$o=t=>{const e=qe(Math.atan2(t[1],t[0]));return Uo(e)},My={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:$o,rotateZ:$o,skewX:t=>qe(Math.atan(t[1])),skewY:t=>qe(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Uo=t=>(t=t%360,t<0&&(t+=360),t),Gl=$o,Kl=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Yl=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ny={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kl,scaleY:Yl,scale:t=>(Kl(t)+Yl(t))/2,rotateX:t=>Uo(qe(Math.atan2(t[6],t[5]))),rotateY:t=>Uo(qe(Math.atan2(-t[2],t[0]))),rotateZ:Gl,rotate:Gl,skewX:t=>qe(Math.atan(t[4])),skewY:t=>qe(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function zo(t){return t.includes("scale")?1:0}function Wo(t,e){if(!t||t==="none")return zo(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Ny,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=My,i=a}if(!i)return zo(e);const o=r[e],s=i[1].split(",").map(By);return typeof o=="function"?o(s):s[o]}const Dy=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Wo(n,e)};function By(t){return parseFloat(t.trim())}const mn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yn=new Set(mn),Xl=t=>t===hn||t===it,Ly=new Set(["x","y","z"]),Fy=mn.filter(t=>!Ly.has(t));function jy(t){const e=[];return Fy.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const He={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})=>Wo(e,"x"),y:(t,{transform:e})=>Wo(e,"y")};He.translateX=He.x,He.translateY=He.y;const Ge=new Set;let qo=!1,Ho=!1,Go=!1;function Jl(){if(Ho){const t=Array.from(Ge).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=jy(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)})}Ho=!1,qo=!1,Ge.forEach(t=>t.complete(Go)),Ge.clear()}function Zl(){Ge.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ho=!0)})}function Vy(){Go=!0,Zl(),Jl(),Go=!1}class Ko{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?(Ge.add(this),qo||(qo=!0,Ct.read(Zl),Ct.resolveKeyframes(Jl))):(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])}Ry(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ge.delete(this)}cancel(){this.state==="scheduled"&&(Ge.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $y=t=>t.startsWith("--");function Uy(t,e,n){$y(e)?t.style.setProperty(e,n):t.style[e]=n}const zy=bo(()=>window.ScrollTimeline!==void 0),Wy={};function qy(t,e){const n=bo(t);return()=>Wy[e]??n()}const Ql=qy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nr=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,tu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function eu(t,e){if(t)return typeof t=="function"?Ql()?zl(t,e):"ease-out":Tl(t)?nr(t):Array.isArray(t)?t.map(n=>eu(n,e)||tu.easeOut):tu[t]}function Hy(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const c={[e]:n};l&&(c.offset=l);const h=eu(a,i);Array.isArray(h)&&(c.easing=h);const m={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),t.animate(c,m)}function nu(t){return typeof t=="function"&&"applyToOptions"in t}function Gy({type:t,...e}){return nu(t)&&Ql()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ky extends jo{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,Br(typeof e.type!="string");const d=Gy(e);this.animation=Hy(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Fo(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Uy(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 we(Number(e))}get time(){return we(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=be(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&zy()?(this.animation.timeline=e,ce):n(this)}}const ru={anticipate:xl,backInOut:_l,circInOut:El};function Yy(t){return t in ru}function Xy(t){typeof t.ease=="string"&&Yy(t.ease)&&(t.ease=ru[t.ease])}const iu=10;class Jy extends Ky{constructor(e){Xy(e),Hl(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 Vo({...s,autoplay:!1}),l=be(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-iu).value,a.sample(l).value,iu),a.stop()}}const ou=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ve.test(t)||t==="0")&&!t.startsWith("url("));function Zy(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 Qy(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=ou(i,e),a=ou(o,e);return!s||!a?!1:Zy(t)||(n==="spring"||nu(n))&&r}function Yo(t){t.duration=0,t.type}const tg=new Set(["opacity","clipPath","filter","transform"]),eg=bo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ng(t){var c;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return eg()&&n&&tg.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const rg=40;class ig extends jo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:c,...h}){var _;super(),this.stop=()=>{var w,k;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=re.now();const m={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:d,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Ko;this.keyframeResolver=new y(a,(w,k,x)=>this.onKeyframesResolved(w,k,m,!x),l,d,c),(_=this.keyframeResolver)==null||_.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:c}=r;this.resolvedAt=re.now(),Qy(e,o,s,a)||((Re.instantAnimations||!l)&&(c==null||c(Fo(e,r,n))),e[0]=e[e.length-1],Yo(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>rg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!d&&ng(m)?new Jy({...m,element:m.motionValue.owner.current}):new Vo(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(),Vy()),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 og=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sg(t){const e=og.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function su(t,e,n=1){const[r,i]=sg(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return hl(s)?parseFloat(s):s}return Ao(i)?su(i,e,n+1):i}function Xo(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const au=new Set(["width","height","top","left","right","bottom",...mn]),ag={test:t=>t==="auto",parse:t=>t},cu=t=>e=>e.test(t),lu=[hn,it,_e,je,Zm,Jm,ag],uu=t=>lu.find(cu(t));function cg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ml(t):!0}const lg=new Set(["brightness","contrast","saturate","opacity"]);function ug(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(To)||[];if(!r)return t;const i=n.replace(r,"");let o=lg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const fg=/\b([a-z-]*)\(.*?\)/gu,Jo={...Ve,getAnimatableNone:t=>{const e=t.match(fg);return e?e.map(ug).join(" "):t}},fu={...hn,transform:Math.round},Zo={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...{rotate:je,rotateX:je,rotateY:je,rotateZ:je,scale:jr,scaleX:jr,scaleY:jr,scaleZ:jr,skew:je,skewX:je,skewY:je,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:Jn,originX:Ml,originY:Ml,originZ:it},zIndex:fu,fillOpacity:Jn,strokeOpacity:Jn,numOctaves:fu},dg={...Zo,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Jo,WebkitFilter:Jo},du=t=>dg[t];function hu(t,e){let n=du(t);return n!==Jo&&(n=Ve),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const hg=new Set(["auto","none","0"]);function pg(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!hg.has(o)&&tr(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=hu(n,i)}class mg extends Ko{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let d=e[l];if(typeof d=="string"&&(d=d.trim(),Ao(d))){const c=su(d,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!au.has(r)||e.length!==2)return;const[i,o]=e,s=uu(i),a=uu(o);if(s!==a)if(Xl(s)&&Xl(a))for(let l=0;l<e.length;l++){const d=e[l];typeof d=="string"&&(e[l]=parseFloat(d))}else He[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||cg(e[i]))&&r.push(i);r.length&&pg(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=He[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]=He[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{e.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function yg(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 pu=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function mu(t){return pl(t)&&"offsetHeight"in t}const yu=30,gg=t=>!isNaN(parseFloat(t));class vg{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=gg(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 wo);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ct.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>yu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yu);return yl(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 gn(t,e){return new vg(t,e)}const{schedule:Qo,cancel:GE}=Cl(queueMicrotask,!1),pe={x:!1,y:!1};function gu(){return pe.x||pe.y}function bg(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 vu(t,e){const n=yg(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function bu(t){return!(t.pointerType==="touch"||gu())}function wg(t,e,n={}){const[r,i,o]=vu(t,n),s=a=>{if(!bu(a))return;const{target:l}=a,d=e(l,a);if(typeof d!="function"||!l)return;const c=h=>{bu(h)&&(d(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const wu=(t,e)=>e?t===e?!0:wu(t,e.parentElement):!1,ts=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,_g=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xg(t){return _g.has(t.tagName)||t.tabIndex!==-1}const zr=new WeakSet;function _u(t){return e=>{e.key==="Enter"&&t(e)}}function es(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sg=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=_u(()=>{if(zr.has(n))return;es(n,"down");const i=_u(()=>{es(n,"up")}),o=()=>es(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 xu(t){return ts(t)&&!gu()}function Eg(t,e,n={}){const[r,i,o]=vu(t,n),s=a=>{const l=a.currentTarget;if(!xu(a))return;zr.add(l);const d=e(l,a),c=(y,_)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),zr.has(l)&&zr.delete(l),xu(y)&&typeof d=="function"&&d(y,{success:_})},h=y=>{c(y,l===window||l===document||n.useGlobalTarget||wu(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),mu(a)&&(a.addEventListener("focus",d=>Sg(d,i)),!xg(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Su(t){return pl(t)&&"ownerSVGElement"in t}function Ag(t){return Su(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Tg=[...lu,Vt,Ve],Pg=t=>Tg.find(cu(t)),ns=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class kg extends oe{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=mu(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 Og({children:t,isPresent:e,anchorX:n,root:r}){const i=un(),o=ot(null),s=ot({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=jt(ns);return Hn(()=>{const{width:l,height:d,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!d)return;const y=n==="left"?`left: ${h}`:`right: ${m}`;o.current.dataset.motionPopId=i;const _=document.createElement("style");a&&(_.nonce=a);const w=r??document.head;return w.appendChild(_),_.sheet&&_.sheet.insertRule(`
1
+ (function(){"use strict";var Vn,ut,hc,Ue,pc,mc,qi,yc,Hi,Gi,Ki,gc,$n={},vc=[],cm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Or=Array.isArray;function Pe(t,e){for(var n in e)t[n]=e[n];return t}function Yi(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function nt(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Vn.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 Un(t,s,r,i,null)}function Un(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??++hc,__i:-1,__u:0};return i==null&&ut.vnode!=null&&ut.vnode(o),o}function bc(){return{current:null}}function Ot(t){return t.children}function oe(t,e){this.props=t,this.context=e}function cn(t,e){if(e==null)return t.__?cn(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"?cn(t):null}function wc(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 wc(t)}}function Xi(t){(!t.__d&&(t.__d=!0)&&Ue.push(t)&&!Cr.__r++||pc!==ut.debounceRendering)&&((pc=ut.debounceRendering)||mc)(Cr)}function Cr(){var t,e,n,r,i,o,s,a;for(Ue.sort(qi);t=Ue.shift();)t.__d&&(e=Ue.length,r=void 0,o=(i=(n=t).__v).__e,s=[],a=[],n.__P&&((r=Pe({},i)).__v=i.__v+1,ut.vnode&&ut.vnode(r),Ji(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??cn(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Ac(s,r,a),r.__e!=o&&wc(r)),Ue.length>e&&Ue.sort(qi));Cr.__r=0}function _c(t,e,n,r,i,o,s,a,l,d,c){var h,m,y,_,w,k,x=r&&r.__k||vc,v=e.length;for(l=lm(n,e,x,l,v),h=0;h<v;h++)(y=n.__k[h])!=null&&(m=y.__i===-1?$n:x[y.__i]||$n,y.__i=h,k=Ji(t,y,m,i,o,s,a,l,d,c),_=y.__e,y.ref&&m.ref!=y.ref&&(m.ref&&Zi(m.ref,null,y),c.push(y.ref,y.__c||_,y)),w==null&&_!=null&&(w=_),4&y.__u||m.__k===y.__k?l=xc(y,l,t):typeof y.type=="function"&&k!==void 0?l=k:_&&(l=_.nextSibling),y.__u&=-7);return n.__e=w,l}function lm(t,e,n,r,i){var o,s,a,l,d,c=n.length,h=c,m=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+m,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Un(null,s,null,null,null):Or(s)?Un(Ot,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?Un(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=um(s,n,l,h))!==-1&&(h--,(a=n[d])&&(a.__u|=2)),a==null||a.__v===null?(d==-1&&m--,typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?m--:d==l+1?m++:(d>l?m--:m++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<c;o++)(a=n[o])!=null&&!(2&a.__u)&&(a.__e==r&&(r=cn(a)),Tc(a,a));return r}function xc(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=xc(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=cn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ke(t,e){return e=e||[],t==null||typeof t=="boolean"||(Or(t)?t.some(function(n){ke(n,e)}):e.push(t)),e}function um(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 Sc(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||cm.test(e)?n:n+"px"}function Ir(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||Sc(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Sc(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(yc,"$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=Hi,t.addEventListener(e,o?Ki:Gi,o)):t.removeEventListener(e,o?Ki:Gi,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 Ec(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Hi++;else if(e.t<n.u)return;return n(ut.event?ut.event(e):e)}}}function Ji(t,e,n,r,i,o,s,a,l,d){var c,h,m,y,_,w,k,x,v,S,R,O,B,L,W,F,Y,Z=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=ut.__b)&&c(e);t:if(typeof Z=="function")try{if(x=e.props,v="prototype"in Z&&Z.prototype.render,S=(c=Z.contextType)&&r[c.__c],R=c?S?S.props.value:c.__:r,n.__c?k=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new Z(x,R):(e.__c=h=new oe(x,R),h.constructor=Z,h.render=dm),S&&S.sub(h),h.props=x,h.state||(h.state={}),h.context=R,h.__n=r,m=h.__d=!0,h.__h=[],h._sb=[]),v&&h.__s==null&&(h.__s=h.state),v&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=Pe({},h.__s)),Pe(h.__s,Z.getDerivedStateFromProps(x,h.__s))),y=h.props,_=h.state,h.__v=e,m)v&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),v&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(v&&Z.getDerivedStateFromProps==null&&x!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(x,R),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(x,h.__s,R)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(et){et&&(et.__=e)}),O=0;O<h._sb.length;O++)h.__h.push(h._sb[O]);h._sb=[],h.__h.length&&s.push(h);break t}h.componentWillUpdate!=null&&h.componentWillUpdate(x,h.__s,R),v&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,_,w)})}if(h.context=R,h.props=x,h.__P=t,h.__e=!1,B=ut.__r,L=0,v){for(h.state=h.__s,h.__d=!1,B&&B(e),c=h.render(h.props,h.state,h.context),W=0;W<h._sb.length;W++)h.__h.push(h._sb[W]);h._sb=[]}else do h.__d=!1,B&&B(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++L<25);h.state=h.__s,h.getChildContext!=null&&(r=Pe(Pe({},r),h.getChildContext())),v&&!m&&h.getSnapshotBeforeUpdate!=null&&(w=h.getSnapshotBeforeUpdate(y,_)),a=_c(t,Or(F=c!=null&&c.type===Ot&&c.key==null?c.props.children:c)?F:[F],e,n,r,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),k&&(h.__E=h.__=null)}catch(et){if(e.__v=null,l||o!=null)if(et.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Y=o.length;Y--;)Yi(o[Y]);else e.__e=n.__e,e.__k=n.__k;ut.__e(et,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=fm(n.__e,e,n,r,i,o,s,l,d);return(c=ut.diffed)&&c(e),128&e.__u?void 0:a}function Ac(t,e,n){for(var r=0;r<n.length;r++)Zi(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 fm(t,e,n,r,i,o,s,a,l){var d,c,h,m,y,_,w,k=n.props,x=e.props,v=e.type;if(v=="svg"?i="http://www.w3.org/2000/svg":v=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!v&&(v?y.localName==v:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(v==null)return document.createTextNode(x);t=document.createElementNS(i,v,x.is&&x),a&&(ut.__m&&ut.__m(e,o),a=!1),o=null}if(v===null)k===x||a&&t.data===x||(t.data=x);else{if(o=o&&Vn.call(t.childNodes),k=n.props||$n,!a&&o!=null)for(k={},d=0;d<t.attributes.length;d++)k[(y=t.attributes[d]).name]=y.value;for(d in k)if(y=k[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in x)){if(d=="value"&&"defaultValue"in x||d=="checked"&&"defaultChecked"in x)continue;Ir(t,d,null,y,i)}}for(d in x)y=x[d],d=="children"?m=y:d=="dangerouslySetInnerHTML"?c=y:d=="value"?_=y:d=="checked"?w=y:a&&typeof y!="function"||k[d]===y||Ir(t,d,y,k[d],i);if(c)a||h&&(c.__html===h.__html||c.__html===t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),_c(t,Or(m)?m:[m],e,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&cn(n,0),a,l),o!=null)for(d=o.length;d--;)Yi(o[d]);a||(d="value",v=="progress"&&_==null?t.removeAttribute("value"):_!==void 0&&(_!==t[d]||v=="progress"&&!_||v=="option"&&_!==k[d])&&Ir(t,d,_,k[d],i),d="checked",w!==void 0&&w!==t[d]&&Ir(t,d,w,k[d],i))}return t}function Zi(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 Tc(t,e,n){var r,i;if(ut.unmount&&ut.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Zi(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]&&Tc(r[i],e,n||typeof t.type!="function");n||Yi(t.__e),t.__c=t.__=t.__e=void 0}function dm(t,e,n){return this.constructor(t,n)}function zn(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=[],Ji(e,t=(!r&&n||e).__k=nt(Ot,null,[t]),i||$n,$n,e.namespaceURI,!r&&n?[n]:i?null:e.firstChild?Vn.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r,s),Ac(o,t,s)}function Pc(t,e){zn(t,e,Pc)}function hm(t,e,n){var r,i,o,s,a=Pe({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?r=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!==void 0?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?Vn.call(arguments,2):n),Un(t.type,a,r||t.key,i||t.ref,null)}function te(t,e){var n={__c:e="__cC"+gc++,__: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,Xi(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}Vn=vc.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}},hc=0,oe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Pe({},this.state),typeof t=="function"&&(t=t(Pe({},n),this.props)),t&&Pe(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Xi(this))},oe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Xi(this))},oe.prototype.render=Ot,Ue=[],mc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qi=function(t,e){return t.__v.__b-e.__v.__b},Cr.__r=0,yc=/(PointerCapture)$|Capture$/i,Hi=0,Gi=Ec(!1),Ki=Ec(!0),gc=0;var pm=0;function M(t,e,n,r,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--pm,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return ut.vnode&&ut.vnode(d),d}var Oe,Et,Qi,kc,ln=0,Oc=[],Rt=ut,Cc=Rt.__b,Ic=Rt.__r,Rc=Rt.diffed,Mc=Rt.__c,Nc=Rt.unmount,Dc=Rt.__;function ze(t,e){Rt.__h&&Rt.__h(Et,t,ln||e),ln=0;var n=Et.__H||(Et.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function wt(t){return ln=1,Wn(Lc,t)}function Wn(t,e,n){var r=ze(Oe++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Lc(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,a);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=Et,!Et.u)){var i=function(a,l,d){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(m){return!!m.__c});if(c.every(function(m){return!m.__N}))return!o||o.call(this,a,l,d);var h=r.__c.props!==a;return c.forEach(function(m){if(m.__N){var y=m.__[0];m.__=m.__N,m.__N=void 0,y!==m.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Et.u=!0;var o=Et.shouldComponentUpdate,s=Et.componentWillUpdate;Et.componentWillUpdate=function(a,l,d){if(this.__e){var c=o;o=void 0,i(a,l,d),o=c}s&&s.call(this,a,l,d)},Et.shouldComponentUpdate=i}return r.__N||r.__}function yt(t,e){var n=ze(Oe++,3);!Rt.__s&&no(n.__H,e)&&(n.__=t,n.i=e,Et.__H.__h.push(n))}function Ce(t,e){var n=ze(Oe++,4);!Rt.__s&&no(n.__H,e)&&(n.__=t,n.i=e,Et.__h.push(n))}function ot(t){return ln=5,qt(function(){return{current:t}},[])}function qn(t,e,n){ln=6,Ce(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 qt(t,e){var n=ze(Oe++,7);return no(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function kt(t,e){return ln=8,qt(function(){return t},e)}function jt(t){var e=Et.context[t.__c],n=ze(Oe++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(Et)),e.props.value):t.__}function to(t,e){Rt.useDebugValue&&Rt.useDebugValue(e?e(t):t)}function mm(t){var e=ze(Oe++,10),n=wt();return e.__=t,Et.componentDidCatch||(Et.componentDidCatch=function(r,i){e.__&&e.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function un(){var t=ze(Oe++,11);if(!t.__){for(var e=Et.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function ym(){for(var t;t=Oc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rr),t.__H.__h.forEach(eo),t.__H.__h=[]}catch(e){t.__H.__h=[],Rt.__e(e,t.__v)}}Rt.__b=function(t){Et=null,Cc&&Cc(t)},Rt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Dc&&Dc(t,e)},Rt.__r=function(t){Ic&&Ic(t),Oe=0;var e=(Et=t.__c).__H;e&&(Qi===Et?(e.__h=[],Et.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(Rr),e.__h.forEach(eo),e.__h=[],Oe=0)),Qi=Et},Rt.diffed=function(t){Rc&&Rc(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Oc.push(e)!==1&&kc===Rt.requestAnimationFrame||((kc=Rt.requestAnimationFrame)||gm)(ym)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Qi=Et=null},Rt.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(r){return!r.__||eo(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Rt.__e(r,n.__v)}}),Mc&&Mc(t,e)},Rt.unmount=function(t){Nc&&Nc(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Rr(r)}catch(i){e=i}}),n.__H=void 0,e&&Rt.__e(e,n.__v))};var Bc=typeof requestAnimationFrame=="function";function gm(t){var e,n=function(){clearTimeout(r),Bc&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Bc&&(e=requestAnimationFrame(n))}function Rr(t){var e=Et,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Et=e}function eo(t){var e=Et;t.__c=t.__(),Et=e}function no(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function Lc(t,e){return typeof e=="function"?e(t):e}function Fc(t,e){for(var n in e)t[n]=e[n];return t}function ro(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 io(t,e){var n=e(),r=wt({t:{__:n,u:e}}),i=r[0].t,o=r[1];return Ce(function(){i.__=n,i.u=e,oo(i)&&o({t:i})},[t,n,e]),yt(function(){return oo(i)&&o({t:i}),t(function(){oo(i)&&o({t:i})})},[t]),n}function oo(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 so(t){t()}function ao(t){return t}function co(){return[!1,so]}var Hn=Ce;function Mr(t,e){this.props=t,this.context=e}function jc(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:ro(this.props,i)}function r(i){return this.shouldComponentUpdate=n,nt(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Mr.prototype=new oe).isPureReactComponent=!0,Mr.prototype.shouldComponentUpdate=function(t,e){return ro(this.props,t)||ro(this.state,e)};var Vc=ut.__b;ut.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Vc&&Vc(t)};var vm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Le(t){function e(n){var r=Fc({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=vm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var $c=function(t,e){return t==null?null:ke(ke(t).map(e))},lo={map:$c,forEach:$c,count:function(t){return t?ke(t).length:0},only:function(t){var e=ke(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:ke},bm=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)}bm(t,e,n,r)};var Uc=ut.unmount;function zc(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=Fc({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return zc(r,e,n)})),t}function Wc(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Wc(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 Gn(){this.__u=0,this.o=null,this.__b=null}function qc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Hc(t){var e,n,r;function i(o){if(e||(e=t()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw e;return nt(n,o)}return i.displayName="Lazy",i.__f=!0,i}function fn(){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),Uc&&Uc(t)},(Gn.prototype=new oe).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=qc(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]=Wc(l,l.__c.__P,l.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.o.pop();)d.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},Gn.prototype.componentWillUnmount=function(){this.o=[]},Gn.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]=zc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&nt(Ot,null,t.fallback);return i&&(i.__u&=-33),[nt(Ot,null,e.__a?null:t.children),i]};var Gc=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 wm(t){return this.getChildContext=function(){return t.context},t.children}function _m(t){var e=this,n=t.h;e.componentWillUnmount=function(){zn(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)}}),zn(nt(wm,{context:e.context},t.__v),e.v)}function uo(t,e){var n=nt(_m,{__v:t,h:e});return n.containerInfo=e,n}(fn.prototype=new oe).__a=function(t){var e=this,n=qc(e.__v),r=e.l.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Gc(e,t,r)):i()};n?n(o):o()}},fn.prototype.render=function(t){this.i=null,this.l=new Map;var e=ke(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},fn.prototype.componentDidUpdate=fn.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Gc(t,n,e)})};var Kc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xm=/^(?: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]/,Sm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Em=/[A-Z0-9]/g,Am=typeof document<"u",Tm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Yc(t,e,n){return e.__k==null&&(e.textContent=""),zn(t,e),typeof n=="function"&&n(),t?t.__c:null}function Xc(t,e,n){return Pc(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 Jc=ut.event;function Pm(){}function km(){return this.cancelBubble}function Om(){return this.defaultPrevented}ut.event=function(t){return Jc&&(t=Jc(t)),t.persist=Pm,t.isPropagationStopped=km,t.isDefaultPrevented=Om,t.nativeEvent=t};var fo,Cm={enumerable:!1,configurable:!0,get:function(){return this.class}},Zc=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||Am&&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"||Tm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Sm.test(s)&&(s=l):l=s="oninput":o&&xm.test(s)?s=s.replace(Em,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ke(n.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Cm)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=Kc,Zc&&Zc(t)};var Qc=ut.__r;ut.__r=function(t){Qc&&Qc(t),fo=t.__c};var tl=ut.diffed;ut.diffed=function(t){tl&&tl(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),fo=null};var el={ReactCurrentDispatcher:{current:{readContext:function(t){return fo.__n[t.__c].props.value},useCallback:kt,useContext:jt,useDebugValue:to,useDeferredValue:ao,useEffect:yt,useId:un,useImperativeHandle:qn,useInsertionEffect:Hn,useLayoutEffect:Ce,useMemo:qt,useReducer:Wn,useRef:ot,useState:wt,useSyncExternalStore:io,useTransition:co}}},nl="18.3.1";function rl(t){return nt.bind(null,t)}function dn(t){return!!t&&t.$$typeof===Kc}function il(t){return dn(t)&&t.type===Ot}function ol(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function ho(t){return dn(t)?hm.apply(null,arguments):t}function sl(t){return!!t.__k&&(zn(null,t),!0)}function al(t){return t&&(t.base||t.nodeType===1&&t)||null}var cl=function(t,e){return t(e)},ll=function(t,e){return t(e)},ul=Ot,fl=dn,Nr={useState:wt,useId:un,useReducer:Wn,useEffect:yt,useLayoutEffect:Ce,useInsertionEffect:Hn,useTransition:co,useDeferredValue:ao,useSyncExternalStore:io,startTransition:so,useRef:ot,useImperativeHandle:qn,useMemo:qt,useCallback:kt,useContext:jt,useDebugValue:to,version:"18.3.1",Children:lo,render:Yc,hydrate:Xc,unmountComponentAtNode:sl,createPortal:uo,createElement:nt,createContext:te,createFactory:rl,cloneElement:ho,createRef:bc,Fragment:Ot,isValidElement:dn,isElement:fl,isFragment:il,isMemo:ol,findDOMNode:al,Component:oe,PureComponent:Mr,memo:jc,forwardRef:Le,flushSync:ll,unstable_batchedUpdates:cl,StrictMode:ul,Suspense:Gn,SuspenseList:fn,lazy:Hc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el};const Im=Object.freeze(Object.defineProperty({__proto__:null,Children:lo,Component:oe,Fragment:Ot,PureComponent:Mr,StrictMode:ul,Suspense:Gn,SuspenseList:fn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el,cloneElement:ho,createContext:te,createElement:nt,createFactory:rl,createPortal:uo,createRef:bc,default:Nr,findDOMNode:al,flushSync:ll,forwardRef:Le,hydrate:Xc,isElement:fl,isFragment:il,isMemo:ol,isValidElement:dn,lazy:Hc,memo:jc,render:Yc,startTransition:so,unmountComponentAtNode:sl,unstable_batchedUpdates:cl,useCallback:kt,useContext:jt,useDebugValue:to,useDeferredValue:ao,useEffect:yt,useErrorBoundary:mm,useId:un,useImperativeHandle:qn,useInsertionEffect:Hn,useLayoutEffect:Ce,useMemo:qt,useReducer:Wn,useRef:ot,useState:wt,useSyncExternalStore:io,useTransition:co,version:nl},Symbol.toStringTag,{value:"Module"})),Rm='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#deskcord-root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}#deskcord-root .dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}#deskcord-root *{border-color:hsl(var(--border))}#deskcord-root body{background-color:hsl(var(--background))}#deskcord-root body{color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-px{left:1px;right:1px}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.bottom-px{bottom:1px}.end-0{inset-inline-end:0px}.left-0{left:0}.right-0{right:0}.right-1{right:.25rem}.start-0{inset-inline-start:0px}.top-0{top:0}.top-1{top:.25rem}.top-full{top:100%}.z-20{z-index:20}.m-2{margin:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.\\!me-1{margin-inline-end:.25rem!important}.\\!me-1\\.5{margin-inline-end:.375rem!important}.\\!ms-auto{margin-inline-start:auto!important}.mb-1{margin-bottom:.25rem}.mb-1\\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.me-11{margin-inline-end:2.75rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.ms-0\\.5{margin-inline-start:.125rem}.ms-2{margin-inline-start:.5rem}.ms-auto{margin-inline-start:auto}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\\[32px\\]{width:32px;height:32px}.size-\\[40px\\]{width:40px;height:40px}.\\!h-2\\.5{height:.625rem!important}.h-16{height:4rem}.h-2{height:.5rem}.h-32{height:8rem}.h-8{height:2rem}.h-full{height:100%}.max-h-40{max-height:10rem}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[200px\\]{max-height:200px}.\\!w-2\\.5{width:.625rem!important}.w-10{width:2.5rem}.w-16{width:4rem}.w-32{width:8rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[calc\\(100\\%-2rem\\)\\]{width:calc(100% - 2rem)}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-\\[100px\\]{max-width:100px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.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))}.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}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:calc(var(--radius) - 4px)!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-b-md{border-bottom-right-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-width:1px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.\\!border-gray-200{--tw-border-opacity: 1 !important;border-color:rgb(229 231 235 / var(--tw-border-opacity))!important}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-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-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-80{--tw-bg-opacity: .8}.fill-black{fill:#000}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-12{padding-bottom:3rem}.ps-11{padding-inline-start:2.75rem}.ps-4{padding-inline-start:1rem}.text-center{text-align:center}.text-end{text-align:end}.align-bottom{vertical-align:bottom}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[12px\\]{font-size:12px}.text-lg\\/5{font-size:1.125rem;line-height:1.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/3{font-size:.875rem;line-height:.75rem}.text-xs,.text-xs\\/4{font-size:.75rem;line-height:1rem}.\\!font-medium{font-weight:500!important}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-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-200{animation-duration:.2s}.duration-500{animation-duration:.5s}.running{animation-play-state:running}.hover\\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / 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\\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.hover\\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:z-10:focus{z-index:10}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\\:bg-blue-500:focus{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.focus\\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.focus\\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-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-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.focus\\:ring-opacity-50:focus{--tw-ring-opacity: .5}.disabled\\:pointer-events-none:disabled{pointer-events:none}.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))}.dark\\:focus\\:ring-neutral-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}}',Mm=".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}}",po=te({});function mo(t){const e=ot(null);return e.current===null&&(e.current=t()),e.current}const yo=typeof window<"u",dl=yo?Ce:yt,Dr=te(null);function go(t,e){t.indexOf(e)===-1&&t.push(e)}function vo(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ie=(t,e,n)=>n>e?e:n<t?t:n;let Br=()=>{};const Re={},hl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function pl(t){return typeof t=="object"&&t!==null}const ml=t=>/^0[^.\s]+$/u.test(t);function bo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ce=t=>t,Nm=(t,e)=>n=>e(t(n)),Kn=(...t)=>t.reduce(Nm),Yn=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class wo{constructor(){this.subscriptions=[]}add(e){return go(this.subscriptions,e),()=>vo(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 be=t=>t*1e3,we=t=>t/1e3;function yl(t,e){return e?t*(1e3/e):0}const gl=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Dm=1e-7,Bm=12;function Lm(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=gl(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>Dm&&++a<Bm);return s}function Xn(t,e,n,r){if(t===e&&n===r)return ce;const i=o=>Lm(o,0,1,t,n);return o=>o===0||o===1?o:gl(i(o),e,r)}const vl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,bl=t=>e=>1-t(1-e),wl=Xn(.33,1.53,.69,.99),_o=bl(wl),_l=vl(_o),xl=t=>(t*=2)<1?.5*_o(t):.5*(2-Math.pow(2,-10*(t-1))),xo=t=>1-Math.sin(Math.acos(t)),Sl=bl(xo),El=vl(xo),Fm=Xn(.42,0,1,1),jm=Xn(0,0,.58,1),Al=Xn(.42,0,.58,1),Vm=t=>Array.isArray(t)&&typeof t[0]!="number",Tl=t=>Array.isArray(t)&&typeof t[0]=="number",Pl={linear:ce,easeIn:Fm,easeInOut:Al,easeOut:jm,circIn:xo,circInOut:El,circOut:Sl,backIn:_o,backInOut:_l,backOut:wl,anticipate:xl},$m=t=>typeof t=="string",kl=t=>{if(Tl(t)){Br(t.length===4);const[e,n,r,i]=t;return Xn(e,n,r,i)}else if($m(t))return Br(Pl[t]!==void 0),Pl[t];return t},Lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ol={value:null,addProjectionMetrics:null};function Um(t,e){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function d(h){s.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,m=!1,y=!1)=>{const w=y&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(a=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),e&&Ol.value&&Ol.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const zm=40;function Cl(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Lr.reduce((S,R)=>(S[R]=Um(o,e?R:void 0),S),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:c,update:h,preRender:m,render:y,postRender:_}=s,w=()=>{const S=Re.useManualTiming?i.timestamp:performance.now();n=!1,Re.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,zm),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),d.process(i),c.process(i),h.process(i),m.process(i),y.process(i),_.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(w))},k=()=>{n=!0,r=!0,i.isProcessing||t(w)};return{schedule:Lr.reduce((S,R)=>{const O=s[R];return S[R]=(B,L=!1,W=!1)=>(n||k(),O.schedule(B,L,W)),S},{}),cancel:S=>{for(let R=0;R<Lr.length;R++)s[Lr[R]].cancel(S)},state:i,steps:s}}const{schedule:Ct,cancel:Fe,state:Xt,steps:So}=Cl(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0);let Fr;function Wm(){Fr=void 0}const re={now:()=>(Fr===void 0&&re.set(Xt.isProcessing||Re.useManualTiming?Xt.timestamp:performance.now()),Fr),set:t=>{Fr=t,queueMicrotask(Wm)}},Il=t=>e=>typeof e=="string"&&e.startsWith(t),Eo=Il("--"),qm=Il("var(--"),Ao=t=>qm(t)?Hm.test(t.split("/*")[0].trim()):!1,Hm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hn={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Jn={...hn,transform:t=>Ie(0,1,t)},jr={...hn,default:1},Zn=t=>Math.round(t*1e5)/1e5,To=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gm(t){return t==null}const Km=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Po=(t,e)=>n=>!!(typeof n=="string"&&Km.test(n)&&n.startsWith(t)||e&&!Gm(n)&&Object.prototype.hasOwnProperty.call(n,e)),Rl=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(To);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ym=t=>Ie(0,255,t),ko={...hn,transform:t=>Math.round(Ym(t))},We={test:Po("rgb","red"),parse:Rl("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+ko.transform(t)+", "+ko.transform(e)+", "+ko.transform(n)+", "+Zn(Jn.transform(r))+")"};function Xm(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 Oo={test:Po("#"),parse:Xm,transform:We.transform},Qn=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),je=Qn("deg"),_e=Qn("%"),it=Qn("px"),Jm=Qn("vh"),Zm=Qn("vw"),Ml={..._e,parse:t=>_e.parse(t)/100,transform:t=>_e.transform(t*100)},pn={test:Po("hsl","hue"),parse:Rl("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+_e.transform(Zn(e))+", "+_e.transform(Zn(n))+", "+Zn(Jn.transform(r))+")"},Vt={test:t=>We.test(t)||Oo.test(t)||pn.test(t),parse:t=>We.test(t)?We.parse(t):pn.test(t)?pn.parse(t):Oo.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?We.transform(t):pn.transform(t),getAnimatableNone:t=>{const e=Vt.parse(t);return e.alpha=0,Vt.transform(e)}},Qm=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ty(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(To))==null?void 0:e.length)||0)+(((n=t.match(Qm))==null?void 0:n.length)||0)>0}const Nl="number",Dl="color",ey="var",ny="var(",Bl="${}",ry=/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 tr(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(ry,l=>(Vt.test(l)?(r.color.push(o),i.push(Dl),n.push(Vt.parse(l))):l.startsWith(ny)?(r.var.push(o),i.push(ey),n.push(l)):(r.number.push(o),i.push(Nl),n.push(parseFloat(l))),++o,Bl)).split(Bl);return{values:n,split:a,indexes:r,types:i}}function Ll(t){return tr(t).values}function Fl(t){const{split:e,types:n}=tr(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===Nl?o+=Zn(i[s]):a===Dl?o+=Vt.transform(i[s]):o+=i[s]}return o}}const iy=t=>typeof t=="number"?0:Vt.test(t)?Vt.getAnimatableNone(t):t;function oy(t){const e=Ll(t);return Fl(t)(e.map(iy))}const Ve={test:ty,parse:Ll,createTransformer:Fl,getAnimatableNone:oy};function Co(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 sy({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=Co(l,a,t+1/3),o=Co(l,a,t),s=Co(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Vr(t,e){return n=>n>0?e:t}const Mt=(t,e,n)=>t+(e-t)*n,Io=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},ay=[Oo,We,pn],cy=t=>ay.find(e=>e.test(t));function jl(t){const e=cy(t);if(!e)return!1;let n=e.parse(t);return e===pn&&(n=sy(n)),n}const Vl=(t,e)=>{const n=jl(t),r=jl(e);if(!n||!r)return Vr(t,e);const i={...n};return o=>(i.red=Io(n.red,r.red,o),i.green=Io(n.green,r.green,o),i.blue=Io(n.blue,r.blue,o),i.alpha=Mt(n.alpha,r.alpha,o),We.transform(i))},Ro=new Set(["none","hidden"]);function ly(t,e){return Ro.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function uy(t,e){return n=>Mt(t,e,n)}function Mo(t){return typeof t=="number"?uy:typeof t=="string"?Ao(t)?Vr:Vt.test(t)?Vl:hy:Array.isArray(t)?$l:typeof t=="object"?Vt.test(t)?Vl:fy:Vr}function $l(t,e){const n=[...t],r=n.length,i=t.map((o,s)=>Mo(o)(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function fy(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Mo(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function dy(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 hy=(t,e)=>{const n=Ve.createTransformer(e),r=tr(t),i=tr(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?Ro.has(t)&&!i.values.length||Ro.has(e)&&!r.values.length?ly(t,e):Kn($l(dy(r,i),i.values),n):Vr(t,e)};function Ul(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Mt(t,e,n):Mo(t)(t,e)}const py=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Ct.update(e,n),stop:()=>Fe(e),now:()=>Xt.isProcessing?Xt.timestamp:re.now()}},zl=(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)})`},$r=2e4;function No(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<$r;)e+=n,r=t.next(e);return e>=$r?1/0:e}function my(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(No(r),$r);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:we(i)}}const yy=5;function Wl(t,e,n){const r=Math.max(e-yy,0);return yl(n-t(r),e-r)}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Do=.001;function gy({duration:t=Nt.duration,bounce:e=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let i,o,s=1-e;s=Ie(Nt.minDamping,Nt.maxDamping,s),t=Ie(Nt.minDuration,Nt.maxDuration,we(t)),s<1?(i=d=>{const c=d*s,h=c*t,m=c-n,y=Bo(d,s),_=Math.exp(-h);return Do-m/y*_},o=d=>{const h=d*s*t,m=h*n+n,y=Math.pow(s,2)*Math.pow(d,2)*t,_=Math.exp(-h),w=Bo(Math.pow(d,2),s);return(-i(d)+Do>0?-1:1)*((m-y)*_)/w}):(i=d=>{const c=Math.exp(-d*t),h=(d-n)*t+1;return-Do+c*h},o=d=>{const c=Math.exp(-d*t),h=(n-d)*(t*t);return c*h});const a=5/t,l=by(i,o,a);if(t=be(t),isNaN(l))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:t};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:t}}}const vy=12;function by(t,e,n){let r=n;for(let i=1;i<vy;i++)r=r-t(r)/e(r);return r}function Bo(t,e){return t*Math.sqrt(1-e*e)}const wy=["duration","bounce"],_y=["stiffness","damping","mass"];function ql(t,e){return e.some(n=>t[n]!==void 0)}function xy(t){let e={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...t};if(!ql(t,_y)&&ql(t,wy))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ie(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Nt.mass,stiffness:i,damping:o}}else{const n=gy(t);e={...e,...n,mass:Nt.mass},e.isResolvedFromDuration=!0}return e}function Ur(t=Nt.visualDuration,e=Nt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:d,mass:c,duration:h,velocity:m,isResolvedFromDuration:y}=xy({...n,velocity:-we(n.velocity||0)}),_=m||0,w=d/(2*Math.sqrt(l*c)),k=s-o,x=we(Math.sqrt(l/c)),v=Math.abs(k)<5;r||(r=v?Nt.restSpeed.granular:Nt.restSpeed.default),i||(i=v?Nt.restDelta.granular:Nt.restDelta.default);let S;if(w<1){const O=Bo(x,w);S=B=>{const L=Math.exp(-w*x*B);return s-L*((_+w*x*k)/O*Math.sin(O*B)+k*Math.cos(O*B))}}else if(w===1)S=O=>s-Math.exp(-x*O)*(k+(_+x*k)*O);else{const O=x*Math.sqrt(w*w-1);S=B=>{const L=Math.exp(-w*x*B),W=Math.min(O*B,300);return s-L*((_+w*x*k)*Math.sinh(W)+O*k*Math.cosh(W))/O}}const R={calculatedDuration:y&&h||null,next:O=>{const B=S(O);if(y)a.done=O>=h;else{let L=O===0?_:0;w<1&&(L=O===0?be(_):Wl(S,O,B));const W=Math.abs(L)<=r,F=Math.abs(s-B)<=i;a.done=W&&F}return a.value=a.done?s:B,a},toString:()=>{const O=Math.min(No(R),$r),B=zl(L=>R.next(O*L).value,O,30);return O+"ms "+B},toTransition:()=>{}};return R}Ur.applyToOptions=t=>{const e=my(t,100,Ur);return t.ease=e.ease,t.duration=be(e.duration),t.type="keyframes",t};function Lo({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:d=.5,restSpeed:c}){const h=t[0],m={done:!1,value:h},y=W=>a!==void 0&&W<a||l!==void 0&&W>l,_=W=>a===void 0?l:l===void 0||Math.abs(a-W)<Math.abs(l-W)?a:l;let w=n*e;const k=h+w,x=s===void 0?k:s(k);x!==k&&(w=x-h);const v=W=>-w*Math.exp(-W/r),S=W=>x+v(W),R=W=>{const F=v(W),Y=S(W);m.done=Math.abs(F)<=d,m.value=m.done?x:Y};let O,B;const L=W=>{y(m.value)&&(O=W,B=Ur({keyframes:[m.value,_(m.value)],velocity:Wl(S,W,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:c}))};return L(0),{calculatedDuration:null,next:W=>{let F=!1;return!B&&O===void 0&&(F=!0,R(W),L(W)),O!==void 0&&W>=O?B.next(W-O):(!F&&R(W),m)}}}function Sy(t,e,n){const r=[],i=n||Re.mix||Ul,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=Kn(l,a)}r.push(a)}return r}function Ey(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Br(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=Sy(e,r,i),l=a.length,d=c=>{if(s&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const m=Yn(t[h],t[h+1],c);return a[h](m)};return n?c=>d(Ie(t[0],t[o-1],c)):d}function Ay(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Yn(0,e,r);t.push(Mt(n,1,i))}}function Ty(t){const e=[0];return Ay(e,t.length-1),e}function Py(t,e){return t.map(n=>n*e)}function ky(t,e){return t.map(()=>e||Al).splice(0,t.length-1)}function er({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Vm(r)?r.map(kl):kl(r),o={done:!1,value:e[0]},s=Py(n&&n.length===e.length?n:Ty(e),t),a=Ey(s,e,{ease:Array.isArray(i)?i:ky(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Oy=t=>t!==null;function Fo(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Oy),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const Cy={decay:Lo,inertia:Lo,tween:er,keyframes:er,spring:Ur};function Hl(t){typeof t.type=="string"&&(t.type=Cy[t.type])}class jo{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 Iy=t=>t/100;class Vo extends jo{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;Hl(e);const{type:n=er,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=e;let{keyframes:a}=e;const l=n||er;l!==er&&typeof a[0]!="number"&&(this.mixKeyframes=Kn(Iy,Ul(a[0],a[1])),a=[0,100]);const d=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=No(d));const{calculatedDuration:c}=d;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:c,repeat:h,repeatType:m,repeatDelay:y,type:_,onUpdate:w,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(h){const W=Math.min(this.currentTime,i)/a;let F=Math.floor(W),Y=W%1;!Y&&W>=1&&(Y=1),Y===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(m==="reverse"?(Y=1-Y,y&&(Y-=y/a)):m==="mirror"&&(R=s)),S=Ie(0,1,Y)*a}const O=v?{done:!1,value:c[0]}:R.next(S);o&&(O.value=o(O.value));let{done:B}=O;!v&&l!==null&&(B=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return L&&_!==Lo&&(O.value=Fo(c,this.options,k,this.speed)),w&&w(O.value),L&&this.finish(),O}then(e,n){return this.finished.then(e,n)}get duration(){return we(this.calculatedDuration)}get time(){return we(this.currentTime)}set time(e){var n;e=be(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=we(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=py,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 Ry(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const qe=t=>t*180/Math.PI,$o=t=>{const e=qe(Math.atan2(t[1],t[0]));return Uo(e)},My={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:$o,rotateZ:$o,skewX:t=>qe(Math.atan(t[1])),skewY:t=>qe(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Uo=t=>(t=t%360,t<0&&(t+=360),t),Gl=$o,Kl=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Yl=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ny={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kl,scaleY:Yl,scale:t=>(Kl(t)+Yl(t))/2,rotateX:t=>Uo(qe(Math.atan2(t[6],t[5]))),rotateY:t=>Uo(qe(Math.atan2(-t[2],t[0]))),rotateZ:Gl,rotate:Gl,skewX:t=>qe(Math.atan(t[4])),skewY:t=>qe(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function zo(t){return t.includes("scale")?1:0}function Wo(t,e){if(!t||t==="none")return zo(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Ny,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=My,i=a}if(!i)return zo(e);const o=r[e],s=i[1].split(",").map(By);return typeof o=="function"?o(s):s[o]}const Dy=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Wo(n,e)};function By(t){return parseFloat(t.trim())}const mn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yn=new Set(mn),Xl=t=>t===hn||t===it,Ly=new Set(["x","y","z"]),Fy=mn.filter(t=>!Ly.has(t));function jy(t){const e=[];return Fy.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const He={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})=>Wo(e,"x"),y:(t,{transform:e})=>Wo(e,"y")};He.translateX=He.x,He.translateY=He.y;const Ge=new Set;let qo=!1,Ho=!1,Go=!1;function Jl(){if(Ho){const t=Array.from(Ge).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=jy(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)})}Ho=!1,qo=!1,Ge.forEach(t=>t.complete(Go)),Ge.clear()}function Zl(){Ge.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ho=!0)})}function Vy(){Go=!0,Zl(),Jl(),Go=!1}class Ko{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?(Ge.add(this),qo||(qo=!0,Ct.read(Zl),Ct.resolveKeyframes(Jl))):(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])}Ry(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ge.delete(this)}cancel(){this.state==="scheduled"&&(Ge.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const $y=t=>t.startsWith("--");function Uy(t,e,n){$y(e)?t.style.setProperty(e,n):t.style[e]=n}const zy=bo(()=>window.ScrollTimeline!==void 0),Wy={};function qy(t,e){const n=bo(t);return()=>Wy[e]??n()}const Ql=qy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nr=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,tu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function eu(t,e){if(t)return typeof t=="function"?Ql()?zl(t,e):"ease-out":Tl(t)?nr(t):Array.isArray(t)?t.map(n=>eu(n,e)||tu.easeOut):tu[t]}function Hy(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},d=void 0){const c={[e]:n};l&&(c.offset=l);const h=eu(a,i);Array.isArray(h)&&(c.easing=h);const m={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),t.animate(c,m)}function nu(t){return typeof t=="function"&&"applyToOptions"in t}function Gy({type:t,...e}){return nu(t)&&Ql()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ky extends jo{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,Br(typeof e.type!="string");const d=Gy(e);this.animation=Hy(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Fo(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Uy(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 we(Number(e))}get time(){return we(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=be(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&zy()?(this.animation.timeline=e,ce):n(this)}}const ru={anticipate:xl,backInOut:_l,circInOut:El};function Yy(t){return t in ru}function Xy(t){typeof t.ease=="string"&&Yy(t.ease)&&(t.ease=ru[t.ease])}const iu=10;class Jy extends Ky{constructor(e){Xy(e),Hl(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 Vo({...s,autoplay:!1}),l=be(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-iu).value,a.sample(l).value,iu),a.stop()}}const ou=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ve.test(t)||t==="0")&&!t.startsWith("url("));function Zy(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 Qy(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=ou(i,e),a=ou(o,e);return!s||!a?!1:Zy(t)||(n==="spring"||nu(n))&&r}function Yo(t){t.duration=0,t.type}const tg=new Set(["opacity","clipPath","filter","transform"]),eg=bo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ng(t){var c;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return eg()&&n&&tg.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const rg=40;class ig extends jo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:d,element:c,...h}){var _;super(),this.stop=()=>{var w,k;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=re.now();const m={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:d,element:c,...h},y=(c==null?void 0:c.KeyframeResolver)||Ko;this.keyframeResolver=new y(a,(w,k,x)=>this.onKeyframesResolved(w,k,m,!x),l,d,c),(_=this.keyframeResolver)==null||_.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:d,onUpdate:c}=r;this.resolvedAt=re.now(),Qy(e,o,s,a)||((Re.instantAnimations||!l)&&(c==null||c(Fo(e,r,n))),e[0]=e[e.length-1],Yo(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>rg?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},y=!d&&ng(m)?new Jy({...m,element:m.motionValue.owner.current}):new Vo(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(),Vy()),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 og=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sg(t){const e=og.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function su(t,e,n=1){const[r,i]=sg(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return hl(s)?parseFloat(s):s}return Ao(i)?su(i,e,n+1):i}function Xo(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const au=new Set(["width","height","top","left","right","bottom",...mn]),ag={test:t=>t==="auto",parse:t=>t},cu=t=>e=>e.test(t),lu=[hn,it,_e,je,Zm,Jm,ag],uu=t=>lu.find(cu(t));function cg(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ml(t):!0}const lg=new Set(["brightness","contrast","saturate","opacity"]);function ug(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(To)||[];if(!r)return t;const i=n.replace(r,"");let o=lg.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const fg=/\b([a-z-]*)\(.*?\)/gu,Jo={...Ve,getAnimatableNone:t=>{const e=t.match(fg);return e?e.map(ug).join(" "):t}},fu={...hn,transform:Math.round},Zo={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...{rotate:je,rotateX:je,rotateY:je,rotateZ:je,scale:jr,scaleX:jr,scaleY:jr,scaleZ:jr,skew:je,skewX:je,skewY:je,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:Jn,originX:Ml,originY:Ml,originZ:it},zIndex:fu,fillOpacity:Jn,strokeOpacity:Jn,numOctaves:fu},dg={...Zo,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Jo,WebkitFilter:Jo},du=t=>dg[t];function hu(t,e){let n=du(t);return n!==Jo&&(n=Ve),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const hg=new Set(["auto","none","0"]);function pg(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!hg.has(o)&&tr(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=hu(n,i)}class mg extends Ko{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let d=e[l];if(typeof d=="string"&&(d=d.trim(),Ao(d))){const c=su(d,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!au.has(r)||e.length!==2)return;const[i,o]=e,s=uu(i),a=uu(o);if(s!==a)if(Xl(s)&&Xl(a))for(let l=0;l<e.length;l++){const d=e[l];typeof d=="string"&&(e[l]=parseFloat(d))}else He[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||cg(e[i]))&&r.push(i);r.length&&pg(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=He[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]=He[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,d])=>{e.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function yg(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 pu=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function mu(t){return pl(t)&&"offsetHeight"in t}const yu=30,gg=t=>!isNaN(parseFloat(t));class vg{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=gg(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 wo);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ct.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>yu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yu);return yl(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 gn(t,e){return new vg(t,e)}const{schedule:Qo,cancel:GE}=Cl(queueMicrotask,!1),pe={x:!1,y:!1};function gu(){return pe.x||pe.y}function bg(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 vu(t,e){const n=yg(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function bu(t){return!(t.pointerType==="touch"||gu())}function wg(t,e,n={}){const[r,i,o]=vu(t,n),s=a=>{if(!bu(a))return;const{target:l}=a,d=e(l,a);if(typeof d!="function"||!l)return;const c=h=>{bu(h)&&(d(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const wu=(t,e)=>e?t===e?!0:wu(t,e.parentElement):!1,ts=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,_g=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xg(t){return _g.has(t.tagName)||t.tabIndex!==-1}const zr=new WeakSet;function _u(t){return e=>{e.key==="Enter"&&t(e)}}function es(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sg=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=_u(()=>{if(zr.has(n))return;es(n,"down");const i=_u(()=>{es(n,"up")}),o=()=>es(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 xu(t){return ts(t)&&!gu()}function Eg(t,e,n={}){const[r,i,o]=vu(t,n),s=a=>{const l=a.currentTarget;if(!xu(a))return;zr.add(l);const d=e(l,a),c=(y,_)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),zr.has(l)&&zr.delete(l),xu(y)&&typeof d=="function"&&d(y,{success:_})},h=y=>{c(y,l===window||l===document||n.useGlobalTarget||wu(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),mu(a)&&(a.addEventListener("focus",d=>Sg(d,i)),!xg(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Su(t){return pl(t)&&"ownerSVGElement"in t}function Ag(t){return Su(t)&&t.tagName==="svg"}const Zt=t=>!!(t&&t.getVelocity),Tg=[...lu,Vt,Ve],Pg=t=>Tg.find(cu(t)),ns=te({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class kg extends oe{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=mu(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 Og({children:t,isPresent:e,anchorX:n,root:r}){const i=un(),o=ot(null),s=ot({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=jt(ns);return Hn(()=>{const{width:l,height:d,top:c,left:h,right:m}=s.current;if(e||!o.current||!l||!d)return;const y=n==="left"?`left: ${h}`:`right: ${m}`;o.current.dataset.motionPopId=i;const _=document.createElement("style");a&&(_.nonce=a);const w=r??document.head;return w.appendChild(_),_.sheet&&_.sheet.insertRule(`
2
2
  [data-motion-pop-id="${i}"] {
3
3
  position: absolute !important;
4
4
  width: ${l}px !important;
@@ -92,7 +92,7 @@
92
92
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
93
93
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
94
94
  `);const v=x.state[a];if(v==null)return;JSON.stringify(i.getState())!==JSON.stringify(v)&&y(v);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(x)});case"DISPATCH":switch(w.payload.type){case"RESET":return y(_),a===void 0?c==null?void 0:c.init(i.getState()):c==null?void 0:c.init(fi(l.name));case"COMMIT":if(a===void 0){c==null||c.init(i.getState());return}return c==null?void 0:c.init(fi(l.name));case"ROLLBACK":return zs(w.state,x=>{if(a===void 0){y(x),c==null||c.init(i.getState());return}y(x[a]),c==null||c.init(fi(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zs(w.state,x=>{if(a===void 0){y(x);return}JSON.stringify(i.getState())!==JSON.stringify(x[a])&&y(x[a])});case"IMPORT_STATE":{const{nextLiftedState:x}=w.payload,v=(k=x.computedStates.slice(-1)[0])==null?void 0:k.state;if(!v)return;y(a===void 0?v:v[a]),c==null||c.send(null,x);return}case"PAUSE_RECORDING":return m=!m}return}}),_},zs=(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 cw(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 pr=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return pr(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return pr(r)(n)}}}},lw=(t,e)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:k=>k,version:0,merge:(k,x)=>({...x,...k}),...e},s=!1;const a=new Set,l=new Set;let d;try{d=o.getStorage()}catch{}if(!d)return t((...k)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...k)},r,i);const c=pr(o.serialize),h=()=>{const k=o.partialize({...r()});let x;const v=c({state:k,version:o.version}).then(S=>d.setItem(o.name,S)).catch(S=>{x=S});if(x)throw x;return v},m=i.setState;i.setState=(k,x)=>{m(k,x),h()};const y=t((...k)=>{n(...k),h()},r,i);let _;const w=()=>{var k;if(!d)return;s=!1,a.forEach(v=>v(r()));const x=((k=o.onRehydrateStorage)==null?void 0:k.call(o,r()))||void 0;return pr(d.getItem.bind(d))(o.name).then(v=>{if(v)return o.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return o.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var S;return _=o.merge(v,(S=r())!=null?S:y),n(_,!0),h()}).then(()=>{x==null||x(_,void 0),s=!0,l.forEach(v=>v(_))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:k=>{o={...o,...k},k.getStorage&&(d=k.getStorage())},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>w(),hasHydrated:()=>s,onHydrate:k=>(a.add(k),()=>{a.delete(k)}),onFinishHydration:k=>(l.add(k),()=>{l.delete(k)})},w(),_||y},uw=(t,e)=>(n,r,i)=>{let o={storage:cw(()=>localStorage),partialize:w=>w,version:0,merge:(w,k)=>({...k,...w}),...e},s=!1;const a=new Set,l=new Set;let d=o.storage;if(!d)return t((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...w)},r,i);const c=()=>{const w=o.partialize({...r()});return d.setItem(o.name,{state:w,version:o.version})},h=i.setState;i.setState=(w,k)=>{h(w,k),c()};const m=t((...w)=>{n(...w),c()},r,i);i.getInitialState=()=>m;let y;const _=()=>{var w,k;if(!d)return;s=!1,a.forEach(v=>{var S;return v((S=r())!=null?S:m)});const x=((k=o.onRehydrateStorage)==null?void 0:k.call(o,(w=r())!=null?w:m))||void 0;return pr(d.getItem.bind(d))(o.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return[!0,o.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var S;const[R,O]=v;if(y=o.merge(O,(S=r())!=null?S:m),n(y,!0),R)return c()}).then(()=>{x==null||x(y,void 0),y=r(),s=!0,l.forEach(v=>v(y))}).catch(v=>{x==null||x(void 0,v)})};return i.persist={setOptions:w=>{o={...o,...w},w.storage&&(d=w.storage)},clearStorage:()=>{d==null||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>_(),hasHydrated:()=>s,onHydrate:w=>(a.add(w),()=>{a.delete(w)}),onFinishHydration:w=>(l.add(w),()=>{l.delete(w)})},o.skipHydration||_(),y||m},Ht=Yb(aw(((t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((ui?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),lw(t,e)):uw(t,e))((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,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(li(i=>{const o=i.conversations.find(s=>s.threadId===n);o&&(o.csMember=r)})),addMessage:(n,r)=>t(li(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(li(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(li(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}}),{name:"discord-widget-storage",partialize:t=>({token:t.token,username:t.username,email:t.email,openConversationId:t.openConversationId,conversations:fw(t.conversations),guildSettings:t.guildSettings}),onRehydrateStorage:t=>()=>t.setRehydrated(!0)}),{enabled:!1}));function fw(t){return t.map(e=>({...e,messages:e.messages.filter(n=>!n.ephemeral&&!n.pending)}))}const Pd=460,dw="https://api.staging.deskcord.chat",hw=750;function pw(){var e,n;const t={app_id:(e=window==null?void 0:window.deskcordSettings)==null?void 0:e.app_id,api:((n=window==null?void 0:window.deskcordSettings)==null?void 0:n.api)??dw};if(!t.app_id)throw new Error("Cannot initialize discord chat. Please check your installation and embed.");return t}const ye=pw();async function mw({content:t}){const e=Ht.getState().username,n=ti.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 Pn=(t=>(t[t.IntroduceYourself=0]="IntroduceYourself",t[t.UploadFile=1]="UploadFile",t))(Pn||{});const mr="System",yw={content:"This conversation has been closed by the support.",support:!0,authorName:mr,date:Date.now()},gw={content:"",support:!0,authorName:mr,date:Date.now(),customRenderer:Pn.IntroduceYourself};function vw(t){return{content:`You are now chatting with ${t}.`,support:!0,authorName:mr,date:Date.now(),ephemeral:!0}}function bw(t){return{content:"",support:!0,authorName:mr,date:Date.now(),customRenderer:Pn.UploadFile,customRendererProps:{file:t},ephemeral:!0}}function ww(t){return{content:"",support:!1,authorName:"",date:Date.now(),ephemeral:!0,attachments:t}}const _w=Le(({accept:t,maxSize:e,uploadConfig:n,onFileSelect:r,onUploadComplete:i,onUploadStart:o,onError:s},a)=>{const l=ot(null),d=ot(null),{addMessage:c,getConversation:h,removeMessage:m,updateMessage:y}=Ht(),_=h();qn(a,()=>({upload:async()=>{if(d.current)try{const R=new FormData;R.append("file",d.current),o==null||o(d.current),k(d.current);const O=await fetch(n.url,{method:n.method,headers:n.headers,body:R}),B=await O.json();i==null||i(O),x(d.current),w(B)}catch(R){s==null||s(R),v(d.current)}},clear:()=>{d.current=null,l.current&&(l.current.value=""),r==null||r(null)}}));function w(R){_&&c(_.threadId,ww(R.attachments))}function k(R){_&&c(_.threadId,bw({fileName:R.name,status:"uploading",size:R.size}))}function x(R){var B;if(!_)return;const O=(B=h())==null?void 0:B.messages.find(L=>{var W,F;return((F=(W=L.customRendererProps)==null?void 0:W.file)==null?void 0:F.fileName)===R.name});O&&m(_.threadId,O.date)}function v(R){var B,L;if(!_)return;const O=(B=h())==null?void 0:B.messages.find(W=>{var F,Y;return((Y=(F=W.customRendererProps)==null?void 0:F.file)==null?void 0:Y.fileName)===R.name});(L=O==null?void 0:O.customRendererProps)!=null&&L.file&&y(_.threadId,O.date,{...O,customRendererProps:{...O.customRendererProps,file:{...O.customRendererProps.file,status:"error"}}})}return M(Ot,{children:[M("button",{className:"text-gray-500 hover:text-blue-500","aria-label":"Upload file",onClick:()=>{var R;return(R=l.current)==null?void 0:R.click()},children:M(pb,{size:16})}),M("input",{type:"file",accept:t,ref:l,style:{display:"none"},onChange:R=>{var B;const O=(B=R.target.files)==null?void 0:B[0];O&&O.size<=e?(d.current=O,r==null||r(O)):(d.current=null,r==null||r(null))}})]})}),xw=({size:t})=>M("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:M("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"})}),Sw=({onPickEmoji:t})=>M("div",{className:"mb-2 p-2 bg-white max-h-40 overflow-y-auto",children:M("div",{className:"grid grid-cols-8 gap-2",children:Ew.map((e,n)=>M("button",{className:"text-2xl hover:bg-gray-100 rounded",onClick:()=>t(e),children:e},n))})}),Ew=["๐Ÿ˜€","๐Ÿ˜ƒ","๐Ÿ˜„","๐Ÿ˜","๐Ÿ˜†","๐Ÿ˜…","๐Ÿ˜‚","๐Ÿคฃ","๐Ÿ˜Š","๐Ÿ˜‡","๐Ÿ™‚","๐Ÿ™ƒ","๐Ÿ˜‰","๐Ÿ˜Œ","๐Ÿ˜","๐Ÿฅฐ","๐Ÿ˜˜","๐Ÿ˜—","๐Ÿ˜™","๐Ÿ˜š","๐Ÿ˜‹","๐Ÿ˜›","๐Ÿ˜","๐Ÿ˜œ","๐Ÿคช","๐Ÿคจ","๐Ÿง","๐Ÿค“","๐Ÿ˜Ž","๐Ÿคฉ","๐Ÿฅณ","๐Ÿ˜","๐Ÿ˜’","๐Ÿ˜ž","๐Ÿ˜”","๐Ÿ˜Ÿ","๐Ÿ˜•","๐Ÿ™","โ˜น๏ธ","๐Ÿ˜ฃ","๐Ÿ˜–","๐Ÿ˜ซ","๐Ÿ˜ฉ","๐Ÿฅบ","๐Ÿ˜ข","๐Ÿ˜ญ","๐Ÿ˜ค","๐Ÿ˜ ","๐Ÿ˜ก","๐Ÿคฌ","๐Ÿคฏ","๐Ÿ˜ณ","๐Ÿฅต","๐Ÿฅถ","๐Ÿ˜ฑ","๐Ÿ˜จ","๐Ÿ˜ฐ","๐Ÿ˜ฅ","๐Ÿ˜“","๐Ÿค—","๐Ÿค”","๐Ÿคญ","๐Ÿคซ","๐Ÿคฅ","๐Ÿ˜ถ","๐Ÿ˜","๐Ÿ˜‘","๐Ÿ˜ฌ","๐Ÿ™„","๐Ÿ˜ฏ","๐Ÿ˜ฆ","๐Ÿ˜ง","๐Ÿ˜ฎ","๐Ÿ˜ฒ","๐Ÿฅฑ","๐Ÿ˜ด","๐Ÿคค","๐Ÿ˜ช","๐Ÿ˜ต","๐Ÿค","๐Ÿฅด","๐Ÿคข","๐Ÿคฎ","๐Ÿคง","๐Ÿ˜ท","๐Ÿค’","๐Ÿค•"],Aw=({imageUrl:t,fileName:e,onDelete:n,width:r,height:i})=>M("div",{className:"relative w-32 h-32 rounded-lg overflow-hidden bg-gray-100 border border-gray-200",children:[M("div",{className:"flex justify-center absolute inset-0",children:M("img",{src:t,alt:"Preview",className:`w-[${r}px] h-[${i}px] max-w-[100px] max-h-[100px] aspect-auto`})}),M("button",{onClick:n,className:"absolute top-1 right-1 bg-gray-600 p-1 rounded-lg text-red-400 hover:text-white transition",children:M(yb,{size:20})}),M("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})]}),Tw=t=>{const{inputMessage:e,setInputMessage:n,sendMessage:r,setFiles:i,files:o,showEmojiPicker:s,addEmoji:a,setShowEmojiPicker:l,attachmentPreviews:d}=t,{getConversation:c}=Ht(),h=c(),m=ti.get("discord-widget"),y=ot(null),_=(h==null?void 0:h.status)==="closed",w=()=>{},k=B=>{i(o.filter(L=>(B==null?void 0:B.name)!==L.name))},x=B=>{B&&i([...o,B])},v=()=>{var B;(B=y.current)==null||B.upload()},S=()=>{o.length&&v(),r()},R=B=>{B.key==="Enter"&&(B.shiftKey?(B.preventDefault(),n(`${e}
95
- `)):(B.preventDefault(),S()))};return M("div",{className:"relative border-t border-t-gray-200",children:[s&&M(Sw,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const B=o.map((L,W)=>{if(!d[L.name])return null;const{url:F,width:Y,height:Z}=d[L.name];return M(Aw,{onDelete:()=>{var et;i(o.filter(st=>st.name!==L.name)),(et=y.current)==null||et.clear()},fileName:L.name,width:Y,height:Z,imageUrl:F},`attachment-preview-${W}`)});return M("div",{className:"m-2",children:B})})(),M("textarea",{id:"hs-textarea-ex-1",disabled:_,value:e,onChange:B=>n(B.target.value),onKeyDown:R,className:"p-4 pb-12 block w-full border-t border-gray-200 text-sm outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 resize-none",placeholder:"Ask us anything!","data-hs-textarea-auto-height":""}),M("div",{className:"absolute bottom-px inset-x-px p-2 rounded-b-md bg-white dark:bg-neutral-900",children:M("div",{className:"flex justify-between items-center",children:[M("div",{className:"flex items-center",children:M("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:M(_w,{ref:y,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${m}`}},onUploadComplete:w,onUploadStart:k,onFileSelect:x})})}),M("div",{className:"flex items-center gap-x-1",children:[M("button",{type:"button",onClick:_?void 0:()=>l(!s),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:M(mb,{size:16})}),M("button",{type:"button",onClick:()=>S(),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white bg-blue-600 hover:bg-blue-500 focus:z-10 focus:outline-none focus:bg-blue-500",children:M(xw,{size:16})})]})]})})]})},kd=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`},Od="carousel",Cd="controller",Pw="navigation",kw="no-scroll",Ws="portal",Ow="root",Id="toolbar",qs="loading",Hs="error",Gs="complete",Cw="placeholder",Iw=t=>`active-slide-${t}`,Rd="flex_center",Rw="no_scroll",Md="no_scroll_padding",Mw="slide_wrapper",Qe="prev",tn="next",Nd="swipe",kn="close",Dd="onPointerDown",Bd="onPointerMove",Ld="onPointerUp",Fd="onPointerLeave",jd="onPointerCancel",Vd="onKeyDown",Nw="onKeyUp",$d="onWheel",Dw="Escape",Bw="ArrowLeft",Lw="ArrowRight",Fw="button",Ks="icon",Ud="contain",zd="cover",jw="Unknown action type",Wd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function xt(t){return`${Wd}${t}`}function ie(t){return`--${Wd}${t}`}function yr(t,e){return`${t}${e?`_${e}`:""}`}function Ys(t){return e=>yr(t,e)}function Vw(t,e){var n;return(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e}function qd(...t){return()=>{t.forEach(e=>{e()})}}function en(t,e,n){return()=>{const r=jt(n);if(!r)throw new Error(`${t} must be used within a ${e}.Provider`);return r}}function Hd(){return typeof window<"u"}function $w(t,e=0){const n=10**e;return Math.round((t+Number.EPSILON)*n)/n}function Gd(t){return t.type===void 0||t.type==="image"}function Uw(t,e){return t.imageFit===zd||t.imageFit!==Ud&&e===zd}function di(t){return typeof t=="string"?Number.parseInt(t,10):t}function hi(t){if(typeof t=="number")return{pixel:t};if(typeof t=="string"){const e=di(t);return t.endsWith("%")?{percent:e}:{pixel:e}}return{pixel:0}}function zw(t,e){const n=hi(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 Kd(t,e){return e>0?(t%e+e)%e:0}function Yd(t){return t.length>0}function Xd(t,e){return t[Kd(e,t.length)]}function Xs(t,e){return Yd(t)?Xd(t,e):void 0}function Ww(t){return Gd(t)?t.src:void 0}function qw(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const Hw=Number(nl.split(".")[0])>=19;function Gw(t){return{inert:Hw?t:t?"":void 0}}const Js={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[kn]},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:Ud,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 nn(t,e){return{name:t,component:e}}function Gt(t,e){return{module:t,children:e}}function Jd(t,e,n){return t.module.name===e?n(t):t.children?[Gt(t.module,t.children.flatMap(r=>{var i;return(i=Jd(r,e,n))!==null&&i!==void 0?i:[]}))]:[t]}function On(t,e,n){return t.flatMap(r=>{var i;return(i=Jd(r,e,n))!==null&&i!==void 0?i:[]})}function Kw(t,e=[],n=[]){let r=t;const i=y=>{const _=[...r];for(;_.length>0;){const w=_.pop();if((w==null?void 0:w.module.name)===y)return!0;w!=null&&w.children&&_.push(...w.children)}return!1},o=(y,_)=>{if(y===""){r=[Gt(_,r)];return}r=On(r,y,w=>[Gt(_,[w])])},s=(y,_)=>{r=On(r,y,w=>[Gt(w.module,[Gt(_,w.children)])])},a=(y,_,w)=>{r=On(r,y,k=>{var x;return[Gt(k.module,[...w?[Gt(_)]:[],...(x=k.children)!==null&&x!==void 0?x:[],...w?[]:[Gt(_)]])]})},l=(y,_,w)=>{r=On(r,y,k=>[...w?[Gt(_)]:[],k,...w?[]:[Gt(_)]])},d=y=>{s(Cd,y)},c=(y,_)=>{r=On(r,y,w=>[Gt(_,w.children)])},h=y=>{r=On(r,y,_=>_.children)},m=y=>{n.push(y)};return e.forEach(y=>{y({contains:i,addParent:o,append:s,addChild:a,addSibling:l,addModule:d,replace:c,remove:h,augment:m})}),{config:r,augmentation:y=>n.reduce((_,w)=>w(_),y)}}const Zd=te(null),Zs=en("useDocument","DocumentContext",Zd);function Yw({nodeRef:t,children:e}){const n=qt(()=>{const r=o=>{var s;return((s=o||t.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:o=>{var s;return((s=r(o))===null||s===void 0?void 0:s.defaultView)||window}}},[t]);return nt(Zd.Provider,{value:n},e)}const Qd=te(null),pi=en("useEvents","EventsContext",Qd);function Xw({children:t}){const[e]=wt({});yt(()=>()=>{Object.keys(e).forEach(r=>delete e[r])},[e]);const n=qt(()=>{const r=(s,a)=>{var l;(l=e[s])===null||l===void 0||l.splice(0,e[s].length,...e[s].filter(d=>d!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(d=>d(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return nt(Qd.Provider,{value:n},t)}const th=te(null),gr=en("useLightboxProps","LightboxPropsContext",th);function Jw({children:t,...e}){return nt(th.Provider,{value:e},t)}const eh=te(null),mi=en("useLightboxState","LightboxStateContext",eh),nh=te(null),Zw=en("useLightboxDispatch","LightboxDispatchContext",nh);function Qw(t,e){switch(e.type){case"swipe":{const{slides:n}=t,r=(e==null?void 0:e.increment)||0,i=t.globalIndex+r,o=Kd(i,n.length),s=Xs(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:Xs(e.slides,e.index)}:t;default:throw new Error(jw)}}function t_({slides:t,index:e,children:n}){const[r,i]=Wn(Qw,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Xs(t,e)});yt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=qt(()=>({...r,state:r,dispatch:i}),[r,i]);return nt(nh.Provider,{value:i},nt(eh.Provider,{value:o},n))}const rh=te(null),yi=en("useTimeouts","TimeoutsContext",rh);function e_({children:t}){const[e]=wt([]);yt(()=>()=>{e.forEach(r=>window.clearTimeout(r)),e.splice(0,e.length)},[e]);const n=qt(()=>{const r=s=>{e.splice(0,e.length,...e.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const l=window.setTimeout(()=>{r(l),s()},a);return e.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[e]);return nt(rh.Provider,{value:n},t)}const ih=Le(function({label:e,className:n,icon:r,renderIcon:i,onClick:o,style:s,...a},l){const{styles:d,labels:c}=gr(),h=Vw(c,e);return nt("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(xt(Fw),n),onClick:o,style:{...s,...d.button},...a},i?i():nt(r,{className:xt(Ks),style:d.icon}))});function n_(t,e){const n=r=>nt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},e);return n.displayName=t,n}function vr(t,e){return n_(t,nt("g",{fill:"currentColor"},nt("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const r_=vr("Close",nt("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),i_=vr("Previous",nt("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),o_=vr("Next",nt("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),s_=vr("Loading",nt(Ot,null,Array.from({length:8}).map((t,e,n)=>nt("line",{key:e,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(e+1),transform:`rotate(${360/n.length*e}, 12, 12)`})))),a_=vr("Error",nt("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),br=Hd()?Ce:yt;function oh(){const[t,e]=wt(!1);return yt(()=>{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 c_(t){let e=0,n=0,r=0;const o=window.getComputedStyle(t).transform.match(/matrix.*\((.+)\)/);if(o){const s=o[1].split(",").map(di);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 sh(t,e){const n=ot(),r=ot(),i=oh();return br(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:d,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),c_(t.current))||{};if(l&&d){(o=r.current)===null||o===void 0||o.cancel(),r.current=void 0;try{r.current=(a=(s=t.current).animate)===null||a===void 0?void 0:a.call(s,l,{duration:d,easing:c})}catch(m){console.error(m)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}n.current=void 0}),{prepareAnimation:o=>{n.current=o},isAnimationPlaying:()=>{var o;return((o=r.current)===null||o===void 0?void 0:o.playState)==="running"}}}function ah(){const t=ot(null),e=ot(),[n,r]=wt();return{setContainerRef:kt(o=>{t.current=o,e.current&&(e.current.disconnect(),e.current=void 0);const s=()=>{if(o){const a=window.getComputedStyle(o),l=d=>parseFloat(d)||0;r({width:Math.round(o.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(o.clientHeight-l(a.paddingTop)-l(a.paddingBottom))})}else r(void 0)};s(),o&&typeof ResizeObserver<"u"&&(e.current=new ResizeObserver(s),e.current.observe(o))},[]),containerRef:t,containerRect:n}}function gi(){const t=ot(),{setTimeout:e,clearTimeout:n}=yi();return kt((r,i)=>{n(t.current),t.current=e(r,i>0?i:0)},[e,n])}function $t(t){const e=ot(t);return br(()=>{e.current=t}),kt((...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function ch(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Qs(t,e){return qt(()=>t==null&&e==null?null:n=>{ch(t,n),ch(e,n)},[t,e])}function l_(t,e=!1){const n=ot();br(()=>{e&&n.current&&(n.current=!1,t())},[e,t]);const r=kt(()=>{n.current=!0},[]),i=kt(()=>{n.current=!1},[]);return{onFocus:r,onBlur:i}}function ta(){const[t,e]=wt(!1);return br(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function u_(){const[t]=wt({}),e=kt((i,o)=>{var s;(s=t[i])===null||s===void 0||s.forEach(a=>{o.isPropagationStopped()||a(o)})},[t]),n=qt(()=>({onPointerDown:i=>e(Dd,i),onPointerMove:i=>e(Bd,i),onPointerUp:i=>e(Ld,i),onPointerLeave:i=>e(Fd,i),onPointerCancel:i=>e(jd,i),onKeyDown:i=>e(Vd,i),onKeyUp:i=>e(Nw,i),onWheel:i=>e($d,i)}),[e]),r=kt((i,o)=>(t[i]||(t[i]=[]),t[i].unshift(o),()=>{const s=t[i];s&&s.splice(0,s.length,...s.filter(a=>a!==o))}),[t]);return{registerSensors:n,subscribeSensors:r}}function lh(t,e){const n=ot(0),r=gi(),i=$t((...o)=>{n.current=Date.now(),t(o)});return kt((...o)=>{r(()=>{i(o)},e-(Date.now()-n.current))},[e,i,r])}const ea=Ys("slide"),na=Ys("slide_image");function f_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:d}){var c,h,m,y,_,w,k;const[x,v]=wt(qs),{publish:S}=pi(),{setTimeout:R}=yi(),O=ot(null);yt(()=>{e===0&&S(Iw(x))},[e,x,S]);const B=$t(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Gs),R(()=>{a==null||a(G)},0))})}),L=kt(G=>{O.current=G,G!=null&&G.complete&&B(G)},[B]),W=kt(G=>{B(G.currentTarget)},[B]),F=$t(()=>{v(Hs),l==null||l()}),Y=Uw(t,i),Z=(G,E)=>Number.isFinite(G)?G:E,et=Z(Math.max(...((h=(c=t.srcSet)===null||c===void 0?void 0:c.map(G=>G.width))!==null&&h!==void 0?h:[]).concat(t.width?[t.width]:[]).filter(Boolean)),((m=O.current)===null||m===void 0?void 0:m.naturalWidth)||0),st=Z(Math.max(...((_=(y=t.srcSet)===null||y===void 0?void 0:y.map(G=>G.height))!==null&&_!==void 0?_:[]).concat(t.height?[t.height]:[]).filter(Boolean)),((w=O.current)===null||w===void 0?void 0:w.naturalHeight)||0),At=et&&st?{maxWidth:`min(${et}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},dt=(k=t.srcSet)===null||k===void 0?void 0:k.sort((G,E)=>G.width-E.width).map(G=>`${G.src} ${G.width}w`).join(", "),It=()=>r&&!Y&&t.width&&t.height?r.height/t.height*t.width:Number.MAX_VALUE,at=dt&&r&&Hd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:U,...H}=o||{};return nt(Ot,null,nt("img",{ref:L,onLoad:W,onError:F,onClick:s,draggable:!1,className:Ne(xt(na()),Y&&xt(na("cover")),x!==Gs&&xt(na("loading")),U),style:{...At,...d,...ht},...H,alt:t.alt,sizes:at,srcSet:dt,src:t.src}),x!==Gs&&nt("div",{className:xt(ea(Cw))},x===qs&&(n!=null&&n.iconLoading?n.iconLoading():nt(s_,{className:Ne(xt(Ks),xt(ea(qs)))})),x===Hs&&(n!=null&&n.iconError?n.iconError():nt(a_,{className:Ne(xt(Ks),xt(ea(Hs)))}))))}const d_=Le(function({className:e,children:n,...r},i){const o=ot(null);return nt(Yw,{nodeRef:o},nt("div",{ref:Qs(i,o),className:Ne(xt("root"),e),...r},n))});var Qt;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION"})(Qt||(Qt={}));function h_(t,e,n,r,i){yt(()=>qd(t(Dd,e),t(Bd,n),t(Ld,r),t(Fd,r),t(jd,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 ra=30;function p_(t,e,n,r,i,o,s,a,l,d,c,h,m,y){const _=ot(0),w=ot([]),k=ot(),x=ot(0),v=ot(ge.NONE),S=kt(F=>{k.current===F.pointerId&&(k.current=void 0,v.current=ge.NONE);const Y=w.current;Y.splice(0,Y.length,...Y.filter(Z=>Z.pointerId!==F.pointerId))},[]),R=kt(F=>{S(F),F.persist(),w.current.push(F)},[S]),O=$t(F=>{R(F)}),B=(F,Y)=>d&&F>Y||l&&F<-Y,L=$t(F=>{if(w.current.find(Y=>Y.pointerId===F.pointerId)&&k.current===F.pointerId){const Y=Date.now()-x.current,Z=_.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&&(B(Z,2*ra)?m(Z,Y):y(Z)),_.current=0,v.current=ge.NONE}S(F)}),W=$t(F=>{const Y=w.current.find(Z=>Z.pointerId===F.pointerId);if(Y){const Z=k.current===F.pointerId;if(F.buttons===0){Z&&_.current!==0?L(F):S(Y);return}const et=F.clientX-Y.clientX,st=F.clientY-Y.clientY;if(k.current===void 0){const At=dt=>{R(F),k.current=F.pointerId,x.current=Date.now(),v.current=dt};Math.abs(et)>Math.abs(st)&&Math.abs(et)>ra&&e(et)?(At(ge.SWIPE),i()):Math.abs(st)>Math.abs(et)&&B(st,ra)&&(At(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(_.current=et,o(et)):v.current===ge.PULL&&(_.current=st,h(st)))}});h_(t,O,W,L)}function m_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=ot(null),r=$t(i=>{const o=Math.abs(i.deltaX)>Math.abs(i.deltaY);(o&&t||!o&&e||i.ctrlKey)&&i.preventDefault()});return kt(i=>{var o;i?i.addEventListener("wheel",r,{passive:!1}):(o=n.current)===null||o===void 0||o.removeEventListener("wheel",r),n.current=i},[r])}function y_(t,e,n,r,i,o,s,a,l){const d=ot(0),c=ot(0),h=ot(),m=ot(),y=ot(0),_=ot(),w=ot(0),{setTimeout:k,clearTimeout:x}=yi(),v=kt(()=>{h.current&&(x(h.current),h.current=void 0)},[x]),S=kt(()=>{m.current&&(x(m.current),m.current=void 0)},[x]),R=$t(()=>{t!==Qt.SWIPE&&(d.current=0,w.current=0,v(),S())});yt(R,[t,R]);const O=$t(L=>{m.current=void 0,d.current===L&&l(d.current)}),B=$t(L=>{if(L.ctrlKey||Math.abs(L.deltaY)>Math.abs(L.deltaX))return;const W=F=>{y.current=F,x(_.current),_.current=F>0?k(()=>{y.current=0,_.current=void 0},300):void 0};if(t===Qt.NONE){if(Math.abs(L.deltaX)<=1.2*Math.abs(y.current)){W(L.deltaX);return}if(!n(-L.deltaX))return;if(c.current+=L.deltaX,v(),Math.abs(c.current)>30)c.current=0,W(0),w.current=Date.now(),o();else{const F=c.current;h.current=k(()=>{h.current=void 0,F===c.current&&(c.current=0)},i)}}else if(t===Qt.SWIPE){let F=d.current-L.deltaX;if(F=Math.min(Math.abs(F),r)*Math.sign(F),d.current=F,s(F),S(),Math.abs(F)>.2*r){W(L.deltaX),a(F,Date.now()-w.current);return}m.current=k(()=>O(F),2*i)}else W(L.deltaX)});yt(()=>e($d,B),[e,B])}const uh=Ys("container"),fh=te(null),wr=en("useController","ControllerContext",fh);function g_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:d,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,_]=wt(),w=mi(),k=Zw(),[x,v]=wt(Qt.NONE),S=ot(0),R=ot(0),O=ot(1),{registerSensors:B,subscribeSensors:L}=u_(),{subscribe:W,publish:F}=pi(),Y=gi(),Z=gi(),et=gi(),{containerRef:st,setContainerRef:At,containerRect:dt}=ah(),It=Qs(m_({preventDefaultWheelX:h,preventDefaultWheelY:m}),At),at=ot(null),ht=Qs(at,void 0),{getOwnerDocument:U}=Zs(),H=ta(),G=J=>(H?-1:1)*(typeof J=="number"?J:1),E=$t(()=>{var J;return(J=st.current)===null||J===void 0?void 0:J.focus()}),N=$t(()=>e),b=$t(()=>w),A=kt(J=>F(Qe,J),[F]),C=kt(J=>F(tn,J),[F]),z=kt(()=>F(kn),[F]),j=J=>!(r.finite&&(G(J)>0&&w.currentIndex===0||G(J)<0&&w.currentIndex===w.slides.length-1)),q=J=>{var gt;S.current=J,(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("swipe_offset"),`${Math.round(J)}px`)},K=J=>{var gt,St;R.current=J,O.current=(()=>{const X=c&&J>0?J:d&&J<0?-J:0;return Math.min(Math.max($w(1-X/60*(1-.5),2),.5),1)})(),(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("pull_offset"),`${Math.round(J)}px`),(St=st.current)===null||St===void 0||St.style.setProperty(ie("pull_opacity"),`${O.current}`)},{prepareAnimation:rt}=sh(at,(J,gt,St)=>{if(at.current&&dt)return{keyframes:[{transform:`translate(0, ${J.rect.y-gt.y+St.y}px)`,opacity:J.opacity},{transform:"translate(0, 0)",opacity:1}],duration:J.duration,easing:i.easing.fade}}),ft=(J,gt)=>{if(d||c){K(J);let St=0;at.current&&(St=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:O.current,duration:St})),et(()=>{K(0),v(Qt.NONE)},St),v(Qt.ANIMATION),gt||z()}},{prepareAnimation:vt,isAnimationPlaying:Pt}=sh(at,(J,gt,St)=>{var P;if(at.current&&dt&&(!((P=w.animation)===null||P===void 0)&&P.duration)){const I=hi(r.spacing),X=(I.percent?I.percent*dt.width/100:I.pixel)||0;return{keyframes:[{transform:`translate(${G(w.globalIndex-J.index)*(dt.width+X)+J.rect.x-gt.x+St.x}px, 0)`},{transform:"translate(0, 0)"}],duration:w.animation.duration,easing:w.animation.easing}}}),Ft=$t(J=>{var gt,St;const P=J.offset||0,I=P?i.swipe:(gt=i.navigation)!==null&&gt!==void 0?gt:i.swipe,X=!P&&!Pt()?i.easing.navigation:i.easing.swipe;let{direction:tt}=J;const Q=(St=J.count)!==null&&St!==void 0?St:1;let ct=Qt.ANIMATION,p=I*Q;if(!tt){const f=dt==null?void 0:dt.width,g=J.duration||0,T=f?I/f*Math.abs(P):I;Q!==0?(g<T?p=p/T*Math.max(g,T/5):f&&(p=I/f*(f-Math.abs(P))),tt=G(P)>0?Qe:tn):p=I/2}let u=0;tt===Qe?j(G(1))?u=-Q:(ct=Qt.NONE,p=I):tt===tn&&(j(G(-1))?u=Q:(ct=Qt.NONE,p=I)),p=Math.round(p),Z(()=>{q(0),v(Qt.NONE)},p),at.current&&vt({rect:at.current.getBoundingClientRect(),index:w.globalIndex}),v(ct),F(Nd,{type:"swipe",increment:u,duration:p,easing:X})});yt(()=>{var J,gt;!((J=w.animation)===null||J===void 0)&&J.increment&&(!((gt=w.animation)===null||gt===void 0)&&gt.duration)&&Y(()=>k({type:"swipe",increment:0}),w.animation.duration)},[w.animation,k,Y]);const Yt=[L,j,(dt==null?void 0:dt.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>q(J),(J,gt)=>Ft({offset:J,duration:gt,count:1}),J=>Ft({offset:J,count:0})],Jt=[()=>{c&&v(Qt.PULL)},J=>K(J),J=>ft(J),J=>ft(J,!0)];p_(...Yt,d,c,...Jt),y_(x,...Yt);const Wt=$t(()=>{o.focus&&U().querySelector(`.${xt(Ws)} .${xt(uh())}`)&&E()});yt(Wt,[Wt]);const $=$t(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:w.currentIndex})});yt($,[w.globalIndex,$]),yt(()=>qd(W(Qe,J=>Ft({direction:Qe,...J})),W(tn,J=>Ft({direction:tn,...J})),W(Nd,J=>k(J))),[W,Ft,k]);const he=qt(()=>({prev:A,next:C,close:z,focus:E,slideRect:dt?zw(dt,r.padding):{width:0,height:0},containerRect:dt||{width:0,height:0},subscribeSensors:L,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:_}),[A,C,z,E,L,dt,st,ht,y,_,r.padding]);return qn(o.ref,()=>({prev:A,next:C,close:z,focus:E,getLightboxProps:N,getLightboxState:b}),[A,C,z,E,N,b]),nt("div",{ref:It,className:Ne(xt(uh()),xt(Rd)),style:{...x===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(S.current)}px`}:null,...x===Qt.PULL?{[ie("pull_offset")]:`${Math.round(R.current)}px`,[ie("pull_opacity")]:`${O.current}`}:null,...o.touchAction!=="none"?{[ie("controller_touch_action")]:o.touchAction}:null,...a.container},...o.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...B},dt&&nt(fh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const v_=nn(Cd,g_);function rn(t){return yr(Od,t)}function dh(t){return yr("slide",t)}function b_({slide:t,offset:e}){const n=ot(null),{currentIndex:r}=mi(),{slideRect:i,close:o,focus:s}=wr(),{render:a,carousel:{imageFit:l,imageProps:d},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=gr(),{getOwnerDocument:y}=Zs(),_=e!==0;yt(()=>{var x;_&&(!((x=n.current)===null||x===void 0)&&x.contains(y().activeElement))&&s()},[_,s,y]);const w=()=>{var x,v,S,R;let O=(x=a.slide)===null||x===void 0?void 0:x.call(a,{slide:t,offset:e,rect:i});return!O&&Gd(t)&&(O=nt(f_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:d,onClick:_?void 0:()=>c==null?void 0:c({index:r})})),O?nt(Ot,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((S=a.slideContainer)!==null&&S!==void 0?S:({children:B})=>B)({slide:t,children:O}),(R=a.slideFooter)===null||R===void 0?void 0:R.call(a,{slide:t})):null},k=x=>{const v=n.current,S=x.target instanceof HTMLElement?x.target:void 0;h&&S&&v&&(S===v||Array.from(v.children).find(R=>R===S)&&S.classList.contains(xt(Mw)))&&o()};return nt("div",{ref:n,className:Ne(xt(dh()),!_&&xt(dh("current")),xt(Rd)),...Gw(_),onClick:k,style:m},w())}function w_(){const t=gr().styles.slide;return nt("div",{className:xt("slide"),style:t})}function __({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=mi(),{setCarouselRef:i}=wr(),o=hi(t.spacing),s=hi(t.padding),a=qw(t,e,1),l=[];if(Yd(e))for(let d=n-a;d<=n+a;d+=1){const c=Xd(e,d),h=r-n+d,m=t.finite&&(d<0||d>e.length-1);l.push(m?{key:h}:{key:[`${h}`,Ww(c)].filter(Boolean).join("|"),offset:d-n,slide:c})}return nt("div",{ref:i,className:Ne(xt(rn()),l.length>0&&xt(rn("with_slides"))),style:{[`${ie(rn("slides_count"))}`]:l.length,[`${ie(rn("spacing_px"))}`]:o.pixel||0,[`${ie(rn("spacing_percent"))}`]:o.percent||0,[`${ie(rn("padding_px"))}`]:s.pixel||0,[`${ie(rn("padding_percent"))}`]:s.percent||0}},l.map(({key:d,slide:c,offset:h})=>c?nt(b_,{key:d,slide:c,offset:h}):nt(w_,{key:d})))}const x_=nn(Od,__);function hh(){const{carousel:t}=gr(),{slides:e,currentIndex:n}=mi(),r=e.length===0||t.finite&&n===0,i=e.length===0||t.finite&&n===e.length-1;return{prevDisabled:r,nextDisabled:i}}function S_(t){var e;const n=ta(),{publish:r}=pi(),{animation:i}=gr(),{prevDisabled:o,nextDisabled:s}=hh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=lh(()=>r(Qe),a),d=lh(()=>r(tn),a),c=$t(h=>{switch(h.key){case Dw:r(kn);break;case Bw:(n?s:o)||(n?d:l)();break;case Lw:(n?o:s)||(n?l:d)();break}});yt(()=>t(Vd,c),[t,c])}function ph({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return nt(ih,{label:t,icon:e,renderIcon:n,className:xt(`navigation_${r}`),disabled:o,onClick:i,style:s,...l_(wr().focus,o)})}function E_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=wr(),{prevDisabled:l,nextDisabled:d}=hh();return S_(a),nt(Ot,null,t?t():nt(ph,{label:"Previous",action:Qe,icon:i_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():nt(ph,{label:"Next",action:tn,icon:o_,renderIcon:r,style:i.navigationNext,disabled:d,onClick:s}))}const A_=nn(Pw,E_),mh=xt(Rw),T_=xt(Md);function P_(t){return"style"in t}function yh(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,`${(di(o)||0)+e}px`),()=>{s?t.style.setProperty(i,s):t.style.removeProperty(i)}}function k_({noScroll:{disabled:t},children:e}){const n=ta(),{getOwnerDocument:r,getOwnerWindow:i}=Zs();return yt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),d=Math.round(s.innerWidth-l.clientWidth);if(d>0){o.push(yh(a,d,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];P_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(T_)&&o.push(yh(m,d,n))}}return a.classList.add(mh),()=>{a.classList.remove(mh),o.forEach(c=>c())}},[n,t,r,i]),nt(Ot,null,e)}const O_=nn(kw,k_);function gh(t){return yr(Ws,t)}function vh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function C_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=wt(!1),[d,c]=wt(!1),h=ot([]),m=ot(null),{setTimeout:y}=yi(),{subscribe:_}=pi(),k=oh()?0:e.fade;yt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const x=$t(()=>{h.current.forEach(O=>O()),h.current=[]}),v=$t(()=>{var O;c(!1),x(),(O=i.exiting)===null||O===void 0||O.call(i),y(()=>{var B;(B=i.exited)===null||B===void 0||B.call(i),s()},k)});yt(()=>_(kn,v),[_,v]);const S=$t(O=>{var B,L,W;O.scrollTop,c(!0),(B=i.entering)===null||B===void 0||B.call(i);const F=(W=(L=O.parentNode)===null||L===void 0?void 0:L.children)!==null&&W!==void 0?W:[];for(let Y=0;Y<F.length;Y+=1){const Z=F[Y];["TEMPLATE","SCRIPT","STYLE"].indexOf(Z.tagName)===-1&&Z!==O&&(h.current.push(vh(Z,"inert","")),h.current.push(vh(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)},k)}),R=kt(O=>{O?S(O):x()},[S,x]);return a?uo(nt(d_,{ref:R,className:Ne(r,xt(gh()),xt(Md),d&&xt(gh("open"))),role:"presentation","aria-live":"polite",style:{...e.fade!==Js.animation.fade?{[ie("fade_animation_duration")]:`${k}ms`}:null,...e.easing.fade!==Js.animation.easing.fade?{[ie("fade_animation_timing_function")]:e.easing.fade}:null,...n.root},onFocus:O=>{m.current||(m.current=O.relatedTarget)}},t),o.root||document.body):null}const I_=nn(Ws,C_);function R_({children:t}){return nt(Ot,null,t)}const M_=nn(Ow,R_);function N_(t){return yr(Id,t)}function D_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=wr(),{setContainerRef:s,containerRect:a}=ah();br(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():nt(ih,{key:kn,label:"Close",icon:r_,renderIcon:n,onClick:i});return nt("div",{ref:s,style:r.toolbar,className:xt(N_())},t==null?void 0:t.map(d=>d===kn?l():d))}const B_=nn(Id,D_);function bh(t,e){var n;return nt(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>bh(r,e)))}function L_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function F_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:d,...c}){const{animation:h,carousel:m,render:y,toolbar:_,controller:w,noScroll:k,on:x,slides:v,index:S,plugins:R,...O}=Js,{config:B,augmentation:L}=Kw([Gt(I_,[Gt(O_,[Gt(v_,[Gt(x_),Gt(B_),Gt(A_)])])])],a||R),W=L({animation:L_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{..._,...r},controller:{...w,...i},noScroll:{...k,...o},on:{...x,...s},...O,...c});return W.open?nt(Jw,{...W},nt(t_,{slides:l||v,index:di(d||S)},nt(e_,null,nt(Xw,null,bh(Gt(M_,B),W))))):null}const wh=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Ht(),[r,i]=wt(!1);function o(){return document.getElementById("deskcord-lightbox-portal")??document.body}function s(){return e!=null&&e.length?M(F_,{open:r,portal:{root:o()},close:()=>{i(!1),n(!1)},slides:e.map(a=>({src:a.proxyURL}))}):null}return e!=null&&e.length?M("div",{children:[e.map((a,l)=>{const{proxyURL:d,width:c,height:h}=a;return M("div",{onClick:()=>{n(!0),i(!0)},children:M("img",{src:d,alt:"Preview",className:`rounded-lg w-[${c}px] h-[${h}px] max-w-[200px] max-h-[200px] aspect-auto`})},`conv-cus-attachment-${t}-${l}`)}),s()]},`conv-cus-attachment-${t}`):null},j_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],d=[];for(let c=0;c<a.length;c++)if(d.push(a[c]),l[c]){const h=o[l[c]];h&&d.push(M("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return d}return M("li",{className:"flex flex-col items-start max-w-lg gap-x-2 sm:gap-x-4 me-11",children:[e.content&&M("div",{className:"min-w-10 bg-blue-200 border border-gray-200 rounded-2xl p-2 space-y-1 dark:bg-neutral-900 dark:border-neutral-700",children:r(e.content,e.emojis??{})}),M("div",{className:"flex flex-1",children:M(wh,{attachments:e.attachments,messageIndexKey:n})}),t&&M("div",{children:M("span",{className:"mt-1.5 flex items-center gap-x-1 text-xs text-gray-500",children:[e.authorName," ยท ",kd(e.date)," ",e.edited?"(edited)":""]})})]},`conv-cs-${n}`)},V_=({message:t,indexKey:e})=>M("li",{className:`flex ms-auto gap-x-2 sm:gap-x-4 ${t.pending?"opacity-80":""}`,children:[t.content&&M("div",{className:"grow text-end space-y-1",children:M("div",{className:"min-w-10 inline-block bg-blue-600 rounded-2xl p-2 shadow-sm",children:M("p",{className:"text-center text-sm text-white",children:t.content})})}),t.attachments&&M("div",{className:"flex flex-1 justify-end",children:M(wh,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),$_=({message:t,indexKey:e})=>M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 space-y-3 dark:bg-neutral-900 dark:border-neutral-700",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:t.content})})},`conv-system-${e}`),U_=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Ht(),[o,s]=wt(r),[a,l]=wt(n),[d,c]=wt(""),h=w=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(w),m=!!n&&!!r,y=()=>{h(o)?(c(""),t(o)):c("Please enter a valid email address"),e(a)};function _(){return M("div",{className:"max-w-sm space-y-3",children:[M("div",{children:[M("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Name"}),M("div",{className:"relative",children:[M("input",{type:"text",id:"name",value:a,onChange:w=>l(w.target.value),name:"name",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600",placeholder:"John Smith",disabled:m,required:!0}),M("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:M(gb,{size:16})})]})]}),M("div",{children:[M("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Email address"}),M("div",{className:"relative",children:[M("input",{type:"email",id:"email",value:o,onChange:w=>s(w.target.value),name:"email",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600",placeholder:"you@site.com",disabled:m,required:!0}),M("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:M(fb,{size:16})})]}),d&&M("p",{className:"text-red-500 text-sm mt-2",children:d})]}),!n||!r?M("button",{type:"submit",onClick:y,className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none",children:"Submit"}):null]})}return M(Ot,{children:[M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:"Hello! Please introduce yourself."})})}),M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:_()})}),n&&r&&!i&&M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("div",{className:"animate-spin inline-block size-8 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500",role:"status","aria-label":"loading",children:M("span",{className:"sr-only",children:"Loading..."})})})}),n&&r&&M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:"Nice to meet you! Feel free to ask us anything."})})})]})};function z_(t,e){const n=ot();yt(()=>{n.current=t},[t]),yt(()=>{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 W_(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 q_=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=wt(!0),[s,a]=wt(0);return z_(()=>{s<88?a(s+2.5):o(!1)},i&&!r?250:null),M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4",style:{marginTop:"20px",marginBottom:"20px"},children:M("div",{className:"w-full bg-white border border-gray-200 rounded-2xl p-4 space-y-4",children:M("div",{children:[M("div",{className:"mb-2 flex justify-between items-center",children:[M("div",{className:"flex items-center gap-x-3",children:[M("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:M(ub,{})}),M("div",{children:[M("p",{className:`text-sm ${r?"font-semibold text-red-500":"font-medium text-gray-800"}`,children:n.fileName}),M("p",{className:"text-xs text-gray-500 dark:text-neutral-500",children:W_(n.size)})]})]}),r&&M("div",{className:"inline-flex items-center gap-x-2",children:M("span",{className:"relative",children:[M("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:M("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"})}),M("span",{className:"sr-only",children:"Danger"})]})})]}),M("div",{className:"flex items-center gap-x-3 whitespace-nowrap",children:[M("div",{className:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar",children:M("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}%`}})}),M("div",{className:"w-6 text-end",children:M("span",{className:"text-sm text-gray-800 dark:text-white",children:[Math.round(s),"%"]})})]})]})})},`conv-fileupload-${t}`)},H_=({conversation:t,open:e})=>{function n(s,a){const l=`${s.date}-${a}`;if(typeof s.customRenderer<"u")switch(s.customRenderer){case Pn.IntroduceYourself:return M(U_,{});case Pn.UploadFile:return M(q_,{message:s,indexKey:l});default:return o(s,l)}else return s.authorName===mr?o(s,l):s.support?r(s,l):i(s,l)}function r(s,a){var h;const l=(h=t==null?void 0:t.messages)==null?void 0:h.filter(m=>m.support),d=l==null?void 0:l[l.length-1],c=s.date===(d==null?void 0:d.date);return M(j_,{renderTimestamp:c,message:s,indexKey:a})}function i(s,a){return M(V_,{message:s,indexKey:a})}function o(s,a){return M($_,{message:s,indexKey:a})}return M("ul",{className:"space-y-2",children:[[...(t==null?void 0:t.messages)??[]].sort((s,a)=>s.date-a.date).map(n),t&&!e&&n(yw,1)]})},G_=()=>{var v;const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,updateMessage:i}=Ht(),[o,s]=wt(!1),[a,l]=wt([]),[d,c]=wt({}),h=ot(null),m=t(),y=(m==null?void 0:m.status)==="open",[_,w]=wt("");return yt(()=>{h.current&&h.current.scrollTo({top:h.current.scrollHeight,behavior:"smooth"})},[(v=m==null?void 0:m.messages)==null?void 0:v.length]),yt(()=>{const S={};a.forEach(R=>{const O=new FileReader;O.addEventListener("load",function(){const B=new Image;B.onload=()=>{S[R.name]={url:O.result,width:B.width,height:B.height,size:R.size},c(S)},B.src=O.result},!1),O.readAsDataURL(R)})},[a]),M(Ot,{children:[M("div",{ref:h,className:"flex-1 overflow-y-auto p-4 space-y-4",children:M(H_,{conversation:m,open:y})}),M(Tw,{attachmentPreviews:d,files:a,setFiles:l,inputMessage:_,setInputMessage:w,showEmojiPicker:o,setShowEmojiPicker:s,addEmoji:S=>{w(_+S)},sendMessage:async()=>{const S=Date.now(),R={support:!1,content:_,date:S,authorName:r,pending:!0};if(_.trim()!==""){w(""),e(m?m.threadId:"TEMP",R);const O=await mw({content:_});O&&(m||n(O.threadId),i(O.threadId,S,{...R,pending:!1,date:O.date}))}}})]})};function ia(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 K_(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const Y_=()=>{const{conversations:t,setOpenConversationId:e}=Ht(),n=t.filter(s=>s.status==="open").length;function r(){return n!==0?null:M("div",{className:"flex justify-center my-2",children:M("button",{onClick:()=>e("TEMP"),type:"button",className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none",children:["Start a new conversation",M(db,{})]})})}function i(s,a){var c,h,m;const l=s.messages[s.messages.length-1],d=s.status==="open";return M("div",{className:"flex flex-row items-center px-3 py-4 border-b border-gray-200 hover:bg-gray-200 cursor-pointer",onClick:()=>e(s.threadId),children:[M("div",{className:"relative inline-block mr-3",children:[M("img",{className:"inline-block size-[32px] rounded-full",src:((c=s==null?void 0:s.csMember)==null?void 0:c.displayAvatarURL)??"http://placehold.co/250x250"}),((h=s==null?void 0:s.csMember)==null?void 0:h.status)&&M("span",{className:`absolute top-0 end-0 block size-3 rounded-full ring-2 ring-white dark:ring-neutral-900 ${ia(s.csMember.status,"bg")}`})]}),M("div",{className:"flex flex-1 flex-col",children:[M("p",{className:`text-sm/3 ${d?"font-semibold":""}`,children:(m=s==null?void 0:s.csMember)==null?void 0:m.displayName}),M("p",{className:"text-xs text-gray-500 line-clamp-1",children:l.content})]}),M("div",{className:"ml-2",children:M("p",{className:"text-xs text-gray-500",children:kd(l.date)})})]},`conversation-${a}`)}function o(){return[...t].sort((s,a)=>a.lastMessageDate-s.lastMessageDate).map((s,a)=>s.messages.length?i(s,a):null)}return M("div",{className:"overflow-scroll",children:[r(),M(Ot,{children:o()})]})},_h=({IconComponent:t,onClick:e})=>M("button",{className:"flex mr-2 items-center justify-center w-8 h-8 rounded-full hover:bg-gray-100",onClick:e,children:M(t,{})}),X_=({size:t})=>M("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||20,height:t||20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[M("path",{d:"M18 6 6 18"}),M("path",{d:"m6 6 12 12"})]}),J_=({size:t})=>M("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-left",children:M("path",{d:"m15 18-6-6 6-6"})}),xh={title:"Hi there ๐Ÿ‘‹",subtitle:"We typically reply within a few minutes"},Z_=()=>{var a,l,d,c,h,m;const{setChatOpen:t,setOpenConversationId:e,guildSettings:n,conversations:r,openConversationId:i}=Ht(),o=r.find(y=>y.status==="open"),s=i&&(o!=null&&o.csMember)&&((a=o==null?void 0:o.csMember)==null?void 0:a.displayName)!=="Customer support"?{title:(l=o==null?void 0:o.csMember)==null?void 0:l.displayName,subtitle:(d=o==null?void 0:o.csMember)!=null&&d.status?K_((c=o==null?void 0:o.csMember)==null?void 0:c.status):null,avatar:(h=o==null?void 0:o.csMember)==null?void 0:h.displayAvatarURL,status:(m=o==null?void 0:o.csMember)==null?void 0:m.status}:{title:(n==null?void 0:n.header_title)??xh.title,subtitle:(n==null?void 0:n.header_subtitle)??xh.subtitle,avatar:(n==null?void 0:n.iconURL)||"https://placehold.co/250x250"};return M("div",{className:"flex flex-row items-center bg-white py-2 px-4 border-b border-grey-200",children:[r.length>0&&i&&M(_h,{onClick:()=>e(null),IconComponent:J_}),M("div",{className:"relative inline-block mr-3",children:[M("img",{className:"inline-block size-[40px] rounded-full",src:s.avatar}),s.status&&M("span",{className:`absolute top-0 end-0 block size-3.5 rounded-full ring-2 ring-white dark:ring-neutral-900 ${ia(s.status,"bg")}`})]}),M("div",{className:"flex-1 flex-col",children:[M("p",{className:"text-lg/5 font-semibold",children:s.title}),s.subtitle&&M("p",{className:`flex-1 text-xs/4 line-clamp-2 ${s.status?ia(s.status,"text"):""}`,children:s.subtitle})]}),M(_h,{onClick:()=>t(!1),IconComponent:X_})]})};function Q_(){const[t,e]=wt({width:null,height:null});return Ce(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),t}const t1=()=>{const t=Q_();return!t.width||!t.height?!1:t.width>t.height?t.width<=Pd||t.height<=hw:t.width<=Pd},e1=()=>{const{openConversationId:t,conversations:e,isChatVisible:n}=Ht(),r=t1(),i=!t&&e.length,o={position:"fixed",inset:"0px",width:"100%",height:"100%",zIndex:9999,transformOrigin:"bottom right"},s={position:"fixed",bottom:"100px",right:"30px",width:"400px",height:"700px",maxWidth:"calc(100% - 60px)",maxHeight:"calc(100% - 124px)",zIndex:9999,transformOrigin:"bottom right"};return M(Tu,{children:n&&M(Os.div,{initial:{opacity:0,scale:.8,y:r?0:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:r?0:20},transition:r?{duration:.2,ease:"easeInOut"}:{type:"spring",stiffness:500,damping:28,mass:.8},style:r?o:s,children:M("div",{className:"flex flex-col h-full bg-white rounded-lg shadow-xl overflow-hidden",children:[M(Z_,{}),i?M(Y_,{}):M(G_,{})]})},"chatbox")})},xe=Object.create(null);xe.open="0",xe.close="1",xe.ping="2",xe.pong="3",xe.message="4",xe.upgrade="5",xe.noop="6";const vi=Object.create(null);Object.keys(xe).forEach(t=>{vi[xe[t]]=t});const oa={type:"error",data:"parser error"},Sh=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Eh=typeof ArrayBuffer=="function",Ah=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,sa=({type:t,data:e},n,r)=>Sh&&e instanceof Blob?n?r(e):Th(e,r):Eh&&(e instanceof ArrayBuffer||Ah(e))?n?r(e):Th(new Blob([e]),r):r(xe[t]+(e||"")),Th=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function Ph(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let aa;function n1(t,e){if(Sh&&t.data instanceof Blob)return t.data.arrayBuffer().then(Ph).then(e);if(Eh&&(t.data instanceof ArrayBuffer||Ah(t.data)))return e(Ph(t.data));sa(t,!1,n=>{aa||(aa=new TextEncoder),e(aa.encode(n))})}const kh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<kh.length;t++)_r[kh.charCodeAt(t)]=t;const r1=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),c=new Uint8Array(d);for(r=0;r<n;r+=4)o=_r[t.charCodeAt(r)],s=_r[t.charCodeAt(r+1)],a=_r[t.charCodeAt(r+2)],l=_r[t.charCodeAt(r+3)],c[i++]=o<<2|s>>4,c[i++]=(s&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return d},i1=typeof ArrayBuffer=="function",ca=(t,e)=>{if(typeof t!="string")return{type:"message",data:Oh(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:o1(t.substring(1),e)}:vi[n]?t.length>1?{type:vi[n],data:t.substring(1)}:{type:vi[n]}:oa},o1=(t,e)=>{if(i1){const n=r1(t);return Oh(n,e)}else return{base64:!0,data:t}},Oh=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ch="",s1=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{sa(o,!1,a=>{r[s]=a,++i===n&&e(r.join(Ch))})})},a1=(t,e)=>{const n=t.split(Ch),r=[];for(let i=0;i<n.length;i++){const o=ca(n[i],e);if(r.push(o),o.type==="error")break}return r};function c1(){return new TransformStream({transform(t,e){n1(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 la;function bi(t){return t.reduce((e,n)=>e+n.length,0)}function wi(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 l1(t,e){la||(la=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(bi(n)<1)break;const l=wi(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(bi(n)<2)break;const l=wi(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(bi(n)<8)break;const l=wi(n,8),d=new DataView(l.buffer,l.byteOffset,l.length),c=d.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(oa);break}i=c*Math.pow(2,32)+d.getUint32(4),r=3}else{if(bi(n)<i)break;const l=wi(n,i);a.enqueue(ca(o?l:la.decode(l),e)),r=0}if(i===0||i>t){a.enqueue(oa);break}}}})}const Ih=4;function Ut(t){if(t)return u1(t)}function u1(t){for(var e in Ut.prototype)t[e]=Ut.prototype[e];return t}Ut.prototype.on=Ut.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Ut.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},Ut.prototype.off=Ut.prototype.removeListener=Ut.prototype.removeAllListeners=Ut.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},Ut.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},Ut.prototype.emitReserved=Ut.prototype.emit,Ut.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},Ut.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Rh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const f1=fe.setTimeout,d1=fe.clearTimeout;function _i(t,e){e.useNativeTimers?(t.setTimeoutFn=f1.bind(fe),t.clearTimeoutFn=d1.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const h1=1.33;function p1(t){return typeof t=="string"?m1(t):Math.ceil((t.byteLength||t.size)*h1)}function m1(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 y1(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function g1(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 v1 extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class ua extends Ut{constructor(e){super(),this.writable=!1,_i(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new v1(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=ca(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=y1(e);return n.length?"?"+n:""}}const Mh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),fa=64,b1={};let Nh=0,xi=0,Dh;function Bh(t){let e="";do e=Mh[t%fa]+e,t=Math.floor(t/fa);while(t>0);return e}function Lh(){const t=Bh(+new Date);return t!==Dh?(Nh=0,Dh=t):t+"."+Bh(Nh++)}for(;xi<fa;xi++)b1[Mh[xi]]=xi;let Fh=!1;try{Fh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const w1=Fh;function jh(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||w1))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function tA(){}function _1(){}const x1=function(){return new jh({xdomain:!1}).responseType!=null}();class S1 extends ua{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=x1&&!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)};a1(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,s1(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Lh()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Se(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Se extends Ut{constructor(e,n){super(),_i(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=Rh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new jh(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Se.requestsCount++,Se.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=_1,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Se.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Se.requestsCount=0,Se.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vh);else if(typeof addEventListener=="function"){const t="onpagehide"in fe?"pagehide":"unload";addEventListener(t,Vh,!1)}}function Vh(){for(let t in Se.requests)Se.requests.hasOwnProperty(t)&&Se.requests[t].abort()}var E1={},Si={};Si.byteLength=P1,Si.toByteArray=O1,Si.fromByteArray=R1;for(var Ee=[],de=[],A1=typeof Uint8Array<"u"?Uint8Array:Array,da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cn=0,T1=da.length;Cn<T1;++Cn)Ee[Cn]=da[Cn],de[da.charCodeAt(Cn)]=Cn;de[45]=62,de[95]=63;function $h(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 P1(t){var e=$h(t),n=e[0],r=e[1];return(n+r)*3/4-r}function k1(t,e,n){return(e+n)*3/4-n}function O1(t){var e,n=$h(t),r=n[0],i=n[1],o=new A1(k1(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 C1(t){return Ee[t>>18&63]+Ee[t>>12&63]+Ee[t>>6&63]+Ee[t&63]}function I1(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(C1(r));return i.join("")}function R1(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(I1(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Ee[e>>2]+Ee[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Ee[e>>10]+Ee[e>>4&63]+Ee[e<<2&63]+"=")),i.join("")}var ha={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ha.read=function(t,e,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,d=l>>1,c=-7,h=n?i-1:0,m=n?-1:1,y=t[e+h];for(h+=m,o=y&(1<<-c)-1,y>>=-c,c+=a;c>0;o=o*256+t[e+h],h+=m,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+t[e+h],h+=m,c-=8);if(o===0)o=1-d;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-d}return(y?-1:1)*s*Math.pow(2,o-r)},ha.write=function(t,e,n,r,i,o){var s,a,l,d=o*8-i-1,c=(1<<d)-1,h=c>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:o-1,_=r?1:-1,w=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+=_,a/=256,i-=8);for(s=s<<i|a,d+=i;d>0;t[n+y]=s&255,y+=_,s/=256,d-=8);t[n+y-_]|=w*128};/*!
95
+ `)):(B.preventDefault(),S()))};return M("div",{className:"relative border-t border-t-gray-200",children:[s&&M(Sw,{onPickEmoji:a}),(()=>{if(!(o!=null&&o.length))return null;const B=o.map((L,W)=>{if(!d[L.name])return null;const{url:F,width:Y,height:Z}=d[L.name];return M(Aw,{onDelete:()=>{var et;i(o.filter(st=>st.name!==L.name)),(et=y.current)==null||et.clear()},fileName:L.name,width:Y,height:Z,imageUrl:F},`attachment-preview-${W}`)});return M("div",{className:"m-2",children:B})})(),M("textarea",{id:"hs-textarea-ex-1",disabled:_,value:e,onChange:B=>n(B.target.value),onKeyDown:R,className:"p-4 pb-12 block w-full border-t border-gray-200 text-sm outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 resize-none",placeholder:"Ask us anything!","data-hs-textarea-auto-height":""}),M("div",{className:"absolute bottom-px inset-x-px p-2 rounded-b-md bg-white dark:bg-neutral-900",children:M("div",{className:"flex justify-between items-center",children:[M("div",{className:"flex items-center",children:M("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:M(_w,{ref:y,accept:"image/*",maxSize:10*1024*1024,uploadConfig:{url:`${ye.api}/conversations/uploadAttachment`,method:"POST",headers:{Authorization:`Bearer ${m}`}},onUploadComplete:w,onUploadStart:k,onFileSelect:x})})}),M("div",{className:"flex items-center gap-x-1",children:[M("button",{type:"button",onClick:_?void 0:()=>l(!s),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:bg-gray-100 focus:z-10 focus:outline-none focus:bg-gray-100 dark:text-neutral-500 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",children:M(mb,{size:16})}),M("button",{type:"button",onClick:()=>S(),className:"inline-flex shrink-0 justify-center items-center size-8 rounded-lg text-white bg-blue-600 hover:bg-blue-500 focus:z-10 focus:outline-none focus:bg-blue-500",children:M(xw,{size:16})})]})]})})]})},kd=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`},Od="carousel",Cd="controller",Pw="navigation",kw="no-scroll",Ws="portal",Ow="root",Id="toolbar",qs="loading",Hs="error",Gs="complete",Cw="placeholder",Iw=t=>`active-slide-${t}`,Rd="flex_center",Rw="no_scroll",Md="no_scroll_padding",Mw="slide_wrapper",Qe="prev",tn="next",Nd="swipe",kn="close",Dd="onPointerDown",Bd="onPointerMove",Ld="onPointerUp",Fd="onPointerLeave",jd="onPointerCancel",Vd="onKeyDown",Nw="onKeyUp",$d="onWheel",Dw="Escape",Bw="ArrowLeft",Lw="ArrowRight",Fw="button",Ks="icon",Ud="contain",zd="cover",jw="Unknown action type",Wd="yarl__";function Ne(...t){return[...t].filter(Boolean).join(" ")}function xt(t){return`${Wd}${t}`}function ie(t){return`--${Wd}${t}`}function yr(t,e){return`${t}${e?`_${e}`:""}`}function Ys(t){return e=>yr(t,e)}function Vw(t,e){var n;return(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e}function qd(...t){return()=>{t.forEach(e=>{e()})}}function en(t,e,n){return()=>{const r=jt(n);if(!r)throw new Error(`${t} must be used within a ${e}.Provider`);return r}}function Hd(){return typeof window<"u"}function $w(t,e=0){const n=10**e;return Math.round((t+Number.EPSILON)*n)/n}function Gd(t){return t.type===void 0||t.type==="image"}function Uw(t,e){return t.imageFit===zd||t.imageFit!==Ud&&e===zd}function di(t){return typeof t=="string"?Number.parseInt(t,10):t}function hi(t){if(typeof t=="number")return{pixel:t};if(typeof t=="string"){const e=di(t);return t.endsWith("%")?{percent:e}:{pixel:e}}return{pixel:0}}function zw(t,e){const n=hi(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 Kd(t,e){return e>0?(t%e+e)%e:0}function Yd(t){return t.length>0}function Xd(t,e){return t[Kd(e,t.length)]}function Xs(t,e){return Yd(t)?Xd(t,e):void 0}function Ww(t){return Gd(t)?t.src:void 0}function qw(t,e,n=0){return Math.min(t.preload,Math.max(t.finite?e.length-1:Math.floor(e.length/2),n))}const Hw=Number(nl.split(".")[0])>=19;function Gw(t){return{inert:Hw?t:t?"":void 0}}const Js={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[kn]},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:Ud,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 nn(t,e){return{name:t,component:e}}function Gt(t,e){return{module:t,children:e}}function Jd(t,e,n){return t.module.name===e?n(t):t.children?[Gt(t.module,t.children.flatMap(r=>{var i;return(i=Jd(r,e,n))!==null&&i!==void 0?i:[]}))]:[t]}function On(t,e,n){return t.flatMap(r=>{var i;return(i=Jd(r,e,n))!==null&&i!==void 0?i:[]})}function Kw(t,e=[],n=[]){let r=t;const i=y=>{const _=[...r];for(;_.length>0;){const w=_.pop();if((w==null?void 0:w.module.name)===y)return!0;w!=null&&w.children&&_.push(...w.children)}return!1},o=(y,_)=>{if(y===""){r=[Gt(_,r)];return}r=On(r,y,w=>[Gt(_,[w])])},s=(y,_)=>{r=On(r,y,w=>[Gt(w.module,[Gt(_,w.children)])])},a=(y,_,w)=>{r=On(r,y,k=>{var x;return[Gt(k.module,[...w?[Gt(_)]:[],...(x=k.children)!==null&&x!==void 0?x:[],...w?[]:[Gt(_)]])]})},l=(y,_,w)=>{r=On(r,y,k=>[...w?[Gt(_)]:[],k,...w?[]:[Gt(_)]])},d=y=>{s(Cd,y)},c=(y,_)=>{r=On(r,y,w=>[Gt(_,w.children)])},h=y=>{r=On(r,y,_=>_.children)},m=y=>{n.push(y)};return e.forEach(y=>{y({contains:i,addParent:o,append:s,addChild:a,addSibling:l,addModule:d,replace:c,remove:h,augment:m})}),{config:r,augmentation:y=>n.reduce((_,w)=>w(_),y)}}const Zd=te(null),Zs=en("useDocument","DocumentContext",Zd);function Yw({nodeRef:t,children:e}){const n=qt(()=>{const r=o=>{var s;return((s=o||t.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:o=>{var s;return((s=r(o))===null||s===void 0?void 0:s.defaultView)||window}}},[t]);return nt(Zd.Provider,{value:n},e)}const Qd=te(null),pi=en("useEvents","EventsContext",Qd);function Xw({children:t}){const[e]=wt({});yt(()=>()=>{Object.keys(e).forEach(r=>delete e[r])},[e]);const n=qt(()=>{const r=(s,a)=>{var l;(l=e[s])===null||l===void 0||l.splice(0,e[s].length,...e[s].filter(d=>d!==a))};return{publish:(...[s,a])=>{var l;(l=e[s])===null||l===void 0||l.forEach(d=>d(a))},subscribe:(s,a)=>(e[s]||(e[s]=[]),e[s].push(a),()=>r(s,a)),unsubscribe:r}},[e]);return nt(Qd.Provider,{value:n},t)}const th=te(null),gr=en("useLightboxProps","LightboxPropsContext",th);function Jw({children:t,...e}){return nt(th.Provider,{value:e},t)}const eh=te(null),mi=en("useLightboxState","LightboxStateContext",eh),nh=te(null),Zw=en("useLightboxDispatch","LightboxDispatchContext",nh);function Qw(t,e){switch(e.type){case"swipe":{const{slides:n}=t,r=(e==null?void 0:e.increment)||0,i=t.globalIndex+r,o=Kd(i,n.length),s=Xs(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:Xs(e.slides,e.index)}:t;default:throw new Error(jw)}}function t_({slides:t,index:e,children:n}){const[r,i]=Wn(Qw,{slides:t,currentIndex:e,globalIndex:e,currentSlide:Xs(t,e)});yt(()=>{i({type:"update",slides:t,index:e})},[t,e]);const o=qt(()=>({...r,state:r,dispatch:i}),[r,i]);return nt(nh.Provider,{value:i},nt(eh.Provider,{value:o},n))}const rh=te(null),yi=en("useTimeouts","TimeoutsContext",rh);function e_({children:t}){const[e]=wt([]);yt(()=>()=>{e.forEach(r=>window.clearTimeout(r)),e.splice(0,e.length)},[e]);const n=qt(()=>{const r=s=>{e.splice(0,e.length,...e.filter(a=>a!==s))};return{setTimeout:(s,a)=>{const l=window.setTimeout(()=>{r(l),s()},a);return e.push(l),l},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[e]);return nt(rh.Provider,{value:n},t)}const ih=Le(function({label:e,className:n,icon:r,renderIcon:i,onClick:o,style:s,...a},l){const{styles:d,labels:c}=gr(),h=Vw(c,e);return nt("button",{ref:l,type:"button",title:h,"aria-label":h,className:Ne(xt(Fw),n),onClick:o,style:{...s,...d.button},...a},i?i():nt(r,{className:xt(Ks),style:d.icon}))});function n_(t,e){const n=r=>nt("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},e);return n.displayName=t,n}function vr(t,e){return n_(t,nt("g",{fill:"currentColor"},nt("path",{d:"M0 0h24v24H0z",fill:"none"}),e))}const r_=vr("Close",nt("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),i_=vr("Previous",nt("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),o_=vr("Next",nt("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),s_=vr("Loading",nt(Ot,null,Array.from({length:8}).map((t,e,n)=>nt("line",{key:e,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(e+1),transform:`rotate(${360/n.length*e}, 12, 12)`})))),a_=vr("Error",nt("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),br=Hd()?Ce:yt;function oh(){const[t,e]=wt(!1);return yt(()=>{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 c_(t){let e=0,n=0,r=0;const o=window.getComputedStyle(t).transform.match(/matrix.*\((.+)\)/);if(o){const s=o[1].split(",").map(di);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 sh(t,e){const n=ot(),r=ot(),i=oh();return br(()=>{var o,s,a;if(t.current&&n.current!==void 0&&!i){const{keyframes:l,duration:d,easing:c,onfinish:h}=e(n.current,t.current.getBoundingClientRect(),c_(t.current))||{};if(l&&d){(o=r.current)===null||o===void 0||o.cancel(),r.current=void 0;try{r.current=(a=(s=t.current).animate)===null||a===void 0?void 0:a.call(s,l,{duration:d,easing:c})}catch(m){console.error(m)}r.current&&(r.current.onfinish=()=>{r.current=void 0,h==null||h()})}}n.current=void 0}),{prepareAnimation:o=>{n.current=o},isAnimationPlaying:()=>{var o;return((o=r.current)===null||o===void 0?void 0:o.playState)==="running"}}}function ah(){const t=ot(null),e=ot(),[n,r]=wt();return{setContainerRef:kt(o=>{t.current=o,e.current&&(e.current.disconnect(),e.current=void 0);const s=()=>{if(o){const a=window.getComputedStyle(o),l=d=>parseFloat(d)||0;r({width:Math.round(o.clientWidth-l(a.paddingLeft)-l(a.paddingRight)),height:Math.round(o.clientHeight-l(a.paddingTop)-l(a.paddingBottom))})}else r(void 0)};s(),o&&typeof ResizeObserver<"u"&&(e.current=new ResizeObserver(s),e.current.observe(o))},[]),containerRef:t,containerRect:n}}function gi(){const t=ot(),{setTimeout:e,clearTimeout:n}=yi();return kt((r,i)=>{n(t.current),t.current=e(r,i>0?i:0)},[e,n])}function $t(t){const e=ot(t);return br(()=>{e.current=t}),kt((...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function ch(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Qs(t,e){return qt(()=>t==null&&e==null?null:n=>{ch(t,n),ch(e,n)},[t,e])}function l_(t,e=!1){const n=ot();br(()=>{e&&n.current&&(n.current=!1,t())},[e,t]);const r=kt(()=>{n.current=!0},[]),i=kt(()=>{n.current=!1},[]);return{onFocus:r,onBlur:i}}function ta(){const[t,e]=wt(!1);return br(()=>{e(window.getComputedStyle(window.document.documentElement).direction==="rtl")},[]),t}function u_(){const[t]=wt({}),e=kt((i,o)=>{var s;(s=t[i])===null||s===void 0||s.forEach(a=>{o.isPropagationStopped()||a(o)})},[t]),n=qt(()=>({onPointerDown:i=>e(Dd,i),onPointerMove:i=>e(Bd,i),onPointerUp:i=>e(Ld,i),onPointerLeave:i=>e(Fd,i),onPointerCancel:i=>e(jd,i),onKeyDown:i=>e(Vd,i),onKeyUp:i=>e(Nw,i),onWheel:i=>e($d,i)}),[e]),r=kt((i,o)=>(t[i]||(t[i]=[]),t[i].unshift(o),()=>{const s=t[i];s&&s.splice(0,s.length,...s.filter(a=>a!==o))}),[t]);return{registerSensors:n,subscribeSensors:r}}function lh(t,e){const n=ot(0),r=gi(),i=$t((...o)=>{n.current=Date.now(),t(o)});return kt((...o)=>{r(()=>{i(o)},e-(Date.now()-n.current))},[e,i,r])}const ea=Ys("slide"),na=Ys("slide_image");function f_({slide:t,offset:e,render:n,rect:r,imageFit:i,imageProps:o,onClick:s,onLoad:a,onError:l,style:d}){var c,h,m,y,_,w,k;const[x,v]=wt(qs),{publish:S}=pi(),{setTimeout:R}=yi(),O=ot(null);yt(()=>{e===0&&S(Iw(x))},[e,x,S]);const B=$t(G=>{("decode"in G?G.decode():Promise.resolve()).catch(()=>{}).then(()=>{G.parentNode&&(v(Gs),R(()=>{a==null||a(G)},0))})}),L=kt(G=>{O.current=G,G!=null&&G.complete&&B(G)},[B]),W=kt(G=>{B(G.currentTarget)},[B]),F=$t(()=>{v(Hs),l==null||l()}),Y=Uw(t,i),Z=(G,E)=>Number.isFinite(G)?G:E,et=Z(Math.max(...((h=(c=t.srcSet)===null||c===void 0?void 0:c.map(G=>G.width))!==null&&h!==void 0?h:[]).concat(t.width?[t.width]:[]).filter(Boolean)),((m=O.current)===null||m===void 0?void 0:m.naturalWidth)||0),st=Z(Math.max(...((_=(y=t.srcSet)===null||y===void 0?void 0:y.map(G=>G.height))!==null&&_!==void 0?_:[]).concat(t.height?[t.height]:[]).filter(Boolean)),((w=O.current)===null||w===void 0?void 0:w.naturalHeight)||0),At=et&&st?{maxWidth:`min(${et}px, 100%)`,maxHeight:`min(${st}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},dt=(k=t.srcSet)===null||k===void 0?void 0:k.sort((G,E)=>G.width-E.width).map(G=>`${G.src} ${G.width}w`).join(", "),It=()=>r&&!Y&&t.width&&t.height?r.height/t.height*t.width:Number.MAX_VALUE,at=dt&&r&&Hd()?`${Math.round(Math.min(It(),r.width))}px`:void 0,{style:ht,className:U,...H}=o||{};return nt(Ot,null,nt("img",{ref:L,onLoad:W,onError:F,onClick:s,draggable:!1,className:Ne(xt(na()),Y&&xt(na("cover")),x!==Gs&&xt(na("loading")),U),style:{...At,...d,...ht},...H,alt:t.alt,sizes:at,srcSet:dt,src:t.src}),x!==Gs&&nt("div",{className:xt(ea(Cw))},x===qs&&(n!=null&&n.iconLoading?n.iconLoading():nt(s_,{className:Ne(xt(Ks),xt(ea(qs)))})),x===Hs&&(n!=null&&n.iconError?n.iconError():nt(a_,{className:Ne(xt(Ks),xt(ea(Hs)))}))))}const d_=Le(function({className:e,children:n,...r},i){const o=ot(null);return nt(Yw,{nodeRef:o},nt("div",{ref:Qs(i,o),className:Ne(xt("root"),e),...r},n))});var Qt;(function(t){t[t.NONE=0]="NONE",t[t.SWIPE=1]="SWIPE",t[t.PULL=2]="PULL",t[t.ANIMATION=3]="ANIMATION"})(Qt||(Qt={}));function h_(t,e,n,r,i){yt(()=>qd(t(Dd,e),t(Bd,n),t(Ld,r),t(Fd,r),t(jd,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 ra=30;function p_(t,e,n,r,i,o,s,a,l,d,c,h,m,y){const _=ot(0),w=ot([]),k=ot(),x=ot(0),v=ot(ge.NONE),S=kt(F=>{k.current===F.pointerId&&(k.current=void 0,v.current=ge.NONE);const Y=w.current;Y.splice(0,Y.length,...Y.filter(Z=>Z.pointerId!==F.pointerId))},[]),R=kt(F=>{S(F),F.persist(),w.current.push(F)},[S]),O=$t(F=>{R(F)}),B=(F,Y)=>d&&F>Y||l&&F<-Y,L=$t(F=>{if(w.current.find(Y=>Y.pointerId===F.pointerId)&&k.current===F.pointerId){const Y=Date.now()-x.current,Z=_.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&&(B(Z,2*ra)?m(Z,Y):y(Z)),_.current=0,v.current=ge.NONE}S(F)}),W=$t(F=>{const Y=w.current.find(Z=>Z.pointerId===F.pointerId);if(Y){const Z=k.current===F.pointerId;if(F.buttons===0){Z&&_.current!==0?L(F):S(Y);return}const et=F.clientX-Y.clientX,st=F.clientY-Y.clientY;if(k.current===void 0){const At=dt=>{R(F),k.current=F.pointerId,x.current=Date.now(),v.current=dt};Math.abs(et)>Math.abs(st)&&Math.abs(et)>ra&&e(et)?(At(ge.SWIPE),i()):Math.abs(st)>Math.abs(et)&&B(st,ra)&&(At(ge.PULL),c())}else Z&&(v.current===ge.SWIPE?(_.current=et,o(et)):v.current===ge.PULL&&(_.current=st,h(st)))}});h_(t,O,W,L)}function m_({preventDefaultWheelX:t,preventDefaultWheelY:e}){const n=ot(null),r=$t(i=>{const o=Math.abs(i.deltaX)>Math.abs(i.deltaY);(o&&t||!o&&e||i.ctrlKey)&&i.preventDefault()});return kt(i=>{var o;i?i.addEventListener("wheel",r,{passive:!1}):(o=n.current)===null||o===void 0||o.removeEventListener("wheel",r),n.current=i},[r])}function y_(t,e,n,r,i,o,s,a,l){const d=ot(0),c=ot(0),h=ot(),m=ot(),y=ot(0),_=ot(),w=ot(0),{setTimeout:k,clearTimeout:x}=yi(),v=kt(()=>{h.current&&(x(h.current),h.current=void 0)},[x]),S=kt(()=>{m.current&&(x(m.current),m.current=void 0)},[x]),R=$t(()=>{t!==Qt.SWIPE&&(d.current=0,w.current=0,v(),S())});yt(R,[t,R]);const O=$t(L=>{m.current=void 0,d.current===L&&l(d.current)}),B=$t(L=>{if(L.ctrlKey||Math.abs(L.deltaY)>Math.abs(L.deltaX))return;const W=F=>{y.current=F,x(_.current),_.current=F>0?k(()=>{y.current=0,_.current=void 0},300):void 0};if(t===Qt.NONE){if(Math.abs(L.deltaX)<=1.2*Math.abs(y.current)){W(L.deltaX);return}if(!n(-L.deltaX))return;if(c.current+=L.deltaX,v(),Math.abs(c.current)>30)c.current=0,W(0),w.current=Date.now(),o();else{const F=c.current;h.current=k(()=>{h.current=void 0,F===c.current&&(c.current=0)},i)}}else if(t===Qt.SWIPE){let F=d.current-L.deltaX;if(F=Math.min(Math.abs(F),r)*Math.sign(F),d.current=F,s(F),S(),Math.abs(F)>.2*r){W(L.deltaX),a(F,Date.now()-w.current);return}m.current=k(()=>O(F),2*i)}else W(L.deltaX)});yt(()=>e($d,B),[e,B])}const uh=Ys("container"),fh=te(null),wr=en("useController","ControllerContext",fh);function g_({children:t,...e}){var n;const{carousel:r,animation:i,controller:o,on:s,styles:a,render:l}=e,{closeOnPullUp:d,closeOnPullDown:c,preventDefaultWheelX:h,preventDefaultWheelY:m}=o,[y,_]=wt(),w=mi(),k=Zw(),[x,v]=wt(Qt.NONE),S=ot(0),R=ot(0),O=ot(1),{registerSensors:B,subscribeSensors:L}=u_(),{subscribe:W,publish:F}=pi(),Y=gi(),Z=gi(),et=gi(),{containerRef:st,setContainerRef:At,containerRect:dt}=ah(),It=Qs(m_({preventDefaultWheelX:h,preventDefaultWheelY:m}),At),at=ot(null),ht=Qs(at,void 0),{getOwnerDocument:U}=Zs(),H=ta(),G=J=>(H?-1:1)*(typeof J=="number"?J:1),E=$t(()=>{var J;return(J=st.current)===null||J===void 0?void 0:J.focus()}),N=$t(()=>e),b=$t(()=>w),A=kt(J=>F(Qe,J),[F]),C=kt(J=>F(tn,J),[F]),z=kt(()=>F(kn),[F]),j=J=>!(r.finite&&(G(J)>0&&w.currentIndex===0||G(J)<0&&w.currentIndex===w.slides.length-1)),q=J=>{var gt;S.current=J,(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("swipe_offset"),`${Math.round(J)}px`)},K=J=>{var gt,St;R.current=J,O.current=(()=>{const X=c&&J>0?J:d&&J<0?-J:0;return Math.min(Math.max($w(1-X/60*(1-.5),2),.5),1)})(),(gt=st.current)===null||gt===void 0||gt.style.setProperty(ie("pull_offset"),`${Math.round(J)}px`),(St=st.current)===null||St===void 0||St.style.setProperty(ie("pull_opacity"),`${O.current}`)},{prepareAnimation:rt}=sh(at,(J,gt,St)=>{if(at.current&&dt)return{keyframes:[{transform:`translate(0, ${J.rect.y-gt.y+St.y}px)`,opacity:J.opacity},{transform:"translate(0, 0)",opacity:1}],duration:J.duration,easing:i.easing.fade}}),ft=(J,gt)=>{if(d||c){K(J);let St=0;at.current&&(St=i.fade*(gt?2:1),rt({rect:at.current.getBoundingClientRect(),opacity:O.current,duration:St})),et(()=>{K(0),v(Qt.NONE)},St),v(Qt.ANIMATION),gt||z()}},{prepareAnimation:vt,isAnimationPlaying:Pt}=sh(at,(J,gt,St)=>{var P;if(at.current&&dt&&(!((P=w.animation)===null||P===void 0)&&P.duration)){const I=hi(r.spacing),X=(I.percent?I.percent*dt.width/100:I.pixel)||0;return{keyframes:[{transform:`translate(${G(w.globalIndex-J.index)*(dt.width+X)+J.rect.x-gt.x+St.x}px, 0)`},{transform:"translate(0, 0)"}],duration:w.animation.duration,easing:w.animation.easing}}}),Ft=$t(J=>{var gt,St;const P=J.offset||0,I=P?i.swipe:(gt=i.navigation)!==null&&gt!==void 0?gt:i.swipe,X=!P&&!Pt()?i.easing.navigation:i.easing.swipe;let{direction:tt}=J;const Q=(St=J.count)!==null&&St!==void 0?St:1;let ct=Qt.ANIMATION,p=I*Q;if(!tt){const f=dt==null?void 0:dt.width,g=J.duration||0,T=f?I/f*Math.abs(P):I;Q!==0?(g<T?p=p/T*Math.max(g,T/5):f&&(p=I/f*(f-Math.abs(P))),tt=G(P)>0?Qe:tn):p=I/2}let u=0;tt===Qe?j(G(1))?u=-Q:(ct=Qt.NONE,p=I):tt===tn&&(j(G(-1))?u=Q:(ct=Qt.NONE,p=I)),p=Math.round(p),Z(()=>{q(0),v(Qt.NONE)},p),at.current&&vt({rect:at.current.getBoundingClientRect(),index:w.globalIndex}),v(ct),F(Nd,{type:"swipe",increment:u,duration:p,easing:X})});yt(()=>{var J,gt;!((J=w.animation)===null||J===void 0)&&J.increment&&(!((gt=w.animation)===null||gt===void 0)&&gt.duration)&&Y(()=>k({type:"swipe",increment:0}),w.animation.duration)},[w.animation,k,Y]);const Yt=[L,j,(dt==null?void 0:dt.width)||0,i.swipe,()=>v(Qt.SWIPE),J=>q(J),(J,gt)=>Ft({offset:J,duration:gt,count:1}),J=>Ft({offset:J,count:0})],Jt=[()=>{c&&v(Qt.PULL)},J=>K(J),J=>ft(J),J=>ft(J,!0)];p_(...Yt,d,c,...Jt),y_(x,...Yt);const Wt=$t(()=>{o.focus&&U().querySelector(`.${xt(Ws)} .${xt(uh())}`)&&E()});yt(Wt,[Wt]);const $=$t(()=>{var J;(J=s.view)===null||J===void 0||J.call(s,{index:w.currentIndex})});yt($,[w.globalIndex,$]),yt(()=>qd(W(Qe,J=>Ft({direction:Qe,...J})),W(tn,J=>Ft({direction:tn,...J})),W(Nd,J=>k(J))),[W,Ft,k]);const he=qt(()=>({prev:A,next:C,close:z,focus:E,slideRect:dt?zw(dt,r.padding):{width:0,height:0},containerRect:dt||{width:0,height:0},subscribeSensors:L,containerRef:st,setCarouselRef:ht,toolbarWidth:y,setToolbarWidth:_}),[A,C,z,E,L,dt,st,ht,y,_,r.padding]);return qn(o.ref,()=>({prev:A,next:C,close:z,focus:E,getLightboxProps:N,getLightboxState:b}),[A,C,z,E,N,b]),nt("div",{ref:It,className:Ne(xt(uh()),xt(Rd)),style:{...x===Qt.SWIPE?{[ie("swipe_offset")]:`${Math.round(S.current)}px`}:null,...x===Qt.PULL?{[ie("pull_offset")]:`${Math.round(R.current)}px`,[ie("pull_opacity")]:`${O.current}`}:null,...o.touchAction!=="none"?{[ie("controller_touch_action")]:o.touchAction}:null,...a.container},...o.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...B},dt&&nt(fh.Provider,{value:he},t,(n=l.controls)===null||n===void 0?void 0:n.call(l)))}const v_=nn(Cd,g_);function rn(t){return yr(Od,t)}function dh(t){return yr("slide",t)}function b_({slide:t,offset:e}){const n=ot(null),{currentIndex:r}=mi(),{slideRect:i,close:o,focus:s}=wr(),{render:a,carousel:{imageFit:l,imageProps:d},on:{click:c},controller:{closeOnBackdropClick:h},styles:{slide:m}}=gr(),{getOwnerDocument:y}=Zs(),_=e!==0;yt(()=>{var x;_&&(!((x=n.current)===null||x===void 0)&&x.contains(y().activeElement))&&s()},[_,s,y]);const w=()=>{var x,v,S,R;let O=(x=a.slide)===null||x===void 0?void 0:x.call(a,{slide:t,offset:e,rect:i});return!O&&Gd(t)&&(O=nt(f_,{slide:t,offset:e,render:a,rect:i,imageFit:l,imageProps:d,onClick:_?void 0:()=>c==null?void 0:c({index:r})})),O?nt(Ot,null,(v=a.slideHeader)===null||v===void 0?void 0:v.call(a,{slide:t}),((S=a.slideContainer)!==null&&S!==void 0?S:({children:B})=>B)({slide:t,children:O}),(R=a.slideFooter)===null||R===void 0?void 0:R.call(a,{slide:t})):null},k=x=>{const v=n.current,S=x.target instanceof HTMLElement?x.target:void 0;h&&S&&v&&(S===v||Array.from(v.children).find(R=>R===S)&&S.classList.contains(xt(Mw)))&&o()};return nt("div",{ref:n,className:Ne(xt(dh()),!_&&xt(dh("current")),xt(Rd)),...Gw(_),onClick:k,style:m},w())}function w_(){const t=gr().styles.slide;return nt("div",{className:xt("slide"),style:t})}function __({carousel:t}){const{slides:e,currentIndex:n,globalIndex:r}=mi(),{setCarouselRef:i}=wr(),o=hi(t.spacing),s=hi(t.padding),a=qw(t,e,1),l=[];if(Yd(e))for(let d=n-a;d<=n+a;d+=1){const c=Xd(e,d),h=r-n+d,m=t.finite&&(d<0||d>e.length-1);l.push(m?{key:h}:{key:[`${h}`,Ww(c)].filter(Boolean).join("|"),offset:d-n,slide:c})}return nt("div",{ref:i,className:Ne(xt(rn()),l.length>0&&xt(rn("with_slides"))),style:{[`${ie(rn("slides_count"))}`]:l.length,[`${ie(rn("spacing_px"))}`]:o.pixel||0,[`${ie(rn("spacing_percent"))}`]:o.percent||0,[`${ie(rn("padding_px"))}`]:s.pixel||0,[`${ie(rn("padding_percent"))}`]:s.percent||0}},l.map(({key:d,slide:c,offset:h})=>c?nt(b_,{key:d,slide:c,offset:h}):nt(w_,{key:d})))}const x_=nn(Od,__);function hh(){const{carousel:t}=gr(),{slides:e,currentIndex:n}=mi(),r=e.length===0||t.finite&&n===0,i=e.length===0||t.finite&&n===e.length-1;return{prevDisabled:r,nextDisabled:i}}function S_(t){var e;const n=ta(),{publish:r}=pi(),{animation:i}=gr(),{prevDisabled:o,nextDisabled:s}=hh(),a=((e=i.navigation)!==null&&e!==void 0?e:i.swipe)/2,l=lh(()=>r(Qe),a),d=lh(()=>r(tn),a),c=$t(h=>{switch(h.key){case Dw:r(kn);break;case Bw:(n?s:o)||(n?d:l)();break;case Lw:(n?o:s)||(n?l:d)();break}});yt(()=>t(Vd,c),[t,c])}function ph({label:t,icon:e,renderIcon:n,action:r,onClick:i,disabled:o,style:s}){return nt(ih,{label:t,icon:e,renderIcon:n,className:xt(`navigation_${r}`),disabled:o,onClick:i,style:s,...l_(wr().focus,o)})}function E_({render:{buttonPrev:t,buttonNext:e,iconPrev:n,iconNext:r},styles:i}){const{prev:o,next:s,subscribeSensors:a}=wr(),{prevDisabled:l,nextDisabled:d}=hh();return S_(a),nt(Ot,null,t?t():nt(ph,{label:"Previous",action:Qe,icon:i_,renderIcon:n,style:i.navigationPrev,disabled:l,onClick:o}),e?e():nt(ph,{label:"Next",action:tn,icon:o_,renderIcon:r,style:i.navigationNext,disabled:d,onClick:s}))}const A_=nn(Pw,E_),mh=xt(Rw),T_=xt(Md);function P_(t){return"style"in t}function yh(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,`${(di(o)||0)+e}px`),()=>{s?t.style.setProperty(i,s):t.style.removeProperty(i)}}function k_({noScroll:{disabled:t},children:e}){const n=ta(),{getOwnerDocument:r,getOwnerWindow:i}=Zs();return yt(()=>{if(t)return()=>{};const o=[],s=i(),{body:a,documentElement:l}=r(),d=Math.round(s.innerWidth-l.clientWidth);if(d>0){o.push(yh(a,d,n));const c=a.getElementsByTagName("*");for(let h=0;h<c.length;h+=1){const m=c[h];P_(m)&&s.getComputedStyle(m).getPropertyValue("position")==="fixed"&&!m.classList.contains(T_)&&o.push(yh(m,d,n))}}return a.classList.add(mh),()=>{a.classList.remove(mh),o.forEach(c=>c())}},[n,t,r,i]),nt(Ot,null,e)}const O_=nn(kw,k_);function gh(t){return yr(Ws,t)}function vh(t,e,n){const r=t.getAttribute(e);return t.setAttribute(e,n),()=>{r?t.setAttribute(e,r):t.removeAttribute(e)}}function C_({children:t,animation:e,styles:n,className:r,on:i,portal:o,close:s}){const[a,l]=wt(!1),[d,c]=wt(!1),h=ot([]),m=ot(null),{setTimeout:y}=yi(),{subscribe:_}=pi(),k=oh()?0:e.fade;yt(()=>(l(!0),()=>{l(!1),c(!1)}),[]);const x=$t(()=>{h.current.forEach(O=>O()),h.current=[]}),v=$t(()=>{var O;c(!1),x(),(O=i.exiting)===null||O===void 0||O.call(i),y(()=>{var B;(B=i.exited)===null||B===void 0||B.call(i),s()},k)});yt(()=>_(kn,v),[_,v]);const S=$t(O=>{var B,L,W;O.scrollTop,c(!0),(B=i.entering)===null||B===void 0||B.call(i);const F=(W=(L=O.parentNode)===null||L===void 0?void 0:L.children)!==null&&W!==void 0?W:[];for(let Y=0;Y<F.length;Y+=1){const Z=F[Y];["TEMPLATE","SCRIPT","STYLE"].indexOf(Z.tagName)===-1&&Z!==O&&(h.current.push(vh(Z,"inert","")),h.current.push(vh(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)},k)}),R=kt(O=>{O?S(O):x()},[S,x]);return a?uo(nt(d_,{ref:R,className:Ne(r,xt(gh()),xt(Md),d&&xt(gh("open"))),role:"presentation","aria-live":"polite",style:{...e.fade!==Js.animation.fade?{[ie("fade_animation_duration")]:`${k}ms`}:null,...e.easing.fade!==Js.animation.easing.fade?{[ie("fade_animation_timing_function")]:e.easing.fade}:null,...n.root},onFocus:O=>{m.current||(m.current=O.relatedTarget)}},t),o.root||document.body):null}const I_=nn(Ws,C_);function R_({children:t}){return nt(Ot,null,t)}const M_=nn(Ow,R_);function N_(t){return yr(Id,t)}function D_({toolbar:{buttons:t},render:{buttonClose:e,iconClose:n},styles:r}){const{close:i,setToolbarWidth:o}=wr(),{setContainerRef:s,containerRect:a}=ah();br(()=>{o(a==null?void 0:a.width)},[o,a==null?void 0:a.width]);const l=()=>e?e():nt(ih,{key:kn,label:"Close",icon:r_,renderIcon:n,onClick:i});return nt("div",{ref:s,style:r.toolbar,className:xt(N_())},t==null?void 0:t.map(d=>d===kn?l():d))}const B_=nn(Id,D_);function bh(t,e){var n;return nt(t.module.component,{key:t.module.name,...e},(n=t.children)===null||n===void 0?void 0:n.map(r=>bh(r,e)))}function L_(t,e={}){const{easing:n,...r}=t,{easing:i,...o}=e;return{easing:{...n,...i},...r,...o}}function F_({carousel:t,animation:e,render:n,toolbar:r,controller:i,noScroll:o,on:s,plugins:a,slides:l,index:d,...c}){const{animation:h,carousel:m,render:y,toolbar:_,controller:w,noScroll:k,on:x,slides:v,index:S,plugins:R,...O}=Js,{config:B,augmentation:L}=Kw([Gt(I_,[Gt(O_,[Gt(v_,[Gt(x_),Gt(B_),Gt(A_)])])])],a||R),W=L({animation:L_(h,e),carousel:{...m,...t},render:{...y,...n},toolbar:{..._,...r},controller:{...w,...i},noScroll:{...k,...o},on:{...x,...s},...O,...c});return W.open?nt(Jw,{...W},nt(t_,{slides:l||v,index:di(d||S)},nt(e_,null,nt(Xw,null,bh(Gt(M_,B),W))))):null}const wh=({messageIndexKey:t,attachments:e})=>{const{setFullScreen:n}=Ht(),[r,i]=wt(!1);function o(){return document.getElementById("deskcord-lightbox-portal")??document.body}function s(){return e!=null&&e.length?M(F_,{open:r,portal:{root:o()},close:()=>{i(!1),n(!1)},slides:e.map(a=>({src:a.proxyURL}))}):null}return e!=null&&e.length?M("div",{children:[e.map((a,l)=>{const{proxyURL:d,width:c,height:h}=a;return M("div",{onClick:()=>{n(!0),i(!0)},children:M("img",{src:d,alt:"Preview",className:`rounded-lg w-[${c}px] h-[${h}px] max-w-[200px] max-h-[200px] aspect-auto`})},`conv-cus-attachment-${t}-${l}`)}),s()]},`conv-cus-attachment-${t}`):null},j_=({renderTimestamp:t,message:e,indexKey:n})=>{function r(i,o){const s=/<\w?:\w+:\d+>/g,a=i.split(s),l=i.match(s)??[],d=[];for(let c=0;c<a.length;c++)if(d.push(a[c]),l[c]){const h=o[l[c]];h&&d.push(M("img",{src:h.imageURL,alt:"",style:{display:"inline-block",width:"20px",height:"20px"}},c))}return d}return M("li",{className:"flex flex-col items-start max-w-lg gap-x-2 sm:gap-x-4 me-11",children:[e.content&&M("div",{className:"min-w-10 bg-blue-200 border border-gray-200 rounded-2xl p-2 space-y-1 dark:bg-neutral-900 dark:border-neutral-700",children:r(e.content,e.emojis??{})}),M("div",{className:"flex flex-1",children:M(wh,{attachments:e.attachments,messageIndexKey:n})}),t&&M("div",{children:M("span",{className:"mt-1.5 flex items-center gap-x-1 text-xs text-gray-500",children:[e.authorName," ยท ",kd(e.date)," ",e.edited?"(edited)":""]})})]},`conv-cs-${n}`)},V_=({message:t,indexKey:e})=>M("li",{className:`flex ms-auto gap-x-2 sm:gap-x-4 ${t.pending?"opacity-80":""}`,children:[t.content&&M("div",{className:"grow text-end space-y-1",children:M("div",{className:"min-w-10 inline-block bg-blue-600 rounded-2xl p-2 shadow-sm",children:M("p",{className:"text-center text-sm text-white",children:t.content})})}),t.attachments&&M("div",{className:"flex flex-1 justify-end",children:M(wh,{attachments:t.attachments,messageIndexKey:e})},`conv-cus-${e}-attachments`)]},`conv-cus-${e}`),$_=({message:t,indexKey:e})=>M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 space-y-3 dark:bg-neutral-900 dark:border-neutral-700",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:t.content})})},`conv-system-${e}`),U_=()=>{const{setEmail:t,setUsername:e,username:n,email:r,token:i}=Ht(),[o,s]=wt(r),[a,l]=wt(n),[d,c]=wt(""),h=w=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(w),m=!!n&&!!r,y=()=>{h(o)?(c(""),t(o)):c("Please enter a valid email address"),e(a)};function _(){return M("div",{className:"max-w-sm space-y-3",children:[M("div",{children:[M("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Name"}),M("div",{className:"relative",children:[M("input",{type:"text",id:"name",value:a,onChange:w=>l(w.target.value),name:"name",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600",placeholder:"John Smith",disabled:m,required:!0}),M("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:M(gb,{size:16})})]})]}),M("div",{children:[M("label",{htmlFor:"hs-leading-icon",className:"block text-sm font-medium mb-2 dark:text-white",children:"Email address"}),M("div",{className:"relative",children:[M("input",{type:"email",id:"email",value:o,onChange:w=>s(w.target.value),name:"email",className:"py-3 px-4 ps-11 block w-full border-gray-200 shadow-sm rounded-lg text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600",placeholder:"you@site.com",disabled:m,required:!0}),M("div",{className:"absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4 text-gray-400",children:M(fb,{size:16})})]}),d&&M("p",{className:"text-red-500 text-sm mt-2",children:d})]}),!n||!r?M("button",{type:"submit",onClick:y,className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none",children:"Submit"}):null]})}return M(Ot,{children:[M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:"Hello! Please introduce yourself."})})}),M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:_()})}),n&&r&&!i&&M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("div",{className:"animate-spin inline-block size-8 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500",role:"status","aria-label":"loading",children:M("span",{className:"sr-only",children:"Loading..."})})})}),n&&r&&M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4 me-11",children:M("div",{className:"border border-gray-200 rounded-2xl p-4 space-y-3 bg-blue-200",children:M("p",{className:"mb-1.5 text-sm text-gray-800 dark:text-white",children:"Nice to meet you! Feel free to ask us anything."})})})]})};function z_(t,e){const n=ot();yt(()=>{n.current=t},[t]),yt(()=>{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 W_(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 q_=({indexKey:t,message:e})=>{const n=e.customRendererProps.file,r=n.status==="error",[i,o]=wt(!0),[s,a]=wt(0);return z_(()=>{s<88?a(s+2.5):o(!1)},i&&!r?250:null),M("li",{className:"max-w-lg flex gap-x-2 sm:gap-x-4",style:{marginTop:"20px",marginBottom:"20px"},children:M("div",{className:"w-full bg-white border border-gray-200 rounded-2xl p-4 space-y-4",children:M("div",{children:[M("div",{className:"mb-2 flex justify-between items-center",children:[M("div",{className:"flex items-center gap-x-3",children:[M("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:M(ub,{})}),M("div",{children:[M("p",{className:`text-sm ${r?"font-semibold text-red-500":"font-medium text-gray-800"}`,children:n.fileName}),M("p",{className:"text-xs text-gray-500 dark:text-neutral-500",children:W_(n.size)})]})]}),r&&M("div",{className:"inline-flex items-center gap-x-2",children:M("span",{className:"relative",children:[M("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:M("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"})}),M("span",{className:"sr-only",children:"Danger"})]})})]}),M("div",{className:"flex items-center gap-x-3 whitespace-nowrap",children:[M("div",{className:"flex w-full h-2 bg-gray-200 rounded-full overflow-hidden dark:bg-neutral-700",role:"progressbar",children:M("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}%`}})}),M("div",{className:"w-6 text-end",children:M("span",{className:"text-sm text-gray-800 dark:text-white",children:[Math.round(s),"%"]})})]})]})})},`conv-fileupload-${t}`)},H_=({conversation:t,open:e})=>{function n(s,a){const l=`${s.date}-${a}`;if(typeof s.customRenderer<"u")switch(s.customRenderer){case Pn.IntroduceYourself:return M(U_,{});case Pn.UploadFile:return M(q_,{message:s,indexKey:l});default:return o(s,l)}else return s.authorName===mr?o(s,l):s.support?r(s,l):i(s,l)}function r(s,a){var h;const l=(h=t==null?void 0:t.messages)==null?void 0:h.filter(m=>m.support),d=l==null?void 0:l[l.length-1],c=s.date===(d==null?void 0:d.date);return M(j_,{renderTimestamp:c,message:s,indexKey:a})}function i(s,a){return M(V_,{message:s,indexKey:a})}function o(s,a){return M($_,{message:s,indexKey:a})}return M("ul",{className:"space-y-2",children:[[...(t==null?void 0:t.messages)??[]].sort((s,a)=>s.date-a.date).map(n),t&&!e&&n(yw,1)]})},G_=()=>{var v;const{getConversation:t,addMessage:e,tempConversationToThread:n,username:r,updateMessage:i}=Ht(),[o,s]=wt(!1),[a,l]=wt([]),[d,c]=wt({}),h=ot(null),m=t(),y=(m==null?void 0:m.status)==="open",[_,w]=wt("");return yt(()=>{h.current&&h.current.scrollTo({top:h.current.scrollHeight,behavior:"smooth"})},[(v=m==null?void 0:m.messages)==null?void 0:v.length]),yt(()=>{const S={};a.forEach(R=>{const O=new FileReader;O.addEventListener("load",function(){const B=new Image;B.onload=()=>{S[R.name]={url:O.result,width:B.width,height:B.height,size:R.size},c(S)},B.src=O.result},!1),O.readAsDataURL(R)})},[a]),M(Ot,{children:[M("div",{ref:h,className:"flex-1 overflow-y-auto p-4 space-y-4",children:M(H_,{conversation:m,open:y})}),M(Tw,{attachmentPreviews:d,files:a,setFiles:l,inputMessage:_,setInputMessage:w,showEmojiPicker:o,setShowEmojiPicker:s,addEmoji:S=>{w(_+S)},sendMessage:async()=>{const S=Date.now(),R={support:!1,content:_,date:S,authorName:r,pending:!0};if(_.trim()!==""){w(""),e(m?m.threadId:"TEMP",R);const O=await mw({content:_});O&&(m||n(O.threadId),i(O.threadId,S,{...R,pending:!1,date:O.date}))}}})]})};function ia(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 K_(t){switch(t){case"online":return"Online";case"idle":case"offline":case"invisible":return"Away";case"dnd":return"Unavailable";default:return"Away"}}const Y_=()=>{const{conversations:t,setOpenConversationId:e}=Ht(),n=t.filter(s=>s.status==="open").length;function r(){return n!==0?null:M("div",{className:"flex justify-center my-2",children:M("button",{onClick:()=>e("TEMP"),type:"button",className:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none",children:["Start a new conversation",M(db,{})]})})}function i(s,a){var c,h,m;const l=s.messages[s.messages.length-1],d=s.status==="open";return M("div",{className:"flex flex-row items-center px-3 py-4 border-b border-gray-200 hover:bg-gray-200 cursor-pointer",onClick:()=>e(s.threadId),children:[M("div",{className:"relative inline-block mr-3",children:[M("img",{className:"inline-block size-[32px] rounded-full",src:((c=s==null?void 0:s.csMember)==null?void 0:c.displayAvatarURL)??"http://placehold.co/250x250"}),((h=s==null?void 0:s.csMember)==null?void 0:h.status)&&M("span",{className:`absolute top-0 end-0 block size-3 rounded-full ring-2 ring-white dark:ring-neutral-900 ${ia(s.csMember.status,"bg")}`})]}),M("div",{className:"flex flex-1 flex-col",children:[M("p",{className:`text-sm/3 ${d?"font-semibold":""}`,children:(m=s==null?void 0:s.csMember)==null?void 0:m.displayName}),M("p",{className:"text-xs text-gray-500 line-clamp-1",children:l.content})]}),M("div",{className:"ml-2",children:M("p",{className:"text-xs text-gray-500",children:kd(l.date)})})]},`conversation-${a}`)}function o(){return[...t].sort((s,a)=>a.lastMessageDate-s.lastMessageDate).map((s,a)=>s.messages.length?i(s,a):null)}return M("div",{className:"overflow-scroll",children:[r(),M(Ot,{children:o()})]})},_h=({IconComponent:t,onClick:e})=>M("button",{className:"flex mr-2 items-center justify-center w-8 h-8 rounded-full hover:bg-gray-100",onClick:e,children:M(t,{})}),X_=({size:t})=>M("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||20,height:t||20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[M("path",{d:"M18 6 6 18"}),M("path",{d:"m6 6 12 12"})]}),J_=({size:t})=>M("svg",{xmlns:"http://www.w3.org/2000/svg",width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-chevron-left",children:M("path",{d:"m15 18-6-6 6-6"})}),xh={title:"Hi there ๐Ÿ‘‹",subtitle:"We typically reply within a few minutes"},Z_=()=>{var a,l,d,c,h,m;const{setChatOpen:t,setOpenConversationId:e,guildSettings:n,conversations:r,openConversationId:i}=Ht(),o=r.find(y=>y.status==="open"),s=i&&(o!=null&&o.csMember)&&((a=o==null?void 0:o.csMember)==null?void 0:a.displayName)!=="Customer support"?{title:(l=o==null?void 0:o.csMember)==null?void 0:l.displayName,subtitle:(d=o==null?void 0:o.csMember)!=null&&d.status?K_((c=o==null?void 0:o.csMember)==null?void 0:c.status):null,avatar:(h=o==null?void 0:o.csMember)==null?void 0:h.displayAvatarURL,status:(m=o==null?void 0:o.csMember)==null?void 0:m.status}:{title:(n==null?void 0:n.header_title)??xh.title,subtitle:(n==null?void 0:n.header_subtitle)??xh.subtitle,avatar:(n==null?void 0:n.iconURL)||"https://placehold.co/250x250"};return M("div",{className:"flex flex-row items-center bg-white py-2 px-4 border-b border-grey-200",children:[r.length>0&&i&&M(_h,{onClick:()=>e(null),IconComponent:J_}),M("div",{className:"relative inline-block mr-3",children:[M("img",{className:"inline-block size-[40px] rounded-full",src:s.avatar}),s.status&&M("span",{className:`absolute top-0 end-0 block size-3.5 rounded-full ring-2 ring-white dark:ring-neutral-900 ${ia(s.status,"bg")}`})]}),M("div",{className:"flex-1 flex-col",children:[M("p",{className:"text-lg/5 font-semibold",children:s.title}),s.subtitle&&M("p",{className:`flex-1 text-xs/4 line-clamp-2 ${s.status?ia(s.status,"text"):""}`,children:s.subtitle})]}),M(_h,{onClick:()=>t(!1),IconComponent:X_})]})};function Q_(){const[t,e]=wt({width:null,height:null});return Ce(()=>{const n=()=>{e({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),t}const t1=()=>{const t=Q_();return!t.width||!t.height?!1:t.width>t.height?t.width<=Pd||t.height<=hw:t.width<=Pd},e1=()=>{const{openConversationId:t,conversations:e,isChatVisible:n}=Ht(),r=t1(),i=!t&&e.length,o={position:"fixed",inset:"0px",width:"100%",height:"100%",zIndex:9999,transformOrigin:"bottom right"},s={position:"fixed",bottom:"110px",right:"30px",width:"400px",height:"700px",maxWidth:"calc(100% - 60px)",maxHeight:"calc(100% - 124px)",zIndex:9999,transformOrigin:"bottom right"};return M(Tu,{children:n&&M(Os.div,{initial:{opacity:0,scale:.8,y:r?0:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:r?0:20},transition:r?{duration:.2,ease:"easeInOut"}:{type:"spring",stiffness:500,damping:28,mass:.8},style:r?o:s,children:M("div",{className:"flex flex-col h-full bg-white rounded-lg shadow-xl overflow-hidden",children:[M(Z_,{}),i?M(Y_,{}):M(G_,{})]})},"chatbox")})},xe=Object.create(null);xe.open="0",xe.close="1",xe.ping="2",xe.pong="3",xe.message="4",xe.upgrade="5",xe.noop="6";const vi=Object.create(null);Object.keys(xe).forEach(t=>{vi[xe[t]]=t});const oa={type:"error",data:"parser error"},Sh=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Eh=typeof ArrayBuffer=="function",Ah=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,sa=({type:t,data:e},n,r)=>Sh&&e instanceof Blob?n?r(e):Th(e,r):Eh&&(e instanceof ArrayBuffer||Ah(e))?n?r(e):Th(new Blob([e]),r):r(xe[t]+(e||"")),Th=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function Ph(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let aa;function n1(t,e){if(Sh&&t.data instanceof Blob)return t.data.arrayBuffer().then(Ph).then(e);if(Eh&&(t.data instanceof ArrayBuffer||Ah(t.data)))return e(Ph(t.data));sa(t,!1,n=>{aa||(aa=new TextEncoder),e(aa.encode(n))})}const kh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_r=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<kh.length;t++)_r[kh.charCodeAt(t)]=t;const r1=t=>{let e=t.length*.75,n=t.length,r,i=0,o,s,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),c=new Uint8Array(d);for(r=0;r<n;r+=4)o=_r[t.charCodeAt(r)],s=_r[t.charCodeAt(r+1)],a=_r[t.charCodeAt(r+2)],l=_r[t.charCodeAt(r+3)],c[i++]=o<<2|s>>4,c[i++]=(s&15)<<4|a>>2,c[i++]=(a&3)<<6|l&63;return d},i1=typeof ArrayBuffer=="function",ca=(t,e)=>{if(typeof t!="string")return{type:"message",data:Oh(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:o1(t.substring(1),e)}:vi[n]?t.length>1?{type:vi[n],data:t.substring(1)}:{type:vi[n]}:oa},o1=(t,e)=>{if(i1){const n=r1(t);return Oh(n,e)}else return{base64:!0,data:t}},Oh=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ch="",s1=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((o,s)=>{sa(o,!1,a=>{r[s]=a,++i===n&&e(r.join(Ch))})})},a1=(t,e)=>{const n=t.split(Ch),r=[];for(let i=0;i<n.length;i++){const o=ca(n[i],e);if(r.push(o),o.type==="error")break}return r};function c1(){return new TransformStream({transform(t,e){n1(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 la;function bi(t){return t.reduce((e,n)=>e+n.length,0)}function wi(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 l1(t,e){la||(la=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(bi(n)<1)break;const l=wi(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(bi(n)<2)break;const l=wi(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(bi(n)<8)break;const l=wi(n,8),d=new DataView(l.buffer,l.byteOffset,l.length),c=d.getUint32(0);if(c>Math.pow(2,21)-1){a.enqueue(oa);break}i=c*Math.pow(2,32)+d.getUint32(4),r=3}else{if(bi(n)<i)break;const l=wi(n,i);a.enqueue(ca(o?l:la.decode(l),e)),r=0}if(i===0||i>t){a.enqueue(oa);break}}}})}const Ih=4;function Ut(t){if(t)return u1(t)}function u1(t){for(var e in Ut.prototype)t[e]=Ut.prototype[e];return t}Ut.prototype.on=Ut.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Ut.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},Ut.prototype.off=Ut.prototype.removeListener=Ut.prototype.removeAllListeners=Ut.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},Ut.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},Ut.prototype.emitReserved=Ut.prototype.emit,Ut.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},Ut.prototype.hasListeners=function(t){return!!this.listeners(t).length};const fe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Rh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const f1=fe.setTimeout,d1=fe.clearTimeout;function _i(t,e){e.useNativeTimers?(t.setTimeoutFn=f1.bind(fe),t.clearTimeoutFn=d1.bind(fe)):(t.setTimeoutFn=fe.setTimeout.bind(fe),t.clearTimeoutFn=fe.clearTimeout.bind(fe))}const h1=1.33;function p1(t){return typeof t=="string"?m1(t):Math.ceil((t.byteLength||t.size)*h1)}function m1(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 y1(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function g1(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 v1 extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class ua extends Ut{constructor(e){super(),this.writable=!1,_i(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new v1(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=ca(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=y1(e);return n.length?"?"+n:""}}const Mh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),fa=64,b1={};let Nh=0,xi=0,Dh;function Bh(t){let e="";do e=Mh[t%fa]+e,t=Math.floor(t/fa);while(t>0);return e}function Lh(){const t=Bh(+new Date);return t!==Dh?(Nh=0,Dh=t):t+"."+Bh(Nh++)}for(;xi<fa;xi++)b1[Mh[xi]]=xi;let Fh=!1;try{Fh=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const w1=Fh;function jh(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||w1))return new XMLHttpRequest}catch{}if(!e)try{return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function tA(){}function _1(){}const x1=function(){return new jh({xdomain:!1}).responseType!=null}();class S1 extends ua{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=x1&&!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)};a1(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,s1(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Lh()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Se(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Se extends Ut{constructor(e,n){super(),_i(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=Rh(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new jh(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Se.requestsCount++,Se.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=_1,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Se.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Se.requestsCount=0,Se.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vh);else if(typeof addEventListener=="function"){const t="onpagehide"in fe?"pagehide":"unload";addEventListener(t,Vh,!1)}}function Vh(){for(let t in Se.requests)Se.requests.hasOwnProperty(t)&&Se.requests[t].abort()}var E1={},Si={};Si.byteLength=P1,Si.toByteArray=O1,Si.fromByteArray=R1;for(var Ee=[],de=[],A1=typeof Uint8Array<"u"?Uint8Array:Array,da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cn=0,T1=da.length;Cn<T1;++Cn)Ee[Cn]=da[Cn],de[da.charCodeAt(Cn)]=Cn;de[45]=62,de[95]=63;function $h(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 P1(t){var e=$h(t),n=e[0],r=e[1];return(n+r)*3/4-r}function k1(t,e,n){return(e+n)*3/4-n}function O1(t){var e,n=$h(t),r=n[0],i=n[1],o=new A1(k1(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 C1(t){return Ee[t>>18&63]+Ee[t>>12&63]+Ee[t>>6&63]+Ee[t&63]}function I1(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(C1(r));return i.join("")}function R1(t){for(var e,n=t.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(I1(t,s,s+o>a?a:s+o));return r===1?(e=t[n-1],i.push(Ee[e>>2]+Ee[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],i.push(Ee[e>>10]+Ee[e>>4&63]+Ee[e<<2&63]+"=")),i.join("")}var ha={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ha.read=function(t,e,n,r,i){var o,s,a=i*8-r-1,l=(1<<a)-1,d=l>>1,c=-7,h=n?i-1:0,m=n?-1:1,y=t[e+h];for(h+=m,o=y&(1<<-c)-1,y>>=-c,c+=a;c>0;o=o*256+t[e+h],h+=m,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=s*256+t[e+h],h+=m,c-=8);if(o===0)o=1-d;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-d}return(y?-1:1)*s*Math.pow(2,o-r)},ha.write=function(t,e,n,r,i,o){var s,a,l,d=o*8-i-1,c=(1<<d)-1,h=c>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:o-1,_=r?1:-1,w=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+=_,a/=256,i-=8);for(s=s<<i|a,d+=i;d>0;t[n+y]=s&255,y+=_,s/=256,d-=8);t[n+y-_]|=w*128};/*!
96
96
  * The buffer module from node.js, for the browser.
97
97
  *
98
98
  * @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.2.1",
4
+ "version": "0.2.2",
5
5
  "author": "Maxime Bertonnier <m.bertonnier@gmail.com>",
6
6
  "homepage": "https://deskcord.chat",
7
7
  "type": "module",