@inploi/plugin-chatbot 3.28.7 → 3.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ "use strict";var yi=Object.defineProperty;var ki=(e,t,r)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zr=(e,t,r)=>(ki(e,typeof t!="symbol"?t+"":t,r),r);const xi=require("@inploi/sdk");var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $i=Array.isArray,gr=$i,Si=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,Ei=Si,Ci=Ei,Oi=typeof self=="object"&&self&&self.Object===Object&&self,Pi=Ci||Oi||Function("return this")(),wr=Pi,Ti=wr,Ii=Ti.Symbol,yr=Ii,Br=yr,Hn=Object.prototype,Di=Hn.hasOwnProperty,Ni=Hn.toString,ze=Br?Br.toStringTag:void 0;function Ai(e){var t=Di.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=Ni.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var Mi=Ai,ji=Object.prototype,Fi=ji.toString;function Li(e){return Fi.call(e)}var Ri=Li,Ur=yr,zi=Mi,Bi=Ri,Ui="[object Null]",Hi="[object Undefined]",Hr=Ur?Ur.toStringTag:void 0;function Wi(e){return e==null?e===void 0?Hi:Ui:Hr&&Hr in Object(e)?zi(e):Bi(e)}var Wn=Wi;function Vi(e){return e!=null&&typeof e=="object"}var Ki=Vi,qi=Wn,Gi=Ki,Yi="[object Symbol]";function Xi(e){return typeof e=="symbol"||Gi(e)&&qi(e)==Yi}var kr=Xi,Zi=gr,Ji=kr,Qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ea=/^\w*$/;function ta(e,t){if(Zi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ji(e)?!0:ea.test(e)||!Qi.test(e)||t!=null&&e in Object(t)}var ra=ta;function na(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vn=na,oa=Wn,ia=Vn,aa="[object AsyncFunction]",sa="[object Function]",ca="[object GeneratorFunction]",la="[object Proxy]";function ua(e){if(!ia(e))return!1;var t=oa(e);return t==sa||t==ca||t==aa||t==la}var da=ua,fa=wr,pa=fa["__core-js_shared__"],ha=pa,At=ha,Wr=function(){var e=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function va(e){return!!Wr&&Wr in e}var _a=va,ma=Function.prototype,ba=ma.toString;function ga(e){if(e!=null){try{return ba.call(e)}catch{}try{return e+""}catch{}}return""}var wa=ga,ya=da,ka=_a,xa=Vn,$a=wa,Sa=/[\\^$.*+?()[\]{}|]/g,Ea=/^\[object .+?Constructor\]$/,Ca=Function.prototype,Oa=Object.prototype,Pa=Ca.toString,Ta=Oa.hasOwnProperty,Ia=RegExp("^"+Pa.call(Ta).replace(Sa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Da(e){if(!xa(e)||ka(e))return!1;var t=ya(e)?Ia:Ea;return t.test($a(e))}var Na=Da;function Aa(e,t){return e==null?void 0:e[t]}var Ma=Aa,ja=Na,Fa=Ma;function La(e,t){var r=Fa(e,t);return ja(r)?r:void 0}var Kn=La,Ra=Kn,za=Ra(Object,"create"),yt=za,Vr=yt;function Ba(){this.__data__=Vr?Vr(null):{},this.size=0}var Ua=Ba;function Ha(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wa=Ha,Va=yt,Ka="__lodash_hash_undefined__",qa=Object.prototype,Ga=qa.hasOwnProperty;function Ya(e){var t=this.__data__;if(Va){var r=t[e];return r===Ka?void 0:r}return Ga.call(t,e)?t[e]:void 0}var Xa=Ya,Za=yt,Ja=Object.prototype,Qa=Ja.hasOwnProperty;function es(e){var t=this.__data__;return Za?t[e]!==void 0:Qa.call(t,e)}var ts=es,rs=yt,ns="__lodash_hash_undefined__";function os(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rs&&t===void 0?ns:t,this}var is=os,as=Ua,ss=Wa,cs=Xa,ls=ts,us=is;function Ae(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ae.prototype.clear=as;Ae.prototype.delete=ss;Ae.prototype.get=cs;Ae.prototype.has=ls;Ae.prototype.set=us;var ds=Ae;function fs(){this.__data__=[],this.size=0}var ps=fs;function hs(e,t){return e===t||e!==e&&t!==t}var vs=hs,_s=vs;function ms(e,t){for(var r=e.length;r--;)if(_s(e[r][0],t))return r;return-1}var kt=ms,bs=kt,gs=Array.prototype,ws=gs.splice;function ys(e){var t=this.__data__,r=bs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ws.call(t,r,1),--this.size,!0}var ks=ys,xs=kt;function $s(e){var t=this.__data__,r=xs(t,e);return r<0?void 0:t[r][1]}var Ss=$s,Es=kt;function Cs(e){return Es(this.__data__,e)>-1}var Os=Cs,Ps=kt;function Ts(e,t){var r=this.__data__,n=Ps(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Is=Ts,Ds=ps,Ns=ks,As=Ss,Ms=Os,js=Is;function Me(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Me.prototype.clear=Ds;Me.prototype.delete=Ns;Me.prototype.get=As;Me.prototype.has=Ms;Me.prototype.set=js;var Fs=Me,Ls=Kn,Rs=wr,zs=Ls(Rs,"Map"),Bs=zs,Kr=ds,Us=Fs,Hs=Bs;function Ws(){this.size=0,this.__data__={hash:new Kr,map:new(Hs||Us),string:new Kr}}var Vs=Ws;function Ks(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qs=Ks,Gs=qs;function Ys(e,t){var r=e.__data__;return Gs(t)?r[typeof t=="string"?"string":"hash"]:r.map}var xt=Ys,Xs=xt;function Zs(e){var t=Xs(this,e).delete(e);return this.size-=t?1:0,t}var Js=Zs,Qs=xt;function ec(e){return Qs(this,e).get(e)}var tc=ec,rc=xt;function nc(e){return rc(this,e).has(e)}var oc=nc,ic=xt;function ac(e,t){var r=ic(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var sc=ac,cc=Vs,lc=Js,uc=tc,dc=oc,fc=sc;function je(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}je.prototype.clear=cc;je.prototype.delete=lc;je.prototype.get=uc;je.prototype.has=dc;je.prototype.set=fc;var pc=je,qn=pc,hc="Expected a function";function xr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hc);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(xr.Cache||qn),r}xr.Cache=qn;var vc=xr,_c=vc,mc=500;function bc(e){var t=_c(e,function(n){return r.size===mc&&r.clear(),n}),r=t.cache;return t}var gc=bc,wc=gc,yc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kc=/\\(\\)?/g,xc=wc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yc,function(r,n,o,i){t.push(o?i.replace(kc,"$1"):n||r)}),t}),$c=xc;function Sc(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var Ec=Sc,qr=yr,Cc=Ec,Oc=gr,Pc=kr,Tc=1/0,Gr=qr?qr.prototype:void 0,Yr=Gr?Gr.toString:void 0;function Gn(e){if(typeof e=="string")return e;if(Oc(e))return Cc(e,Gn)+"";if(Pc(e))return Yr?Yr.call(e):"";var t=e+"";return t=="0"&&1/e==-Tc?"-0":t}var Ic=Gn,Dc=Ic;function Nc(e){return e==null?"":Dc(e)}var Ac=Nc,Mc=gr,jc=ra,Fc=$c,Lc=Ac;function Rc(e,t){return Mc(e)?e:jc(e,t)?[e]:Fc(Lc(e))}var zc=Rc,Bc=kr,Uc=1/0;function Hc(e){if(typeof e=="string"||Bc(e))return e;var t=e+"";return t=="0"&&1/e==-Uc?"-0":t}var Wc=Hc,Vc=zc,Kc=Wc;function qc(e,t){t=Vc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Kc(t[r++])];return r&&r==n?e:void 0}var Gc=qc,Yc=Gc;function Xc(e,t,r){var n=e==null?void 0:Yc(e,t);return n===void 0?r:n}var Zc=Xc;const Yn=Un(Zc);var Ye,g,Xn,Zn,ve,Xr,Jn,Jt,Qn,Ce={},eo=[],Jc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$t=Array.isArray;function J(e,t){for(var r in t)e[r]=t[r];return e}function to(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Ye.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return He(e,a,n,o,null)}function He(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Xn};return o==null&&g.vnode!=null&&g.vnode(i),i}function ro(){return{current:null}}function M(e){return e.children}function q(e,t){this.props=e,this.context=t}function pt(e,t){if(t==null)return e.__?pt(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?pt(e):null}function no(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return no(e)}}function Qt(e){(!e.__d&&(e.__d=!0)&&ve.push(e)&&!ht.__r++||Xr!==g.debounceRendering)&&((Xr=g.debounceRendering)||Jn)(ht)}function ht(){var e,t,r,n,o,i,a,s,l;for(ve.sort(Jt);e=ve.shift();)e.__d&&(t=ve.length,n=void 0,o=void 0,i=void 0,s=(a=(r=e).__v).__e,(l=r.__P)&&(n=[],o=[],(i=J({},a)).__v=a.__v+1,$r(l,a,i,r.__n,l.ownerSVGElement!==void 0,a.__h!=null?[s]:null,n,s??pt(a),a.__h,o),so(n,a,o),a.__e!=s&&no(a)),ve.length>t&&ve.sort(Jt));ht.__r=0}function oo(e,t,r,n,o,i,a,s,l,u,d){var c,p,v,h,f,_,m,y,k,x,$=0,N=n&&n.__k||eo,L=N.length,E=L,T=t.length;for(r.__k=[],c=0;c<T;c++)(h=r.__k[c]=(h=t[c])==null||typeof h=="boolean"||typeof h=="function"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?He(null,h,null,null,h):$t(h)?He(M,{children:h},null,null,null):h.__b>0?He(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null&&(h.__=r,h.__b=r.__b+1,(y=Qc(h,N,m=c+$,E))===-1?v=Ce:(v=N[y]||Ce,N[y]=void 0,E--),$r(e,h,v,o,i,a,s,l,u,d),f=h.__e,(p=h.ref)&&v.ref!=p&&(v.ref&&Sr(v.ref,null,h),d.push(p,h.__c||f,h)),f!=null&&(_==null&&(_=f),x=!(k=v===Ce||v.__v===null)&&y===m,k?y==-1&&$--:y!==m&&(y===m+1?($++,x=!0):y>m?E>T-m?($+=y-m,x=!0):$--:$=y<m&&y==m-1?y-m:0),m=c+$,x=x||y==c&&!k,typeof h.type!="function"||y===m&&v.__k!==h.__k?typeof h.type=="function"||x?h.__d!==void 0?(l=h.__d,h.__d=void 0):l=f.nextSibling:l=ao(e,f,l):l=io(h,l,e),typeof r.type=="function"&&(r.__d=l)));for(r.__e=_,c=L;c--;)N[c]!=null&&(typeof r.type=="function"&&N[c].__e!=null&&N[c].__e==r.__d&&(r.__d=N[c].__e.nextSibling),co(N[c],N[c]))}function io(e,t,r){for(var n,o=e.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=e,t=typeof n.type=="function"?io(n,t,r):ao(r,n.__e,t));return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||($t(e)?e.some(function(r){Q(r,t)}):t.push(e)),t}function ao(e,t,r){return r==null||r.parentNode!==e?e.insertBefore(t,null):t==r&&t.parentNode!=null||e.insertBefore(t,r),t.nextSibling}function Qc(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(l===null||l&&o==l.key&&i===l.type)return r;if(n>(l!=null?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&o==l.key&&i===l.type)return s;s++}}return-1}function el(e,t,r,n,o){var i;for(i in r)i==="children"||i==="key"||i in t||vt(e,i,null,r[i],n);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||r[i]===t[i]||vt(e,i,t[i],r[i],n)}function Zr(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Jc.test(t)?r:r+"px"}function vt(e,t,r,n,o){var i;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Zr(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Zr(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n||e.addEventListener(t,i?Qr:Jr,i):e.removeEventListener(t,i?Qr:Jr,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function Jr(e){return this.l[e.type+!1](g.event?g.event(e):e)}function Qr(e){return this.l[e.type+!0](g.event?g.event(e):e)}function $r(e,t,r,n,o,i,a,s,l,u){var d,c,p,v,h,f,_,m,y,k,x,$,N,L,E,T=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(l=r.__h,s=t.__e=r.__e,t.__h=null,i=[s]),(d=g.__b)&&d(t);try{e:if(typeof T=="function"){if(m=t.props,y=(d=T.contextType)&&n[d.__c],k=d?y?y.props.value:d.__:n,r.__c?_=(c=t.__c=r.__c).__=c.__E:("prototype"in T&&T.prototype.render?t.__c=c=new T(m,k):(t.__c=c=new q(m,k),c.constructor=T,c.render=rl),y&&y.sub(c),c.props=m,c.state||(c.state={}),c.context=k,c.__n=n,p=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),T.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=J({},c.__s)),J(c.__s,T.getDerivedStateFromProps(m,c.__s))),v=c.props,h=c.state,c.__v=t,p)T.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(T.getDerivedStateFromProps==null&&m!==v&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,k),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,k)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(fe){fe&&(fe.__=t)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,k),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(v,h,f)})}if(c.context=k,c.props=m,c.__P=e,c.__e=!1,$=g.__r,N=0,"prototype"in T&&T.prototype.render){for(c.state=c.__s,c.__d=!1,$&&$(t),d=c.render(c.props,c.state,c.context),L=0;L<c._sb.length;L++)c.__h.push(c._sb[L]);c._sb=[]}else do c.__d=!1,$&&$(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++N<25);c.state=c.__s,c.getChildContext!=null&&(n=J(J({},n),c.getChildContext())),p||c.getSnapshotBeforeUpdate==null||(f=c.getSnapshotBeforeUpdate(v,h)),oo(e,$t(E=d!=null&&d.type===M&&d.key==null?d.props.children:d)?E:[E],t,r,n,o,i,a,s,l,u),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),_&&(c.__E=c.__=null)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=tl(r.__e,t,r,n,o,i,a,l,u);(d=g.diffed)&&d(t)}catch(fe){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),g.__e(fe,t,r)}}function so(e,t,r){for(var n=0;n<r.length;n++)Sr(r[n],r[++n],r[++n]);g.__c&&g.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){g.__e(i,o.__v)}})}function tl(e,t,r,n,o,i,a,s,l){var u,d,c,p=r.props,v=t.props,h=t.type,f=0;if(h==="svg"&&(o=!0),i!=null){for(;f<i.length;f++)if((u=i[f])&&"setAttribute"in u==!!h&&(h?u.localName===h:u.nodeType===3)){e=u,i[f]=null;break}}if(e==null){if(h===null)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,v.is&&v),i=null,s=!1}if(h===null)p===v||s&&e.data===v||(e.data=v);else{if(i=i&&Ye.call(e.childNodes),d=(p=r.props||Ce).dangerouslySetInnerHTML,c=v.dangerouslySetInnerHTML,!s){if(i!=null)for(p={},f=0;f<e.attributes.length;f++)p[e.attributes[f].name]=e.attributes[f].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(el(e,v,p,o,s),c)t.__k=[];else if(oo(e,$t(f=t.props.children)?f:[f],t,r,n,o&&h!=="foreignObject",i,a,i?i[0]:r.__k&&pt(r,0),s,l),i!=null)for(f=i.length;f--;)i[f]!=null&&to(i[f]);s||("value"in v&&(f=v.value)!==void 0&&(f!==e.value||h==="progress"&&!f||h==="option"&&f!==p.value)&&vt(e,"value",f,p.value,!1),"checked"in v&&(f=v.checked)!==void 0&&f!==e.checked&&vt(e,"checked",f,p.checked,!1))}return e}function Sr(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){g.__e(n,r)}}function co(e,t,r){var n,o;if(g.unmount&&g.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Sr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){g.__e(i,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&co(n[o],t,r||typeof e.type!="function");r||e.__e==null||to(e.__e),e.__=e.__e=e.__d=void 0}function rl(e,t,r){return this.constructor(e,r)}function Ie(e,t,r){var n,o,i,a;g.__&&g.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],$r(t,e=(!n&&r||t).__k=w(M,null,[e]),o||Ce,Ce,t.ownerSVGElement!==void 0,!n&&r?[r]:o?null:t.firstChild?Ye.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),so(i,e,a)}function lo(e,t){Ie(e,t,lo)}function nl(e,t,r){var n,o,i,a,s=J({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?Ye.call(arguments,2):r),He(e.type,s,n||e.key,o||e.ref,null)}function Ve(e,t){var r={__c:t="__cC"+Qn++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,Qt(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Ye=eo.slice,g={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Xn=0,Zn=function(e){return e!=null&&e.constructor===void 0},q.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},r),this.props)),e&&J(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qt(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qt(this))},q.prototype.render=M,ve=[],Jn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jt=function(e,t){return e.__v.__b-t.__v.__b},ht.__r=0,Qn=0;var St=class extends Error{constructor(t){super(t[0].message);zr(this,"issues");this.name="ValiError",this.issues=t}};function uo(e,t){return{...e,_parse(r,n){return e._parse(t(r),n)}}}function Xe(e){return{issues:e}}function B(e){return{output:e}}function ol(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function il(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function le(e,t,r,n){if(!t||!t.length||r!=null&&r.skipPipe)return B(e);let o,i,a=e;for(const s of t){const l=s._parse(a);if(l.issues){o=o||il(r,n);for(const u of l.issues){const d=ol(o,u);i?i.push(d):i=[d]}if(o.abortEarly||o.abortPipeEarly)break}else a=l.output}return i?Xe(i):B(a)}function ce(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function fo(e){return typeof e=="function"?e():e}function ue(e,t,r,n){return Xe([{validation:e,message:fo(t),input:r,requirement:n}])}function po(e,t,r){if(!e||typeof e=="object"&&!Array.isArray(e)){const[i,a]=ce(t,r);return[e,i,a]}const[n,o]=ce(e,t);return[void 0,n,o]}function re(e,t,r,n,o,i){return{issues:[{reason:t,validation:r,origin:(e==null?void 0:e.origin)||"value",message:fo(n),input:o,issues:i,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function ho(e){return typeof e.default=="function"?e.default():e.default}function al(e){return{type:"any",async:!1,pipe:e,_parse(t,r){return le(t,this.pipe,r,"any")}}}function vo(e,t,r){const[n="Invalid type",o]=ce(t,r);return{type:"array",async:!1,item:e,message:n,pipe:o,_parse(i,a){if(!Array.isArray(i))return re(a,"type","array",this.message,i);let s;const l=[];for(let u=0;u<i.length;u++){const d=i[u],c=this.item._parse(d,a);if(c.issues){const p={type:"array",input:i,key:u,value:d};for(const v of c.issues)v.path?v.path.unshift(p):v.path=[p],s==null||s.push(v);if(s||(s=c.issues),a!=null&&a.abortEarly)break}else l.push(c.output)}return s?Xe(s):le(l,this.pipe,a,"array")}}}function _o(e,t){const[r="Invalid type",n]=ce(e,t);return{type:"boolean",async:!1,message:r,pipe:n,_parse(o,i){return typeof o!="boolean"?re(i,"type","boolean",this.message,o):le(o,this.pipe,i,"boolean")}}}function en(e,t="Invalid type"){return{type:"literal",async:!1,literal:e,message:t,_parse(r,n){return r!==this.literal?re(n,"type","literal",this.message,r):B(r)}}}function sl(e,t){return{type:"nullable",async:!1,wrapped:e,default:t,_parse(r,n){if(r===null){const o=ho(this);if(o===void 0)return B(r);r=o}return this.wrapped._parse(r,n)}}}function er(e,t){const[r="Invalid type",n]=ce(e,t);return{type:"number",async:!1,message:r,pipe:n,_parse(o,i){return typeof o!="number"||isNaN(o)?re(i,"type","number",this.message,o):le(o,this.pipe,i,"number")}}}function se(e,t,r,n){const[o,i="Invalid type",a]=po(t,r,n);let s;return{type:"object",async:!1,entries:e,rest:o,message:i,pipe:a,_parse(l,u){if(!l||typeof l!="object")return re(u,"type","object",this.message,l);s=s||Object.entries(this.entries);let d;const c={};for(const[p,v]of s){const h=l[p],f=v._parse(h,u);if(f.issues){const _={type:"object",input:l,key:p,value:h};for(const m of f.issues)m.path?m.path.unshift(_):m.path=[_],d==null||d.push(m);if(d||(d=f.issues),u!=null&&u.abortEarly)break}else(f.output!==void 0||p in l)&&(c[p]=f.output)}if(this.rest&&!(u!=null&&u.abortEarly&&d)){for(const p in l)if(!(p in this.entries)){const v=l[p],h=this.rest._parse(v,u);if(h.issues){const f={type:"object",input:l,key:p,value:v};for(const _ of h.issues)_.path?_.path.unshift(f):_.path=[f],d==null||d.push(_);if(d||(d=h.issues),u!=null&&u.abortEarly)break}else c[p]=h.output}}return d?Xe(d):le(c,this.pipe,u,"object")}}}function Er(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(r,n){if(r===void 0){const o=ho(this);if(o===void 0)return B(r);r=o}return this.wrapped._parse(r,n)}}}function cl(e,t="Invalid type"){return{type:"picklist",async:!1,options:e,message:t,_parse(r,n){return this.options.includes(r)?B(r):re(n,"type","picklist",this.message,r)}}}function me(e,t){const[r="Invalid type",n]=ce(e,t);return{type:"string",async:!1,message:r,pipe:n,_parse(o,i){return typeof o!="string"?re(i,"type","string",this.message,o):le(o,this.pipe,i,"string")}}}function ll(e,t,r,n){if(typeof t=="object"&&!Array.isArray(t)){const[a,s]=ce(r,n);return[e,t,a,s]}const[o,i]=ce(t,r);return[me(),e,o,i]}var ul=["__proto__","prototype","constructor"];function mo(e,t,r,n){const[o,i,a="Invalid type",s]=ll(e,t,r,n);return{type:"record",async:!1,key:o,value:i,message:a,pipe:s,_parse(l,u){if(!l||typeof l!="object")return re(u,"type","record",this.message,l);let d;const c={};for(const[p,v]of Object.entries(l))if(!ul.includes(p)){let h;const f=this.key._parse(p,{origin:"key",abortEarly:u==null?void 0:u.abortEarly,abortPipeEarly:u==null?void 0:u.abortPipeEarly,skipPipe:u==null?void 0:u.skipPipe});if(f.issues){h={type:"record",input:l,key:p,value:v};for(const m of f.issues)m.path=[h],d==null||d.push(m);if(d||(d=f.issues),u!=null&&u.abortEarly)break}const _=this.value._parse(v,u);if(_.issues){h=h||{type:"record",input:l,key:p,value:v};for(const m of _.issues)m.path?m.path.unshift(h):m.path=[h],d==null||d.push(m);if(d||(d=_.issues),u!=null&&u.abortEarly)break}!f.issues&&!_.issues&&(c[f.output]=_.output)}return d?Xe(d):le(c,this.pipe,u,"record")}}}function dl(e,t="Invalid type"){return{type:"union",async:!1,options:e,message:t,_parse(r,n){let o,i;for(const a of this.options){const s=a._parse(r,n);if(s.issues)if(o)for(const l of s.issues)o.push(l);else o=s.issues;else{i=[s.output];break}}return i?B(i[0]):re(n,"type","union",this.message,r,o)}}}function tr(e,t,r){const n=e._parse(t,r);if(n.issues)throw new St(n.issues);return n.output}async function fl(e,t,r){const n=await e._parse(t,r);if(n.issues)throw new St(n.issues);return n.output}function pl(e,t,r,n){const[o,i,a]=po(t,r,n);return se(Object.entries(e.entries).reduce((s,[l,u])=>({...s,[l]:Er(u)}),{}),o,i,a)}function hl(e,t,r){const n=e._parse(t,r);return n.issues?{success:!1,error:new St(n.issues),issues:n.issues}:{success:!0,data:n.output,output:n.output}}function vl(e,t,r){return{...e,_parse(n,o){const i=e._parse(n,o);if(i.issues)return i;const a=t(i.output);return r&&!Array.isArray(r)?r._parse(a,o):le(a,r,o,typeof a)}}}var _l=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function ml(e,t="Invalid input"){return{type:"custom",async:!1,message:t,requirement:e,_parse(r){return this.requirement(r)?B(r):ue(this.type,this.message,r,this.requirement)}}}function bl(e="Invalid email"){return{type:"email",async:!1,message:e,requirement:_l,_parse(t){return this.requirement.test(t)?B(t):ue(this.type,this.message,t,this.requirement)}}}function gl(e,t="Invalid length"){return{type:"max_length",async:!1,message:t,requirement:e,_parse(r){return r.length>this.requirement?ue(this.type,this.message,r,this.requirement):B(r)}}}function wl(e,t="Invalid value"){return{type:"max_value",async:!1,message:t,requirement:e,_parse(r){return r>this.requirement?ue(this.type,this.message,r,this.requirement):B(r)}}}function yl(e,t="Invalid length"){return{type:"min_length",async:!1,message:t,requirement:e,_parse(r){return r.length<this.requirement?ue(this.type,this.message,r,this.requirement):B(r)}}}function kl(e,t="Invalid value"){return{type:"min_value",async:!1,message:t,requirement:e,_parse(r){return r<this.requirement?ue(this.type,this.message,r,this.requirement):B(r)}}}function xl(e,t="Invalid regex"){return{type:"regex",async:!1,message:t,requirement:e,_parse(r){return this.requirement.test(r)?B(r):ue(this.type,this.message,r,this.requirement)}}}function $l(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?B(t):ue(this.type,this.message,t,this.requirement)}}}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}var te,C,Mt,tn,De=0,bo=[],st=[],rn=g.__b,nn=g.__r,on=g.diffed,an=g.__c,sn=g.unmount;function ye(e,t){g.__h&&g.__h(C,e,De||t),De=0;var r=C.__H||(C.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:st}),r.__[e]}function U(e){return De=1,Et(ko,e)}function Et(e,t,r){var n=ye(te++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ko(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],u=n.t(l,s);l!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=C,!C.u)){var o=function(s,l,u){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,s,l,u);var c=!1;return d.forEach(function(p){if(p.__N){var v=p.__[0];p.__=p.__N,p.__N=void 0,v!==p.__[0]&&(c=!0)}}),!(!c&&n.__c.props===s)&&(!i||i.call(this,s,l,u))};C.u=!0;var i=C.shouldComponentUpdate,a=C.componentWillUpdate;C.componentWillUpdate=function(s,l,u){if(this.__e){var d=i;i=void 0,o(s,l,u),i=d}a&&a.call(this,s,l,u)},C.shouldComponentUpdate=o}return n.__N||n.__}function D(e,t){var r=ye(te++,3);!g.__s&&Cr(r.__H,t)&&(r.__=e,r.i=t,C.__H.__h.push(r))}function ke(e,t){var r=ye(te++,4);!g.__s&&Cr(r.__H,t)&&(r.__=e,r.i=t,C.__h.push(r))}function O(e){return De=5,G(function(){return{current:e}},[])}function go(e,t,r){De=6,ke(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function G(e,t){var r=ye(te++,7);return Cr(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function V(e,t){return De=8,G(function(){return e},t)}function Ct(e){var t=C.context[e.__c],r=ye(te++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(C)),t.props.value):e.__}function wo(e,t){g.useDebugValue&&g.useDebugValue(t?t(e):e)}function Sl(e){var t=ye(te++,10),r=U();return t.__=e,C.componentDidCatch||(C.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function yo(){var e=ye(te++,11);if(!e.__){for(var t=C.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function El(){for(var e;e=bo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ct),e.__H.__h.forEach(rr),e.__H.__h=[]}catch(t){e.__H.__h=[],g.__e(t,e.__v)}}g.__b=function(e){C=null,rn&&rn(e)},g.__r=function(e){nn&&nn(e),te=0;var t=(C=e.__c).__H;t&&(Mt===C?(t.__h=[],C.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=st,r.__N=r.i=void 0})):(t.__h.forEach(ct),t.__h.forEach(rr),t.__h=[],te=0)),Mt=C},g.diffed=function(e){on&&on(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(bo.push(t)!==1&&tn===g.requestAnimationFrame||((tn=g.requestAnimationFrame)||Cl)(El)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==st&&(r.__=r.__V),r.i=void 0,r.__V=st})),Mt=C=null},g.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ct),r.__h=r.__h.filter(function(n){return!n.__||rr(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],g.__e(n,r.__v)}}),an&&an(e,t)},g.unmount=function(e){sn&&sn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ct(n)}catch(o){t=o}}),r.__H=void 0,t&&g.__e(t,r.__v))};var cn=typeof requestAnimationFrame=="function";function Cl(e){var t,r=function(){clearTimeout(n),cn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);cn&&(t=requestAnimationFrame(r))}function ct(e){var t=C,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),C=t}function rr(e){var t=C;e.__c=e.__(),C=t}function Cr(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ko(e,t){return typeof t=="function"?t(e):t}function xo(e,t){for(var r in t)e[r]=t[r];return e}function nr(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function jt(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function _t(e){this.props=e}function $o(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:nr(this.props,o)}function n(o){return this.shouldComponentUpdate=r,w(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(_t.prototype=new q).isPureReactComponent=!0,_t.prototype.shouldComponentUpdate=function(e,t){return nr(this.props,e)||nr(this.state,t)};var ln=g.__b;g.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ln&&ln(e)};var Ol=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function z(e){function t(r){var n=xo({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Ol,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var un=function(e,t){return e==null?null:Q(Q(e).map(t))},ee={map:un,forEach:un,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Pl=g.__e;g.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Pl(e,t,r,n)};var dn=g.unmount;function So(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=xo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return So(n,t,r)})),e}function Eo(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Eo(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Oe(){this.__u=0,this.t=null,this.__b=null}function Co(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Or(e){var t,r,n;function o(i){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return w(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Ee(){this.u=null,this.o=null}g.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),dn&&dn(e)},(Oe.prototype=new q).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Co(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=Eo(u,u.__c.__P,u.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.t.pop();)d.forceUpdate()}},l=t.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Oe.prototype.componentWillUnmount=function(){this.t=[]},Oe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=So(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&w(M,null,e.fallback);return o&&(o.__h=null),[w(M,null,t.__a?null:e.children),o]};var fn=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function Tl(e){return this.getChildContext=function(){return e.context},e.children}function Il(e){var t=this,r=e.i;t.componentWillUnmount=function(){Ie(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),e.__v?(t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),Ie(w(Tl,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Oo(e,t){var r=w(Il,{__v:e,i:t});return r.containerInfo=t,r}(Ee.prototype=new q).__a=function(e){var t=this,r=Co(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),fn(t,e,n)):o()};r?r(i):i()}},Ee.prototype.render=function(e){this.u=null,this.o=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ee.prototype.componentDidUpdate=Ee.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){fn(e,r,t)})};var Po=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Dl=/^(?: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]/,Nl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Al=/[A-Z0-9]/g,Ml=typeof document<"u",jl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function To(e,t,r){return t.__k==null&&(t.textContent=""),Ie(e,t),typeof r=="function"&&r(),e?e.__c:null}function Io(e,t,r){return lo(e,t),typeof r=="function"&&r(),e?e.__c:null}q.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(q.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pn=g.event;function Fl(){}function Ll(){return this.cancelBubble}function Rl(){return this.defaultPrevented}g.event=function(e){return pn&&(e=pn(e)),e.persist=Fl,e.isPropagationStopped=Ll,e.isDefaultPrevented=Rl,e.nativeEvent=e};var Pr,zl={enumerable:!1,configurable:!0,get:function(){return this.class}},hn=g.vnode;g.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var i in r){var a=r[i];if(!(i==="value"&&"defaultValue"in r&&a==null||Ml&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&a===!0?a="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||jl(r.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":Nl.test(i)?i=s:n.indexOf("-")===-1&&Dl.test(i)?i=i.replace(Al,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(r.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Q(r.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",zl)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Po,hn&&hn(e)};var vn=g.__r;g.__r=function(e){vn&&vn(e),Pr=e.__c};var _n=g.diffed;g.diffed=function(e){_n&&_n(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Pr=null};var Do={ReactCurrentDispatcher:{current:{readContext:function(e){return Pr.__n[e.__c].props.value}}}},Bl="17.0.2";function No(e){return w.bind(null,e)}function ge(e){return!!e&&e.$$typeof===Po}function Fe(e){return ge(e)?nl.apply(null,arguments):e}function Ao(e){return!!e.__k&&(Ie(null,e),!0)}function Mo(e){return e&&(e.base||e.nodeType===1&&e)||null}var jo=function(e,t){return e(t)},Ot=function(e,t){return e(t)},Fo=M;function Tr(e){e()}function Lo(e){return e}function Ro(){return[!1,Tr]}var zo=ke;function Bo(e,t){var r=t(),n=U({h:{__:r,v:t}}),o=n[0].h,i=n[1];return ke(function(){o.__=r,o.v=t,jt(o.__,t())||i({h:o})},[e,r,t]),D(function(){return jt(o.__,o.v())||i({h:o}),e(function(){jt(o.__,o.v())||i({h:o})})},[e]),r}var Uo={useState:U,useId:yo,useReducer:Et,useEffect:D,useLayoutEffect:ke,useInsertionEffect:zo,useTransition:Ro,useDeferredValue:Lo,useSyncExternalStore:Bo,startTransition:Tr,useRef:O,useImperativeHandle:go,useMemo:G,useCallback:V,useContext:Ct,useDebugValue:wo,version:"17.0.2",Children:ee,render:To,hydrate:Io,unmountComponentAtNode:Ao,createPortal:Oo,createElement:w,createContext:Ve,createFactory:No,cloneElement:Fe,createRef:ro,Fragment:M,isValidElement:ge,findDOMNode:Mo,Component:q,PureComponent:_t,memo:$o,forwardRef:z,flushSync:Ot,unstable_batchedUpdates:jo,StrictMode:Fo,Suspense:Oe,SuspenseList:Ee,lazy:Or,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Do};const Ul=Object.freeze(Object.defineProperty({__proto__:null,Children:ee,Component:q,Fragment:M,PureComponent:_t,StrictMode:Fo,Suspense:Oe,SuspenseList:Ee,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Do,cloneElement:Fe,createContext:Ve,createElement:w,createFactory:No,createPortal:Oo,createRef:ro,default:Uo,findDOMNode:Mo,flushSync:Ot,forwardRef:z,hydrate:Io,isValidElement:ge,lazy:Or,memo:$o,render:To,startTransition:Tr,unmountComponentAtNode:Ao,unstable_batchedUpdates:jo,useCallback:V,useContext:Ct,useDebugValue:wo,useDeferredValue:Lo,useEffect:D,useErrorBoundary:Sl,useId:yo,useImperativeHandle:go,useInsertionEffect:zo,useLayoutEffect:ke,useMemo:G,useReducer:Et,useRef:O,useState:U,useSyncExternalStore:Bo,useTransition:Ro,version:Bl},Symbol.toStringTag,{value:"Module"}));function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Hl(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ho(...e){return t=>e.forEach(r=>Hl(r,t))}function Ze(...e){return V(Ho(...e),e)}function Wl(e,t=[]){let r=[];function n(i,a){const s=Ve(a),l=r.length;r=[...r,a];function u(c){const{scope:p,children:v,...h}=c,f=(p==null?void 0:p[e][l])||s,_=G(()=>h,Object.values(h));return w(f.Provider,{value:_},v)}function d(c,p){const v=(p==null?void 0:p[e][l])||s,h=Ct(v);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=r.map(a=>Ve(a));return function(s){const l=(s==null?void 0:s[e])||i;return G(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,Vl(o,...t)]}function Vl(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return G(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}const or=globalThis!=null&&globalThis.document?ke:()=>{},Kl=Ul["useId".toString()]||(()=>{});let ql=0;function Ft(e){const[t,r]=U(Kl());return or(()=>{e||r(n=>n??String(ql++))},[e]),e||(t?`radix-${t}`:"")}function we(e){const t=O(e);return D(()=>{t.current=e}),G(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Gl({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Yl({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=we(r),l=V(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else o(u)},[i,e,o,s]);return[a,l]}function Yl({defaultProp:e,onChange:t}){const r=U(e),[n]=r,o=O(n),i=we(t);return D(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const Ir=z((e,t)=>{const{children:r,...n}=e,o=ee.toArray(r),i=o.find(Zl);if(i){const a=i.props.children,s=o.map(l=>l===i?ee.count(a)>1?ee.only(null):ge(a)?a.props.children:null:l);return w(ir,W({},n,{ref:t}),ge(a)?Fe(a,void 0,s):null)}return w(ir,W({},n,{ref:t}),r)});Ir.displayName="Slot";const ir=z((e,t)=>{const{children:r,...n}=e;return ge(r)?Fe(r,{...Jl(n,r.props),ref:t?Ho(t,r.ref):r.ref}):ee.count(r)>1?ee.only(null):null});ir.displayName="SlotClone";const Xl=({children:e})=>w(M,null,e);function Zl(e){return ge(e)&&e.type===Xl}function Jl(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const Ql=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Dr=Ql.reduce((e,t)=>{const r=z((n,o)=>{const{asChild:i,...a}=n,s=i?Ir:t;return D(()=>{window[Symbol.for("radix-ui")]=!0},[]),w(s,W({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eu(e,t){e&&Ot(()=>e.dispatchEvent(t))}function tu(e,t=globalThis==null?void 0:globalThis.document){const r=we(e);D(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const ar="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",nu="dismissableLayer.focusOutside";let mn;const ou=Ve({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iu=z((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=Ct(ou),[c,p]=U(null),v=(r=c==null?void 0:c.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,h]=U({}),f=Ze(t,E=>p(E)),_=Array.from(d.layers),[m]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(m),k=c?_.indexOf(c):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,$=k>=y,N=au(E=>{const T=E.target,fe=[...d.branches].some(Nt=>Nt.contains(T));!$||fe||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},v),L=su(E=>{const T=E.target;[...d.branches].some(Nt=>Nt.contains(T))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},v);return tu(E=>{k===d.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},v),D(()=>{if(c)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(mn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),bn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mn)}},[c,v,n,d]),D(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),bn())},[c,d]),D(()=>{const E=()=>h({});return document.addEventListener(ar,E),()=>document.removeEventListener(ar,E)},[]),w(Dr.div,W({},u,{ref:f,style:{pointerEvents:x?$?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,L.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,N.onPointerDownCapture)}))});function au(e,t=globalThis==null?void 0:globalThis.document){const r=we(e),n=O(!1),o=O(()=>{});return D(()=>{const i=s=>{if(s.target&&!n.current){let u=function(){Wo(ru,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function su(e,t=globalThis==null?void 0:globalThis.document){const r=we(e),n=O(!1);return D(()=>{const o=i=>{i.target&&!n.current&&Wo(nu,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bn(){const e=new CustomEvent(ar);document.dispatchEvent(e)}function Wo(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?eu(o,i):o.dispatchEvent(i)}const Lt="focusScope.autoFocusOnMount",Rt="focusScope.autoFocusOnUnmount",gn={bubbles:!1,cancelable:!0},cu=z((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=U(null),u=we(o),d=we(i),c=O(null),p=Ze(t,f=>l(f)),v=O({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D(()=>{if(n){let f=function(k){if(v.paused||!s)return;const x=k.target;s.contains(x)?c.current=x:ne(c.current,{select:!0})},_=function(k){if(v.paused||!s)return;const x=k.relatedTarget;x!==null&&(s.contains(x)||ne(c.current,{select:!0}))},m=function(k){if(document.activeElement===document.body)for(const $ of k)$.removedNodes.length>0&&ne(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",_);const y=new MutationObserver(m);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",_),y.disconnect()}}},[n,s,v.paused]),D(()=>{if(s){yn.add(v);const f=document.activeElement;if(!s.contains(f)){const m=new CustomEvent(Lt,gn);s.addEventListener(Lt,u),s.dispatchEvent(m),m.defaultPrevented||(lu(hu(Vo(s)),{select:!0}),document.activeElement===f&&ne(s))}return()=>{s.removeEventListener(Lt,u),setTimeout(()=>{const m=new CustomEvent(Rt,gn);s.addEventListener(Rt,d),s.dispatchEvent(m),m.defaultPrevented||ne(f??document.body,{select:!0}),s.removeEventListener(Rt,d),yn.remove(v)},0)}}},[s,u,d,v]);const h=V(f=>{if(!r&&!n||v.paused)return;const _=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=document.activeElement;if(_&&m){const y=f.currentTarget,[k,x]=uu(y);k&&x?!f.shiftKey&&m===x?(f.preventDefault(),r&&ne(k,{select:!0})):f.shiftKey&&m===k&&(f.preventDefault(),r&&ne(x,{select:!0})):m===y&&f.preventDefault()}},[r,n,v.paused]);return w(Dr.div,W({tabIndex:-1},a,{ref:p,onKeyDown:h}))});function lu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ne(n,{select:t}),document.activeElement!==r)return}function uu(e){const t=Vo(e),r=wn(t,e),n=wn(t.reverse(),e);return[r,n]}function Vo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function wn(e,t){for(const r of e)if(!du(r,{upTo:t}))return r}function du(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fu(e){return e instanceof HTMLInputElement&&"select"in e}function ne(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fu(e)&&t&&e.select()}}const yn=pu();function pu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=kn(e,t),e.unshift(t)},remove(t){var r;e=kn(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function kn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function hu(e){return e.filter(t=>t.tagName!=="A")}function vu(e,t){return Et((r,n)=>{const o=t[r][n];return o??r},e)}const Nr=e=>{const{present:t,children:r}=e,n=_u(t),o=typeof r=="function"?r({present:n.isPresent}):ee.only(r),i=Ze(n.ref,o.ref);return typeof r=="function"||n.isPresent?Fe(o,{ref:i}):null};Nr.displayName="Presence";function _u(e){const[t,r]=U(),n=O({}),o=O(e),i=O("none"),a=e?"mounted":"unmounted",[s,l]=vu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return D(()=>{const u=et(n.current);i.current=s==="mounted"?u:"none"},[s]),or(()=>{const u=n.current,d=o.current;if(d!==e){const p=i.current,v=et(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),or(()=>{if(t){const u=c=>{const v=et(n.current).includes(c.animationName);c.target===t&&v&&Ot(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(i.current=et(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function et(e){return(e==null?void 0:e.animationName)||"none"}let zt=0;function mu(){D(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:xn()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:xn()),zt++,()=>{zt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),zt--}},[])}function xn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Z=function(){return Z=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Z.apply(this,arguments)};function Ko(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function bu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var lt="right-scroll-bar-position",ut="width-before-scroll-bar",gu="with-scroll-bars-hidden",wu="--removed-body-scroll-bar-size";function yu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ku(e,t){var r=U(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function xu(e,t){return ku(t||null,function(r){return e.forEach(function(n){return yu(n,r)})})}function $u(e){return e}function Su(e,t){t===void 0&&(t=$u);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),r}}}};return o}function Eu(e){e===void 0&&(e={});var t=Su(null);return t.options=Z({async:!0,ssr:!1},e),t}var qo=function(e){var t=e.sideCar,r=Ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return w(n,Z({},r))};qo.isSideCarExport=!0;function Cu(e,t){return e.useMedium(t),qo}var Go=Eu(),Bt=function(){},Pt=z(function(e,t){var r=O(null),n=U({onScrollCapture:Bt,onWheelCapture:Bt,onTouchMoveCapture:Bt}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,f=e.allowPinchZoom,_=e.as,m=_===void 0?"div":_,y=Ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),k=p,x=xu([r,t]),$=Z(Z({},y),o);return w(M,null,d&&w(k,{sideCar:Go,removeScrollBar:u,shards:c,noIsolation:v,inert:h,setCallbacks:i,allowPinchZoom:!!f,lockRef:r}),a?Fe(ee.only(s),Z(Z({},$),{ref:x})):w(m,Z({},$,{className:l,ref:x}),s))});Pt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pt.classNames={fullWidth:ut,zeroRight:lt};var $n,Ou=function(){if($n)return $n;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ou();return t&&e.setAttribute("nonce",t),e}function Tu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Du=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Pu())&&(Tu(t,r),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nu=function(){var e=Du();return function(t,r){D(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Yo=function(){var e=Nu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Au={left:0,top:0,right:0,gap:0},Ut=function(e){return parseInt(e||"",10)||0},Mu=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ut(r),Ut(n),Ut(o)]},ju=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Au;var t=Mu(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Fu=Yo(),Lu=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(gu,` {
3
+ overflow: hidden `).concat(n,`;
4
+ padding-right: `).concat(s,"px ").concat(n,`;
5
+ }
6
+ body {
7
+ overflow: hidden `).concat(n,`;
8
+ overscroll-behavior: contain;
9
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10
+ padding-left: `.concat(o,`px;
11
+ padding-top: `).concat(i,`px;
12
+ padding-right: `).concat(a,`px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: `).concat(s,"px ").concat(n,`;
16
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
+ }
18
+
19
+ .`).concat(lt,` {
20
+ right: `).concat(s,"px ").concat(n,`;
21
+ }
22
+
23
+ .`).concat(ut,` {
24
+ margin-right: `).concat(s,"px ").concat(n,`;
25
+ }
26
+
27
+ .`).concat(lt," .").concat(lt,` {
28
+ right: 0 `).concat(n,`;
29
+ }
30
+
31
+ .`).concat(ut," .").concat(ut,` {
32
+ margin-right: 0 `).concat(n,`;
33
+ }
34
+
35
+ body {
36
+ `).concat(wu,": ").concat(s,`px;
37
+ }
38
+ `)},Ru=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=G(function(){return ju(o)},[o]);return w(Fu,{styles:Lu(i,!t,o,r?"":"!important")})},sr=!1;if(typeof window<"u")try{var tt=Object.defineProperty({},"passive",{get:function(){return sr=!0,!0}});window.addEventListener("test",tt,tt),window.removeEventListener("test",tt,tt)}catch{sr=!1}var xe=sr?{passive:!1}:!1,zu=function(e){return e.tagName==="TEXTAREA"},Xo=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zu(e)&&r[t]==="visible")},Bu=function(e){return Xo(e,"overflowY")},Uu=function(e){return Xo(e,"overflowX")},Sn=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Zo(e,r);if(n){var o=Jo(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Hu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Wu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Zo=function(e,t){return e==="v"?Bu(t):Uu(t)},Jo=function(e,t){return e==="v"?Hu(t):Wu(t)},Vu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ku=function(e,t,r,n,o){var i=Vu(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),u=!1,d=a>0,c=0,p=0;do{var v=Jo(e,s),h=v[0],f=v[1],_=v[2],m=f-_-i*h;(h||m)&&Zo(e,s)&&(c+=m,p+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(o&&c===0||!o&&a>c)||!d&&(o&&p===0||!o&&-a>p))&&(u=!0),u},rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},En=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&"current"in e?e.current:e},qu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gu=function(e){return`
39
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
40
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
+ `)},Yu=0,$e=[];function Xu(e){var t=O([]),r=O([0,0]),n=O(),o=U(Yu++)[0],i=U(function(){return Yo()})[0],a=O(e);D(function(){a.current=e},[e]),D(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=bu([e.lockRef.current],(e.shards||[]).map(Cn),!0).filter(Boolean);return f.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=V(function(f,_){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var m=rt(f),y=r.current,k="deltaX"in f?f.deltaX:y[0]-m[0],x="deltaY"in f?f.deltaY:y[1]-m[1],$,N=f.target,L=Math.abs(k)>Math.abs(x)?"h":"v";if("touches"in f&&L==="h"&&N.type==="range")return!1;var E=Sn(L,N);if(!E)return!0;if(E?$=L:($=L==="v"?"h":"v",E=Sn(L,N)),!E)return!1;if(!n.current&&"changedTouches"in f&&(k||x)&&(n.current=$),!$)return!0;var T=n.current||$;return Ku(T,_,f,T==="h"?k:x,!0)},[]),l=V(function(f){var _=f;if(!(!$e.length||$e[$e.length-1]!==i)){var m="deltaY"in _?En(_):rt(_),y=t.current.filter(function($){return $.name===_.type&&$.target===_.target&&qu($.delta,m)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var k=(a.current.shards||[]).map(Cn).filter(Boolean).filter(function($){return $.contains(_.target)}),x=k.length>0?s(_,k[0]):!a.current.noIsolation;x&&_.cancelable&&_.preventDefault()}}},[]),u=V(function(f,_,m,y){var k={name:f,delta:_,target:m,should:y};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(x){return x!==k})},1)},[]),d=V(function(f){r.current=rt(f),n.current=void 0},[]),c=V(function(f){u(f.type,En(f),f.target,s(f,e.lockRef.current))},[]),p=V(function(f){u(f.type,rt(f),f.target,s(f,e.lockRef.current))},[]);D(function(){return $e.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",l,xe),document.addEventListener("touchmove",l,xe),document.addEventListener("touchstart",d,xe),function(){$e=$e.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,xe),document.removeEventListener("touchmove",l,xe),document.removeEventListener("touchstart",d,xe)}},[]);var v=e.removeScrollBar,h=e.inert;return w(M,null,h?w(i,{styles:Gu(o)}):null,v?w(Ru,{gapMode:"margin"}):null)}const Zu=Cu(Go,Xu);var Qo=z(function(e,t){return w(Pt,Z({},e,{ref:t,sideCar:Zu}))});Qo.classNames=Pt.classNames;const Ju=Qo;var Qu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Se=new WeakMap,nt=new WeakMap,ot={},Ht=0,ei=function(e){return e&&(e.host||ei(e.parentNode))},ed=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ei(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},td=function(e,t,r,n){var o=ed(t,Array.isArray(e)?e:[e]);ot[r]||(ot[r]=new WeakMap);var i=ot[r],a=[],s=new Set,l=new Set(o),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(p){if(s.has(p))d(p);else{var v=p.getAttribute(n),h=v!==null&&v!=="false",f=(Se.get(p)||0)+1,_=(i.get(p)||0)+1;Se.set(p,f),i.set(p,_),a.push(p),f===1&&h&&nt.set(p,!0),_===1&&p.setAttribute(r,"true"),h||p.setAttribute(n,"true")}})};return d(t),s.clear(),Ht++,function(){a.forEach(function(c){var p=Se.get(c)-1,v=i.get(c)-1;Se.set(c,p),i.set(c,v),p||(nt.has(c)||c.removeAttribute(n),nt.delete(c)),v||c.removeAttribute(r)}),Ht--,Ht||(Se=new WeakMap,Se=new WeakMap,nt=new WeakMap,ot={})}},rd=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Qu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),td(n,o,r,"aria-hidden")):function(){return null}};const ti="Dialog",[ri,kf]=Wl(ti),[nd,Le]=ri(ti),od=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=O(null),l=O(null),[u=!1,d]=Gl({prop:n,defaultProp:o,onChange:i});return w(nd,{scope:t,triggerRef:s,contentRef:l,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:u,onOpenChange:d,onOpenToggle:V(()=>d(c=>!c),[d]),modal:a},r)},id="DialogPortal",[xf,ni]=ri(id,{forceMount:void 0}),cr="DialogOverlay",ad=z((e,t)=>{const r=ni(cr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Le(cr,e.__scopeDialog);return i.modal?w(Nr,{present:n||i.open},w(sd,W({},o,{ref:t}))):null}),sd=z((e,t)=>{const{__scopeDialog:r,...n}=e,o=Le(cr,r);return w(Ju,{as:Ir,allowPinchZoom:!0,shards:[o.contentRef]},w(Dr.div,W({"data-state":ii(o.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),Ke="DialogContent",cd=z((e,t)=>{const r=ni(Ke,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Le(Ke,e.__scopeDialog);return w(Nr,{present:n||i.open},i.modal?w(ld,W({},o,{ref:t})):w(ud,W({},o,{ref:t})))}),ld=z((e,t)=>{const r=Le(Ke,e.__scopeDialog),n=O(null),o=Ze(t,r.contentRef,n);return D(()=>{const i=n.current;if(i)return rd(i)},[]),w(oi,W({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pe(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Pe(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Pe(e.onFocusOutside,i=>i.preventDefault())}))}),ud=z((e,t)=>{const r=Le(Ke,e.__scopeDialog),n=O(!1),o=O(!1);return w(oi,W({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}n.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),oi=z((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Le(Ke,r),l=O(null),u=Ze(t,l);return mu(),w(M,null,w(cu,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},w(iu,W({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ii(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function ii(e){return e?"open":"closed"}const dd=od,fd=ad,pd=cd;function ai(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ai(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ar(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ai(e))&&(n&&(n+=" "),n+=t);return n}const On=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Pn=Ar,si=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Pn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(u=>{const d=r==null?void 0:r[u],c=i==null?void 0:i[u];if(d===null)return null;const p=On(d)||On(c);return o[u][p]}),s=r&&Object.entries(r).reduce((u,d)=>{let[c,p]=d;return p===void 0||(u[c]=p),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:c,className:p,...v}=d;return Object.entries(v).every(h=>{let[f,_]=h;return Array.isArray(_)?_.includes({...i,...s}[f]):{...i,...s}[f]===_})?[...u,c,p]:u},[]);return Pn(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},H=Symbol.for("@ts-pattern/matcher"),ci=Symbol.for("@ts-pattern/isVariadic"),mt="@ts-pattern/anonymous-select-key",lr=e=>!!(e&&typeof e=="object"),dt=e=>e&&!!e[H],j=(e,t,r)=>{if(dt(e)){const n=e[H](),{matched:o,selections:i}=n.match(t);return o&&i&&Object.keys(i).forEach(a=>r(a,i[a])),o}if(lr(e)){if(!lr(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],o=[],i=[];for(const a of e.keys()){const s=e[a];dt(s)&&s[ci]?i.push(s):i.length?o.push(s):n.push(s)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+o.length)return!1;const a=t.slice(0,n.length),s=o.length===0?[]:t.slice(-o.length),l=t.slice(n.length,o.length===0?1/0:-o.length);return n.every((u,d)=>j(u,a[d],r))&&o.every((u,d)=>j(u,s[d],r))&&(i.length===0||j(i[0],l,r))}return e.length===t.length&&e.every((a,s)=>j(a,t[s],r))}return Object.keys(e).every(n=>{const o=e[n];return(n in t||dt(i=o)&&i[H]().matcherType==="optional")&&j(o,t[n],r);var i})}return Object.is(t,e)},K=e=>{var t,r,n;return lr(e)?dt(e)?(t=(r=(n=e[H]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?qe(e,K):qe(Object.values(e),K):[]},qe=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function hd(...e){if(e.length===1){const[t]=e;return r=>j(t,r,()=>{})}if(e.length===2){const[t,r]=e;return j(t,r,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function R(e){return Object.assign(e,{optional:()=>Mr(e),and:t=>P(e,t),or:t=>li(e,t),select:t=>t===void 0?Ge(e):Ge(t,e)})}function ur(e){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[ci]:!0})}}))(e),{optional:()=>ur(Mr(e)),select:t=>ur(t===void 0?Ge(e):Ge(t,e))})}function Mr(e){return R({[H]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return t===void 0?(K(e).forEach(o=>n(o,void 0)),{matched:!0,selections:r}):{matched:j(e,t,n),selections:r}},getSelectionKeys:()=>K(e),matcherType:"optional"})})}const vd=(e,t)=>{for(const r of e)if(!t(r))return!1;return!0},_d=(e,t)=>{for(const[r,n]of e.entries())if(!t(n,r))return!1;return!0};function P(...e){return R({[H]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return{matched:e.every(o=>j(o,t,n)),selections:r}},getSelectionKeys:()=>qe(e,K),matcherType:"and"})})}function li(...e){return R({[H]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return qe(e,K).forEach(o=>n(o,void 0)),{matched:e.some(o=>j(o,t,n)),selections:r}},getSelectionKeys:()=>qe(e,K),matcherType:"or"})})}function S(e){return{[H]:()=>({match:t=>({matched:!!e(t)})})}}function Ge(...e){const t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return R({[H]:()=>({match:n=>{let o={[t??mt]:n};return{matched:r===void 0||j(r,n,(i,a)=>{o[i]=a}),selections:o}},getSelectionKeys:()=>[t??mt].concat(r===void 0?[]:K(r))})})}function Y(e){return typeof e=="number"}function pe(e){return typeof e=="string"}function oe(e){return typeof e=="bigint"}const ui=R(S(function(e){return!0})),md=ui,he=e=>Object.assign(R(e),{startsWith:t=>{return he(P(e,(r=t,S(n=>pe(n)&&n.startsWith(r)))));var r},endsWith:t=>{return he(P(e,(r=t,S(n=>pe(n)&&n.endsWith(r)))));var r},minLength:t=>he(P(e,(r=>S(n=>pe(n)&&n.length>=r))(t))),maxLength:t=>he(P(e,(r=>S(n=>pe(n)&&n.length<=r))(t))),includes:t=>{return he(P(e,(r=t,S(n=>pe(n)&&n.includes(r)))));var r},regex:t=>{return he(P(e,(r=t,S(n=>pe(n)&&!!n.match(r)))));var r}}),bd=he(S(pe)),X=e=>Object.assign(R(e),{between:(t,r)=>X(P(e,((n,o)=>S(i=>Y(i)&&n<=i&&o>=i))(t,r))),lt:t=>X(P(e,(r=>S(n=>Y(n)&&n<r))(t))),gt:t=>X(P(e,(r=>S(n=>Y(n)&&n>r))(t))),lte:t=>X(P(e,(r=>S(n=>Y(n)&&n<=r))(t))),gte:t=>X(P(e,(r=>S(n=>Y(n)&&n>=r))(t))),int:()=>X(P(e,S(t=>Y(t)&&Number.isInteger(t)))),finite:()=>X(P(e,S(t=>Y(t)&&Number.isFinite(t)))),positive:()=>X(P(e,S(t=>Y(t)&&t>0))),negative:()=>X(P(e,S(t=>Y(t)&&t<0)))}),gd=X(S(Y)),ie=e=>Object.assign(R(e),{between:(t,r)=>ie(P(e,((n,o)=>S(i=>oe(i)&&n<=i&&o>=i))(t,r))),lt:t=>ie(P(e,(r=>S(n=>oe(n)&&n<r))(t))),gt:t=>ie(P(e,(r=>S(n=>oe(n)&&n>r))(t))),lte:t=>ie(P(e,(r=>S(n=>oe(n)&&n<=r))(t))),gte:t=>ie(P(e,(r=>S(n=>oe(n)&&n>=r))(t))),positive:()=>ie(P(e,S(t=>oe(t)&&t>0))),negative:()=>ie(P(e,S(t=>oe(t)&&t<0)))}),wd=ie(S(oe)),yd=R(S(function(e){return typeof e=="boolean"})),kd=R(S(function(e){return typeof e=="symbol"})),xd=R(S(function(e){return e==null}));var _e={__proto__:null,matcher:H,optional:Mr,array:function(...e){return ur({[H]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const r=e[0];let n={};if(t.length===0)return K(r).forEach(i=>{n[i]=[]}),{matched:!0,selections:n};const o=(i,a)=>{n[i]=(n[i]||[]).concat([a])};return{matched:t.every(i=>j(r,i,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:K(e[0])})})},set:function(...e){return R({[H]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let r={};if(t.size===0)return{matched:!0,selections:r};if(e.length===0)return{matched:!0};const n=(i,a)=>{r[i]=(r[i]||[]).concat([a])},o=e[0];return{matched:vd(t,i=>j(o,i,n)),selections:r}},getSelectionKeys:()=>e.length===0?[]:K(e[0])})})},map:function(...e){return R({[H]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let r={};if(t.size===0)return{matched:!0,selections:r};const n=(s,l)=>{r[s]=(r[s]||[]).concat([l])};if(e.length===0)return{matched:!0};var o;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=e[0])==null?void 0:o.toString()}`);const[i,a]=e;return{matched:_d(t,(s,l)=>{const u=j(i,l,n),d=j(a,s,n);return u&&d}),selections:r}},getSelectionKeys:()=>e.length===0?[]:[...K(e[0]),...K(e[1])]})})},intersection:P,union:li,not:function(e){return R({[H]:()=>({match:t=>({matched:!j(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:S,select:Ge,any:ui,_:md,string:bd,number:gd,bigint:wd,boolean:yd,symbol:kd,nullish:xd,instanceOf:function(e){return R(S(function(t){return r=>r instanceof t}(e)))},shape:function(e){return R(S(hd(e)))}};const dr={matched:!1,value:void 0};function Tt(e){return new bt(e,dr)}class bt{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;const r=t[t.length-1],n=[t[0]];let o;t.length===3&&typeof t[1]=="function"?o=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let i=!1,a={};const s=(u,d)=>{i=!0,a[u]=d},l=!n.some(u=>j(u,this.input,s))||o&&!o(this.input)?dr:{matched:!0,value:r(i?mt in a?a[mt]:a:this.input,this.input)};return new bt(this.input,l)}when(t,r){if(this.state.matched)return this;const n=!!t(this.input);return new bt(this.input,n?{matched:!0,value:r(this.input,this.input)}:dr)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}run(){return this.exhaustive()}returnType(){return this}}function jr(e,t){if(!e)throw new Error(t)}function It(){throw new Error("Cycle detected")}var $d=Symbol.for("preact-signals");function Fr(){if(Te>1)Te--;else{for(var e,t=!1;We!==void 0;){var r=We;for(We=void 0,fr++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&fi(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(fr=0,Te--,t)throw e}}var I=void 0,We=void 0,Te=0,fr=0,gt=0;function di(e){if(I!==void 0){var t=e.n;if(t===void 0||t.t!==I)return t={i:0,S:e,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:t},I.s!==void 0&&(I.s.n=t),I.s=t,e.n=t,32&I.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=I.s,t.n=void 0,I.s.n=t,I.s=t),t}}function F(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}F.prototype.brand=$d;F.prototype.h=function(){return!0};F.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};F.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};F.prototype.subscribe=function(e){var t=this;return Rr(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};F.prototype.valueOf=function(){return this.value};F.prototype.toString=function(){return this.value+""};F.prototype.toJSON=function(){return this.value};F.prototype.peek=function(){return this.v};Object.defineProperty(F.prototype,"value",{get:function(){var e=di(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(I instanceof de&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){fr>100&&It(),this.v=e,this.i++,gt++,Te++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fr()}}}});function Ne(e){return new F(e)}function fi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function pi(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function hi(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function de(e){F.call(this,void 0),this.x=e,this.s=void 0,this.g=gt-1,this.f=4}(de.prototype=new F).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===gt))return!0;if(this.g=gt,this.f|=1,this.i>0&&!fi(this))return this.f&=-2,!0;var e=I;try{pi(this),I=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return I=e,hi(this),this.f&=-2,!0};de.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}F.prototype.S.call(this,e)};de.prototype.U=function(e){if(this.t!==void 0&&(F.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};de.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};de.prototype.peek=function(){if(this.h()||It(),16&this.f)throw this.v;return this.v};Object.defineProperty(de.prototype,"value",{get:function(){1&this.f&&It();var e=di(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Sd(e){return new de(e)}function vi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Te++;var r=I;I=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Lr(e),n}finally{I=r,Fr()}}}function Lr(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,vi(e)}function Ed(e){if(I!==this)throw new Error("Out-of-order effect");hi(this),I=e,this.f&=-2,8&this.f&&Lr(this),Fr()}function Je(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Je.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Je.prototype.S=function(){1&this.f&&It(),this.f|=1,this.f&=-9,vi(this),pi(this),Te++;var e=I;return I=this,Ed.bind(this,e)};Je.prototype.N=function(){2&this.f||(this.f|=2,this.o=We,We=this)};Je.prototype.d=function(){this.f|=8,1&this.f||Lr(this)};function Rr(e){var t=new Je(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var Wt;function Re(e,t){g[e]=t.bind(null,g[e]||function(){})}function wt(e){Wt&&Wt(),Wt=e&&e.S()}function _i(e){var t=this,r=e.data,n=Od(r);n.value=r;var o=G(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var a;!Zn(o.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},Sd(function(){var a=n.value.value;return a===0?0:a===!0?"":a||""})},[]);return o.value}_i.displayName="_st";Object.defineProperties(F.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:_i},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Re("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof F&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});Re("__r",function(e,t){wt();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Rr(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),wt(r),e(t)});Re("__e",function(e,t,r,n){wt(),e(t,r,n)});Re("diffed",function(e,t){wt();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else r.U=i={};for(var l in n){var u=i[l],d=n[l];u===void 0?(u=Cd(r,l,d,o),i[l]=u):u.o(d,o)}}}e(t)});function Cd(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Ne(r);return{o:function(a,s){i.value=a,n=s},d:Rr(function(){var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}Re("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Re("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});q.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function Od(e){return G(function(){return Ne(e)},[])}const pr=(e,t)=>t.some(r=>e instanceof r);let Tn,In;function Pd(){return Tn||(Tn=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Td(){return In||(In=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const hr=new WeakMap,Vt=new WeakMap,Dt=new WeakMap;function Id(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{r(be(e.result)),o()},a=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",a)});return Dt.set(t,e),t}function Dd(e){if(hr.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{r(),o()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});hr.set(e,t)}let vr={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return hr.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return be(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function mi(e){vr=e(vr)}function Nd(e){return Td().includes(e)?function(...t){return e.apply(_r(this),t),be(this.request)}:function(...t){return be(e.apply(_r(this),t))}}function Ad(e){return typeof e=="function"?Nd(e):(e instanceof IDBTransaction&&Dd(e),pr(e,Pd())?new Proxy(e,vr):e)}function be(e){if(e instanceof IDBRequest)return Id(e);if(Vt.has(e))return Vt.get(e);const t=Ad(e);return t!==e&&(Vt.set(e,t),Dt.set(t,e)),t}const _r=e=>Dt.get(e);function Md(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=be(a);return n&&a.addEventListener("upgradeneeded",l=>{n(be(a.result),l.oldVersion,l.newVersion,be(a.transaction),l)}),r&&a.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),s.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),s}const jd=["get","getKey","getAll","getAllKeys","count"],Fd=["put","add","delete","clear"],Kt=new Map;function Dn(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Kt.get(t))return Kt.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=Fd.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||jd.includes(r)))return;const i=async function(a,...s){const l=this.transaction(a,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(s.shift())),(await Promise.all([u[r](...s),o&&l.done]))[0]};return Kt.set(t,i),i}mi(e=>({...e,get:(t,r,n)=>Dn(t,r)||e.get(t,r,n),has:(t,r)=>!!Dn(t,r)||e.has(t,r)}));const Ld=["continue","continuePrimaryKey","advance"],Nn={},mr=new WeakMap,bi=new WeakMap,Rd={get(e,t){if(!Ld.includes(t))return e[t];let r=Nn[t];return r||(r=Nn[t]=function(...n){mr.set(this,bi.get(this)[t](...n))}),r}};async function*zd(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,Rd);for(bi.set(r,t),Dt.set(r,_r(t));t;)yield r,t=await(mr.get(r)||t.continue()),mr.delete(r)}function An(e,t){return t===Symbol.asyncIterator&&pr(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&pr(e,[IDBIndex,IDBObjectStore])}mi(e=>({...e,get(t,r,n){return An(t,r)?zd:e.get(t,r,n)},has(t,r){return An(t,r)||e.has(t,r)}}));const Bd=e=>Tt(e).with(_e.number.lte(1e3),()=>`${Math.round(e)}KB`).with(_e.number.lt(1e3*10),()=>`${(e/1e3).toFixed(1)}MB`).otherwise(()=>`${Math.round(e/1e3)}MB`),Ud=e=>{const t=e.find(r=>r.isHead);if(!t)throw new Error("No head node found");return t},Hd=e=>Object.entries(e).reduce((r,[n,o])=>(r[n]=o.value,r),{}),Wd=e=>t=>t?t.type===e:!1;class Vd extends Error{constructor(){super("Aborted")}}function Kd(e,t=300){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}const qd=e=>typeof e=="string",Gd=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Mn=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],isFinished:!1,sequence:0,flowSessionId:Gd()}),Yd=e=>Tt(e).with({nativeEvent:{submitter:_e.select(_e.union(_e.instanceOf(HTMLButtonElement),_e.instanceOf(HTMLInputElement)))}},t=>t).otherwise(()=>{throw new Error("invalid submitter")}),jn=typeof window>"u"?void 0:Md("inploi-chatbot",3,{upgrade(e){try{e.deleteObjectStore("state")}catch{}e.createObjectStore("state")}}),Ue={getStateData:async(e,t)=>{var n;const r=Fn({...e,flowKeys:t});return(n=await jn)==null?void 0:n.get("state",r)},setStateData:Kd(async e=>{var r;const t=Fn(e);return(r=await jn)==null?void 0:r.put("state",e.data,t)},1e3)},ft=(e,t,r,n=0)=>{if(!t.nextId)return r(t.id,{stepsMade:n,remainingSteps:0}),{stepsMade:n,remainingSteps:0};const o=e.find(u=>u.id===t.nextId);if(o===void 0)return{stepsMade:n,remainingSteps:0};const i=t.type==="if-block"?t.branchId:void 0,a=e.find(u=>u.id===i),s=t.type.includes("question")?1:0;if(a){const u=s+Math.max(ft(e,o,r,n+s).remainingSteps,ft(e,a,r,n+s).remainingSteps);return r(t.id,{stepsMade:n,remainingSteps:u}),{stepsMade:n,remainingSteps:u}}const l=s+ft(e,o,r,n+s).remainingSteps;return r(t.id,{stepsMade:n,remainingSteps:l}),{stepsMade:n,remainingSteps:l}},Xd=e=>{const t={},r=e.find(n=>n.isHead);return r&&ft(e,r,(n,o)=>{t[n]=o}),t},Fn=e=>[...e.flowKeys,e.id,e.version].join("/"),ae=Ne({state:"idle"}),Be=e=>{const{state:t,flow:r}=ae.value;if(t!=="loaded")return;jr(r,"No flow to update");const n=e(r.data);r.data=n,ae.value={state:t,flow:r},Ue.setStateData(r)},A={current$:ae,viewState$:Ne("closed"),inputHeight$:Ne(53),startFlow:async({flow:e,context:t={},flowKeys:r,title:n,analytics:o,job:i})=>{const s={data:await Ue.getStateData(e,r)??Mn(),startedAt:new Date,nodeIdToProgress:Xd(e.nodes),flowKeys:r,id:e.id,version:e.version,nodes:e.nodes,build:e.build,context:t,title:n,analytics:o,job:i};ae.value={state:"loaded",flow:s},Ue.setStateData(s)},cancelCurrentFlow:()=>{ae.value={state:"idle"},A.viewState$.value="closed"},markAsFinished:()=>Be(e=>({...e,isFinished:!0})),setCurrentNodeId:e=>Be(t=>(t.nodeHistory.push(e),t)),restart:()=>{const{state:e,flow:t}=ae.value;if(e!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const r=Mn();ae.value={state:e,flow:{...t,data:r,startedAt:new Date}},Ue.setStateData(t)},addMessage:(e,t)=>{const r={...e,groupId:t};return Be(n=>(n.messages.push(r),n))},removeMessagesSentByNodeIds:e=>{const{state:t,flow:r}=ae.value;jr(t==="loaded","Application not loaded");const n=r.data.messages.filter(o=>!o.groupId||!e.includes(o.groupId));r.data.messages=n,Ue.setStateData(r)},setSubmission:(e,t)=>Be(r=>(t===null?delete r.submissions[e]:r.submissions[e]=t,r)),setInput:e=>Be(t=>({...t,currentInput:e??null}))};var Zd=0;function b(e,t,r,n,o,i){var a,s,l={};for(s in t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Zd,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return g.vnode&&g.vnode(u),u}const Jd=({message:e})=>b("div",{class:"flex flex-grow flex-col items-center justify-center",children:[b("svg",{class:"text-error-9 h-16 w-16",fill:"none",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 96 96",children:[b("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",fill:"#fff"}),b("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"}),b("line",{x1:"36.7",y1:"39.3",x2:"44.8",y2:"47.4"}),b("line",{x1:"52.2",y1:"39.3",x2:"60.3",y2:"47.4"}),b("line",{x1:"44.7",y1:"39.2",x2:"36.6",y2:"47.3"}),b("line",{x1:"60.2",y1:"39.2",x2:"52.1",y2:"47.3"}),b("path",{d:"M38 56h19"})]}),b("div",{class:"flex flex-col gap-2 text-center",children:[b("p",{class:"text-error-11 font-bold",children:"Something unexpected happened"}),e&&b("p",{class:"text-neutral-9 text-sm",children:e})]})]}),gi=e=>b("svg",{role:"img",viewBox:"0 0 24 24",...e,children:[b("title",{children:"Loading"}),b("style",{children:"#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"}),b("g",{id:"s1",transform:"translate(12,0)",children:b("g",{id:"s2",transform:"scale(0,0)",children:b("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),b("g",{id:"s3",transform:"translate(12,12)",children:b("g",{id:"s4",transform:"scale(1,1)",children:b("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),b("g",{id:"s5",transform:"translate(12,0)",children:b("g",{id:"s6",transform:"scale(0,0)",children:b("path",{d:"M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",transform:"translate(-6.5,-6.5)","clip-rule":"evenodd",fill:"currentColor","fill-rule":"evenodd"})})}),b("g",{id:"s7",transform:"translate(12,0)",children:b("g",{id:"s8",transform:"scale(0,0)",children:b("path",{d:"M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",transform:"translate(-6.5,-9.25)",fill:"currentColor"})})})]}),Ln=()=>b("div",{class:"flex flex-grow flex-col items-center justify-center",children:b(gi,{class:"text-neutral-6 h-8 w-8"})}),Qd=e=>{const r=e/100,n=1.3;return e<0?"0%":e>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-r,n))*100)}%`},it=({class:e,children:t,...r})=>b("button",{class:Ar("touch-hitbox text-interactive-copy hover:text-interactive-copy-hover active:text-interactive-copy-active hover:bg-interactive-bg-hover active:bg-interactive-bg-active fr relative rounded-full p-2 transition-all",e),...r,children:b("svg",{class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",xmlns:"http://www.w3.org/2000/svg",children:t})}),ef=()=>{if(A.current$.value.state!=="loaded")return null;const e=A.current$.value.flow.nodeIdToProgress,t=A.current$.value.flow.data.nodeHistory.at(-1);if(t===void 0)return null;const r=e[t];if(r===void 0)return null;const n=100*(r.stepsMade/(r.remainingSteps+r.stepsMade));return b("div",{class:"bg-accent-3",children:b("div",{style:{width:Qd(n)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},tf=({children:e})=>{const t=A.viewState$;return b(M,{children:b("header",{class:"ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",children:[b("div",{class:"flex h-[var(--header-height)] gap-2",children:[b("p",{id:"chatbot-status-bar",class:"sr-only",children:e}),b("button",{tabIndex:-1,onClick:()=>{t.value==="minimised"?t.value="maximised":t.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1",onTouchStart:qt,children:b("p",{"aria-hidden":!0,class:"text-neutral-12 truncate text-sm font-bold tracking-tight",children:e})}),b("div",{class:"flex flex-shrink-0 items-center gap-3 p-1.5",children:t.value==="minimised"?b(M,{children:[b(it,{class:"view-switch",onTouchStart:qt,"aria-label":"Maximise job application",onClick:()=>t.value="maximised",children:b("path",{d:"M12.5 9.5L8 5L3.5 9.5"})},"minmax"),b(it,{"aria-label":"Close application",onClick:A.cancelCurrentFlow,children:b("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"close")]}):b(M,{children:[A.current$.value.state==="loaded"&&b(it,{"aria-label":"Restart",onClick:()=>{A.restart()},children:[b("path",{d:"M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"}),b("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),b(it,{class:"view-switch",onTouchStart:qt,"aria-label":"Minimise application",onClick:()=>t.value="minimised",children:b("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})})]}),b(ef,{})]})})};function qt(){}const rf=Or(()=>Promise.resolve().then(()=>require("./chatbot-body-7ee64297.cjs")).then(e=>e.ChatbotBody)),nf=si("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out",{variants:{view:{closed:"hidden",minimised:"h-[var(--header-height)] animate-slide-in-bottom",maximised:"h-[var(--content-height)] animate-maximise"}}}),of=({logger:e,apiClient:t,analytics:r})=>{const{state:n,flow:o,error:i}=A.current$.value,a=A.viewState$.value,s=n!=="idle"&&a==="maximised",l=O(null);return b(dd,{open:s,modal:s,children:[b(fd,{class:"bg-overlay animate-fade-in pointer-events-none fixed inset-0 isolate"}),b(pd,{forceMount:!0,asChild:!0,children:b("div",{ref:l,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:nf({view:a}),children:b("div",{class:"outline-neutral-3 bg-neutral-1 relative flex h-full flex-col overflow-hidden rounded-3xl outline outline-1",children:[b(tf,{children:o==null?void 0:o.title}),Tt({state:n,view:a}).with({view:"closed"},()=>null).with({view:"minimised"},()=>null).with({state:"idle"},()=>null).with({state:"loading"},()=>b(Ln,{},"loading")).with({state:"loaded"},()=>b(Oe,{fallback:b(Ln,{},"loading"),children:b(rf,{analytics:r,apiClient:t,logger:e})})).with({state:"error"},()=>b(Jd,{message:i})).exhaustive()]})})})]})},wi=se({id:uo(me(),String),version:er(),build:er(),nodes:vo(al()),context_schema:Er(sl(mo(me(),se({required:_o(),type:dl([en("string"),en("number")])}))))}),af=se({flow:wi}),sf=se({company:se({name:me()}),flow:wi,job:se({id:uo(me(),String),title:me()})}),cf=`#isdk{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:99999;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height:calc(100vh - 64px);--content-height:calc(100svh - 64px)}@media screen and (min-width: 768px){#isdk{--content-height: min(640px, calc(100vh - 16px));--content-height: min(640px, calc(100svh - 16px)) }}#isdk{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}#isdk em{font-style:italic}#isdk strong{font-weight:700}#isdk *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}#isdk :before,#isdk :after{box-sizing:border-box}#isdk :is(ul,ol){list-style:none;padding:0;margin:0}#isdk :is(p){margin:0;padding:0}#isdk :is(li){margin:0;padding:0;list-style:none}#isdk :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}#isdk *,#isdk :before,#isdk :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: }#isdk ::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: }#isdk .container{width:100%}@media (min-width: 640px){#isdk .container{max-width:640px}}@media (min-width: 768px){#isdk .container{max-width:768px}}@media (min-width: 1024px){#isdk .container{max-width:1024px}}@media (min-width: 1280px){#isdk .container{max-width:1280px}}@media (min-width: 1536px){#isdk .container{max-width:1536px}}#isdk .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}#isdk .pointer-events-none{pointer-events:none}#isdk .visible{visibility:visible}#isdk .collapse{visibility:collapse}#isdk .static{position:static}#isdk .fixed{position:fixed}#isdk .absolute{position:absolute}#isdk .relative{position:relative}#isdk .sticky{position:sticky}#isdk .inset-0{top:0;right:0;bottom:0;left:0}#isdk .bottom-0{bottom:0}#isdk .bottom-2{bottom:.5rem}#isdk .bottom-2\\.5{bottom:.625rem}#isdk .left-0{left:0}#isdk .left-2{left:.5rem}#isdk .right-0{right:0}#isdk .right-2{right:.5rem}#isdk .top-0{top:0}#isdk .isolate{isolation:isolate}#isdk .z-20{z-index:20}#isdk .m-0{margin:0}#isdk .mx-auto{margin-left:auto;margin-right:auto}#isdk .mb-1{margin-bottom:.25rem}#isdk .ml-auto{margin-left:auto}#isdk .mt-auto{margin-top:auto}#isdk .block{display:block}#isdk .inline-block{display:inline-block}#isdk .inline{display:inline}#isdk .flex{display:flex}#isdk .inline-flex{display:inline-flex}#isdk .table{display:table}#isdk .table-row{display:table-row}#isdk .flow-root{display:flow-root}#isdk .grid{display:grid}#isdk .inline-grid{display:inline-grid}#isdk .contents{display:contents}#isdk .list-item{display:list-item}#isdk .\\!hidden{display:none!important}#isdk .hidden{display:none}#isdk .h-1{height:.25rem}#isdk .h-1\\.5{height:.375rem}#isdk .h-16{height:4rem}#isdk .h-4{height:1rem}#isdk .h-48{height:12rem}#isdk .h-8{height:2rem}#isdk .h-\\[3px\\]{height:3px}#isdk .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}#isdk .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}#isdk .h-full{height:100%}#isdk .max-h-full{max-height:100%}#isdk .min-h-\\[36px\\]{min-height:36px}#isdk .w-1{width:.25rem}#isdk .w-1\\.5{width:.375rem}#isdk .w-16{width:4rem}#isdk .w-24{width:6rem}#isdk .w-4{width:1rem}#isdk .w-8{width:2rem}#isdk .w-full{width:100%}#isdk .min-w-0{min-width:0px}#isdk .min-w-\\[2rem\\]{min-width:2rem}#isdk .max-w-\\[450px\\]{max-width:450px}#isdk .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}#isdk .max-w-full{max-width:100%}#isdk .flex-1{flex:1 1 0%}#isdk .flex-none{flex:none}#isdk .flex-shrink{flex-shrink:1}#isdk .flex-shrink-0{flex-shrink:0}#isdk .shrink{flex-shrink:1}#isdk .flex-grow,#isdk .grow{flex-grow:1}#isdk .border-collapse{border-collapse:collapse}#isdk .translate-y-full{--tw-translate-y: 100%;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))}#isdk .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{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}#isdk .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}#isdk .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}#isdk .animate-fade-in{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}#isdk .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(.82)}to{transform:translateY(0)}}#isdk .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}#isdk .cursor-pointer{cursor:pointer}#isdk .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}#isdk .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}#isdk .resize{resize:both}#isdk .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#isdk .flex-col{flex-direction:column}#isdk .flex-wrap{flex-wrap:wrap}#isdk .items-center{align-items:center}#isdk .items-stretch{align-items:stretch}#isdk .justify-end{justify-content:flex-end}#isdk .justify-center{justify-content:center}#isdk .gap-0{gap:0px}#isdk .gap-1{gap:.25rem}#isdk .gap-1\\.5{gap:.375rem}#isdk .gap-2{gap:.5rem}#isdk .gap-3{gap:.75rem}#isdk .gap-4{gap:1rem}#isdk .gap-px{gap:1px}#isdk .overflow-hidden{overflow:hidden}#isdk .overflow-y-auto{overflow-y:auto}#isdk .overflow-y-scroll{overflow-y:scroll}#isdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#isdk .text-ellipsis{text-overflow:ellipsis}#isdk .whitespace-nowrap{white-space:nowrap}#isdk .break-words{overflow-wrap:break-word}#isdk .rounded{border-radius:.25rem}#isdk .rounded-2xl{border-radius:1rem}#isdk .rounded-3xl{border-radius:1.5rem}#isdk .rounded-\\[18px\\]{border-radius:18px}#isdk .rounded-full{border-radius:9999px}#isdk .rounded-lg{border-radius:.5rem}#isdk .rounded-md{border-radius:.375rem}#isdk .rounded-xl{border-radius:.75rem}#isdk .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}#isdk .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}#isdk .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}#isdk .rounded-bl-md{border-bottom-left-radius:.375rem}#isdk .rounded-br-md{border-bottom-right-radius:.375rem}#isdk .border{border-width:1px}#isdk .border-b{border-bottom-width:1px}#isdk .border-t{border-top-width:1px}#isdk .border-solid{border-style:solid}#isdk .border-dashed{border-style:dashed}#isdk .border-accent-9{border-color:var(--i-color-a-9)}#isdk .border-divider{border-color:var(--i-color-divider)}#isdk .border-neutral-5{border-color:var(--i-color-n-5)}#isdk .border-neutral-8{border-color:var(--i-color-n-8)}#isdk .border-transparent{border-color:transparent}#isdk .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}#isdk .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}#isdk .border-b-transparent{border-bottom-color:transparent}#isdk .bg-accent-1{background-color:var(--i-color-a-1)}#isdk .bg-accent-3{background-color:var(--i-color-a-3)}#isdk .bg-accent-9{background-color:var(--i-color-a-9)}#isdk .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}#isdk .bg-lowest{background-color:var(--i-color-lowest)}#isdk .bg-neutral-1{background-color:var(--i-color-n-1)}#isdk .bg-neutral-2{background-color:var(--i-color-n-2)}#isdk .bg-neutral-3{background-color:var(--i-color-n-3)}#isdk .bg-overlay{background-color:var(--i-overlay-bg)}#isdk .bg-statusbar{background-color:var(--i-status-bar-bg)}#isdk .bg-transparent{background-color:transparent}#isdk .bg-none{background-image:none}#isdk .p-1{padding:.25rem}#isdk .p-1\\.5{padding:.375rem}#isdk .p-2{padding:.5rem}#isdk .p-2\\.5{padding:.625rem}#isdk .p-4{padding:1rem}#isdk .px-1{padding-left:.25rem;padding-right:.25rem}#isdk .px-2{padding-left:.5rem;padding-right:.5rem}#isdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#isdk .px-3{padding-left:.75rem;padding-right:.75rem}#isdk .px-4{padding-left:1rem;padding-right:1rem}#isdk .px-5{padding-left:1.25rem;padding-right:1.25rem}#isdk .py-0{padding-top:0;padding-bottom:0}#isdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}#isdk .py-1{padding-top:.25rem;padding-bottom:.25rem}#isdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#isdk .py-2{padding-top:.5rem;padding-bottom:.5rem}#isdk .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#isdk .py-3{padding-top:.75rem;padding-bottom:.75rem}#isdk .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}#isdk .pb-2{padding-bottom:.5rem}#isdk .pb-6{padding-bottom:1.5rem}#isdk .pl-1{padding-left:.25rem}#isdk .pl-1\\.5{padding-left:.375rem}#isdk .pl-2{padding-left:.5rem}#isdk .pl-3{padding-left:.75rem}#isdk .pl-4{padding-left:1rem}#isdk .pr-1{padding-right:.25rem}#isdk .pr-16{padding-right:4rem}#isdk .pr-2{padding-right:.5rem}#isdk .pr-2\\.5{padding-right:.625rem}#isdk .pr-3{padding-right:.75rem}#isdk .pr-4{padding-right:1rem}#isdk .pt-2{padding-top:.5rem}#isdk .pt-2\\.5{padding-top:.625rem}#isdk .pt-3{padding-top:.75rem}#isdk .pt-5{padding-top:1.25rem}#isdk .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}#isdk .text-center{text-align:center}#isdk .text-right{text-align:right}#isdk .text-justify{text-align:justify}#isdk .text-\\[10px\\]{font-size:10px}#isdk .text-\\[11px\\]{font-size:11px}#isdk .text-base{font-size:1rem;line-height:1.5rem}#isdk .text-sm{font-size:.875rem;line-height:1.25rem}#isdk .text-xs{font-size:.75rem;line-height:1rem}#isdk .font-bold{font-weight:700}#isdk .font-medium{font-weight:500}#isdk .uppercase{text-transform:uppercase}#isdk .lowercase{text-transform:lowercase}#isdk .capitalize{text-transform:capitalize}#isdk .italic{font-style:italic}#isdk .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#isdk .leading-3{line-height:.75rem}#isdk .leading-snug{line-height:1.375}#isdk .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}#isdk .tracking-tight{letter-spacing:-.025em}#isdk .tracking-wide{letter-spacing:.025em}#isdk .tracking-widest{letter-spacing:.1em}#isdk .text-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity))}#isdk .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}#isdk .text-accent-10{color:var(--i-color-a-10)}#isdk .text-accent-11{color:var(--i-color-a-11)}#isdk .text-accent-12{color:var(--i-color-a-12)}#isdk .text-accent-9{color:var(--i-color-a-9)}#isdk .text-error-11{color:var(--i-color-e-11)}#isdk .text-error-9{color:var(--i-color-e-9)}#isdk .text-interactive-copy{color:var(--i-interactive-copy)}#isdk .text-neutral-10{color:var(--i-color-n-10)}#isdk .text-neutral-11{color:var(--i-color-n-11)}#isdk .text-neutral-12{color:var(--i-color-n-12)}#isdk .text-neutral-6{color:var(--i-color-n-6)}#isdk .text-neutral-8{color:var(--i-color-n-8)}#isdk .text-neutral-9{color:var(--i-color-n-9)}#isdk .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}#isdk .underline{text-decoration-line:underline}#isdk .no-underline{text-decoration-line:none}#isdk .underline-offset-2{text-underline-offset:2px}#isdk .caret-accent-9{caret-color:var(--i-color-a-9)}#isdk .opacity-0{opacity:0}#isdk .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}#isdk .outline-none{outline:2px solid transparent;outline-offset:2px}#isdk .outline{outline-style:solid}#isdk .outline-1{outline-width:1px}#isdk .outline-2{outline-width:2px}#isdk .outline-accent-4{outline-color:var(--i-color-a-4)}#isdk .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}#isdk .outline-divider{outline-color:var(--i-color-divider)}#isdk .outline-neutral-3{outline-color:var(--i-color-n-3)}#isdk .outline-neutral-6{outline-color:var(--i-color-n-6)}#isdk .ring-0{--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(0px + 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)}#isdk .ring-1{--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)}#isdk .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#isdk .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}#isdk .ring-divider{--tw-ring-color: var(--i-color-divider)}#isdk .ring-lowest{--tw-ring-color: var(--i-color-lowest)}#isdk .ring-transparent{--tw-ring-color: transparent}#isdk .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}#isdk .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}#isdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));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)}#isdk .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#isdk .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)}#isdk .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#isdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#isdk .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}#isdk .duration-100{transition-duration:.1s}#isdk .duration-1000{transition-duration:1s}#isdk .duration-300{transition-duration:.3s}#isdk .duration-700{transition-duration:.7s}#isdk .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#isdk .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#isdk .will-change-\\[height\\]{will-change:height}#isdk .text-wrap-balance{text-wrap:balance}#isdk .fr{outline:none}#isdk .fr:focus{outline:none}#isdk .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--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)}#isdk .gutter-stable{scrollbar-gutter:stable}#isdk .hide-scrollbars::-webkit-scrollbar{display:none}#isdk .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}#isdk .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}#isdk .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}#isdk .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#isdk .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}#isdk .\\[text-wrap\\:pretty\\]{text-wrap:pretty}#isdk .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-transparent *::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent *::selection{background-color:transparent}#isdk .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}#isdk .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}#isdk .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}#isdk .selection\\:bg-transparent::-moz-selection{background-color:transparent}#isdk .selection\\:bg-transparent::selection{background-color:transparent}#isdk .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}#isdk .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}#isdk .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}#isdk .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}#isdk .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}#isdk .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}#isdk .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#isdk .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}#isdk .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}#isdk .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}#isdk .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}#isdk .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}#isdk .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}#isdk .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}#isdk .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}#isdk .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}#isdk .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}#isdk .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}#isdk .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}#isdk .hover\\:text-interactive-copy-hover:hover{color:var(--i-interactive-copy-hover)}#isdk .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}#isdk .hover\\:underline:hover{text-decoration-line:underline}#isdk .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}#isdk .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}#isdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#isdk .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}#isdk .focus-visible\\:outline-2:focus-visible{outline-width:2px}#isdk .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}#isdk .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}#isdk .focus-visible\\:ring-4: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(4px + 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)}#isdk .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}#isdk .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}#isdk .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}#isdk .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}#isdk .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}#isdk .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}#isdk .active\\:text-accent-10:active{color:var(--i-color-a-10)}#isdk .active\\:text-accent-11:active{color:var(--i-color-a-11)}#isdk .active\\:text-interactive-copy-active:active{color:var(--i-interactive-copy-active)}#isdk .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}#isdk .active\\:ring-2:active{--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)}#isdk .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}#isdk .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}#isdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#isdk .disabled\\:opacity-50:disabled{opacity:.5}#isdk .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}#isdk .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}#isdk .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-4{--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(4px + 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)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}#isdk .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}@media (pointer: coarse){#isdk .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}#isdk .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-11:has(+*>input:focus){color:var(--i-color-n-11)}#isdk .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;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))}
42
+ `,Rn="isdk",lf={not_in_local_storage:"Application not found in local storage",invalid_end_node:"Unexpected node type to finish flow",no_submissions:"Application ended without any fields submitted",invalid_state:"Invalid state"},uf=()=>({getOrCreateChatbotElement:()=>{const e=document.getElementById(Rn);if(e)return document.body.appendChild(e),e;const t=document.createElement("div");return document.body.appendChild(t),t.id=Rn,t}});var df=["1","2","3","4","5","6","7","8","9","10","11","12"],ff={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},pf=(e,t=1,r)=>n=>{const[o,i]=ff[r][n];return"oklch("+o+"% "+i*t+" "+e+")"},Gt=e=>{const t=pf(e.hue,e.chroma,e.mode);return Object.fromEntries(df.map(r=>[e.prefix+r,e.transform(t(r))]))},Yt=e=>e,hf=e=>{const t=Object.keys(e).flatMap(r=>{const n=e[r];return typeof n=="object"&&n!==null?Object.keys(n).map(o=>{const i=n[o];return[`${String(r)}.${o}`,i]}):[[r,n]]});return Object.fromEntries(t)},at=e=>!!e&&typeof e=="object"&&!Array.isArray(e),br=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(at(e)&&at(r))for(const n in r){const o=r[n];if(at(o)){e[n]||Object.assign(e,{[n]:{}});const i=e[n];at(i)&&br(i,o)}else Object.assign(e,{[n]:r[n]})}return br(e,...t)},vf=e=>{function t(r,n){const o=[e.prefix,n.toString().replace(/\./g,"-")].join("");return r==="declaration"?`--${o}`:`var(--${o})`}return t},_f=()=>({core:e=>({semantic:t=>({component:r=>({from:n=>{const{theme:o,getToken:i}=n,a=p=>i("reference",p.toString()),s=e({theme:o}),l=t({theme:o,core:a,raw:{core:s}}),u=r({theme:o,core:a,semantic:a,raw:{core:s,semantic:l}}),d=hf(br(s,l,u)),c=([p,v],h)=>{const f=[h,p].filter(Boolean).join(".");return typeof v=="object"?Object.entries(v).flatMap(_=>c(_,f)):[[n.getToken("declaration",f),v]]};return{values:d,declarations:Object.fromEntries(Object.entries(d).flatMap(p=>c(p))),ref:p=>i("reference",p.toString())}}})})})});const[Xt,Zt,zn]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],mf=_f().core(({theme:e})=>({color:{black:Xt,white:Zt,lowest:e.mode==="light"?Zt:Xt,highest:e.mode==="light"?Xt:Zt,...Gt({prefix:"a-",hue:e.hue,chroma:e.chroma,mode:e.mode,transform:Yt}),...Gt({prefix:"n-",hue:e.hue,chroma:.05,mode:e.mode,transform:Yt}),...Gt({prefix:"e-",hue:20,chroma:e.chroma,mode:e.mode,transform:Yt})},typography:{}})).semantic(({core:e,raw:t,theme:r})=>{const n=(o,i)=>t.core.color[o].replace(")",` / ${i})`);return{"font-family":{body:"inherit",headings:"inherit"},"font-style":{body:"normal",headings:"normal"},"font-weight-body":"normal","font-weight-headings":"normal","radius-app":"1.5rem","radius-interactive":"1.5rem",color:{divider:n("n-8",r.mode==="dark"?.4:.2)},"copy-body":e("color.n-12"),"copy-headings":e("color.n-12"),interactive:{copy:e("color.n-11"),"copy-hover":e("color.n-12"),"copy-active":e("color.n-12"),bg:zn,"bg-hover":n("n-10",.4),"bg-active":n("n-10",.5)}}}).component(({raw:e,theme:t,semantic:r,core:n})=>{const o=(i,a)=>e.core.color[i].replace(")",` / ${a})`);return{app:{bg:n(t.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:o("black",.4)},bubble:{"weak-bg":n(t.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":r("color.divider"),"strong-shadow":o("a-9",.05)},"status-bar":{bg:o("n-2",.8),"bg-button":zn,"bg-button-hover":o("n-10",.4),"bg-button-active":o("n-10",.5)},"submit-button":{"bg-active":n(t.mode==="dark"?"color.a-8":"color.a-11")}}}),bf=vf({prefix:"i-"}),gf=e=>{const t=mf.from({theme:e,getToken:bf}),r=Object.entries(t.declarations).map(([n,o])=>`${n}: ${o};`);return`#isdk {
43
+ ${r.concat(r).join(`
44
+ `)}
45
+ }`},Bn=({context:e,schema:t,logger:r})=>{if(t)for(const n in t){const o=t[n];if(!o)continue;const i=Yn(e,n,null);if(o.required&&i===null){const a=`Configuration error in context: ${n} is required`;throw r.error(a),new Error(a)}switch(o.type){case"number":if(typeof i!="number")throw new Error(`Configuration error in context: ${n} is not a number`);break;case"string":if(typeof i!="string")throw new Error(`Configuration error in context: ${n} is not a string`);break;default:o.type}}},wf=({_internal_domManager:e=uf(),theme:t})=>xi.createPlugin(({apiClient:r,logger:n,analytics:o})=>{let i=!1;const a=()=>{if(typeof window>"u")return;const s=[w("style",{id:"inploi-chatbot-styles"},cf),w("style",{id:"inploi-chatbot-theme"},gf(t))],l=e.getOrCreateChatbotElement();Ie(w(M,{},[s,w(of,{apiClient:r,logger:n,analytics:o})]),l),i=!0};return{prepare:async()=>{if(!(typeof window>"u"))try{if(i)return;a(),n.info("Chatbot plugin prepared")}catch(s){n.error("Error preparing chatbot plugin",s)}},fetchFlowByJobId:async(s,l)=>{const u=new URLSearchParams({id_type:(l==null?void 0:l.idType)==="inploi"?"internal":"external"});return r.fetch([`/flow/job/${s}`,u.toString()].filter(Boolean).join("?")).then(d=>{const c=tr(sf,d);return{flow:c.flow,title:`Applying for “${c.job.title}”`,flowKeys:[c.job.id,...(l==null?void 0:l.flowKeys)??[]],job:{id:c.job.id,id_type:"external"},...l}})},fetchFlowById:async(s,l)=>r.fetch(`/flow/id/${s}`).then(u=>{var c;const d=tr(af,u);return{flow:d.flow,title:"Chatbot",flowKeys:(l==null?void 0:l.flowKeys)??[],...l,analytics:{customProperties:{flow_id:d.flow.id,flow_version:d.flow.version,...(c=l==null?void 0:l.analytics)==null?void 0:c.customProperties}}}}),open:async s=>{if(!(typeof window>"u"))try{A.cancelCurrentFlow(),A.viewState$.value="maximised",i||a(),s instanceof Promise?(A.current$.value={state:"loading"},s.then(async l=>{Bn({context:l.context||{},schema:l.flow.context_schema,logger:n}),A.startFlow(l)}).catch(l=>{const u=l instanceof Error?l.message:"An error occurred";A.current$.value={state:"error",error:u}})):(Bn({context:s.context||{},schema:s.flow.context_schema,logger:n}),A.startFlow(s))}catch(l){n.error("Error starting flow",l)}},close:async()=>{typeof window>"u"||(A.cancelCurrentFlow(),n.info("Closed flow from an external source"))}}});exports.AbortedError=Vd;exports.Cn=Uo;exports.ERROR_MESSAGES=lf;exports.F=G;exports.LoadingIndicator=gi;exports.N=Tt;exports.ValiError=St;exports._=_e;exports._$1=O;exports.a=Ne;exports.array=vo;exports.boolean=_o;exports.chatbotPlugin=wf;exports.clsx=Ar;exports.custom=ml;exports.cva=si;exports.email=bl;exports.get=Yn;exports.getDefaultExportFromCjs=Un;exports.getFlowSubmissionsPayload=Hd;exports.getFormSubmitter=Yd;exports.getHeadOrThrow=Ud;exports.h=U;exports.invariant=jr;exports.isString=qd;exports.isSubmissionOfType=Wd;exports.k=M;exports.k$1=z;exports.kbToReadableSize=Bd;exports.maxLength=gl;exports.maxValue=wl;exports.minLength=yl;exports.minValue=kl;exports.number=er;exports.o=b;exports.object=se;exports.optional=Er;exports.p=D;exports.parse=tr;exports.parseAsync=fl;exports.partial=pl;exports.picklist=cl;exports.record=mo;exports.regex=xl;exports.safeParse=hl;exports.store=A;exports.string=me;exports.transform=vl;exports.url=$l;exports.y=ke;
@@ -1,7 +1,7 @@
1
1
  import { FlowNode } from '@inploi/core/flows';
2
2
  import { AnalyticsService, ApiClient, Logger } from '@inploi/sdk';
3
3
  import { ChatbotInput } from './components/chat-input/chat-input';
4
- import { ChatMessage, FlowSubmission, KeyToSubmissionMap, StartedFlow } from './chatbot.state';
4
+ import { ChatMessage, FlowSubmission, FlowSubmissionPhone, KeyToSubmissionMap, StartedFlow } from './chatbot.state';
5
5
  export declare const followNodes: ({ node, nodes, stopWhen, }: {
6
6
  node: FlowNode;
7
7
  nodes: FlowNode[];
@@ -47,6 +47,7 @@ export declare const createFlowInterpreter: ({ flow, analytics, logger, context,
47
47
  };
48
48
  abort: () => void;
49
49
  };
50
+ export declare const formatPhoneNumber: (phoneNumber: FlowSubmissionPhone['value']) => string;
50
51
  export type SubmissionValueData = {
51
52
  submissions: KeyToSubmissionMap | undefined;
52
53
  context: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { FlowNodeInput } from '@inploi/core/flows';
1
+ import type { FlowNodeInput } from '@inploi/core/flows';
2
2
  /** Modify only for integration tests */
3
3
  export declare const automatedTestFlow: [{
4
4
  readonly id: "1";
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-ab7e5077.cjs");
4
- require("@inploi/sdk");
5
- exports.chatbotPlugin = index.chatbotPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-d064cfc7.cjs");require("@inploi/sdk");exports.chatbotPlugin=e.chatbotPlugin;
@@ -1,5 +1,5 @@
1
- import { R } from "./index-12c8b547.js";
1
+ import { W as a } from "./index-13d4c822.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
- R as chatbotPlugin
4
+ a as chatbotPlugin
5
5
  };