项目文件夹

文件
2024-12-10 09:33:59 -08:00

2 行
618 KiB
JavaScript

此文件含有不可见的 Unicode 字符
此文件含有人类无法区分的不可见的 Unicode 字符,但可以由计算机进行不同的处理。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。
var AgilityAssistant=function(){"use strict";var e,t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,y,b,v,w,x,k,_,C,E,S,A,O,T,R,F,N,P,L,D,I,z,j,M,B,U,q,H,$,W,Z,V,K,G,Q,X,Y,J,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,ge,me,ye,be,ve,we,xe,ke,_e,Ce,Ee,Se,Ae,Oe,Te,Re,Fe=e=>{throw TypeError(e)},Ne=(e,t,n)=>t.has(e)||Fe("Cannot "+n),Pe=(e,t,n)=>(Ne(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>t.has(e)?Fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),De=(e,t,n,r)=>(Ne(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(Ne(e,t,"access private method"),n),ze=(e,t,n,r)=>({set _(r){De(e,t,r,n)},get _(){return Pe(e,t,r)}}),je={},Me=[],Be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ue=Array.isArray;function qe(e,t){for(var n in t)e[n]=t[n];return e}function He(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function $e(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ve.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return We(e,a,r,o,null)}function We(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++xe:o,__i:-1,__u:0};return null==o&&null!=we.vnode&&we.vnode(i),i}function Ze(){return{current:null}}function Ve(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function Ge(e,t){if(null==t)return e.__?Ge(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Ge(e):null}function Qe(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Qe(e)}}function Xe(e){(!e.__d&&(e.__d=!0)&&ke.push(e)&&!Ye.__r++||_e!==we.debounceRendering)&&((_e=we.debounceRendering)||Ce)(Ye)}function Ye(){var e,t,n,r,o,i,a,s;for(ke.sort(Ee);e=ke.shift();)e.__d&&(t=ke.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=qe({},o)).__v=o.__v+1,we.vnode&&we.vnode(r),at(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?Ge(o):i,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,st(a,r,s),r.__e!=i&&Qe(r)),ke.length>t&&ke.sort(Ee));Ye.__r=0}function Je(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,h,g,m,y=r&&r.__k||Me,b=t.length;for(l=function(e,t,n,r){var o,i,a,s,l,c=t.length,u=n.length,d=u,p=0;for(e.__k=[],o=0;o<c;o++)null!=(i=t[o])&&"boolean"!=typeof i&&"function"!=typeof i?(s=o+p,(i=e.__k[o]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?We(null,i,null,null,null):Ue(i)?We(Ve,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?We(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,-1!==(l=i.__i=nt(i,n,s,d))&&(d--,(a=n[l])&&(a.__u|=2)),null==a||null===a.__v?(-1==l&&p--,"function"!=typeof i.type&&(i.__u|=4)):l!==s&&(l==s-1?p--:l==s+1?p++:(l>s?p--:p++,i.__u|=4))):i=e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(a=n[o])&&!(2&a.__u)&&(a.__e==r&&(r=Ge(a)),ct(a,a));return r}(n,t,y,l),d=0;d<b;d++)null!=(f=n.__k[d])&&(p=-1===f.__i?je:y[f.__i]||je,f.__i=d,m=at(e,f,p,o,i,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&lt(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==g&&null!=h&&(g=h),4&f.__u||p.__k===f.__k?l=et(f,l,e):"function"==typeof f.type&&void 0!==m?l=m:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=g,l}function et(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=et(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ge(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function tt(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ue(e)?e.some((function(e){tt(e,t)})):t.push(e)),t}function nt(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type&&!(2&l.__u))return n;if(("function"!=typeof i||i===Ve||o)&&r>(null==l||2&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(2&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(2&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function rt(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Be.test(t)?n:n+"px"}function ot(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||rt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||rt(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(Se,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Ae,e.addEventListener(t,i?Te:Oe,i)):e.removeEventListener(t,i?Te:Oe,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function it(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ae++;else if(t.t<n.u)return;return n(we.event?we.event(t):t)}}}function at(e,t,n,r,o,i,a,s,l,c){var u,d,p,f,h,g,m,y,b,v,w,x,k,_,C,E,S,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(u=we.__b)&&u(t);e:if("function"==typeof A)try{if(y=t.props,b="prototype"in A&&A.prototype.render,v=(u=A.contextType)&&r[u.__c],w=u?v?v.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(b?t.__c=d=new A(y,w):(t.__c=d=new Ke(y,w),d.constructor=A,d.render=ut),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=qe({},d.__s)),qe(d.__s,A.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)b&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==A.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,w),b&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,g)}))}if(d.context=w,d.props=y,d.__P=e,d.__e=!1,k=we.__r,_=0,b){for(d.state=d.__s,d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++_<25);d.state=d.__s,null!=d.getChildContext&&(r=qe(qe({},r),d.getChildContext())),b&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(f,h)),s=Je(e,Ue(E=null!=u&&u.type===Ve&&null==u.key?u.props.children:u)?E:[E],t,n,r,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(O){if(t.__v=null,l||null!=i)if(O.then){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(S=i.length;S--;)He(i[S]);else t.__e=n.__e,t.__k=n.__k;we.__e(O,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=function(e,t,n,r,o,i,a,s,l){var c,u,d,p,f,h,g,m=n.props,y=t.props,b=t.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((f=i[c])&&"setAttribute"in f==!!b&&(b?f.localName===b:3===f.nodeType)){e=f,i[c]=null;break}if(null==e){if(null===b)return document.createTextNode(y);e=document.createElementNS(o,b,y.is&&y),s&&(we.__m&&we.__m(t,i),s=!1),i=null}if(null===b)m===y||s&&e.data===y||(e.data=y);else{if(i=i&&ve.call(e.childNodes),m=n.props||je,!s&&null!=i)for(m={},c=0;c<e.attributes.length;c++)m[(f=e.attributes[c]).name]=f.value;for(c in m)if(f=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if(!(c in y)){if("value"==c&&"defaultValue"in y||"checked"==c&&"defaultChecked"in y)continue;ot(e,c,null,f,o)}for(c in y)f=y[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?g=f:s&&"function"!=typeof f||m[c]===f||ot(e,c,f,m[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Je(e,Ue(p)?p:[p],t,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Ge(n,0),s,l),null!=i)for(c=i.length;c--;)He(i[c]);s||(c="value","progress"===b&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[c]||"progress"===b&&!h||"option"===b&&h!==m[c])&&ot(e,c,h,m[c],o),c="checked",void 0!==g&&g!==e[c]&&ot(e,c,g,m[c],o))}return e}(n.__e,t,n,r,o,i,a,l,c);return(u=we.diffed)&&u(t),128&t.__u?void 0:s}function st(e,t,n){for(var r=0;r<n.length;r++)lt(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){we.__e(n,t.__v)}}))}function lt(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(o){we.__e(o,n)}}function ct(e,t,n){var r,o;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||lt(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){we.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ct(r[o],t,n||"function"!=typeof e.type);n||He(e.__e),e.__c=e.__=e.__e=void 0}function ut(e,t,n){return this.constructor(e,n)}function dt(e,t,n){var r,o,i,a;t===document&&(t=document.documentElement),we.__&&we.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],at(t,e=(!r&&n||t).__k=$e(Ve,null,[e]),o||je,je,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ve.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),st(i,e,a)}function pt(e,t){dt(e,t,pt)}function ft(e,t,n){var r,o,i,a,s=qe({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?ve.call(arguments,2):n),We(e.type,s,r||e.key,o||e.ref,null)}function ht(e,t){var n={__c:t="__cC"+Re++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,Xe(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}ve=Me.slice,we={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},xe=0,Ke.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=qe({},this.state),"function"==typeof e&&(e=e(qe({},n),this.props)),e&&qe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Xe(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Xe(this))},Ke.prototype.render=Ve,ke=[],Ce="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Ye.__r=0,Se=/(PointerCapture)$|Capture$/i,Ae=0,Oe=it(!1),Te=it(!0),Re=0;var gt,mt,yt,bt,vt=0,wt=[],xt=we,kt=xt.__b,_t=xt.__r,Ct=xt.diffed,Et=xt.__c,St=xt.unmount,At=xt.__;function Ot(e,t){xt.__h&&xt.__h(mt,e,vt||t),vt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Tt(e){return vt=1,Rt(Zt,e)}function Rt(e,t,n){var r=Ot(gt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Zt(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=mt,!mt.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),i&&i.call(this,e,t,n)||a};mt.u=!0;var i=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},mt.shouldComponentUpdate=o}return r.__N||r.__}function Ft(e,t){var n=Ot(gt++,3);!xt.__s&&Wt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Nt(e,t){var n=Ot(gt++,4);!xt.__s&&Wt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Pt(e){return vt=5,Dt((function(){return{current:e}}),[])}function Lt(e,t,n){vt=6,Nt((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Dt(e,t){var n=Ot(gt++,7);return Wt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function It(e,t){return vt=8,Dt((function(){return e}),t)}function zt(e){var t=mt.context[e.__c],n=Ot(gt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function jt(e,t){xt.useDebugValue&&xt.useDebugValue(t?t(e):e)}function Mt(){var e=Ot(gt++,11);if(!e.__){for(var t=mt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Bt(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ht),e.__H.__h.forEach($t),e.__H.__h=[]}catch(mg){e.__H.__h=[],xt.__e(mg,e.__v)}}xt.__b=function(e){mt=null,kt&&kt(e)},xt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),At&&At(e,t)},xt.__r=function(e){_t&&_t(e),gt=0;var t=(mt=e.__c).__H;t&&(yt===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Ht),t.__h.forEach($t),t.__h=[],gt=0)),yt=mt},xt.diffed=function(e){Ct&&Ct(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&bt===xt.requestAnimationFrame||((bt=xt.requestAnimationFrame)||qt)(Bt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),yt=mt=null},xt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ht),e.__h=e.__h.filter((function(e){return!e.__||$t(e)}))}catch(bg){t.some((function(e){e.__h&&(e.__h=[])})),t=[],xt.__e(bg,e.__v)}})),Et&&Et(e,t)},xt.unmount=function(e){St&&St(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ht(e)}catch(n){t=n}})),n.__H=void 0,t&&xt.__e(t,n.__v))};var Ut="function"==typeof requestAnimationFrame;function qt(e){var t,n=function(){clearTimeout(r),Ut&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ut&&(t=requestAnimationFrame(n))}function Ht(e){var t=mt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),mt=t}function $t(e){var t=mt;e.__c=e.__(),mt=t}function Wt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Zt(e,t){return"function"==typeof t?t(e):t}function Vt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Kt(e,t){var n=t(),r=Tt({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Nt((function(){o.__=n,o.u=t,Gt(o)&&i({t:o})}),[e,n,t]),Ft((function(){return Gt(o)&&i({t:o}),e((function(){Gt(o)&&i({t:o})}))}),[e]),n}function Gt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}function Qt(e){e()}function Xt(e){return e}function Yt(){return[!1,Qt]}var Jt=Nt;function en(e,t){this.props=e,this.context=t}function tn(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Vt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,$e(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(en.prototype=new Ke).isPureReactComponent=!0,en.prototype.shouldComponentUpdate=function(e,t){return Vt(this.props,e)||Vt(this.state,t)};var nn=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),nn&&nn(e)};var rn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=rn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var an=function(e,t){return null==e?null:tt(tt(e).map(t))},sn={map:an,forEach:an,count:function(e){return e?tt(e).length:0},only:function(e){var t=tt(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:tt},ln=we.__e;we.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ln(e,t,n,r)};var cn=we.unmount;function un(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return un(e,t,n)}))),e}function dn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return dn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function pn(){this.__u=0,this.o=null,this.__b=null}function fn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function hn(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return $e(n,o)}return o.displayName="Lazy",o.__f=!0,o}function gn(){this.i=null,this.l=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),cn&&cn(e)},(pn.prototype=new Ke).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=fn(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=dn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},pn.prototype.componentWillUnmount=function(){this.o=[]},pn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=un(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&$e(Ve,null,e.fallback);return o&&(o.__u&=-33),[$e(Ve,null,t.__a?null:e.children),o]};var mn=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function yn(e){return this.getChildContext=function(){return e.context},e.children}function bn(e){var t=this,n=e.h;t.componentWillUnmount=function(){dt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),dt($e(yn,{context:t.context},e.__v),t.v)}function vn(e,t){var n=$e(bn,{__v:e,h:t});return n.containerInfo=t,n}(gn.prototype=new Ke).__a=function(e){var t=this,n=fn(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),mn(t,e,r)):o()};n?n(i):i()}},gn.prototype.render=function(e){this.i=null,this.l=new Map;var t=tt(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},gn.prototype.componentDidUpdate=gn.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){mn(e,n,t)}))};var wn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,xn=/^(?: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]/,kn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_n=/[A-Z0-9]/g,Cn="undefined"!=typeof document,En=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Sn(e,t,n){return null==t.__k&&(t.textContent=""),dt(e,t),"function"==typeof n&&n(),e?e.__c:null}function An(e,t,n){return pt(e,t),"function"==typeof n&&n(),e?e.__c:null}Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var On=we.event;function Tn(){}function Rn(){return this.cancelBubble}function Fn(){return this.defaultPrevented}we.event=function(e){return On&&(e=On(e)),e.persist=Tn,e.isPropagationStopped=Rn,e.isDefaultPrevented=Fn,e.nativeEvent=e};var Nn,Pn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ln=we.vnode;we.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||Cn&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||En(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":kn.test(i)&&(i=s):s=i="oninput":o&&xn.test(i)?i=i.replace(_n,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=tt(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=tt(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Pn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=wn,Ln&&Ln(e)};var Dn=we.__r;we.__r=function(e){Dn&&Dn(e),Nn=e.__c};var In=we.diffed;we.diffed=function(e){In&&In(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Nn=null};var zn={ReactCurrentDispatcher:{current:{readContext:function(e){return Nn.__n[e.__c].props.value},useCallback:It,useContext:zt,useDebugValue:jt,useDeferredValue:Xt,useEffect:Ft,useId:Mt,useImperativeHandle:Lt,useInsertionEffect:Jt,useLayoutEffect:Nt,useMemo:Dt,useReducer:Rt,useRef:Pt,useState:Tt,useSyncExternalStore:Kt,useTransition:Yt}}};function jn(e){return $e.bind(null,e)}function Mn(e){return!!e&&e.$$typeof===wn}function Bn(e){return Mn(e)&&e.type===Ve}function Un(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function qn(e){return Mn(e)?ft.apply(null,arguments):e}function Hn(e){return!!e.__k&&(dt(null,e),!0)}function $n(e){return e&&(e.base||1===e.nodeType&&e)||null}var Wn=function(e,t){return e(t)},Zn=function(e,t){return e(t)},Vn=Ve,Kn=Mn,Gn={useState:Tt,useId:Mt,useReducer:Rt,useEffect:Ft,useLayoutEffect:Nt,useInsertionEffect:Jt,useTransition:Yt,useDeferredValue:Xt,useSyncExternalStore:Kt,startTransition:Qt,useRef:Pt,useImperativeHandle:Lt,useMemo:Dt,useCallback:It,useContext:zt,useDebugValue:jt,version:"18.3.1",Children:sn,render:Sn,hydrate:An,unmountComponentAtNode:Hn,createPortal:vn,createElement:$e,createContext:ht,createFactory:jn,cloneElement:qn,createRef:Ze,Fragment:Ve,isValidElement:Mn,isElement:Kn,isFragment:Bn,isMemo:Un,findDOMNode:$n,Component:Ke,PureComponent:en,memo:tn,forwardRef:on,flushSync:Zn,unstable_batchedUpdates:Wn,StrictMode:Vn,Suspense:pn,SuspenseList:gn,lazy:hn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn};const Qn=Object.freeze(Object.defineProperty({__proto__:null,Children:sn,Component:Ke,Fragment:Ve,PureComponent:en,StrictMode:Vn,Suspense:pn,SuspenseList:gn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn,cloneElement:qn,createContext:ht,createElement:$e,createFactory:jn,createPortal:vn,createRef:Ze,default:Gn,findDOMNode:$n,flushSync:Zn,forwardRef:on,hydrate:An,isElement:Kn,isFragment:Bn,isMemo:Un,isValidElement:Mn,lazy:hn,memo:tn,render:Sn,startTransition:Qt,unmountComponentAtNode:Hn,unstable_batchedUpdates:Wn,useCallback:It,useContext:zt,useDebugValue:jt,useDeferredValue:Xt,useEffect:Ft,useErrorBoundary:function(e){var t=Ot(gt++,10),n=Tt();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Mt,useImperativeHandle:Lt,useInsertionEffect:Jt,useLayoutEffect:Nt,useMemo:Dt,useReducer:Rt,useRef:Pt,useState:Tt,useSyncExternalStore:Kt,useTransition:Yt,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Xn=0;function Yn(e,t,n,r,o,i){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Xn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return we.vnode&&we.vnode(c),c}var Jn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},er="undefined"==typeof window||"Deno"in globalThis;function tr(){}function nr(e){return"number"==typeof e&&e>=0&&e!==1/0}function rr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function or(e,t){return"function"==typeof e?e(t):e}function ir(e,t){return"function"==typeof e?e(t):e}function ar(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==lr(a,t.options))return!1}else if(!ur(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function sr(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(cr(t.options.mutationKey)!==cr(i))return!1}else if(!ur(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function lr(e,t){return((null==t?void 0:t.queryKeyHashFn)||cr)(e)}function cr(e){return JSON.stringify(e,((e,t)=>hr(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ur(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ur(e[n],t[n])))}function dr(e,t){if(e===t)return e;const n=fr(e)&&fr(t);if(n||hr(e)&&hr(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const o=n?c:i[c];(!n&&r.includes(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,l++):(s[o]=dr(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&l++)}return o===a&&l===o?e:s}return t}function pr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hr(e){if(!gr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!gr(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function gr(e){return"[object Object]"===Object.prototype.toString.call(e)}function mr(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?dr(e,t):t}function yr(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function br(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vr=Symbol();function wr(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==vr?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var xr=new(r=class extends Jn{constructor(){super(),Le(this,e),Le(this,t),Le(this,n),De(this,n,(e=>{if(!er&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){Pe(this,t)||this.setEventListener(Pe(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,t))||e.call(this),De(this,t,void 0))}setEventListener(e){var r;De(this,n,e),null==(r=Pe(this,t))||r.call(this),De(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){Pe(this,e)!==t&&(De(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof Pe(this,e)?Pe(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),kr=new(s=class extends Jn{constructor(){super(),Le(this,o,!0),Le(this,i),Le(this,a),De(this,a,(e=>{if(!er&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){Pe(this,i)||this.setEventListener(Pe(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,i))||e.call(this),De(this,i,void 0))}setEventListener(e){var t;De(this,a,e),null==(t=Pe(this,i))||t.call(this),De(this,i,e(this.setOnline.bind(this)))}setOnline(e){Pe(this,o)!==e&&(De(this,o,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return Pe(this,o)}},o=new WeakMap,i=new WeakMap,a=new WeakMap,s);function _r(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function Cr(e){return Math.min(1e3*2**e,3e4)}function Er(e){return"online"!==(e??"online")||kr.isOnline()}var Sr=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Ar(e){return e instanceof Sr}function Or(e){let t,n=!1,r=0,o=!1;const i=_r(),a=()=>xr.isFocused()&&("always"===e.networkMode||kr.isOnline())&&e.canRun(),s=()=>Er(e.networkMode)&&e.canRun(),l=n=>{var r;o||(o=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),i.resolve(n))},c=n=>{var r;o||(o=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),i.reject(n))},u=()=>new Promise((n=>{var r;t=e=>{(o||a())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,o||null==(n=e.onContinue)||n.call(e)})),d=()=>{if(o)return;let t;const i=0===r?e.initialPromise:void 0;try{t=i??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var i;if(o)return;const s=e.retry??(er?0:3),l=e.retryDelay??Cr,p="function"==typeof l?l(r,t):l,f=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);var h;!n&&f?(r++,null==(i=e.onFail)||i.call(e,r,t),(h=p,new Promise((e=>{setTimeout(e,h)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:i,cancel:t=>{var n;o||(c(new Sr(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),i),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),i)}}var Tr=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=e=>setTimeout(e,0);const i=r=>{t?e.push(r):o((()=>{n(r)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Rr=(c=class{constructor(){Le(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nr(this.gcTime)&&De(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(er?1/0:3e5))}clearGcTimeout(){Pe(this,l)&&(clearTimeout(Pe(this,l)),De(this,l,void 0))}},l=new WeakMap,c),Fr=(b=class extends Rr{constructor(e){super(),Le(this,m),Le(this,u),Le(this,d),Le(this,p),Le(this,f),Le(this,h),Le(this,g),De(this,g,!1),De(this,h,e.defaultOptions),this.setOptions(e.options),this.observers=[],De(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,De(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??Pe(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=Pe(this,f))?void 0:e.promise}setOptions(e){this.options={...Pe(this,h),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Pe(this,p).remove(this)}setData(e,t){const n=mr(this.state.data,e,this.options);return Ie(this,m,y).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){Ie(this,m,y).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=Pe(this,f))?void 0:t.promise;return null==(n=Pe(this,f))||n.cancel(e),r?r.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Pe(this,u))}isActive(){return this.observers.some((e=>!1!==ir(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!rr(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Pe(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Pe(this,f)&&(Pe(this,g)?Pe(this,f).cancel({revert:!0}):Pe(this,f).cancelRetry()),this.scheduleGc()),Pe(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,m,y).call(this,{type:"invalidate"})}fetch(e,t){var n,r,o;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Pe(this,f))return Pe(this,f).continueRetry(),Pe(this,f).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(De(this,g,!0),i.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=wr(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),De(this,g,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),De(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||Ie(this,m,y).call(this,{type:"fetch",meta:null==(o=s.fetchOptions)?void 0:o.meta});const l=e=>{var t,n,r,o;Ar(e)&&e.silent||Ie(this,m,y).call(this,{type:"error",error:e}),Ar(e)||(null==(n=(t=Pe(this,p).config).onError)||n.call(t,e,this),null==(o=(r=Pe(this,p).config).onSettled)||o.call(r,this.state.data,e,this)),this.scheduleGc()};return De(this,f,Or({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;if(void 0!==e){try{this.setData(e)}catch(i){return void l(i)}null==(n=(t=Pe(this,p).config).onSuccess)||n.call(t,e,this),null==(o=(r=Pe(this,p).config).onSettled)||o.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{Ie(this,m,y).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Ie(this,m,y).call(this,{type:"pause"})},onContinue:()=>{Ie(this,m,y).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Pe(this,f).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,g=new WeakMap,m=new WeakSet,y=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Nr(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Ar(n)&&n.revert&&Pe(this,d)?{...Pe(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Tr.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Pe(this,p).notify({query:this,type:"updated",action:e})}))},b);function Nr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Er(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Pr=(w=class extends Jn{constructor(e={}){super(),Le(this,v),this.config=e,De(this,v,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??lr(r,t);let i=this.get(o);return i||(i=new Fr({cache:this,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){Pe(this,v).has(e.queryHash)||(Pe(this,v).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Pe(this,v).get(e.queryHash);t&&(e.destroy(),t===e&&Pe(this,v).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return Pe(this,v).get(e)}getAll(){return[...Pe(this,v).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>ar(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>ar(e,t))):t}notify(e){Tr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Tr.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Tr.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},v=new WeakMap,w),Lr=(S=class extends Rr{constructor(e){super(),Le(this,C),Le(this,x),Le(this,k),Le(this,_),this.mutationId=e.mutationId,De(this,k,e.mutationCache),De(this,x,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Pe(this,x).includes(e)||(Pe(this,x).push(e),this.clearGcTimeout(),Pe(this,k).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){De(this,x,Pe(this,x).filter((t=>t!==e))),this.scheduleGc(),Pe(this,k).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Pe(this,x).length||("pending"===this.state.status?this.scheduleGc():Pe(this,k).remove(this))}continue(){var e;return(null==(e=Pe(this,_))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,y,b,v,w;De(this,_,Or({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Ie(this,C,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Ie(this,C,E).call(this,{type:"pause"})},onContinue:()=>{Ie(this,C,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Pe(this,k).canRun(this)}));const x="pending"===this.state.status,S=!Pe(this,_).canStart();try{if(!x){Ie(this,C,E).call(this,{type:"pending",variables:e,isPaused:S}),await(null==(n=(t=Pe(this,k).config).onMutate)?void 0:n.call(t,e,this));const i=await(null==(o=(r=this.options).onMutate)?void 0:o.call(r,e));i!==this.state.context&&Ie(this,C,E).call(this,{type:"pending",context:i,variables:e,isPaused:S})}const f=await Pe(this,_).start();return await(null==(a=(i=Pe(this,k).config).onSuccess)?void 0:a.call(i,f,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,f,e,this.state.context)),await(null==(u=(c=Pe(this,k).config).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,f,null,e,this.state.context)),Ie(this,C,E).call(this,{type:"success",data:f}),f}catch(A){try{throw await(null==(h=(f=Pe(this,k).config).onError)?void 0:h.call(f,A,e,this.state.context,this)),await(null==(m=(g=this.options).onError)?void 0:m.call(g,A,e,this.state.context)),await(null==(b=(y=Pe(this,k).config).onSettled)?void 0:b.call(y,void 0,A,this.state.variables,this.state.context,this)),await(null==(w=(v=this.options).onSettled)?void 0:w.call(v,void 0,A,e,this.state.context)),A}finally{Ie(this,C,E).call(this,{type:"error",error:A})}}finally{Pe(this,k).runNext(this)}}},x=new WeakMap,k=new WeakMap,_=new WeakMap,C=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Tr.batch((()=>{Pe(this,x).forEach((t=>{t.onMutationUpdate(e)})),Pe(this,k).notify({mutation:this,type:"updated",action:e})}))},S),Dr=(T=class extends Jn{constructor(e={}){super(),Le(this,A),Le(this,O),this.config=e,De(this,A,new Map),De(this,O,Date.now())}build(e,t,n){const r=new Lr({mutationCache:this,mutationId:++ze(this,O)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Ir(e),n=Pe(this,A).get(t)??[];n.push(e),Pe(this,A).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Ir(e);if(Pe(this,A).has(n)){const r=null==(t=Pe(this,A).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?Pe(this,A).delete(n):Pe(this,A).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=Pe(this,A).get(Ir(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=Pe(this,A).get(Ir(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Tr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...Pe(this,A).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>sr(t,e)))}findAll(e={}){return this.getAll().filter((t=>sr(e,t)))}notify(e){Tr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Tr.batch((()=>Promise.all(e.map((e=>e.continue().catch(tr))))))}},A=new WeakMap,O=new WeakMap,T);function Ir(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function zr(e){return{onFetch:(t,n)=>{var r,o,i,a,s;const l=t.options,c=null==(i=null==(o=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:o.fetchMore)?void 0:i.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},f=0;const h=async()=>{let n=!1;const r=wr(t.options,t.fetchOptions),o=async(e,o,i)=>{if(n)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:o,direction:i?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(a),{maxPages:c}=t.options,u=i?br:yr;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,o,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?Mr:jr)(l,t);p=await o(t,n,e)}else{const t=e??u.length;do{const e=0===f?d[0]??l.initialPageParam:jr(l,p);if(f>0&&null==e)break;p=await o(p,e),f++}while(f<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function jr(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Mr(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var Br=(j=class{constructor(e={}){Le(this,R),Le(this,F),Le(this,N),Le(this,P),Le(this,L),Le(this,D),Le(this,I),Le(this,z),De(this,R,e.queryCache||new Pr),De(this,F,e.mutationCache||new Dr),De(this,N,e.defaultOptions||{}),De(this,P,new Map),De(this,L,new Map),De(this,D,0)}mount(){ze(this,D)._++,1===Pe(this,D)&&(De(this,I,xr.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onFocus())}))),De(this,z,kr.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onOnline())}))))}unmount(){var e,t;ze(this,D)._--,0===Pe(this,D)&&(null==(e=Pe(this,I))||e.call(this),De(this,I,void 0),null==(t=Pe(this,z))||t.call(this),De(this,z,void 0))}isFetching(e){return Pe(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Pe(this,F).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Pe(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(or(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Pe(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Pe(this,R).get(r.queryHash),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0!==i)return Pe(this,R).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Tr.batch((()=>Pe(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=Pe(this,R);Tr.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=Pe(this,R),r={type:"active",...e};return Tr.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Tr.batch((()=>Pe(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(tr).catch(tr)}invalidateQueries(e={},t={}){return Tr.batch((()=>{if(Pe(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=Tr.batch((()=>Pe(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(tr)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Pe(this,R).build(this,t);return n.isStaleByTime(or(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}fetchInfiniteQuery(e){return e.behavior=zr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e.behavior=zr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kr.isOnline()?Pe(this,F).resumePausedMutations():Promise.resolve()}getQueryCache(){return Pe(this,R)}getMutationCache(){return Pe(this,F)}getDefaultOptions(){return Pe(this,N)}setDefaultOptions(e){De(this,N,e)}setQueryDefaults(e,t){Pe(this,P).set(cr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Pe(this,P).values()];let n={};return t.forEach((t=>{ur(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){Pe(this,L).set(cr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Pe(this,L).values()];let n={};return t.forEach((t=>{ur(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Pe(this,N).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===vr&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...Pe(this,N).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Pe(this,R).clear(),Pe(this,F).clear()}},R=new WeakMap,F=new WeakMap,N=new WeakMap,P=new WeakMap,L=new WeakMap,D=new WeakMap,I=new WeakMap,z=new WeakMap,j),Ur=(ue=class extends Jn{constructor(e,t){super(),Le(this,ee),Le(this,M),Le(this,B),Le(this,U),Le(this,q),Le(this,H),Le(this,$),Le(this,W),Le(this,Z),Le(this,V),Le(this,K),Le(this,G),Le(this,Q),Le(this,X),Le(this,Y),Le(this,J,new Set),this.options=t,De(this,M,e),De(this,Z,null),De(this,W,_r()),this.options.experimental_prefetchInRender||Pe(this,W).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Pe(this,B).addObserver(this),qr(Pe(this,B),this.options)?Ie(this,ee,te).call(this):this.updateResult(),Ie(this,ee,ie).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hr(Pe(this,B),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hr(Pe(this,B),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,ee,ae).call(this),Ie(this,ee,se).call(this),Pe(this,B).removeObserver(this)}setOptions(e,t){const n=this.options,r=Pe(this,B);if(this.options=Pe(this,M).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ir(this.options.enabled,Pe(this,B)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,ee,le).call(this),Pe(this,B).setOptions(this.options),n._defaulted&&!pr(this.options,n)&&Pe(this,M).getQueryCache().notify({type:"observerOptionsUpdated",query:Pe(this,B),observer:this});const o=this.hasListeners();o&&$r(Pe(this,B),r,this.options,n)&&Ie(this,ee,te).call(this),this.updateResult(t),!o||Pe(this,B)===r&&ir(this.options.enabled,Pe(this,B))===ir(n.enabled,Pe(this,B))&&or(this.options.staleTime,Pe(this,B))===or(n.staleTime,Pe(this,B))||Ie(this,ee,ne).call(this);const i=Ie(this,ee,re).call(this);!o||Pe(this,B)===r&&ir(this.options.enabled,Pe(this,B))===ir(n.enabled,Pe(this,B))&&i===Pe(this,Y)||Ie(this,ee,oe).call(this,i)}getOptimisticResult(e){const t=Pe(this,M).getQueryCache().build(Pe(this,M),e),n=this.createResult(t,e);return r=n,!pr(this.getCurrentResult(),r)&&(De(this,q,n),De(this,$,this.options),De(this,H,Pe(this,B).state)),n;var r}getCurrentResult(){return Pe(this,q)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){Pe(this,J).add(e)}getCurrentQuery(){return Pe(this,B)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Pe(this,M).defaultQueryOptions(e),n=Pe(this,M).getQueryCache().build(Pe(this,M),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return Ie(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),Pe(this,q))))}createResult(e,t){var n;const r=Pe(this,B),o=this.options,i=Pe(this,q),a=Pe(this,H),s=Pe(this,$),l=e!==r?e.state:Pe(this,U),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const n=this.hasListeners(),i=!n&&qr(e,t),a=n&&$r(e,r,t,o);(i||a)&&(d={...d,...Nr(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:g}=d;if(t.select&&void 0!==d.data)if(i&&d.data===(null==a?void 0:a.data)&&t.select===Pe(this,V))u=Pe(this,K);else try{De(this,V,t.select),u=t.select(d.data),u=mr(null==i?void 0:i.data,u,t),De(this,K,u),De(this,Z,null)}catch(k){De(this,Z,k)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===g){let e;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=Pe(this,G))?void 0:n.state.data,Pe(this,G)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),De(this,Z,null)}catch(k){De(this,Z,k)}void 0!==e&&(g="success",u=mr(null==i?void 0:i.data,e,t),p=!0)}Pe(this,Z)&&(f=Pe(this,Z),u=Pe(this,K),h=Date.now(),g="error");const m="fetching"===d.fetchStatus,y="pending"===g,b="error"===g,v=y&&m,w=void 0!==u,x={status:g,fetchStatus:d.fetchStatus,isPending:y,isSuccess:"success"===g,isError:b,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:b&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:b&&w,isStale:Wr(e,t),refetch:this.refetch,promise:Pe(this,W)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===x.status?e.reject(x.error):void 0!==x.data&&e.resolve(x.data)},n=()=>{const e=De(this,W,x.promise=_r());t(e)},o=Pe(this,W);switch(o.status){case"pending":e.queryHash===r.queryHash&&t(o);break;case"fulfilled":"error"!==x.status&&x.data===o.value||n();break;case"rejected":"error"===x.status&&x.error===o.reason||n()}}return x}updateResult(e){const t=Pe(this,q),n=this.createResult(Pe(this,B),this.options);if(De(this,H,Pe(this,B).state),De(this,$,this.options),void 0!==Pe(this,H).data&&De(this,G,Pe(this,B)),pr(n,t))return;De(this,q,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!Pe(this,J).size)return!0;const r=new Set(n??Pe(this,J));return this.options.throwOnError&&r.add("error"),Object.keys(Pe(this,q)).some((e=>{const n=e;return Pe(this,q)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),Ie(this,ee,ce).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,ee,ie).call(this)}},M=new WeakMap,B=new WeakMap,U=new WeakMap,q=new WeakMap,H=new WeakMap,$=new WeakMap,W=new WeakMap,Z=new WeakMap,V=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap,X=new WeakMap,Y=new WeakMap,J=new WeakMap,ee=new WeakSet,te=function(e){Ie(this,ee,le).call(this);let t=Pe(this,B).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(tr)),t},ne=function(){Ie(this,ee,ae).call(this);const e=or(this.options.staleTime,Pe(this,B));if(er||Pe(this,q).isStale||!nr(e))return;const t=rr(Pe(this,q).dataUpdatedAt,e);De(this,Q,setTimeout((()=>{Pe(this,q).isStale||this.updateResult()}),t+1))},re=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Pe(this,B)):this.options.refetchInterval)??!1},oe=function(e){Ie(this,ee,se).call(this),De(this,Y,e),!er&&!1!==ir(this.options.enabled,Pe(this,B))&&nr(Pe(this,Y))&&0!==Pe(this,Y)&&De(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||xr.isFocused())&&Ie(this,ee,te).call(this)}),Pe(this,Y)))},ie=function(){Ie(this,ee,ne).call(this),Ie(this,ee,oe).call(this,Ie(this,ee,re).call(this))},ae=function(){Pe(this,Q)&&(clearTimeout(Pe(this,Q)),De(this,Q,void 0))},se=function(){Pe(this,X)&&(clearInterval(Pe(this,X)),De(this,X,void 0))},le=function(){const e=Pe(this,M).getQueryCache().build(Pe(this,M),this.options);if(e===Pe(this,B))return;const t=Pe(this,B);De(this,B,e),De(this,U,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Tr.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(Pe(this,q))})),Pe(this,M).getQueryCache().notify({query:Pe(this,B),type:"observerResultsUpdated"})}))},ue);function qr(e,t){return function(e,t){return!1!==ir(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Hr(e,t,t.refetchOnMount)}function Hr(e,t,n){if(!1!==ir(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Wr(e,t)}return!1}function $r(e,t,n,r){return(e!==t||!1===ir(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Wr(e,n)}function Wr(e,t){return!1!==ir(t.enabled,e)&&e.isStaleByTime(or(t.staleTime,e))}var Zr=(be=class extends Jn{constructor(e,t){super(),Le(this,ge),Le(this,de),Le(this,pe),Le(this,fe),Le(this,he),De(this,de,e),this.setOptions(t),this.bindMethods(),Ie(this,ge,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=Pe(this,de).defaultMutationOptions(e),pr(this.options,n)||Pe(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pe(this,fe),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&cr(n.mutationKey)!==cr(this.options.mutationKey)?this.reset():"pending"===(null==(t=Pe(this,fe))?void 0:t.state.status)&&Pe(this,fe).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=Pe(this,fe))||e.removeObserver(this)}onMutationUpdate(e){Ie(this,ge,me).call(this),Ie(this,ge,ye).call(this,e)}getCurrentResult(){return Pe(this,pe)}reset(){var e;null==(e=Pe(this,fe))||e.removeObserver(this),De(this,fe,void 0),Ie(this,ge,me).call(this),Ie(this,ge,ye).call(this)}mutate(e,t){var n;return De(this,he,t),null==(n=Pe(this,fe))||n.removeObserver(this),De(this,fe,Pe(this,de).getMutationCache().build(Pe(this,de),this.options)),Pe(this,fe).addObserver(this),Pe(this,fe).execute(e)}},de=new WeakMap,pe=new WeakMap,fe=new WeakMap,he=new WeakMap,ge=new WeakSet,me=function(){var e;const t=(null==(e=Pe(this,fe))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};De(this,pe,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ye=function(e){Tr.batch((()=>{var t,n,r,o,i,a,s,l;if(Pe(this,he)&&this.hasListeners()){const c=Pe(this,pe).variables,u=Pe(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=Pe(this,he)).onSuccess)||n.call(t,e.data,c,u),null==(o=(r=Pe(this,he)).onSettled)||o.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(i=Pe(this,he)).onError)||a.call(i,e.error,c,u),null==(l=(s=Pe(this,he)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(Pe(this,pe))}))}))},be),Vr=ht(void 0),Kr=e=>{const t=zt(Vr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gr=({client:e,children:t})=>(Ft((()=>(e.mount(),()=>{e.unmount()})),[e]),Yn(Vr.Provider,{value:e,children:t})),Qr=ht(!1);Qr.Provider;var Xr=ht(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Yr(e,t){return"function"==typeof e?e(...t):!!e}function Jr(){}var eo=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function to(e,t){return function(e,t){var n,r,o,i,a;const s=Kr(),l=zt(Qr),c=zt(Xr),u=s.defaultQueryOptions(e);null==(r=null==(n=s.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,u),u._optimisticResults=l?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(u),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(u,c),(e=>{Ft((()=>{e.clearReset()}),[e])})(c);const d=!s.getQueryCache().get(u.queryHash),[p]=Tt((()=>new t(s,u))),f=p.getOptimisticResult(u);if(Kt(It((e=>{const t=l?Jr:p.subscribe(Tr.batchCalls(e));return p.updateResult(),t}),[p,l]),(()=>p.getCurrentResult())),Ft((()=>{p.setOptions(u,{listeners:!1})}),[u,p]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(u,f))throw eo(u,p,c);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Yr(n,[e.error,r]))({result:f,errorResetBoundary:c,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash)}))throw f.error;if(null==(i=null==(o=s.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||i.call(o,u,f),u.experimental_prefetchInRender&&!er&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,l)){const e=d?eo(u,p,c):null==(a=s.getQueryCache().get(u.queryHash))?void 0:a.promise;null==e||e.catch(Jr).finally((()=>{p.updateResult()}))}return u.notifyOnChangeProps?f:p.trackResult(f)}(e,Ur)}function no(e,t){const n=Kr(),[r]=Tt((()=>new Zr(n,e)));Ft((()=>{r.setOptions(e)}),[r,e]);const o=Kt(It((e=>r.subscribe(Tr.batchCalls(e))),[r]),(()=>r.getCurrentResult())),i=It(((e,t)=>{r.mutate(e,t).catch(Jr)}),[r]);if(o.error&&Yr(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const ro=ht({apiKey:null}),oo=()=>zt(ro),io=({children:e,apiKey:t})=>Yn(ro.Provider,{value:{apiKey:t},children:e}),ao=Gn.lazy((()=>Promise.resolve().then((()=>Hk))));"undefined"!=typeof window&&(window.React=Gn);class so extends HTMLElement{constructor(){super(),this.root=null,this.container=null;const e=this.attachShadow({mode:"closed"});this.root=e,this.render()}static get observedAttributes(){return["logo-url","assistant-title","assistant-description","header-color","assistant-avatar-url","api-key","assistant-id"]}render(){if(!this.root)return;for(this.root.innerHTML="";this.firstChild;)this.removeChild(this.firstChild);const e=document.createElement("div");e.id="agility-assistant-root",this.container=e;const t=document.createElement("style");t.textContent=":host{all:revert;display:block;contain:style}:host>#agility-assistant-root{all:initial;display:block;position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;font-family:Geist,sans-serif;z-index:2147483647!important}:host>#agility-assistant-root>*{pointer-events:auto;font-family:inherit}:host *:not(:where(svg,path))::-moz-selection{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path))::-moz-placeholder{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path)):-moz-placeholder-shown{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path)):-webkit-autofill{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path)):-moz-read-only{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path)):-moz-read-write{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}:host *:not(:where(svg,path)),:host *:not(:where(svg,path)):before,:host *:not(:where(svg,path)):after,:host *:not(:where(svg,path)):hover,:host *:not(:where(svg,path)):active,:host *:not(:where(svg,path)):focus,:host *:not(:where(svg,path)):focus-visible,:host *:not(:where(svg,path)):focus-within,:host *:not(:where(svg,path)):visited,:host *:not(:where(svg,path)):disabled,:host *:not(:where(svg,path)):enabled,:host *:not(:where(svg,path))::placeholder,:host *:not(:where(svg,path))::selection,:host *:not(:where(svg,path)):first-child,:host *:not(:where(svg,path)):last-child,:host *:not(:where(svg,path)):nth-child(n),:host *:not(:where(svg,path)):nth-last-child(n),:host *:not(:where(svg,path)):only-child,:host *:not(:where(svg,path)):first-of-type,:host *:not(:where(svg,path)):last-of-type,:host *:not(:where(svg,path)):only-of-type,:host *:not(:where(svg,path)):empty,:host *:not(:where(svg,path)):target,:host *:not(:where(svg,path)):checked,:host *:not(:where(svg,path)):indeterminate,:host *:not(:where(svg,path)):default,:host *:not(:where(svg,path)):valid,:host *:not(:where(svg,path)):invalid,:host *:not(:where(svg,path)):in-range,:host *:not(:where(svg,path)):out-of-range,:host *:not(:where(svg,path)):required,:host *:not(:where(svg,path)):optional,:host *:not(:where(svg,path)):read-only,:host *:not(:where(svg,path)):read-write,:host *:not(:where(svg,path)):scope,:host *:not(:where(svg,path)):placeholder-shown,:host *:not(:where(svg,path))::backdrop,:host *:not(:where(svg,path))::marker,:host *:not(:where(svg,path))::file-selector-button,:host *:not(:where(svg,path)):fullscreen,:host *:not(:where(svg,path)):modal,:host *:not(:where(svg,path)):picture-in-picture,:host *:not(:where(svg,path)):autofill{margin:0;box-sizing:border-box;vertical-align:baseline;font-family:inherit}";const n=document.createElement("style");n.textContent='*,: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: }*,: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:var(--cl-font-family-body);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:var(--cl-font-family-code);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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.type-display-50{font-family:var(--cl-font-family-display);letter-spacing:0px;font-weight:600;text-transform:none;font-size:20px;line-height:24px}.type-body-100{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.type-body-200{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:16px;line-height:24px}.type-button-lg{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:16px;line-height:24px}.type-button-md,.type-button-sm{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:14px;line-height:20px}.type-button-xs{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:12px;line-height:18px}.type-badge-sm{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:11px;line-height:20px}.type-code-100{font-family:var(--cl-font-family-code);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.type-caption{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:400;text-transform:none}.type-caption-medium{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:500;text-transform:none}.type-caption-semibold{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:600;text-transform:none}.type-kbd{font-family:var(--cl-font-family-code);font-size:12px;line-height:12px;letter-spacing:0px;font-weight:400;text-transform:none}.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}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-5{bottom:12px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-5{right:12px}.right-6{right:16px}.top-0{top:0}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-\\[999\\]{z-index:999}.m-0{margin:0}.-mx-\\[100px\\]{margin-left:-100px;margin-right:-100px}.-my-\\[10px\\]{margin-top:-10px;margin-bottom:-10px}.mx-1{margin-left:2px;margin-right:2px}.mx-6{margin-left:16px;margin-right:16px}.my-4{margin-top:8px;margin-bottom:8px}.-me-1{margin-inline-end:-2px}.-ms-1{margin-inline-start:-2px}.mb-2{margin-bottom:4px}.mb-3{margin-bottom:6px}.mb-5{margin-bottom:12px}.ml-4{margin-left:8px}.mt-1{margin-top:2px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\\!hidden{display:none!important}.hidden{display:none}.size-2{width:4px;height:4px}.size-4{width:8px;height:8px}.size-5{width:12px;height:12px}.size-6{width:16px;height:16px}.size-\\[20px\\]{width:20px;height:20px}.size-\\[24px\\]{width:24px;height:24px}.size-\\[32px\\]{width:32px;height:32px}.size-\\[36px\\]{width:36px;height:36px}.size-\\[40px\\]{width:40px;height:40px}.size-\\[48px\\]{width:48px;height:48px}.h-4{height:8px}.h-9,.h-\\[32px\\]{height:32px}.h-\\[50px\\]{height:50px}.h-\\[64px\\]{height:64px}.h-\\[65vh\\]{height:65vh}.h-\\[85vh\\]{height:85vh}.h-full{height:100%}.h-min{height:-moz-min-content;height:min-content}.max-h-\\[142px\\]{max-height:142px}.min-h-10{min-height:40px}.min-h-8{min-height:24px}.min-h-9{min-height:32px}.min-h-\\[20px\\]{min-height:20px}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[36px\\]{min-height:36px}.min-h-\\[40px\\]{min-height:40px}.w-9{width:32px}.w-\\[30vw\\]{width:30vw}.w-\\[50px\\]{width:50px}.w-\\[50vw\\]{width:50vw}.w-auto{width:auto}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.min-w-\\[320px\\]{min-width:320px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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 bounce-higher{0%,to{transform:translateY(-75%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce-higher{animation:bounce-higher 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:4px}.gap-3{gap:6px}.gap-4{gap:8px}.gap-5{gap:12px}.gap-6{gap:16px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-1{border-radius:4px}.rounded-2{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-s-4{border-start-start-radius:16px;border-end-start-radius:16px}.rounded-tr-4{border-top-right-radius:16px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-border-0{--tw-border-opacity: 1;border-color:hsl(var(--twc-border-0) / var(--twc-border-0-opacity, var(--tw-border-opacity)))}.border-border-1{--tw-border-opacity: 1;border-color:hsl(var(--twc-border-1) / var(--twc-border-1-opacity, var(--tw-border-opacity)))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-green-500) / var(--twc-green-500-opacity, var(--tw-border-opacity)))}.border-red-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-border-opacity)))}.border-yellow-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-yellow-500) / var(--twc-yellow-500-opacity, var(--tw-border-opacity)))}.bg-blue-600{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, var(--tw-bg-opacity)))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-300) / var(--twc-neutral-300-opacity, var(--tw-bg-opacity)))}.bg-red-50{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-bg-opacity)))}.bg-surface-0{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0) / var(--twc-surface-0-opacity, var(--tw-bg-opacity)))}.bg-surface-0-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.bg-surface-1{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1) / var(--twc-surface-1-opacity, var(--tw-bg-opacity)))}.bg-surface-2{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2) / var(--twc-surface-2-opacity, var(--tw-bg-opacity)))}.bg-surface-disabled{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-disabled) / var(--twc-surface-disabled-opacity, var(--tw-bg-opacity)))}.bg-surface-high-contrast{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-high-contrast) / var(--twc-surface-high-contrast-opacity, var(--tw-bg-opacity)))}.bg-text-primary{--tw-bg-opacity: 1;background-color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-bg-opacity)))}.bg-transparent{background-color:transparent}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-surface-0{--tw-gradient-from: hsl(var(--twc-surface-0) / var(--twc-surface-0-opacity, 1)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--twc-surface-0) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.fill-neutral-300{fill:hsl(var(--twc-neutral-300) / var(--twc-neutral-300-opacity, 1))}.fill-neutral-400{fill:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.stroke-zinc-400{stroke:#a1a1aa}.p-1{padding:2px}.p-4{padding:8px}.p-5{padding:12px}.p-6{padding:16px}.px-1{padding-left:2px;padding-right:2px}.px-2{padding-left:4px;padding-right:4px}.px-3{padding-left:6px;padding-right:6px}.px-4{padding-left:8px;padding-right:8px}.px-5{padding-left:12px;padding-right:12px}.px-6{padding-left:16px;padding-right:16px}.px-7{padding-left:20px;padding-right:20px}.px-8{padding-left:24px;padding-right:24px}.px-\\[100px\\]{padding-left:100px;padding-right:100px}.py-2{padding-top:4px;padding-bottom:4px}.py-3{padding-top:6px;padding-bottom:6px}.py-4{padding-top:8px;padding-bottom:8px}.py-5{padding-top:12px;padding-bottom:12px}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-5{padding-bottom:12px}.pe-2{padding-inline-end:4px}.pe-3{padding-inline-end:6px}.pe-4{padding-inline-end:8px}.pl-5{padding-left:12px}.pl-6{padding-left:16px}.pl-7{padding-left:20px}.pr-11{padding-right:48px}.ps-2{padding-inline-start:4px}.ps-3{padding-inline-start:6px}.ps-4{padding-inline-start:8px}.pt-12{padding-top:64px}.pt-4{padding-top:8px}.pt-6{padding-top:16px}.text-center{text-align:center}.text-start{text-align:start}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-blue-600{--tw-text-opacity: 1;color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, var(--tw-text-opacity)))}.text-green-500{--tw-text-opacity: 1;color:hsl(var(--twc-green-500) / var(--twc-green-500-opacity, var(--tw-text-opacity)))}.text-red-500{--tw-text-opacity: 1;color:hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-text-opacity)))}.text-red-700{--tw-text-opacity: 1;color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, var(--tw-text-opacity)))}.text-text-disabled{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.text-text-faint{--tw-text-opacity: 1;color:hsl(var(--twc-text-faint) / var(--twc-text-faint-opacity, var(--tw-text-opacity)))}.text-text-high-contrast{--tw-text-opacity: 1;color:hsl(var(--twc-text-high-contrast) / var(--twc-text-high-contrast-opacity, var(--tw-text-opacity)))}.text-text-primary{--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.text-text-strong{--tw-text-opacity: 1;color:hsl(var(--twc-text-strong) / var(--twc-text-strong-opacity, var(--tw-text-opacity)))}.text-yellow-500{--tw-text-opacity: 1;color:hsl(var(--twc-yellow-500) / var(--twc-yellow-500-opacity, var(--tw-text-opacity)))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.shadow-elev-0{--tw-shadow: var(--cl-shadow-elev-0);--tw-shadow-colored: var(--cl-shadow-elev-0);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: var(--cl-shadow-inner);--tw-shadow-colored: var(--cl-shadow-inner);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}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-blue-200{outline-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, 1))}.outline-blue-700{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.outline-border-0{outline-color:hsl(var(--twc-border-0) / var(--twc-border-0-opacity, 1))}.outline-border-1{outline-color:hsl(var(--twc-border-1) / var(--twc-border-1-opacity, 1))}.outline-border-2{outline-color:hsl(var(--twc-border-2) / var(--twc-border-2-opacity, 1))}.outline-neutral-400{outline-color:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.outline-red-600{outline-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, 1))}.outline-surface-high-contrast{outline-color:hsl(var(--twc-surface-high-contrast) / var(--twc-surface-high-contrast-opacity, 1))}.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-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-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.light,[data-theme=light]{--twc-black: 210 20% 3.9%;--twc-white: 0 0% 100%;--twc-neutral-0: 0 0% 100%;--twc-neutral-50: 210 20% 98%;--twc-neutral-100: 216 16.1% 93.9%;--twc-neutral-200: 216 17.9% 89%;--twc-neutral-300: 216 18.5% 84.1%;--twc-neutral-400: 220 14.8% 76.1%;--twc-neutral-500: 217.10000000000002 10.6% 61%;--twc-neutral-600: 217.79999999999995 10.8% 48.8%;--twc-neutral-700: 218.20000000000005 10.8% 40%;--twc-neutral-800: 216.70000000000005 14.8% 23.9%;--twc-neutral-900: 210 20% 3.9%;--twc-pink-50: 306.70000000000005 60% 97.1%;--twc-pink-100: 312.6 70.4% 94.7%;--twc-pink-200: 314.29999999999995 80.8% 89.8%;--twc-pink-300: 315.6 78.5% 81.8%;--twc-pink-400: 317.29999999999995 77.6% 70.2%;--twc-pink-500: 318.9 73.4% 60.2%;--twc-pink-600: 322 64.7% 54.5%;--twc-pink-700: 323.6 70.1% 42%;--twc-pink-800: 324.6 67.8% 35.3%;--twc-pink-900: 324.6 63.9% 23.9%;--twc-red-50: 0 85.7% 97.3%;--twc-red-100: 2.1000000000000227 93.5% 93.9%;--twc-red-200: 0 96.3% 89.4%;--twc-red-300: 0 95.7% 82%;--twc-red-400: 0 90.6% 70.8%;--twc-red-500: 0 84.2% 60.2%;--twc-red-600: .30000000000001137 72.3% 50.4%;--twc-red-700: .39999999999997726 74.5% 41.6%;--twc-red-800: 0 70% 35.3%;--twc-red-900: 359.29999999999995 65.4% 24.9%;--twc-orange-50: 26.69999999999999 100% 96.5%;--twc-orange-100: 25.69999999999999 100% 91.8%;--twc-orange-200: 25.30000000000001 97.6% 83.3%;--twc-orange-300: 25.399999999999977 97.2% 72.4%;--twc-orange-400: 25.100000000000023 96% 61%;--twc-orange-500: 25 95% 53.3%;--twc-orange-600: 25.100000000000023 88.7% 48.6%;--twc-orange-700: 24.899999999999977 87.4% 40.6%;--twc-orange-800: 25.100000000000023 79.1% 33.7%;--twc-orange-900: 25.30000000000001 74.8% 24.9%;--twc-yellow-50: 60 100% 95.9%;--twc-yellow-100: 57.89999999999998 96.6% 88.4%;--twc-yellow-200: 58 100% 76.1%;--twc-yellow-300: 55.80000000000001 100% 63.9%;--twc-yellow-400: 53 100% 54.9%;--twc-yellow-500: 46.19999999999999 100% 50.4%;--twc-yellow-600: 40.60000000000002 100% 44.3%;--twc-yellow-700: 34.60000000000002 96.8% 37.3%;--twc-yellow-800: 31.899999999999977 91.2% 31.2%;--twc-yellow-900: 30.30000000000001 82.1% 24.1%;--twc-lime-50: 75.69999999999999 92% 95.1%;--twc-lime-100: 77.60000000000002 92.7% 89.2%;--twc-lime-200: 77.5 92.3% 79.6%;--twc-lime-300: 79.5 88.1% 67.1%;--twc-lime-400: 80.19999999999999 81.4% 55.7%;--twc-lime-500: 80.89999999999998 85.5% 48.6%;--twc-lime-600: 82.19999999999999 88.7% 34.7%;--twc-lime-700: 83.39999999999998 81.3% 27.3%;--twc-lime-800: 83.89999999999998 70.9% 22.9%;--twc-lime-900: 85.10000000000002 63.2% 17.1%;--twc-green-50: 136 100% 97.1%;--twc-green-100: 138.8 72.7% 87.1%;--twc-green-200: 140.5 60.3% 75.3%;--twc-green-300: 143 54.9% 61.8%;--twc-green-400: 145 45.8% 50.8%;--twc-green-500: 148 48.4% 42.5%;--twc-green-600: 153.10000000000002 56.5% 33.3%;--twc-green-700: 151.89999999999998 45.1% 27.8%;--twc-green-800: 152.39999999999998 42.4% 23.1%;--twc-green-900: 151.8 41.5% 16.1%;--twc-teal-50: 171.39999999999998 77.8% 96.5%;--twc-teal-100: 172.70000000000005 89.1% 89.2%;--twc-teal-200: 172.60000000000002 87.4% 78.2%;--twc-teal-300: 174.39999999999998 81.4% 64.1%;--twc-teal-400: 176.89999999999998 69.4% 50%;--twc-teal-500: 177.89999999999998 85.2% 39.8%;--twc-teal-600: 179.60000000000002 86.4% 31.8%;--twc-teal-700: 179.39999999999998 82% 26.1%;--twc-teal-800: 180.70000000000005 74.5% 21.6%;--twc-teal-900: 180 66.2% 15.1%;--twc-cyan-50: 198.79999999999995 100% 96.9%;--twc-cyan-100: 200.60000000000002 100% 93.7%;--twc-cyan-200: 196.70000000000005 100% 85.9%;--twc-cyan-300: 195.10000000000002 100% 73.5%;--twc-cyan-400: 194.79999999999995 100% 57.8%;--twc-cyan-500: 194.89999999999998 95.1% 48.2%;--twc-cyan-600: 197.5 100% 40.4%;--twc-cyan-700: 198.20000000000005 97.6% 33.1%;--twc-cyan-800: 197.79999999999995 95.7% 27.6%;--twc-cyan-900: 198.39999999999998 86.3% 20%;--twc-blue-50: 206.29999999999995 100% 96.9%;--twc-blue-100: 205.70000000000005 94.6% 92.7%;--twc-blue-200: 208.60000000000002 96.9% 87.3%;--twc-blue-300: 211.39999999999998 96.4% 78.2%;--twc-blue-400: 213.10000000000002 93.9% 67.8%;--twc-blue-500: 217.39999999999998 91.2% 60%;--twc-blue-600: 221 83.3% 53.1%;--twc-blue-700: 224 77% 47.8%;--twc-blue-800: 225.79999999999995 71.4% 37.1%;--twc-blue-900: 224.5 63.4% 30%;--twc-purple-50: 246 83.3% 97.6%;--twc-purple-100: 243.5 73.9% 95.5%;--twc-purple-200: 243.5 81% 91.8%;--twc-purple-300: 247.10000000000002 76.6% 84.9%;--twc-purple-400: 248.5 76.7% 76.5%;--twc-purple-500: 252.20000000000005 74.4% 66.3%;--twc-purple-600: 256.1 69.4% 59%;--twc-purple-700: 257.29999999999995 57.5% 50.2%;--twc-purple-800: 257.70000000000005 57.7% 38%;--twc-purple-900: 257.5 56.3% 25.1%;--twc-text-strong: 210 20% 3.9%;--twc-text-primary: 216.70000000000005 14.8% 23.9%;--twc-text-faint: 218.20000000000005 10.8% 40%;--twc-text-disabled: 217.10000000000002 10.6% 61%;--twc-text-high-contrast: 0 0% 100%;--twc-surface-0: 0 0% 100%;--twc-surface-1: 210 20% 98%;--twc-surface-2: 216 16.1% 93.9%;--twc-surface-0-hover: 210 20% 98%;--twc-surface-0-active: 216 16.1% 93.9%;--twc-surface-1-hover: 216 16.1% 93.9%;--twc-surface-1-active: 216 17.9% 89%;--twc-surface-2-hover: 216 17.9% 89%;--twc-surface-2-active: 216 18.5% 84.1%;--twc-surface-disabled: 216 17.9% 89%;--twc-surface-high-contrast: 210 20% 3.9%;--twc-border-0: 216 16.1% 93.9%;--twc-border-1: 216 17.9% 89%;--twc-border-2: 216 18.5% 84.1%;--twc-focus: 217.39999999999998 91.2% 60%}.dark,[data-theme=dark]{--twc-neutral-0: 220 25.7% 6.9%;--twc-neutral-50: 221.5 21.3% 12%;--twc-neutral-100: 222.39999999999998 19.5% 17.1%;--twc-neutral-200: 219.10000000000002 18.1% 24.9%;--twc-neutral-300: 220 16.6% 32%;--twc-neutral-400: 220.70000000000005 13.7% 40%;--twc-neutral-500: 220 12% 49%;--twc-neutral-600: 219.10000000000002 12.2% 62.9%;--twc-neutral-700: 207.5 17.4% 72.9%;--twc-neutral-800: 207.29999999999995 16.4% 86.9%;--twc-neutral-900: 240 20% 99%;--twc-white: 0 0% 100%;--twc-black: 210 20% 3.9%;--twc-blue-50: 212.10000000000002 98.3% 23.1%;--twc-blue-100: 210.79999999999995 100% 30.2%;--twc-blue-200: 209.79999999999995 98% 39%;--twc-blue-300: 208.60000000000002 94.8% 45.1%;--twc-blue-400: 207.10000000000002 88.8% 48.8%;--twc-blue-500: 206.20000000000005 91% 60.6%;--twc-blue-600: 204 94.9% 69%;--twc-blue-700: 203.10000000000002 94.1% 80%;--twc-blue-800: 202.5 95.2% 91.8%;--twc-blue-900: 204 100% 97.1%;--twc-red-50: 359.29999999999995 65.4% 24.9%;--twc-red-100: 0 70% 35.3%;--twc-red-200: .39999999999997726 74.5% 41.6%;--twc-red-300: .30000000000001137 72.3% 50.4%;--twc-red-400: 0 84.2% 60.2%;--twc-red-500: 0 90.6% 70.8%;--twc-red-600: 0 95.7% 82%;--twc-red-700: 0 96.3% 89.4%;--twc-red-800: 2.1000000000000227 93.5% 93.9%;--twc-red-900: 0 85.7% 97.3%;--twc-orange-50: 25.30000000000001 74.8% 24.9%;--twc-orange-100: 25.100000000000023 79.1% 33.7%;--twc-orange-200: 24.899999999999977 87.4% 40.6%;--twc-orange-300: 25.100000000000023 88.7% 48.6%;--twc-orange-400: 25 95% 53.3%;--twc-orange-500: 25.100000000000023 96% 61%;--twc-orange-600: 25.399999999999977 97.2% 72.4%;--twc-orange-700: 25.30000000000001 97.6% 83.3%;--twc-orange-800: 25.69999999999999 100% 91.8%;--twc-orange-900: 26.69999999999999 100% 96.5%;--twc-yellow-50: 30.30000000000001 82.1% 24.1%;--twc-yellow-100: 31.899999999999977 91.2% 31.2%;--twc-yellow-200: 34.60000000000002 96.8% 37.3%;--twc-yellow-300: 40.60000000000002 100% 44.3%;--twc-yellow-400: 46.19999999999999 100% 50.4%;--twc-yellow-500: 53 100% 54.9%;--twc-yellow-600: 55.80000000000001 100% 63.9%;--twc-yellow-700: 58 100% 76.1%;--twc-yellow-800: 57.89999999999998 96.6% 88.4%;--twc-yellow-900: 60 100% 95.9%;--twc-green-50: 151.8 41.5% 16.1%;--twc-green-100: 152.39999999999998 42.4% 23.1%;--twc-green-200: 151.89999999999998 45.1% 27.8%;--twc-green-300: 153.10000000000002 56.5% 33.3%;--twc-green-400: 148 48.4% 42.5%;--twc-green-500: 145 45.8% 50.8%;--twc-green-600: 143 54.9% 61.8%;--twc-green-700: 140.5 60.3% 75.3%;--twc-green-800: 138.8 72.7% 87.1%;--twc-green-900: 136 100% 97.1%;--twc-teal-50: 180 66.2% 15.1%;--twc-teal-100: 180.70000000000005 74.5% 21.6%;--twc-teal-200: 179.39999999999998 82% 26.1%;--twc-teal-300: 179.60000000000002 86.4% 31.8%;--twc-teal-400: 177.89999999999998 85.2% 39.8%;--twc-teal-500: 176.89999999999998 69.4% 50%;--twc-teal-600: 174.39999999999998 81.4% 64.1%;--twc-teal-700: 172.60000000000002 87.4% 78.2%;--twc-teal-800: 172.70000000000005 89.1% 89.2%;--twc-teal-900: 171.39999999999998 77.8% 96.5%;--twc-cyan-50: 198.39999999999998 86.3% 20%;--twc-cyan-100: 197.79999999999995 95.7% 27.6%;--twc-cyan-200: 198.20000000000005 97.6% 33.1%;--twc-cyan-300: 197.5 100% 40.4%;--twc-cyan-400: 194.89999999999998 95.1% 48.2%;--twc-cyan-500: 194.79999999999995 100% 57.8%;--twc-cyan-600: 195.10000000000002 100% 73.5%;--twc-cyan-700: 196.70000000000005 100% 85.9%;--twc-cyan-800: 200.60000000000002 100% 93.7%;--twc-cyan-900: 198.79999999999995 100% 96.9%;--twc-purple-50: 257.5 56.3% 25.1%;--twc-purple-100: 257.70000000000005 57.7% 38%;--twc-purple-200: 257.29999999999995 57.5% 50.2%;--twc-purple-300: 256.1 69.4% 59%;--twc-purple-400: 252.20000000000005 74.4% 66.3%;--twc-purple-500: 248.5 76.7% 76.5%;--twc-purple-600: 247.10000000000002 76.6% 84.9%;--twc-purple-700: 243.5 81% 91.8%;--twc-purple-800: 243.5 73.9% 95.5%;--twc-purple-900: 246 83.3% 97.6%;--twc-pink-50: 324.6 63.9% 23.9%;--twc-pink-100: 324.6 67.8% 35.3%;--twc-pink-200: 323.6 70.1% 42%;--twc-pink-300: 322 64.7% 54.5%;--twc-pink-400: 318.9 73.4% 60.2%;--twc-pink-500: 317.29999999999995 77.6% 70.2%;--twc-pink-600: 315.6 78.5% 81.8%;--twc-pink-700: 314.29999999999995 80.8% 89.8%;--twc-pink-800: 312.6 70.4% 94.7%;--twc-pink-900: 306.70000000000005 60% 97.1%;--twc-lime-50: 85.10000000000002 63.2% 17.1%;--twc-lime-100: 83.89999999999998 70.9% 22.9%;--twc-lime-200: 83.39999999999998 81.3% 27.3%;--twc-lime-300: 82.19999999999999 88.7% 34.7%;--twc-lime-400: 80.89999999999998 85.5% 48.6%;--twc-lime-500: 80.19999999999999 81.4% 55.7%;--twc-lime-600: 79.5 88.1% 67.1%;--twc-lime-700: 77.5 92.3% 79.6%;--twc-lime-800: 77.60000000000002 92.7% 89.2%;--twc-lime-900: 75.69999999999999 92% 95.1%;--twc-text-strong: 240 20% 99%;--twc-text-primary: 207.29999999999995 16.4% 86.9%;--twc-text-faint: 207.5 17.4% 72.9%;--twc-text-disabled: 220 12% 49%;--twc-text-high-contrast: 220 25.7% 6.9%;--twc-surface-0: 220 25.7% 6.9%;--twc-surface-1: 221.5 21.3% 12%;--twc-surface-2: 222.39999999999998 19.5% 17.1%;--twc-surface-0-hover: 221.5 21.3% 12%;--twc-surface-0-active: 222.39999999999998 19.5% 17.1%;--twc-surface-1-hover: 222.39999999999998 19.5% 17.1%;--twc-surface-1-active: 219.10000000000002 18.1% 24.9%;--twc-surface-2-hover: 219.10000000000002 18.1% 24.9%;--twc-surface-2-active: 220 16.6% 32%;--twc-surface-disabled: 219.10000000000002 18.1% 24.9%;--twc-surface-high-contrast: 240 20% 99%;--twc-border-0: 222.39999999999998 19.5% 17.1%;--twc-border-1: 219.10000000000002 18.1% 24.9%;--twc-border-2: 220 16.6% 32%;--twc-focus: 206.20000000000005 91% 60.6%}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[counter-increment\\:list\\]{counter-increment:list}.\\[counter-reset\\:list\\]{counter-reset:list}:root:not(:host){font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}[data-theme=dark] ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}[data-theme=dark] ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host[data-theme=dark] ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host[data-theme=dark] ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.placeholder\\:type-body-100::-moz-placeholder{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.placeholder\\:type-body-100::placeholder{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.placeholder\\:text-text-disabled::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.placeholder\\:text-text-disabled::placeholder{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-0:before{content:var(--tw-content);top:0}.before\\:w-5:before{content:var(--tw-content);width:12px}.before\\:truncate:before{content:var(--tw-content);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.before\\:text-\\[1\\.5em\\]:before{content:var(--tw-content);font-size:1.5em}.before\\:text-text-strong:before{content:var(--tw-content);--tw-text-opacity: 1;color:hsl(var(--twc-text-strong) / var(--twc-text-strong-opacity, var(--tw-text-opacity)))}.before\\:content-\\[\\\'•\\\'\\]:before{--tw-content: "•";content:var(--tw-content)}.before\\:\\[content\\:counter\\(list\\)_\\"\\.\\"\\]:before{content:counter(list) "."}.first\\:mt-2:first-child{margin-top:4px}.last\\:mb-0:last-child{margin-bottom:0}.invalid\\:ring-red-100:invalid{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-ring-opacity)))}.focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\\:outline-blue-700:focus-within{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.focus-within\\:ring:focus-within{--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-within\\:ring-focus:focus-within{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-focus) / var(--twc-focus-opacity, var(--tw-ring-opacity)))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, var(--tw-bg-opacity)))}.hover\\:bg-green-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-50) / var(--twc-green-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-800) / var(--twc-neutral-800-opacity, var(--tw-bg-opacity)))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-0-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-1-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-hover) / var(--twc-surface-1-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-2-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-hover) / var(--twc-surface-2-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-yellow-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-50) / var(--twc-yellow-50-opacity, var(--tw-bg-opacity)))}.hover\\:text-red-50:hover{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.hover\\:text-text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.hover\\:outline-blue-800:hover{outline-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, 1))}.hover\\:outline-red-700:hover{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.focus\\:bg-green-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-100) / var(--twc-green-100-opacity, var(--tw-bg-opacity)))}.focus\\:bg-red-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-bg-opacity)))}.focus\\:bg-yellow-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-100) / var(--twc-yellow-100-opacity, var(--tw-bg-opacity)))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-1:focus-visible{outline-width:1px}.focus-visible\\:outline-offset-\\[-1px\\]:focus-visible{outline-offset:-1px}.focus-visible\\:outline-blue-50:focus-visible{outline-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, 1))}.focus-visible\\:outline-blue-600:focus-visible{outline-color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, 1))}.focus-visible\\:outline-blue-700:focus-visible{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.focus-visible\\:outline-red-700:focus-visible{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.focus-visible\\:ring:focus-visible{--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-visible\\:ring-0:focus-visible{--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(0 + 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-visible\\:ring-1:focus-visible{--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(1px + 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-visible\\:ring-focus:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-focus) / var(--twc-focus-opacity, var(--tw-ring-opacity)))}.focus-visible\\:ring-slate-700:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(51 65 85 / var(--tw-ring-opacity))}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.active\\:bg-blue-200:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)))}.active\\:bg-blue-800:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)))}.active\\:bg-green-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-100) / var(--twc-green-100-opacity, var(--tw-bg-opacity)))}.active\\:bg-neutral-700:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-700) / var(--twc-neutral-700-opacity, var(--tw-bg-opacity)))}.active\\:bg-red-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-bg-opacity)))}.active\\:bg-red-600:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-0-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-active) / var(--twc-surface-0-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-1-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-active) / var(--twc-surface-1-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-2-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-active) / var(--twc-surface-2-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-yellow-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-100) / var(--twc-yellow-100-opacity, var(--tw-bg-opacity)))}.active\\:text-red-50:active{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-disabled:disabled{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-disabled) / var(--twc-surface-disabled-opacity, var(--tw-bg-opacity)))}.disabled\\:text-text-disabled:disabled{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.disabled\\:outline-border-2:disabled{outline-color:hsl(var(--twc-border-2) / var(--twc-border-2-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:bg-blue-50{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-blue-700{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-red-600{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-0-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-1-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-hover) / var(--twc-surface-1-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-2-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-hover) / var(--twc-surface-2-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:text-red-50{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.group\\/button:hover .group-hover\\/button\\:outline-blue-800{outline-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:outline-red-700{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:hover\\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-800) / var(--twc-neutral-800-opacity, var(--tw-bg-opacity)))}.has-\\[input\\:hover\\]\\:bg-surface-0-hover:has(input:hover){--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.data-\\[state\\=closed\\]\\:duration-100[data-state=closed]{transition-duration:.1s}.dark\\:bg-blue-200:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)))}.dark\\:bg-neutral-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, var(--tw-bg-opacity)))}.dark\\:fill-neutral-400:where([data-theme=dark],[data-theme=dark] *){fill:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.dark\\:fill-neutral-500:where([data-theme=dark],[data-theme=dark] *){fill:hsl(var(--twc-neutral-500) / var(--twc-neutral-500-opacity, 1))}.dark\\:text-blue-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity: 1;color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, var(--tw-text-opacity)))}.dark\\:outline-blue-300:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, 1))}.dark\\:outline-neutral-500:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-neutral-500) / var(--twc-neutral-500-opacity, 1))}.dark\\:hover\\:bg-blue-300:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, var(--tw-bg-opacity)))}.dark\\:hover\\:outline-blue-300:hover:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, 1))}.dark\\:focus-visible\\:outline-blue-900:focus-visible:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, 1))}.dark\\:focus-visible\\:hover\\:outline-blue-900:hover:focus-visible:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, 1))}.dark\\:active\\:bg-blue-300:active:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, var(--tw-bg-opacity)))}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:outline-red-700:not(:focus-within){outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:ring:not(:focus-within){--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)}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:ring-red-500:not(:focus-within){--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-ring-opacity)))}.\\[\\&\\>\\*\\]\\:pointer-events-auto>*{pointer-events:auto}.\\[\\&\\>input\\:not\\(\\:-moz-placeholder-shown\\)\\]\\:font-mono>input:not(:-moz-placeholder-shown){font-family:var(--cl-font-family-code)}.\\[\\&\\>input\\:not\\(\\:placeholder-shown\\)\\]\\:font-mono>input:not(:placeholder-shown){font-family:var(--cl-font-family-code)}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.25px\\]>svg{stroke-width:1.25px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.5px\\]>svg{stroke-width:1.5px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.65px\\]>svg{stroke-width:1.65px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.7px\\]>svg{stroke-width:1.7px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.8px\\]>svg{stroke-width:1.8px}';const r=document.createElement("style");r.textContent='*,: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: }*,: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:var(--cl-font-family-body);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:var(--cl-font-family-code);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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.type-display-50{font-family:var(--cl-font-family-display);letter-spacing:0px;font-weight:600;text-transform:none;font-size:20px;line-height:24px}.type-body-100{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.type-body-200{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:16px;line-height:24px}.type-button-lg{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:16px;line-height:24px}.type-button-md,.type-button-sm{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:14px;line-height:20px}.type-button-xs{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:12px;line-height:18px}.type-badge-sm{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:500;text-transform:none;font-size:11px;line-height:20px}.type-code-100{font-family:var(--cl-font-family-code);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.type-caption{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:400;text-transform:none}.type-caption-medium{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:500;text-transform:none}.type-caption-semibold{font-family:var(--cl-font-family-body);font-size:12px;line-height:16px;letter-spacing:0;font-weight:600;text-transform:none}.type-kbd{font-family:var(--cl-font-family-code);font-size:12px;line-height:12px;letter-spacing:0px;font-weight:400;text-transform:none}.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}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-5{bottom:12px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-5{right:12px}.right-6{right:16px}.top-0{top:0}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-\\[999\\]{z-index:999}.m-0{margin:0}.-mx-\\[100px\\]{margin-left:-100px;margin-right:-100px}.-my-\\[10px\\]{margin-top:-10px;margin-bottom:-10px}.mx-1{margin-left:2px;margin-right:2px}.mx-6{margin-left:16px;margin-right:16px}.my-4{margin-top:8px;margin-bottom:8px}.-me-1{margin-inline-end:-2px}.-ms-1{margin-inline-start:-2px}.mb-2{margin-bottom:4px}.mb-3{margin-bottom:6px}.mb-5{margin-bottom:12px}.ml-4{margin-left:8px}.mt-1{margin-top:2px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.\\!hidden{display:none!important}.hidden{display:none}.size-2{width:4px;height:4px}.size-4{width:8px;height:8px}.size-5{width:12px;height:12px}.size-6{width:16px;height:16px}.size-\\[20px\\]{width:20px;height:20px}.size-\\[24px\\]{width:24px;height:24px}.size-\\[32px\\]{width:32px;height:32px}.size-\\[36px\\]{width:36px;height:36px}.size-\\[40px\\]{width:40px;height:40px}.size-\\[48px\\]{width:48px;height:48px}.h-4{height:8px}.h-9,.h-\\[32px\\]{height:32px}.h-\\[50px\\]{height:50px}.h-\\[64px\\]{height:64px}.h-\\[65vh\\]{height:65vh}.h-\\[85vh\\]{height:85vh}.h-full{height:100%}.h-min{height:-moz-min-content;height:min-content}.max-h-\\[142px\\]{max-height:142px}.min-h-10{min-height:40px}.min-h-8{min-height:24px}.min-h-9{min-height:32px}.min-h-\\[20px\\]{min-height:20px}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[36px\\]{min-height:36px}.min-h-\\[40px\\]{min-height:40px}.w-9{width:32px}.w-\\[30vw\\]{width:30vw}.w-\\[50px\\]{width:50px}.w-\\[50vw\\]{width:50vw}.w-auto{width:auto}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.min-w-\\[320px\\]{min-width:320px}.max-w-\\[300px\\]{max-width:300px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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 bounce-higher{0%,to{transform:translateY(-75%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce-higher{animation:bounce-higher 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:4px}.gap-3{gap:6px}.gap-4{gap:8px}.gap-5{gap:12px}.gap-6{gap:16px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-1{border-radius:4px}.rounded-2{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-s-4{border-start-start-radius:16px;border-end-start-radius:16px}.rounded-tr-4{border-top-right-radius:16px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-border-0{--tw-border-opacity: 1;border-color:hsl(var(--twc-border-0) / var(--twc-border-0-opacity, var(--tw-border-opacity)))}.border-border-1{--tw-border-opacity: 1;border-color:hsl(var(--twc-border-1) / var(--twc-border-1-opacity, var(--tw-border-opacity)))}.border-green-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-green-500) / var(--twc-green-500-opacity, var(--tw-border-opacity)))}.border-red-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-border-opacity)))}.border-yellow-500{--tw-border-opacity: 1;border-color:hsl(var(--twc-yellow-500) / var(--twc-yellow-500-opacity, var(--tw-border-opacity)))}.bg-blue-600{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, var(--tw-bg-opacity)))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-300) / var(--twc-neutral-300-opacity, var(--tw-bg-opacity)))}.bg-red-50{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-bg-opacity)))}.bg-surface-0{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0) / var(--twc-surface-0-opacity, var(--tw-bg-opacity)))}.bg-surface-0-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.bg-surface-1{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1) / var(--twc-surface-1-opacity, var(--tw-bg-opacity)))}.bg-surface-2{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2) / var(--twc-surface-2-opacity, var(--tw-bg-opacity)))}.bg-surface-disabled{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-disabled) / var(--twc-surface-disabled-opacity, var(--tw-bg-opacity)))}.bg-surface-high-contrast{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-high-contrast) / var(--twc-surface-high-contrast-opacity, var(--tw-bg-opacity)))}.bg-text-primary{--tw-bg-opacity: 1;background-color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-bg-opacity)))}.bg-transparent{background-color:transparent}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-surface-0{--tw-gradient-from: hsl(var(--twc-surface-0) / var(--twc-surface-0-opacity, 1)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--twc-surface-0) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.fill-neutral-300{fill:hsl(var(--twc-neutral-300) / var(--twc-neutral-300-opacity, 1))}.fill-neutral-400{fill:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.stroke-zinc-400{stroke:#a1a1aa}.p-1{padding:2px}.p-4{padding:8px}.p-5{padding:12px}.p-6{padding:16px}.px-1{padding-left:2px;padding-right:2px}.px-2{padding-left:4px;padding-right:4px}.px-3{padding-left:6px;padding-right:6px}.px-4{padding-left:8px;padding-right:8px}.px-5{padding-left:12px;padding-right:12px}.px-6{padding-left:16px;padding-right:16px}.px-7{padding-left:20px;padding-right:20px}.px-8{padding-left:24px;padding-right:24px}.px-\\[100px\\]{padding-left:100px;padding-right:100px}.py-2{padding-top:4px;padding-bottom:4px}.py-3{padding-top:6px;padding-bottom:6px}.py-4{padding-top:8px;padding-bottom:8px}.py-5{padding-top:12px;padding-bottom:12px}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-5{padding-bottom:12px}.pe-2{padding-inline-end:4px}.pe-3{padding-inline-end:6px}.pe-4{padding-inline-end:8px}.pl-5{padding-left:12px}.pl-6{padding-left:16px}.pl-7{padding-left:20px}.pr-11{padding-right:48px}.ps-2{padding-inline-start:4px}.ps-3{padding-inline-start:6px}.ps-4{padding-inline-start:8px}.pt-12{padding-top:64px}.pt-4{padding-top:8px}.pt-6{padding-top:16px}.text-center{text-align:center}.text-start{text-align:start}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-blue-600{--tw-text-opacity: 1;color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, var(--tw-text-opacity)))}.text-green-500{--tw-text-opacity: 1;color:hsl(var(--twc-green-500) / var(--twc-green-500-opacity, var(--tw-text-opacity)))}.text-red-500{--tw-text-opacity: 1;color:hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-text-opacity)))}.text-red-700{--tw-text-opacity: 1;color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, var(--tw-text-opacity)))}.text-text-disabled{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.text-text-faint{--tw-text-opacity: 1;color:hsl(var(--twc-text-faint) / var(--twc-text-faint-opacity, var(--tw-text-opacity)))}.text-text-high-contrast{--tw-text-opacity: 1;color:hsl(var(--twc-text-high-contrast) / var(--twc-text-high-contrast-opacity, var(--tw-text-opacity)))}.text-text-primary{--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.text-text-strong{--tw-text-opacity: 1;color:hsl(var(--twc-text-strong) / var(--twc-text-strong-opacity, var(--tw-text-opacity)))}.text-yellow-500{--tw-text-opacity: 1;color:hsl(var(--twc-yellow-500) / var(--twc-yellow-500-opacity, var(--tw-text-opacity)))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.shadow-elev-0{--tw-shadow: var(--cl-shadow-elev-0);--tw-shadow-colored: var(--cl-shadow-elev-0);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: var(--cl-shadow-inner);--tw-shadow-colored: var(--cl-shadow-inner);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}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-blue-200{outline-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, 1))}.outline-blue-700{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.outline-border-0{outline-color:hsl(var(--twc-border-0) / var(--twc-border-0-opacity, 1))}.outline-border-1{outline-color:hsl(var(--twc-border-1) / var(--twc-border-1-opacity, 1))}.outline-border-2{outline-color:hsl(var(--twc-border-2) / var(--twc-border-2-opacity, 1))}.outline-neutral-400{outline-color:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.outline-red-600{outline-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, 1))}.outline-surface-high-contrast{outline-color:hsl(var(--twc-surface-high-contrast) / var(--twc-surface-high-contrast-opacity, 1))}.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-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-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.light,[data-theme=light]{--twc-black: 210 20% 3.9%;--twc-white: 0 0% 100%;--twc-neutral-0: 0 0% 100%;--twc-neutral-50: 210 20% 98%;--twc-neutral-100: 216 16.1% 93.9%;--twc-neutral-200: 216 17.9% 89%;--twc-neutral-300: 216 18.5% 84.1%;--twc-neutral-400: 220 14.8% 76.1%;--twc-neutral-500: 217.10000000000002 10.6% 61%;--twc-neutral-600: 217.79999999999995 10.8% 48.8%;--twc-neutral-700: 218.20000000000005 10.8% 40%;--twc-neutral-800: 216.70000000000005 14.8% 23.9%;--twc-neutral-900: 210 20% 3.9%;--twc-pink-50: 306.70000000000005 60% 97.1%;--twc-pink-100: 312.6 70.4% 94.7%;--twc-pink-200: 314.29999999999995 80.8% 89.8%;--twc-pink-300: 315.6 78.5% 81.8%;--twc-pink-400: 317.29999999999995 77.6% 70.2%;--twc-pink-500: 318.9 73.4% 60.2%;--twc-pink-600: 322 64.7% 54.5%;--twc-pink-700: 323.6 70.1% 42%;--twc-pink-800: 324.6 67.8% 35.3%;--twc-pink-900: 324.6 63.9% 23.9%;--twc-red-50: 0 85.7% 97.3%;--twc-red-100: 2.1000000000000227 93.5% 93.9%;--twc-red-200: 0 96.3% 89.4%;--twc-red-300: 0 95.7% 82%;--twc-red-400: 0 90.6% 70.8%;--twc-red-500: 0 84.2% 60.2%;--twc-red-600: .30000000000001137 72.3% 50.4%;--twc-red-700: .39999999999997726 74.5% 41.6%;--twc-red-800: 0 70% 35.3%;--twc-red-900: 359.29999999999995 65.4% 24.9%;--twc-orange-50: 26.69999999999999 100% 96.5%;--twc-orange-100: 25.69999999999999 100% 91.8%;--twc-orange-200: 25.30000000000001 97.6% 83.3%;--twc-orange-300: 25.399999999999977 97.2% 72.4%;--twc-orange-400: 25.100000000000023 96% 61%;--twc-orange-500: 25 95% 53.3%;--twc-orange-600: 25.100000000000023 88.7% 48.6%;--twc-orange-700: 24.899999999999977 87.4% 40.6%;--twc-orange-800: 25.100000000000023 79.1% 33.7%;--twc-orange-900: 25.30000000000001 74.8% 24.9%;--twc-yellow-50: 60 100% 95.9%;--twc-yellow-100: 57.89999999999998 96.6% 88.4%;--twc-yellow-200: 58 100% 76.1%;--twc-yellow-300: 55.80000000000001 100% 63.9%;--twc-yellow-400: 53 100% 54.9%;--twc-yellow-500: 46.19999999999999 100% 50.4%;--twc-yellow-600: 40.60000000000002 100% 44.3%;--twc-yellow-700: 34.60000000000002 96.8% 37.3%;--twc-yellow-800: 31.899999999999977 91.2% 31.2%;--twc-yellow-900: 30.30000000000001 82.1% 24.1%;--twc-lime-50: 75.69999999999999 92% 95.1%;--twc-lime-100: 77.60000000000002 92.7% 89.2%;--twc-lime-200: 77.5 92.3% 79.6%;--twc-lime-300: 79.5 88.1% 67.1%;--twc-lime-400: 80.19999999999999 81.4% 55.7%;--twc-lime-500: 80.89999999999998 85.5% 48.6%;--twc-lime-600: 82.19999999999999 88.7% 34.7%;--twc-lime-700: 83.39999999999998 81.3% 27.3%;--twc-lime-800: 83.89999999999998 70.9% 22.9%;--twc-lime-900: 85.10000000000002 63.2% 17.1%;--twc-green-50: 136 100% 97.1%;--twc-green-100: 138.8 72.7% 87.1%;--twc-green-200: 140.5 60.3% 75.3%;--twc-green-300: 143 54.9% 61.8%;--twc-green-400: 145 45.8% 50.8%;--twc-green-500: 148 48.4% 42.5%;--twc-green-600: 153.10000000000002 56.5% 33.3%;--twc-green-700: 151.89999999999998 45.1% 27.8%;--twc-green-800: 152.39999999999998 42.4% 23.1%;--twc-green-900: 151.8 41.5% 16.1%;--twc-teal-50: 171.39999999999998 77.8% 96.5%;--twc-teal-100: 172.70000000000005 89.1% 89.2%;--twc-teal-200: 172.60000000000002 87.4% 78.2%;--twc-teal-300: 174.39999999999998 81.4% 64.1%;--twc-teal-400: 176.89999999999998 69.4% 50%;--twc-teal-500: 177.89999999999998 85.2% 39.8%;--twc-teal-600: 179.60000000000002 86.4% 31.8%;--twc-teal-700: 179.39999999999998 82% 26.1%;--twc-teal-800: 180.70000000000005 74.5% 21.6%;--twc-teal-900: 180 66.2% 15.1%;--twc-cyan-50: 198.79999999999995 100% 96.9%;--twc-cyan-100: 200.60000000000002 100% 93.7%;--twc-cyan-200: 196.70000000000005 100% 85.9%;--twc-cyan-300: 195.10000000000002 100% 73.5%;--twc-cyan-400: 194.79999999999995 100% 57.8%;--twc-cyan-500: 194.89999999999998 95.1% 48.2%;--twc-cyan-600: 197.5 100% 40.4%;--twc-cyan-700: 198.20000000000005 97.6% 33.1%;--twc-cyan-800: 197.79999999999995 95.7% 27.6%;--twc-cyan-900: 198.39999999999998 86.3% 20%;--twc-blue-50: 206.29999999999995 100% 96.9%;--twc-blue-100: 205.70000000000005 94.6% 92.7%;--twc-blue-200: 208.60000000000002 96.9% 87.3%;--twc-blue-300: 211.39999999999998 96.4% 78.2%;--twc-blue-400: 213.10000000000002 93.9% 67.8%;--twc-blue-500: 217.39999999999998 91.2% 60%;--twc-blue-600: 221 83.3% 53.1%;--twc-blue-700: 224 77% 47.8%;--twc-blue-800: 225.79999999999995 71.4% 37.1%;--twc-blue-900: 224.5 63.4% 30%;--twc-purple-50: 246 83.3% 97.6%;--twc-purple-100: 243.5 73.9% 95.5%;--twc-purple-200: 243.5 81% 91.8%;--twc-purple-300: 247.10000000000002 76.6% 84.9%;--twc-purple-400: 248.5 76.7% 76.5%;--twc-purple-500: 252.20000000000005 74.4% 66.3%;--twc-purple-600: 256.1 69.4% 59%;--twc-purple-700: 257.29999999999995 57.5% 50.2%;--twc-purple-800: 257.70000000000005 57.7% 38%;--twc-purple-900: 257.5 56.3% 25.1%;--twc-text-strong: 210 20% 3.9%;--twc-text-primary: 216.70000000000005 14.8% 23.9%;--twc-text-faint: 218.20000000000005 10.8% 40%;--twc-text-disabled: 217.10000000000002 10.6% 61%;--twc-text-high-contrast: 0 0% 100%;--twc-surface-0: 0 0% 100%;--twc-surface-1: 210 20% 98%;--twc-surface-2: 216 16.1% 93.9%;--twc-surface-0-hover: 210 20% 98%;--twc-surface-0-active: 216 16.1% 93.9%;--twc-surface-1-hover: 216 16.1% 93.9%;--twc-surface-1-active: 216 17.9% 89%;--twc-surface-2-hover: 216 17.9% 89%;--twc-surface-2-active: 216 18.5% 84.1%;--twc-surface-disabled: 216 17.9% 89%;--twc-surface-high-contrast: 210 20% 3.9%;--twc-border-0: 216 16.1% 93.9%;--twc-border-1: 216 17.9% 89%;--twc-border-2: 216 18.5% 84.1%;--twc-focus: 217.39999999999998 91.2% 60%}.dark,[data-theme=dark]{--twc-neutral-0: 220 25.7% 6.9%;--twc-neutral-50: 221.5 21.3% 12%;--twc-neutral-100: 222.39999999999998 19.5% 17.1%;--twc-neutral-200: 219.10000000000002 18.1% 24.9%;--twc-neutral-300: 220 16.6% 32%;--twc-neutral-400: 220.70000000000005 13.7% 40%;--twc-neutral-500: 220 12% 49%;--twc-neutral-600: 219.10000000000002 12.2% 62.9%;--twc-neutral-700: 207.5 17.4% 72.9%;--twc-neutral-800: 207.29999999999995 16.4% 86.9%;--twc-neutral-900: 240 20% 99%;--twc-white: 0 0% 100%;--twc-black: 210 20% 3.9%;--twc-blue-50: 212.10000000000002 98.3% 23.1%;--twc-blue-100: 210.79999999999995 100% 30.2%;--twc-blue-200: 209.79999999999995 98% 39%;--twc-blue-300: 208.60000000000002 94.8% 45.1%;--twc-blue-400: 207.10000000000002 88.8% 48.8%;--twc-blue-500: 206.20000000000005 91% 60.6%;--twc-blue-600: 204 94.9% 69%;--twc-blue-700: 203.10000000000002 94.1% 80%;--twc-blue-800: 202.5 95.2% 91.8%;--twc-blue-900: 204 100% 97.1%;--twc-red-50: 359.29999999999995 65.4% 24.9%;--twc-red-100: 0 70% 35.3%;--twc-red-200: .39999999999997726 74.5% 41.6%;--twc-red-300: .30000000000001137 72.3% 50.4%;--twc-red-400: 0 84.2% 60.2%;--twc-red-500: 0 90.6% 70.8%;--twc-red-600: 0 95.7% 82%;--twc-red-700: 0 96.3% 89.4%;--twc-red-800: 2.1000000000000227 93.5% 93.9%;--twc-red-900: 0 85.7% 97.3%;--twc-orange-50: 25.30000000000001 74.8% 24.9%;--twc-orange-100: 25.100000000000023 79.1% 33.7%;--twc-orange-200: 24.899999999999977 87.4% 40.6%;--twc-orange-300: 25.100000000000023 88.7% 48.6%;--twc-orange-400: 25 95% 53.3%;--twc-orange-500: 25.100000000000023 96% 61%;--twc-orange-600: 25.399999999999977 97.2% 72.4%;--twc-orange-700: 25.30000000000001 97.6% 83.3%;--twc-orange-800: 25.69999999999999 100% 91.8%;--twc-orange-900: 26.69999999999999 100% 96.5%;--twc-yellow-50: 30.30000000000001 82.1% 24.1%;--twc-yellow-100: 31.899999999999977 91.2% 31.2%;--twc-yellow-200: 34.60000000000002 96.8% 37.3%;--twc-yellow-300: 40.60000000000002 100% 44.3%;--twc-yellow-400: 46.19999999999999 100% 50.4%;--twc-yellow-500: 53 100% 54.9%;--twc-yellow-600: 55.80000000000001 100% 63.9%;--twc-yellow-700: 58 100% 76.1%;--twc-yellow-800: 57.89999999999998 96.6% 88.4%;--twc-yellow-900: 60 100% 95.9%;--twc-green-50: 151.8 41.5% 16.1%;--twc-green-100: 152.39999999999998 42.4% 23.1%;--twc-green-200: 151.89999999999998 45.1% 27.8%;--twc-green-300: 153.10000000000002 56.5% 33.3%;--twc-green-400: 148 48.4% 42.5%;--twc-green-500: 145 45.8% 50.8%;--twc-green-600: 143 54.9% 61.8%;--twc-green-700: 140.5 60.3% 75.3%;--twc-green-800: 138.8 72.7% 87.1%;--twc-green-900: 136 100% 97.1%;--twc-teal-50: 180 66.2% 15.1%;--twc-teal-100: 180.70000000000005 74.5% 21.6%;--twc-teal-200: 179.39999999999998 82% 26.1%;--twc-teal-300: 179.60000000000002 86.4% 31.8%;--twc-teal-400: 177.89999999999998 85.2% 39.8%;--twc-teal-500: 176.89999999999998 69.4% 50%;--twc-teal-600: 174.39999999999998 81.4% 64.1%;--twc-teal-700: 172.60000000000002 87.4% 78.2%;--twc-teal-800: 172.70000000000005 89.1% 89.2%;--twc-teal-900: 171.39999999999998 77.8% 96.5%;--twc-cyan-50: 198.39999999999998 86.3% 20%;--twc-cyan-100: 197.79999999999995 95.7% 27.6%;--twc-cyan-200: 198.20000000000005 97.6% 33.1%;--twc-cyan-300: 197.5 100% 40.4%;--twc-cyan-400: 194.89999999999998 95.1% 48.2%;--twc-cyan-500: 194.79999999999995 100% 57.8%;--twc-cyan-600: 195.10000000000002 100% 73.5%;--twc-cyan-700: 196.70000000000005 100% 85.9%;--twc-cyan-800: 200.60000000000002 100% 93.7%;--twc-cyan-900: 198.79999999999995 100% 96.9%;--twc-purple-50: 257.5 56.3% 25.1%;--twc-purple-100: 257.70000000000005 57.7% 38%;--twc-purple-200: 257.29999999999995 57.5% 50.2%;--twc-purple-300: 256.1 69.4% 59%;--twc-purple-400: 252.20000000000005 74.4% 66.3%;--twc-purple-500: 248.5 76.7% 76.5%;--twc-purple-600: 247.10000000000002 76.6% 84.9%;--twc-purple-700: 243.5 81% 91.8%;--twc-purple-800: 243.5 73.9% 95.5%;--twc-purple-900: 246 83.3% 97.6%;--twc-pink-50: 324.6 63.9% 23.9%;--twc-pink-100: 324.6 67.8% 35.3%;--twc-pink-200: 323.6 70.1% 42%;--twc-pink-300: 322 64.7% 54.5%;--twc-pink-400: 318.9 73.4% 60.2%;--twc-pink-500: 317.29999999999995 77.6% 70.2%;--twc-pink-600: 315.6 78.5% 81.8%;--twc-pink-700: 314.29999999999995 80.8% 89.8%;--twc-pink-800: 312.6 70.4% 94.7%;--twc-pink-900: 306.70000000000005 60% 97.1%;--twc-lime-50: 85.10000000000002 63.2% 17.1%;--twc-lime-100: 83.89999999999998 70.9% 22.9%;--twc-lime-200: 83.39999999999998 81.3% 27.3%;--twc-lime-300: 82.19999999999999 88.7% 34.7%;--twc-lime-400: 80.89999999999998 85.5% 48.6%;--twc-lime-500: 80.19999999999999 81.4% 55.7%;--twc-lime-600: 79.5 88.1% 67.1%;--twc-lime-700: 77.5 92.3% 79.6%;--twc-lime-800: 77.60000000000002 92.7% 89.2%;--twc-lime-900: 75.69999999999999 92% 95.1%;--twc-text-strong: 240 20% 99%;--twc-text-primary: 207.29999999999995 16.4% 86.9%;--twc-text-faint: 207.5 17.4% 72.9%;--twc-text-disabled: 220 12% 49%;--twc-text-high-contrast: 220 25.7% 6.9%;--twc-surface-0: 220 25.7% 6.9%;--twc-surface-1: 221.5 21.3% 12%;--twc-surface-2: 222.39999999999998 19.5% 17.1%;--twc-surface-0-hover: 221.5 21.3% 12%;--twc-surface-0-active: 222.39999999999998 19.5% 17.1%;--twc-surface-1-hover: 222.39999999999998 19.5% 17.1%;--twc-surface-1-active: 219.10000000000002 18.1% 24.9%;--twc-surface-2-hover: 219.10000000000002 18.1% 24.9%;--twc-surface-2-active: 220 16.6% 32%;--twc-surface-disabled: 219.10000000000002 18.1% 24.9%;--twc-surface-high-contrast: 240 20% 99%;--twc-border-0: 222.39999999999998 19.5% 17.1%;--twc-border-1: 219.10000000000002 18.1% 24.9%;--twc-border-2: 220 16.6% 32%;--twc-focus: 206.20000000000005 91% 60.6%}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[counter-increment\\:list\\]{counter-increment:list}.\\[counter-reset\\:list\\]{counter-reset:list}:root:not(:host){font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}[data-theme=dark] ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}[data-theme=dark] ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host[data-theme=dark] ::-moz-selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}:host[data-theme=dark] ::selection{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)));--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.placeholder\\:type-body-100::-moz-placeholder{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.placeholder\\:type-body-100::placeholder{font-family:var(--cl-font-family-body);letter-spacing:0px;font-weight:400;text-transform:none;font-size:14px;line-height:20px}.placeholder\\:text-text-disabled::-moz-placeholder{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.placeholder\\:text-text-disabled::placeholder{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-0:before{content:var(--tw-content);top:0}.before\\:w-5:before{content:var(--tw-content);width:12px}.before\\:truncate:before{content:var(--tw-content);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.before\\:text-\\[1\\.5em\\]:before{content:var(--tw-content);font-size:1.5em}.before\\:text-text-strong:before{content:var(--tw-content);--tw-text-opacity: 1;color:hsl(var(--twc-text-strong) / var(--twc-text-strong-opacity, var(--tw-text-opacity)))}.before\\:content-\\[\\\'•\\\'\\]:before{--tw-content: "•";content:var(--tw-content)}.before\\:\\[content\\:counter\\(list\\)_\\"\\.\\"\\]:before{content:counter(list) "."}.first\\:mt-2:first-child{margin-top:4px}.last\\:mb-0:last-child{margin-bottom:0}.invalid\\:ring-red-100:invalid{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-ring-opacity)))}.focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\\:outline-blue-700:focus-within{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.focus-within\\:ring:focus-within{--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-within\\:ring-focus:focus-within{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-focus) / var(--twc-focus-opacity, var(--tw-ring-opacity)))}.hover\\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, var(--tw-bg-opacity)))}.hover\\:bg-green-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-50) / var(--twc-green-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-800) / var(--twc-neutral-800-opacity, var(--tw-bg-opacity)))}.hover\\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-bg-opacity)))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-0-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-1-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-hover) / var(--twc-surface-1-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-surface-2-hover:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-hover) / var(--twc-surface-2-hover-opacity, var(--tw-bg-opacity)))}.hover\\:bg-yellow-50:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-50) / var(--twc-yellow-50-opacity, var(--tw-bg-opacity)))}.hover\\:text-red-50:hover{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.hover\\:text-text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--twc-text-primary) / var(--twc-text-primary-opacity, var(--tw-text-opacity)))}.hover\\:outline-blue-800:hover{outline-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, 1))}.hover\\:outline-red-700:hover{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.focus\\:bg-green-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-100) / var(--twc-green-100-opacity, var(--tw-bg-opacity)))}.focus\\:bg-red-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-bg-opacity)))}.focus\\:bg-yellow-100:focus{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-100) / var(--twc-yellow-100-opacity, var(--tw-bg-opacity)))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-1:focus-visible{outline-width:1px}.focus-visible\\:outline-offset-\\[-1px\\]:focus-visible{outline-offset:-1px}.focus-visible\\:outline-blue-50:focus-visible{outline-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, 1))}.focus-visible\\:outline-blue-600:focus-visible{outline-color:hsl(var(--twc-blue-600) / var(--twc-blue-600-opacity, 1))}.focus-visible\\:outline-blue-700:focus-visible{outline-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, 1))}.focus-visible\\:outline-red-700:focus-visible{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.focus-visible\\:ring:focus-visible{--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-visible\\:ring-0:focus-visible{--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(0 + 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-visible\\:ring-1:focus-visible{--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(1px + 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-visible\\:ring-focus:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-focus) / var(--twc-focus-opacity, var(--tw-ring-opacity)))}.focus-visible\\:ring-slate-700:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(51 65 85 / var(--tw-ring-opacity))}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width: 0px}.active\\:bg-blue-200:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)))}.active\\:bg-blue-800:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, var(--tw-bg-opacity)))}.active\\:bg-green-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-green-100) / var(--twc-green-100-opacity, var(--tw-bg-opacity)))}.active\\:bg-neutral-700:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-700) / var(--twc-neutral-700-opacity, var(--tw-bg-opacity)))}.active\\:bg-red-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-100) / var(--twc-red-100-opacity, var(--tw-bg-opacity)))}.active\\:bg-red-600:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-0-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-active) / var(--twc-surface-0-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-1-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-active) / var(--twc-surface-1-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-surface-2-active:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-active) / var(--twc-surface-2-active-opacity, var(--tw-bg-opacity)))}.active\\:bg-yellow-100:active{--tw-bg-opacity: 1;background-color:hsl(var(--twc-yellow-100) / var(--twc-yellow-100-opacity, var(--tw-bg-opacity)))}.active\\:text-red-50:active{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-disabled:disabled{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-disabled) / var(--twc-surface-disabled-opacity, var(--tw-bg-opacity)))}.disabled\\:text-text-disabled:disabled{--tw-text-opacity: 1;color:hsl(var(--twc-text-disabled) / var(--twc-text-disabled-opacity, var(--tw-text-opacity)))}.disabled\\:outline-border-2:disabled{outline-color:hsl(var(--twc-border-2) / var(--twc-border-2-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:bg-blue-50{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-50) / var(--twc-blue-50-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-blue-700{--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-700) / var(--twc-blue-700-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-red-600{--tw-bg-opacity: 1;background-color:hsl(var(--twc-red-600) / var(--twc-red-600-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-0-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-1-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-1-hover) / var(--twc-surface-1-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:bg-surface-2-hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-2-hover) / var(--twc-surface-2-hover-opacity, var(--tw-bg-opacity)))}.group\\/button:hover .group-hover\\/button\\:text-red-50{--tw-text-opacity: 1;color:hsl(var(--twc-red-50) / var(--twc-red-50-opacity, var(--tw-text-opacity)))}.group\\/button:hover .group-hover\\/button\\:outline-blue-800{outline-color:hsl(var(--twc-blue-800) / var(--twc-blue-800-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:outline-red-700{outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.group\\/button:hover .group-hover\\/button\\:hover\\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-800) / var(--twc-neutral-800-opacity, var(--tw-bg-opacity)))}.has-\\[input\\:hover\\]\\:bg-surface-0-hover:has(input:hover){--tw-bg-opacity: 1;background-color:hsl(var(--twc-surface-0-hover) / var(--twc-surface-0-hover-opacity, var(--tw-bg-opacity)))}.data-\\[state\\=closed\\]\\:duration-100[data-state=closed]{transition-duration:.1s}.dark\\:bg-blue-200:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-200) / var(--twc-blue-200-opacity, var(--tw-bg-opacity)))}.dark\\:bg-neutral-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, var(--tw-bg-opacity)))}.dark\\:fill-neutral-400:where([data-theme=dark],[data-theme=dark] *){fill:hsl(var(--twc-neutral-400) / var(--twc-neutral-400-opacity, 1))}.dark\\:fill-neutral-500:where([data-theme=dark],[data-theme=dark] *){fill:hsl(var(--twc-neutral-500) / var(--twc-neutral-500-opacity, 1))}.dark\\:text-blue-900:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity: 1;color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, var(--tw-text-opacity)))}.dark\\:outline-blue-300:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, 1))}.dark\\:outline-neutral-500:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-neutral-500) / var(--twc-neutral-500-opacity, 1))}.dark\\:hover\\:bg-blue-300:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, var(--tw-bg-opacity)))}.dark\\:hover\\:outline-blue-300:hover:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, 1))}.dark\\:focus-visible\\:outline-blue-900:focus-visible:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, 1))}.dark\\:focus-visible\\:hover\\:outline-blue-900:hover:focus-visible:where([data-theme=dark],[data-theme=dark] *){outline-color:hsl(var(--twc-blue-900) / var(--twc-blue-900-opacity, 1))}.dark\\:active\\:bg-blue-300:active:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity: 1;background-color:hsl(var(--twc-blue-300) / var(--twc-blue-300-opacity, var(--tw-bg-opacity)))}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:outline-red-700:not(:focus-within){outline-color:hsl(var(--twc-red-700) / var(--twc-red-700-opacity, 1))}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:ring:not(:focus-within){--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)}.\\[\\&\\:not\\(\\:focus-within\\)\\]\\:ring-red-500:not(:focus-within){--tw-ring-opacity: 1;--tw-ring-color: hsl(var(--twc-red-500) / var(--twc-red-500-opacity, var(--tw-ring-opacity)))}.\\[\\&\\>\\*\\]\\:pointer-events-auto>*{pointer-events:auto}.\\[\\&\\>input\\:not\\(\\:-moz-placeholder-shown\\)\\]\\:font-mono>input:not(:-moz-placeholder-shown){font-family:var(--cl-font-family-code)}.\\[\\&\\>input\\:not\\(\\:placeholder-shown\\)\\]\\:font-mono>input:not(:placeholder-shown){font-family:var(--cl-font-family-code)}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.25px\\]>svg{stroke-width:1.25px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.5px\\]>svg{stroke-width:1.5px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.65px\\]>svg{stroke-width:1.65px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.7px\\]>svg{stroke-width:1.7px}.\\[\\&\\>svg\\]\\:stroke-\\[1\\.8px\\]>svg{stroke-width:1.8px}',this.root.appendChild(t),this.root.appendChild(n),this.root.appendChild(r),this.root.appendChild(e);const o=new Br,i={logoUrl:this.getAttribute("logo-url"),chatTitle:this.getAttribute("assistant-title"),chatDescription:this.getAttribute("assistant-description"),headerColor:this.getAttribute("header-color"),chatAvatarUrl:this.getAttribute("assistant-avatar-url"),apiKey:this.getAttribute("api-key"),assistantId:this.getAttribute("assistant-id")};dt(Yn(Gn.StrictMode,{children:Yn(Gr,{client:o,children:Yn(io,{apiKey:i.apiKey,children:Yn(Gn.Suspense,{fallback:Yn("div",{children:"Loading..."}),children:Yn(ao,{...i})})})})}),e)}attributeChangedCallback(e,t,n){t!==n&&this.render()}disconnectedCallback(){this.container&&(dt(null,this.container),this.container=null)}}function lo(){return"undefined"!=typeof window}function co(e){return fo(e)?(e.nodeName||"").toLowerCase():"#document"}function uo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function po(e){var t;return null==(t=(fo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function fo(e){return!!lo()&&(e instanceof Node||e instanceof uo(e).Node)}function ho(e){return!!lo()&&(e instanceof Element||e instanceof uo(e).Element)}function go(e){return!!lo()&&(e instanceof HTMLElement||e instanceof uo(e).HTMLElement)}function mo(e){return!(!lo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof uo(e).ShadowRoot)}function yo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_o(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bo(e){return["table","td","th"].includes(co(e))}function vo(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(hg){return!1}}))}function wo(e){const t=xo(),n=ho(e)?_o(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function xo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ko(e){return["html","body","#document"].includes(co(e))}function _o(e){return uo(e).getComputedStyle(e)}function Co(e){return ho(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Eo(e){if("html"===co(e))return e;const t=e.assignedSlot||e.parentNode||mo(e)&&e.host||po(e);return mo(t)?t.host:t}function So(e){const t=Eo(e);return ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:go(t)&&yo(t)?t:So(t)}function Ao(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=So(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=uo(o);if(i){const e=Oo(a);return t.concat(a,a.visualViewport||[],yo(o)?o:[],e&&n?Ao(e):[])}return t.concat(o,Ao(o,[],n))}function Oo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function To(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Ro(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&mo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fo(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function No(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Po(){return/apple/i.test(navigator.vendor)}function Lo(){const e=/android/i;return e.test(Fo())||e.test(No())}function Do(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Io(e){return(null==e?void 0:e.ownerDocument)||document}function zo(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function jo(e){return"composedPath"in e?e.composedPath()[0]:e.target}customElements.define("agility-assistant",so);const Mo=Math.min,Bo=Math.max,Uo=Math.round,qo=Math.floor,Ho=e=>({x:e,y:e}),$o={left:"right",right:"left",bottom:"top",top:"bottom"},Wo={start:"end",end:"start"};function Zo(e,t,n){return Bo(e,Mo(t,n))}function Vo(e,t){return"function"==typeof e?e(t):e}function Ko(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function Qo(e){return"x"===e?"y":"x"}function Xo(e){return"y"===e?"height":"width"}function Yo(e){return["top","bottom"].includes(Ko(e))?"y":"x"}function Jo(e){return Qo(Yo(e))}function ei(e){return e.replace(/start|end/g,(e=>Wo[e]))}function ti(e){return e.replace(/left|right|bottom|top/g,(e=>$o[e]))}function ni(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ri(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var oi=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ii="undefined"==typeof Element,ai=ii?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,si=!ii&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},li=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},ci=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!li(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{ai.call(a,oi)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!li(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},ui=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},di=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!ui(e)?0:e.tabIndex},pi=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fi=function(e){return"INPUT"===e.tagName},hi=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},gi=function(e,t){return!(t.disabled||li(t)||function(e){return fi(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ai.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ai.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return hi(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=si(e);if(a&&!a.shadowRoot&&!0===r(a))return hi(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&si(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=si(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ai.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},mi=function(e,t){return!(function(e){return function(e){return fi(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||si(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||di(t)<0||!gi(e,t))},yi=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},bi=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=di(e);return n<0&&t&&!ui(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(pi).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},vi=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ci([e],t.includeContainer,{filter:mi.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yi}):function(e,t,n){if(li(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(oi));return t&&ai.call(e,oi)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,mi.bind(null,t)),bi(n)};function wi(e,t,n){let{reference:r,floating:o}=e;const i=Yo(t),a=Jo(t),s=Xo(a),l=Ko(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Go(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function xi(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Vo(t,e),h=ni(f),g=s[p?"floating"===d?"reference":"floating":d],m=ri(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ri(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-w.top+h.top)/v.y,bottom:(w.bottom-m.bottom+h.bottom)/v.y,left:(m.left-w.left+h.left)/v.x,right:(w.right-m.right+h.right)/v.x}}function ki(e){const t=_o(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=go(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Uo(n)!==i||Uo(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function _i(e){return ho(e)?e:e.contextElement}function Ci(e){const t=_i(e);if(!go(t))return Ho(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ki(t);let a=(i?Uo(n.width):n.width)/r,s=(i?Uo(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ei=Ho(0);function Si(e){const t=uo(e);return xo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ei}function Ai(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=_i(e);let a=Ho(1);t&&(r?ho(r)&&(a=Ci(r)):a=Ci(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==uo(e))&&t}(i,n,r)?Si(i):Ho(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=uo(i),t=r&&ho(r)?uo(r):r;let n=e,o=Oo(n);for(;o&&r&&t!==n;){const e=Ci(o),t=o.getBoundingClientRect(),r=_o(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=uo(o),o=Oo(n)}}return ri({width:u,height:d,x:l,y:c})}function Oi(e,t){const n=Co(e).scrollLeft;return t?t.left+n:Ai(po(e)).left+n}function Ti(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Oi(e,r)),y:r.top+t.scrollTop}}function Ri(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=uo(e),r=po(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=xo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=po(e),n=Co(e),r=e.ownerDocument.body,o=Bo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Oi(e);const s=-n.scrollTop;return"rtl"===_o(r).direction&&(a+=Bo(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(po(e));else if(ho(t))r=function(e,t){const n=Ai(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=go(e)?Ci(e):Ho(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Si(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ri(r)}function Fi(e,t){const n=Eo(e);return!(n===t||!ho(n)||ko(n))&&("fixed"===_o(n).position||Fi(n,t))}function Ni(e,t,n){const r=go(t),o=po(t),i="fixed"===n,a=Ai(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ho(0);if(r||!r&&!i)if(("body"!==co(t)||yo(o))&&(s=Co(t)),r){const e=Ai(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Oi(o));const c=!o||r||i?Ho(0):Ti(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Pi(e){return"static"===_o(e).position}function Li(e,t){if(!go(e)||"fixed"===_o(e).position)return null;if(t)return t(e);let n=e.offsetParent;return po(e)===n&&(n=n.ownerDocument.body),n}function Di(e,t){const n=uo(e);if(vo(e))return n;if(!go(e)){let t=Eo(e);for(;t&&!ko(t);){if(ho(t)&&!Pi(t))return t;t=Eo(t)}return n}let r=Li(e,t);for(;r&&bo(r)&&Pi(r);)r=Li(r,t);return r&&ko(r)&&Pi(r)&&!wo(r)?n:r||function(e){let t=Eo(e);for(;go(t)&&!ko(t);){if(wo(t))return t;if(vo(t))return null;t=Eo(t)}return null}(e)||n}const Ii={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=po(r),s=!!t&&vo(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ho(1);const u=Ho(0),d=go(r);if((d||!d&&!i)&&(("body"!==co(r)||yo(a))&&(l=Co(r)),go(r))){const e=Ai(r);c=Ci(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?Ho(0):Ti(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:po,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?vo(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ao(e,[],!1).filter((e=>ho(e)&&"body"!==co(e))),o=null;const i="fixed"===_o(e).position;let a=i?Eo(e):e;for(;ho(a)&&!ko(a);){const t=_o(a),n=wo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||yo(a)&&!n&&Fi(e,a))?r=r.filter((e=>e!==a)):o=t,a=Eo(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Ri(t,n,o);return e.top=Bo(r.top,e.top),e.right=Mo(r.right,e.right),e.bottom=Mo(r.bottom,e.bottom),e.left=Bo(r.left,e.left),e}),Ri(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Di,getElementRects:async function(e){const t=this.getOffsetParent||Di,n=this.getDimensions,r=await n(e.floating);return{reference:Ni(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ki(e);return{width:t,height:n}},getScale:Ci,isElement:ho,isRTL:function(e){return"rtl"===_o(e).direction}};function zi(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=_i(e),u=o||i?[...c?Ao(c):[],...Ao(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=po(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-qo(u)+"px "+-qo(o.clientWidth-(c+d))+"px "+-qo(o.clientHeight-(u+p))+"px "+-qo(c)+"px",threshold:Bo(0,Mo(1,l))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(hg){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let g=l?Ai(e):null;return l&&function t(){const r=Ai(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const ji=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Ko(n),s=Go(n),l="y"===Yo(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Vo(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Mi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Vo(e,t),c={x:n,y:r},u=await xi(t,l),d=Yo(Ko(o)),p=Qo(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=Zo(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=Zo(h+u["y"===d?"top":"left"],h,h-u[e])}const g=s.fn({...t,[p]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[d]:a}}}}}},Bi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=Vo(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=Ko(o),b=Yo(s),v=Ko(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(v||!g?[ti(s)]:function(e){const t=ti(e);return[ei(e),t,ei(t)]}(s)),k="none"!==h;!p&&k&&x.push(...function(e,t,n,r){const o=Go(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Ko(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ei)))),i}(s,g,h,w));const _=[s,...x],C=await xi(t,m),E=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(C[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Go(e),o=Jo(e),i=Xo(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ti(a)),[a,ti(a)]}(o,a,w);E.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every((e=>e<=0))){var A,O;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(O=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=S.filter((e=>{if(k){const t=Yo(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ui=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Vo(e,t)||{};if(null==c)return{};const d=ni(u),p={x:n,y:r},f=Jo(o),h=Xo(f),g=await a.getDimensions(c),m="y"===f,y=m?"top":"left",b=m?"bottom":"right",v=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[f]-p[f]-i.floating[h],x=p[f]-i.reference[f],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=k?k[v]:0;_&&await(null==a.isElement?void 0:a.isElement(k))||(_=s.floating[v]||i.floating[h]);const C=w/2-x/2,E=_/2-g[h]/2-1,S=Mo(d[y],E),A=Mo(d[b],E),O=S,T=_-g[h]-A,R=_/2-g[h]/2+C,F=Zo(O,R,T),N=!l.arrow&&null!=Go(o)&&R!==F&&i.reference[h]/2-(R<O?S:A)-g[h]/2<0,P=N?R<O?R-O:R-T:0;return{[f]:p[f]+P,data:{[f]:F,centerOffset:R-F-P,...N&&{alignmentOffset:P}},reset:N}}});var qi="undefined"!=typeof document?Nt:Ft;function Hi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Hi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Hi(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function $i(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wi(e,t){const n=$i(e);return Math.round(t*n)/n}function Zi(e){const t=Pt(e);return qi((()=>{t.current=e})),t}const Vi=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ui({element:n.current,padding:r}).fn(t):{}:n?Ui({element:n,padding:r}).fn(t):{};var o}}),Ki=(e,t)=>({...Mi(e),options:[e,t]}),Gi=(e,t)=>({...Bi(e),options:[e,t]}),Qi=(e,t)=>({...Vi(e),options:[e,t]});function Xi(e){return Dt((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Yi={...Qn},Ji=Yi.useInsertionEffect||(e=>e());function ea(e){const t=Pt((()=>{}));return Ji((()=>{t.current=e})),It((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var ta="undefined"!=typeof document?Nt:Ft;function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}let ra=!1,oa=0;const ia=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oa++,aa=Yi.useId||function(){const[e,t]=Tt((()=>ra?ia():void 0));return ta((()=>{null==e&&t(ia())}),[]),Ft((()=>{ra=!0}),[]),e},sa=ht(null),la=ht(null),ca=()=>{var e;return(null==(e=zt(sa))?void 0:e.id)||null},ua=()=>zt(la);function da(e){return"data-floating-ui-"+e}function pa(e){const t=Pt(e);return ta((()=>{t.current=e})),t}const fa=da("safe-polygon");function ha(e,t,n){return n&&!Do(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}const ga=()=>{},ma=ht({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:ga,setState:ga,isInstantPhase:!1});function ya(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=Rt(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=Pt(null),s=It((e=>{i({currentId:e})}),[]);return ta((()=>{o.currentId?null===a.current?a.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),a.current=null)}),[o.currentId,o.isInstantPhase]),$e(ma.Provider,{value:Dt((()=>({...o,setState:i,setCurrentId:s})),[o,s])},t)}function ba(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const va=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function wa(e,t){const n=vi(e,va());"prev"===t&&n.reverse();const r=n.indexOf(To(Io(e)));return n.slice(r+1)[0]}function xa(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ro(n,r)}function ka(e){vi(e,va()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function _a(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Ca={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ea(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Sa=on((function(e,t){const[n,r]=Tt();return ta((()=>(Po()&&r("button"),document.addEventListener("keydown",Ea),()=>{document.removeEventListener("keydown",Ea)})),[]),$e("span",na({},e,{ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[da("focus-guard")]:"",style:Ca}))})),Aa=ht(null),Oa=da("portal");function Ta(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=aa(),o=Ra(),[i,a]=Tt(null),s=Pt(null);return ta((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),ta((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Oa,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),ta((()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!ho(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Oa,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=Tt(null),l=Pt(null),c=Pt(null),u=Pt(null),d=Pt(null),p=null==a?void 0:a.modal,f=null==a?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return Ft((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&xa(e)&&("focusin"===e.type?_a:ka)(i)}}),[i,o,p]),Ft((()=>{i&&(f||_a(i))}),[f,i]),$e(Aa.Provider,{value:Dt((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},h&&i&&$e(Sa,{"data-type":"outside",ref:l,onFocus:e=>{if(xa(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=wa(document.body,"prev")||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),h&&i&&$e("span",{"aria-owns":i.id,style:Ca}),i&&vn(t,i),h&&i&&$e(Sa,{"data-type":"outside",ref:c,onFocus:e=>{if(xa(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=wa(document.body,"next")||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Ra=()=>zt(Aa),Fa="data-floating-ui-focusable",Na={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pa={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},La=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Da(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=aa(),i=Pt({}),[a]=Tt((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=ca(),[l,c]=Tt(r.reference),u=ea(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=Dt((()=>({setPositionReference:c})),[]),p=Dt((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return Dt((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=Tt(null),[s,l]=Tt(null),c=(null==o?void 0:o.domReference)||i,u=Pt(null),d=ua();ta((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Tt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=Tt(r);Hi(p,r)||f(r);const[h,g]=Tt(null),[m,y]=Tt(null),b=It((e=>{e!==k.current&&(k.current=e,g(e))}),[]),v=It((e=>{e!==_.current&&(_.current=e,y(e))}),[]),w=i||h,x=a||m,k=Pt(null),_=Pt(null),C=Pt(u),E=null!=l,S=Zi(l),A=Zi(o),O=Zi(c),T=It((()=>{if(!k.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),((e,t,n)=>{const r=new Map,o={platform:Ii,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=wi(c,r,l),p=r,f={},h=0;for(let g=0;g<s.length;g++){const{name:n,fn:i}=s[g],{x:m,y:y,data:b,reset:v}=await i({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,f={...f,[n]:{...f[n],...b}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=wi(c,p,l))),g=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})})(k.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==O.current};R.current&&!Hi(C.current,t)&&(C.current=t,Zn((()=>{d(t)})))}))}),[p,t,n,A,O]);qi((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const R=Pt(!1);qi((()=>(R.current=!0,()=>{R.current=!1})),[]),qi((()=>{if(w&&(k.current=w),x&&(_.current=x),w&&x){if(S.current)return S.current(w,x,T);T()}}),[w,x,T,S,E]);const F=Dt((()=>({reference:k,floating:_,setReference:b,setFloating:v})),[b,v]),N=Dt((()=>({reference:w,floating:x})),[w,x]),P=Dt((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Wi(N.floating,u.x),r=Wi(N.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...$i(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,N.floating,u.x,u.y]);return Dt((()=>({...u,update:T,refs:F,elements:N,floatingStyles:P})),[u,T,F,N,P])}({...e,elements:{...o,...s&&{reference:s}}}),f=It((e=>{const t=ho(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),h=It((e=>{(ho(e)||null===e)&&(u.current=e,a(e)),(ho(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ho(e))&&p.refs.setReference(e)}),[p.refs]),g=Dt((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),m=Dt((()=>({...p.elements,domReference:c})),[p.elements,c]),y=Dt((()=>({...p,...r,refs:g,elements:m,nodeId:t})),[p,g,m,t,r]);return ta((()=>{r.dataRef.current.floatingContext=y;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),Dt((()=>({...p,context:y,refs:g,elements:m})),[p,g,m,y])}function Ia(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=Pt(!1),u=Pt(),d=Pt(!0);Ft((()=>{if(!s)return;const e=uo(a.domReference);function t(){!n&&go(a.domReference)&&a.domReference===To(Io(a.domReference))&&(c.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),Ft((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}}),[o,s]),Ft((()=>()=>{clearTimeout(u.current)}),[]);const p=Dt((()=>({onPointerDown(e){(function(e){return!No().includes("jsdom/")&&(!Lo()&&0===e.width&&0===e.height||Lo()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=jo(e.nativeEvent);if(l&&ho(t))try{if(Po()&&Fo().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(hg){if(!(d.current||go(n=t)&&n.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")))return}var n;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=ho(t)&&t.hasAttribute(da("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=To(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Ro(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Ro(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,l]);return Dt((()=>s?{reference:p}:{}),[s,p])}const za="active",ja="selected";function Ma(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[za]:t,[ja]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Fa]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[za,ja].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Ba=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ua(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ua(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ua(e))&&(r&&(r+=" "),r+=t);return r}const Ha=e=>{const t=Va(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),$a(n,t)||Za(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},$a=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?$a(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join("-");return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId},Wa=/^\[(.+)\]$/,Za=e=>{if(Wa.test(e)){const t=Wa.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Va=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xa(Object.entries(e.classGroups),n).forEach((([e,n])=>{Ka(n,r,e,t)})),r},Ka=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return Qa(e)?void Ka(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{Ka(o,Ga(t,e),n,r)}))}else(""===e?t:Ga(t,e)).classGroupId=n}))},Ga=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},Qa=e=>e.isThemeGetter,Xa=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,Ya=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ja=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===o&&(r||e.slice(d,d+i)===t)){n.push(e.slice(l,d)),l=d+i;continue}if("/"===c){a=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},es=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},ts=/\s+/;function ns(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=rs(e))&&(r&&(r+=" "),r+=t);return r}const rs=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rs(e[r]))&&(n&&(n+=" "),n+=t);return n};function os(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:Ya(e.cacheSize),parseClassName:Ja(e),...Ha(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(ts);let s="";for(let l=a.length-1;l>=0;l-=1){const e=a[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let p=Boolean(d),f=r(p?u.substring(0,d):u);if(!f){if(!p){s=e+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=e+(s.length>0?" "+s:s);continue}p=!1}const h=es(t).join(":"),g=c?h+"!":h,m=g+f;if(i.includes(m))continue;i.push(m);const y=o(f,p);for(let n=0;n<y.length;++n){const e=y[n];i.push(g+e)}s=e+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(ns.apply(null,arguments))}}const is=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},as=/^\[(?:([a-z-]+):)?(.+)\]$/i,ss=/^\d+\/\d+$/,ls=new Set(["px","full","screen"]),cs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,us=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ds=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ps=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hs=e=>ms(e)||ls.has(e)||ss.test(e),gs=e=>Ts(e,"length",Rs),ms=e=>Boolean(e)&&!Number.isNaN(Number(e)),ys=e=>Ts(e,"number",ms),bs=e=>Boolean(e)&&Number.isInteger(Number(e)),vs=e=>e.endsWith("%")&&ms(e.slice(0,-1)),ws=e=>as.test(e),xs=e=>cs.test(e),ks=new Set(["length","size","percentage"]),_s=e=>Ts(e,ks,Fs),Cs=e=>Ts(e,"position",Fs),Es=new Set(["image","url"]),Ss=e=>Ts(e,Es,Ps),As=e=>Ts(e,"",Ns),Os=()=>!0,Ts=(e,t,n)=>{const r=as.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Rs=e=>us.test(e)&&!ds.test(e),Fs=()=>!1,Ns=e=>ps.test(e),Ps=e=>fs.test(e),Ls=()=>{const e=is("colors"),t=is("spacing"),n=is("blur"),r=is("brightness"),o=is("borderColor"),i=is("borderRadius"),a=is("borderSpacing"),s=is("borderWidth"),l=is("contrast"),c=is("grayscale"),u=is("hueRotate"),d=is("invert"),p=is("gap"),f=is("gradientColorStops"),h=is("gradientColorStopPositions"),g=is("inset"),m=is("margin"),y=is("opacity"),b=is("padding"),v=is("saturate"),w=is("scale"),x=is("sepia"),k=is("skew"),_=is("space"),C=is("translate"),E=()=>["auto",ws,t],S=()=>[ws,t],A=()=>["",hs,gs],O=()=>["auto",ms,ws],T=()=>["","0",ws],R=()=>[ms,ws];return{cacheSize:500,separator:":",theme:{colors:[Os],spacing:[hs,gs],blur:["none","",xs,ws],brightness:R(),borderColor:[e],borderRadius:["none","","full",xs,ws],borderSpacing:S(),borderWidth:A(),contrast:R(),grayscale:T(),hueRotate:R(),invert:T(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[vs,gs],inset:E(),margin:E(),opacity:R(),padding:S(),saturate:R(),scale:R(),sepia:T(),skew:R(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",ws]}],container:["container"],columns:[{columns:[xs]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ws]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",bs,ws]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ws]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",bs,ws]}],"grid-cols":[{"grid-cols":[Os]}],"col-start-end":[{col:["auto",{span:["full",bs,ws]},ws]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Os]}],"row-start-end":[{row:["auto",{span:[bs,ws]},ws]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ws]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ws]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ws,t]}],"min-w":[{"min-w":[ws,t,"min","max","fit"]}],"max-w":[{"max-w":[ws,t,"none","full","min","max","fit","prose",{screen:[xs]},xs]}],h:[{h:[ws,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ws,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ws,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ws,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xs,gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ys]}],"font-family":[{font:[Os]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ws]}],"line-clamp":[{"line-clamp":["none",ms,ys]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hs,ws]}],"list-image":[{"list-image":["none",ws]}],"list-style-type":[{list:["none","disc","decimal",ws]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hs,gs]}],"underline-offset":[{"underline-offset":["auto",hs,ws]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ws]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ws]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Cs]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_s]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ss]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[hs,ws]}],"outline-w":[{outline:[hs,gs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[hs,gs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xs,As]}],"shadow-color":[{shadow:[Os]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xs,ws]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ws]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",ws]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",ws]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[bs,ws]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ws]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ws]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ws]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hs,gs,ys]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ds=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:o,extend:i={},override:a={}})=>{Is(e,"cacheSize",t),Is(e,"prefix",n),Is(e,"separator",r),Is(e,"experimentalParseClassName",o);for(const s in a)zs(e[s],a[s]);for(const s in i)js(e[s],i[s]);return e},Is=(e,t,n)=>{void 0!==n&&(e[t]=n)},zs=(e,t)=>{if(t)for(const n in t)Is(e,n,t[n])},js=(e,t)=>{if(t)for(const n in t){const r=t[n];void 0!==r&&(e[n]=(e[n]||[]).concat(r))}},Ms=(e,...t)=>"function"==typeof e?os(Ls,e,...t):os((()=>Ds(Ls(),e)),...t),Bs=os(Ls);var Us=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,qs=e=>!e||"object"!=typeof e||0===Object.keys(e).length;function Hs(e,t){e.forEach((function(e){Array.isArray(e)?Hs(e,t):t.push(e)}))}function $s(e){let t=[];return Hs(e,t),t}var Ws=(...e)=>$s(e).filter(Boolean),Zs=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let r=e[i],o=t[i];"object"==typeof r&&"object"==typeof o?n[i]=Zs(r,o):Array.isArray(r)||Array.isArray(o)?n[i]=Ws(o,r):n[i]=o+" "+r}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Vs=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,Ks={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Gs=e=>e||void 0,Qs=(...e)=>Gs($s(e).filter(Boolean).join(" ")),Xs=null,Ys={},Js=!1,el=(...e)=>t=>t.twMerge?((!Xs||Js)&&(Js=!1,Xs=qs(Ys)?Bs:Ms({...Ys,extend:{theme:Ys.theme,classGroups:Ys.classGroups,conflictingClassGroupModifiers:Ys.conflictingClassGroupModifiers,conflictingClassGroups:Ys.conflictingClassGroups,...Ys.extend}})),Gs(Xs(Qs(e)))):Qs(e),tl=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Qs(e[n],t[n]):e[n]=t[n];return e};function nl(e,t){return Object.fromEntries(Object.entries(e).map((([e,n])=>[t(n,e),n])))}var rl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var il={},al={};!function(e){function t(e,t){return{handler:e,config:t}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),t.withOptions=function(e,t=()=>({})){const n=function(n){return{__options:n,handler:e(n),config:t(n)}};return n.__isOptionsFunction=!0,n.__pluginFunction=e,n.__configFunction=t,n};const n=t}(al),function(e){function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const n=t(al).default}(il);const sl=ol((il.__esModule?il:{default:il}).default),ll="var(--cl-font-family-body)",cl="var(--cl-font-family-code)",ul="type",dl={normal:"400",medium:"500",semibold:"600",bold:"700",link:"500"},pl=(e,t)=>Object.fromEntries(Object.entries(e).flatMap((([e,n])=>Object.entries(dl).filter((([e])=>t.includes(e))).map((([t,r])=>[`${e}${"normal"===t?"":`-${t}`}`,{...n,fontWeight:r}]))))),fl={fontFamily:"var(--cl-font-family-display)",letterSpacing:"0px",fontWeight:dl.semibold,textTransform:"none"},hl={500:{...fl,fontSize:"88px",lineHeight:"104px"},400:{...fl,fontSize:"64px",lineHeight:"84px"},300:{...fl,fontSize:"48px",lineHeight:"56px"},200:{...fl,fontSize:"32px",lineHeight:"40px"},100:{...fl,fontSize:"24px",lineHeight:"32px"},50:{...fl,fontSize:"20px",lineHeight:"24px"}},gl={fontFamily:ll,letterSpacing:"0px",fontWeight:dl.normal,textTransform:"none"},ml=pl({300:{...gl,fontSize:"18px",lineHeight:"28px"},200:{...gl,fontSize:"16px",lineHeight:"24px"},100:{...gl,fontSize:"14px",lineHeight:"20px"}},["normal","medium","semibold","bold","link"]),yl={fontFamily:ll,letterSpacing:"0px",fontWeight:dl.medium,textTransform:"none"},bl={lg:{...yl,fontSize:"16px",lineHeight:"24px"},md:{...yl,fontSize:"14px",lineHeight:"20px"},sm:{...yl,fontSize:"14px",lineHeight:"20px"},xs:{...yl,fontSize:"12px",lineHeight:"18px"}},vl={fontFamily:ll,letterSpacing:"0px",fontWeight:dl.medium,textTransform:"none"},wl={...vl,fontFamily:cl},xl={sm:{...vl,fontSize:"11px",lineHeight:"20px"},md:{...vl,fontSize:"12px",lineHeight:"24px"},lg:{...vl,fontSize:"14px",lineHeight:"28px"},"code-sm":{...wl,fontSize:"11px",lineHeight:"20px"},"code-md":{...wl,fontSize:"12px",lineHeight:"24px"},"code-lg":{...wl,fontSize:"14px",lineHeight:"28px"}},kl={fontFamily:ll,fontSize:"12px",lineHeight:"16px",letterSpacing:"0",fontWeight:dl.normal,textTransform:"none"},_l={fontFamily:cl,letterSpacing:"0px",fontWeight:dl.normal,textTransform:"none"},Cl=pl({300:{..._l,fontSize:"18px",lineHeight:"28px"},200:{..._l,fontSize:"16px",lineHeight:"24px"},100:{..._l,fontSize:"14px",lineHeight:"20px"}},["normal","bold"]),El={label:{fontFamily:ll,fontSize:"12px",lineHeight:"16px",letterSpacing:"0.5px",fontWeight:dl.semibold,textTransform:"none"},overline:{fontFamily:ll,fontSize:"12px",lineHeight:"18px",letterSpacing:"0.5px",fontWeight:dl.medium,textTransform:"uppercase"},"overline-lg":{fontFamily:ll,fontSize:"16px",lineHeight:"24px",letterSpacing:"0.5px",fontWeight:dl.medium,textTransform:"uppercase"},caption:kl,"caption-medium":{...kl,fontWeight:dl.medium},"caption-semibold":{...kl,fontWeight:dl.semibold},kbd:{fontFamily:cl,fontSize:"12px",lineHeight:"12px",letterSpacing:"0px",fontWeight:dl.normal,textTransform:"none"}},Sl={display:hl,body:ml,button:bl,badge:xl,code:Cl},Al=(e,t)=>`${ul}${t?`-${t}`:""}-${e}`;sl((({addComponents:e})=>{e({...Object.entries(Sl).reduce(((e,[t,n])=>({...e,...nl(n,((e,n)=>`.${Al(n,t)}`))})),{}),...nl(El,((e,t)=>`.${Al(t)}`))})}));const Ol=Object.entries(Sl).reduce(((e,[t,n])=>[...e,...Object.keys(n).map((e=>`${t}-${e}`))]),[]),Tl={extend:{classGroups:{[ul]:[{[ul]:Ol}]}}},Rl=Ms((e=>Ds(e,Tl))),Fl=(Nl={twMerge:!0,twMergeConfig:Tl},(e,t)=>((e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:a=[],defaultVariants:s={}}=e,l={...Ks,...t},c=null!=n&&n.base?Qs(n.base,null==e?void 0:e.base):null==e?void 0:e.base,u=null!=n&&n.variants&&!qs(n.variants)?Zs(o,n.variants):o,d=null!=n&&n.defaultVariants&&!qs(n.defaultVariants)?{...n.defaultVariants,...s}:s;!qs(l.twMergeConfig)&&!((e,t)=>JSON.stringify(e)===JSON.stringify(t))(l.twMergeConfig,Ys)&&(Js=!0,Ys=l.twMergeConfig);let p=qs(null==n?void 0:n.slots),f=qs(r)?{}:{base:Qs(null==e?void 0:e.base,p&&(null==n?void 0:n.base)),...r},h=p?f:tl({...null==n?void 0:n.slots},qs(f)?{base:null==e?void 0:e.base}:f),g=qs(null==n?void 0:n.compoundVariants)?i:Ws(null==n?void 0:n.compoundVariants,i),m=e=>{if(qs(u)&&qs(r)&&p)return el(c,null==e?void 0:e.class,null==e?void 0:e.className)(l);if(g&&!Array.isArray(g))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof g);if(a&&!Array.isArray(a))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof a);let t=(e,t,n=[],r)=>{let o=n;if("string"==typeof t)o=o.concat(Vs(t).split(" ").map((t=>`${e}:${t}`)));else if(Array.isArray(t))o=o.concat(t.reduce(((t,n)=>t.concat(`${e}:${n}`)),[]));else if("object"==typeof t&&"string"==typeof r)for(let i in t)if(t.hasOwnProperty(i)&&i===r){let n=t[i];if(n&&"string"==typeof n){let t=Vs(n);o[r]?o[r]=o[r].concat(t.split(" ").map((t=>`${e}:${t}`))):o[r]=t.split(" ").map((t=>`${e}:${t}`))}else Array.isArray(n)&&n.length>0&&(o[r]=n.reduce(((t,n)=>t.concat(`${e}:${n}`)),[]))}return o},n=(n,r=u,o=null,i=null)=>{var a;let s=r[n];if(!s||qs(s))return null;let c=null!=(a=null==i?void 0:i[n])?a:null==e?void 0:e[n];if(null===c)return null;let p=Us(c),f=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||!0===l.responsiveVariants,h=null==d?void 0:d[n],g=[];if("object"==typeof p&&f)for(let[e,u]of Object.entries(p)){let n=s[u];"initial"!==e?Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(e)||(g=t(e,n,g,o)):h=u}let m=s[(null!=p&&"object"!=typeof p?p:Us(h))||"false"];return"object"==typeof g&&"string"==typeof o&&g[o]?tl(g,m):g.length>0?(g.push(m),g):m},o=(e,t)=>{if(!u||"object"!=typeof u)return null;let r=new Array;for(let o in u){let i=n(o,u,e,t),a="base"===e&&"string"==typeof i?i:i&&i[e];a&&(r[r.length]=a)}return r},i={};for(let r in e)void 0!==e[r]&&(i[r]=e[r]);let s=(t,n)=>{var r;let o="object"==typeof(null==e?void 0:e[t])?{[t]:null==(r=e[t])?void 0:r.initial}:{};return{...d,...i,...o,...n}},f=(e=[],t)=>{let n=[];for(let{class:r,className:o,...i}of e){let e=!0;for(let[n,r]of Object.entries(i)){let o=s(n,t);if(Array.isArray(r)){if(!r.includes(o[n])){e=!1;break}}else if(o[n]!==r){e=!1;break}}e&&(r&&n.push(r),o&&n.push(o))}return n},m=e=>{let t=f(g,e);if(!Array.isArray(t))return t;let n={};for(let r of t)if("string"==typeof r&&(n.base=el(n.base,r)(l)),"object"==typeof r)for(let[e,t]of Object.entries(r))n[e]=el(n[e],t)(l);return n},y=e=>{if(a.length<1)return null;let t={};for(let{slots:n=[],class:r,className:o,...i}of a){if(!qs(i)){let t=!0;for(let n of Object.keys(i)){let r=s(n,e)[n];if(void 0===r||(Array.isArray(i[n])?!i[n].includes(r):i[n]!==r)){t=!1;break}}if(!t)continue}for(let e of n)t[e]=t[e]||[],t[e].push([r,o])}return t};if(!qs(r)||!p){let e={};if("object"==typeof h&&!qs(h))for(let t of Object.keys(h))e[t]=e=>{var n,r;return el(h[t],o(t,e),(null!=(n=m(e))?n:[])[t],(null!=(r=y(e))?r:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(l)};return e}return el(c,u?Object.keys(u).map((e=>n(e,u))):null,f(g),null==e?void 0:e.class,null==e?void 0:e.className)(l)};return m.variantKeys=(()=>{if(u&&"object"==typeof u)return Object.keys(u)})(),m.extend=n,m.base=c,m.slots=h,m.variants=u,m.defaultVariants=d,m.compoundSlots=a,m.compoundVariants=g,m})(e,t?Zs(Nl,t):Nl));var Nl;function Pl(...e){return Rl(qa(e))}function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(null,arguments)}function Dl(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Il(e,t){return(Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zl={exports:{}};function jl(){}function Ml(){}Ml.resetWarningCache=jl,zl.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ml,resetWarningCache:jl};return n.PropTypes=n,n}();const Bl=ol(zl.exports),Ul=Gn.createContext(null);var ql="unmounted",Hl="exited",$l="entering",Wl="entered",Zl="exiting",Vl=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Hl,r.appearStatus=$l):o=Wl:o=t.unmountOnExit||t.mountOnEnter?ql:Hl,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Il(t,n),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ql?{status:Hl}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$l&&n!==Wl&&(t=$l):n!==$l&&n!==Wl||(t=Zl)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$l){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Gn.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hl&&this.setState({status:ql})},o.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Gn.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:$l},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Wl},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Wl},(function(){t.props.onEntered(i)}))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Gn.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Zl},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Hl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Hl},(function(){e.props.onExited(r)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Gn.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===ql)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Dl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Gn.createElement(Ul.Provider,{value:null},"function"==typeof n?n(e,r):Gn.cloneElement(Gn.Children.only(n),r))},r}(Gn.Component);function Kl(){}Vl.contextType=Ul,Vl.propTypes={},Vl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kl,onEntering:Kl,onEntered:Kl,onExit:Kl,onExiting:Kl,onExited:Kl},Vl.UNMOUNTED=ql,Vl.EXITED=Hl,Vl.ENTERING=$l,Vl.ENTERED=Wl,Vl.EXITING=Zl;const Gl=e=>{const[t,n]=e.split("-");return{side:t,alignment:n}},Ql=tn((e=>Yn("svg",{viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",...e,children:[Yn("path",{d:"m1.17157 4v1l4.82843 4 4.82843-4v-.997864z",className:"fill-neutral-300 dark:fill-neutral-400"}),Yn("path",{d:"m6 9.580078c-.562012 0-.961426-.334473-1.212891-.585938l-2.34668-2.34668c-.573242-.583984-.76416-.647461-1.27002-.647461-.276367 0-.5-.223633-.5-.5s.223633-.5.5-.5c.817871 0 1.261719.211914 1.980469.943848l2.343262 2.343262c.13623.13623.317383.292969.505859.292969s.369629-.156738.505859-.292969l2.34668-2.34668c.714844-.728516 1.15918-.94043 1.977539-.94043.276367 0 .5.223633.5.5s-.223633.5-.5.5c-.506836 0-.697266.063477-1.267578.644043l-2.349609 2.350098c-.251465.251465-.650879.585938-1.212891.585938z",className:"fill-neutral-400 dark:fill-neutral-500"})]}))),Xl=on((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},style:{transform:i,...a}={},...s}=e;if(!r)return null;const{side:l}=Gl(n),c={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"}[l];return Yn("div",{...s,"aria-hidden":!0,ref:t,style:{width:12,height:12,transformOrigin:"",position:"absolute",pointerEvents:"none",left:null!=(null==o?void 0:o.x)?o.x:"",top:null!=(null==o?void 0:o.y)?o.y:"",[l]:"100%",transform:`${c} ${i??""}`,...a},children:Yn(Ql,{style:{position:"absolute",transform:"translateY(-50%)"}})})}));function Yl({initialOpen:e=!1,placement:t="top",open:n,onOpenChange:r,sideOffset:o=4,collisionPadding:i=12,arrowPadding:a=4,disabled:s=!1}={}){const[l,c]=Tt(e),u=Pt(null),d=!s&&(n??l),p=r??c,f=Da({placement:t,open:d,onOpenChange:p,whileElementsMounted:zi,middleware:[(h=o+3,{...ji(h),options:[h,undefined]}),Gi({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:i}),Ki({padding:i}),Qi({element:u,padding:a})]});var h;const{delay:g}=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:a=!0}=t,s=null!=i?i:o,l=zt(ma),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:f}=l;return ta((()=>{a&&c&&(p({delay:{open:1,close:ha(d,"close")}}),c!==s&&r(!1))}),[a,s,r,p,c,d]),ta((()=>{function e(){r(!1),p({delay:d,currentId:null})}if(a&&c&&!n&&c===s){if(f){const t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}}),[a,n,p,c,s,r,d,f]),ta((()=>{a&&u!==ga&&n&&u(s)}),[a,n,u,s]),l}(f.context),m=f.context,y=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}=t,f=ua(),h=ca(),g=pa(c),m=pa(l),y=pa(n),b=Pt(),v=Pt(-1),w=Pt(),x=Pt(-1),k=Pt(!0),_=Pt(!1),C=Pt((()=>{})),E=Pt(!1),S=It((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);Ft((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(v.current),clearTimeout(x.current),k.current=!0,E.current=!1)}}),[s,i]),Ft((()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){S()&&r(!1,e,"hover")}const t=Io(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,g,S]);const A=It((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ha(m.current,"close",b.current);o&&!w.current?(clearTimeout(v.current),v.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(v.current),r(!1,e,n))}),[m,r]),O=ea((()=>{C.current(),w.current=void 0})),T=ea((()=>{if(_.current){const e=Io(a.floating).body;e.style.pointerEvents="",e.removeAttribute(fa),_.current=!1}})),R=ea((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));Ft((()=>{if(s&&ho(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(v.current),k.current=!1,u&&!Do(b.current)||d>0&&!ha(m.current,"open"))return;const t=ha(m.current,"open",b.current);t?v.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(R())return;C.current();const t=Io(a.floating);if(clearTimeout(x.current),E.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(v.current),w.current=g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){T(),O(),R()||A(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(C.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!Ro(a.floating,e.relatedTarget))&&A(e)}function l(e){R()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){T(),O(),R()||A(e)}})(e))}}),[a,s,e,u,d,p,A,O,T,r,n,y,f,m,g,o,R]),ta((()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&S()){_.current=!0;const e=a.floating;if(ho(a.domReference)&&e){var t;const n=Io(a.floating).body;n.setAttribute(fa,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===h)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,h,a,f,g,S]),ta((()=>{n||(b.current=void 0,E.current=!1,O(),T())}),[n,O,T]),Ft((()=>()=>{O(),clearTimeout(v.current),clearTimeout(x.current),T()}),[s,a.domReference,O,T]);const F=Dt((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){k.current||y.current||r(!0,t,"hover")}u&&!Do(b.current)||n||0===d||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===b.current?o():(E.current=!0,x.current=window.setTimeout(o,d)))}}}),[u,r,n,y,d]),N=Dt((()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(e){R()||A(e.nativeEvent,!1)}})),[A,R]);return Dt((()=>s?{reference:F,floating:N}:{}),[s,F,N])}(m,{move:!1,enabled:!s&&null==n,delay:g}),b=Ia(m,{enabled:null==n}),v=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=t,g=ua(),m=ea("function"==typeof l?l:()=>!1),y="function"==typeof l?m:l,b=Pt(!1),v=Pt(!1),{escapeKey:w,outsidePress:x}=La(f),{escapeKey:k,outsidePress:_}=La(h),C=Pt(!1),E=ea((e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(C.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=g?ba(g.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=ea((e=>{var t;const n=()=>{var t;E(e),null==(t=jo(e))||t.removeEventListener("keydown",n)};null==(t=jo(e))||t.addEventListener("keydown",n)})),A=ea((e=>{var t;const n=b.current;b.current=!1;const a=v.current;if(v.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const s=jo(e),l="["+da("inert")+"]",u=Io(o.floating).querySelectorAll(l);let d=ho(s)?s:null;for(;d&&!ko(d);){const e=Eo(d);if(ko(e)||!ho(e))break;d=e}if(u.length&&ho(s)&&!s.matches("html,body")&&!Ro(s,o.floating)&&Array.from(u).every((e=>!Ro(d,e))))return;if(go(s)&&R){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===_o(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=g&&ba(g.nodesRef.current,p).some((t=>{var n;return zo(e,null==(n=t.context)?void 0:n.elements.floating)}));if(zo(e,o.floating)||zo(e,o.domReference)||f)return;const h=g?ba(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),O=ea((e=>{var t;const n=()=>{var t;A(e),null==(t=jo(e))||t.removeEventListener(c,n)};null==(t=jo(e))||t.addEventListener(c,n)}));Ft((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout((()=>{C.current=!1}),xo()?5:0)}const d=Io(o.floating);s&&(d.addEventListener("keydown",k?S:E,k),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),y&&d.addEventListener(c,_?O:A,_);let f=[];return p&&(ho(o.domReference)&&(f=Ao(o.domReference)),ho(o.floating)&&(f=f.concat(Ao(o.floating))),!ho(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(Ao(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",k?S:E,k),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),y&&d.removeEventListener(c,_?O:A,_),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,y,c,n,r,p,a,w,x,E,k,S,A,_,O]),Ft((()=>{b.current=!1}),[y,c]);const T=Dt((()=>({onKeyDown:E,[Na[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[E,r,u,d]),R=Dt((()=>({onKeyDown:E,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[Pa[c]]:()=>{b.current=!0}})),[E,c]);return Dt((()=>a?{reference:T,floating:R}:{}),[a,T,R])}(m),w=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=Ba.get(a))?n:a,l=aa(),c=null!=ca(),u=Dt((()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[s,o,c,r,l,a]),d=Dt((()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}}),[s,o,l,a]),p=It((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return Dt((()=>i?{reference:u,floating:d,item:p}:{}),[i,u,d,p])}(m,{role:"tooltip"}),x=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=It((t=>Ma(t,e,"reference")),t),i=It((t=>Ma(t,e,"floating")),n),a=It((t=>Ma(t,e,"item")),r);return Dt((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([y,b,v,w]);return Dt((()=>({open:d,setOpen:p,...x,...f,refs:{...f.refs,arrow:u}})),[d,p,x,f])}const Jl=ht(null),ec=()=>{const e=zt(Jl);if(null==e)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},tc=on((function({children:e,...t},n){const r=ec(),o=e.ref,i=Xi([r.refs.setReference,n,o]);if(Mn(e))return qn(e,r.getReferenceProps({ref:i,...t,...e.props,"data-state":r.open?"open":"closed"}));throw new Error("TooltipTrigger requires a valid React element as its child")})),nc=({open:e,children:t})=>Yn(Vl,{in:e,appear:!0,timeout:300,mountOnEnter:!0,unmountOnExit:!0,children:Yn(Ta,{children:t})}),rc=on((({className:e,children:t,style:n,...r},o)=>{const i=ec(),a=Xi([i.refs.setFloating,o]),{side:s,alignment:l}=Gl(i.placement),c=i.middlewareData.arrow,u=c&&null!==(null==c?void 0:c.x)?`${c.x}px`:"50%",d=c&&null!==(null==c?void 0:c.y)?`${c.y}px`:"50%",p={top:`${u} calc(100% + 3px)`,left:`calc(100% + 3px) ${d}`,right:`-3px ${d}`,bottom:`${u} -3px`}[s];return Yn(Vl,{in:i.open,appear:!0,timeout:300,mountOnEnter:!0,unmountOnExit:!0,children:Yn(Ta,{children:Yn("div",{ref:a,style:{zIndex:100,...i.floatingStyles,...n},...i.getFloatingProps(r),children:Yn("div",{"data-side":s,"data-alignment":l||"center","data-state":i.open?"open":"closed",className:Pl("type-caption pointer-events-none relative max-w-[300px] rounded-1 bg-neutral-300 px-4 py-2 text-text-strong shadow-elev-0 outline outline-1 -outline-offset-1 outline-neutral-400 dark:bg-neutral-400 dark:outline-neutral-500","animate-in fade-in-0 zoom-in-75 fill-mode-forwards data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-75 duration-100 data-[state=closed]:duration-100",e),...r,style:{transformOrigin:p},children:[t,Yn(Xl,{ref:i.refs.arrow,context:i.context,"data-arrow":""})]})})})})}));rc.displayName="TooltipContent";const oc=tn(on((({children:e,content:t,initialOpen:n,placement:r,open:o,onOpenChange:i,sideOffset:a,collisionPadding:s,arrowPadding:l,disabled:c=!1,...u},d)=>{const p=Yl({initialOpen:n,placement:r,open:o,onOpenChange:i,sideOffset:a,collisionPadding:s,arrowPadding:l,disabled:c});return Yn(Jl.Provider,{value:p,children:[Yn(tc,{children:e}),Yn(nc,{open:p.open,children:Yn(rc,{ref:d,...u,children:t})})]})})));function ic(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}oc.displayName="Tooltip",tn((({children:e})=>Yn(ya,{delay:{open:500,close:0},timeoutMs:400,children:e})));var ac=on(((e,t)=>{const{children:n,...r}=e,o=sn.toArray(n),i=o.find(cc);if(i){const e=i.props.children,n=o.map((t=>t===i?sn.count(e)>1?sn.only(null):Mn(e)?e.props.children:null:t));return Yn(sc,{...r,ref:t,children:Mn(e)?qn(e,void 0,n):null})}return Yn(sc,{...r,ref:t,children:n})}));ac.displayName="Slot";var sc=on(((e,t)=>{const{children:n,...r}=e;if(Mn(n)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(n);return qn(n,{...uc(r,n.props),ref:t?ic(t,e):e})}return sn.count(n)>1?sn.only(null):null}));sc.displayName="SlotClone";var lc=({children:e})=>Yn(Ve,{children:e});function cc(e){return Mn(e)&&e.type===lc}function uc(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const dc=Fl({base:"relative flex shrink-0 items-center justify-center outline outline-1 -outline-offset-1 focus-visible:outline-1",variants:{variant:{level0:"rounded-2 bg-surface-0 text-text-faint outline-border-0",level1:"rounded-2 bg-surface-1 text-text-faint outline-border-1",level2:"rounded-2 bg-surface-2 text-text-faint outline-border-2",outline:"rounded-2 bg-surface-0 text-text-primary outline-border-1",iconOnly:"rounded-2 bg-transparent text-text-primary outline-none",closeButton:"rounded-1 bg-transparent text-text-primary outline-none",sidebar:"rounded-2 bg-surface-0 text-text-primary outline-border-1",sidebarGlobal:"rounded-2 bg-transparent text-text-primary outline-none"},clickable:{true:"cursor-pointer focus-visible:outline-blue-700 focus-visible:ring focus-visible:ring-focus"},size:{xxSmall:"size-[20px]",xSmall:"size-[24px]",small:"size-[32px]",medium:"size-[36px]",large:"size-[40px]",xLarge:"size-[48px]"},disabled:{true:"cursor-not-allowed",false:""}},compoundVariants:[{variant:["level0","level1","level2"],clickable:!0,class:"shadow-elev-0"},{clickable:!0,variant:"level0",disabled:!1,class:"hover:bg-surface-0-hover active:bg-surface-0-active"},{clickable:!0,variant:"level1",disabled:!1,class:"hover:bg-surface-1-hover active:bg-surface-1-active"},{clickable:!0,variant:"level2",disabled:!1,class:"hover:bg-surface-2-hover active:bg-surface-2-active"},{clickable:!0,variant:"outline",disabled:!1,class:"hover:bg-surface-0-hover active:bg-surface-0-active"},{clickable:!0,variant:["iconOnly"],disabled:!1,class:"bg-transparent hover:bg-surface-0-hover active:bg-surface-0-active"},{clickable:!0,variant:["closeButton"],disabled:!1,class:"bg-transparent hover:bg-surface-2-hover active:bg-surface-2-active"},{clickable:!0,variant:"sidebar",disabled:!1,class:"hover:bg-surface-0-hover active:bg-surface-0-active"},{clickable:!0,variant:"sidebarGlobal",disabled:!1,class:"hover:bg-surface-1-hover active:bg-surface-1-active"},{variant:["level0","level1","level2","outline","sidebar"],disabled:!0,class:"bg-surface-disabled text-text-disabled outline-border-2"},{variant:["closeButton","iconOnly","sidebarGlobal"],disabled:!0,class:"bg-transparent text-text-disabled"}]}),pc={xxSmall:12,xSmall:12,small:16,medium:20,large:24,xLarge:32},fc=on((({className:e,variant:t,size:n,icon:r,asChild:o=!1,clickable:i,children:a,tooltipContent:s,...l},c)=>{const u=o?ac:i?"button":"div";let d;r&&(d=qn(r,{size:"closeButton"===t?16:pc[n]}));const p=Yn(u,{ref:c,className:Dt((()=>Pl(dc({variant:t,size:n,clickable:i,disabled:!!l.disabled}),e)),[e,i,n,t,l.disabled]),...i?{type:"button"}:{},...l,children:[Yn(lc,{children:a}),d]});return s?Yn(oc,{content:s,children:p}):p})),hc=tn(on(((e,t)=>Yn(fc,{ref:t,...e,clickable:!0}))));hc.displayName="IconFrameButton";var gc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},mc=Gn.createContext&&Gn.createContext(gc),yc=["attr","size","title"];function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bc.apply(this,arguments)}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){var r,o,i,a;r=e,o=t,i=n[t],(o="symbol"==typeof(a=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o))?a:a+"")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xc(e){return e&&e.map(((e,t)=>Gn.createElement(e.tag,wc({key:t},e.attr),xc(e.child))))}function kc(e){return t=>Gn.createElement(_c,bc({attr:wc({},e.attr)},t),xc(e.child))}function _c(e){var t=t=>{var n,{attr:r,size:o,title:i}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yc),s=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),Gn.createElement("svg",bc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:wc(wc({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&Gn.createElement("title",null,i),e.children)};return void 0!==mc?Gn.createElement(mc.Consumer,null,(e=>t(e))):t(gc)}const Cc=[12,14,16,24,32],Ec={12:"[&>svg]:stroke-[1.8px]",14:"[&>svg]:stroke-[1.7px]",16:"[&>svg]:stroke-[1.65px]",24:"[&>svg]:stroke-[1.5px]",32:"[&>svg]:stroke-[1.25px]"},Sc=on((({size:e=16,className:t,icon:n,...r},o)=>{const i=(e=>{for(let t=1;t<Cc.length;t++)if(e<Cc[t])return Cc[t-1];return Cc[Cc.length-1]})(e);return Yn("div",{ref:o,className:Pl(Ec[i],t),role:"img",...r,children:Yn(n,{size:e})})})),Ac=e=>{const t=on(((t,n)=>Yn(Sc,{ref:n,icon:e,...t})));return t.displayName=`FeatherIcon(${e.displayName||e.name||"UnknownIcon"})`,tn(t)},Oc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(e)})),Tc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)})),Rc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)})),Fc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 20h9"},child:[]},{tag:"path",attr:{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},child:[]}]})(e)}));Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(e)})),Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(e)}));const Nc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"polyline",attr:{points:"9 21 3 21 3 15"},child:[]},{tag:"line",attr:{x1:"21",y1:"3",x2:"14",y2:"10"},child:[]},{tag:"line",attr:{x1:"3",y1:"21",x2:"10",y2:"14"},child:[]}]})(e)})),Pc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},child:[]}]})(e)})),Lc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 14 10 14 10 20"},child:[]},{tag:"polyline",attr:{points:"20 10 14 10 14 4"},child:[]},{tag:"line",attr:{x1:"14",y1:"10",x2:"21",y2:"3"},child:[]},{tag:"line",attr:{x1:"3",y1:"21",x2:"10",y2:"14"},child:[]}]})(e)}));Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}));const Dc=Ac((function(e){return kc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)})),Ic=Yn("svg",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",className:"size-5 animate-spin stroke-zinc-400",children:Yn("path",{d:"M12 3v3m6.366-.366-2.12 2.12M21 12h-3m.366 6.366-2.12-2.12M12 21v-3m-6.366.366 2.12-2.12M3 12h3m-.366-6.366 2.12 2.12"})}),zc=()=>Yn("div",{className:"flex shrink-0 select-none items-center justify-center rounded-2 border border-border-1 p-4 text-text-strong",children:Yn("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yn("g",{clipPath:"url(#clip0_176_1424)",children:[Yn("path",{d:"M12.2344 8.45C11.6348 8.45 11.1094 8.77344 10.8164 9.25391C10.7383 9.38281 10.5977 9.47266 10.4492 9.47266H8.25C7.99609 9.46484 7.62891 9.17969 7.82031 8.76172L8.86328 6.76953C8.93359 6.63281 9.07031 6.55078 9.22266 6.54297C9.82812 6.52734 10.4023 6.18359 10.6797 5.58594C11.0117 4.83594 10.7383 3.92578 10.0312 3.50781C9.21094 3.01562 8.16797 3.31641 7.72266 4.15234C7.44531 4.68359 7.48828 5.29688 7.78125 5.77344C7.85938 5.90234 7.87109 6.06641 7.80078 6.19531L6.77734 8.15234C6.70703 8.28906 6.56250 8.37109 6.40234 8.37109C6.15625 8.37109 5.91016 8.43359 5.69531 8.53516C5.68750 8.53516 5.67969 8.54297 5.67969 8.54297C5.66406 8.55078 5.64844 8.5625 5.63281 8.57031C5.61719 8.57812 5.60156 8.58594 5.59375 8.59375C5.43359 8.67969 5.29688 8.79688 5.17969 8.93359C5.14844 8.97266 5.11719 9.01172 5.09375 9.05859C5.08594 9.07031 5.07031 9.08984 5.06250 9.10156C5.05469 9.10938 5.04688 9.12109 5.04297 9.12891C5.02734 9.15234 5.00781 9.17969 4.99609 9.20312C4.99609 9.20312 4.99609 9.20703 4.98828 9.20703C4.95703 9.26172 4.92578 9.32422 4.90234 9.38672C4.90234 9.39453 4.90234 9.39453 4.89453 9.40234C4.88281 9.43359 4.87500 9.45703 4.86328 9.48828V9.49609C4.84375 9.55859 4.82812 9.62109 4.81250 9.68359C4.81250 9.69141 4.81250 9.70312 4.80469 9.71094C4.79688 9.72656 4.79688 9.75 4.78906 9.76562C4.78906 9.77734 4.78906 9.78516 4.78125 9.79688C4.78125 9.81641 4.77344 9.83984 4.77344 9.85938C4.77344 9.87109 4.77344 9.87891 4.77344 9.89062C4.77344 9.91016 4.77344 9.93359 4.77344 9.95312V9.95703C4.77344 10.2891 4.84375 10.5625 4.97656 10.8047C4.97656 10.8047 4.97656 10.8125 4.98438 10.8125C5.00391 10.8516 5.02734 10.8984 5.05078 10.9375C5.05859 10.9453 5.05859 10.9531 5.06641 10.9531C5.08984 10.9844 5.10938 11.0156 5.13281 11.0469C5.14844 11.0664 5.16016 11.0781 5.17188 11.0977C5.18359 11.1094 5.19531 11.1289 5.21094 11.1406C5.23438 11.1719 5.26562 11.1953 5.29688 11.2266C5.30859 11.2383 5.32031 11.2461 5.33203 11.2578C5.35156 11.2773 5.37109 11.2891 5.39062 11.3086C5.41406 11.3281 5.43750 11.3477 5.46094 11.3672C5.46875 11.375 5.47656 11.3828 5.48828 11.3828C5.49609 11.3906 5.50391 11.3906 5.51172 11.3984C5.63281 11.4844 5.78516 11.5547 5.93750 11.5938C5.94531 11.5938 5.95312 11.6016 5.96094 11.6016C5.97656 11.6094 5.98828 11.6094 6.00391 11.6172C6.38281 11.7266 6.80859 11.6875 7.19531 11.4844C7.39844 11.3672 7.57422 11.1953 7.72266 10.9922C7.76562 10.9453 7.79688 10.8906 7.83203 10.8359C7.90234 10.7148 8.04688 10.6328 8.19141 10.6328H10.4336C10.5859 10.6328 10.7305 10.7148 10.8008 10.8359C11.1016 11.4219 11.6719 11.7695 12.3281 11.7383C13.1562 11.6953 13.8242 11.0469 13.8789 10.2188C13.9414 9.25 13.1797 8.45 12.2344 8.45ZM7.65625 10.1328C7.65625 10.1406 7.65625 10.1406 7.65625 10.1484C7.64844 10.1875 7.64062 10.2188 7.63281 10.2578C7.63281 10.2656 7.63281 10.2734 7.62500 10.2812C7.61719 10.3203 7.60547 10.3516 7.59766 10.3906C7.59766 10.3906 7.59766 10.3906 7.59766 10.3984C7.53516 10.5859 7.42969 10.7578 7.29297 10.8984C7.02734 11.1641 6.63281 11.2969 6.20312 11.2188C6.13672 11.2031 6.06250 11.1875 5.99609 11.1641C5.98828 11.1641 5.98828 11.1641 5.98047 11.1562C5.96484 11.1484 5.95312 11.1406 5.94141 11.1406C5.92578 11.1328 5.91797 11.1328 5.90625 11.1250C5.89844 11.1172 5.88281 11.1172 5.87500 11.1094C5.86328 11.1016 5.85156 11.0938 5.83984 11.0859C5.82812 11.0781 5.82031 11.0703 5.80859 11.0625C5.80078 11.0547 5.78906 11.0469 5.78125 11.0469C5.74219 11.0156 5.70312 10.9844 5.66406 10.9531C5.55859 10.8516 5.46875 10.7266 5.39844 10.5859C5.39062 10.5781 5.39062 10.5703 5.38281 10.5625C5.29688 10.4453 5.24609 10.3125 5.23047 10.1641C5.23047 10.1562 5.23047 10.1484 5.23047 10.1406C5.23047 10.125 5.23047 10.1094 5.23047 10.0938C5.23047 10.0781 5.23047 10.0625 5.23047 10.0469C5.23047 10.0312 5.23047 10.0234 5.23047 10.0078C5.23047 9.99219 5.23047 9.97656 5.23047 9.95312C5.23047 9.9375 5.23047 9.92969 5.23047 9.91406C5.23047 9.89844 5.23047 9.88281 5.23828 9.86719C5.23828 9.85156 5.23828 9.84375 5.24609 9.82812C5.24609 9.8125 5.25391 9.79688 5.25391 9.78125C5.25391 9.76562 5.26172 9.75781 5.26172 9.74219C5.26953 9.72656 5.26953 9.71094 5.27734 9.69531C5.27734 9.68750 5.28516 9.67969 5.28516 9.67188C5.29297 9.65625 5.29688 9.63672 5.30469 9.62109C5.30469 9.61328 5.30469 9.61328 5.31250 9.60547C5.32031 9.58984 5.32812 9.57031 5.33594 9.55469V9.54688C5.34375 9.53125 5.35547 9.50781 5.36328 9.49219C5.37891 9.47656 5.38672 9.45312 5.39844 9.43750C5.41016 9.42188 5.42188 9.40625 5.43359 9.39062C5.43359 9.39062 5.43359 9.39062 5.43359 9.38281C5.44531 9.37109 5.45703 9.35547 5.46875 9.33984C5.60547 9.18750 5.77344 9.07031 5.96094 8.98438C6.28516 8.79297 6.63281 8.79688 6.99609 8.92969C7.29297 9.07812 7.50781 9.33984 7.60156 9.64453C7.63672 9.77344 7.65625 9.91016 7.65625 10.0391C7.65625 10.0703 7.65625 10.1016 7.65625 10.1328Z",fill:"currentColor"}),Yn("path",{d:"M13.2812 1.19922V2.44141C13.2812 2.49609 13.2188 2.52344 13.1719 2.49609C12.0664 1.66797 10.6953 1.17969 9.21094 1.17188C5.49609 1.16406 2.48047 4.21094 2.47266 7.98047C2.46484 11.75 5.46875 14.8047 9.18750 14.8125C10.6719 14.8125 12.0430 14.3320 13.1602 13.5039C13.2070 13.4687 13.2812 13.5039 13.2812 13.5586V14.8008C13.2812 14.8281 13.2695 14.8555 13.2461 14.8633C12.0430 15.5703 10.6641 15.9766 9.18750 15.9688C4.84375 15.9609 1.32422 12.3867 1.33203 7.97266C1.33203 3.55859 4.85938 -0.00781249 9.20312 1.01909e-06C10.6797 1.01909e-06 12.0586 0.417969 13.2539 1.14453C13.2773 1.15234 13.2812 1.17188 13.2812 1.19922Z",fill:"currentColor"})]}),Yn("defs",{children:Yn("clipPath",{id:"clip0_176_1424",children:Yn("rect",{width:"16",height:"16",fill:"white"})})})]})}),jc=()=>Yn("svg",{width:"88",height:"24",viewBox:"0 0 88 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yn("path",{d:"M17.0261 12.6967C16.1238 12.6967 15.3366 13.1863 14.9046 13.9063C14.7894 14.0983 14.5782 14.2326 14.3575 14.2326H11.0456C10.6808 14.223 10.1144 13.7911 10.4024 13.1671L11.9672 10.172C12.0728 9.97042 12.2839 9.84563 12.5143 9.83603C13.4263 9.81683 14.2903 9.28885 14.6934 8.38649C15.2022 7.26334 14.7894 5.90019 13.7239 5.26662C12.4951 4.52745 10.9208 4.97863 10.2584 6.23618C9.83604 7.03294 9.90324 7.95451 10.3448 8.67448C10.46 8.86647 10.4792 9.10646 10.3736 9.30805L8.83768 12.2455C8.73209 12.4567 8.5113 12.5815 8.28091 12.5815C7.89692 12.5815 7.53214 12.6775 7.21535 12.8311C7.20575 12.8311 7.19615 12.8407 7.19615 12.8407C7.17695 12.8503 7.14815 12.8695 7.12895 12.8791C7.10976 12.8887 7.08096 12.8983 7.06176 12.9175C6.82177 13.0519 6.61058 13.2247 6.43778 13.4359C6.38979 13.4935 6.34179 13.5511 6.30339 13.6183C6.28419 13.6375 6.26499 13.6663 6.25539 13.6951C6.24579 13.7047 6.23619 13.7239 6.22659 13.7335C6.20739 13.7719 6.17859 13.8103 6.15939 13.8487C6.15939 13.8487 6.15939 13.8583 6.1498 13.8583C6.1018 13.9447 6.0538 14.0407 6.0154 14.1367C6.0154 14.1463 6.0154 14.1463 6.0058 14.1559C5.9866 14.2039 5.977 14.2422 5.9578 14.2902V14.2998C5.929 14.3958 5.90021 14.4918 5.88101 14.5878C5.88101 14.5974 5.88101 14.6166 5.87141 14.6262C5.86181 14.655 5.86181 14.6934 5.85221 14.7222C5.85221 14.7414 5.85221 14.751 5.84261 14.7702C5.84261 14.799 5.83301 14.8374 5.83301 14.8662C5.83301 14.8854 5.83301 14.895 5.83301 14.9142C5.83301 14.9526 5.83301 15.0006 5.83301 15.039V15.0486C5.83301 15.4614 5.9386 15.8646 6.1306 16.2198C6.1306 16.2198 6.1306 16.2294 6.14019 16.2294C6.16899 16.287 6.20739 16.3542 6.24579 16.4118C6.25539 16.4214 6.25539 16.431 6.26499 16.431C6.30339 16.479 6.33219 16.527 6.37059 16.575C6.38978 16.6038 6.40898 16.623 6.42818 16.6518C6.44738 16.6709 6.46658 16.6997 6.49538 16.7189C6.53378 16.7669 6.58178 16.8053 6.62978 16.8533C6.64897 16.8725 6.66817 16.8821 6.68737 16.9013C6.71617 16.9301 6.74497 16.9493 6.77377 16.9781C6.81217 17.0069 6.85057 17.0357 6.89856 17.0645C6.90816 17.0741 6.91776 17.0837 6.93696 17.0837C6.94656 17.0933 6.95616 17.0933 6.96576 17.1029C7.14815 17.2277 7.34975 17.3237 7.56094 17.3909C7.57054 17.3909 7.58014 17.4005 7.58974 17.4005C7.60894 17.4101 7.62813 17.4101 7.64733 17.4197C8.24251 17.5829 8.87608 17.5253 9.45206 17.2373C9.75925 17.0837 10.028 16.8533 10.2488 16.5846C10.316 16.5078 10.364 16.4214 10.4216 16.335C10.5368 16.1526 10.7384 16.0374 10.9496 16.0374H14.3287C14.559 16.0374 14.7702 16.1718 14.8758 16.3734C15.3174 17.1701 16.1814 17.6885 17.1701 17.6405C18.4085 17.5733 19.4165 16.575 19.4932 15.3366C19.5796 13.8871 18.4373 12.6967 17.0261 12.6967ZM10.1528 15.2118C10.1528 15.2214 10.1528 15.2214 10.1528 15.231C10.1432 15.2886 10.1336 15.3366 10.124 15.3942C10.124 15.4038 10.124 15.4134 10.1144 15.423C10.1048 15.4806 10.0856 15.5286 10.076 15.5862C10.076 15.5862 10.076 15.5862 10.076 15.5958C9.98964 15.8838 9.82644 16.143 9.61525 16.3446C9.21207 16.7477 8.61689 16.9685 7.97372 16.8533C7.87772 16.8341 7.77213 16.8053 7.67613 16.7765C7.66653 16.7765 7.66653 16.7765 7.65693 16.7669C7.63773 16.7573 7.61853 16.7477 7.59934 16.7477C7.58014 16.7381 7.57054 16.7381 7.55134 16.7285C7.54174 16.7189 7.52254 16.7189 7.51294 16.7093C7.49374 16.6997 7.47454 16.6901 7.45534 16.6805C7.43614 16.6709 7.42654 16.6614 7.40734 16.6518C7.39774 16.6422 7.37854 16.6326 7.36894 16.6326C7.31135 16.5942 7.25375 16.5558 7.19615 16.5174C6.99456 16.3638 6.83137 16.1814 6.71617 15.9798C6.70657 15.9702 6.70657 15.9606 6.69697 15.951C6.56258 15.7206 6.48578 15.4614 6.46658 15.1926C6.46658 15.183 6.46658 15.1734 6.46658 15.1638C6.46658 15.1446 6.46658 15.1254 6.46658 15.1062C6.46658 15.087 6.46658 15.0678 6.46658 15.0486C6.46658 15.0294 6.46658 15.0198 6.46658 15.0006C6.46658 14.9814 6.46658 14.9622 6.46658 14.9334C6.46658 14.9142 6.46658 14.9046 6.46658 14.8854C6.46658 14.8662 6.46658 14.847 6.47618 14.8278C6.47618 14.8086 6.47618 14.7894 6.48578 14.7702C6.48578 14.751 6.48578 14.7414 6.49538 14.7222C6.49538 14.703 6.50498 14.6838 6.50498 14.655C6.50498 14.6454 6.51458 14.6262 6.51458 14.6166C6.52418 14.5974 6.52418 14.5686 6.53378 14.5494C6.53378 14.5398 6.54338 14.5302 6.54338 14.5206C6.55298 14.4918 6.56258 14.463 6.57218 14.4438C6.57218 14.4342 6.57218 14.4342 6.58178 14.4246C6.59138 14.3958 6.60098 14.367 6.61058 14.3382V14.3286C6.62018 14.2998 6.63937 14.2614 6.64897 14.2326C6.66817 14.2038 6.67777 14.1655 6.69697 14.1367C6.71617 14.1079 6.73537 14.0791 6.75457 14.0503C6.75457 14.0503 6.75457 14.0503 6.75457 14.0407C6.76417 14.0215 6.78337 14.0023 6.79297 13.9831C6.95616 13.7431 7.17695 13.5511 7.42654 13.4167C7.98332 13.1191 8.61689 13.1287 9.16407 13.4071C9.61525 13.6471 9.93204 14.0407 10.0664 14.4918C10.124 14.6742 10.1528 14.8758 10.1528 15.0678C10.1528 15.1158 10.1528 15.1638 10.1528 15.2118Z",fill:"currentColor"}),Yn("path",{d:"M18.8569 1.80105V3.66491C18.8569 3.74868 18.7627 3.79057 18.6998 3.74868C17.014 2.50262 14.9302 1.76964 12.6685 1.75917C7.02451 1.7487 2.43815 6.32458 2.42768 11.9895C2.41721 17.6544 6.98262 22.2407 12.637 22.2512C14.8988 22.2512 16.9826 21.5287 18.6789 20.2826C18.7417 20.2303 18.836 20.2826 18.836 20.3664V22.2302C18.836 22.2617 18.815 22.3035 18.7836 22.314C16.9826 23.3925 14.8779 24.0103 12.637 23.9999C6.02975 23.9894 0.678997 18.6072 0.689468 11.979C0.689468 5.35077 6.05069 -0.0104558 12.658 1.53125e-05C14.9093 1.53125e-05 17.0035 0.628284 18.8045 1.71728C18.836 1.72775 18.8569 1.75917 18.8569 1.80105Z",fill:"currentColor"}),Yn("path",{d:"M81.4723 17.1428H80.314V6.8418H81.4723V10.8109C82.0746 9.99233 82.9703 9.49813 83.9896 9.49813C85.9355 9.49813 87.31 11.0425 87.31 13.4209C87.31 15.8455 85.9355 17.3281 83.9896 17.3281C82.9394 17.3281 82.0282 16.7876 81.4723 16.0309V17.1428ZM81.4723 11.7375V15.1197C81.8738 15.7683 82.785 16.2934 83.6962 16.2934C85.2097 16.2934 86.1054 15.0733 86.1054 13.4209C86.1054 11.7684 85.2097 10.5329 83.6962 10.5329C82.785 10.5329 81.8738 11.0888 81.4723 11.7375Z",fill:"currentColor"}),Yn("path",{d:"M77.9375 17.1429H76.7793V16.2934C76.1615 16.973 75.3121 17.3282 74.3082 17.3282C73.0419 17.3282 71.6982 16.4788 71.6982 14.8572C71.6982 13.1892 73.0419 12.4016 74.3082 12.4016C75.3275 12.4016 76.1769 12.7259 76.7793 13.4209V12.0773C76.7793 11.0734 75.9762 10.502 74.8951 10.502C73.9994 10.502 73.2735 10.8263 72.6094 11.5368L72.0689 10.7337C72.872 9.89971 73.8295 9.49817 75.0495 9.49817C76.6248 9.49817 77.9375 10.2086 77.9375 12.0155V17.1429ZM76.7793 15.5676V14.1622C76.3314 13.5444 75.5437 13.2356 74.7252 13.2356C73.6442 13.2356 72.8874 13.9151 72.8874 14.8726C72.8874 15.8147 73.6442 16.4942 74.7252 16.4942C75.5437 16.4942 76.3314 16.1853 76.7793 15.5676Z",fill:"currentColor"}),Yn("path",{d:"M69.7501 17.1428H68.5918V6.8418H69.7501V17.1428Z",fill:"currentColor"}),Yn("path",{d:"M66.2237 17.1429H65.0654V12.2626C65.0654 10.9499 64.4014 10.5329 63.3975 10.5329C62.4863 10.5329 61.6215 11.0889 61.189 11.6912V17.1429H60.0308V9.6835H61.189V10.7646C61.7141 10.1468 62.7334 9.49817 63.8454 9.49817C65.4052 9.49817 66.2237 10.2858 66.2237 11.9074V17.1429Z",fill:"currentColor"}),Yn("path",{d:"M57.6543 17.1429H56.4961V16.2934C55.8783 16.973 55.0289 17.3282 54.025 17.3282C52.7586 17.3282 51.415 16.4788 51.415 14.8572C51.415 13.1892 52.7586 12.4016 54.025 12.4016C55.0443 12.4016 55.8937 12.7259 56.4961 13.4209V12.0773C56.4961 11.0734 55.693 10.502 54.6119 10.502C53.7162 10.502 52.9903 10.8263 52.3262 11.5368L51.7857 10.7337C52.5888 9.89971 53.5463 9.49817 54.7663 9.49817C56.3416 9.49817 57.6543 10.2086 57.6543 12.0155V17.1429ZM56.4961 15.5676V14.1622C56.0482 13.5444 55.2605 13.2356 54.442 13.2356C53.361 13.2356 52.6042 13.9151 52.6042 14.8726C52.6042 15.8147 53.361 16.4942 54.442 16.4942C55.2605 16.4942 56.0482 16.1853 56.4961 15.5676Z",fill:"currentColor"}),Yn("path",{d:"M42.6426 13.4055C42.6426 11.2433 44.187 9.49817 46.3182 9.49817C48.573 9.49817 49.9012 11.2588 49.9012 13.4981V13.7915H43.8626C43.9553 15.1969 44.9437 16.3707 46.5499 16.3707C47.3993 16.3707 48.2641 16.0309 48.851 15.4286L49.407 16.1853C48.6657 16.9266 47.6618 17.3282 46.4418 17.3282C44.2333 17.3282 42.6426 15.7375 42.6426 13.4055ZM46.3028 10.4557C44.712 10.4557 43.9244 11.7993 43.8626 12.9421H48.7583C48.7429 11.8302 48.0016 10.4557 46.3028 10.4557Z",fill:"currentColor"}),Yn("path",{d:"M40.7096 17.1428H39.5513V6.8418H40.7096V17.1428Z",fill:"currentColor"}),Yn("path",{d:"M33.9403 17.3281C31.0215 17.3281 28.6895 15.166 28.6895 12C28.6895 8.83401 31.0215 6.67188 33.9403 6.67188C35.809 6.67188 37.0754 7.55217 37.894 8.71046L36.8129 9.31277C36.226 8.44791 35.1604 7.81472 33.9403 7.81472C31.7319 7.81472 30.0176 9.54442 30.0176 12C30.0176 14.4401 31.7319 16.1853 33.9403 16.1853C35.1604 16.1853 36.226 15.5675 36.8129 14.6872L37.9094 15.2895C37.0446 16.4632 35.809 17.3281 33.9403 17.3281Z",fill:"currentColor"})]});function Mc({className:e,...t}){return Yn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:Pl("size-4",e),...t,children:Yn("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3.25C20.4142 3.25 20.75 3.58579 20.75 4V11C20.75 12.2598 20.2496 13.468 19.3588 14.3588C18.468 15.2496 17.2598 15.75 16 15.75H5.81066L9.53033 19.4697C9.82322 19.7626 9.82322 20.2374 9.53033 20.5303C9.23744 20.8232 8.76256 20.8232 8.46967 20.5303L3.46967 15.5303C3.17678 15.2374 3.17678 14.7626 3.46967 14.4697L8.46967 9.46967C8.76256 9.17678 9.23744 9.17678 9.53033 9.46967C9.82322 9.76256 9.82322 10.2374 9.53033 10.5303L5.81066 14.25H16C16.862 14.25 17.6886 13.9076 18.2981 13.2981C18.9076 12.6886 19.25 11.862 19.25 11V4C19.25 3.58579 19.5858 3.25 20 3.25Z"})})}const Bc=()=>Yn("div",{className:"flex items-center justify-center gap-2",children:[Yn("div",{className:"size-2 animate-bounce-higher rounded-full bg-text-primary [animation-delay:-0.3s]"}),Yn("div",{className:"size-2 animate-bounce-higher rounded-full bg-text-primary [animation-delay:-0.15s]"}),Yn("div",{className:"size-2 animate-bounce-higher rounded-full bg-text-primary"})]}),Uc=()=>["chats"],qc=()=>["threads"],Hc=e=>{if("object"==typeof e&&null!==e){if(Array.isArray(e))return e.map((e=>Hc(e)));{const t={};for(const n in e)t[n.replace(/([a-z])_([a-z])/g,((e,t,n)=>`${t}${n.toUpperCase()}`))]=Hc(e[n]);return t}}return e};function $c(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wc}=Object.prototype,{getPrototypeOf:Zc}=Object,Vc=(e=>t=>{const n=Wc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kc=e=>(e=e.toLowerCase(),t=>Vc(t)===e),Gc=e=>t=>typeof t===e,{isArray:Qc}=Array,Xc=Gc("undefined"),Yc=Kc("ArrayBuffer"),Jc=Gc("string"),eu=Gc("function"),tu=Gc("number"),nu=e=>null!==e&&"object"==typeof e,ru=e=>{if("object"!==Vc(e))return!1;const t=Zc(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ou=Kc("Date"),iu=Kc("File"),au=Kc("Blob"),su=Kc("FileList"),lu=Kc("URLSearchParams"),[cu,uu,du,pu]=["ReadableStream","Request","Response","Headers"].map(Kc);function fu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Qc(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function hu(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const gu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,mu=e=>!Xc(e)&&e!==gu,yu=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Zc(Uint8Array)),bu=Kc("HTMLFormElement"),vu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wu=Kc("RegExp"),xu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fu(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ku="abcdefghijklmnopqrstuvwxyz",_u="0123456789",Cu={DIGIT:_u,ALPHA:ku,ALPHA_DIGIT:ku+ku.toUpperCase()+_u},Eu=Kc("AsyncFunction"),Su=(Au="function"==typeof setImmediate,Ou=eu(gu.postMessage),Au?setImmediate:Ou?(Tu=`axios@${Math.random()}`,Ru=[],gu.addEventListener("message",(({source:e,data:t})=>{e===gu&&t===Tu&&Ru.length&&Ru.shift()()}),!1),e=>{Ru.push(e),gu.postMessage(Tu,"*")}):e=>setTimeout(e));var Au,Ou,Tu,Ru;const Fu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(gu):"undefined"!=typeof process&&process.nextTick||Su,Nu={isArray:Qc,isArrayBuffer:Yc,isBuffer:function(e){return null!==e&&!Xc(e)&&null!==e.constructor&&!Xc(e.constructor)&&eu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eu(e.append)&&("formdata"===(t=Vc(e))||"object"===t&&eu(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Yc(e.buffer),t},isString:Jc,isNumber:tu,isBoolean:e=>!0===e||!1===e,isObject:nu,isPlainObject:ru,isReadableStream:cu,isRequest:uu,isResponse:du,isHeaders:pu,isUndefined:Xc,isDate:ou,isFile:iu,isBlob:au,isRegExp:wu,isFunction:eu,isStream:e=>nu(e)&&eu(e.pipe),isURLSearchParams:lu,isTypedArray:yu,isFileList:su,forEach:fu,merge:function e(){const{caseless:t}=mu(this)&&this||{},n={},r=(r,o)=>{const i=t&&hu(n,o)||o;ru(n[i])&&ru(r)?n[i]=e(n[i],r):ru(r)?n[i]=e({},r):Qc(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&fu(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(fu(t,((t,r)=>{n&&eu(t)?e[r]=$c(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Zc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Vc,kindOfTest:Kc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Qc(e))return e;let t=e.length;if(!tu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:bu,hasOwnProperty:vu,hasOwnProp:vu,reduceDescriptors:xu,freezeMethods:e=>{xu(e,((t,n)=>{if(eu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];eu(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Qc(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:hu,global:gu,isContextDefined:mu,ALPHABET:Cu,generateString:(e=16,t=Cu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&eu(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(nu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Qc(e)?[]:{};return fu(e,((e,t)=>{const i=n(e,r+1);!Xc(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Eu,isThenable:e=>e&&(nu(e)||eu(e))&&eu(e.then)&&eu(e.catch),setImmediate:Su,asap:Fu};function Pu(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Nu.inherits(Pu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Nu.toJSONObject(this.config),code:this.code,status:this.status}}});const Lu=Pu.prototype,Du={};function Iu(e){return Nu.isPlainObject(e)||Nu.isArray(e)}function zu(e){return Nu.endsWith(e,"[]")?e.slice(0,-2):e}function ju(e,t,n){return e?e.concat(t).map((function(e,t){return e=zu(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Du[e]={value:e}})),Object.defineProperties(Pu,Du),Object.defineProperty(Lu,"isAxiosError",{value:!0}),Pu.from=(e,t,n,r,o,i)=>{const a=Object.create(Lu);return Nu.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Pu.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Mu=Nu.toFlatObject(Nu,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Bu(e,t,n){if(!Nu.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Nu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Nu.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Nu.isSpecCompliantForm(t);if(!Nu.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Nu.isDate(e))return e.toISOString();if(!s&&Nu.isBlob(e))throw new Pu("Blob is not supported. Use a Buffer instead.");return Nu.isArrayBuffer(e)||Nu.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Nu.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Nu.isArray(e)&&function(e){return Nu.isArray(e)&&!e.some(Iu)}(e)||(Nu.isFileList(e)||Nu.endsWith(n,"[]"))&&(s=Nu.toArray(e)))return n=zu(n),s.forEach((function(e,r){!Nu.isUndefined(e)&&null!==e&&t.append(!0===a?ju([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Iu(e)||(t.append(ju(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Mu,{defaultVisitor:c,convertValue:l,isVisitable:Iu});if(!Nu.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Nu.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Nu.forEach(n,(function(n,i){!0===(!(Nu.isUndefined(n)||null===n)&&o.call(t,n,Nu.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Uu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function qu(e,t){this._pairs=[],e&&Bu(e,this,t)}const Hu=qu.prototype;function $u(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wu(e,t,n){if(!t)return e;const r=n&&n.encode||$u,o=n&&n.serialize;let i;if(i=o?o(t,n):Nu.isURLSearchParams(t)?t.toString():new qu(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Hu.append=function(e,t){this._pairs.push([e,t])},Hu.toString=function(e){const t=e?function(t){return e.call(this,t,Uu)}:Uu;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Zu{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Nu.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Vu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ku={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:qu,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Gu="undefined"!=typeof window&&"undefined"!=typeof document,Qu="object"==typeof navigator&&navigator||void 0,Xu=Gu&&(!Qu||["ReactNative","NativeScript","NS"].indexOf(Qu.product)<0),Yu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ju=Gu&&window.location.href||"http://localhost",ed={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gu,hasStandardBrowserEnv:Xu,hasStandardBrowserWebWorkerEnv:Yu,navigator:Qu,origin:Ju},Symbol.toStringTag,{value:"Module"})),...Ku};function td(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Nu.isArray(r)?r.length:i,s?(Nu.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Nu.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Nu.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Nu.isFormData(e)&&Nu.isFunction(e.entries)){const n={};return Nu.forEachEntry(e,((e,r)=>{t(function(e){return Nu.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const nd={transitional:Vu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Nu.isObject(e);if(o&&Nu.isHTMLForm(e)&&(e=new FormData(e)),Nu.isFormData(e))return r?JSON.stringify(td(e)):e;if(Nu.isArrayBuffer(e)||Nu.isBuffer(e)||Nu.isStream(e)||Nu.isFile(e)||Nu.isBlob(e)||Nu.isReadableStream(e))return e;if(Nu.isArrayBufferView(e))return e.buffer;if(Nu.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Bu(e,new ed.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ed.isNode&&Nu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Nu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Bu(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(Nu.isString(e))try{return(0,JSON.parse)(e),Nu.trim(e)}catch(hg){if("SyntaxError"!==hg.name)throw hg}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||nd.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Nu.isResponse(e)||Nu.isReadableStream(e))return e;if(e&&Nu.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(hg){if(n){if("SyntaxError"===hg.name)throw Pu.from(hg,Pu.ERR_BAD_RESPONSE,this,null,this.response);throw hg}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ed.classes.FormData,Blob:ed.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Nu.forEach(["delete","get","head","post","put","patch"],(e=>{nd.headers[e]={}}));const rd=Nu.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),od=Symbol("internals");function id(e){return e&&String(e).trim().toLowerCase()}function ad(e){return!1===e||null==e?e:Nu.isArray(e)?e.map(ad):String(e)}function sd(e,t,n,r,o){return Nu.isFunction(r)?r.call(this,t,n):(o&&(t=n),Nu.isString(t)?Nu.isString(r)?-1!==t.indexOf(r):Nu.isRegExp(r)?r.test(t):void 0:void 0)}class ld{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=id(t);if(!o)throw new Error("header name must be a non-empty string");const i=Nu.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ad(e))}const i=(e,t)=>Nu.forEach(e,((e,n)=>o(e,n,t)));if(Nu.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Nu.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&rd[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Nu.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=id(e)){const n=Nu.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Nu.isFunction(t))return t.call(this,e,n);if(Nu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=id(e)){const n=Nu.findKey(this,e);return!(!n||void 0===this[n]||t&&!sd(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=id(e)){const o=Nu.findKey(n,e);!o||t&&!sd(0,n[o],o,t)||(delete n[o],r=!0)}}return Nu.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!sd(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Nu.forEach(this,((r,o)=>{const i=Nu.findKey(n,o);if(i)return t[i]=ad(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ad(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Nu.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Nu.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[od]=this[od]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=id(e);t[r]||(function(e,t){const n=Nu.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Nu.isArray(e)?e.forEach(r):r(e),this}}function cd(e,t){const n=this||nd,r=t||n,o=ld.from(r.headers);let i=r.data;return Nu.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ud(e){return!(!e||!e.__CANCEL__)}function dd(e,t,n){Pu.call(this,null==e?"canceled":e,Pu.ERR_CANCELED,t,n),this.name="CanceledError"}function pd(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Pu("Request failed with status code "+n.status,[Pu.ERR_BAD_REQUEST,Pu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ld.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Nu.reduceDescriptors(ld.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Nu.freezeMethods(ld),Nu.inherits(dd,Pu,{__CANCEL__:!0});const fd=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},hd=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gd=e=>(...t)=>Nu.asap((()=>e(...t))),md=ed.hasStandardBrowserEnv?function(){const e=ed.navigator&&/(msie|trident)/i.test(ed.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Nu.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),yd=ed.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Nu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Nu.isString(r)&&a.push("path="+r),Nu.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function bd(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const vd=e=>e instanceof ld?{...e}:e;function wd(e,t){t=t||{};const n={};function r(e,t,n){return Nu.isPlainObject(e)&&Nu.isPlainObject(t)?Nu.merge.call({caseless:n},e,t):Nu.isPlainObject(t)?Nu.merge({},t):Nu.isArray(t)?t.slice():t}function o(e,t,n){return Nu.isUndefined(t)?Nu.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Nu.isUndefined(t))return r(void 0,t)}function a(e,t){return Nu.isUndefined(t)?Nu.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(vd(e),vd(t),!0)};return Nu.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Nu.isUndefined(a)&&i!==s||(n[r]=a)})),n}const xd=e=>{const t=wd({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ld.from(s),t.url=Wu(bd(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Nu.isFormData(r))if(ed.hasStandardBrowserEnv||ed.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ed.hasStandardBrowserEnv&&(o&&Nu.isFunction(o)&&(o=o(t)),o||!1!==o&&md(t.url))){const e=i&&a&&yd.read(a);e&&s.set(i,e)}return t},kd="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=xd(e);let o=r.data;const i=ld.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ld.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());pd((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Pu("Request aborted",Pu.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new Pu("Network Error",Pu.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Vu;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Pu(t,o.clarifyTimeoutError?Pu.ETIMEDOUT:Pu.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Nu.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Nu.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),f&&([l,u]=fd(f,!0),g.addEventListener("progress",l)),p&&g.upload&&([s,c]=fd(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new dd(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ed.protocols.indexOf(y)?n(new Pu("Unsupported protocol "+y+":",Pu.ERR_BAD_REQUEST,e)):g.send(o||null)}))},_d=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Pu?t:new dd(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Pu(`timeout ${t} of ms exceeded`,Pu.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Nu.asap(a),s}},Cd=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ed=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Cd(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Sd="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ad=Sd&&"function"==typeof ReadableStream,Od=Sd&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Td=(e,...t)=>{try{return!!e(...t)}catch(hg){return!1}},Rd=Ad&&Td((()=>{let e=!1;const t=new Request(ed.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Fd=Ad&&Td((()=>Nu.isReadableStream(new Response("").body))),Nd={stream:Fd&&(e=>e.body)};var Pd;Sd&&(Pd=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Nd[e]&&(Nd[e]=Nu.isFunction(Pd[e])?t=>t[e]():(t,n)=>{throw new Pu(`Response type '${e}' is not supported`,Pu.ERR_NOT_SUPPORT,n)})})));const Ld=Sd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=xd(e);c=c?(c+"").toLowerCase():"text";let f,h=_d([o,i&&i.toAbortSignal()],a);const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(l&&Rd&&"get"!==n&&"head"!==n&&0!==(m=await(async(e,t)=>{const n=Nu.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Nu.isBlob(e))return e.size;if(Nu.isSpecCompliantForm(e)){const t=new Request(ed.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Nu.isArrayBufferView(e)||Nu.isArrayBuffer(e)?e.byteLength:(Nu.isURLSearchParams(e)&&(e+=""),Nu.isString(e)?(await Od(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Nu.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=hd(m,fd(gd(l)));r=Ed(n.body,65536,e,t)}}Nu.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f);const a=Fd&&("stream"===c||"response"===c);if(Fd&&(s||a&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Nu.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&hd(t,fd(gd(s),!0))||[];i=new Response(Ed(i.body,65536,n,(()=>{r&&r(),g&&g()})),e)}c=c||"text";let y=await Nd[Nu.findKey(Nd,c)||"text"](i,e);return!a&&g&&g(),await new Promise(((t,n)=>{pd(t,n,{data:y,headers:ld.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(y){if(g&&g(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Pu("Network Error",Pu.ERR_NETWORK,e,f),{cause:y.cause||y});throw Pu.from(y,y&&y.code,e,f)}}),Dd={http:null,xhr:kd,fetch:Ld};Nu.forEach(Dd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(hg){}Object.defineProperty(e,"adapterName",{value:t})}}));const Id=e=>`- ${e}`,zd=e=>Nu.isFunction(e)||null===e||!1===e,jd=e=>{e=Nu.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!zd(n)&&(r=Dd[(t=String(n)).toLowerCase()],void 0===r))throw new Pu(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Pu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Id).join("\n"):" "+Id(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Md(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dd(null,e)}function Bd(e){return Md(e),e.headers=ld.from(e.headers),e.data=cd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jd(e.adapter||nd.adapter)(e).then((function(t){return Md(e),t.data=cd.call(e,e.transformResponse,t),t.headers=ld.from(t.headers),t}),(function(t){return ud(t)||(Md(e),t&&t.response&&(t.response.data=cd.call(e,e.transformResponse,t.response),t.response.headers=ld.from(t.response.headers))),Promise.reject(t)}))}const Ud={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ud[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const qd={};Ud.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new Pu(function(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),Pu.ERR_DEPRECATED);return t&&!qd[o]&&(qd[o]=!0),!e||e(r,o,i)}};const Hd={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Pu("options must be an object",Pu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Pu("option "+i+" must be "+n,Pu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Pu("Unknown option "+i,Pu.ERR_BAD_OPTION)}},validators:Ud},$d=Hd.validators;class Wd{constructor(e){this.defaults=e,this.interceptors={request:new Zu,response:new Zu}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(hg){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=wd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Hd.assertOptions(n,{silentJSONParsing:$d.transitional($d.boolean),forcedJSONParsing:$d.transitional($d.boolean),clarifyTimeoutError:$d.transitional($d.boolean)},!1),null!=r&&(Nu.isFunction(r)?t.paramsSerializer={serialize:r}:Hd.assertOptions(r,{encode:$d.function,serialize:$d.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Nu.merge(o.common,o[t.method]);o&&Nu.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ld.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Bd.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Bd.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Wu(bd((e=wd(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Nu.forEach(["delete","get","head","options"],(function(e){Wd.prototype[e]=function(t,n){return this.request(wd(n||{},{method:e,url:t,data:(n||{}).data}))}})),Nu.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(wd(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Wd.prototype[e]=t(),Wd.prototype[e+"Form"]=t(!0)}));class Zd{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new dd(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Zd((function(t){e=t})),cancel:e}}}const Vd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vd).forEach((([e,t])=>{Vd[t]=e}));const Kd=function e(t){const n=new Wd(t),r=$c(Wd.prototype.request,n);return Nu.extend(r,Wd.prototype,n,{allOwnKeys:!0}),Nu.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(wd(t,n))},r}(nd);Kd.Axios=Wd,Kd.CanceledError=dd,Kd.CancelToken=Zd,Kd.isCancel=ud,Kd.VERSION="1.7.7",Kd.toFormData=Bu,Kd.AxiosError=Pu,Kd.Cancel=Kd.CanceledError,Kd.all=function(e){return Promise.all(e)},Kd.spread=function(e){return function(t){return e.apply(null,t)}},Kd.isAxiosError=function(e){return Nu.isObject(e)&&!0===e.isAxiosError},Kd.mergeConfig=wd,Kd.AxiosHeaders=ld,Kd.formToJSON=e=>td(Nu.isHTMLForm(e)?new FormData(e):e),Kd.getAdapter=jd,Kd.HttpStatusCode=Vd,Kd.default=Kd;const Gd="https://api-agility.cleanlab.ai/api",Qd=["What is Cleanlab?","What is Cleanlab TLM?","How do I sign up for Cleanlab?"],Xd=()=>{const{apiKey:e}=oo();return Kd.create({baseURL:Gd,withCredentials:!1,headers:{"X-Api-Key":e}})},Yd=()=>["assistants"];var Jd,ep,tp;(ep=Jd||(Jd={})).assertEqual=e=>e,ep.assertIs=function(e){},ep.assertNever=function(e){throw new Error},ep.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},ep.getValidEnumValues=e=>{const t=ep.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const r of t)n[r]=e[r];return ep.objectValues(n)},ep.objectValues=e=>ep.objectKeys(e).map((function(t){return e[t]})),ep.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},ep.find=(e,t)=>{for(const n of e)if(t(n))return n},ep.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,ep.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},ep.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(tp||(tp={})).mergeShapes=(e,t)=>({...e,...t});const np=Jd.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rp=e=>{switch(typeof e){case"undefined":return np.undefined;case"string":return np.string;case"number":return isNaN(e)?np.nan:np.number;case"boolean":return np.boolean;case"function":return np.function;case"bigint":return np.bigint;case"symbol":return np.symbol;case"object":return Array.isArray(e)?np.array:null===e?np.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?np.promise:"undefined"!=typeof Map&&e instanceof Map?np.map:"undefined"!=typeof Set&&e instanceof Set?np.set:"undefined"!=typeof Date&&e instanceof Date?np.date:np.object;default:return np.unknown}},op=Jd.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ip extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof ip))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Jd.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}ip.create=e=>new ip(e);const ap=(e,t)=>{let n;switch(e.code){case op.invalid_type:n=e.received===np.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case op.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Jd.jsonStringifyReplacer)}`;break;case op.unrecognized_keys:n=`Unrecognized key(s) in object: ${Jd.joinValues(e.keys,", ")}`;break;case op.invalid_union:n="Invalid input";break;case op.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Jd.joinValues(e.options)}`;break;case op.invalid_enum_value:n=`Invalid enum value. Expected ${Jd.joinValues(e.options)}, received '${e.received}'`;break;case op.invalid_arguments:n="Invalid function arguments";break;case op.invalid_return_type:n="Invalid function return type";break;case op.invalid_date:n="Invalid date";break;case op.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Jd.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case op.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case op.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case op.custom:n="Invalid input";break;case op.invalid_intersection_types:n="Intersection results could not be merged";break;case op.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case op.not_finite:n="Number must be finite";break;default:n=t.defaultError,Jd.assertNever(e)}return{message:n}};let sp=ap;function lp(){return sp}const cp=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function up(e,t){const n=lp(),r=cp({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ap?void 0:ap].filter((e=>!!e))});e.common.issues.push(r)}class dp{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return pp;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return dp.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return pp;if("aborted"===o.status)return pp;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const pp=Object.freeze({status:"aborted"}),fp=e=>({status:"dirty",value:e}),hp=e=>({status:"valid",value:e}),gp=e=>"aborted"===e.status,mp=e=>"dirty"===e.status,yp=e=>"valid"===e.status,bp=e=>"undefined"!=typeof Promise&&e instanceof Promise;function vp(e,t,n,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function wp(e,t,n,r,o){if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var xp,kp,_p,Cp;"function"==typeof SuppressedError&&SuppressedError,(kp=xp||(xp={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},kp.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Ep{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Sp=(e,t)=>{if(yp(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ip(e.common.issues);return this._error=t,this._error}}};function Ap(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:o.defaultError}:void 0===o.data?{message:null!==(i=null!=s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!=s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class Op{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return rp(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:rp(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new dp,ctx:{common:e.parent.common,data:e.data,parsedType:rp(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(bp(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rp(e)},o=this._parseSync({data:e,path:r.path,parent:r});return Sp(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rp(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(bp(r)?r:Promise.resolve(r));return Sp(n,o)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:op.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new _f({schema:this,typeName:Df.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Cf.create(this,this._def)}nullable(){return Ef.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rf.create(this,this._def)}promise(){return kf.create(this,this._def)}or(e){return sf.create([this,e],this._def)}and(e){return df.create(this,e,this._def)}transform(e){return new _f({...Ap(this._def),schema:this,typeName:Df.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Sf({...Ap(this._def),innerType:this,defaultValue:t,typeName:Df.ZodDefault})}brand(){return new Rf({typeName:Df.ZodBranded,type:this,...Ap(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Af({...Ap(this._def),innerType:this,catchValue:t,typeName:Df.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Ff.create(this,e)}readonly(){return Nf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Tp=/^c[^\s-]{8,}$/i,Rp=/^[0-9a-z]+$/,Fp=/^[0-9A-HJKMNP-TV-Z]{26}$/,Np=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Pp=/^[a-z0-9_-]{21}$/i,Lp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Dp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Ip;const zp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jp=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Mp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Bp="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Up=new RegExp(`^${Bp}$`);function qp(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Hp(e){let t=`${Bp}T${qp(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class $p extends Op{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==np.string){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.string,received:t.parsedType}),pp}const t=new dp;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),up(n,{code:op.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),up(n,{code:op.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const r=e.data.length>a.value,o=e.data.length<a.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?up(n,{code:op.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&up(n,{code:op.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)Dp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"email",code:op.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)Ip||(Ip=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ip.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"emoji",code:op.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)Np.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"uuid",code:op.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)Pp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"nanoid",code:op.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)Tp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"cuid",code:op.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)Rp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"cuid2",code:op.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)Fp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"ulid",code:op.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),up(n,{validation:"url",code:op.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"regex",code:op.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?Hp(a).test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?Up.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${qp(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{code:op.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?Lp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"duration",code:op.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(r=e.data,("v4"!==(o=a.version)&&o||!zp.test(r))&&("v6"!==o&&o||!jp.test(r))&&(n=this._getOrReturnCtx(e,n),up(n,{validation:"ip",code:op.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Mp.test(e.data)||(n=this._getOrReturnCtx(e,n),up(n,{validation:"base64",code:op.invalid_string,message:a.message}),t.dirty()):Jd.assertNever(a);var r,o;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:op.invalid_string,...xp.errToObj(n)})}_addCheck(e){return new $p({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...xp.errToObj(e)})}url(e){return this._addCheck({kind:"url",...xp.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...xp.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...xp.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...xp.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...xp.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...xp.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...xp.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...xp.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...xp.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...xp.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...xp.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...xp.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...xp.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...xp.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...xp.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...xp.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...xp.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...xp.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...xp.errToObj(t)})}nonempty(e){return this.min(1,xp.errToObj(e))}trim(){return new $p({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new $p({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new $p({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Wp(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}$p.create=e=>{var t;return new $p({checks:[],typeName:Df.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Ap(e)})};class Zp extends Op{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==np.number){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.number,received:t.parsedType}),pp}let t;const n=new dp;for(const r of this._def.checks)"int"===r.kind?Jd.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),up(t,{code:op.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==Wp(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),up(t,{code:op.not_finite,message:r.message}),n.dirty()):Jd.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,xp.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xp.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xp.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xp.toString(t))}setLimit(e,t,n,r){return new Zp({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:xp.toString(r)}]})}_addCheck(e){return new Zp({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:xp.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xp.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xp.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xp.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xp.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xp.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:xp.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xp.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xp.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Jd.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Zp.create=e=>new Zp({checks:[],typeName:Df.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...Ap(e)});class Vp extends Op{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==np.bigint){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.bigint,received:t.parsedType}),pp}let t;const n=new dp;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),up(t,{code:op.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Jd.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,xp.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xp.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xp.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xp.toString(t))}setLimit(e,t,n,r){return new Vp({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:xp.toString(r)}]})}_addCheck(e){return new Vp({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xp.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xp.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xp.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xp.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xp.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Vp.create=e=>{var t;return new Vp({checks:[],typeName:Df.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Ap(e)})};class Kp extends Op{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==np.boolean){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.boolean,received:t.parsedType}),pp}return hp(e.data)}}Kp.create=e=>new Kp({typeName:Df.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...Ap(e)});class Gp extends Op{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==np.date){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.date,received:t.parsedType}),pp}if(isNaN(e.data.getTime()))return up(this._getOrReturnCtx(e),{code:op.invalid_date}),pp;const t=new dp;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),up(n,{code:op.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),up(n,{code:op.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):Jd.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Gp({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:xp.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:xp.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Gp.create=e=>new Gp({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Df.ZodDate,...Ap(e)});class Qp extends Op{_parse(e){if(this._getType(e)!==np.symbol){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.symbol,received:t.parsedType}),pp}return hp(e.data)}}Qp.create=e=>new Qp({typeName:Df.ZodSymbol,...Ap(e)});class Xp extends Op{_parse(e){if(this._getType(e)!==np.undefined){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.undefined,received:t.parsedType}),pp}return hp(e.data)}}Xp.create=e=>new Xp({typeName:Df.ZodUndefined,...Ap(e)});class Yp extends Op{_parse(e){if(this._getType(e)!==np.null){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.null,received:t.parsedType}),pp}return hp(e.data)}}Yp.create=e=>new Yp({typeName:Df.ZodNull,...Ap(e)});class Jp extends Op{constructor(){super(...arguments),this._any=!0}_parse(e){return hp(e.data)}}Jp.create=e=>new Jp({typeName:Df.ZodAny,...Ap(e)});class ef extends Op{constructor(){super(...arguments),this._unknown=!0}_parse(e){return hp(e.data)}}ef.create=e=>new ef({typeName:Df.ZodUnknown,...Ap(e)});class tf extends Op{_parse(e){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.never,received:t.parsedType}),pp}}tf.create=e=>new tf({typeName:Df.ZodNever,...Ap(e)});class nf extends Op{_parse(e){if(this._getType(e)!==np.undefined){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.void,received:t.parsedType}),pp}return hp(e.data)}}nf.create=e=>new nf({typeName:Df.ZodVoid,...Ap(e)});class rf extends Op{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==np.array)return up(t,{code:op.invalid_type,expected:np.array,received:t.parsedType}),pp;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(up(t,{code:e?op.too_big:op.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(up(t,{code:op.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(up(t,{code:op.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Ep(t,e,t.path,n))))).then((e=>dp.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new Ep(t,e,t.path,n))));return dp.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new rf({...this._def,minLength:{value:e,message:xp.toString(t)}})}max(e,t){return new rf({...this._def,maxLength:{value:e,message:xp.toString(t)}})}length(e,t){return new rf({...this._def,exactLength:{value:e,message:xp.toString(t)}})}nonempty(e){return this.min(1,e)}}function of(e){if(e instanceof af){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Cf.create(of(r))}return new af({...e._def,shape:()=>t})}return e instanceof rf?new rf({...e._def,type:of(e.element)}):e instanceof Cf?Cf.create(of(e.unwrap())):e instanceof Ef?Ef.create(of(e.unwrap())):e instanceof pf?pf.create(e.items.map((e=>of(e)))):e}rf.create=(e,t)=>new rf({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Df.ZodArray,...Ap(t)});class af extends Op{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Jd.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==np.object){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.object,received:t.parsedType}),pp}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof tf&&"strip"===this._def.unknownKeys))for(const s in n.data)o.includes(s)||i.push(s);const a=[];for(const s of o){const e=r[s],t=n.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new Ep(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof tf){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of i)a.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)i.length>0&&(up(n,{code:op.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Ep(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>dp.mergeObjectSync(t,e))):dp.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return xp.errToObj,new af({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=xp.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new af({...this._def,unknownKeys:"strip"})}passthrough(){return new af({...this._def,unknownKeys:"passthrough"})}extend(e){return new af({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new af({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Df.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new af({...this._def,catchall:e})}pick(e){const t={};return Jd.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new af({...this._def,shape:()=>t})}omit(e){const t={};return Jd.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new af({...this._def,shape:()=>t})}deepPartial(){return of(this)}partial(e){const t={};return Jd.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new af({...this._def,shape:()=>t})}required(e){const t={};return Jd.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Cf;)e=e._def.innerType;t[n]=e}})),new af({...this._def,shape:()=>t})}keyof(){return vf(Jd.objectKeys(this.shape))}}af.create=(e,t)=>new af({shape:()=>e,unknownKeys:"strip",catchall:tf.create(),typeName:Df.ZodObject,...Ap(t)}),af.strictCreate=(e,t)=>new af({shape:()=>e,unknownKeys:"strict",catchall:tf.create(),typeName:Df.ZodObject,...Ap(t)}),af.lazycreate=(e,t)=>new af({shape:e,unknownKeys:"strip",catchall:tf.create(),typeName:Df.ZodObject,...Ap(t)});class sf extends Op{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new ip(e.ctx.common.issues)));return up(t,{code:op.invalid_union,unionErrors:n}),pp}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new ip(e)));return up(t,{code:op.invalid_union,unionErrors:o}),pp}}get options(){return this._def.options}}sf.create=(e,t)=>new sf({options:e,typeName:Df.ZodUnion,...Ap(t)});const lf=e=>e instanceof yf?lf(e.schema):e instanceof _f?lf(e.innerType()):e instanceof bf?[e.value]:e instanceof wf?e.options:e instanceof xf?Jd.objectValues(e.enum):e instanceof Sf?lf(e._def.innerType):e instanceof Xp?[void 0]:e instanceof Yp?[null]:e instanceof Cf?[void 0,...lf(e.unwrap())]:e instanceof Ef?[null,...lf(e.unwrap())]:e instanceof Rf||e instanceof Nf?lf(e.unwrap()):e instanceof Af?lf(e._def.innerType):[];class cf extends Op{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==np.object)return up(t,{code:op.invalid_type,expected:np.object,received:t.parsedType}),pp;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(up(t,{code:op.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),pp)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=lf(o.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,o)}}return new cf({typeName:Df.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Ap(n)})}}function uf(e,t){const n=rp(e),r=rp(t);if(e===t)return{valid:!0,data:e};if(n===np.object&&r===np.object){const n=Jd.objectKeys(t),r=Jd.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const i of r){const n=uf(e[i],t[i]);if(!n.valid)return{valid:!1};o[i]=n.data}return{valid:!0,data:o}}if(n===np.array&&r===np.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=uf(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===np.date&&r===np.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class df extends Op{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(gp(e)||gp(r))return pp;const o=uf(e.value,r.value);return o.valid?((mp(e)||mp(r))&&t.dirty(),{status:t.value,value:o.data}):(up(n,{code:op.invalid_intersection_types}),pp)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}df.create=(e,t,n)=>new df({left:e,right:t,typeName:Df.ZodIntersection,...Ap(n)});class pf extends Op{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==np.array)return up(n,{code:op.invalid_type,expected:np.array,received:n.parsedType}),pp;if(n.data.length<this._def.items.length)return up(n,{code:op.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),pp;!this._def.rest&&n.data.length>this._def.items.length&&(up(n,{code:op.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new Ep(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>dp.mergeArray(t,e))):dp.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new pf({...this._def,rest:e})}}pf.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pf({items:e,typeName:Df.ZodTuple,rest:null,...Ap(t)})};class ff extends Op{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==np.object)return up(n,{code:op.invalid_type,expected:np.object,received:n.parsedType}),pp;const r=[],o=this._def.keyType,i=this._def.valueType;for(const a in n.data)r.push({key:o._parse(new Ep(n,a,n.path,a)),value:i._parse(new Ep(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?dp.mergeObjectAsync(t,r):dp.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ff(t instanceof Op?{keyType:e,valueType:t,typeName:Df.ZodRecord,...Ap(n)}:{keyType:$p.create(),valueType:e,typeName:Df.ZodRecord,...Ap(t)})}}class hf extends Op{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==np.map)return up(n,{code:op.invalid_type,expected:np.map,received:n.parsedType}),pp;const r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new Ep(n,e,n.path,[i,"key"])),value:o._parse(new Ep(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return pp;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return pp;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}hf.create=(e,t,n)=>new hf({valueType:t,keyType:e,typeName:Df.ZodMap,...Ap(n)});class gf extends Op{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==np.set)return up(n,{code:op.invalid_type,expected:np.set,received:n.parsedType}),pp;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(up(n,{code:op.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(up(n,{code:op.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return pp;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>o._parse(new Ep(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>i(e))):i(a)}min(e,t){return new gf({...this._def,minSize:{value:e,message:xp.toString(t)}})}max(e,t){return new gf({...this._def,maxSize:{value:e,message:xp.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}gf.create=(e,t)=>new gf({valueType:e,minSize:null,maxSize:null,typeName:Df.ZodSet,...Ap(t)});class mf extends Op{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==np.function)return up(t,{code:op.invalid_type,expected:np.function,received:t.parsedType}),pp;function n(e,n){return cp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,lp(),ap].filter((e=>!!e)),issueData:{code:op.invalid_arguments,argumentsError:n}})}function r(e,n){return cp({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,lp(),ap].filter((e=>!!e)),issueData:{code:op.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof kf){const e=this;return hp((async function(...t){const a=new ip([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw a.addIssue(n(t,e)),a})),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,o).catch((e=>{throw a.addIssue(r(l,e)),a}))}))}{const e=this;return hp((function(...t){const a=e._def.args.safeParse(t,o);if(!a.success)throw new ip([n(t,a.error)]);const s=Reflect.apply(i,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new ip([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new mf({...this._def,args:pf.create(e).rest(ef.create())})}returns(e){return new mf({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new mf({args:e||pf.create([]).rest(ef.create()),returns:t||ef.create(),typeName:Df.ZodFunction,...Ap(n)})}}class yf extends Op{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}yf.create=(e,t)=>new yf({getter:e,typeName:Df.ZodLazy,...Ap(t)});class bf extends Op{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return up(t,{received:t.data,code:op.invalid_literal,expected:this._def.value}),pp}return{status:"valid",value:e.data}}get value(){return this._def.value}}function vf(e,t){return new wf({values:e,typeName:Df.ZodEnum,...Ap(t)})}bf.create=(e,t)=>new bf({value:e,typeName:Df.ZodLiteral,...Ap(t)});class wf extends Op{constructor(){super(...arguments),_p.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return up(t,{expected:Jd.joinValues(n),received:t.parsedType,code:op.invalid_type}),pp}if(vp(this,_p)||wp(this,_p,new Set(this._def.values)),!vp(this,_p).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return up(t,{received:t.data,code:op.invalid_enum_value,options:n}),pp}return hp(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return wf.create(e,{...this._def,...t})}exclude(e,t=this._def){return wf.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}_p=new WeakMap,wf.create=vf;class xf extends Op{constructor(){super(...arguments),Cp.set(this,void 0)}_parse(e){const t=Jd.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==np.string&&n.parsedType!==np.number){const e=Jd.objectValues(t);return up(n,{expected:Jd.joinValues(e),received:n.parsedType,code:op.invalid_type}),pp}if(vp(this,Cp)||wp(this,Cp,new Set(Jd.getValidEnumValues(this._def.values))),!vp(this,Cp).has(e.data)){const e=Jd.objectValues(t);return up(n,{received:n.data,code:op.invalid_enum_value,options:e}),pp}return hp(e.data)}get enum(){return this._def.values}}Cp=new WeakMap,xf.create=(e,t)=>new xf({values:e,typeName:Df.ZodNativeEnum,...Ap(t)});class kf extends Op{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==np.promise&&!1===t.common.async)return up(t,{code:op.invalid_type,expected:np.promise,received:t.parsedType}),pp;const n=t.parsedType===np.promise?t.data:Promise.resolve(t.data);return hp(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}kf.create=(e,t)=>new kf({type:e,typeName:Df.ZodPromise,...Ap(t)});class _f extends Op{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Df.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{up(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){const e=r.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return pp;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?pp:"dirty"===r.status||"dirty"===t.value?fp(r.value):r}));{if("aborted"===t.value)return pp;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?pp:"dirty"===r.status||"dirty"===t.value?fp(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?pp:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?pp:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!yp(e))return e;const i=r.transform(e.value,o);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>yp(e)?Promise.resolve(r.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}Jd.assertNever(r)}}_f.create=(e,t,n)=>new _f({schema:e,typeName:Df.ZodEffects,effect:t,...Ap(n)}),_f.createWithPreprocess=(e,t,n)=>new _f({schema:t,effect:{type:"preprocess",transform:e},typeName:Df.ZodEffects,...Ap(n)});class Cf extends Op{_parse(e){return this._getType(e)===np.undefined?hp(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Cf.create=(e,t)=>new Cf({innerType:e,typeName:Df.ZodOptional,...Ap(t)});class Ef extends Op{_parse(e){return this._getType(e)===np.null?hp(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ef.create=(e,t)=>new Ef({innerType:e,typeName:Df.ZodNullable,...Ap(t)});class Sf extends Op{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===np.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Sf.create=(e,t)=>new Sf({innerType:e,typeName:Df.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Ap(t)});class Af extends Op{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return bp(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ip(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new ip(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Af.create=(e,t)=>new Af({innerType:e,typeName:Df.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Ap(t)});class Of extends Op{_parse(e){if(this._getType(e)!==np.nan){const t=this._getOrReturnCtx(e);return up(t,{code:op.invalid_type,expected:np.nan,received:t.parsedType}),pp}return{status:"valid",value:e.data}}}Of.create=e=>new Of({typeName:Df.ZodNaN,...Ap(e)});const Tf=Symbol("zod_brand");class Rf extends Op{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ff extends Op{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?pp:"dirty"===e.status?(t.dirty(),fp(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?pp:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Ff({in:e,out:t,typeName:Df.ZodPipeline})}}class Nf extends Op{_parse(e){const t=this._def.innerType._parse(e),n=e=>(yp(e)&&(e.value=Object.freeze(e.value)),e);return bp(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Pf(e,t={},n){return e?Jp.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):Jp.create()}Nf.create=(e,t)=>new Nf({innerType:e,typeName:Df.ZodReadonly,...Ap(t)});const Lf={object:af.lazycreate};var Df,If;(If=Df||(Df={})).ZodString="ZodString",If.ZodNumber="ZodNumber",If.ZodNaN="ZodNaN",If.ZodBigInt="ZodBigInt",If.ZodBoolean="ZodBoolean",If.ZodDate="ZodDate",If.ZodSymbol="ZodSymbol",If.ZodUndefined="ZodUndefined",If.ZodNull="ZodNull",If.ZodAny="ZodAny",If.ZodUnknown="ZodUnknown",If.ZodNever="ZodNever",If.ZodVoid="ZodVoid",If.ZodArray="ZodArray",If.ZodObject="ZodObject",If.ZodUnion="ZodUnion",If.ZodDiscriminatedUnion="ZodDiscriminatedUnion",If.ZodIntersection="ZodIntersection",If.ZodTuple="ZodTuple",If.ZodRecord="ZodRecord",If.ZodMap="ZodMap",If.ZodSet="ZodSet",If.ZodFunction="ZodFunction",If.ZodLazy="ZodLazy",If.ZodLiteral="ZodLiteral",If.ZodEnum="ZodEnum",If.ZodEffects="ZodEffects",If.ZodNativeEnum="ZodNativeEnum",If.ZodOptional="ZodOptional",If.ZodNullable="ZodNullable",If.ZodDefault="ZodDefault",If.ZodCatch="ZodCatch",If.ZodPromise="ZodPromise",If.ZodBranded="ZodBranded",If.ZodPipeline="ZodPipeline",If.ZodReadonly="ZodReadonly";const zf=$p.create,jf=Zp.create,Mf=Of.create,Bf=Vp.create,Uf=Kp.create,qf=Gp.create,Hf=Qp.create,$f=Xp.create,Wf=Yp.create,Zf=Jp.create,Vf=ef.create,Kf=tf.create,Gf=nf.create,Qf=rf.create,Xf=af.create,Yf=af.strictCreate,Jf=sf.create,eh=cf.create,th=df.create,nh=pf.create,rh=ff.create,oh=hf.create,ih=gf.create,ah=mf.create,sh=yf.create,lh=bf.create,ch=wf.create,uh=xf.create,dh=kf.create,ph=_f.create,fh=Cf.create,hh=Ef.create,gh=_f.createWithPreprocess,mh=Ff.create,yh={string:e=>$p.create({...e,coerce:!0}),number:e=>Zp.create({...e,coerce:!0}),boolean:e=>Kp.create({...e,coerce:!0}),bigint:e=>Vp.create({...e,coerce:!0}),date:e=>Gp.create({...e,coerce:!0})},bh=pp;var vh=Object.freeze({__proto__:null,defaultErrorMap:ap,setErrorMap:function(e){sp=e},getErrorMap:lp,makeIssue:cp,EMPTY_PATH:[],addIssueToContext:up,ParseStatus:dp,INVALID:pp,DIRTY:fp,OK:hp,isAborted:gp,isDirty:mp,isValid:yp,isAsync:bp,get util(){return Jd},get objectUtil(){return tp},ZodParsedType:np,getParsedType:rp,ZodType:Op,datetimeRegex:Hp,ZodString:$p,ZodNumber:Zp,ZodBigInt:Vp,ZodBoolean:Kp,ZodDate:Gp,ZodSymbol:Qp,ZodUndefined:Xp,ZodNull:Yp,ZodAny:Jp,ZodUnknown:ef,ZodNever:tf,ZodVoid:nf,ZodArray:rf,ZodObject:af,ZodUnion:sf,ZodDiscriminatedUnion:cf,ZodIntersection:df,ZodTuple:pf,ZodRecord:ff,ZodMap:hf,ZodSet:gf,ZodFunction:mf,ZodLazy:yf,ZodLiteral:bf,ZodEnum:wf,ZodNativeEnum:xf,ZodPromise:kf,ZodEffects:_f,ZodTransformer:_f,ZodOptional:Cf,ZodNullable:Ef,ZodDefault:Sf,ZodCatch:Af,ZodNaN:Of,BRAND:Tf,ZodBranded:Rf,ZodPipeline:Ff,ZodReadonly:Nf,custom:Pf,Schema:Op,ZodSchema:Op,late:Lf,get ZodFirstPartyTypeKind(){return Df},coerce:yh,any:Zf,array:Qf,bigint:Bf,boolean:Uf,date:qf,discriminatedUnion:eh,effect:ph,enum:ch,function:ah,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Pf((t=>t instanceof e),t),intersection:th,lazy:sh,literal:lh,map:oh,nan:Mf,nativeEnum:uh,never:Kf,null:Wf,nullable:hh,number:jf,object:Xf,oboolean:()=>Uf().optional(),onumber:()=>jf().optional(),optional:fh,ostring:()=>zf().optional(),pipeline:mh,preprocess:gh,promise:dh,record:rh,set:ih,strictObject:Yf,string:zf,symbol:Hf,transformer:ph,tuple:nh,undefined:$f,union:Jf,unknown:Vf,void:Gf,NEVER:bh,ZodIssueCode:op,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:ip});const wh=vh.union([vh.string(),vh.number(),vh.boolean(),vh.null()]),xh=vh.lazy((()=>vh.union([wh,vh.array(xh),vh.record(xh)]))),kh=vh.string().datetime({local:!0,offset:!0}),_h=vh.object({completion_tokens:vh.number().optional(),prompt_tokens:vh.number().optional(),total_tokens:vh.number().optional()}),Ch=vh.object({id:vh.string().uuid().optional(),model:vh.string().optional(),temperature:vh.number().optional(),instructions:vh.string().optional(),additional_instructions:vh.string().optional(),knowledge_base_id:vh.string().uuid().optional(),weaviate_collection_name:vh.string().optional(),thread_id:vh.string().uuid().optional(),assistant_id:vh.string().uuid().optional(),schema_version:vh.number().optional(),status:vh.enum(["completed","in_progress","failed"]).optional(),created_at:kh,updated_at:kh,usage:_h.optional()});vh.object({id:vh.string().uuid(),object:vh.literal("thread.run.failed"),data:Ch.omit({status:!0}).extend({status:vh.literal("failed")})});const Eh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.run.completed"),data:Ch.omit({status:!0}).extend({status:vh.literal("completed")})}),Sh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.run.usage"),data:_h}),Ah=vh.object({id:vh.string().uuid(),object:vh.literal("thread.message.content.delta"),delta:vh.object({content:vh.array(vh.object({index:vh.number(),text_value:vh.string().optional()}).optional())})}),Oh=vh.object({trustworthiness_score:vh.number().or(vh.null()).optional()}),Th=vh.object({thread_id:vh.string().uuid(),role:vh.enum(["user","assistant"]),content:vh.string(),metadata:Oh,schema_version:vh.number(),id:vh.string().uuid(),created_at:kh,updated_at:kh}),Rh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.message.created"),data:Th}),Fh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.run.in_progress"),data:Ch.omit({status:!0}).extend({status:vh.literal("in_progress")})}),Nh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.run_step.in_progress"),data:Ch.omit({status:!0}).extend({status:vh.literal("in_progress")})}),Ph=vh.object({id:vh.string().uuid(),object:vh.literal("thread.message.content.completed"),data:Th}),Lh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.run_step.completed"),data:Ch.omit({status:!0}).extend({status:vh.literal("completed")})}),Dh=vh.object({id:vh.string().uuid(),object:vh.literal("thread.message.metadata.delta"),delta:vh.object({metadata:Oh})});const Ih=[239,187,191];class zh extends TransformStream{constructor(){let e;super({start(t){e=function(e){let t,n,r,o,i,a,s;return l(),{feed:function(e){n=n?n+e:e,t&&function(e){return Ih.every(((t,n)=>e.charCodeAt(n)===t))}(n)&&(n=n.slice(Ih.length)),t=!1;const i=n.length;let a=0,s=!1;for(;a<i;){s&&("\n"===n[a]&&++a,s=!1);let e,t=-1,l=o;for(let o=r;t<0&&o<i;++o)e=n[o],":"===e&&l<0?l=o-a:"\r"===e?(s=!0,t=o-a):"\n"===e&&(t=o-a);if(t<0){r=i-a,o=l;break}r=0,o=-1,c(n,a,l,t),a+=t+1}a===i?n="":a>0&&(n=n.slice(a))},reset:l};function l(){t=!0,n="",r=0,o=-1,i=void 0,a=void 0,s=""}function c(t,n,r,o){if(0===o)return s.length>0&&(e({type:"event",id:i,event:a||void 0,data:s.slice(0,-1)}),s="",i=void 0),void(a=void 0);const l=r<0,c=t.slice(n,n+(l?o:r));let u=0;u=l?o:" "===t[n+r+1]?r+2:r+1;const d=n+u,p=o-u,f=t.slice(d,d+p).toString();if("data"===c)s+=f?`${f}\n`:"\n";else if("event"===c)a=f;else if("id"!==c||f.includes("\0")){if("retry"===c){const t=parseInt(f,10);Number.isNaN(t)||e({type:"reconnect-interval",value:t})}}else i=f}}((e=>{"event"===e.type&&t.enqueue(e)}))},transform(t){e.feed(t)}})}}const jh=(e,t)=>{var n,r,o;if("thread.message.content.delta"===(null==e?void 0:e.object)){const i=null==(o=null==(r=null==(n=null==e?void 0:e.delta)?void 0:n.content)?void 0:r[0])?void 0:o.text_value;i&&t(i,{})}else"thread.message.metadata.delta"===(null==e?void 0:e.object)&&t("",{trustworthinessScore:e.delta.metadata.trustworthiness_score})},Mh=e=>{const[t,n]=Tt(null),[r,o]=Tt(""),[i,a]=Tt(""),[s,l]=Tt(),[c,u]=Tt(!1),[d,p]=Tt([]),{apiKey:f}=oo(),h=Kr(),{mutateAsync:g}=(()=>{const e=Kr(),t=Xd();return no({mutationFn:async()=>{const{data:e}=await t.post("/threads/");return Hc(e)},onSuccess:()=>{e.invalidateQueries({queryKey:Uc()})},onError:e=>{}})})(),{mutateAsync:m}=(()=>{const e=Kr(),t=Xd();return no({mutationFn:async({threadId:e,message:n})=>{const{data:r}=await t.post(`/threads/${e}/messages/`,{thread_id:e,role:"user",content:n,metadata:{trustworthiness_score:null}});return Hc(r)},onSuccess:()=>{e.invalidateQueries({queryKey:qc()})},onError:e=>{}})})(),y=(e=>{const t=Xd(),{data:n}=to({queryKey:qc(),queryFn:async()=>{try{return(await t.get(`/threads/${e}/messages/`)).data.reduce(((e,t)=>(e.find((e=>e.id===t.id))||e.push(t),e)),[])}catch{throw new Error("Failed to fetch messages")}},enabled:!!e});return Hc(n??[])})(t??""),b=(({assistantId:e})=>{const t=Xd(),{data:n}=to({queryKey:Yd(),queryFn:async()=>{try{return(await t.get(`assistants/${e}`)).data}catch{throw new Error("Failed to fetch assistant")}},enabled:!!e});return Hc(n??[])})({assistantId:e??""}),{startStream:v,isLoading:w,messageContentComplete:x}=function({streamCallback:e,errorCallback:t}){const n=Kr(),[r,o]=Tt(!1),[i,a]=Tt(!1),{apiKey:s}=oo(),{mutate:l}=no({mutationFn:async({threadId:e,assistant:n})=>{o(!0);try{const r=await fetch(`${Gd}/threads/${e}/runs/stream`,{method:"POST",headers:{"Content-Type":"application/json","X-Api-Key":s||""},body:JSON.stringify({assistant_id:n.id,model:n.model,instructions:n.instructions,additional_instructions:"",knowledge_base_id:n.knowledgeBaseId})});if(!r.body)throw new Error("ReadableStream not supported in this browser.");const i=((e,t,n)=>e.pipeThrough(new TextDecoderStream).pipeThrough(new zh).pipeThrough(new TransformStream({transform(e,r){const o=JSON.parse(e.data),i=e.event;if("event"===e.type)switch(i){case"thread.message.content.delta":r.enqueue(Ah.parse(o));break;case"thread.message.created":r.enqueue(Rh.parse(o));break;case"thread.run.completed":r.enqueue(Eh.parse(o)),n(!1);break;case"thread.run.in_progress":r.enqueue(Fh.parse(o));break;case"thread.run_step.in_progress":r.enqueue(Nh.parse(o));break;case"thread.message.metadata.delta":r.enqueue(Dh.parse(o));break;case"thread.run.usage":r.enqueue(Sh.parse(o));break;case"thread.message.content.completed":r.enqueue(Ph.parse(o)),n(!0);break;case"thread.run_step.completed":r.enqueue(Lh.parse(o));break;default:throw t(),new Error("Unknown event type")}}})).getReader())(r.body,(()=>{o(!1),t()}),a);return i}catch(r){throw o(!1),t(),r}},onSuccess:r=>{let i="",a={};const s=({done:l,value:c})=>{if(l)return o(!1),void n.invalidateQueries({queryKey:qc()});jh(c,((t,n)=>{i+=t,a={...a,...n},e(i,a)})),r.read().then((e=>s(e))).catch((()=>{o(!1),t()}))};r.read().then((e=>s(e))).catch((()=>{o(!1),t()}))},onError:()=>{o(!1),t()}});return{startStream:l,isLoading:r,messageContentComplete:i}}({streamCallback:(e,t)=>{a(e),t&&l(t)},errorCallback:()=>{l(null),u(!0)}});Ft((()=>{!t&&f&&g().then((({id:e})=>n(e))),h.invalidateQueries({queryKey:qc()})}),[t,g]);const k=It((()=>{const e={role:"assistant",content:!c||x?i:"An error occurred. Please try again",id:w?"streaming-"+Date.now().toString():Date.now().toString(),metadata:{trustworthinessScore:c?-1:(null==s?void 0:s.trustworthinessScore)??null}};p((t=>{const n=t[t.length-1];return n&&"assistant"===n.role?[...t.slice(0,-1),e]:[...t,e]}))}),[i,s,w,c,x]);return Ft((()=>{d.length>0&&k()}),[i,s,c,k]),{threadId:t,setThreadId:n,input:r,setInput:o,streamedContent:i,isStreamPending:w,messages:y,assistant:b,handleSendMessage:async e=>{if(u(!1),e.trim()){o(""),await m({threadId:t,message:e});const n={role:"user",content:e,id:Date.now().toString()};p((e=>[...e,n])),a(""),v({threadId:t,assistant:b})}},localMessages:d,clearChat:()=>{n(null),p([])},streamedMetadata:s,messageContentComplete:x}},Bh=Fl({base:"type-kbd flex min-h-[20px] items-center rounded-1 px-3 text-center text-text-faint outline outline-1 outline-border-2",variants:{variant:{outline:"",primary:"bg-surface-2",highContrast:"bg-surface-high-contrast text-text-high-contrast outline-border-0",subtle:"bg-surface-1 text-text-primary outline-border-1"}}}),Uh=tn(on((({className:e,variant:t="primary",disabled:n,...r},o)=>Yn("div",{ref:o,className:Pl(Bh({variant:t}),n&&"text-text-disabled",e),...r}))));Uh.displayName="Kbd";var qh=rl&&rl.__assign||function(){return qh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qh.apply(this,arguments)};function Hh(e,t,n){if("className"===t)e.className=[e.className,n].join(" ").trim();else if("style"===t)e.style=qh(qh({},e.style),n);else if("function"==typeof n){var r=e[t];e[t]=r?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.apply(void 0,e),n.apply(void 0,e)}:n}else{if(void 0===n||"object"!=typeof n&&n===e[t])return;if(t in e)throw new Error("Didn’t know how to merge prop '".concat(t,"'. ")+"Only 'className', 'style', and event handlers are supported");e[t]=n}}var $h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?e[0]:e.reduce((function(e,t){for(var n in t)Hh(e,n,t[n]);return e}),{})};const Wh=ol($h);function Zh({children:e},t){return"function"==typeof e?e(t):Yn(Ve,{children:e})}const Vh=on(((e,t)=>{const{asChild:n,child:r,children:o,...i}=e,a=Xi([r.ref,t]);if(!Mn(r))return n?null:Yn(Ve,{children:Zh(e,r)});const s=r.type===ac,l=!!r.props.asChild;return Yn(Ve,{children:qn(r,{...Wh(r.props,i),ref:a},s||l?Yn(Vh,{asChild:n,child:r.props.children,children:o}):Zh(e,r.props.children))})})),Kh=Fl({base:"relative flex shrink-0 items-center rounded-2 outline outline-1 -outline-offset-1 transition-colors focus-visible:outline-1 focus-visible:ring focus-visible:ring-focus disabled:cursor-not-allowed disabled:bg-surface-disabled disabled:text-text-disabled disabled:outline-border-2",variants:{variant:{primary:"bg-blue-600 text-text-high-contrast outline-blue-700 hover:bg-blue-700 hover:outline-blue-800 focus-visible:outline-blue-50 active:bg-blue-800 group-hover/button:bg-blue-700 group-hover/button:outline-blue-800 dark:bg-blue-200 dark:text-blue-900 dark:outline-blue-300 dark:hover:bg-blue-300 dark:hover:outline-blue-300 dark:focus-visible:outline-blue-900 dark:focus-visible:hover:outline-blue-900 dark:active:bg-blue-300",primaryFaint:"bg-surface-0 text-blue-600 outline-blue-200 hover:bg-blue-50 focus-visible:outline-blue-700 active:bg-blue-200 group-hover/button:bg-blue-50",secondary:"bg-surface-1 text-text-primary outline-border-1 hover:bg-surface-1-hover focus-visible:outline-blue-700 active:bg-surface-1-active group-hover/button:bg-surface-1-hover",secondaryStrong:"bg-surface-2 text-text-strong outline-border-2 hover:bg-surface-2-hover focus-visible:outline-blue-700 active:bg-surface-2-active group-hover/button:bg-surface-2-hover",secondaryFaint:"bg-surface-0 text-text-primary outline-border-1 hover:bg-surface-0-hover focus-visible:outline-blue-700 active:bg-surface-0-active group-hover/button:bg-surface-0-hover",highContrast:"bg-surface-high-contrast text-text-high-contrast outline-surface-high-contrast hover:bg-neutral-800 focus-visible:outline-blue-50 active:bg-neutral-700 group-hover/button:hover:bg-neutral-800",critical:"bg-red-50 text-red-700 outline-red-600 hover:bg-red-600 hover:text-red-50 hover:outline-red-700 focus-visible:outline-red-700 active:bg-red-600 active:text-red-50 group-hover/button:bg-red-600 group-hover/button:text-red-50 group-hover/button:outline-red-700"},size:{xSmall:"type-button-xs min-h-8 px-4",small:"type-button-sm min-h-9 px-5 py-3",medium:"type-button-md min-h-[36px] px-6 py-4",large:"type-button-lg min-h-10 px-7 py-4"}},compoundVariants:[{variant:["primary","primaryFaint"],class:""},{variant:["secondary","secondaryFaint","secondaryStrong"],class:""}]}),Gh={xSmall:12,small:16,medium:16,large:16},Qh=tn(on(((e,t)=>{const{className:n,children:r,variant:o="primary",size:i="medium",iconEnd:a,iconStart:s,shortcutKey:l,disabled:c,asChild:u=!1,...d}=e,p=u?ac:"button";let f,h;return s?f=qn(s,{size:Gh[i]}):a&&(h=qn(a,{size:Gh[i]})),Yn(p,{ref:t,className:Dt((()=>Pl(Kh({variant:o,size:i}),n)),[n,i,o]),disabled:c,type:e.asChild?void 0:e.type??"button",...d,children:Yn(Vh,{asChild:!!u,child:r,children:e=>Yn(Ve,{children:[f&&Yn("div",{className:Pl("relative -ms-1 pe-2",{"pe-3":"medium"===i||"large"===i}),children:f}),Yn("div",{className:"relative",children:e}),h&&Yn("div",{className:Pl("p relative -me-1 ps-2",{"ps-3":"medium"===i||"large"===i}),children:h}),l&&!a&&Yn("div",{className:Pl("relative ps-2",{"ps-3":"medium"===i,"ps-4":"large"===i}),children:Yn(Uh,{className:"relative",variant:c?"outline":"primary",disabled:c,children:l})})]})})})})));Qh.displayName="Button";var Xh=Nt,Yh=function(e,t){"function"!=typeof e?e.current=t:e(t)},Jh={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},eg=function(e){Object.keys(Jh).forEach((function(t){e.style.setProperty(t,Jh[t],"important")}))},tg=null,ng=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},rg=function(){},og=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],ig=!!document.documentElement.currentStyle;function ag(e,t,n){var r,o,i=(o=Pt(r=n),Xh((function(){o.current=r})),o);Nt((function(){var n=function(e){return i.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}}),[])}var sg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],lg=on((function(e,t){var n,r=e.cacheMeasurements,o=e.maxRows,i=e.minRows,a=e.onChange,s=void 0===a?rg:a,l=e.onHeightChange,c=void 0===l?rg:l,u=Dl(e,sg),d=void 0!==u.value,p=Pt(null),f=function(e,t){var n=Pt();return It((function(r){e.current=r,n.current&&Yh(n.current,null),n.current=t,t&&Yh(t,r)}),[t])}(p,t),h=Pt(0),g=Pt(),m=function(){var e=p.current,t=r&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,og.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(ig&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){g.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),tg||((tg=document.createElement("textarea")).setAttribute("tabindex","-1"),tg.setAttribute("aria-hidden","true"),eg(tg)),null===tg.parentNode&&document.body.appendChild(tg);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;tg.style[t]=a[t]})),eg(tg),tg.value=t;var l=ng(tg,e);tg.value=t,l=ng(tg,e),tg.value="x";var c=tg.scrollHeight-o,u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);var d=c*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",i,o),a=n[0],s=n[1];h.current!==a&&(h.current=a,e.style.setProperty("height",a+"px","important"),c(a,{rowHeight:s}))}};return Nt(m),ag(window,"resize",m),n=m,ag(document.fonts,"loadingdone",n),$e("textarea",Ll({},u,{onChange:function(e){d||m(),s(e)},ref:f}))}));const cg=({input:e,setInput:t,onSendMessage:n})=>Yn("div",{className:"flex flex-col gap-4 px-8 py-4 text-text-primary",children:[Yn("div",{className:"relative flex gap-4",children:[Yn(lg,{className:"type-body-100 max-h-[142px] w-full resize-none overflow-y-auto rounded-2 border border-border-1 bg-transparent py-[14px] pl-6 pr-11 placeholder:type-body-100 placeholder:text-text-disabled focus-within:outline-none",placeholder:"Ask Agility",value:e,onKeyDown:t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),n(e))},onChange:e=>t(e.target.value)}),Yn("div",{className:"absolute right-6 top-1/2 -translate-y-1/2",children:Yn(Qh,{onClick:()=>n(e),variant:"secondaryFaint",type:"submit",size:"xSmall",children:[Yn(Mc,{className:"size-6"}),Yn("span",{className:"sr-only",children:"Send message"})]})})]}),Yn("div",{className:"flex w-full items-center justify-center gap-4",children:[Yn("p",{className:"type-caption-medium",children:"Powered by"}),Yn(jc,{})]})]}),ug=({className:e,logo:t})=>Yn("img",{src:t||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe0AAACrCAMAAAB8HDQMAAAAY1BMVEUAAAD////8/P/6+v39/f38/P38/P79/f38/P38/P77+//6+v/////8/Pz8/P39/f79/f/9/f/7+/v7+/v6+vr7+/v6+vz6+vr8/Pz9/f/7+/37+/3////8/P39/f37+/z8/PxM7ZSDAAAAIXRSTlMAIFBwj5+/3/+vQDAQYO/Pf2+QQDCAoHBQj4CQX9/PsK+lqEHGAAAMRUlEQVR4AezZBYLrMAxFUTmNLcU1hIr73+fH4ZkyWek7S8iNmQAAAAAAAAAAAAAAAAAAAAAAAABKYqpZbR2z/MPsmnrm5zQ1EGLtkvwouboyNBXg6ywH5NrTFCB1kqOwRXDdQpvkBNwaUgp8IyezKnuDd3IW52n60BrjW6lg5XTorVOXZJfEzlrb99Y2LifZhQcCFcyOSTz3cQz0SRhmvZOfRAK1Azv3Q6Bdhj6rrA3ByTduYegAE7O62jCyfJH6gY5ilqyqNnTfWi8CHS+yntrQ7mp9em/ULp3d0fokK1ZYG/szZ+gsZonaxQtZPkprOtvAqmojdhPoAqFH7aI18tGKLhQNQbE2Iu94pGeBo1c29CxwqbIMNGFgkrxbkiKW/yjhdXXNf1QqYrPW2Eb+2dLDRTV3DPbU2GFeVT5QId9YJNHdtCw5nlK7y8ItlSPKb/bOt0FtlYniYDZAsgOxEl0bW9vv/ykfn7p3ud14DJMqGXv9vbn/rwmHGeAMkESTs7/c/nNgQKuFMe5MLLt0WSO10fS3FpnHO1IT6EbQ9jPt3jkU/kHKVZsC6I4C8ridFO9bkLT9bHDvBCqbBmOu2q27NrOg9oReKo/r7GV54ptaDutO7NyJlSrCnqu2RvXf1Bf8Qnn8jb3XoWSSAo1VR3fCqCLQubVs/rhtcNIsoTaO1pqzLE8EWnQMWp0blApu5LIaqQ2iKfRKhNqaM2g37iL1koncvo/elSrEfvCksNr4PxCgds3YNtg6gFaLsH/vauROGOnuigC1NSdCawcYFkzk8Z+xUT/VzhcwaDWFQ3xXS0Af86UKdbmn2iC0txmPBqHF2vfwYWF8f6qdHdo2530gr4u5pjr9aXyqfRVi7fUfHMQv5Zp26hdx2j19qu1xaPPUXi3cvBQmC2FPtY+s4PQOEpdyTbU6c5h6iqfamhXaKoqapfW/LbIn3dOn2geeG0YOYZdabKeGCrMsXPK/LvK0phlW9JerbZlmmHGAeqlEnhSa4Z5SZdy/Mf7Tu35Hv2uw2qDVUFIdMfrXAiNN66lc6BgpMApyTtvUy1Aq51/7Z70otdHCEv36D3WFir2A6oSEdip/JZiFsH0AV0FJUrvKbl0zuTIy3EkWCO6gVXmCc86O1ocD/2SMbeoTJqRCoBy1KbegrCdnTwQSOdspf1tqBlyPXscwDzgaT5/vjQn9/dWm+E7lTmziv7jw33pGc0BabiIHam8Xc03jzEFO28tbKKNNqeqOajPm5PvMLnycfPcDf5K1ciNC+cgGmavKdU+pg/sn39wJSyLUTjtWid8ceNi27CVbwvRqyfLXqGVC9pjdEQx7I0ZtdchaWB6mO3pw7/zg2eqJYKJahmNKSexU/iWdbERyV1LUBgtLbCJPr7arGaEdNlW6BHPR8lciMnZSdnTtnweSorbKSeXtuDnwJC3yQ9tqtSSHi41EWe5pnZ4fh9MgRm20sMQm8oS3MiO0e1UanLlAJwC00x1841wgKWrHFLeM5sBT8o4f2rUqCGgjM2+QM9PPT9a5SoDaeDbCX6YZrrdiF/XFceZiDXItyuOfhLNWitp4hyUjkasj83jkl+VDG5S/FCyEgZbZZv2AELUJFMJ4K0/L2wyupYR2OjQwI5VT3vNXMtTGqRy7pgCmb7qWE9o/cb3HoA2woGUAFBZWGztJoDlirtorwaGNbULuegW0DGAnR22wsATNAdC85XYtIbRBfDIGuVxzdS9E7dT1Irs55qutF65m43GMNci1uUYxCVIbz0bw4MVXG4T2VslK5JxCWJU9TzkKURvssGQkcr7aWoRnCvRkDHI/s08xHZZRm18Iq/A/w2qLD21sEzJS+THbKPaS1MapHDfHfLXXi+0cB6W7buYgF7KN4l6I2mCHJThDAaEstWk11DX+7JME15SRyim/mk+i1MYeIW4OtrvSGuahkPalC84FM+hyiZwxyPUMo1iU2nCHJTaR0daVivExT5/7QUjzWqr8xUjlLWMTshWkNr5qpM01QOxEVaQ9a2eNMQGHNu4cX8skctCNNW5b+WrDQhg4Q8E51FVjNyls9TkF7iYLKH1wibt9wIAczlzYPcWCYIwgtfFVIzZ34rz7UAXu3trQp7tsPUNs5zq6j2tq2qus4ZArX22mwY+qgSAEoK3cjZbW22szHG3LnA8zLpf496iNrxqpeacCUU3LX/BRmiseeV3mygbtsjk8rtrYPQVXiLFabnXxleylsQN8OGNd6BS/d9kE1LbVo83S8FUjnrHGCDgM2vQMn3N/19QjQqn7WI4un/i4KzCcysG6jNN05mJHImS/cahv75raOMnGnWhAOquluysAO/IINWcP6QHfOG0uG4xHxyXcfrF9UBjsnnKdUy1O7SElLPyLGI+THkh4O8dGF3BNQQNXOD1P04pRG7unhtPAGs9fgdqDY8M1UPnHnRjuKeO2jkqc2sqkhJX0+8E/n/v9fmrHsq4pPvbMvEPvpyC1wb6FileTPEBN7OXh8eeyaof8zHUYzb6ZSxYrT20Kv/+y5c2LIkzlJ1kNagIedGvXlPFqBo1902gnRG08DvXcNU9AU+fqYhD1jo299aEBz3m1OLscXElUO6bMhF1TzA4lXLrYbepF19t6OlfgQhj3mq2jFLVxKrfcYIrwDi1zod/4cwl0TO+tA8QChwbwq4Xpv41EEKA2mI28MvcxJAKSRY/3EvcBz5H6Aokc3PbH3Htqspq3lqI2TuU1f307wE/zbj/L3Qa8vRiuzfalDg2AJzqMNeGcmpKmtkp7GvD2WQxh06txJ75qdYa+Xv80N9l735t3YGUufGmkzRi5G+fqowS1sXu6x/8hxsDgpvMUzlSrdlUZh8XG2xnMzV3TyH01f1mUoKfuJdCmnNoDL8EdPhYoWvGIVyZUWxypWXLv6NauqVUMqmvuqaXrV2wZVUBt3qI5uafc8lfCXIlEvXMJMxVXegduxCxQ/uK4p316W9xtdQG103jD7MIR/1hecIP/WG86dyJ026imiSZpXetChwb4hbC3sxNAV8TeqCJq8wcocifqZKtxMVMfVtZaq1y0b4y1Xe1J3ZY9Ln/xjxHsrhxWbe05z5dSe0gPySiE6bnOVbzffv+y5S+QyjW+w9iP/8nX9zlcEbXTuFLxur33s7/BZsDyWBLaAeHYhbAk91hvWofUDCXUTp80/8bqwh1wTQVcslGs/MWwSWnzMb/wLakTuq2M+0WIqqTa+tzD1sTpwpxEjn2wTkkE+52MQhhYXibKfFcE5GbnbN2qE9S2mSNvVLMgK33oRuUvvnua0D/dBcKWVAG1Qcez1k7vmwt/WIKILlEpKfA/lARSOaF/2oy03miliqut3gJnA8jwp0JtnOyZmuVMQRmXRmpvQpK6qajsySCQZ3xWbGoFYeTy0CtpaHOiUTN4Mye26hp99NXg/V7nngNrjDEvaszenIhqzMGcUNeJO3CCDfUeo+bTh09yP0lql4H2Q21Ms/Ga/+EFLm8OyP1UWwr8QwOYzVNucKxEBoxDA+wPslZPtYM8+4F/aCBz98la/ddJUyFhzHdN8XaERqv/LPxtBuW/O35jue0fyq3Nq3pg9lIHNHxogC/3zbL5l8B/pMdvVPmJHMs9P7y1EdpW/M8SScw5B3UPuV09S29aOydXbVpXjAs2pcHfa8qQ2671nCQuWO3WukCMEqss9G3r0tS437FfWHpTZZ0TrPZXXNcdnSihx9+xhUF1fpuVz9NeH9FqR7QxaJzhtkJD26pb4q37jPGUIXVrwPlOSTQZz9alOaooyN46tNGlpc314gyt6uDcA6itw5Q3TJ0TOmrXtw9tvGure1lddEz06sWAs9sCiRNuQn/u6xslDar5zcoL7xHBNINvW/2L15Uf6i64hES1QXXXerx6FFQQadNiYv65Wf7ozWVLSrbczo4Gp3Yd0tXqImidbSq/8i+d+8VO3Qe9cX+A0Uou0bp3zMuqPT+pfvUvFhxPXZDaJfhic9C72VpHJQ3Gm4U3WQ5u4u3OrRIeWmtMb6DWWxJVeE2YXt0ZzR2/w1arh0DvrBtjhU03tG/OAddtoypBZAS42ZN6HOJggkvYpuqVQEhrrQqyT3GACaYi9XBQH/3/iX16+Cd9ZcI1pTeR1N/Ek34/NCMzxTYb/4yLvxbqY/RnYv+/duhACAAAgIHQzV96IF8IzUcCAAAAAAAAAAAAHIhvXPOleN8zAAAAAElFTkSuQmCC",alt:"Agility Assistant",className:Pl("block h-[32px] w-auto",e)}),dg=({isExpanded:e,onClose:t,onToggleExpand:n,logoUrl:r,headerColor:o,clearChat:i})=>Yn("div",{"data-theme":!o&&"dark",className:"absolute top-0 flex h-[64px] w-full items-center justify-between bg-surface-0 p-6",style:{backgroundColor:o??void 0},children:[Yn("div",{className:"flex items-center gap-2",children:[Yn(hc,{className:"h-min w-min p-4",variant:"outline",size:"small",icon:Yn(Dc,{}),onClick:t,"aria-label":"close assistant window"}),Yn(hc,{className:"h-min w-min p-4",variant:"outline",size:"small",icon:Yn(e?Lc:Nc,{}),onClick:n,"aria-label":"expand assistant window"})]}),Yn("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:Yn(ug,{logo:r})}),Yn(hc,{"data-theme":"light",className:"h-min w-min p-4",variant:"outline",size:"small",icon:Yn(Fc,{}),onClick:i,"aria-label":"create new chat"})]});var pg,fg,hg,gg,mg,yg,bg,vg=Object.create,wg=Object.defineProperty,xg=Object.defineProperties,kg=Object.getOwnPropertyDescriptor,_g=Object.getOwnPropertyDescriptors,Cg=Object.getOwnPropertyNames,Eg=Object.getOwnPropertySymbols,Sg=Object.getPrototypeOf,Ag=Object.prototype.hasOwnProperty,Og=Object.prototype.propertyIsEnumerable,Tg=(e,t,n)=>t in e?wg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rg=(e,t)=>{for(var n in t||(t={}))Ag.call(t,n)&&Tg(e,n,t[n]);if(Eg)for(var n of Eg(t))Og.call(t,n)&&Tg(e,n,t[n]);return e},Fg=(e,t)=>xg(e,_g(t)),Ng=(e,t)=>{var n={};for(var r in e)Ag.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Eg)for(var r of Eg(e))t.indexOf(r)<0&&Og.call(e,r)&&(n[r]=e[r]);return n},Pg=(pg={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var l=t[s],c=r.util.type(l);"Object"!==c||i[a(l)]?"Array"!==c||i[a(l)]||(i[a(l)]=!0,e(l,n,s,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],m=g.inside,y=!!g.lookbehind,b=!!g.greedy,v=g.alias;if(b&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,k=s.next,_=u;k!==t.tail&&!(d&&_>=d.reach);_+=k.value.length,k=k.next){var C=k.value;if(t.length>e.length)return;if(!(C instanceof o)){var E,S=1;if(b){if(!(E=i(x,_,e,y))||E.index>=e.length)break;var A=E.index,O=E.index+E[0].length,T=_;for(T+=k.value.length;A>=T;)T+=(k=k.next).value.length;if(_=T-=k.value.length,k.value instanceof o)continue;for(var R=k;R!==t.tail&&(T<O||"string"==typeof R.value);R=R.next)S++,T+=R.value.length;S--,C=e.slice(_,T),E.index-=_}else if(!(E=i(x,0,C,y)))continue;A=E.index;var F=E[0],N=C.slice(0,A),P=C.slice(A+F.length),L=_+C.length;d&&L>d.reach&&(d.reach=L);var D=k.prev;if(N&&(D=l(t,D,N),_+=N.length),c(t,D,S),k=l(t,D,new o(p,m?r.tokenize(F,m):F,v,F)),P&&l(t,k,P),S>1){var I={cause:p+","+h,reach:L};a(e,t,n,k.prev,_,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return fg||(0,pg[Cg(pg)[0]])((fg={exports:{}}).exports,fg),fg.exports}),Lg=((e,t,n)=>(n=null!=e?vg(Sg(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Cg(t))Ag.call(e,o)||undefined===o||wg(e,o,{get:()=>t[o],enumerable:!(r=kg(t,o))||r.enumerable});return e})(e&&e.__esModule?n:wg(n,"default",{value:e,enumerable:!0}),e)))(Pg());Lg.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Lg.languages.markup.tag.inside["attr-value"].inside.entity=Lg.languages.markup.entity,Lg.languages.markup.doctype.inside["internal-subset"].inside=Lg.languages.markup,Lg.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Lg.languages.markup.tag,"addInlined",{value:function(e,t){var n;(((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Lg.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}})["language-"+t]={pattern:/[\s\S]+/,inside:Lg.languages[t]},t={})[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Lg.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Lg.languages.markup.tag,"addAttribute",{value:function(e,t){Lg.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Lg.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Lg.languages.html=Lg.languages.markup,Lg.languages.mathml=Lg.languages.markup,Lg.languages.svg=Lg.languages.markup,Lg.languages.xml=Lg.languages.extend("markup",{}),Lg.languages.ssml=Lg.languages.xml,Lg.languages.atom=Lg.languages.xml,Lg.languages.rss=Lg.languages.xml,hg=Lg,gg={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},yg="(?:[^\\\\-]|"+(mg=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",yg=RegExp(yg+"-"+yg),bg={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},hg.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:yg,inside:{escape:mg,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":gg,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:mg}},"special-escape":gg,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":bg}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:mg,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":bg}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},Lg.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Lg.languages.javascript=Lg.languages.extend("clike",{"class-name":[Lg.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Lg.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Lg.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Lg.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Lg.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Lg.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Lg.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Lg.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Lg.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Lg.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Lg.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Lg.languages.markup&&(Lg.languages.markup.tag.addInlined("script","javascript"),Lg.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Lg.languages.js=Lg.languages.javascript,Lg.languages.actionscript=Lg.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Lg.languages.actionscript["class-name"].alias="function",delete Lg.languages.actionscript.parameter,delete Lg.languages.actionscript["literal-property"],Lg.languages.markup&&Lg.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Lg.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Lg),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,l=a.length;s<l;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(Lg),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(t=e.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Lg),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),t={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Lg),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Lg),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Lg),Lg.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Lg.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Lg.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(f(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<o.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=o.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),Lg.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,a){var l=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return c=0,function t(n){for(var i=0;i<n.length;i++){if(c>=d.length)return;var a,l,p,f,h,g,m,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=d[c],-1!==(m=(g="string"==typeof y?y:y.content).indexOf(a))&&(++c,l=g.substring(0,m),h=u[a],p=void 0,(f={})["interpolation-punctuation"]=o,3===(f=e.tokenize(h,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,h),f=g.substring(m+a.length),h=[],l&&h.push(l),h.push(p),f&&(t(g=[f]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(m=y.content,Array.isArray(m)?t(m):t([m]))}}(l),new e.Token(a,l,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,c=n[r];"string"!=typeof c&&(i=c.content,Array.isArray(i)?"template-string"===c.type?(c=i[1],3===i.length&&"string"!=typeof c&&"embedded-code"===c.type&&(a=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(i[1]=l(a,s,c))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(Lg),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Lg),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Lg),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Lg),Lg.languages.n4js=Lg.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Lg.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Lg.languages.n4jsd=Lg.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{},(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Lg),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(Lg),function(e){var t=e.util.clone(e.languages.typescript);(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],t=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Lg),Lg.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Lg.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Lg.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Lg),Lg.languages.c=Lg.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Lg.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Lg.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Lg.languages.c.string],char:Lg.languages.c.char,comment:Lg.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Lg.languages.c}}}}),Lg.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Lg.languages.c.boolean,Lg.languages.objectivec=Lg.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Lg.languages.objectivec["class-name"],Lg.languages.objc=Lg.languages.objectivec,Lg.languages.reason=Lg.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Lg.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Lg.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Lg),Lg.languages.go=Lg.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Lg.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Lg.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Lg),Lg.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Lg.languages.python["string-interpolation"].inside.interpolation.inside.rest=Lg.languages.python,Lg.languages.py=Lg.languages.python,Lg.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Lg.languages.webmanifest=Lg.languages.json,((e,t)=>{for(var n in t)wg(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>Dg,duotoneDark:()=>Ig,duotoneLight:()=>zg,github:()=>jg,gruvboxMaterialDark:()=>tm,gruvboxMaterialLight:()=>nm,jettwaveDark:()=>Xg,jettwaveLight:()=>Yg,nightOwl:()=>Mg,nightOwlLight:()=>Bg,oceanicNext:()=>Hg,okaidia:()=>$g,oneDark:()=>Jg,oneLight:()=>em,palenight:()=>Wg,shadesOfPurple:()=>Zg,synthwave84:()=>Vg,ultramin:()=>Kg,vsDark:()=>Gg,vsLight:()=>Qg});var Dg={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Ig={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},zg={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},jg={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Mg={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Bg={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Ug="#c5a5c5",qg="#8dc891",Hg={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Ug}},{types:["attr-value"],style:{color:qg}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:qg}},{types:["punctuation"],style:{color:qg}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Ug}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},$g={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Wg={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Zg={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Vg={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Kg={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Gg={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Qg={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Xg={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Yg={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Jg={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},em={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},tm={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},nm={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},rm=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Rg(Rg({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Fg(Rg({},n),{backgroundColor:void 0}),r},om=/\r\n|\r|\n/,im=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},am=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},sm=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const l=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,c=t[a];const u=n[a][i];if("string"==typeof u?(c=a>0?c:["plain"],e=u):(c=am(c,u.type),u.alias&&(c=am(c,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(om),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)im(s),l.push(s=[]),s.push({types:c,content:d[t]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return im(s),l},lm=({children:e,language:t,code:n,theme:r,prism:o})=>{const i=t.toLowerCase(),a=((e,t)=>{const[n,r]=Tt(rm(t,e)),o=Pt(),i=Pt();return Ft((()=>{t===o.current&&e===i.current||(o.current=t,i.current=e,r(rm(t,e)))}),[e,t]),n})(i,r),s=(e=>It((t=>{var n=t,{className:r,style:o,line:i}=n,a=Ng(n,["className","style","line"]);const s=Fg(Rg({},a),{className:qa("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Rg(Rg({},s.style||{}),o)),s}),[e]))(a),l=(e=>{const t=It((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return It((e=>{var n=e,{token:r,className:o,style:i}=n,a=Ng(n,["token","className","style"]);const s=Fg(Rg({},a),{className:qa("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(s.style=Rg(Rg({},s.style||{}),i)),s}),[t])})(a),c=(({prism:e,code:t,grammar:n,language:r})=>{const o=Pt(e);return Dt((()=>{if(null==n)return sm([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),sm(e.tokens)}),[t,n,r])})({prism:o,language:i,code:n,grammar:o.languages[i]});return e({tokens:c,className:`prism-code language-${i}`,style:null!=a?a.root:{},getLineProps:s,getTokenProps:l})},cm=e=>$e(lm,Fg(Rg({},e),{prism:e.prism||Lg,theme:e.theme||Gg,code:e.code,language:e.language}));const um=tn((({language:e,value:t,className:n})=>{const{isCopied:r,copyToClipboard:o}=function({timeout:e=2e3}){const[t,n]=Tt(!1);return{isCopied:t,copyToClipboard:t=>{var r;"undefined"!=typeof window&&(null==(r=navigator.clipboard)?void 0:r.writeText)&&t&&navigator.clipboard.writeText(t).then((()=>{n(!0),setTimeout((()=>{n(!1)}),e)}))}}}({timeout:2e3});return Yn("div",{className:Pl("type-code-100 relative w-full overflow-hidden rounded-2 border border-border-1 bg-surface-0-hover",n),children:[Yn("div",{className:"flex w-full items-center justify-between border-b border-border-1 bg-surface-2 px-6 py-2",children:[Yn("span",{className:"type-body-100 text-text-faint",children:e}),Yn("div",{className:"flex items-center space-x-1",children:Yn(Qh,{variant:"secondaryFaint",size:"small",className:"text-xs hover:bg-surface-2-hover focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0",onClick:()=>{r||o(t)},children:[Yn(r?Oc:Rc,{size:16,className:"text-text-primary"}),Yn("span",{className:"sr-only",children:"Copy code"})]})})]}),Yn("div",{className:"relative overflow-auto p-4",children:Yn(cm,{code:t,language:e.toLowerCase(),children:({tokens:e,getLineProps:t,getTokenProps:n})=>Yn("pre",{className:"m-0",children:e.map(((e,r)=>Yn("div",{...t({line:e}),children:e.map(((e,t)=>Yn("span",{...n({token:e})},t)))},r)))})})})]})}));um.displayName="CodeBlock";const dm=["http","https","mailto","tel"];function pm(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<dm.length;){const e=dm[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const fm=ol((function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}));function hm(e){return e&&"object"==typeof e?"position"in e||"type"in e?mm(e.position):"start"in e||"end"in e?mm(e):"line"in e||"column"in e?gm(e):"":""}function gm(e){return ym(e&&e.line)+":"+ym(e&&e.column)}function mm(e){return gm(e&&e.start)+"-"+gm(e&&e.end)}function ym(e){return e&&"number"==typeof e?e:1}class bm extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=hm(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}bm.prototype.file="",bm.prototype.name="",bm.prototype.reason="",bm.prototype.message="",bm.prototype.stack="",bm.prototype.fatal=null,bm.prototype.column=null,bm.prototype.line=null,bm.prototype.source=null,bm.prototype.ruleId=null,bm.prototype.position=null;const vm=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Cm(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},wm=function(e){if(Cm(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},xm=function(e){Cm(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||0===a||1===a&&i===r-1&&i===o+1?"":e.slice(i,r)},km=function(...e){let t,n=-1;for(;++n<e.length;)Cm(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Cm(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},_m="/";function Cm(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Em=function(){return"/"};function Sm(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const Am=["history","path","basename","stem","extname","dirname"];class Om{constructor(e){let t;t=e?"string"==typeof e||function(e){return fm(e)}(e)?{value:e}:Sm(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=Em(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<Am.length;){const e=Am[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Am.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){Sm(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Sm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Rm(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?wm(this.path):void 0}set dirname(e){Fm(this.basename,"dirname"),this.path=km(e||"",this.basename)}get basename(){return"string"==typeof this.path?vm(this.path):void 0}set basename(e){Rm(e,"basename"),Tm(e,"basename"),this.path=km(this.dirname||"",e)}get extname(){return"string"==typeof this.path?xm(this.path):void 0}set extname(e){if(Tm(e,"extname"),Fm(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=km(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?vm(this.path,this.extname):void 0}set stem(e){Rm(e,"stem"),Tm(e,"stem"),this.path=km(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new bm(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function Tm(e,t){if(e&&e.includes(_m))throw new Error("`"+t+"` cannot be a path: did not expect `"+_m+"`")}function Rm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Nm(e){if(e)throw e}var Pm=Object.prototype.hasOwnProperty,Lm=Object.prototype.toString,Dm=Object.defineProperty,Im=Object.getOwnPropertyDescriptor,zm=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Lm.call(e)},jm=function(e){if(!e||"[object Object]"!==Lm.call(e))return!1;var t,n=Pm.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Pm.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Pm.call(e,t)},Mm=function(e,t){Dm&&"__proto__"===t.name?Dm(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Bm=function(e,t){if("__proto__"===t){if(!Pm.call(e,t))return;if(Im)return Im(e,t).value}return e[t]},Um=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Bm(s,n),s!==(o=Bm(t,n))&&(u&&o&&(jm(o)||(i=zm(o)))?(i?(i=!1,a=r&&zm(r)?r:[]):a=r&&jm(r)?r:{},Mm(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Mm(s,{name:n,newValue:o}));return s};const qm=ol(Um);function Hm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const $m=function e(){const t=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return function(...t){const a=e.length>t.length;let s;a&&t.push(r);try{s=e.apply(this,t)}catch(i){if(a&&n)throw i;return r(i)}a||(s&&s.then&&"function"==typeof s.then?s.then(o,r):s instanceof Error?r(s):o(s))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),n=[];let r,o={},i=-1;return a.data=function(e,t){return"string"==typeof e?2===arguments.length?(Gm("data",r),o[e]=t,a):Wm.call(o,e)&&o[e]||null:e?(Gm("data",r),o=e,a):o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i<n.length;){const[e,...r]=n[i];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(a,...r);"function"==typeof o&&t.use(o)}return r=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e,...t){let i;if(Gm("use",r),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?c(e):l(e)}return i&&(o.settings=Object.assign(o.settings||{},i)),a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;u(t,...n)}else l(e)}}function l(e){c(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function c(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function u(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(Hm(r[1])&&Hm(t)&&(t=qm(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=Ym(e),n=a.Parser;return Vm("parse",n),Zm(n,"parse")?new n(String(t),t).parse():n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=Ym(t),r=a.Compiler;return Km("stringify",r),Qm(e),Zm(r,"compile")?new r(e,n).compile():r(e,n)},a.run=function(e,n,r){if(Qm(e),a.freeze(),r||"function"!=typeof n||(r=n,n=void 0),!r)return new Promise(o);function o(o,i){t.run(e,Ym(n),(function(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}))}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,(function(e,t){Nm(e),n=t,r=!0})),Xm("runSync","run",r),n},a.process=function(e,t){if(a.freeze(),Vm("process",a.Parser),Km("process",a.Compiler),!t)return new Promise(n);function n(n,r){const o=Ym(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=a.stringify(t,n);null==o||("string"==typeof(r=o)||fm(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),Vm("processSync",a.Parser),Km("processSync",a.Compiler);const n=Ym(e);return a.process(n,(function(e){t=!0,Nm(e)})),Xm("processSync","process",t),n},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(qm(!0,{},o)),t}}().freeze(),Wm={}.hasOwnProperty;function Zm(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(Wm.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Vm(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Km(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Gm(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qm(e){if(!Hm(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Xm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ym(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Om(e)}const Jm={};function ey(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ty(e.children,t,n)}return Array.isArray(e)?ty(e,t,n):""}function ty(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=ey(e[o],t,n);return r.join("")}function ny(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function ry(e,t){return e.length>0?(ny(e,e.length,0,t),e):t}const oy={}.hasOwnProperty;function iy(e){const t={};let n=-1;for(;++n<e.length;)ay(t,e[n]);return t}function ay(e,t){let n;for(n in t){const r=(oy.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){oy.call(r,i)||(r[i]=[]);const e=o[i];sy(r[i],Array.isArray(e)?e:e?[e]:[])}}}function sy(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ny(e,0,0,r)}const ly=wy(/[A-Za-z]/),cy=wy(/[\dA-Za-z]/),uy=wy(/[#-'*+\--9=?A-Z^-~]/);function dy(e){return null!==e&&(e<32||127===e)}const py=wy(/\d/),fy=wy(/[\dA-Fa-f]/),hy=wy(/[!-/:-@[-`{-~]/);function gy(e){return null!==e&&e<-2}function my(e){return null!==e&&(e<0||32===e)}function yy(e){return-2===e||-1===e||32===e}const by=wy(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),vy=wy(/\s/);function wy(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function xy(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return yy(r)?(e.enter(n),a(r)):t(r)};function a(r){return yy(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const ky={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),xy(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):gy(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},_y={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return ny(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cy,u,d)(o)}function u(e){return r&&b(),y(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(Cy,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&b(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):gy(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;ny(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Cy={tokenize:function(e,t,n){return xy(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ey(e){return null===e||my(e)||vy(e)?1:by(e)?2:void 0}function Sy(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ay={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ey(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=Ey(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);Oy(d,-s),Oy(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ry(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ry(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=ry(l,Sy(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ry(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ry(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ny(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function Oy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ty={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return ly(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||cy(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||cy(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||dy(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):uy(t)?(e.consume(t),l):n(t)}function c(e){return cy(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||cy(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},Ry={tokenize:function(e,t,n){return function(t){return yy(t)?xy(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||gy(e)?t(e):n(e)}},partial:!0},Fy={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return yy(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return yy(t)?xy(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Fy,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},Ny={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return hy(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Py=document.createElement("i");function Ly(e){const t="&"+e+";";Py.innerHTML=t;const n=Py.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const Dy={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=cy,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=fy,c):(e.enter("characterReferenceValue"),o=7,i=py,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==cy||Ly(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}},Iy={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},zy={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),yy(t)?xy(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),yy(t)?xy(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||gy(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),yy(t)?xy(e,c,"whitespace")(t):c(t))}function c(n){return null===n||gy(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Iy,f,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||gy(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):yy(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),xy(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||gy(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||gy(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&yy(t)?xy(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||gy(t)?e.check(Iy,f,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||gy(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0},jy={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),xy(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):gy(t)?e.attempt(My,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||gy(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},My={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):gy(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):xy(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):gy(e)?o(e):n(e)}},partial:!0},By={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):gy(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||gy(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function Uy(e){const t={};let n,r,o,i,a,s,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,qy(e,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),ny(e,r,c-r+1,a))}}return!l}function qy(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,f=n,h=0,g=0;const m=[g];for(;f;){for(;e[++o][1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(g=p+1,m.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),p=m.length;p--;){const t=s.slice(m[p],m[p+1]),n=i.pop();l.unshift([n,n+t.length-1]),ny(e,n,2,t)}for(p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const Hy={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):gy(t)?e.check($y,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Uy(e),e}},$y={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),xy(e,o,"linePrefix")};function o(o){if(null===o||gy(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};function Wy(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||dy(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||gy(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!my(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||dy(o)?n(o):(e.consume(o),92===o?g:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Zy(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):gy(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||gy(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!yy(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Vy(e,t,n,r,o,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):gy(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),xy(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||gy(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ky(e,t){let n;return function r(o){return gy(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):yy(o)?xy(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Gy(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qy={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Zy.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Gy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return my(t)?Ky(e,s)(t):s(t)}function s(t){return Wy(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Xy,c,c)(t)}function c(t){return yy(t)?xy(e,u,"whitespace")(t):u(t)}function u(i){return null===i||gy(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Xy={tokenize:function(e,t,n){return function(t){return my(t)?Ky(e,r)(t):n(t)};function r(t){return Vy(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return yy(t)?xy(e,i,"whitespace")(t):i(t)}function i(e){return null===e||gy(e)?t(e):n(e)}},partial:!0},Yy={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return gy(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Jy={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||my(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||gy(n)?(e.exit("atxHeading"),t(n)):yy(n)?xy(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||my(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},ny(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},eb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tb=["pre","script","style","textarea"],nb={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),o=3,r.interrupt?t:L):ly(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):ly(i)?(e.consume(i),o=4,r.interrupt?t:L):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:L):n(o)}function p(o){return o==="CDATA[".charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:S:p):n(o)}function f(t){return ly(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||my(s)){const l=47===s,c=a.toLowerCase();return l||i||!tb.includes(c)?eb.includes(a.toLowerCase())?(o=6,l?(e.consume(s),g):r.interrupt?t(s):S(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?m(s):y(s)):(o=1,r.interrupt?t(s):S(s))}return 45===s||cy(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:S):n(o)}function m(t){return yy(t)?(e.consume(t),m):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||ly(t)?(e.consume(t),b):yy(t)?(e.consume(t),y):C(t)}function b(t){return 45===t||46===t||58===t||95===t||cy(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),w):yy(t)?(e.consume(t),v):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):yy(t)?(e.consume(t),w):k(t)}function x(t){return t===l?(e.consume(t),l=null,_):null===t||gy(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||my(t)?v(t):(e.consume(t),k)}function _(e){return 47===e||62===e||yy(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||gy(t)?S(t):yy(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),F):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),P):!gy(t)||6!==o&&7!==o?null===t||gy(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(rb,I,A)(t))}function A(t){return e.check(ob,O,I)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||gy(t)?A(t):(e.enter("htmlFlowData"),S(t))}function R(t){return 45===t?(e.consume(t),L):S(t)}function F(t){return 47===t?(e.consume(t),a="",N):S(t)}function N(t){if(62===t){const n=a.toLowerCase();return tb.includes(n)?(e.consume(t),D):S(t)}return ly(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):S(t)}function P(t){return 93===t?(e.consume(t),L):S(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),L):S(t)}function D(t){return null===t||gy(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),D)}function I(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},rb={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ry,t,n)}},partial:!0},ob={tokenize:function(e,t,n){const r=this;return function(t){return gy(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ib={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),b):ly(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):ly(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):gy(t)?(a=u,N(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?F(e):45===e?d(e):u(e)}function f(t){return t==="CDATA[".charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):gy(t)?(a=h,N(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?F(t):93===t?(e.consume(t),m):h(t)}function y(t){return null===t||62===t?F(t):gy(t)?(a=y,N(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):gy(t)?(a=b,N(t)):(e.consume(t),b)}function v(e){return 62===e?F(e):b(e)}function w(t){return ly(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||cy(t)?(e.consume(t),x):k(t)}function k(t){return gy(t)?(a=k,N(t)):yy(t)?(e.consume(t),k):F(t)}function _(t){return 45===t||cy(t)?(e.consume(t),_):47===t||62===t||my(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),F):58===t||95===t||ly(t)?(e.consume(t),E):gy(t)?(a=C,N(t)):yy(t)?(e.consume(t),C):F(t)}function E(t){return 45===t||46===t||58===t||95===t||cy(t)?(e.consume(t),E):S(t)}function S(t){return 61===t?(e.consume(t),A):gy(t)?(a=S,N(t)):yy(t)?(e.consume(t),S):C(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):gy(t)?(a=A,N(t)):yy(t)?(e.consume(t),A):(e.consume(t),T)}function O(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):gy(t)?(a=O,N(t)):(e.consume(t),O)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||my(t)?C(t):(e.consume(t),T)}function R(e){return 47===e||62===e||my(e)?C(e):n(e)}function F(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return yy(t)?xy(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}},ab={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){return o?o._inactive?u(t):(i=r.parser.defined.includes(Gy(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(sb,c,i?c:u)(t):91===t?e.attempt(lb,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(cb,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=ry(i,e.slice(r+1,r+s+3)),i=ry(i,[["enter",u,t]]),i=ry(i,Sy(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=ry(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=ry(i,e.slice(o+1)),i=ry(i,[["exit",l,t]]),ny(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},sb={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return my(t)?Ky(e,o)(t):o(t)}function o(t){return 41===t?c(t):Wy(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return my(t)?Ky(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Vy(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return my(t)?Ky(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},lb={tokenize:function(e,t,n){const r=this;return function(t){return Zy.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Gy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},cb={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ub={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:ab.resolveAll},db={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:ab.resolveAll},pb={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),xy(e,t,"linePrefix")}}},fb={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||gy(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),yy(t)?xy(e,i,"whitespace")(t):i(t))}}},hb={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:py(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(fb,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return py(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ry,r.interrupt?n:c,e.attempt(gb,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return yy(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ry,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,xy(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!yy(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mb,t,o)(n))}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,xy(e,e.attempt(hb,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},gb={tokenize:function(e,t,n){const r=this;return xy(e,(function(e){const o=r.events[r.events.length-1];return!yy(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},mb={tokenize:function(e,t,n){const r=this;return xy(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},yb={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t))};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),yy(t)?xy(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||gy(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},bb={tokenize:function(e){const t=this,n=e.attempt(Ry,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,xy(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Hy,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},vb={resolveAll:_b()},wb=kb("string"),xb=kb("text");function kb(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:_b("text"===e?Cb:void 0)}}function _b(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Cb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function Eb(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[];const l={consume:function(e){gy(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:g((function(e,t){m(e,t.from)})),check:g(h),interrupt:g(h,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,y()},write:function(e){return a=ry(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}(),null!==a[a.length-1]?[]:(m(t,0),c.events=Sy(i,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function f(e){u=u(e)}function h(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(h=n,function(e){const t=null!==e&&h[e],n=null!==e&&h.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var h;function g(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){return f=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,y()},from:o}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?v():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,v)(n)}}function b(t){return e(d,f),o}function v(e){return f.restore(),++u<a.length?m(a[u]):i}}}function m(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&ny(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Sb={42:hb,43:hb,45:hb,48:hb,49:hb,50:hb,51:hb,52:hb,53:hb,54:hb,55:hb,56:hb,57:hb,62:Fy},Ab={91:Qy},Ob={[-2]:jy,[-1]:jy,32:jy},Tb={35:Jy,42:fb,45:[yb,fb],60:nb,61:yb,95:fb,96:zy,126:zy},Rb={38:Dy,92:Ny},Fb={[-5]:pb,[-4]:pb,[-3]:pb,33:ub,38:Dy,42:Ay,60:[Ty,ib],91:db,92:[Yy,Ny],93:ab,95:Ay,96:By},Nb={null:[Ay,vb]},Pb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Ab,disable:{null:[]},document:Sb,flow:Tb,flowInitial:Ob,insideSpan:Nb,string:Rb,text:Fb},Symbol.toStringTag,{value:"Module"})),Lb=/[\0\t\n\r]/g;function Db(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"":String.fromCharCode(n)}const Ib=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zb(e){return e.replace(Ib,jb)}function jb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Db(n.slice(t?2:1),t?16:10)}return Ly(n)||e}const Mb={}.hasOwnProperty,Bb=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(w),autolinkProtocol:p,autolinkEmail:p,atxHeading:a(y),blockQuote:a((function(){return{type:"blockquote",children:[]}})),characterEscape:p,characterReference:p,codeFenced:a(m),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(m,s),codeText:a((function(){return{type:"inlineCode",value:""}}),s),codeTextData:p,data:p,codeFlowValue:p,definition:a((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:a(b),hardBreakTrailing:a(b),htmlFlow:a(v,s),htmlFlowData:p,htmlText:a(v,s),htmlTextData:p,image:a((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:a(w),listItem:a((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){i("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue"))},listOrdered:a(x,(function(){o("expectingFirstListItemValue",!0)})),listUnordered:a(x),paragraph:a((function(){return{type:"paragraph",children:[]}})),reference:function(){o("referenceType","collapsed")},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(y),strong:a((function(){return{type:"strong",children:[]}})),thematicBreak:a((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:c(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){f.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){f.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:f,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=i("characterReferenceType");let r;n?(r=Db(t,"characterReferenceMarkerNumeric"===n?10:16),o("characterReferenceType")):r=Ly(t);const a=this.stack.pop();a.value+=r,a.position.end=Ub(e.end)},codeFenced:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")})),codeFencedFence:function(){i("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:f,codeIndented:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:f,data:f,definition:c(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gy(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:c(),hardBreakEscape:c(h),hardBreakTrailing:c(h),htmlFlow:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:f,htmlText:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:f,image:c((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=zb(t),n.identifier=Gy(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(i("atHardBreak"))return n.children[n.children.length-1].position.end=Ub(e.end),void o("atHardBreak");!i("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(p.call(this,e),f.call(this,e))},link:c((function(){const e=this.stack[this.stack.length-1];if(i("inReference")){const t=i("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")})),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gy(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){o("inReference")},setextHeading:c((function(){o("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){o("setextHeadingSlurpLineEnding",!0)},strong:c(),thematicBreak:c()}};qb(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let n={type:"root",children:[]};const a={stack:[n],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:d,setData:o,getData:i},c=[];let p=-1;for(;++p<e.length;)"listOrdered"!==e[p][1].type&&"listUnordered"!==e[p][1].type||("enter"===e[p][0]?c.push(p):p=r(e,c.pop(),p));for(p=-1;++p<e.length;){const n=t[e[p][0]];Mb.call(n,e[p][1].type)&&n[e[p][1].type].call(Object.assign({sliceSerialize:e[p][2].sliceSerialize},a),e[p][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||$b).call(a,void 0,e[0])}for(n.position={start:Ub(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ub(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)n=t.transforms[p](n)||n;return n};function r(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,i=void 0,a=!0)}}return e[t][1]._spread=c,n}function o(e,t){n[e]=t}function i(e){return n[e]}function a(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Ub(t.start)},e}function c(e){return function(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+hm({start:e.start,end:e.end})+"): it’s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||$b).call(this,e,r[0])),n.position.end=Ub(e.end),n}function d(){return function(e){return ey(e,"boolean"!=typeof Jm.includeImageAlt||Jm.includeImageAlt,"boolean"!=typeof Jm.includeHtml||Jm.includeHtml)}(this.stack.pop())}function p(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ub(e.start)},t.children.push(n)),this.stack.push(n)}function f(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ub(e.end)}function h(){o("atHardBreak",!0)}function g(e){o("characterReferenceType",e.type)}function m(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:void 0,children:[]}}function b(){return{type:"break"}}function v(){return{type:"html",value:""}}function w(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!Uy(e););return e}(function(e){const t={defined:[],lazy:{},constructs:iy([Pb,...(e||{}).extensions||[]]),content:n(ky),document:n(_y),flow:n(bb),string:n(wb),text:n(xb)};return t;function n(e){return function(n){return Eb(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,p;for(o=n+o.toString(i),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Lb.lastIndex=u,l=Lb.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))};function Ub(e){return{line:e.line,column:e.column,offset:e.offset}}function qb(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?qb(e,r):Hb(e,r)}}function Hb(e,t){let n;for(n in t)if(Mb.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function $b(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hm({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hm({start:t.start,end:t.end})+") is still open")}function Wb(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Bb(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Zb(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&cy(e.charCodeAt(n+1))&&cy(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a=""}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Vb(e,t){const n=String(t.identifier).toUpperCase(),r=Zb(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function Kb(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Gb(e){const t=e.spread;return null==t?e.children.length>1:t}const Qb=Yb("start"),Xb=Yb("end");function Yb(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}function Jb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ev(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ev(t.slice(o),o>0,!1)),i.join("")}function ev(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const tv={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Vb,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Vb(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Kb(e,t);const r={src:Zb(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Zb(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Kb(e,t);const r={href:Zb(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Zb(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Gb(n[r])}return t}(n):Gb(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Qb(t.children[1]),a=Xb(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Jb(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nv,yaml:nv,definition:nv,footnoteDefinition:nv};function nv(){return null}const rv=function(e){if(null==e)return iv;if("string"==typeof e)return t=e,ov((function(e){return e&&e.type===t}));var t;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rv(e[n]);return ov((function(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}))}(e):function(e){return ov((function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}))}(e);if("function"==typeof e)return ov(e);throw new Error("Expected function, string, or object as test")};function ov(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function iv(){return!0}const av=!1,sv=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=rv(t),i=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=[];if((!t||o(a,s,l[l.length-1]||null))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:[e]}(n(a,l)),p[0]===av))return p;if(a.children&&"skip"!==p[0])for(u=(r?a.children.length:-1)+i,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),c[0]===av)return c;u="number"==typeof c[1]?c[1]:u+i}return p}}(e,void 0,[])()},lv=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),sv(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},cv={}.hasOwnProperty;function uv(e){return String(e||"").toUpperCase()}const dv={}.hasOwnProperty;function pv(e,t){var n;e.position&&(t.position={start:Qb(n=e),end:Xb(n)})}function fv(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function hv(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return dv.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:gv(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||dv.call(n,"hProperties")||dv.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:gv(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function gv(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=hv(e,r[o],t);if(i){if(o&&"break"===r[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function mv(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function yv(e,t){const n=function(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...tv,...n.handlers},a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return lv(e,"definition",(e=>{const n=uv(e.identifier);n&&!cv.call(t,n)&&(t[n]=e)})),function(e){const n=uv(e);return n&&cv.call(t,n)?t[n]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=pv,a.applyData=fv,a.one=function(e,t){return hv(a,e,t)},a.all=function(e){return gv(a,e)},a.wrap=mv,a.augment=i,lv(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();dv.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const r="type"in e?e:{position:e};(n=r)&&n.position&&n.position.start&&n.position.start.line&&n.position.start.column&&n.position.end&&n.position.end.line&&n.position.end.column&&(t.position={start:Qb(r),end:Xb(r)})}var n;return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=Zb(i.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else o.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const bv=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(yv(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>yv(t,e)}(e||t)};class vv{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function wv(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new vv(n,r,t)}function xv(e){return e.toLowerCase()}vv.prototype.property={},vv.prototype.normal={},vv.prototype.space=null;class kv{constructor(e,t){this.property=e,this.attribute=t}}kv.prototype.space=null,kv.prototype.boolean=!1,kv.prototype.booleanish=!1,kv.prototype.overloadedBoolean=!1,kv.prototype.number=!1,kv.prototype.commaSeparated=!1,kv.prototype.spaceSeparated=!1,kv.prototype.commaOrSpaceSeparated=!1,kv.prototype.mustUseProperty=!1,kv.prototype.defined=!1;let _v=0;const Cv=Fv(),Ev=Fv(),Sv=Fv(),Av=Fv(),Ov=Fv(),Tv=Fv(),Rv=Fv();function Fv(){return 2**++_v}const Nv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Cv,booleanish:Ev,commaOrSpaceSeparated:Rv,commaSeparated:Tv,number:Av,overloadedBoolean:Sv,spaceSeparated:Ov},Symbol.toStringTag,{value:"Module"})),Pv=Object.keys(Nv);class Lv extends kv{constructor(e,t,n,r){let o=-1;if(super(e,t),Dv(this,"space",r),"number"==typeof n)for(;++o<Pv.length;){const e=Pv[o];Dv(this,Pv[o],(n&Nv[e])===Nv[e])}}}function Dv(e,t,n){n&&(e[t]=n)}Lv.prototype.defined=!0;const Iv={}.hasOwnProperty;function zv(e){const t={},n={};let r;for(r in e.properties)if(Iv.call(e.properties,r)){const o=e.properties[r],i=new Lv(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[xv(r)]=r,n[xv(i.attribute)]=r}return new vv(t,n,e.space)}const jv=zv({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Mv=zv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Bv(e,t){return t in e?e[t]:t}function Uv(e,t){return Bv(e,t.toLowerCase())}const qv=zv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Uv,properties:{xmlns:null,xmlnsXLink:null}}),Hv=zv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ev,ariaAutoComplete:null,ariaBusy:Ev,ariaChecked:Ev,ariaColCount:Av,ariaColIndex:Av,ariaColSpan:Av,ariaControls:Ov,ariaCurrent:null,ariaDescribedBy:Ov,ariaDetails:null,ariaDisabled:Ev,ariaDropEffect:Ov,ariaErrorMessage:null,ariaExpanded:Ev,ariaFlowTo:Ov,ariaGrabbed:Ev,ariaHasPopup:null,ariaHidden:Ev,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ov,ariaLevel:Av,ariaLive:null,ariaModal:Ev,ariaMultiLine:Ev,ariaMultiSelectable:Ev,ariaOrientation:null,ariaOwns:Ov,ariaPlaceholder:null,ariaPosInSet:Av,ariaPressed:Ev,ariaReadOnly:Ev,ariaRelevant:null,ariaRequired:Ev,ariaRoleDescription:Ov,ariaRowCount:Av,ariaRowIndex:Av,ariaRowSpan:Av,ariaSelected:Ev,ariaSetSize:Av,ariaSort:null,ariaValueMax:Av,ariaValueMin:Av,ariaValueNow:Av,ariaValueText:null,role:null}}),$v=zv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Uv,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Tv,acceptCharset:Ov,accessKey:Ov,action:null,allow:null,allowFullScreen:Cv,allowPaymentRequest:Cv,allowUserMedia:Cv,alt:null,as:null,async:Cv,autoCapitalize:null,autoComplete:Ov,autoFocus:Cv,autoPlay:Cv,blocking:Ov,capture:null,charSet:null,checked:Cv,cite:null,className:Ov,cols:Av,colSpan:null,content:null,contentEditable:Ev,controls:Cv,controlsList:Ov,coords:Av|Tv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Cv,defer:Cv,dir:null,dirName:null,disabled:Cv,download:Sv,draggable:Ev,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Cv,formTarget:null,headers:Ov,height:Av,hidden:Cv,high:Av,href:null,hrefLang:null,htmlFor:Ov,httpEquiv:Ov,id:null,imageSizes:null,imageSrcSet:null,inert:Cv,inputMode:null,integrity:null,is:null,isMap:Cv,itemId:null,itemProp:Ov,itemRef:Ov,itemScope:Cv,itemType:Ov,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Cv,low:Av,manifest:null,max:null,maxLength:Av,media:null,method:null,min:null,minLength:Av,multiple:Cv,muted:Cv,name:null,nonce:null,noModule:Cv,noValidate:Cv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Cv,optimum:Av,pattern:null,ping:Ov,placeholder:null,playsInline:Cv,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Cv,referrerPolicy:null,rel:Ov,required:Cv,reversed:Cv,rows:Av,rowSpan:Av,sandbox:Ov,scope:null,scoped:Cv,seamless:Cv,selected:Cv,shadowRootClonable:Cv,shadowRootDelegatesFocus:Cv,shadowRootMode:null,shape:null,size:Av,sizes:null,slot:null,span:Av,spellCheck:Ev,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Av,step:null,style:null,tabIndex:Av,target:null,title:null,translate:null,type:null,typeMustMatch:Cv,useMap:null,value:Ev,width:Av,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ov,axis:null,background:null,bgColor:null,border:Av,borderColor:null,bottomMargin:Av,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Cv,declare:Cv,event:null,face:null,frame:null,frameBorder:null,hSpace:Av,leftMargin:Av,link:null,longDesc:null,lowSrc:null,marginHeight:Av,marginWidth:Av,noResize:Cv,noHref:Cv,noShade:Cv,noWrap:Cv,object:null,profile:null,prompt:null,rev:null,rightMargin:Av,rules:null,scheme:null,scrolling:Ev,standby:null,summary:null,text:null,topMargin:Av,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Av,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Cv,disableRemotePlayback:Cv,prefix:null,property:null,results:Av,security:null,unselectable:null}}),Wv=zv({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Bv,properties:{about:Rv,accentHeight:Av,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Av,amplitude:Av,arabicForm:null,ascent:Av,attributeName:null,attributeType:null,azimuth:Av,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Av,by:null,calcMode:null,capHeight:Av,className:Ov,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Av,diffuseConstant:Av,direction:null,display:null,dur:null,divisor:Av,dominantBaseline:null,download:Cv,dx:null,dy:null,edgeMode:null,editable:null,elevation:Av,enableBackground:null,end:null,event:null,exponent:Av,externalResourcesRequired:null,fill:null,fillOpacity:Av,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Tv,g2:Tv,glyphName:Tv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Av,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Av,horizOriginX:Av,horizOriginY:Av,id:null,ideographic:Av,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Av,k:Av,k1:Av,k2:Av,k3:Av,k4:Av,kernelMatrix:Rv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Av,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Av,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Av,overlineThickness:Av,paintOrder:null,panose1:null,path:null,pathLength:Av,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ov,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Av,pointsAtY:Av,pointsAtZ:Av,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rv,rev:Rv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rv,requiredFeatures:Rv,requiredFonts:Rv,requiredFormats:Rv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Av,specularExponent:Av,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Av,strikethroughThickness:Av,string:null,stroke:null,strokeDashArray:Rv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Av,strokeOpacity:Av,strokeWidth:null,style:null,surfaceScale:Av,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rv,tabIndex:Av,tableValues:null,target:null,targetX:Av,targetY:Av,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rv,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Av,underlineThickness:Av,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Av,values:null,vAlphabetic:Av,vMathematical:Av,vectorEffect:null,vHanging:Av,vIdeographic:Av,version:null,vertAdvY:Av,vertOriginX:Av,vertOriginY:Av,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Av,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Zv=/^data[-\w.:]+$/i,Vv=/-[a-z]/g,Kv=/[A-Z]/g;function Gv(e){return"-"+e.toLowerCase()}function Qv(e){return e.charAt(1).toUpperCase()}const Xv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Yv=wv([Mv,jv,qv,Hv,$v],"html"),Jv=wv([Mv,jv,qv,Hv,Wv],"svg");function ew(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{lv(t,"element",((t,n,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var tw,nw={exports:{}},rw={},ow=Symbol.for("react.element"),iw=Symbol.for("react.portal"),aw=Symbol.for("react.fragment"),sw=Symbol.for("react.strict_mode"),lw=Symbol.for("react.profiler"),cw=Symbol.for("react.provider"),uw=Symbol.for("react.context"),dw=Symbol.for("react.server_context"),pw=Symbol.for("react.forward_ref"),fw=Symbol.for("react.suspense"),hw=Symbol.for("react.suspense_list"),gw=Symbol.for("react.memo"),mw=Symbol.for("react.lazy"),yw=Symbol.for("react.offscreen");function bw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ow:switch(e=e.type){case aw:case lw:case sw:case fw:case hw:return e;default:switch(e=e&&e.$$typeof){case dw:case uw:case pw:case mw:case gw:case cw:return e;default:return t}}case iw:return t}}}tw=Symbol.for("react.module.reference"),rw.ContextConsumer=uw,rw.ContextProvider=cw,rw.Element=ow,rw.ForwardRef=pw,rw.Fragment=aw,rw.Lazy=mw,rw.Memo=gw,rw.Portal=iw,rw.Profiler=lw,rw.StrictMode=sw,rw.Suspense=fw,rw.SuspenseList=hw,rw.isAsyncMode=function(){return!1},rw.isConcurrentMode=function(){return!1},rw.isContextConsumer=function(e){return bw(e)===uw},rw.isContextProvider=function(e){return bw(e)===cw},rw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ow},rw.isForwardRef=function(e){return bw(e)===pw},rw.isFragment=function(e){return bw(e)===aw},rw.isLazy=function(e){return bw(e)===mw},rw.isMemo=function(e){return bw(e)===gw},rw.isPortal=function(e){return bw(e)===iw},rw.isProfiler=function(e){return bw(e)===lw},rw.isStrictMode=function(e){return bw(e)===sw},rw.isSuspense=function(e){return bw(e)===fw},rw.isSuspenseList=function(e){return bw(e)===hw},rw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===aw||e===lw||e===sw||e===fw||e===hw||e===yw||"object"==typeof e&&null!==e&&(e.$$typeof===mw||e.$$typeof===gw||e.$$typeof===cw||e.$$typeof===uw||e.$$typeof===pw||e.$$typeof===tw||void 0!==e.getModuleId)},rw.typeOf=bw,nw.exports=rw;const vw=ol(nw.exports);function ww(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var xw={exports:{}},kw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_w=/\n/g,Cw=/^\s*/,Ew=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Sw=/^:\s*/,Aw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ow=/^[;\s]*/,Tw=/^\s+|\s+$/g,Rw="";function Fw(e){return e?e.replace(Tw,Rw):Rw}function Nw(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(_w);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function l(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){l(Cw)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Rw!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Rw===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=l(Ew);if(t){if(d(),!l(Sw))return s("property missing ':'");var n=l(Aw),r=e({type:"declaration",property:Fw(t[0].replace(kw,Rw)),value:n?Fw(n[0].replace(kw,Rw)):Rw});return l(Ow),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}(e),s="function"==typeof t,l=0,c=a.length;l<c;l++)o=(n=a[l]).property,i=n.value,s?t(o,i,n):i&&(r||(r={}),r[o]=i);return r}xw.exports=Nw,xw.exports.default=Nw;const Pw=ol(xw.exports),Lw={}.hasOwnProperty,Dw=new Set(["table","thead","tbody","tfoot","tr"]);function Iw(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(zw(e,r,o,t)):"text"===r.type?"element"===t.type&&Dw.has(t.tagName)&&ww(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function zw(e,t,n,r){const o=e.options,i=void 0===o.transformLinkUri?pm:o.transformLinkUri,a=e.schema,s=t.tagName,l={};let c,u=a;if("html"===a.space&&"svg"===s&&(u=Jv,e.schema=u),t.properties)for(c in t.properties)Lw.call(t.properties,c)&&Mw(l,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const d=Iw(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=a;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&Lw.call(o.components,s)?o.components[s]:s,h="string"==typeof f||f===Gn.Fragment;if(!vw.isValidElementType(f))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=n,"a"===s&&o.linkTarget&&(l.target="function"==typeof o.linkTarget?o.linkTarget(String(l.href||""),t.children,"string"==typeof l.title?l.title:null):o.linkTarget),"a"===s&&i&&(l.href=i(String(l.href||""),t.children,"string"==typeof l.title?l.title:null)),h||"code"!==s||"element"!==r.type||"pre"===r.tagName||(l.inline=!0),h||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(l.level=Number.parseInt(s.charAt(1),10)),"img"===s&&o.transformImageUri&&(l.src=o.transformImageUri(String(l.src||""),String(l.alt||""),"string"==typeof l.title?l.title:null)),!h&&"li"===s&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);l.checked=e&&e.properties?Boolean(e.properties.checked):null,l.index=jw(r,t),l.ordered="ol"===r.tagName}var g;return h||"ol"!==s&&"ul"!==s||(l.ordered="ol"===s,l.depth=e.listDepth),"td"!==s&&"th"!==s||(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),h||(l.isHeader="th"===s)),h||"tr"!==s||"element"!==r.type||(l.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(l["data-sourcepos"]=[(g=p).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(String).join("")),!h&&o.rawSourcePos&&(l.sourcePosition=t.position),!h&&o.includeElementIndex&&(l.index=jw(r,t),l.siblingCount=jw(r)),h||(l.node=t),d.length>0?Gn.createElement(f,l,d):Gn.createElement(f,l)}function jw(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function Mw(e,t,n,r){const o=function(e,t){const n=xv(t);let r=t,o=kv;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Zv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Vv,Qv);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Vv.test(e)){let n=e.replace(Kv,Gv);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Lv}return new o(r,t)}(r.schema,t);let i=n;null!=i&&i==i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"==typeof i&&(i=function(e){const t={};try{Pw(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,Bw)]=n}))}catch{}return t}(i)),o.space&&o.property?e[Lw.call(Xv,o.property)?Xv[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function Bw(e,t){return t.toUpperCase()}const Uw={}.hasOwnProperty,qw={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Hw(e){for(const i in qw)Uw.call(qw,i)&&Uw.call(e,i)&&(qw[i],delete qw[i]);const t=$m().use(Wb).use(e.remarkPlugins||[]).use(bv,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(ew,e),n=new Om;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&e.children;const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=Gn.createElement(Gn.Fragment,{},Iw({options:e,schema:Yv,listDepth:0},r));return e.className&&(o=Gn.createElement("div",{className:e.className},o)),o}Hw.propTypes={children:Bl.string,className:Bl.string,allowElement:Bl.func,allowedElements:Bl.arrayOf(Bl.string),disallowedElements:Bl.arrayOf(Bl.string),unwrapDisallowed:Bl.bool,remarkPlugins:Bl.arrayOf(Bl.oneOfType([Bl.object,Bl.func,Bl.arrayOf(Bl.oneOfType([Bl.bool,Bl.string,Bl.object,Bl.func,Bl.arrayOf(Bl.any)]))])),rehypePlugins:Bl.arrayOf(Bl.oneOfType([Bl.object,Bl.func,Bl.arrayOf(Bl.oneOfType([Bl.bool,Bl.string,Bl.object,Bl.func,Bl.arrayOf(Bl.any)]))])),sourcePos:Bl.bool,rawSourcePos:Bl.bool,skipHtml:Bl.bool,includeElementIndex:Bl.bool,transformLinkUri:Bl.oneOfType([Bl.func,Bl.bool]),linkTarget:Bl.oneOfType([Bl.func,Bl.string]),transformImageUri:Bl.func,components:Bl.object};const $w=tn(Hw,((e,t)=>e.children===t.children&&e.className===t.className)),Ww=({ratio:e,roundDirection:t,precision:n=3,format:r,percentPadding:o,probabilityMode:i=!1})=>{const a="string"==typeof e?parseFloat(e):e;if(null==e||isNaN(a))return"—";n<0&&(n=0);const s="percent"===r?n+2:n;let l=((e,t,n="nearest")=>{switch(n){case"up":return((e,t=0)=>{const n=Math.pow(10,t);return Math.ceil(e*n)/n})(e,t);case"down":return((e,t=0)=>{const n=Math.pow(10,t);return Math.floor(e*n)/n})(e,t);default:return((e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n})(e,t)}})(a,s,t);return i&&(l<=0?l=Math.pow(10,-s):l>=1&&(l=1-Math.pow(10,-s))),function(e,t,n,r){let o=e.toLocaleString(void 0,{style:"percent"===t?"percent":"decimal",minimumFractionDigits:n,maximumFractionDigits:n});return"percent"===t&&(o=function(e,t,n){const r=4+(t>0?t+1:0);return"start"===n?e.padStart(r,""):"end"===n?e.padEnd(r,""):e}(o,n,r)),o}(l,r,n,o)},Zw=tn(on((({p:e,...t},n)=>Yn("span",{className:"tabular-nums",ref:n,children:Ww({...t,ratio:e,precision:"percent"===t.format?1:3,probabilityMode:!0})}))));function Vw(e){return null===e?"outline":e>=.76?"green":e>=.26?"yellow":"red"}const Kw=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Gw=qa,Qw=(Xw="inline-flex items-center rounded-full border px-5 type-badge-sm font-semibold transition-colors",Yw={variants:{variant:{green:"border-green-500 bg-transparent text-green-500 shadow hover:bg-green-50 active:bg-green-100 focus:bg-green-100",yellow:"border-yellow-500 bg-transparent text-yellow-500 shadow hover:bg-yellow-50 active:bg-yellow-100 focus:bg-yellow-100",red:"border-red-500 bg-transparent text-red-500 shadow hover:bg-red-50 active:bg-red-100 focus:bg-red-100",outline:"border-border-1 bg-surface-2 text-text-faint shadow hover:bg-surface-3 active:bg-surface-4 focus:bg-surface-4"}},defaultVariants:{variant:"green"}},e=>{var t;if(null==(null==Yw?void 0:Yw.variants))return Gw(Xw,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:n,defaultVariants:r}=Yw,o=Object.keys(n).map((t=>{const o=null==e?void 0:e[t],i=null==r?void 0:r[t];if(null===o)return null;const a=Kw(o)||Kw(i);return n[t][a]})),i=e&&Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),a=null==Yw||null===(t=Yw.compoundVariants)||void 0===t?void 0:t.reduce(((e,t)=>{let{class:n,className:o,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...i}[t]):{...r,...i}[t]===n}))?[...e,n,o]:e}),[]);return Gw(Xw,o,a,null==e?void 0:e.class,null==e?void 0:e.className)});var Xw,Yw;const Jw=({score:e})=>Number.isNaN(e)?null:Yn("div",{className:Pl(Qw({variant:Vw(e)}),"my-4 cursor-pointer"),onClick:()=>window.open("https://help.cleanlab.ai/tutorials/tlm/#how-does-the-tlm-trustworthiness-score-work","_blank"),children:Yn("div",{className:"flex gap-2",children:[Yn("span",{children:"Trustworthiness score: "}),"number"==typeof e&&-1!==e&&Yn(Zw,{p:e}),-1===e&&Yn("span",{children:"--"}),null===e&&Yn("div",{className:"flex flex-1 flex-row items-center overflow-hidden px-1",children:Ic})]})}),ex={tokenize:function(e,t,n){let r=0;return function t(i){return(87===i||119===i)&&r<3?(r++,e.consume(i),t):46===i&&3===r?(e.consume(i),o):n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},tx={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(rx,l,s)(t):null===t||my(t)||vy(t)||45!==t&&by(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},nx={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(rx,t,i)(a):null===a||my(a)||vy(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},rx={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||my(a)||vy(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||my(e)||vy(e)?t(e):r(e)}function i(e){return ly(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):ly(t)?(e.consume(t),a):n(t)}},partial:!0},ox={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return cy(e)?n(e):t(e)}},partial:!0},ix={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!dx.call(r,r.previous)||gx(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ex,e.attempt(tx,e.attempt(nx,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:dx},ax={tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){return 72!==t&&104!==t||!px.call(r,r.previous)||gx(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(ly(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||dy(t)||my(t)||vy(t)||by(t)?n(t):e.attempt(tx,e.attempt(nx,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:px},sx={tokenize:function(e,t,n){const r=this;let o,i;return function(t){return hx(t)&&fx.call(r,r.previous)&&!gx(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return hx(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(ox,c,l)(t):45===t||95===t||cy(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&ly(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:fx},lx={},cx={text:lx};let ux=48;for(;ux<123;)lx[ux]=sx,ux++,58===ux?ux=65:91===ux&&(ux=97);function dx(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||my(e)}function px(e){return!ly(e)}function fx(e){return!(47===e||hx(e))}function hx(e){return 43===e||45===e||46===e||95===e||cy(e)}function gx(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}lx[43]=sx,lx[45]=sx,lx[46]=sx,lx[95]=sx,lx[72]=[sx,ax],lx[104]=[sx,ax],lx[87]=[sx,ix],lx[119]=[sx,ix];const mx={tokenize:function(e,t,n){const r=this;return xy(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function yx(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=Gy(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function bx(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function vx(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||my(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Gy(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return my(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function wx(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||my(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Gy(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return my(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),xy(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function xx(e,t,n){return e.check(Ry,t,e.attempt(mx,t,n))}function kx(e){e.exit("gfmFootnoteDefinition")}function _x(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){return 126===o&&"characterEscape"!==i[i.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(i){const l=Ey(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=Ey(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&ny(a,a.length,0,Sy(s,e.slice(r+1,n),t)),ny(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),ny(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Cx{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(((e,t)=>e[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Ex(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}const Sx={flow:{null:{tokenize:function(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;return i===w&&r.parser.lazy[r.now().line]?n(e):i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):gy(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):yy(t)?xy(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||my(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,yy(t)?xy(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return yy(t)?xy(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||gy(t)?b(t):v(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return yy(t)?xy(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||gy(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||gy(n)?(e.exit("tableRow"),t(n)):yy(n)?xy(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||my(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?_:k)}function _(t){return 92===t||124===t?(e.consume(t),k):k(t)}},resolveAll:function(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Cx;for(;++i<e.length;){const f=e[i],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(Ox(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=Ax(p,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=Ax(p,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(c[0]=c[1],o=Ax(p,t,l,s,i,o)):0!==c[1]&&(o=Ax(p,t,c,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&Ox(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ex(t.events,i))}return e}}}};function Ax(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Tx(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=Tx(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Tx(t.events,n[2]),i=Tx(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Tx(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Ox(e,t,n,r,o){const i=[],a=Tx(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Tx(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Rx={text:{91:{tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return my(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return gy(r)?t(r):yy(r)?e.check({tokenize:Fx},t,n)(r):n(r)}}}}};function Fx(e,t,n){return xy(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function Nx(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const Px={}.hasOwnProperty;function Lx(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Dx(e){return"function"==typeof e?e:()=>e}const Ix="phrasing",zx=["autolink","link","image","label"],jx={transforms:[function(e){!function(e,t,n,r){let o,i;"string"==typeof t||t instanceof RegExp?(i=[[t,n]],o=r):(i=t,o=n),o||(o={});const a=rv(o.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Lx(e[n][0]),Dx(e[n][1])])}else{let n;for(n in e)Px.call(e,n)&&t.push([Lx(n),Dx(e[n])])}return t}(i);let l=-1;for(;++l<s.length;)sv(e,"text",c);return e;function c(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(a(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=s[l][0],o=s[l][1];let i=0;const a=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let s=o(...d,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(i!==n&&u.push({type:"text",value:e.value.slice(i,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),i=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(i<e.value.length&&u.push({type:"text",value:e.value.slice(i)}),n.children.splice(a,1,...u)):u=[e],a+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ux],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,qx]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Bx,literalAutolinkHttp:Bx,literalAutolinkWww:Bx},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},Mx={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ix,notInConstruct:zx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ix,notInConstruct:zx},{character:":",before:"[ps]",after:"\\/",inConstruct:Ix,notInConstruct:zx}]};function Bx(e){this.config.enter.autolinkProtocol.call(this,e)}function Ux(e,t,n,r,o){let i="";if(!Hx(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Nx(e,"(");let i=Nx(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function qx(e,t,n,r){return!(!Hx(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Hx(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||vy(n)||by(n))&&(!t||47!==n)}function $x(e){return e.label||!e.identifier?e.label||"":zb(e.identifier)}function Wx(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Zx=/\r?\n|\r/g;function Vx(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Kx(e,t){return Gx(e,t.inConstruct,!0)&&!Gx(e,t.notInConstruct,!1)}function Gx(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Qx(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!Kx(e.stack,t))continue;const n=Vx(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(o.push(r),a[r]={before:e,after:n})}}o.sort(Xx);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<l||e>=c||e+1<c&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&i.push(Yx(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):i.push("\\"))}return i.push(Yx(r.slice(l,c),n.after)),i.join("")}function Xx(e,t){return e-t}function Yx(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0;for(;a=n.exec(i);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&o.push(e.slice(l,r[s])),o.push("\\"),l=r[s];return o.push(e.slice(l)),o.join("")}function Jx(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function ek(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function tk(){this.buffer()}function nk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gy(this.sliceSerialize(e)).toLowerCase()}function rk(e){this.exit(e)}function ok(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ik(){this.buffer()}function ak(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Gy(this.sliceSerialize(e)).toLowerCase()}function sk(e){this.exit(e)}function lk(e,t,n,r){const o=Jx(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(Qx(n,$x(e),{...o.current(),before:i,after:"]"})),s(),a(),i+=o.move("]"),i}function ck(e,t,n,r){const o=Jx(r);let i=o.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return i+=o.move(Qx(n,$x(e),{...o.current(),before:i,after:"]"})),s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(function(e,t){const n=[];let r,o=0,i=0;for(;r=Zx.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}(function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<o.length;){const n=o[s];r[r.length-1]=s,a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(Wx(n,o[s+1],e,t)))}return r.pop(),a.join("")}(e,n,o.current()),uk)),a(),i}function uk(e,t,n){return 0===t?e:(n?"":" ")+e}function dk(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<o.length;){const c=o[a];let u;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type];n&&n.peek&&(n=n.peek),u=n?n(o[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;i.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)}return r.pop(),i.join("")}lk.peek=function(){return"["},hk.peek=function(){return"~"};const pk={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},fk={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:hk}};function hk(e,t,n,r){const o=Jx(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=dk(e,n,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function gk(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=Vx(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function mk(e){return e.length}function yk(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}gk.peek=function(){return"`"};const bk={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:wk,tableHeader:wk,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xk)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:vk,tableHeader:vk,tableRow:vk}};function vk(e){this.exit(e)}function wk(e){this.enter({type:"tableCell",children:[]},e)}function xk(e,t){return"|"===t?t:e}function kk(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableRow:function(e,t,n,r){const o=s([l(e,n,r)]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,n){let r=gk(e,0,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=dk(e,n,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||mk,o=[],i=[],a=[],s=[];let l=0,c=-1;for(;++c<e.length;){const n=[],o=[];let d=-1;for(e[c].length>l&&(l=e[c].length);++d<e[c].length;){const i=null==(u=e[c][d])?"":String(u);if(!1!==t.alignDelimiters){const e=r(i);o[d]=e,(void 0===s[d]||e>s[d])&&(s[d]=e)}n.push(i)}i[c]=n,a[c]=o}var u;let d=-1;if("object"==typeof n&&"length"in n)for(;++d<l;)o[d]=yk(n[d]);else{const e=yk(n);for(;++d<l;)o[d]=e}d=-1;const p=[],f=[];for(;++d<l;){const e=o[d];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let i=!1===t.alignDelimiters?1:Math.max(1,s[d]-n.length-r.length);const a=n+"-".repeat(i)+r;!1!==t.alignDelimiters&&(i=n.length+i+r.length,i>s[d]&&(s[d]=i),f[d]=i),p[d]=a}i.splice(1,0,p),a.splice(1,0,f),c=-1;const h=[];for(;++c<i.length;){const e=i[c],n=a[c];d=-1;const r=[];for(;++d<l;){const i=e[d]||"";let a="",c="";if(!1!==t.alignDelimiters){const e=s[d]-(n[d]||0),t=o[d];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}!1===t.delimiterStart||d||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!d||r.push(" "),!1!==t.alignDelimiters&&r.push(a),r.push(i),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&d===l-1||r.push("|")}h.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}const _k={exit:{taskListCheckValueChecked:Ek,taskListCheckValueUnchecked:Ek,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Ck={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=Jx(r);i&&s.move(a);let l=function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?i:i+" ".repeat(a-i.length))+e}));return l(),c}(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}}};function Ek(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Sk(e={}){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return iy([cx,{document:{91:{tokenize:wx,continuation:{tokenize:xx},exit:kx}},text:{91:{tokenize:vx},93:{add:"after",tokenize:yx,resolveTo:bx}}},_x(e),Sx,Rx])}(e)),n("fromMarkdownExtensions",[jx,{enter:{gfmFootnoteDefinition:ek,gfmFootnoteDefinitionLabelString:tk,gfmFootnoteCall:ok,gfmFootnoteCallString:ik},exit:{gfmFootnoteDefinition:rk,gfmFootnoteDefinitionLabelString:nk,gfmFootnoteCall:sk,gfmFootnoteCallString:ak}},pk,bk,_k]),n("toMarkdownExtensions",function(e){return{extensions:[Mx,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ck,footnoteReference:lk}},fk,kk(e),Ck]}}(e))}function Ak(e){return null!==e&&e<-2}function Ok(e){return-2===e||-1===e||32===e}function Tk(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){return Ok(r)?(e.enter(n),a(r)):t(r)};function a(r){return Ok(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const Rk={tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let a=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(t)};function s(t){return 36===t?(e.consume(t),a++,s):a<2?n(t):(e.exit("mathFlowFenceSequence"),Tk(e,l,"whitespace")(t))}function l(t){return null===t||Ak(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return null===t||Ak(t)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(t)):36===t?n(t):(e.consume(t),c)}function u(n){return e.exit("mathFlowFence"),r.interrupt?t(n):e.attempt(Fk,d,g)(n)}function d(t){return e.attempt({tokenize:m,partial:!0},g,p)(t)}function p(t){return(i?Tk(e,f,"linePrefix",i+1):f)(t)}function f(t){return null===t?g(t):Ak(t)?e.attempt(Fk,d,g)(t):(e.enter("mathFlowValue"),h(t))}function h(t){return null===t||Ak(t)?(e.exit("mathFlowValue"),f(t)):(e.consume(t),h)}function g(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){let o=0;return Tk(e,(function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),i(t)}),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return 36===t?(o++,e.consume(t),i):o<a?n(t):(e.exit("mathFlowFenceSequence"),Tk(e,s,"whitespace")(t))}function s(r){return null===r||Ak(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},Fk={tokenize:function(e,t,n){const r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function Nk(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),{tokenize:function(e,n,r){let o,i,a=0;return function(t){return e.enter("mathText"),e.enter("mathTextSequence"),s(t)};function s(n){return 36===n?(e.consume(n),a++,s):a<2&&!t?r(n):(e.exit("mathTextSequence"),l(n))}function l(t){return null===t?r(t):36===t?(i=e.enter("mathTextSequence"),o=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):Ak(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),c(t))}function c(t){return null===t||32===t||36===t||Ak(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),c)}function u(t){return 36===t?(e.consume(t),o++,u):o===a?(e.exit("mathTextSequence"),e.exit("mathText"),n(t)):(i.type="mathTextData",c(t))}},resolve:Pk,previous:Lk,name:"mathText"}}function Pk(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[o][1].type="mathTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function Lk(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}const Dk={};function Ik(e){const t=e||Dk,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return{flow:{36:Rk},text:{36:Nk(e)}}}(t)),o.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){const t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;const r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),i.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){const o=e.value||"",i=n.createTracker(r),a="$".repeat(Math.max(function(e){const t=String(e);let n=t.indexOf("$"),r=n,o=0,i=0;for(;-1!==n;)n===r?++o>i&&(i=o):o=1,r=n+1,n=t.indexOf("$",r);return i}(o)+1,2)),s=n.enter("mathFlow");let l=i.move(a);if(e.meta){const t=n.enter("mathFlowMeta");l+=i.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...i.current()})),t()}return l+=i.move("\n"),o&&(l+=i.move(o+"\n")),l+=i.move(a),s(),l},inlineMath:n}};function n(e,n,r){let o=e.value||"",i=1;for(t||i++;new RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(o);)i++;const a="$".repeat(i);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let s=-1;for(;++s<r.unsafe.length;){const e=r.unsafe[s];if(!e.atBreak)continue;const t=r.compilePattern(e);let n;for(;n=t.exec(o);){let e=n.index;10===o.codePointAt(e)&&13===o.codePointAt(e-1)&&e--,o=o.slice(0,e)+" "+o.slice(n.index+1)}}return a+o+a}}(t))}const zk={a:({children:e,node:t,...n})=>Yn("a",{className:"hover: text-text-strong underline transition-colors duration-200 hover:text-text-primary",...n,children:e}),p:({children:e})=>Yn("p",{className:"type-body-100 mb-2 text-text-primary last:mb-0",children:e}),ol:({children:e})=>Yn("ol",{className:"group type-body-100 mb-5 [counter-reset:list]",children:e}),ul:({children:e})=>Yn("ul",{className:"reset-list group type-body-100 mb-5",children:e}),li:({children:e,node:t,...n})=>Yn("li",{className:Pl("type-body-100 relative mb-3 text-text-primary last:mb-0","before:absolute before:left-0 before:top-0 before:w-5 before:truncate before:text-text-strong",n.ordered?'pl-7 [counter-increment:list] before:[content:counter(list)_"."]':"pl-5 before:text-[1.5em] before:content-['•']"),children:e}),pre:({children:e,node:t,...n})=>Yn("pre",{className:Pl("first:mt-2"),...n,children:e}),code({inline:e,className:t,children:n,node:r,...o}){if(n.length){if("▍"==n[0])return Yn("span",{className:"mt-1 animate-pulse cursor-default",children:"▍"});n[0]=n[0].replace("`▍`","▍")}const i=/language-(\w+)/.exec(t||"");return e?Yn("code",{className:Pl("py-px type-code-100 mx-1 rounded-1 border border-border-1 bg-surface-1 box-decoration-clone px-2",t),...o,children:n}):Yn(um,{language:i&&i[1]||"",value:String(n).replace(/\n$/,""),className:Pl(t),...o},Math.random())}},jk=e=>{const{content:t,className:n,trustworthinessScore:r,isStreamPending:o,chatAvatarUrl:i}=e,a=Dt((()=>{if(!t)return"";try{return t.replace(/\0/g,"").replace(/```(\w+)?([^```]*)$/g,(e=>e.includes("\n```")?e:`${e}\n\`\`\``)).trim()}catch(e){return t}}),[t]),s=It((()=>{if(!a)return null;try{return Yn($w,o?{className:Pl("break-words",n),remarkPlugins:[Ik],components:zk,skipHtml:!0,children:a}:{className:Pl("break-words",n),remarkPlugins:[[Sk,{singleTilde:!1,tablePipeAlign:!1,tableCellPadding:!0}],Ik],components:zk,skipHtml:!0,children:a})}catch(e){return Yn("pre",{className:"whitespace-pre-wrap text-text-primary",children:a})}}),[a,n,o]);return Yn("div",{className:Pl("group relative flex items-start gap-3",o&&!t&&"items-center",n),children:[i&&Yn("img",{src:i,alt:"chat avatar",className:"h-9 w-9 rounded-2 border border-border-1 p-4"}),!i&&Yn(zc,{}),o&&!t&&Yn(Bc,{}),Yn("div",{className:"ml-4 flex flex-1 flex-col items-start overflow-hidden px-1 pt-4",children:Yn("div",{className:"w-full max-w-full",children:[s(),t&&Yn("div",{className:"pt-4",children:Yn(Jw,{score:r??null})})]})})]})};function Mk({children:e}){return Yn("div",{className:"relative flex justify-end",children:Yn("div",{className:"rounded-br-none type-body-100 flex rounded-s-4 rounded-tr-4 bg-surface-2 px-6 py-5 text-start text-text-primary",children:e})})}const Bk=({questions:e,onQuestionClick:t})=>Yn("div",{className:"flex flex-col gap-6",children:e.map((e=>Yn("button",{className:"type-body-100 cursor-pointer rounded-2 border border-border-0 bg-surface-1 p-5 text-center text-text-primary hover:bg-surface-1-hover",onClick:()=>t(e),children:e},e)))}),Uk=({chatTitle:e,chatDescription:t,chatAvatarUrl:n,localMessages:r,isStreamPending:o,onSendMessage:i,suggestedQuestions:a})=>{const s=Pt(null),l=Pt(null),[c,u]=Tt(!1),[d,p]=Tt(!1),f=It((()=>{if(l.current){const{scrollTop:e,scrollHeight:t,clientHeight:n}=l.current;u(e>1),p(e+n<t-1)}}),[]);return Ft((()=>{var e;r.length>0&&(null==(e=s.current)||e.scrollIntoView({behavior:"smooth"})),setTimeout(f,100)}),[r,f]),Ft((()=>{const e=l.current;return e&&(e.addEventListener("scroll",f),setTimeout((()=>{f()}),0)),()=>{e&&e.removeEventListener("scroll",f)}}),[f]),Yn("div",{className:"relative flex h-full flex-col overflow-hidden",children:[c&&Yn("div",{className:"absolute left-0 right-0 top-0 z-10 h-4 bg-gradient-to-b from-surface-0 to-transparent"}),Yn("div",{ref:l,className:"h-full overflow-y-auto px-8 pt-6",children:[e&&Yn("p",{className:"type-display-50 w-full pb-5 text-center text-text-primary",children:e}),t&&Yn("p",{className:"type-body-200 pb-5 text-center text-text-faint",children:t}),r.length>0&&Yn("div",{className:"flex flex-col gap-6",children:[r.map((e=>{var t,r;return Yn("div",{children:"user"===e.role?Yn(Mk,{children:e.content}):Yn(jk,{content:e.content,trustworthinessScore:null==(t=e.metadata)?void 0:t.trustworthinessScore,isStreamPending:(null==(r=e.id)?void 0:r.startsWith("streaming-"))&&o,chatAvatarUrl:n})},e.id)})),Yn("div",{ref:s})]}),0===r.length&&Yn(Bk,{questions:a??Qd,onQuestionClick:e=>i(e)})]}),d&&Yn("div",{className:"absolute bottom-0 left-0 right-0 z-10 h-4 bg-gradient-to-t from-surface-0 to-transparent"})]})},qk=e=>{const{isOpen:t,isExpanded:n,onClose:r,onToggleExpand:o,logoUrl:i,headerColor:a,chatTitle:s,chatDescription:l,assistantId:c,requiredPropsMissing:u,chatAvatarUrl:d}=e,{input:p,setInput:f,isStreamPending:h,handleSendMessage:g,localMessages:m,clearChat:y,assistant:b}=Mh(c),v=e=>{e.trim()&&(g(e),f(""))};return t?Yn("div",{className:Pl("relative flex h-[65vh] w-[30vw] min-w-[320px] flex-col overflow-hidden rounded-2 border border-border-0 bg-surface-0",n&&"h-[85vh] w-[50vw]"),children:[Yn(dg,{isExpanded:n,onClose:r,onToggleExpand:o,logoUrl:i,headerColor:a,clearChat:y}),Yn("div",{className:"flex h-full flex-col pt-12",children:[Yn(Uk,{chatTitle:s,chatDescription:l,chatAvatarUrl:d,localMessages:m,isStreamPending:h,onSendMessage:v,suggestedQuestions:null==b?void 0:b.suggestedQuestions}),u&&Yn("div",{className:"type-caption-semibold mx-6 text-center text-red-500",children:"Missing required properties. Please review your API key and Assistant ID"}),Yn(cg,{input:p,setInput:f,onSendMessage:v})]})]}):null},Hk=Object.freeze(Object.defineProperty({__proto__:null,default:({logoUrl:e,chatTitle:t,chatDescription:n,headerColor:r,assistantId:o,apiKey:i,chatAvatarUrl:a})=>{const[s,l]=Tt(!1),[c,u]=Tt(!1);return Yn("div",{"data-theme":"light",className:"fixed bottom-5 right-5 z-[999] flex flex-col items-end gap-5 p-4",children:[Yn(qk,{isOpen:s,isExpanded:c,onClose:()=>l(!1),onToggleExpand:()=>u(!c),logoUrl:e,headerColor:r,chatTitle:t,chatAvatarUrl:a,chatDescription:n,assistantId:o,requiredPropsMissing:!i||!o}),Yn(hc,{"data-theme":"dark",className:"h-[50px] w-[50px] bg-surface-0 p-4 text-text-strong",variant:"level2",size:"large",icon:Yn(s?Tc:Pc,{}),onClick:()=>l(!s),"aria-label":"open assistant window"})]})}},Symbol.toStringTag,{value:"Module"}));return so}();