@liip/liipgpt 1.0.0 → 2.1.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.
- package/button/liipgpt-button.iife.js +186 -174
- package/chat/liipgpt-chat.iife.js +222 -210
- package/config/index.cjs +36 -6
- package/config/index.d.ts +3024 -538
- package/config/index.js +36 -6
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BnCAkRMw.js +1 -0
- package/configurator/_app/immutable/chunks/C1CVfDcA.js +209 -0
- package/configurator/_app/immutable/chunks/C7ucs8kz.js +1 -0
- package/configurator/_app/immutable/chunks/CfQtRUjK.js +1 -0
- package/configurator/_app/immutable/chunks/Cgm2UlUC.js +1 -0
- package/configurator/_app/immutable/chunks/DNNNN9KC.js +3 -0
- package/configurator/_app/immutable/chunks/DuQTZe3l.js +1 -0
- package/configurator/_app/immutable/chunks/DvEdoyY3.js +1 -0
- package/configurator/_app/immutable/chunks/{BzVylwd7.js → DwsPRhVz.js} +1 -1
- package/configurator/_app/immutable/chunks/PdZf4Jij.js +1 -0
- package/configurator/_app/immutable/chunks/TMezqz9A.js +1 -0
- package/configurator/_app/immutable/chunks/dZVw-Q0d.js +228 -0
- package/configurator/_app/immutable/chunks/lMON6K8G.js +15 -0
- package/configurator/_app/immutable/entry/app.CdFUjOEM.js +2 -0
- package/configurator/_app/immutable/entry/start.CnM-eUb6.js +1 -0
- package/configurator/_app/immutable/nodes/{0.C1WA-Sd0.js → 0.-WsI4DHZ.js} +1 -1
- package/configurator/_app/immutable/nodes/1.CbwRpfkr.js +1 -0
- package/configurator/_app/immutable/nodes/2.DbP2H5Hu.js +30 -0
- package/configurator/_app/immutable/nodes/3.CrU_53hy.js +897 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +1329 -864
- package/index.d.ts +4770 -726
- package/index.js +1329 -864
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BiXZbQqO.js +0 -1
- package/configurator/_app/immutable/chunks/BmumJykv.js +0 -3
- package/configurator/_app/immutable/chunks/BynrE7QB.js +0 -4
- package/configurator/_app/immutable/chunks/CXbcLk5j.js +0 -1
- package/configurator/_app/immutable/chunks/CaDmIJkP.js +0 -28
- package/configurator/_app/immutable/chunks/D5wkZK_2.js +0 -1
- package/configurator/_app/immutable/chunks/DCtHJYgu.js +0 -1
- package/configurator/_app/immutable/chunks/DH3truD-.js +0 -364
- package/configurator/_app/immutable/chunks/DTGU2mqM.js +0 -1
- package/configurator/_app/immutable/chunks/DUt8zN7X.js +0 -1
- package/configurator/_app/immutable/chunks/DkXqbGhE.js +0 -58
- package/configurator/_app/immutable/chunks/Dq6jck_i.js +0 -1
- package/configurator/_app/immutable/chunks/DqybDqwy.js +0 -15
- package/configurator/_app/immutable/entry/app.0vDWmuRN.js +0 -2
- package/configurator/_app/immutable/entry/start.DR9kqzeI.js +0 -1
- package/configurator/_app/immutable/nodes/1.D_clQXr4.js +0 -1
- package/configurator/_app/immutable/nodes/2.DVQmbfVp.js +0 -1
- package/configurator/_app/immutable/nodes/3.CVRgUIw6.js +0 -897
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var LiipGPTButton=function(Fr){"use strict";const Ia="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ia);const Ma=1,ja=2,Na=16,La=1,Pa=2,Ba=4,Fa=8,Da=16,za=1,Za=2,nr="[",or="[!",Dr="]",Je={},W=Symbol(),Va="http://www.w3.org/1999/xhtml",Ua="http://www.w3.org/2000/svg",Wa="@attach",Mn=!1;var ar=Array.isArray,Ga=Array.prototype.indexOf,zr=Array.from,ir=Object.keys,sr=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,qa=Object.getOwnPropertyDescriptors,Ha=Object.prototype,Ya=Array.prototype,jn=Object.getPrototypeOf,Nn=Object.isExtensible;function jt(t){return typeof t=="function"}const lr=()=>{};function Ln(t){return typeof t?.then=="function"}function Pn(t){for(var e=0;e<t.length;e++)t[e]()}const re=2,Zr=4,cr=8,Vr=16,$e=32,Xe=64,ur=128,ne=256,dr=512,oe=1024,Ae=2048,et=4096,Oe=8192,fr=16384,Bn=32768,pt=65536,Fn=1<<17,Dn=1<<18,Ur=1<<19,Wr=1<<20,zn=1<<21,Fe=Symbol("$state"),Gr=Symbol("legacy props"),Qa=Symbol(""),Zn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ka=1,Ja=3,tt=8;function Vn(t){return t===this.v}function Xa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Un(t){return!Xa(t,this.v)}function ei(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ti(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ri(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ni(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function oi(){throw new Error("https://svelte.dev/e/hydration_failed")}function ai(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ii(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function si(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function li(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Nt=!1,ci=!1;function ui(){Nt=!0}let G=null;function vt(t){G=t}function mt(t,e=!1,r){G={p:G,c:null,e:null,s:t,x:null,l:null},Nt&&!e&&(G.l={s:null,u:null,r1:[],r2:nt(!1)})}function gt(t){var e=G,r=e.e;if(r!==null){e.e=null;for(var n of r)no(n)}return t!==void 0&&(e.x=t),G=e.p,t??{}}function Lt(){return!Nt||G!==null&&G.l===null}function bt(t){if(typeof t!="object"||t===null||Fe in t)return t;const e=jn(t);if(e!==Ha&&e!==Ya)return t;var r=new Map,n=ar(t),o=ae(0),a=it,i=s=>{if(it===a)return s();var c=P,l=it;te(null),vo(a);var u=s();return te(c),vo(l),u};return n&&r.set("length",ae(t.length)),new Proxy(t,{defineProperty(s,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ii();var u=r.get(c);return u===void 0?u=i(()=>{var f=ae(l.value);return r.set(c,f),f}):Q(u,l.value,!0),!0},deleteProperty(s,c){var l=r.get(c);if(l===void 0){if(c in s){const d=i(()=>ae(W));r.set(c,d),Hr(o)}}else{if(n&&typeof c=="string"){var u=r.get("length"),f=Number(c);Number.isInteger(f)&&f<u.v&&Q(u,f)}Q(l,W),Hr(o)}return!0},get(s,c,l){if(c===Fe)return t;var u=r.get(c),f=c in s;if(u===void 0&&(!f||Ee(s,c)?.writable)&&(u=i(()=>{var m=bt(f?s[c]:W),_=ae(m);return _}),r.set(c,u)),u!==void 0){var d=R(u);return d===W?void 0:d}return Reflect.get(s,c,l)},getOwnPropertyDescriptor(s,c){var l=Reflect.getOwnPropertyDescriptor(s,c);if(l&&"value"in l){var u=r.get(c);u&&(l.value=R(u))}else if(l===void 0){var f=r.get(c),d=f?.v;if(f!==void 0&&d!==W)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(s,c){if(c===Fe)return!0;var l=r.get(c),u=l!==void 0&&l.v!==W||Reflect.has(s,c);if(l!==void 0||j!==null&&(!u||Ee(s,c)?.writable)){l===void 0&&(l=i(()=>{var d=u?bt(s[c]):W,m=ae(d);return m}),r.set(c,l));var f=R(l);if(f===W)return!1}return u},set(s,c,l,u){var f=r.get(c),d=c in s;if(n&&c==="length")for(var m=l;m<f.v;m+=1){var _=r.get(m+"");_!==void 0?Q(_,W):m in s&&(_=i(()=>ae(W)),r.set(m+"",_))}if(f===void 0)(!d||Ee(s,c)?.writable)&&(f=i(()=>ae(void 0)),Q(f,bt(l)),r.set(c,f));else{d=f.v!==W;var b=i(()=>bt(l));Q(f,b)}var T=Reflect.getOwnPropertyDescriptor(s,c);if(T?.set&&T.set.call(u,l),!d){if(n&&typeof c=="string"){var p=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=p.v&&Q(p,k+1)}Hr(o)}return!0},ownKeys(s){R(o);var c=Reflect.ownKeys(s).filter(f=>{var d=r.get(f);return d===void 0||d.v!==W});for(var[l,u]of r)u.v!==W&&!(l in s)&&c.push(l);return c},setPrototypeOf(){si()}})}function Wn(t){try{if(t!==null&&typeof t=="object"&&Fe in t)return t[Fe]}catch{}return t}function di(t,e){return Object.is(Wn(t),Wn(e))}function Pt(t){var e=re|Ae,r=P!==null&&(P.f&re)!==0?P:null;return j===null||r!==null&&(r.f&ne)!==0?e|=ne:j.f|=Ur,{ctx:G,deps:null,effects:null,equals:Vn,f:e,fn:t,reactions:null,rv:0,v:W,wv:0,parent:r??j,ac:null}}function ve(t){const e=Pt(t);return po(e),e}function hr(t){const e=Pt(t);return e.equals=Un,e}function Gn(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)Y(e[r])}}function fi(t){for(var e=t.parent;e!==null;){if((e.f&re)===0)return e;e=e.parent}return null}function qr(t){var e,r=j;we(fi(t));try{Gn(t),e=bo(t)}finally{we(r)}return e}function qn(t){var e=qr(t);if(t.equals(e)||(t.v=e,t.wv=mo()),!Ze){var r=(Ve||(t.f&ne)!==0)&&t.deps!==null?et:oe;xe(t,r)}}const rt=new Map;function nt(t,e){var r={f:0,v:t,reactions:null,equals:Vn,rv:0,wv:0};return r}function ae(t,e){const r=nt(t);return po(r),r}function pr(t,e=!1,r=!0){const n=nt(t);return e||(n.equals=Un),Nt&&r&&G!==null&&G.l!==null&&(G.l.s??=[]).push(n),n}function Q(t,e,r=!1){P!==null&&(!ye||(P.f&Fn)!==0)&&Lt()&&(P.f&(re|Vr|Fn))!==0&&!Me?.includes(t)&&li();let n=r?bt(e):e;return Bt(t,n)}function Bt(t,e){if(!t.equals(e)){var r=t.v;Ze?rt.set(t,e):rt.set(t,r),t.v=e,(t.f&re)!==0&&((t.f&Ae)!==0&&qr(t),xe(t,(t.f&ne)===0?oe:et)),t.wv=mo(),Hn(t,Ae),Lt()&&j!==null&&(j.f&oe)!==0&&(j.f&($e|Xe))===0&&(ue===null?xi([t]):ue.push(t))}return e}function Hr(t){Q(t,t.v+1)}function Hn(t,e){var r=t.reactions;if(r!==null)for(var n=Lt(),o=r.length,a=0;a<o;a++){var i=r[a],s=i.f;(s&Ae)===0&&(!n&&i===j||(xe(i,e),(s&(oe|ne))!==0&&((s&re)!==0?Hn(i,et):kr(i))))}}function Ft(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function hi(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let E=!1;function q(t){E=t}let I;function H(t){if(t===null)throw Ft(),Je;return I=t}function ge(){return H(ce(I))}function be(t){if(E){if(ce(I)!==null)throw Ft(),Je;I=t}}function Yn(t=1){if(E){for(var e=t,r=I;e--;)r=ce(r);I=r}}function Dt(){for(var t=0,e=I;;){if(e.nodeType===tt){var r=e.data;if(r===Dr){if(t===0)return e;t-=1}else(r===nr||r===or)&&(t+=1)}var n=ce(e);e.remove(),e=n}}function Qn(t){if(!t||t.nodeType!==tt)throw Ft(),Je;return t.data}var Kn,Jn,Xn,eo;function Yr(){if(Kn===void 0){Kn=window,Jn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Xn=Ee(e,"firstChild").get,eo=Ee(e,"nextSibling").get,Nn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Nn(r)&&(r.__t=void 0)}}function kt(t=""){return document.createTextNode(t)}function le(t){return Xn.call(t)}function ce(t){return eo.call(t)}function ke(t,e){if(!E)return le(t);var r=le(I);return r===null&&(r=I.appendChild(kt())),H(r),r}function ee(t,e){if(!E){var r=le(t);return r instanceof Comment&&r.data===""?ce(r):r}return I}function De(t,e=1,r=!1){let n=E?I:t;for(var o;e--;)o=n,n=ce(n);if(!E)return n;if(r&&n?.nodeType!==Ja){var a=kt();return n===null?o?.after(a):n.before(a),H(a),a}return H(n),n}function to(t){t.textContent=""}function pi(t){j===null&&P===null&&ri(),P!==null&&(P.f&ne)!==0&&j===null&&ti(),Ze&&ei()}function vi(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ze(t,e,r,n=!0){var o=j,a={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:t|Ae,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Xr(a),a.f|=Bn}catch(c){throw Y(a),c}else e!==null&&kr(a);var i=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(Ur|ur))===0;if(!i&&n&&(o!==null&&vi(a,o),P!==null&&(P.f&re)!==0)){var s=P;(s.effects??=[]).push(a)}return a}function ro(t){const e=ze(cr,null,!1);return xe(e,oe),e.teardown=t,e}function mi(t){if(pi(),!P&&j&&(j.f&$e)!==0){var e=G;(e.e??=[]).push(t)}else return no(t)}function no(t){return ze(Zr|zn,t,!1)}function gi(t){const e=ze(Xe,t,!0);return()=>{Y(e)}}function bi(t){const e=ze(Xe,t,!0);return(r={})=>new Promise(n=>{r.outro?Ie(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function vr(t){return ze(Zr,t,!1)}function oo(t){return ze(cr,t,!0)}function zt(t,e=[],r=Pt){const n=e.map(r);return _e(()=>t(...n.map(R)))}function _e(t,e=0){var r=ze(cr|Vr|e,t,!0);return r}function K(t,e=!0){return ze(cr|$e,t,!0,e)}function ao(t){var e=t.teardown;if(e!==null){const r=Ze,n=P;ho(!0),te(null);try{e.call(null)}finally{ho(r),te(n)}}}function io(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){r.ac?.abort(Zn);var n=r.next;(r.f&Xe)!==0?r.parent=null:Y(r,e),r=n}}function ki(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&$e)===0&&Y(e),e=r}}function Y(t,e=!0){var r=!1;(e||(t.f&Dn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(so(t.nodes_start,t.nodes_end),r=!0),io(t,e&&!r),br(t,0),xe(t,fr);var n=t.transitions;if(n!==null)for(const a of n)a.stop();ao(t);var o=t.parent;o!==null&&o.first!==null&&lo(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function so(t,e){for(;t!==null;){var r=t===e?null:ce(t);t.remove(),t=r}}function lo(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Ie(t,e){var r=[];Qr(t,r,!0),co(r,()=>{Y(t),e&&e()})}function co(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function Qr(t,e,r){if((t.f&Oe)===0){if(t.f^=Oe,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var o=n.next,a=(n.f&pt)!==0||(n.f&$e)!==0;Qr(n,e,a?r:!1),n=o}}}function ot(t){uo(t,!0)}function uo(t,e){if((t.f&Oe)!==0){t.f^=Oe;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&pt)!==0||(r.f&$e)!==0;uo(r,o?e:!1),r=n}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}let Zt=[],Kr=[];function fo(){var t=Zt;Zt=[],Pn(t)}function _i(){var t=Kr;Kr=[],Pn(t)}function _t(t){Zt.length===0&&queueMicrotask(fo),Zt.push(t)}function yi(){Zt.length>0&&fo(),Kr.length>0&&_i()}function wi(t){var e=j;if((e.f&Bn)===0){if((e.f&ur)===0)throw t;e.fn(t)}else Jr(t,e)}function Jr(t,e){for(;e!==null;){if((e.f&ur)!==0)try{e.b.error(t);return}catch{}e=e.parent}throw t}let Vt=!1,Ut=null,at=!1,Ze=!1;function ho(t){Ze=t}let Wt=[],uc=[],P=null,ye=!1;function te(t){P=t}let j=null;function we(t){j=t}let Me=null;function po(t){P!==null&&P.f&Wr&&(Me===null?Me=[t]:Me.push(t))}let J=null,ie=0,ue=null;function xi(t){ue=t}let mr=1,Gt=0,it=Gt;function vo(t){it=t}let Ve=!1;function mo(){return++mr}function gr(t){var e=t.f;if((e&Ae)!==0)return!0;if((e&et)!==0){var r=t.deps,n=(e&ne)!==0;if(r!==null){var o,a,i=(e&dr)!==0,s=n&&j!==null&&!Ve,c=r.length;if(i||s){var l=t,u=l.parent;for(o=0;o<c;o++)a=r[o],(i||!a?.reactions?.includes(l))&&(a.reactions??=[]).push(l);i&&(l.f^=dr),s&&u!==null&&(u.f&ne)===0&&(l.f^=ne)}for(o=0;o<c;o++)if(a=r[o],gr(a)&&qn(a),a.wv>t.wv)return!0}(!n||j!==null&&!Ve)&&xe(t,oe)}return!1}function go(t,e,r=!0){var n=t.reactions;if(n!==null&&!Me?.includes(t))for(var o=0;o<n.length;o++){var a=n[o];(a.f&re)!==0?go(a,e,!1):e===a&&(r?xe(a,Ae):(a.f&oe)!==0&&xe(a,et),kr(a))}}function bo(t){var e=J,r=ie,n=ue,o=P,a=Ve,i=Me,s=G,c=ye,l=it,u=t.f;J=null,ie=0,ue=null,Ve=(u&ne)!==0&&(ye||!at||P===null),P=(u&($e|Xe))===0?t:null,Me=null,vt(t.ctx),ye=!1,it=++Gt,t.f|=Wr,t.ac!==null&&(t.ac.abort(Zn),t.ac=null);try{var f=(0,t.fn)(),d=t.deps;if(J!==null){var m;if(br(t,ie),d!==null&&ie>0)for(d.length=ie+J.length,m=0;m<J.length;m++)d[ie+m]=J[m];else t.deps=d=J;if(!Ve||(u&re)!==0&&t.reactions!==null)for(m=ie;m<d.length;m++)(d[m].reactions??=[]).push(t)}else d!==null&&ie<d.length&&(br(t,ie),d.length=ie);if(Lt()&&ue!==null&&!ye&&d!==null&&(t.f&(re|et|Ae))===0)for(m=0;m<ue.length;m++)go(ue[m],t);return o!==null&&o!==t&&(Gt++,ue!==null&&(n===null?n=ue:n.push(...ue))),f}catch(_){wi(_)}finally{J=e,ie=r,ue=n,P=o,Ve=a,Me=i,vt(s),ye=c,it=l,t.f^=Wr}}function Ci(t,e){let r=e.reactions;if(r!==null){var n=Ga.call(r,t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&(e.f&re)!==0&&(J===null||!J.includes(e))&&(xe(e,et),(e.f&(ne|dr))===0&&(e.f^=dr),Gn(e),br(e,0))}function br(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Ci(t,r[n])}function Xr(t){var e=t.f;if((e&fr)===0){xe(t,oe);var r=j,n=at;j=t,at=!0;try{(e&Vr)!==0?ki(t):io(t),ao(t);var o=bo(t);t.teardown=typeof o=="function"?o:null,t.wv=mr;var a;Mn&&ci&&(t.f&Ae)!==0&&t.deps}finally{at=n,j=r}}}function Ri(){try{ni()}catch(t){if(Ut!==null)Jr(t,Ut);else throw t}}function ko(){var t=at;try{var e=0;for(at=!0;Wt.length>0;){e++>1e3&&Ri();var r=Wt,n=r.length;Wt=[];for(var o=0;o<n;o++){var a=Ti(r[o]);Si(a)}rt.clear()}}finally{Vt=!1,at=t,Ut=null}}function Si(t){var e=t.length;if(e!==0){for(var r=0;r<e;r++){var n=t[r];if((n.f&(fr|Oe))===0&&gr(n)){var o=mr;if(Xr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?lo(n):n.fn=null),mr>o&&(n.f&zn)!==0)break}}for(;r<e;r+=1)kr(t[r])}}function kr(t){Vt||(Vt=!0,queueMicrotask(ko));for(var e=Ut=t;e.parent!==null;){e=e.parent;var r=e.f;if((r&(Xe|$e))!==0){if((r&oe)===0)return;e.f^=oe}}Wt.push(e)}function Ti(t){for(var e=[],r=t;r!==null;){var n=r.f,o=(n&($e|Xe))!==0,a=o&&(n&oe)!==0;if(!a&&(n&Oe)===0){(n&Zr)!==0?e.push(r):o?r.f^=oe:gr(r)&&Xr(r);var i=r.first;if(i!==null){r=i;continue}}var s=r.parent;for(r=r.next;r===null&&s!==null;)r=s.next,s=s.parent}return e}function Z(t){for(var e;;){if(yi(),Wt.length===0)return Vt=!1,Ut=null,e;Vt=!0,ko()}}function R(t){var e=t.f,r=(e&re)!==0;if(P!==null&&!ye){if(!Me?.includes(t)){var n=P.deps;t.rv<Gt&&(t.rv=Gt,J===null&&n!==null&&n[ie]===t?ie++:J===null?J=[t]:(!Ve||!J.includes(t))&&J.push(t))}}else if(r&&t.deps===null&&t.effects===null){var o=t,a=o.parent;a!==null&&(a.f&ne)===0&&(o.f^=ne)}if(r&&!Ze&&(o=t,gr(o)&&qn(o)),Ze){if(rt.has(t))return rt.get(t);if(r){o=t;var i=o.v;return((o.f&oe)!==0||_o(o))&&(i=qr(o)),rt.set(o,i),i}}return t.v}function _o(t){if(t.v===W)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(rt.has(e)||(e.f&re)!==0&&_o(e))return!0;return!1}function en(t){var e=ye;try{return ye=!0,t()}finally{ye=e}}const Ei=-7169;function xe(t,e){t.f=t.f&Ei|e}function $i(t,e){if(e){const r=document.body;t.autofocus=!0,_t(()=>{document.activeElement===r&&t.focus()})}}function Ai(t){var e=P,r=j;te(null),we(null);try{return t()}finally{te(e),we(r)}}const yo=new Set,tn=new Set;function wo(t,e,r,n={}){function o(a){if(n.capture||qt.call(e,a),!a.cancelBubble)return Ai(()=>r?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?_t(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function _r(t,e,r,n,o){var a={capture:n,passive:o},i=wo(t,e,r,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ro(()=>{e.removeEventListener(t,i,a)})}function rn(t){for(var e=0;e<t.length;e++)yo.add(t[e]);for(var r of tn)r(t)}function qt(t){var e=this,r=e.ownerDocument,n=t.type,o=t.composedPath?.()||[],a=o[0]||t.target,i=0,s=t.__root;if(s){var c=o.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var l=o.indexOf(e);if(l===-1)return;c<=l&&(i=c)}if(a=o[i]||t.target,a!==e){sr(t,"currentTarget",{configurable:!0,get(){return a||r}});var u=P,f=j;te(null),we(null);try{for(var d,m=[];a!==null;){var _=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+n];if(b!=null&&(!a.disabled||t.target===a))if(ar(b)){var[T,...p]=b;T.apply(a,[t,...p])}else b.call(a,t)}catch(k){d?m.push(k):d=k}if(t.cancelBubble||_===e||_===null)break;a=_}if(d){for(let k of m)queueMicrotask(()=>{throw k});throw d}}finally{t.__root=e,delete t.currentTarget,te(u),we(f)}}}let de;function Oi(){de=void 0}function Ii(t){let e=null,r=E;var n;if(E){for(e=I,de===void 0&&(de=le(document.head));de!==null&&(de.nodeType!==tt||de.data!==nr);)de=ce(de);de===null?q(!1):de=H(ce(de))}E||(n=document.head.appendChild(kt()));try{_e(()=>t(n),Dn)}finally{r&&(q(!0),de=I,H(e))}}function xo(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function je(t,e){var r=j;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function me(t,e){var r=(e&za)!==0,n=(e&Za)!==0,o,a=!t.startsWith("<!>");return()=>{if(E)return je(I,null),I;o===void 0&&(o=xo(a?t:"<!>"+t),r||(o=le(o)));var i=n||Jn?document.importNode(o,!0):o.cloneNode(!0);if(r){var s=le(i),c=i.lastChild;je(s,c)}else je(i,i);return i}}function Ce(){if(E)return je(I,null),I;var t=document.createDocumentFragment(),e=document.createComment(""),r=kt();return t.append(e,r),je(e,r),t}function D(t,e){if(E){j.nodes_end=I,ge();return}t!==null&&t.before(e)}function Mi(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ji=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ni(t){return ji.includes(t)}const Li={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Pi(t){return t=t.toLowerCase(),Li[t]??t}const Bi=["touchstart","touchmove"];function Fi(t){return Bi.includes(t)}const Di=["textarea","script","style","title"];function zi(t){return Di.includes(t)}function Zi(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Co(t,e){return Ro(t,e)}function Vi(t,e){Yr(),e.intro=e.intro??!1;const r=e.target,n=E,o=I;try{for(var a=le(r);a&&(a.nodeType!==tt||a.data!==nr);)a=ce(a);if(!a)throw Je;q(!0),H(a),ge();const i=Ro(t,{...e,anchor:a});if(I===null||I.nodeType!==tt||I.data!==Dr)throw Ft(),Je;return q(!1),i}catch(i){if(i===Je)return e.recover===!1&&oi(),Yr(),to(r),q(!1),Co(t,e);throw i}finally{q(n),H(o),Oi()}}const yt=new Map;function Ro(t,{target:e,anchor:r,props:n={},events:o,context:a,intro:i=!0}){Yr();var s=new Set,c=f=>{for(var d=0;d<f.length;d++){var m=f[d];if(!s.has(m)){s.add(m);var _=Fi(m);e.addEventListener(m,qt,{passive:_});var b=yt.get(m);b===void 0?(document.addEventListener(m,qt,{passive:_}),yt.set(m,1)):yt.set(m,b+1)}}};c(zr(yo)),tn.add(c);var l=void 0,u=bi(()=>{var f=r??e.appendChild(kt());return K(()=>{if(a){mt({});var d=G;d.c=a}o&&(n.$$events=o),E&&je(f,null),l=t(f,n)||{},E&&(j.nodes_end=I),a&>()}),()=>{for(var d of s){e.removeEventListener(d,qt);var m=yt.get(d);--m===0?(document.removeEventListener(d,qt),yt.delete(d)):yt.set(d,m)}tn.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return nn.set(l,u),l}let nn=new WeakMap;function Ui(t,e){const r=nn.get(t);return r?(nn.delete(t),r(e)):Promise.resolve()}function on(t,e,...r){var n=t,o=lr,a;_e(()=>{o!==(o=e())&&(a&&(Y(a),a=null),a=K(()=>o(n,...r)))},pt),E&&(n=I)}const an=0,yr=1,sn=2;function So(t,e,r,n,o){E&&ge();var a=t,i=Lt(),s=G,c=W,l,u,f,d=i?nt(void 0):pr(void 0,!1,!1),m=i?nt(void 0):pr(void 0,!1,!1),_=!1;function b(p,k){_=!0,k&&(we(T),te(T),vt(s));try{p===an&&r&&(l?ot(l):l=K(()=>r(a))),p===yr&&n&&(u?ot(u):u=K(()=>n(a,d))),p!==an&&l&&Ie(l,()=>l=null),p!==yr&&u&&Ie(u,()=>u=null),p!==sn&&f&&Ie(f,()=>f=null)}finally{k&&(vt(null),te(null),we(null),Z())}}var T=_e(()=>{if(c===(c=e()))return;let p=E&&Ln(c)===(a.data===or);if(p&&(a=Dt(),H(a),q(!1),p=!0),Ln(c)){var k=c;_=!1,k.then(v=>{k===c&&(Bt(d,v),b(yr,!0))},v=>{if(k===c)throw Bt(m,v),b(sn,!0),m.v}),E?r&&(l=K(()=>r(a))):_t(()=>{_||b(an,!0)})}else Bt(d,c),b(yr,!1);return p&&q(!0),()=>c=W});E&&(a=I)}function Ne(t,e,[r,n]=[0,0]){E&&r===0&&ge();var o=t,a=null,i=null,s=W,c=r>0?pt:0,l=!1;const u=(d,m=!0)=>{l=!0,f(m,d)},f=(d,m)=>{if(s===(s=d))return;let _=!1;if(E&&n!==-1){if(r===0){const T=Qn(o);T===nr?n=0:T===or?n=1/0:(n=parseInt(T.substring(1)),n!==n&&(n=s?1/0:-1))}const b=n>r;!!s===b&&(o=Dt(),H(o),q(!1),_=!0,n=-1)}s?(a?ot(a):m&&(a=K(()=>m(o))),i&&Ie(i,()=>{i=null})):(i?ot(i):m&&(i=K(()=>m(o,[r+1,n]))),a&&Ie(a,()=>{a=null})),_&&q(!0)};_e(()=>{l=!1,e(u),l||f(null,null)},c),E&&(o=I)}function Wi(t,e){return e}function Gi(t,e,r,n){for(var o=[],a=e.length,i=0;i<a;i++)Qr(e[i].e,o,!0);var s=a>0&&o.length===0&&r!==null;if(s){var c=r.parentNode;to(c),c.append(r),n.clear(),Ue(t,e[0].prev,e[a-1].next)}co(o,()=>{for(var l=0;l<a;l++){var u=e[l];s||(n.delete(u.k),Ue(t,u.prev,u.next)),Y(u.e,!s)}})}function qi(t,e,r,n,o,a=null){var i=t,s={flags:e,items:new Map,first:null};E&&ge();var c=null,l=!1,u=hr(()=>{var f=r();return ar(f)?f:f==null?[]:zr(f)});_e(()=>{var f=R(u),d=f.length;if(l&&d===0)return;l=d===0;let m=!1;if(E){var _=Qn(i)===or;_!==(d===0)&&(i=Dt(),H(i),q(!1),m=!0)}if(E){for(var b=null,T,p=0;p<d;p++){if(I.nodeType===tt&&I.data===Dr){i=I,m=!0,q(!1);break}var k=f[p],v=n(k,p);T=To(I,s,b,null,k,v,p,o,e,r),s.items.set(v,T),b=T}d>0&&H(Dt())}E||Hi(f,s,i,o,e,n,r),a!==null&&(d===0?c?ot(c):c=K(()=>a(i)):c!==null&&Ie(c,()=>{c=null})),m&&q(!0),R(u)}),E&&(i=I)}function Hi(t,e,r,n,o,a,i){var s=t.length,c=e.items,l=e.first,u=l,f,d=null,m=[],_=[],b,T,p,k;for(k=0;k<s;k+=1){if(b=t[k],T=a(b,k),p=c.get(T),p===void 0){var v=u?u.e.nodes_start:r;d=To(v,e,d,d===null?e.first:d.next,b,T,k,n,o,i),c.set(T,d),m=[],_=[],u=d.next;continue}if(Yi(p,b,k),(p.e.f&Oe)!==0&&ot(p.e),p!==u){if(f!==void 0&&f.has(p)){if(m.length<_.length){var x=_[0],S;d=x.prev;var F=m[0],B=m[m.length-1];for(S=0;S<m.length;S+=1)Eo(m[S],x,r);for(S=0;S<_.length;S+=1)f.delete(_[S]);Ue(e,F.prev,B.next),Ue(e,d,F),Ue(e,B,x),u=x,d=B,k-=1,m=[],_=[]}else f.delete(p),Eo(p,u,r),Ue(e,p.prev,p.next),Ue(e,p,d===null?e.first:d.next),Ue(e,d,p),d=p;continue}for(m=[],_=[];u!==null&&u.k!==T;)(u.e.f&Oe)===0&&(f??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue;p=u}m.push(p),d=p,u=p.next}if(u!==null||f!==void 0){for(var z=f===void 0?[]:zr(f);u!==null;)(u.e.f&Oe)===0&&z.push(u),u=u.next;var se=z.length;if(se>0){var Be=null;Gi(e,z,Be,c)}}j.first=e.first&&e.first.e,j.last=d&&d.e}function Yi(t,e,r,n){Bt(t.v,e),t.i=r}function To(t,e,r,n,o,a,i,s,c,l){var u=(c&Ma)!==0,f=(c&Na)===0,d=u?f?pr(o,!1,!1):nt(o):o,m=(c&ja)===0?i:nt(i),_={i:m,v:d,k:a,a:null,e:null,prev:r,next:n};try{return _.e=K(()=>s(t,d,m,l),E),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?e.first=_:(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function Eo(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,a=t.e.nodes_start;a!==n;){var i=ce(a);o.before(a),a=i}}function Ue(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function ln(t,e,r=!1,n=!1,o=!1){var a=t,i="";zt(()=>{var s=j;if(i===(i=e()??"")){E&&ge();return}if(s.nodes_start!==null&&(so(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),i!==""){if(E){I.data;for(var c=ge(),l=c;c!==null&&(c.nodeType!==tt||c.data!=="");)l=c,c=ce(c);if(c===null)throw Ft(),Je;je(I,l),a=H(c);return}var u=i+"";r?u=`<svg>${u}</svg>`:n&&(u=`<math>${u}</math>`);var f=xo(u);if((r||n)&&(f=le(f)),je(le(f),f.lastChild),r||n)for(;le(f);)a.before(le(f));else a.before(f)}})}function Qi(t,e,r,n,o,a){let i=E;E&&ge();var s,c,l=null;E&&I.nodeType===Ka&&(l=I,ge());var u=E?I:t,f;_e(()=>{const d=e()||null;var m=d==="svg"?Ua:null;d!==s&&(f&&(d===null?Ie(f,()=>{f=null,c=null}):d===c?ot(f):Y(f)),d&&d!==c&&(f=K(()=>{if(l=E?l:m?document.createElementNS(m,d):document.createElement(d),je(l,l),n){E&&zi(d)&&l.append(document.createComment(""));var _=E?le(l):l.appendChild(kt());E&&(_===null?q(!1):H(_)),n(l,_)}j.nodes_end=l,u.before(l)})),s=d,s&&(c=s))},pt),i&&(q(!0),H(u))}function Ki(t,e){_t(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Ji(t,e,r){vr(()=>{var n=en(()=>e(t,r?.())||{});if(n?.destroy)return()=>n.destroy()})}function Xi(t,e){var r=void 0,n;_e(()=>{r!==(r=e())&&(n&&(Y(n),n=null),r&&(n=K(()=>{vr(()=>r(t))})))})}function $o(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=$o(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function es(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=$o(t))&&(n&&(n+=" "),n+=e);return n}function cn(t){return typeof t=="object"?es(t):t??""}const Ao=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function ts(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var o in r)if(r[o])n=n?n+" "+o:o;else if(n.length)for(var a=o.length,i=0;(i=n.indexOf(o,i))>=0;){var s=i+a;(i===0||Ao.includes(n[i-1]))&&(s===n.length||Ao.includes(n[s]))?n=(i===0?"":n.substring(0,i))+n.substring(s+1):i=s}}return n===""?null:n}function Oo(t,e=!1){var r=e?" !important;":";",n="";for(var o in t){var a=t[o];a!=null&&a!==""&&(n+=" "+o+": "+a+r)}return n}function un(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rs(t,e){if(e){var r="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,i=0,s=!1,c=[];n&&c.push(...Object.keys(n).map(un)),o&&c.push(...Object.keys(o).map(un));var l=0,u=-1;const b=t.length;for(var f=0;f<b;f++){var d=t[f];if(s?d==="/"&&t[f-1]==="*"&&(s=!1):a?a===d&&(a=!1):d==="/"&&t[f+1]==="*"?s=!0:d==='"'||d==="'"?a=d:d==="("?i++:d===")"&&i--,!s&&a===!1&&i===0){if(d===":"&&u===-1)u=f;else if(d===";"||f===b-1){if(u!==-1){var m=un(t.substring(l,u).trim());if(!c.includes(m)){d!==";"&&f++;var _=t.substring(l,f).trim();r+=" "+_+";"}}l=f+1,u=-1}}}}return n&&(r+=Oo(n)),o&&(r+=Oo(o,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function dn(t,e,r,n,o,a){var i=t.__className;if(E||i!==r||i===void 0){var s=ts(r,n,a);(!E||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s)),t.__className=r}else if(a&&o!==a)for(var c in a){var l=!!a[c];(o==null||l!==!!o[c])&&t.classList.toggle(c,l)}return a}function fn(t,e={},r,n){for(var o in r){var a=r[o];e[o]!==a&&(r[o]==null?t.style.removeProperty(o):t.style.setProperty(o,a,n))}}function hn(t,e,r,n){var o=t.__style;if(E||o!==e){var a=rs(e,n);(!E||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else n&&(Array.isArray(n)?(fn(t,r?.[0],n[0]),fn(t,r?.[1],n[1],"important")):fn(t,r,n));return n}function pn(t,e,r=!1){if(t.multiple){if(e==null)return;if(!ar(e))return hi();for(var n of t.options)n.selected=e.includes(Io(n));return}for(n of t.options){var o=Io(n);if(di(o,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function ns(t){var e=new MutationObserver(()=>{pn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ro(()=>{e.disconnect()})}function Io(t){return"__value"in t?t.__value:t.value}const Ht=Symbol("class"),Yt=Symbol("style"),Mo=Symbol("is custom element"),jo=Symbol("is html");function os(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function wr(t,e,r,n){var o=No(t);E&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[Qa]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Po(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function as(t,e,r,n,o=!1){var a=No(t),i=a[Mo],s=!a[jo];let c=E&&i;c&&q(!1);var l=e||{},u=t.tagName==="OPTION";for(var f in e)f in r||(r[f]=null);r.class?r.class=cn(r.class):r[Ht]&&(r.class=null),r[Yt]&&(r.style??=null);var d=Po(t);for(const v in r){let x=r[v];if(u&&v==="value"&&x==null){t.value=t.__value="",l[v]=x;continue}if(v==="class"){var m=t.namespaceURI==="http://www.w3.org/1999/xhtml";dn(t,m,x,n,e?.[Ht],r[Ht]),l[v]=x,l[Ht]=r[Ht];continue}if(v==="style"){hn(t,x,e?.[Yt],r[Yt]),l[v]=x,l[Yt]=r[Yt];continue}var _=l[v];if(!(x===_&&!(x===void 0&&t.hasAttribute(v)))){l[v]=x;var b=v[0]+v[1];if(b!=="$$")if(b==="on"){const S={},F="$$"+v;let B=v.slice(2);var T=Ni(B);if(Mi(B)&&(B=B.slice(0,-7),S.capture=!0),!T&&_){if(x!=null)continue;t.removeEventListener(B,l[F],S),l[F]=null}if(x!=null)if(T)t[`__${B}`]=x,rn([B]);else{let z=function(se){l[v].call(this,se)};l[F]=wo(B,t,z,S)}else T&&(t[`__${B}`]=void 0)}else if(v==="style")wr(t,v,x);else if(v==="autofocus")$i(t,!!x);else if(!i&&(v==="__value"||v==="value"&&x!=null))t.value=t.__value=x;else if(v==="selected"&&u)os(t,x);else{var p=v;s||(p=Pi(p));var k=p==="defaultValue"||p==="defaultChecked";if(x==null&&!i&&!k)if(a[v]=null,p==="value"||p==="checked"){let S=t;const F=e===void 0;if(p==="value"){let B=S.defaultValue;S.removeAttribute(p),S.defaultValue=B,S.value=S.__value=F?B:null}else{let B=S.defaultChecked;S.removeAttribute(p),S.defaultChecked=B,S.checked=F?B:!1}}else t.removeAttribute(v);else k||d.includes(p)&&(i||typeof x!="string")?t[p]=x:typeof x!="function"&&wr(t,p,x)}}}return c&&q(!0),l}function is(t,e,r=[],n,o=!1,a=Pt){const i=r.map(a);var s=void 0,c={},l=t.nodeName==="SELECT",u=!1;if(_e(()=>{var d=e(...i.map(R)),m=as(t,s,d,n,o);u&&l&&"value"in d&&pn(t,d.value);for(let b of Object.getOwnPropertySymbols(c))d[b]||Y(c[b]);for(let b of Object.getOwnPropertySymbols(d)){var _=d[b];b.description===Wa&&(!s||_!==s[b])&&(c[b]&&Y(c[b]),c[b]=K(()=>Xi(t,()=>_))),m[b]=_}s=m}),l){var f=t;vr(()=>{pn(f,s.value,!0),ns(f)})}u=!0}function No(t){return t.__attributes??={[Mo]:t.nodeName.includes("-"),[jo]:t.namespaceURI===Va}}var Lo=new Map;function Po(t){var e=Lo.get(t.nodeName);if(e)return e;Lo.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=qa(n);for(var a in r)r[a].set&&e.push(a);n=jn(n)}return e}function Bo(t,e){return t===e||t?.[Fe]===e}function Fo(t={},e,r,n){return vr(()=>{var o,a;return oo(()=>{o=a,a=[],en(()=>{t!==r(...a)&&(e(t,...a),o&&Bo(r(...o),t)&&e(null,...o))})}),()=>{_t(()=>{a&&Bo(r(...a),t)&&e(null,...a)})}}),t}let xr=!1;function ss(t){var e=xr;try{return xr=!1,[t(),xr]}finally{xr=e}}const ls={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Do(t,e,r){return new Proxy({props:t,exclude:e},ls)}const cs={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(jt(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let o=t.props[n];jt(o)&&(o=o());const a=Ee(o,e);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(jt(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=Ee(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===Fe||e===Gr)return!1;for(let r of t.props)if(jt(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(jt(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function us(...t){return new Proxy({props:t},cs)}function U(t,e,r,n){var o=!Nt||(r&Pa)!==0,a=(r&Fa)!==0,i=(r&Da)!==0,s=n,c=!0,l=()=>(c&&(c=!1,s=i?en(n):n),s),u;if(a){var f=Fe in t||Gr in t;u=Ee(t,e)?.set??(f&&e in t?v=>t[e]=v:void 0)}var d,m=!1;a?[d,m]=ss(()=>t[e]):d=t[e],d===void 0&&n!==void 0&&(d=l(),u&&(o&&ai(),u(d)));var _;if(o?_=()=>{var v=t[e];return v===void 0?l():(c=!0,v)}:_=()=>{var v=t[e];return v!==void 0&&(s=void 0),v===void 0?s:v},o&&(r&Ba)===0)return _;if(u){var b=t.$$legacy;return function(v,x){return arguments.length>0?((!o||!x||b||m)&&u(x?_():v),v):_()}}var T=!1,p=((r&La)!==0?Pt:hr)(()=>(T=!1,_()));a&&R(p);var k=j;return function(v,x){if(arguments.length>0){const S=x?R(p):o&&a?bt(v):v;return Q(p,S),T=!0,s!==void 0&&(s=S),v}return Ze&&T||(k.f&fr)!==0?p.v:R(p)}}var ds=pt|Ur|ur;function fs(t,e,r){new hs(t,e,r)}class hs{#e;#t;#i;#s;#n;#o=null;#r=null;#a=!1;constructor(e,r,n){this.#e=e,this.#i=r,this.#s=n,this.#t=I,this.#n=_e(()=>{j.b=this,E&&ge();try{this.#o=K(()=>n(this.#e))}catch(o){this.error(o)}},ds),E&&(this.#e=I)}#l(e){var r=j,n=P,o=G;we(this.#n),te(this.#n),vt(this.#n.ctx);try{return e()}finally{we(r),te(n),vt(o)}}error(e){var r=this.#i.onerror;let n=this.#i.failed;const o=()=>{this.#r!==null&&Ie(this.#r,()=>{this.#r=null}),this.#o=this.#l(()=>(this.#a=!1,K(()=>this.#s(this.#e))))};if(this.#a||!r&&!n)throw e;var a=P;try{te(null),r?.(e,o)}finally{te(a)}this.#o&&(Y(this.#o),this.#o=null),this.#r&&(Y(this.#r),this.#r=null),E&&(H(this.#t),Yn(),H(Dt())),n&&_t(()=>{this.#r=this.#l(()=>{this.#a=!0;try{return K(()=>{n(this.#e,()=>e,()=>o)})}catch(i){return Jr(i,this.#n.parent),null}finally{this.#a=!1}})})}}function ps(t){return new vs(t)}class vs{#e;#t;constructor(e){var r=new Map,n=(a,i)=>{var s=pr(i,!1,!1);return r.set(a,s),s};const o=new Proxy({...e.props||{},$$events:{}},{get(a,i){return R(r.get(i)??n(i,Reflect.get(a,i)))},has(a,i){return i===Gr?!0:(R(r.get(i)??n(i,Reflect.get(a,i))),Reflect.has(a,i))},set(a,i,s){return Q(r.get(i)??n(i,s),s),Reflect.set(a,i,s)}});this.#t=(e.hydrate?Vi:Co)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#e=o.$$events;for(const a of Object.keys(this.#t))a==="$set"||a==="$destroy"||a==="$on"||sr(this,a,{get(){return this.#t[a]},set(i){this.#t[a]=i},enumerable:!0});this.#t.$set=a=>{Object.assign(o,a)},this.#t.$destroy=()=>{Ui(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...o)=>r.call(this,...o);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(o=>o!==n)}}$destroy(){this.#t.$destroy()}}let zo;typeof HTMLElement=="function"&&(zo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{const a=document.createElement("slot");n!=="default"&&(a.name=n),D(o,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ms(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=Cr(o,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ps({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=gi(()=>{oo(()=>{this.$$r=!0;for(const n of ir(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=Cr(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(const n in this.$$l)for(const o of this.$$l[n]){const a=this.$$c.$on(n,o);this.$$l_u.set(o,a)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Cr(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ir(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Cr(t,e,r,n){const o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ms(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Qt(t,e,r,n,o,a){let i=class extends zo{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return ir(e).map(s=>(e[s].attribute||s).toLowerCase())}};return ir(e).forEach(s=>{sr(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){c=Cr(s,c,e),this.$$d[s]=c;var l=this.$$c;if(l){var u=Ee(l,s)?.get;u?l[s]=c:l.$set({[s]:c})}}})}),n.forEach(s=>{sr(i.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=i,i}var gs=(t,e)=>e()(),bs=me('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),ks=me(" <!>",1);const _s={hash:"svelte-4thrqu",code:`
|
|
1
|
+
var LiipGPTButton=function(Wr){"use strict";const Go="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Go);const Yo=1,Qo=2,Ko=16,Xo=1,Jo=2,ei=4,ti=8,ri=16,ni=1,ai=2,Gr="[",ur="[!",Yr="]",it={},q=Symbol(),oi="http://www.w3.org/1999/xhtml",ii="http://www.w3.org/2000/svg",si="@attach",Wn=!1;var dr=Array.isArray,li=Array.prototype.indexOf,Qr=Array.from,fr=Object.keys,wt=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyDescriptors,ui=Object.prototype,di=Array.prototype,Gn=Object.getPrototypeOf,Yn=Object.isExtensible;function Vt(t){return typeof t=="function"}const hr=()=>{};function Qn(t){return typeof t?.then=="function"}function Kn(t){for(var e=0;e<t.length;e++)t[e]()}function fi(){var t,e,r=new Promise((n,a)=>{t=n,e=a});return{promise:r,resolve:t,reject:e}}const ce=2,Kr=4,Xr=8,Ut=16,ze=32,st=64,Jr=128,ue=256,pr=512,G=1024,de=2048,lt=4096,ye=8192,ct=16384,en=32768,xt=65536,Xn=1<<17,Jn=1<<18,vr=1<<19,ea=1<<20,tn=1<<21,rn=1<<22,ut=1<<23,Ge=Symbol("$state"),nn=Symbol("legacy props"),hi=Symbol(""),an=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pi=1,vi=3,dt=8;function mi(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function gi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ki(t){throw new Error("https://svelte.dev/e/effect_orphan")}function yi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wi(){throw new Error("https://svelte.dev/e/hydration_failed")}function xi(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ci(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Si(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ei(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let $=!1;function X(t){$=t}let I;function J(t){if(t===null)throw qt(),it;return I=t}function Se(){return J(he(I))}function Te(t){if($){if(he(I)!==null)throw qt(),it;I=t}}function ta(t=1){if($){for(var e=t,r=I;e--;)r=he(r);I=r}}function Ht(){for(var t=0,e=I;;){if(e.nodeType===dt){var r=e.data;if(r===Yr){if(t===0)return e;t-=1}else(r===Gr||r===ur)&&(t+=1)}var n=he(e);e.remove(),e=n}}function ra(t){if(!t||t.nodeType!==dt)throw qt(),it;return t.data}function na(t){return t===this.v}function $i(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function aa(t){return!$i(t,this.v)}let Wt=!1,Oi=!1;function Ai(){Wt=!0}let Y=null;function Ye(t){Y=t}function Ct(t,e=!1,r){Y={p:Y,c:null,e:null,s:t,x:null,l:Wt&&!e?{s:null,u:null,$:[]}:null}}function St(t){var e=Y,r=e.e;if(r!==null){e.e=null;for(var n of r)ya(n)}return t!==void 0&&(e.x=t),Y=e.p,t??{}}function Tt(){return!Wt||Y!==null&&Y.l===null}const Mi=new WeakMap;function Ri(t){var e=M;if(e===null)return j.f|=ut,t;if((e.f&en)===0){if((e.f&Jr)===0)throw!e.parent&&t instanceof Error&&oa(t),t;e.b.error(t)}else mr(t,e)}function mr(t,e){for(;e!==null;){if((e.f&Jr)!==0)try{e.b.error(t);return}catch{}e=e.parent}throw t instanceof Error&&oa(t),t}function oa(t){const e=Mi.get(t);e&&(wt(t,"message",{value:e.message}),wt(t,"stack",{value:e.stack}))}let Gt=[],on=[];function ia(){var t=Gt;Gt=[],Kn(t)}function Ii(){var t=on;on=[],Kn(t)}function ft(t){Gt.length===0&&queueMicrotask(ia),Gt.push(t)}function ji(){Gt.length>0&&ia(),on.length>0&&Ii()}function Ni(t){let e=0,r=Be(0),n;return()=>{Gi()&&(E(r),fn(()=>(e===0&&(n=Tr(()=>t(()=>yr(r)))),e+=1,()=>{ft(()=>{e-=1,e===0&&(n?.(),n=void 0)})})))}}var Li=xt|vr|Jr;function Pi(t,e,r){new zi(t,e,r)}class zi{pending=!1;parent;#e;#t;#a;#l;#u;#o=null;#r=null;#i=null;#s=null;#n=0;#c=!1;#d=null;#h=()=>{this.#d&&Ke(this.#d,this.#n)};#f=Ni(()=>(this.#d=Be(this.#n),()=>{this.#d=null}));constructor(e,r,n){this.#e=e,this.#a=r,this.#l=n,this.#t=I,this.parent=M.b,this.pending=!!this.#a.pending,this.#u=Fe(()=>{M.b=this,$&&Se();const a=this.#a.pending;if($&&a)this.#r=H(()=>a(this.#e)),queueMicrotask(()=>{this.#o=this.#p(()=>(ht.ensure(),H(()=>this.#l(this.#e)))),this.#n>0?this.#v():(Oe(this.#r,()=>{this.#r=null}),this.pending=!1)});else{try{this.#o=H(()=>n(this.#e))}catch(o){this.error(o)}this.#n>0?this.#v():this.pending=!1}},Li),$&&(this.#e=I)}has_pending_snippet(){return!!this.#a.pending}#p(e){var r=M,n=j,a=Y;me(this.#u),te(this.#u),Ye(this.#u.ctx);try{return e()}finally{me(r),te(n),Ye(a)}}#v(){const e=this.#a.pending;this.#o!==null&&(this.#s=document.createDocumentFragment(),Bi(this.#o,this.#s)),this.#r===null&&(this.#r=H(()=>e(this.#e)))}#m(e){this.#n+=e,this.#n===0&&(this.pending=!1,this.#r&&Oe(this.#r,()=>{this.#r=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(e){this.has_pending_snippet()?this.#m(e):this.parent&&this.parent.#m(e),cn.add(this.#h)}get_effect_pending(){return this.#f(),E(this.#d)}error(e){var r=this.#a.onerror;let n=this.#a.failed;const a=()=>{this.#n=0,this.#i!==null&&Oe(this.#i,()=>{this.#i=null}),this.pending=!0,this.#o=this.#p(()=>(this.#c=!1,H(()=>this.#l(this.#e)))),this.#n>0?this.#v():this.pending=!1};if(this.#c||!r&&!n)throw e;var o=j;try{te(null),r?.(e,a)}finally{te(o)}this.#o&&(Q(this.#o),this.#o=null),this.#r&&(Q(this.#r),this.#r=null),this.#i&&(Q(this.#i),this.#i=null),$&&(J(this.#t),ta(),J(Ht())),n&&ft(()=>{this.#i=this.#p(()=>{this.#c=!0;try{return H(()=>{n(this.#e,()=>e,()=>a)})}catch(i){return mr(i,this.#u.parent),null}finally{this.#c=!1}})})}}function Bi(t,e){for(var r=t.nodes_start,n=t.nodes_end;r!==null;){var a=r===n?null:he(r);e.append(r),r=a}}function Fi(){for(var t=M.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&mi(),t}function gr(t){var e=ce|de,r=j!==null&&(j.f&ce)!==0?j:null;return M===null||r!==null&&(r.f&ue)!==0?e|=ue:M.f|=vr,{ctx:Y,deps:null,effects:null,equals:na,f:e,fn:t,reactions:null,rv:0,v:q,wv:0,parent:r??M,ac:null}}function Di(t,e){let r=M;r===null&&gi();var n=r.b,a=void 0,o=Be(q),i=null,s=!j;return Xi(()=>{try{var l=t()}catch(g){l=Promise.reject(g)}var c=()=>l;a=i?.then(c,c)??Promise.resolve(l),i=a;var u=oe,h=n.pending;s&&(n.update_pending_count(1),h||u.increment());const d=(g,b=void 0)=>{i=null,h||u.activate(),b?b!==an&&(o.f|=ut,Ke(o,b)):((o.f&ut)!==0&&(o.f^=ut),Ke(o,g)),s&&(n.update_pending_count(-1),h||u.decrement()),ua()};if(a.then(d,g=>d(null,g||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(l=>{function c(u){function h(){u===a?l(o):c(a)}u.then(h,h)}c(a)})}function we(t){const e=gr(t);return Aa(e),e}function sn(t){const e=gr(t);return e.equals=aa,e}function sa(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)Q(e[r])}}function Zi(t){for(var e=t.parent;e!==null;){if((e.f&ce)===0)return e;e=e.parent}return null}function ln(t){var e,r=M;me(Zi(t));try{sa(t),e=ja(t)}finally{me(r)}return e}function la(t){var e=ln(t);if(t.equals(e)||(t.v=e,t.wv=Ra()),!vt)if(Et!==null)Et.set(t,t.v);else{var r=(et||(t.f&ue)!==0)&&t.deps!==null?lt:G;ee(t,r)}}function ca(t,e,r){const n=Tt()?gr:sn;if(e.length===0){r(t.map(n));return}var a=oe,o=M,i=Vi(),s=Fi();Promise.all(e.map(l=>Di(l))).then(l=>{a?.activate(),i();try{r([...t.map(n),...l])}catch(c){(o.f&ct)===0&&mr(c,o)}a?.deactivate(),ua()}).catch(l=>{s.error(l)})}function Vi(){var t=M,e=j,r=Y;return function(){me(t),te(e),Ye(r)}}function ua(){me(null),te(null),Ye(null)}const br=new Set;let oe=null,Et=null,cn=new Set,$t=[],_r=null,un=!1;class ht{#e=new Map;#t=new Map;#a=new Set;#l=0;#u=null;#o=!1;#r=[];#i=[];#s=[];#n=[];#c=[];skipped_effects=new Set;#d(e){$t=[];var r=null;if(br.size>1){r=new Map,Et=new Map;for(const[o,i]of this.#e)r.set(o,{v:o.v,wv:o.wv}),o.v=i;for(const o of br)if(o!==this)for(const[i,s]of o.#t)r.has(i)||(r.set(i,{v:i.v,wv:i.wv}),i.v=s)}for(const o of e)this.#h(o);if(this.#r.length===0&&this.#l===0){var n=this.#s,a=this.#n;this.#s=[],this.#n=[],this.#c=[],this.#f(),da(n),da(a),this.#u?.resolve()}else{for(const o of this.#s)ee(o,G);for(const o of this.#n)ee(o,G);for(const o of this.#c)ee(o,G)}if(r){for(const[o,{v:i,wv:s}]of r)o.wv<=s&&(o.v=i);Et=null}for(const o of this.#r)Kt(o);for(const o of this.#i)Kt(o);this.#r=[],this.#i=[]}#h(e){e.f^=G;for(var r=e.first;r!==null;){var n=r.f,a=(n&(ze|st))!==0,o=a&&(n&G)!==0,i=o||(n&ye)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(a)r.f^=G;else if((n&Kr)!==0)this.#n.push(r);else if(Cr(r))if((n&rn)!==0){var s=r.b?.pending?this.#i:this.#r;s.push(r)}else(r.f&Ut)!==0&&this.#c.push(r),Kt(r);var l=r.first;if(l!==null){r=l;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)r=c.next,c=c.parent}}capture(e,r){this.#t.has(e)||this.#t.set(e,r),this.#e.set(e,e.v)}activate(){oe=this}deactivate(){oe=null;for(const e of cn)if(cn.delete(e),e(),oe!==null)break}neuter(){this.#o=!0}flush(){$t.length>0?this.flush_effects():this.#f(),oe===this&&(this.#l===0&&br.delete(this),this.deactivate())}flush_effects(){var e=Mt;un=!0;try{var r=0;for($a(!0);$t.length>0;){if(r++>1e3){var n,a;Ui()}this.#d($t),pt.clear()}}finally{un=!1,$a(e),_r=null}}#f(){if(!this.#o)for(const e of this.#a)e();this.#a.clear()}increment(){this.#l+=1}decrement(){if(this.#l-=1,this.#l===0){for(const e of this.#s)ee(e,de),Qe(e);for(const e of this.#n)ee(e,de),Qe(e);for(const e of this.#c)ee(e,de),Qe(e);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#a.add(e)}settled(){return(this.#u??=fi()).promise}static ensure(e=!0){if(oe===null){const r=oe=new ht;br.add(oe),e&&queueMicrotask(()=>{oe===r&&r.flush()})}return oe}}function V(t){var e;const r=ht.ensure(!1);for(;;){if(ji(),$t.length===0)return r===oe&&r.flush(),_r=null,e;r.flush_effects()}}function Ui(){try{yi()}catch(t){mr(t,_r)}}function da(t){var e=t.length;if(e!==0){for(var r=0;r<e;r++){var n=t[r];if((n.f&(ct|ye))===0&&Cr(n)){var a=xr;if(Kt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Sa(n):n.fn=null),xr>a&&(n.f&ea)!==0)break}}for(;r<e;r+=1)Qe(t[r])}}function Qe(t){for(var e=_r=t;e.parent!==null;){e=e.parent;var r=e.f;if(un&&e===M&&(r&Ut)!==0)return;if((r&(st|ze))!==0){if((r&G)===0)return;e.f^=G}}$t.push(e)}const pt=new Map;function Be(t,e){var r={f:0,v:t,reactions:null,equals:na,rv:0,wv:0};return r}function fe(t,e){const r=Be(t);return Aa(r),r}function kr(t,e=!1,r=!0){const n=Be(t);return e||(n.equals=aa),Wt&&r&&Y!==null&&Y.l!==null&&(Y.l.s??=[]).push(n),n}function ie(t,e,r=!1){j!==null&&(!xe||(j.f&Xn)!==0)&&Tt()&&(j.f&(ce|Ut|rn|Xn))!==0&&!De?.includes(t)&&Ti();let n=r?Ot(e):e;return Ke(t,n)}function Ke(t,e){if(!t.equals(e)){var r=t.v;vt?pt.set(t,e):pt.set(t,r),t.v=e,ht.ensure().capture(t,r),(t.f&ce)!==0&&((t.f&de)!==0&&ln(t),ee(t,(t.f&ue)===0?G:lt)),t.wv=Ra(),fa(t,de),Tt()&&M!==null&&(M.f&G)!==0&&(M.f&(ze|st))===0&&(ge===null?es([t]):ge.push(t))}return e}function yr(t){ie(t,t.v+1)}function fa(t,e){var r=t.reactions;if(r!==null)for(var n=Tt(),a=r.length,o=0;o<a;o++){var i=r[o],s=i.f;(s&de)===0&&(!n&&i===M||(ee(i,e),(s&(G|ue))!==0&&((s&ce)!==0?fa(i,lt):Qe(i))))}}function Ot(t){if(typeof t!="object"||t===null||Ge in t)return t;const e=Gn(t);if(e!==ui&&e!==di)return t;var r=new Map,n=dr(t),a=fe(0),o=mt,i=s=>{if(mt===o)return s();var l=j,c=mt;te(null),Ma(o);var u=s();return te(l),Ma(c),u};return n&&r.set("length",fe(t.length)),new Proxy(t,{defineProperty(s,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Ci();var u=r.get(l);return u===void 0?u=i(()=>{var h=fe(c.value);return r.set(l,h),h}):ie(u,c.value,!0),!0},deleteProperty(s,l){var c=r.get(l);if(c===void 0){if(l in s){const u=i(()=>fe(q));r.set(l,u),yr(a)}}else ie(c,q),yr(a);return!0},get(s,l,c){if(l===Ge)return t;var u=r.get(l),h=l in s;if(u===void 0&&(!h||Pe(s,l)?.writable)&&(u=i(()=>{var g=Ot(h?s[l]:q),b=fe(g);return b}),r.set(l,u)),u!==void 0){var d=E(u);return d===q?void 0:d}return Reflect.get(s,l,c)},getOwnPropertyDescriptor(s,l){var c=Reflect.getOwnPropertyDescriptor(s,l);if(c&&"value"in c){var u=r.get(l);u&&(c.value=E(u))}else if(c===void 0){var h=r.get(l),d=h?.v;if(h!==void 0&&d!==q)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return c},has(s,l){if(l===Ge)return!0;var c=r.get(l),u=c!==void 0&&c.v!==q||Reflect.has(s,l);if(c!==void 0||M!==null&&(!u||Pe(s,l)?.writable)){c===void 0&&(c=i(()=>{var d=u?Ot(s[l]):q,g=fe(d);return g}),r.set(l,c));var h=E(c);if(h===q)return!1}return u},set(s,l,c,u){var h=r.get(l),d=l in s;if(n&&l==="length")for(var g=c;g<h.v;g+=1){var b=r.get(g+"");b!==void 0?ie(b,q):g in s&&(b=i(()=>fe(q)),r.set(g+"",b))}if(h===void 0)(!d||Pe(s,l)?.writable)&&(h=i(()=>fe(void 0)),ie(h,Ot(c)),r.set(l,h));else{d=h.v!==q;var v=i(()=>Ot(c));ie(h,v)}var T=Reflect.getOwnPropertyDescriptor(s,l);if(T?.set&&T.set.call(u,c),!d){if(n&&typeof l=="string"){var m=r.get("length"),k=Number(l);Number.isInteger(k)&&k>=m.v&&ie(m,k+1)}yr(a)}return!0},ownKeys(s){E(a);var l=Reflect.ownKeys(s).filter(h=>{var d=r.get(h);return d===void 0||d.v!==q});for(var[c,u]of r)u.v!==q&&!(c in s)&&l.push(c);return l},setPrototypeOf(){Si()}})}function ha(t){try{if(t!==null&&typeof t=="object"&&Ge in t)return t[Ge]}catch{}return t}function qi(t,e){return Object.is(ha(t),ha(e))}var pa,va,ma,ga;function dn(){if(pa===void 0){pa=window,va=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ma=Pe(e,"firstChild").get,ga=Pe(e,"nextSibling").get,Yn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Yn(r)&&(r.__t=void 0)}}function Xe(t=""){return document.createTextNode(t)}function ve(t){return ma.call(t)}function he(t){return ga.call(t)}function Ee(t,e){if(!$)return ve(t);var r=ve(I);return r===null&&(r=I.appendChild(Xe())),J(r),r}function se(t,e){if(!$){var r=ve(t);return r instanceof Comment&&r.data===""?he(r):r}return I}function Je(t,e=1,r=!1){let n=$?I:t;for(var a;e--;)a=n,n=he(n);if(!$)return n;if(r&&n?.nodeType!==vi){var o=Xe();return n===null?a?.after(o):n.before(o),J(o),o}return J(n),n}function ba(t){t.textContent=""}function _a(){return!1}function Hi(t){M===null&&j===null&&ki(),j!==null&&(j.f&ue)!==0&&M===null&&_i(),vt&&bi()}function Wi(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function $e(t,e,r,n=!0){var a=M;a!==null&&(a.f&ye)!==0&&(t|=ye);var o={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:t|de,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Kt(o),o.f|=en}catch(l){throw Q(o),l}else e!==null&&Qe(o);var i=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&vr)===0;if(!i&&n&&(a!==null&&Wi(o,a),j!==null&&(j.f&ce)!==0)){var s=j;(s.effects??=[]).push(o)}return o}function Gi(){return j!==null&&!xe}function ka(t){const e=$e(Xr,null,!1);return ee(e,G),e.teardown=t,e}function Yi(t){Hi();var e=M.f,r=!j&&(e&ze)!==0&&(e&en)===0;if(r){var n=Y;(n.e??=[]).push(t)}else return ya(t)}function ya(t){return $e(Kr|ea,t,!1)}function Qi(t){ht.ensure();const e=$e(st,t,!0);return()=>{Q(e)}}function Ki(t){ht.ensure();const e=$e(st,t,!0);return(r={})=>new Promise(n=>{r.outro?Oe(e,()=>{Q(e),n(void 0)}):(Q(e),n(void 0))})}function wr(t){return $e(Kr,t,!1)}function Xi(t){return $e(rn|vr,t,!0)}function fn(t,e=0){return $e(Xr|e,t,!0)}function Yt(t,e=[],r=[]){ca(e,r,n=>{$e(Xr,()=>t(...n.map(E)),!0)})}function Fe(t,e=0){var r=$e(Ut|e,t,!0);return r}function H(t,e=!0){return $e(ze,t,!0,e)}function wa(t){var e=t.teardown;if(e!==null){const r=vt,n=j;Oa(!0),te(null);try{e.call(null)}finally{Oa(r),te(n)}}}function xa(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){r.ac?.abort(an);var n=r.next;(r.f&st)!==0?r.parent=null:Q(r,e),r=n}}function Ji(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&ze)===0&&Q(e),e=r}}function Q(t,e=!0){var r=!1;(e||(t.f&Jn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ca(t.nodes_start,t.nodes_end),r=!0),xa(t,e&&!r),Sr(t,0),ee(t,ct);var n=t.transitions;if(n!==null)for(const o of n)o.stop();wa(t);var a=t.parent;a!==null&&a.first!==null&&Sa(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Ca(t,e){for(;t!==null;){var r=t===e?null:he(t);t.remove(),t=r}}function Sa(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Oe(t,e){var r=[];hn(t,r,!0),Ta(r,()=>{Q(t),e&&e()})}function Ta(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var a of t)a.out(n)}else e()}function hn(t,e,r){if((t.f&ye)===0){if(t.f^=ye,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var a=n.next,o=(n.f&xt)!==0||(n.f&ze)!==0;hn(n,e,o?r:!1),n=a}}}function At(t){Ea(t,!0)}function Ea(t,e){if((t.f&ye)!==0){t.f^=ye,(t.f&G)===0&&(ee(t,de),Qe(t));for(var r=t.first;r!==null;){var n=r.next,a=(r.f&xt)!==0||(r.f&ze)!==0;Ea(r,a?e:!1),r=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}let Mt=!1;function $a(t){Mt=t}let vt=!1;function Oa(t){vt=t}let j=null,xe=!1;function te(t){j=t}let M=null;function me(t){M=t}let De=null;function Aa(t){j!==null&&(De===null?De=[t]:De.push(t))}let re=null,pe=0,ge=null;function es(t){ge=t}let xr=1,Qt=0,mt=Qt;function Ma(t){mt=t}let et=!1;function Ra(){return++xr}function Cr(t){var e=t.f;if((e&de)!==0)return!0;if((e<)!==0){var r=t.deps,n=(e&ue)!==0;if(r!==null){var a,o,i=(e&pr)!==0,s=n&&M!==null&&!et,l=r.length;if((i||s)&&(M===null||(M.f&ct)===0)){var c=t,u=c.parent;for(a=0;a<l;a++)o=r[a],(i||!o?.reactions?.includes(c))&&(o.reactions??=[]).push(c);i&&(c.f^=pr),s&&u!==null&&(u.f&ue)===0&&(c.f^=ue)}for(a=0;a<l;a++)if(o=r[a],Cr(o)&&la(o),o.wv>t.wv)return!0}(!n||M!==null&&!et)&&ee(t,G)}return!1}function Ia(t,e,r=!0){var n=t.reactions;if(n!==null&&!De?.includes(t))for(var a=0;a<n.length;a++){var o=n[a];(o.f&ce)!==0?Ia(o,e,!1):e===o&&(r?ee(o,de):(o.f&G)!==0&&ee(o,lt),Qe(o))}}function ja(t){var e=re,r=pe,n=ge,a=j,o=et,i=De,s=Y,l=xe,c=mt,u=t.f;re=null,pe=0,ge=null,et=(u&ue)!==0&&(xe||!Mt||j===null),j=(u&(ze|st))===0?t:null,De=null,Ye(t.ctx),xe=!1,mt=++Qt,t.ac!==null&&(t.ac.abort(an),t.ac=null);try{t.f|=tn;var h=(0,t.fn)(),d=t.deps;if(re!==null){var g;if(Sr(t,pe),d!==null&&pe>0)for(d.length=pe+re.length,g=0;g<re.length;g++)d[pe+g]=re[g];else t.deps=d=re;if(!et||(u&ce)!==0&&t.reactions!==null)for(g=pe;g<d.length;g++)(d[g].reactions??=[]).push(t)}else d!==null&&pe<d.length&&(Sr(t,pe),d.length=pe);if(Tt()&&ge!==null&&!xe&&d!==null&&(t.f&(ce|lt|de))===0)for(g=0;g<ge.length;g++)Ia(ge[g],t);return a!==null&&a!==t&&(Qt++,ge!==null&&(n===null?n=ge:n.push(...ge))),(t.f&ut)!==0&&(t.f^=ut),h}catch(b){return Ri(b)}finally{t.f^=tn,re=e,pe=r,ge=n,j=a,et=o,De=i,Ye(s),xe=l,mt=c}}function ts(t,e){let r=e.reactions;if(r!==null){var n=li.call(r,t);if(n!==-1){var a=r.length-1;a===0?r=e.reactions=null:(r[n]=r[a],r.pop())}}r===null&&(e.f&ce)!==0&&(re===null||!re.includes(e))&&(ee(e,lt),(e.f&(ue|pr))===0&&(e.f^=pr),sa(e),Sr(e,0))}function Sr(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)ts(t,r[n])}function Kt(t){var e=t.f;if((e&ct)===0){ee(t,G);var r=M,n=Mt;M=t,Mt=!0;try{(e&Ut)!==0?Ji(t):xa(t),wa(t);var a=ja(t);t.teardown=typeof a=="function"?a:null,t.wv=xr;var o;Wn&&Oi&&(t.f&de)!==0&&t.deps}finally{Mt=n,M=r}}}function E(t){var e=t.f,r=(e&ce)!==0;if(j!==null&&!xe){var n=M!==null&&(M.f&ct)!==0;if(!n&&!De?.includes(t)){var a=j.deps;if((j.f&tn)!==0)t.rv<Qt&&(t.rv=Qt,re===null&&a!==null&&a[pe]===t?pe++:re===null?re=[t]:(!et||!re.includes(t))&&re.push(t));else{(j.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[j]:o.includes(j)||o.push(j)}}}else if(r&&t.deps===null&&t.effects===null){var i=t,s=i.parent;s!==null&&(s.f&ue)===0&&(i.f^=ue)}if(vt){if(pt.has(t))return pt.get(t);if(r){i=t;var l=i.v;return((i.f&G)!==0||Na(i))&&(l=ln(i)),pt.set(i,l),l}}else if(r){if(i=t,Et?.has(i))return Et.get(i);Cr(i)&&la(i)}if((t.f&ut)!==0)throw t.v;return t.v}function Na(t){if(t.v===q)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pt.has(e)||(e.f&ce)!==0&&Na(e))return!0;return!1}function Tr(t){var e=xe;try{return xe=!0,t()}finally{xe=e}}const rs=-7169;function ee(t,e){t.f=t.f&rs|e}function ns(t,e){if(e){const r=document.body;t.autofocus=!0,ft(()=>{document.activeElement===r&&t.focus()})}}function as(t){var e=j,r=M;te(null),me(null);try{return t()}finally{te(e),me(r)}}const La=new Set,pn=new Set;function Pa(t,e,r,n={}){function a(o){if(n.capture||Xt.call(e,o),!o.cancelBubble)return as(()=>r?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ft(()=>{e.addEventListener(t,a,n)}):e.addEventListener(t,a,n),a}function Er(t,e,r,n,a){var o={capture:n,passive:a},i=Pa(t,e,r,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ka(()=>{e.removeEventListener(t,i,o)})}function vn(t){for(var e=0;e<t.length;e++)La.add(t[e]);for(var r of pn)r(t)}function Xt(t){var e=this,r=e.ownerDocument,n=t.type,a=t.composedPath?.()||[],o=a[0]||t.target,i=0,s=t.__root;if(s){var l=a.indexOf(s);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var c=a.indexOf(e);if(c===-1)return;l<=c&&(i=l)}if(o=a[i]||t.target,o!==e){wt(t,"currentTarget",{configurable:!0,get(){return o||r}});var u=j,h=M;te(null),me(null);try{for(var d,g=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];if(v!=null&&(!o.disabled||t.target===o))if(dr(v)){var[T,...m]=v;T.apply(o,[t,...m])}else v.call(o,t)}catch(k){d?g.push(k):d=k}if(t.cancelBubble||b===e||b===null)break;o=b}if(d){for(let k of g)queueMicrotask(()=>{throw k});throw d}}finally{t.__root=e,delete t.currentTarget,te(u),me(h)}}}let be;function os(){be=void 0}function is(t){let e=null,r=$;var n;if($){for(e=I,be===void 0&&(be=ve(document.head));be!==null&&(be.nodeType!==dt||be.data!==Gr);)be=he(be);be===null?X(!1):be=J(he(be))}$||(n=document.head.appendChild(Xe()));try{Fe(()=>t(n),Jn)}finally{r&&(X(!0),be=I,J(e))}}function za(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ze(t,e){var r=M;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Ce(t,e){var r=(e&ni)!==0,n=(e&ai)!==0,a,o=!t.startsWith("<!>");return()=>{if($)return Ze(I,null),I;a===void 0&&(a=za(o?t:"<!>"+t),r||(a=ve(a)));var i=n||va?document.importNode(a,!0):a.cloneNode(!0);if(r){var s=ve(i),l=i.lastChild;Ze(s,l)}else Ze(i,i);return i}}function Ae(){if($)return Ze(I,null),I;var t=document.createDocumentFragment(),e=document.createComment(""),r=Xe();return t.append(e,r),Ze(e,r),t}function Z(t,e){if($){M.nodes_end=I,Se();return}t!==null&&t.before(e)}function ss(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ls=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function cs(t){return ls.includes(t)}const us={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ds(t){return t=t.toLowerCase(),us[t]??t}const fs=["touchstart","touchmove"];function hs(t){return fs.includes(t)}const ps=["textarea","script","style","title"];function vs(t){return ps.includes(t)}function ms(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Ba(t,e){return Fa(t,e)}function gs(t,e){dn(),e.intro=e.intro??!1;const r=e.target,n=$,a=I;try{for(var o=ve(r);o&&(o.nodeType!==dt||o.data!==Gr);)o=he(o);if(!o)throw it;X(!0),J(o),Se();const i=Fa(t,{...e,anchor:o});if(I===null||I.nodeType!==dt||I.data!==Yr)throw qt(),it;return X(!1),i}catch(i){if(i===it)return e.recover===!1&&wi(),dn(),ba(r),X(!1),Ba(t,e);throw i}finally{X(n),J(a),os()}}const Rt=new Map;function Fa(t,{target:e,anchor:r,props:n={},events:a,context:o,intro:i=!0}){dn();var s=new Set,l=h=>{for(var d=0;d<h.length;d++){var g=h[d];if(!s.has(g)){s.add(g);var b=hs(g);e.addEventListener(g,Xt,{passive:b});var v=Rt.get(g);v===void 0?(document.addEventListener(g,Xt,{passive:b}),Rt.set(g,1)):Rt.set(g,v+1)}}};l(Qr(La)),pn.add(l);var c=void 0,u=Ki(()=>{var h=r??e.appendChild(Xe());return H(()=>{if(o){Ct({});var d=Y;d.c=o}a&&(n.$$events=a),$&&Ze(h,null),c=t(h,n)||{},$&&(M.nodes_end=I),o&&St()}),()=>{for(var d of s){e.removeEventListener(d,Xt);var g=Rt.get(d);--g===0?(document.removeEventListener(d,Xt),Rt.delete(d)):Rt.set(d,g)}pn.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return mn.set(c,u),c}let mn=new WeakMap;function bs(t,e){const r=mn.get(t);return r?(mn.delete(t),r(e)):Promise.resolve()}function gn(t,e,...r){var n=t,a=hr,o;Fe(()=>{a!==(a=e())&&(o&&(Q(o),o=null),o=H(()=>a(n,...r)))},xt),$&&(n=I)}const bn=0,$r=1,_n=2;function Da(t,e,r,n,a){$&&Se();var o=t,i=Tt(),s=Y,l=q,c,u,h,d=i?Be(void 0):kr(void 0,!1,!1),g=i?Be(void 0):kr(void 0,!1,!1),b=!1;function v(m,k){b=!0,k&&(me(T),te(T),Ye(s));try{m===bn&&r&&(c?At(c):c=H(()=>r(o))),m===$r&&n&&(u?At(u):u=H(()=>n(o,d))),m!==bn&&c&&Oe(c,()=>c=null),m!==$r&&u&&Oe(u,()=>u=null),m!==_n&&h&&Oe(h,()=>h=null)}finally{k&&(Ye(null),te(null),me(null),V())}}var T=Fe(()=>{if(l===(l=e()))return;let m=$&&Qn(l)===(o.data===ur);if(m&&(o=Ht(),J(o),X(!1),m=!0),Qn(l)){var k=l;b=!1,k.then(p=>{k===l&&(Ke(d,p),v($r,!0))},p=>{if(k===l)throw Ke(g,p),v(_n,!0),g.v}),$?r&&(c=H(()=>r(o))):ft(()=>{b||v(bn,!0)})}else Ke(d,l),v($r,!1);return m&&X(!0),()=>l=q});$&&(o=I)}function Ve(t,e,r=!1){$&&Se();var n=t,a=null,o=null,i=q,s=r?xt:0,l=!1;const c=(g,b=!0)=>{l=!0,d(b,g)};var u=null;function h(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var g=i?a:o,b=i?o:a;g&&At(g),b&&Oe(b,()=>{i?o=null:a=null})}const d=(g,b)=>{if(i===(i=g))return;let v=!1;if($){const C=ra(n)===ur;!!i===C&&(n=Ht(),J(n),X(!1),v=!0)}var T=_a(),m=n;if(T&&(u=document.createDocumentFragment(),u.append(m=Xe())),i?a??=b&&H(()=>b(m)):o??=b&&H(()=>b(m)),T){var k=oe,p=i?a:o,y=i?o:a;p&&k.skipped_effects.delete(p),y&&k.skipped_effects.add(y),k.add_callback(h)}else h();v&&X(!0)};Fe(()=>{l=!1,e(c),l||d(null,null)},s),$&&(n=I)}function _s(t,e){return e}function ks(t,e,r){for(var n=t.items,a=[],o=e.length,i=0;i<o;i++)hn(e[i].e,a,!0);var s=o>0&&a.length===0&&r!==null;if(s){var l=r.parentNode;ba(l),l.append(r),n.clear(),Me(t,e[0].prev,e[o-1].next)}Ta(a,()=>{for(var c=0;c<o;c++){var u=e[c];s||(n.delete(u.k),Me(t,u.prev,u.next)),Q(u.e,!s)}})}function ys(t,e,r,n,a,o=null){var i=t,s={flags:e,items:new Map,first:null};$&&Se();var l=null,c=!1,u=new Map,h=sn(()=>{var v=r();return dr(v)?v:v==null?[]:Qr(v)}),d,g;function b(){ws(g,d,s,u,i,a,e,n,r),o!==null&&(d.length===0?l?At(l):l=H(()=>o(i)):l!==null&&Oe(l,()=>{l=null}))}Fe(()=>{g??=M,d=E(h);var v=d.length;if(c&&v===0)return;c=v===0;let T=!1;if($){var m=ra(i)===ur;m!==(v===0)&&(i=Ht(),J(i),X(!1),T=!0)}if($){for(var k=null,p,y=0;y<v;y++){if(I.nodeType===dt&&I.data===Yr){i=I,T=!0,X(!1);break}var C=d[y],L=n(C,y);p=kn(I,s,k,null,C,L,y,a,e,r),s.items.set(L,p),k=p}v>0&&J(Ht())}if($)v===0&&o&&(l=H(()=>o(i)));else if(_a()){var B=new Set,F=oe;for(y=0;y<v;y+=1){C=d[y],L=n(C,y);var D=s.items.get(L)??u.get(L);D?Za(D,C,y):(p=kn(null,s,null,null,C,L,y,a,e,r,!0),u.set(L,p)),B.add(L)}for(const[le,K]of s.items)B.has(le)||F.skipped_effects.add(K.e);F.add_callback(b)}else b();T&&X(!0),E(h)}),$&&(i=I)}function ws(t,e,r,n,a,o,i,s,l){var c=e.length,u=r.items,h=r.first,d=h,g,b=null,v=[],T=[],m,k,p,y;for(y=0;y<c;y+=1){if(m=e[y],k=s(m,y),p=u.get(k),p===void 0){var C=n.get(k);if(C!==void 0){n.delete(k),u.set(k,C);var L=b?b.next:d;Me(r,b,C),Me(r,C,L),yn(C,L,a),b=C}else{var B=d?d.e.nodes_start:a;b=kn(B,r,b,b===null?r.first:b.next,m,k,y,o,i,l)}u.set(k,b),v=[],T=[],d=b.next;continue}if(Za(p,m,y),(p.e.f&ye)!==0&&At(p.e),p!==d){if(g!==void 0&&g.has(p)){if(v.length<T.length){var F=T[0],D;b=F.prev;var le=v[0],K=v[v.length-1];for(D=0;D<v.length;D+=1)yn(v[D],F,a);for(D=0;D<T.length;D+=1)g.delete(T[D]);Me(r,le.prev,K.next),Me(r,b,le),Me(r,K,F),d=F,b=K,y-=1,v=[],T=[]}else g.delete(p),yn(p,d,a),Me(r,p.prev,p.next),Me(r,p,b===null?r.first:b.next),Me(r,b,p),b=p;continue}for(v=[],T=[];d!==null&&d.k!==k;)(d.e.f&ye)===0&&(g??=new Set).add(d),T.push(d),d=d.next;if(d===null)continue;p=d}v.push(p),b=p,d=p.next}if(d!==null||g!==void 0){for(var He=g===void 0?[]:Qr(g);d!==null;)(d.e.f&ye)===0&&He.push(d),d=d.next;var Ne=He.length;if(Ne>0){var Le=null;ks(r,He,Le)}}t.first=r.first&&r.first.e,t.last=b&&b.e;for(var We of n.values())Q(We.e);n.clear()}function Za(t,e,r,n){Ke(t.v,e),t.i=r}function kn(t,e,r,n,a,o,i,s,l,c,u){var h=(l&Yo)!==0,d=(l&Ko)===0,g=h?d?kr(a,!1,!1):Be(a):a,b=(l&Qo)===0?i:Be(i),v={i:b,v:g,k:o,a:null,e:null,prev:r,next:n};try{if(t===null){var T=document.createDocumentFragment();T.append(t=Xe())}return v.e=H(()=>s(t,g,b,c),$),v.e.prev=r&&r.e,v.e.next=n&&n.e,r===null?u||(e.first=v):(r.next=v,r.e.next=v.e),n!==null&&(n.prev=v,n.e.prev=v.e),v}finally{}}function yn(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,a=e?e.e.nodes_start:r,o=t.e.nodes_start;o!==null&&o!==n;){var i=he(o);a.before(o),o=i}}function Me(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function wn(t,e,r=!1,n=!1,a=!1){var o=t,i="";Yt(()=>{var s=M;if(i===(i=e()??"")){$&&Se();return}if(s.nodes_start!==null&&(Ca(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),i!==""){if($){I.data;for(var l=Se(),c=l;l!==null&&(l.nodeType!==dt||l.data!=="");)c=l,l=he(l);if(l===null)throw qt(),it;Ze(I,c),o=J(l);return}var u=i+"";r?u=`<svg>${u}</svg>`:n&&(u=`<math>${u}</math>`);var h=za(u);if((r||n)&&(h=ve(h)),Ze(ve(h),h.lastChild),r||n)for(;ve(h);)o.before(ve(h));else o.before(h)}})}function xs(t,e,r,n,a,o){let i=$;$&&Se();var s,l,c=null;$&&I.nodeType===pi&&(c=I,Se());var u=$?I:t,h;Fe(()=>{const d=e()||null;var g=d==="svg"?ii:null;d!==s&&(h&&(d===null?Oe(h,()=>{h=null,l=null}):d===l?At(h):Q(h)),d&&d!==l&&(h=H(()=>{if(c=$?c:g?document.createElementNS(g,d):document.createElement(d),Ze(c,c),n){$&&vs(d)&&c.append(document.createComment(""));var b=$?ve(c):c.appendChild(Xe());$&&(b===null?X(!1):J(b)),n(c,b)}M.nodes_end=c,u.before(c)})),s=d,s&&(l=s))},xt),i&&(X(!0),J(u))}function Cs(t,e){ft(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const a=document.createElement("style");a.id=e.hash,a.textContent=e.code,n.appendChild(a)}})}function Ss(t,e,r){wr(()=>{var n=Tr(()=>e(t,r?.())||{});if(n?.destroy)return()=>n.destroy()})}function Ts(t,e){var r=void 0,n;Fe(()=>{r!==(r=e())&&(n&&(Q(n),n=null),r&&(n=H(()=>{wr(()=>r(t))})))})}function Va(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=Va(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Es(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=Va(t))&&(n&&(n+=" "),n+=e);return n}function xn(t){return typeof t=="object"?Es(t):t??""}const Ua=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function $s(t,e,r){var n=t==null?"":""+t;if(e&&(n=n?n+" "+e:e),r){for(var a in r)if(r[a])n=n?n+" "+a:a;else if(n.length)for(var o=a.length,i=0;(i=n.indexOf(a,i))>=0;){var s=i+o;(i===0||Ua.includes(n[i-1]))&&(s===n.length||Ua.includes(n[s]))?n=(i===0?"":n.substring(0,i))+n.substring(s+1):i=s}}return n===""?null:n}function qa(t,e=!1){var r=e?" !important;":";",n="";for(var a in t){var o=t[a];o!=null&&o!==""&&(n+=" "+a+": "+o+r)}return n}function Cn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Os(t,e){if(e){var r="",n,a;if(Array.isArray(e)?(n=e[0],a=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,i=0,s=!1,l=[];n&&l.push(...Object.keys(n).map(Cn)),a&&l.push(...Object.keys(a).map(Cn));var c=0,u=-1;const v=t.length;for(var h=0;h<v;h++){var d=t[h];if(s?d==="/"&&t[h-1]==="*"&&(s=!1):o?o===d&&(o=!1):d==="/"&&t[h+1]==="*"?s=!0:d==='"'||d==="'"?o=d:d==="("?i++:d===")"&&i--,!s&&o===!1&&i===0){if(d===":"&&u===-1)u=h;else if(d===";"||h===v-1){if(u!==-1){var g=Cn(t.substring(c,u).trim());if(!l.includes(g)){d!==";"&&h++;var b=t.substring(c,h).trim();r+=" "+b+";"}}c=h+1,u=-1}}}}return n&&(r+=qa(n)),a&&(r+=qa(a,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Sn(t,e,r,n,a,o){var i=t.__className;if($||i!==r||i===void 0){var s=$s(r,n,o);(!$||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s)),t.__className=r}else if(o&&a!==o)for(var l in o){var c=!!o[l];(a==null||c!==!!a[l])&&t.classList.toggle(l,c)}return o}function Tn(t,e={},r,n){for(var a in r){var o=r[a];e[a]!==o&&(r[a]==null?t.style.removeProperty(a):t.style.setProperty(a,o,n))}}function En(t,e,r,n){var a=t.__style;if($||a!==e){var o=Os(e,n);(!$||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}else n&&(Array.isArray(n)?(Tn(t,r?.[0],n[0]),Tn(t,r?.[1],n[1],"important")):Tn(t,r,n));return n}function $n(t,e,r=!1){if(t.multiple){if(e==null)return;if(!dr(e))return Ei();for(var n of t.options)n.selected=e.includes(Ha(n));return}for(n of t.options){var a=Ha(n);if(qi(a,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function As(t){var e=new MutationObserver(()=>{$n(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ka(()=>{e.disconnect()})}function Ha(t){return"__value"in t?t.__value:t.value}const Jt=Symbol("class"),er=Symbol("style"),Wa=Symbol("is custom element"),Ga=Symbol("is html");function Ms(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Or(t,e,r,n){var a=Ya(t);$&&(a[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||a[e]!==(a[e]=r)&&(e==="loading"&&(t[hi]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ka(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Rs(t,e,r,n,a=!1){var o=Ya(t),i=o[Wa],s=!o[Ga];let l=$&&i;l&&X(!1);var c=e||{},u=t.tagName==="OPTION";for(var h in e)h in r||(r[h]=null);r.class?r.class=xn(r.class):r[Jt]&&(r.class=null),r[er]&&(r.style??=null);var d=Ka(t);for(const p in r){let y=r[p];if(u&&p==="value"&&y==null){t.value=t.__value="",c[p]=y;continue}if(p==="class"){var g=t.namespaceURI==="http://www.w3.org/1999/xhtml";Sn(t,g,y,n,e?.[Jt],r[Jt]),c[p]=y,c[Jt]=r[Jt];continue}if(p==="style"){En(t,y,e?.[er],r[er]),c[p]=y,c[er]=r[er];continue}var b=c[p];if(!(y===b&&!(y===void 0&&t.hasAttribute(p)))){c[p]=y;var v=p[0]+p[1];if(v!=="$$")if(v==="on"){const C={},L="$$"+p;let B=p.slice(2);var T=cs(B);if(ss(B)&&(B=B.slice(0,-7),C.capture=!0),!T&&b){if(y!=null)continue;t.removeEventListener(B,c[L],C),c[L]=null}if(y!=null)if(T)t[`__${B}`]=y,vn([B]);else{let F=function(D){c[p].call(this,D)};c[L]=Pa(B,t,F,C)}else T&&(t[`__${B}`]=void 0)}else if(p==="style")Or(t,p,y);else if(p==="autofocus")ns(t,!!y);else if(!i&&(p==="__value"||p==="value"&&y!=null))t.value=t.__value=y;else if(p==="selected"&&u)Ms(t,y);else{var m=p;s||(m=ds(m));var k=m==="defaultValue"||m==="defaultChecked";if(y==null&&!i&&!k)if(o[p]=null,m==="value"||m==="checked"){let C=t;const L=e===void 0;if(m==="value"){let B=C.defaultValue;C.removeAttribute(m),C.defaultValue=B,C.value=C.__value=L?B:null}else{let B=C.defaultChecked;C.removeAttribute(m),C.defaultChecked=B,C.checked=L?B:!1}}else t.removeAttribute(p);else k||d.includes(m)&&(i||typeof y!="string")?t[m]=y:typeof y!="function"&&Or(t,m,y)}}}return l&&X(!0),c}function Is(t,e,r=[],n=[],a,o=!1){ca(r,n,i=>{var s=void 0,l={},c=t.nodeName==="SELECT",u=!1;if(Fe(()=>{var d=e(...i.map(E)),g=Rs(t,s,d,a,o);u&&c&&"value"in d&&$n(t,d.value);for(let v of Object.getOwnPropertySymbols(l))d[v]||Q(l[v]);for(let v of Object.getOwnPropertySymbols(d)){var b=d[v];v.description===si&&(!s||b!==s[v])&&(l[v]&&Q(l[v]),l[v]=H(()=>Ts(t,()=>b))),g[v]=b}s=g}),c){var h=t;wr(()=>{$n(h,s.value,!0),As(h)})}u=!0})}function Ya(t){return t.__attributes??={[Wa]:t.nodeName.includes("-"),[Ga]:t.namespaceURI===oi}}var Qa=new Map;function Ka(t){var e=Qa.get(t.nodeName);if(e)return e;Qa.set(t.nodeName,e=[]);for(var r,n=t,a=Element.prototype;a!==n;){r=ci(n);for(var o in r)r[o].set&&e.push(o);n=Gn(n)}return e}function Xa(t,e){return t===e||t?.[Ge]===e}function Ja(t={},e,r,n){return wr(()=>{var a,o;return fn(()=>{a=o,o=[],Tr(()=>{t!==r(...o)&&(e(t,...o),a&&Xa(r(...a),t)&&e(null,...a))})}),()=>{ft(()=>{o&&Xa(r(...o),t)&&e(null,...o)})}}),t}let Ar=!1;function js(t){var e=Ar;try{return Ar=!1,[t(),Ar]}finally{Ar=e}}const Ns={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function eo(t,e,r){return new Proxy({props:t,exclude:e},Ns)}const Ls={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Vt(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let a=t.props[n];Vt(a)&&(a=a());const o=Pe(a,e);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Vt(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const a=Pe(n,e);return a&&!a.configurable&&(a.configurable=!0),a}}},has(t,e){if(e===Ge||e===nn)return!1;for(let r of t.props)if(Vt(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Vt(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function Ps(...t){return new Proxy({props:t},Ls)}function W(t,e,r,n){var a=!Wt||(r&Jo)!==0,o=(r&ti)!==0,i=(r&ri)!==0,s=n,l=!0,c=()=>(l&&(l=!1,s=i?Tr(n):n),s),u;if(o){var h=Ge in t||nn in t;u=Pe(t,e)?.set??(h&&e in t?p=>t[e]=p:void 0)}var d,g=!1;o?[d,g]=js(()=>t[e]):d=t[e],d===void 0&&n!==void 0&&(d=c(),u&&(a&&xi(),u(d)));var b;if(a?b=()=>{var p=t[e];return p===void 0?c():(l=!0,p)}:b=()=>{var p=t[e];return p!==void 0&&(s=void 0),p===void 0?s:p},a&&(r&ei)===0)return b;if(u){var v=t.$$legacy;return function(p,y){return arguments.length>0?((!a||!y||v||g)&&u(y?b():p),p):b()}}var T=!1,m=((r&Xo)!==0?gr:sn)(()=>(T=!1,b()));o&&E(m);var k=M;return function(p,y){if(arguments.length>0){const C=y?E(m):a&&o?Ot(p):p;return ie(m,C),T=!0,s!==void 0&&(s=C),p}return vt&&T||(k.f&ct)!==0?m.v:E(m)}}function zs(t){return new Bs(t)}class Bs{#e;#t;constructor(e){var r=new Map,n=(o,i)=>{var s=kr(i,!1,!1);return r.set(o,s),s};const a=new Proxy({...e.props||{},$$events:{}},{get(o,i){return E(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===nn?!0:(E(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,s){return ie(r.get(i)??n(i,s),s),Reflect.set(o,i,s)}});this.#t=(e.hydrate?gs:Ba)(e.component,{target:e.target,anchor:e.anchor,props:a,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&V(),this.#e=a.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||wt(this,o,{get(){return this.#t[o]},set(i){this.#t[o]=i},enumerable:!0});this.#t.$set=o=>{Object.assign(a,o)},this.#t.$destroy=()=>{bs(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...a)=>r.call(this,...a);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(a=>a!==n)}}$destroy(){this.#t.$destroy()}}let to;typeof HTMLElement=="function"&&(to=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return a=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),Z(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Fs(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=Mr(a,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=zs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Qi(()=>{fn(()=>{this.$$r=!0;for(const n of fr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const a=Mr(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(const n in this.$$l)for(const a of this.$$l[n]){const o=this.$$c.$on(n,a);this.$$l_u.set(a,o)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Mr(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return fr(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Mr(t,e,r,n){const a=r[t]?.type;if(e=a==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(a){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(a){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Fs(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function tr(t,e,r,n,a,o){let i=class extends to{constructor(){super(t,r,a),this.$$p_d=e}static get observedAttributes(){return fr(e).map(s=>(e[s].attribute||s).toLowerCase())}};return fr(e).forEach(s=>{wt(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){l=Mr(s,l,e),this.$$d[s]=l;var c=this.$$c;if(c){var u=Pe(c,s)?.get;u?c[s]=l:c.$set({[s]:l})}}})}),n.forEach(s=>{wt(i.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=i,i}var Ds=(t,e)=>e()(),Zs=Ce('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Vs=Ce(" <!>",1);const Us={hash:"svelte-4thrqu",code:`
|
|
3
3
|
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
|
|
4
4
|
BlinkMacSystemFont,
|
|
5
5
|
avenir next,
|
|
@@ -12,166 +12,15 @@ var LiipGPTButton=function(Fr){"use strict";const Ia="5";typeof window<"u"&&((wi
|
|
|
12
12
|
roboto,
|
|
13
13
|
noto,
|
|
14
14
|
arial,
|
|
15
|
-
sans-serif;}.error-message__retry-button.svelte-4thrqu {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function
|
|
16
|
-
`,u())??""]),D(l,d)};let n=U(e,"body",7),o=U(e,"silent",7),a=ae(void 0);const i=l=>{Q(a,{error:l},!0)};var s=Ce(),c=ee(s);return fs(c,{get failed(){return r}},l=>{var u=Ce(),f=ee(u);{var d=_=>{r(_,()=>R(a).error,()=>()=>{Q(a,void 0)})},m=_=>{var b=Ce(),T=ee(b);on(T,n,()=>i),D(_,b)};Ne(f,_=>{R(a)?_(d):_(m,!1)})}D(l,u)}),D(t,s),gt({get body(){return n()},set body(l){n(l),Z()},get silent(){return o()},set silent(l){o(l),Z()}})}rn(["click"]),Qt(Zo,{body:{},silent:{}},[],[],!0);const ys='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app :where(h1,h2,h3,h4,h5,h6){font-weight:var(--font-weight-bold);line-height:var(--line-height-tight)}.chat-app :where(b,strong){font-weight:var(--font-weight-bold)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow, none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::-moz-placeholder{color:var(--input-placeholder-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}.chat-app *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app>*{color:var(--body-color);font-style:normal;font-weight:var(--font-weight-normal);font-size:var(--body-font-size, var(--font-body));line-height:var(--line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:transparent}.chat-app ::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app *:hover::-webkit-scrollbar-thumb,.chat-app *:active::-webkit-scrollbar-thumb,.chat-app *:focus::-webkit-scrollbar-thumb{visibility:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{position:absolute;inset:0;background-color:transparent;content:""}.chat-app :where(.sr-only){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.fly-in){--fly-in-id: 0;--fly-in-duration: .4s;--fly-out-duration: .2s;--fly-in-delay: .3s;--fly-in-delay-additional: .1s;--fly-in-y: var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease,var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){transform:translateY(0);opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration)}.chat-app :where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-app :where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--12){-webkit-line-clamp:12}.chat-app :where(.container){width:100%;max-width:var(--container-max-width, 1024px);margin:0 auto;padding-right:var(--spacer-16);padding-left:var(--spacer-16)}@container chat-container (min-width: 640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (min-width: 768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(.text-container)>:where(h1){font-size:var(--font-h1)}.chat-app :where(.text-container)>:where(h2){font-size:var(--font-h2)}.chat-app :where(.text-container)>:where(h3){font-size:var(--font-h3)}.chat-app :where(.text-container)>:where(h4,h5,h6){font-size:var(--font-body)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){position:relative;padding-left:1em}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{position:absolute;top:0;left:0;content:"•";font-size:.9em}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container):first-child{margin-top:0}.chat-app :where(.text-container):last-child{margin-bottom:0}.chat-app :where(.text-container) :where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}}@layer base{.svg{width:var(--spacer-r-24);height:auto}.svg svg{display:block;width:100%;height:auto;overflow:visible}}@layer components{.chat-app{display:contents}.chat-app__container{display:flex;height:100%}.chat-app__main{container-name:chat-container;container-type:inline-size;display:block;width:100%;height:100%;transform:scale(1);background:var(--body-background)}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__header{padding:var(--spacer-16);z-index:var(--z-index-header);position:fixed;top:0;right:0;left:0;border-width:var(--header-border-width);border-style:solid;border-color:var(--header-border-color);background:var(--header-background);box-shadow:var(--header-box-shadow);pointer-events:none}@container chat-container (min-width: 640px){.chat-app__header{padding:var(--spacer-12)}}.chat-app__header-container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacer-r-12)}.chat-app__header-container>:where(*){pointer-events:auto}.chat-app__body{position:relative;width:100%;height:100%}.chat-app__page-transition{width:100%;height:100%}.chat-app__aside{visibility:hidden;width:0;overflow:hidden;background:var(--color-brand-100);opacity:0;transition:width .3s ease-in-out,opacity .3s ease-in-out}.chat-app__aside.open{visibility:visible;width:300px;opacity:1}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button:hover .open-button__text{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease)}.open-button:hover .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease),height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{position:relative;width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance}.open-button__avatar{z-index:var(--z-index-local-overlay);position:relative;width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);overflow:clip;border-radius:var(--spacer-r-80);filter:drop-shadow(0 0 8px rgba(0,0,0,.2));transition:transform .2s var(--open-button-ease)}.open-button:hover .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{display:none;position:absolute;right:0;width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color)}:where(.open-button--standalone){position:fixed;right:var(--spacer-r-16);bottom:var(--spacer-r-16)}@media (prefers-reduced-motion: reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}}',ws=()=>{const t=localStorage.getItem("liipgpt-color-scheme");return t==="light"||t==="dark"?t:"system"},xs=t=>{let e=ws();return e==="system"&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),t.includes(e)?e:t[0]??"light"},Cs=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Rs=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ss=new RegExp("(\\d)(\\p{Ll})","gu"),Ts=new RegExp("(\\p{L})(\\d)","gu"),Es=/[^\p{L}\d]+/giu,Rr="$1\0$2",$s="";function As(t,e){let r=t.trim();r=r.replace(Cs,Rr).replace(Rs,Rr),e?.separateNumbers&&(r=r.replace(Ss,Rr).replace(Ts,Rr)),r=r.replace(Es,"\0");let n=0,o=r.length;for(;r.charAt(n)==="\0";)n++;if(n===o)return[];for(;r.charAt(o-1)==="\0";)o--;return r.slice(n,o).split(/\0/g)}function Os(t,e){return js(t,e?.prefixCharacters)+As(t,e).map(Ms(e?.locale)).join(e?.delimiter??" ")}function Is(t,e){return Os(t,{delimiter:"-",...e})}function Ms(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function js(t,e=$s){let r="";for(let n=0;n<t.length;n++){const o=t.charAt(n);if(e.includes(o))r+=o;else break}return r}const Sr=Is;var N;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function r(o){throw new Error}t.assertNever=r,t.arrayToEnum=o=>{const a={};for(const i of o)a[i]=i;return a},t.getValidEnumValues=o=>{const a=t.objectKeys(o).filter(s=>typeof o[o[s]]!="number"),i={};for(const s of a)i[s]=o[s];return t.objectValues(i)},t.objectValues=o=>t.objectKeys(o).map(function(a){return o[a]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const a=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&a.push(i);return a},t.find=(o,a)=>{for(const i of o)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,a=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=n,t.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(N||(N={}));var Vo;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Vo||(Vo={}));const w=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),We=t=>{switch(typeof t){case"undefined":return w.undefined;case"string":return w.string;case"number":return Number.isNaN(t)?w.nan:w.number;case"boolean":return w.boolean;case"function":return w.function;case"bigint":return w.bigint;case"symbol":return w.symbol;case"object":return Array.isArray(t)?w.array:t===null?w.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?w.promise:typeof Map<"u"&&t instanceof Map?w.map:typeof Set<"u"&&t instanceof Set?w.set:typeof Date<"u"&&t instanceof Date?w.date:w.object;default:return w.unknown}},g=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Le extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(a){return a.message},n={_errors:[]},o=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let s=n,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(r(i))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(this),n}static assert(e){if(!(e instanceof Le))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const o of this.issues)if(o.path.length>0){const a=o.path[0];r[a]=r[a]||[],r[a].push(e(o))}else n.push(e(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Le.create=t=>new Le(t);const vn=(t,e)=>{let r;switch(t.code){case g.invalid_type:t.received===w.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case g.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,N.jsonStringifyReplacer)}`;break;case g.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(t.keys,", ")}`;break;case g.invalid_union:r="Invalid input";break;case g.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(t.options)}`;break;case g.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(t.options)}, received '${t.received}'`;break;case g.invalid_arguments:r="Invalid function arguments";break;case g.invalid_return_type:r="Invalid function return type";break;case g.invalid_date:r="Invalid date";break;case g.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:N.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case g.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case g.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case g.custom:r="Invalid input";break;case g.invalid_intersection_types:r="Intersection results could not be merged";break;case g.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case g.not_finite:r="Number must be finite";break;default:r=e.defaultError,N.assertNever(t)}return{message:r}};let Ns=vn;function Ls(){return Ns}const Ps=t=>{const{data:e,path:r,errorMaps:n,issueData:o}=t,a=[...r,...o.path||[]],i={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let s="";const c=n.filter(l=>!!l).slice().reverse();for(const l of c)s=l(i,{data:e,defaultError:s}).message;return{...o,path:a,message:s}};function y(t,e){const r=Ls(),n=Ps({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===vn?void 0:vn].filter(o=>!!o)});t.common.issues.push(n)}class X{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const o of r){if(o.status==="aborted")return A;o.status==="dirty"&&e.dirty(),n.push(o.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const o of r){const a=await o.key,i=await o.value;n.push({key:a,value:i})}return X.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const o of r){const{key:a,value:i}=o;if(a.status==="aborted"||i.status==="aborted")return A;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(n[a.value]=i.value)}return{status:e.value,value:n}}}const A=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),fe=t=>({status:"valid",value:t}),Uo=t=>t.status==="aborted",Wo=t=>t.status==="dirty",wt=t=>t.status==="valid",Tr=t=>typeof Promise<"u"&&t instanceof Promise;var C;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(C||(C={}));class Re{constructor(e,r,n,o){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Go=(t,e)=>{if(wt(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Le(t.common.issues);return this._error=r,this._error}}};function O(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:o}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(i,s)=>{const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??n??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:c??r??s.defaultError}},description:o}}class M{get description(){return this._def.description}_getType(e){return We(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:We(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new X,ctx:{common:e.parent.common,data:e.data,parsedType:We(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Tr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:We(e)},o=this._parseSync({data:e,path:n.path,parent:n});return Go(n,o)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:We(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:r});return wt(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>wt(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:We(e)},o=this._parse({data:e,path:n.path,parent:n}),a=await(Tr(o)?o:Promise.resolve(o));return Go(n,a)}refine(e,r){const n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,a)=>{const i=e(o),s=()=>a.addIssue({code:g.custom,...n(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(e,r){return this._refinement((n,o)=>e(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(e){return new St({schema:this,typeName:$.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return qe.create(this,this._def)}nullable(){return Tt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Se.create(this)}promise(){return Ir.create(this,this._def)}or(e){return $r.create([this,e],this._def)}and(e){return Ar.create(this,e,this._def)}transform(e){return new St({...O(this._def),schema:this,typeName:$.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new _n({...O(this._def),innerType:this,defaultValue:r,typeName:$.ZodDefault})}brand(){return new il({typeName:$.ZodBranded,type:this,...O(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new yn({...O(this._def),innerType:this,catchValue:r,typeName:$.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return wn.create(this,e)}readonly(){return xn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bs=/^c[^\s-]{8,}$/i,Fs=/^[0-9a-z]+$/,Ds=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Zs=/^[a-z0-9_-]{21}$/i,Vs=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Us=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ws=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let mn;const qs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ys=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Qs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ks=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Js=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qo="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Xs=new RegExp(`^${qo}$`);function Ho(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function el(t){return new RegExp(`^${Ho(t)}$`)}function tl(t){let e=`${qo}T${Ho(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function rl(t,e){return!!((e==="v4"||!e)&&qs.test(t)||(e==="v6"||!e)&&Ys.test(t))}function nl(t,e){if(!Vs.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function ol(t,e){return!!((e==="v4"||!e)&&Hs.test(t)||(e==="v6"||!e)&&Qs.test(t))}class Pe extends M{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==w.string){const a=this._getOrReturnCtx(e);return y(a,{code:g.invalid_type,expected:w.string,received:a.parsedType}),A}const n=new X;let o;for(const a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(o=this._getOrReturnCtx(e,o),y(o,{code:g.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")e.data.length>a.value&&(o=this._getOrReturnCtx(e,o),y(o,{code:g.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,s=e.data.length<a.value;(i||s)&&(o=this._getOrReturnCtx(e,o),i?y(o,{code:g.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&y(o,{code:g.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")Ws.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"email",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")mn||(mn=new RegExp(Gs,"u")),mn.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"emoji",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")zs.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"uuid",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")Zs.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"nanoid",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")Bs.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"cuid",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")Fs.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"cuid2",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")Ds.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"ulid",code:g.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),y(o,{validation:"url",code:g.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"regex",code:g.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?tl(a).test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?Xs.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?el(a).test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{code:g.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?Us.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"duration",code:g.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?rl(e.data,a.version)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"ip",code:g.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?nl(e.data,a.alg)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"jwt",code:g.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?ol(e.data,a.version)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"cidr",code:g.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?Ks.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"base64",code:g.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?Js.test(e.data)||(o=this._getOrReturnCtx(e,o),y(o,{validation:"base64url",code:g.invalid_string,message:a.message}),n.dirty()):N.assertNever(a);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(o=>e.test(o),{validation:r,code:g.invalid_string,...C.errToObj(n)})}_addCheck(e){return new Pe({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...C.errToObj(e)})}url(e){return this._addCheck({kind:"url",...C.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...C.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...C.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...C.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...C.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...C.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...C.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...C.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...C.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...C.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...C.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...C.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...C.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...C.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...C.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...C.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...C.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...C.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...C.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...C.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...C.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...C.errToObj(r)})}nonempty(e){return this.min(1,C.errToObj(e))}trim(){return new Pe({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pe({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pe({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Pe.create=t=>new Pe({checks:[],typeName:$.ZodString,coerce:t?.coerce??!1,...O(t)});function al(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,a=Number.parseInt(t.toFixed(o).replace(".","")),i=Number.parseInt(e.toFixed(o).replace(".",""));return a%i/10**o}class xt extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==w.number){const a=this._getOrReturnCtx(e);return y(a,{code:g.invalid_type,expected:w.number,received:a.parsedType}),A}let n;const o=new X;for(const a of this._def.checks)a.kind==="int"?N.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),y(n,{code:g.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?al(e.data,a.value)!==0&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),y(n,{code:g.not_finite,message:a.message}),o.dirty()):N.assertNever(a);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,C.toString(r))}gt(e,r){return this.setLimit("min",e,!1,C.toString(r))}lte(e,r){return this.setLimit("max",e,!0,C.toString(r))}lt(e,r){return this.setLimit("max",e,!1,C.toString(r))}setLimit(e,r,n,o){return new xt({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:C.toString(o)}]})}_addCheck(e){return new xt({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:C.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:C.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:C.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:C.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:C.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:C.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:C.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:C.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:C.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&N.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}xt.create=t=>new xt({checks:[],typeName:$.ZodNumber,coerce:t?.coerce||!1,...O(t)});class Jt extends M{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==w.bigint)return this._getInvalidInput(e);let n;const o=new X;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),y(n,{code:g.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):N.assertNever(a);return{status:o.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return y(r,{code:g.invalid_type,expected:w.bigint,received:r.parsedType}),A}gte(e,r){return this.setLimit("min",e,!0,C.toString(r))}gt(e,r){return this.setLimit("min",e,!1,C.toString(r))}lte(e,r){return this.setLimit("max",e,!0,C.toString(r))}lt(e,r){return this.setLimit("max",e,!1,C.toString(r))}setLimit(e,r,n,o){return new Jt({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:C.toString(o)}]})}_addCheck(e){return new Jt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:C.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:C.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:C.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:C.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:C.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Jt.create=t=>new Jt({checks:[],typeName:$.ZodBigInt,coerce:t?.coerce??!1,...O(t)});class gn extends M{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.boolean,received:n.parsedType}),A}return fe(e.data)}}gn.create=t=>new gn({typeName:$.ZodBoolean,coerce:t?.coerce||!1,...O(t)});class Er extends M{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==w.date){const a=this._getOrReturnCtx(e);return y(a,{code:g.invalid_type,expected:w.date,received:a.parsedType}),A}if(Number.isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return y(a,{code:g.invalid_date}),A}const n=new X;let o;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(o=this._getOrReturnCtx(e,o),y(o,{code:g.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(o=this._getOrReturnCtx(e,o),y(o,{code:g.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):N.assertNever(a);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Er({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:C.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:C.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Er.create=t=>new Er({checks:[],coerce:t?.coerce||!1,typeName:$.ZodDate,...O(t)});class Yo extends M{_parse(e){if(this._getType(e)!==w.symbol){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.symbol,received:n.parsedType}),A}return fe(e.data)}}Yo.create=t=>new Yo({typeName:$.ZodSymbol,...O(t)});class Qo extends M{_parse(e){if(this._getType(e)!==w.undefined){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.undefined,received:n.parsedType}),A}return fe(e.data)}}Qo.create=t=>new Qo({typeName:$.ZodUndefined,...O(t)});class Ko extends M{_parse(e){if(this._getType(e)!==w.null){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.null,received:n.parsedType}),A}return fe(e.data)}}Ko.create=t=>new Ko({typeName:$.ZodNull,...O(t)});class Jo extends M{constructor(){super(...arguments),this._any=!0}_parse(e){return fe(e.data)}}Jo.create=t=>new Jo({typeName:$.ZodAny,...O(t)});class Xo extends M{constructor(){super(...arguments),this._unknown=!0}_parse(e){return fe(e.data)}}Xo.create=t=>new Xo({typeName:$.ZodUnknown,...O(t)});class Ge extends M{_parse(e){const r=this._getOrReturnCtx(e);return y(r,{code:g.invalid_type,expected:w.never,received:r.parsedType}),A}}Ge.create=t=>new Ge({typeName:$.ZodNever,...O(t)});class ea extends M{_parse(e){if(this._getType(e)!==w.undefined){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.void,received:n.parsedType}),A}return fe(e.data)}}ea.create=t=>new ea({typeName:$.ZodVoid,...O(t)});class Se extends M{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),o=this._def;if(r.parsedType!==w.array)return y(r,{code:g.invalid_type,expected:w.array,received:r.parsedType}),A;if(o.exactLength!==null){const i=r.data.length>o.exactLength.value,s=r.data.length<o.exactLength.value;(i||s)&&(y(r,{code:i?g.too_big:g.too_small,minimum:s?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(y(r,{code:g.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(y(r,{code:g.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>o.type._parseAsync(new Re(r,i,r.path,s)))).then(i=>X.mergeArray(n,i));const a=[...r.data].map((i,s)=>o.type._parseSync(new Re(r,i,r.path,s)));return X.mergeArray(n,a)}get element(){return this._def.type}min(e,r){return new Se({...this._def,minLength:{value:e,message:C.toString(r)}})}max(e,r){return new Se({...this._def,maxLength:{value:e,message:C.toString(r)}})}length(e,r){return new Se({...this._def,exactLength:{value:e,message:C.toString(r)}})}nonempty(e){return this.min(1,e)}}Se.create=(t,e)=>new Se({type:t,minLength:null,maxLength:null,exactLength:null,typeName:$.ZodArray,...O(e)});function Ct(t){if(t instanceof V){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=qe.create(Ct(n))}return new V({...t._def,shape:()=>e})}else return t instanceof Se?new Se({...t._def,type:Ct(t.element)}):t instanceof qe?qe.create(Ct(t.unwrap())):t instanceof Tt?Tt.create(Ct(t.unwrap())):t instanceof st?st.create(t.items.map(e=>Ct(e))):t}class V extends M{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=N.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==w.object){const l=this._getOrReturnCtx(e);return y(l,{code:g.invalid_type,expected:w.object,received:l.parsedType}),A}const{status:n,ctx:o}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ge&&this._def.unknownKeys==="strip"))for(const l in o.data)i.includes(l)||s.push(l);const c=[];for(const l of i){const u=a[l],f=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new Re(o,f,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Ge){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of s)c.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(l==="strict")s.length>0&&(y(o,{code:g.unrecognized_keys,keys:s}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of s){const f=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new Re(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const f=await u.key,d=await u.value;l.push({key:f,value:d,alwaysSet:u.alwaysSet})}return l}).then(l=>X.mergeObjectSync(n,l)):X.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return C.errToObj,new V({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{const o=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:C.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new V({...this._def,unknownKeys:"strip"})}passthrough(){return new V({...this._def,unknownKeys:"passthrough"})}extend(e){return new V({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new V({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:$.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new V({...this._def,catchall:e})}pick(e){const r={};for(const n of N.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new V({...this._def,shape:()=>r})}omit(e){const r={};for(const n of N.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new V({...this._def,shape:()=>r})}deepPartial(){return Ct(this)}partial(e){const r={};for(const n of N.objectKeys(this.shape)){const o=this.shape[n];e&&!e[n]?r[n]=o:r[n]=o.optional()}return new V({...this._def,shape:()=>r})}required(e){const r={};for(const n of N.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof qe;)a=a._def.innerType;r[n]=a}return new V({...this._def,shape:()=>r})}keyof(){return na(N.objectKeys(this.shape))}}V.create=(t,e)=>new V({shape:()=>t,unknownKeys:"strip",catchall:Ge.create(),typeName:$.ZodObject,...O(e)}),V.strictCreate=(t,e)=>new V({shape:()=>t,unknownKeys:"strict",catchall:Ge.create(),typeName:$.ZodObject,...O(e)}),V.lazycreate=(t,e)=>new V({shape:t,unknownKeys:"strip",catchall:Ge.create(),typeName:$.ZodObject,...O(e)});class $r extends M{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function o(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(s=>new Le(s.ctx.common.issues));return y(r,{code:g.invalid_union,unionErrors:i}),A}if(r.common.async)return Promise.all(n.map(async a=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(o);{let a;const i=[];for(const c of n){const l={...r,common:{...r.common,issues:[]},parent:null},u=c._parseSync({data:r.data,path:r.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(c=>new Le(c));return y(r,{code:g.invalid_union,unionErrors:s}),A}}get options(){return this._def.options}}$r.create=(t,e)=>new $r({options:t,typeName:$.ZodUnion,...O(e)});function bn(t,e){const r=We(t),n=We(e);if(t===e)return{valid:!0,data:t};if(r===w.object&&n===w.object){const o=N.objectKeys(e),a=N.objectKeys(t).filter(s=>o.indexOf(s)!==-1),i={...t,...e};for(const s of a){const c=bn(t[s],e[s]);if(!c.valid)return{valid:!1};i[s]=c.data}return{valid:!0,data:i}}else if(r===w.array&&n===w.array){if(t.length!==e.length)return{valid:!1};const o=[];for(let a=0;a<t.length;a++){const i=t[a],s=e[a],c=bn(i,s);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return r===w.date&&n===w.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Ar extends M{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),o=(a,i)=>{if(Uo(a)||Uo(i))return A;const s=bn(a.value,i.value);return s.valid?((Wo(a)||Wo(i))&&r.dirty(),{status:r.value,value:s.data}):(y(n,{code:g.invalid_intersection_types}),A)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,i])=>o(a,i)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Ar.create=(t,e,r)=>new Ar({left:t,right:e,typeName:$.ZodIntersection,...O(r)});class st extends M{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.array)return y(n,{code:g.invalid_type,expected:w.array,received:n.parsedType}),A;if(n.data.length<this._def.items.length)return y(n,{code:g.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),A;!this._def.rest&&n.data.length>this._def.items.length&&(y(n,{code:g.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((i,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Re(n,i,n.path,s)):null}).filter(i=>!!i);return n.common.async?Promise.all(a).then(i=>X.mergeArray(r,i)):X.mergeArray(r,a)}get items(){return this._def.items}rest(e){return new st({...this._def,rest:e})}}st.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new st({items:t,typeName:$.ZodTuple,rest:null,...O(e)})};class Or extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.object)return y(n,{code:g.invalid_type,expected:w.object,received:n.parsedType}),A;const o=[],a=this._def.keyType,i=this._def.valueType;for(const s in n.data)o.push({key:a._parse(new Re(n,s,n.path,s)),value:i._parse(new Re(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?X.mergeObjectAsync(r,o):X.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof M?new Or({keyType:e,valueType:r,typeName:$.ZodRecord,...O(n)}):new Or({keyType:Pe.create(),valueType:e,typeName:$.ZodRecord,...O(r)})}}class ta extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.map)return y(n,{code:g.invalid_type,expected:w.map,received:n.parsedType}),A;const o=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([s,c],l)=>({key:o._parse(new Re(n,s,n.path,[l,"key"])),value:a._parse(new Re(n,c,n.path,[l,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of i){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return A;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(l.value,u.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const c of i){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return A;(l.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(l.value,u.value)}return{status:r.value,value:s}}}}ta.create=(t,e,r)=>new ta({valueType:e,keyType:t,typeName:$.ZodMap,...O(r)});class Xt extends M{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==w.set)return y(n,{code:g.invalid_type,expected:w.set,received:n.parsedType}),A;const o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(y(n,{code:g.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(y(n,{code:g.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());const a=this._def.valueType;function i(c){const l=new Set;for(const u of c){if(u.status==="aborted")return A;u.status==="dirty"&&r.dirty(),l.add(u.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((c,l)=>a._parse(new Re(n,c,n.path,l)));return n.common.async?Promise.all(s).then(c=>i(c)):i(s)}min(e,r){return new Xt({...this._def,minSize:{value:e,message:C.toString(r)}})}max(e,r){return new Xt({...this._def,maxSize:{value:e,message:C.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Xt.create=(t,e)=>new Xt({valueType:t,minSize:null,maxSize:null,typeName:$.ZodSet,...O(e)});class ra extends M{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}ra.create=(t,e)=>new ra({getter:t,typeName:$.ZodLazy,...O(e)});class kn extends M{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return y(r,{received:r.data,code:g.invalid_literal,expected:this._def.value}),A}return{status:"valid",value:e.data}}get value(){return this._def.value}}kn.create=(t,e)=>new kn({value:t,typeName:$.ZodLiteral,...O(e)});function na(t,e){return new Rt({values:t,typeName:$.ZodEnum,...O(e)})}class Rt extends M{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return y(r,{expected:N.joinValues(n),received:r.parsedType,code:g.invalid_type}),A}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return y(r,{received:r.data,code:g.invalid_enum_value,options:n}),A}return fe(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Rt.create(e,{...this._def,...r})}exclude(e,r=this._def){return Rt.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Rt.create=na;class oa extends M{_parse(e){const r=N.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==w.string&&n.parsedType!==w.number){const o=N.objectValues(r);return y(n,{expected:N.joinValues(o),received:n.parsedType,code:g.invalid_type}),A}if(this._cache||(this._cache=new Set(N.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=N.objectValues(r);return y(n,{received:n.data,code:g.invalid_enum_value,options:o}),A}return fe(e.data)}get enum(){return this._def.values}}oa.create=(t,e)=>new oa({values:t,typeName:$.ZodNativeEnum,...O(e)});class Ir extends M{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.promise&&r.common.async===!1)return y(r,{code:g.invalid_type,expected:w.promise,received:r.parsedType}),A;const n=r.parsedType===w.promise?r.data:Promise.resolve(r.data);return fe(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ir.create=(t,e)=>new Ir({type:t,typeName:$.ZodPromise,...O(e)});class St extends M{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),o=this._def.effect||null,a={addIssue:i=>{y(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const i=o.transform(n.data,a);if(n.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return A;const c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?A:c.status==="dirty"||r.value==="dirty"?Kt(c.value):c});{if(r.value==="aborted")return A;const s=this._def.schema._parseSync({data:i,path:n.path,parent:n});return s.status==="aborted"?A:s.status==="dirty"||r.value==="dirty"?Kt(s.value):s}}if(o.type==="refinement"){const i=s=>{const c=o.refinement(s,a);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?A:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?A:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(o.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!wt(i))return A;const s=o.transform(i.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>wt(i)?Promise.resolve(o.transform(i.value,a)).then(s=>({status:r.value,value:s})):A);N.assertNever(o)}}St.create=(t,e,r)=>new St({schema:t,typeName:$.ZodEffects,effect:e,...O(r)}),St.createWithPreprocess=(t,e,r)=>new St({schema:e,effect:{type:"preprocess",transform:t},typeName:$.ZodEffects,...O(r)});class qe extends M{_parse(e){return this._getType(e)===w.undefined?fe(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}qe.create=(t,e)=>new qe({innerType:t,typeName:$.ZodOptional,...O(e)});class Tt extends M{_parse(e){return this._getType(e)===w.null?fe(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Tt.create=(t,e)=>new Tt({innerType:t,typeName:$.ZodNullable,...O(e)});class _n extends M{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===w.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}_n.create=(t,e)=>new _n({innerType:t,typeName:$.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...O(e)});class yn extends M{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Tr(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Le(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Le(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}yn.create=(t,e)=>new yn({innerType:t,typeName:$.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...O(e)});class aa extends M{_parse(e){if(this._getType(e)!==w.nan){const n=this._getOrReturnCtx(e);return y(n,{code:g.invalid_type,expected:w.nan,received:n.parsedType}),A}return{status:"valid",value:e.data}}}aa.create=t=>new aa({typeName:$.ZodNaN,...O(t)});class il extends M{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class wn extends M{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?A:a.status==="dirty"?(r.dirty(),Kt(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{const o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?A:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(e,r){return new wn({in:e,out:r,typeName:$.ZodPipeline})}}class xn extends M{_parse(e){const r=this._def.innerType._parse(e),n=o=>(wt(o)&&(o.value=Object.freeze(o.value)),o);return Tr(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}xn.create=(t,e)=>new xn({innerType:t,typeName:$.ZodReadonly,...O(e)});var $;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})($||($={}));const h=Pe.create,Mr=xt.create,Te=gn.create;Ge.create;const er=Se.create,L=V.create,jr=$r.create;Ar.create,st.create;const He=Or.create,sl=kn.create,Nr=Rt.create;Ir.create,qe.create,Tt.create;const ll=640,cl=1024;let Lr=null;const ul=()=>{if(Lr)return Lr;if(!globalThis.document)return 16;const t=globalThis.document.querySelector(":root");return Lr=Number(getComputedStyle(t).fontSize.slice(0,-2)),Lr},ia=({minRem:t,maxRem:e})=>{const r=ul(),n=ll/r,o=cl/r,a=(e-t)/(o-n),i=-n*a+t;return`clamp( ${t}rem, ${i}rem + ${a*100}cqw, ${e}rem )`},Cn=L({minRem:Mr(),maxRem:Mr()}),Pr=L({0:h().optional(),50:h(),100:h(),200:h(),300:h(),400:h(),500:h(),600:h(),700:h(),800:h(),900:h(),950:h(),1e3:h().optional()}),Rn=L({color:h().optional(),background:h().optional(),borderWidth:h().optional(),borderColor:h().optional(),boxShadow:h().optional()}),dl=L({borderRadius:Cn.optional(),custom:He(h(),jr([h(),Mr()])).optional(),hover:Rn.optional(),focus:Rn.optional()}).and(Rn),fl=L({family:h()}),hl=He(Nr(["predefinedQuestion","edit","newConversation","voteUp","voteDown","retry","message","messageLoading","thread","submit","abort","expand","help","attach","record","reward","share","audio","copy","dismiss","menu","info","menuClose","chevronDown","internalLink","externalLink","liip","avatar","openChat","speechInput","lightMode","darkMode"]),h()),pl=L({font:fl,colors:L({brand:Pr,accent:Pr.optional(),highlight:Pr,grey:Pr}),components:He(h(),dl),svgs:hl}),Br=L({customCSS:h().optional(),fontCSS:h().optional(),fontURLs:h().array().optional(),tokens:pl});L({light:Br,dark:Br});const vl=L({light:Br,dark:Br}).deepPartial(),ml=t=>typeof t=="string"?t:typeof t=="object"?t.minRem===t.maxRem?`${t.minRem}rem`:ia(t):"",Sn=(t,e,r,n=!1)=>{let o="";return r.forEach(a=>{let i=e[a];n&&!i&&a==="borderWidth"&&(i="0px"),n&&!i&&a==="borderColor"&&(i="transparent"),i&&(o+=`--${Sr(t)}-${Sr(a)}:${ml(i)}; `)}),o},gl=(t,e)=>{let r="";return r+=Sn(t,e,["background","borderWidth","borderColor","boxShadow","borderRadius","color"],!0),e.hover&&(r+=Sn(`${t}-hover`,e.hover,["background","borderWidth","borderColor","boxShadow","color"])),e.focus&&(r+=Sn(`${t}-focus`,e.focus,["background","borderWidth","borderColor","boxShadow","color"])),e.custom&&(r+=Object.entries(e.custom).map(([n,o])=>`--${t}-${Sr(n)}:${o}`).join("; ")+"; "),r},bl=(t,e)=>Object.entries(e).map(([r,n])=>`--color-${t}-${r}:${n}`).join("; ")+"; ",kl=t=>`--font-family: ${t.family};`,_l=t=>{const e=kl(t.font),r=Object.entries(t.colors).map(([o,a])=>bl(o,a)).join(""),n=Object.entries(t.components).map(([o,a])=>gl(Sr(o),a)).join("");return`.chat-app {${e} ${r} ${n}};`};var Tn={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};const sa=L({50:h(),100:h(),200:h(),300:h(),400:h(),500:h(),600:h(),700:h(),800:h(),900:h(),950:h()}),la=Nr(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),ca=jr([sa,la]),yl=jr([sa.and(L({0:h(),1e3:h()})),la]),ua=L({avatarImageUrl:h().optional(),colors:L({brand:ca.optional(),highlight:ca.optional(),grey:yl.optional(),background:h().optional(),text:h().optional(),anchor:L({default:h().optional(),hover:h().optional()}).optional()}).optional(),font:L({size:Cn.optional(),family:h().optional(),urls:er(h()).optional()}).optional(),borderRadius:Cn.optional(),fineGrained:vl.optional()}),wl=L({blocked:h(),maintenance:h(),"rate-limit":h(),"server-error":h(),"too-short":h(),"too-long":h(),"quota-reached":h(),aborted:h(),"sse-error":h(),"client-error":h(),"unexpected-call":h(),"incomplete-error":h(),"feedback-failed":h(),"speech-not-supported":h(),"speech-transcription-failed":h(),"speech-no-text-detected":h(),"speech-microphone-access-denied":h(),"pii-detected":h()}),xl=L({email:h(),creditCard:h(),ahv:h(),phoneSwiss:h(),phoneInternational:h(),swissPassport:h(),longNumber:h()}),da=L({predefinedQuestions:h(),introductionTitle:h(),introductionDisclaimer:h().optional(),referenceTitle:h(),chatInputPlaceholder:h(),chatInputPlaceholderListening:h().optional(),chatInputSubmit:h(),chatInputStartListening:h(),chatInputStopListening:h(),referenceLink:h(),newChat:h(),maintenanceModeError:h(),messageBotLoading:h(),messageBotError:h(),messageBotDefaultError:h(),chatFooterText:h().optional(),scrollToBottom:h(),openButtonTitle:h().optional(),openButtonDescription:h().optional(),openMenu:h(),openInfo:h(),aboutThisChat:h().optional(),closeMenu:h(),closeChat:h(),close:h(),send:h(),thankYouForFeedback:h(),giveFeedback:h(),sendFeedback:h(),feedbackFormTitle:h(),feedbackFormMessage:h(),feedbackFormMessagePlaceholder:h(),feedbackFormEmail:h(),feedbackFormEmailPlaceholder:h(),answerGood:h(),answerBad:h(),classificationSubmit:h(),classificationThankYou:h(),classificationTitle:h(),selectLanguage:h(),lightMode:h(),darkMode:h()}),Et=Nr(["en","de","fr","it"]),fa=He(Et,da.partial());He(Et,wl),He(Et,xl);const ha=L({label:h(),options:er(L({label:h(),value:Mr()}))}),Cl=L({label:h(),icon:h(),url:h(),target:Nr(["_blank","_self"]).optional()}),Rl=L({label:h().nullable(),question:h()}),pa=L({impact:ha.optional(),quality:ha.optional()});L({classification:pa.optional()}),L({predefinedQuestions:er(Rl)}),jr([L({maintenance:sl(!0)}),L({id:h(),cID:h()})]),He(Et,da);const Sl=L({showPredefinedQuestions:Te(),showOverallFeedbackButton:Te(),showCloseChatButton:Te(),showContextMenu:Te(),showContextInfo:Te(),allowAudioInput:Te(),blockPII:Te(),questionPrefix:h(),menu:He(Et,er(Cl)).optional(),supportedLanguages:er(Et),classification:pa.optional(),showTextFeedback:Te(),theme:ua,translations:fa,buttonHref:h().optional(),addQueryToUrlParams:Te().optional(),renderKatex:Te().optional()}).partial().and(L({theme:L({name:h().optional()}).optional()})),En=t=>typeof t=="string"?Tn[t]:t,Tl=t=>{const e=En(t?.colors?.brand||Tn.gray),r=En(t?.colors?.highlight||e),n={0:"#ffffff",1e3:"#000000",...En(t?.colors?.grey||Tn.gray)},o={avatarImageUrl:t.avatarImageUrl,colors:{brand:e,highlight:r,grey:n,background:t?.colors?.background||n[0],text:t?.colors?.text||n[900],anchor:{default:t?.colors?.anchor?.default||e[600],hover:t?.colors?.anchor?.hover||e[800]}},font:{size:t.font?.size||{minRem:1,maxRem:1.2},family:t.font?.family||"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif",urls:t.font?.urls||[]},borderRadius:t.borderRadius||{minRem:.25,maxRem:.5}};let a="";return o.avatarImageUrl?a=`<img src="${o.avatarImageUrl}" alt="Avatar" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%; aspect-ratio: 1 / 1; display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));" />`:a=`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
--logo-color2-transparent: ${o.colors.highlight[500]};
|
|
25
|
-
|
|
26
|
-
--logo-color3: ${o.colors.brand[400]}; /* Pink-orange */
|
|
27
|
-
--logo-color3-transparent: ${o.colors.highlight[500]};
|
|
28
|
-
|
|
29
|
-
--logo-color4: ${o.colors.highlight[400]}; /* Magenta */
|
|
30
|
-
--logo-color4-transparent: ${o.colors.brand[500]};
|
|
31
|
-
|
|
32
|
-
--logo-glass-color: oklch(1 0 0 / 0.2); /* Soft white glass effect */
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
#group1 {
|
|
36
|
-
animation: group1_anim 8000ms ease-in-out infinite normal forwards;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes group1_anim {
|
|
40
|
-
0% { transform: translate(30px, 30px); }
|
|
41
|
-
25% { transform: translate(50px, 100px); }
|
|
42
|
-
50% { transform: translate(90px, 30px); }
|
|
43
|
-
75% { transform: translate(50px, 50px); }
|
|
44
|
-
100% { transform: translate(30px, 30px); }
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
#group2 {
|
|
48
|
-
animation: group2_anim 8000ms ease-in-out infinite normal forwards;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@keyframes group2_anim {
|
|
52
|
-
0% { transform: translate(-35px, -35px); }
|
|
53
|
-
25% { transform: translate(25px, 40px); }
|
|
54
|
-
50% { transform: translate(100px, 35px); }
|
|
55
|
-
75% { transform: translate(25px, 25px); }
|
|
56
|
-
100% { transform: translate(-35px, -35px); }
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
#group3 {
|
|
60
|
-
overflow: visible;
|
|
61
|
-
animation: group3_anim 8000ms ease-in-out infinite normal forwards;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@keyframes group3_anim {
|
|
65
|
-
0% { transform: translate(120px, 20px); }
|
|
66
|
-
25% { transform: translate(30px, 17px); }
|
|
67
|
-
50% { transform: translate(35px, 20px); }
|
|
68
|
-
75% { transform: translate(30px, 120px); }
|
|
69
|
-
100% { transform: translate(120px, 20px); }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
#group4 {
|
|
73
|
-
animation: group4_anim 12000ms ease-in-out infinite normal forwards;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@keyframes group4_anim {
|
|
77
|
-
0% { transform: translate(40px, -40px); }
|
|
78
|
-
25% { transform: translate(25px, 45px); }
|
|
79
|
-
50% { transform: translate(-20px, 120px); }
|
|
80
|
-
75% { transform: translate(50px, 0px); }
|
|
81
|
-
100% { transform: translate(40px, -40px); }
|
|
82
|
-
}
|
|
83
|
-
</style>
|
|
84
|
-
<defs>
|
|
85
|
-
<!-- Define the circular masks -->
|
|
86
|
-
<mask id="circleMask1">
|
|
87
|
-
<rect width="100" height="100" fill="black" />
|
|
88
|
-
<circle cx="50" cy="50" r="50" fill="white" />
|
|
89
|
-
</mask>
|
|
90
|
-
<mask id="circleMask2">
|
|
91
|
-
<rect width="100" height="100" fill="black" />
|
|
92
|
-
<circle cx="50" cy="50" r="46" fill="white" />
|
|
93
|
-
</mask>
|
|
94
|
-
|
|
95
|
-
<!-- Radial Gradients for Animations -->
|
|
96
|
-
<radialGradient id="gradient1" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
97
|
-
<stop offset="0%" stop-color="var(--logo-color1)" />
|
|
98
|
-
<stop offset="80%" stop-color="var(--logo-color1-transparent)" />
|
|
99
|
-
</radialGradient>
|
|
100
|
-
<radialGradient id="gradient2" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
101
|
-
<stop offset="0%" stop-color="var(--logo-color2)" />
|
|
102
|
-
<stop offset="80%" stop-color="var(--logo-color2-transparent)" />
|
|
103
|
-
</radialGradient>
|
|
104
|
-
<radialGradient id="gradient3" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
105
|
-
<stop offset="0%" stop-color="var(--logo-color3)" />
|
|
106
|
-
<stop offset="50%" stop-color="var(--logo-color3-transparent)" />
|
|
107
|
-
</radialGradient>
|
|
108
|
-
<radialGradient id="gradient4" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
109
|
-
<stop offset="0%" stop-color="var(--logo-color4)" />
|
|
110
|
-
<stop offset="80%" stop-color="var(--logo-color4-transparent)" />
|
|
111
|
-
</radialGradient>
|
|
112
|
-
|
|
113
|
-
<!-- Radial Gradient for Centered Disc -->
|
|
114
|
-
<radialGradient id="centerGradient" cx="0.5" cy="0.5" r="0.5" spreadMethod="pad">
|
|
115
|
-
<stop offset="0%" stop-color="rgba(255, 255, 255, 0)" />
|
|
116
|
-
<stop offset="75%" stop-color="rgba(255, 255, 255, 0)" />
|
|
117
|
-
<stop offset="100%" stop-color="var(--logo-glass-color)" />
|
|
118
|
-
</radialGradient>
|
|
119
|
-
|
|
120
|
-
<!-- Gaussian blur filter -->
|
|
121
|
-
<filter id="blurFilter" x="-150%" y="-150%" width="400%" height="400%">
|
|
122
|
-
<feGaussianBlur stdDeviation="8" />
|
|
123
|
-
</filter>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</defs>
|
|
129
|
-
|
|
130
|
-
<!-- Larger Disc (border) -->
|
|
131
|
-
<g mask="url(#circleMask1)">
|
|
132
|
-
<circle cx="50" cy="50" r="50" fill="var(--logo-color2)" />
|
|
133
|
-
<g id="group1">
|
|
134
|
-
<ellipse x="50" rx="500" ry="80" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
135
|
-
</g>
|
|
136
|
-
<g id="group2">
|
|
137
|
-
<ellipse rx="100" ry="100" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
138
|
-
</g>
|
|
139
|
-
<g id="group3">
|
|
140
|
-
<ellipse rx="100" ry="100" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
141
|
-
</g>
|
|
142
|
-
</g>
|
|
143
|
-
|
|
144
|
-
<!-- Smaller Disc -->
|
|
145
|
-
<g mask="url(#circleMask2)">
|
|
146
|
-
<circle cx="50" cy="50" r="46" fill="var(--logo-color1)" />
|
|
147
|
-
<g id="group1">
|
|
148
|
-
<ellipse x="50" rx="100" ry="80" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
149
|
-
</g>
|
|
150
|
-
<g id="group2">
|
|
151
|
-
<ellipse rx="80" ry="50" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
152
|
-
</g>
|
|
153
|
-
<g id="group3">
|
|
154
|
-
<ellipse rx="60" ry="40" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
155
|
-
</g>
|
|
156
|
-
<g id="group4">
|
|
157
|
-
<ellipse rx="30" ry="40" fill="url(#gradient4)" filter="url(#blurFilter)" />
|
|
158
|
-
</g>
|
|
159
|
-
|
|
160
|
-
<!-- Grain -->
|
|
161
|
-
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" filter='url(#grainFilter)' style="mix-blend-mode: soft-light;" />
|
|
162
|
-
</g>
|
|
163
|
-
|
|
164
|
-
<!-- Grain -->
|
|
165
|
-
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" />
|
|
166
|
-
</svg>
|
|
167
|
-
`,{fontURLs:o.font.urls,tokens:{font:{family:o.font.family},colors:{brand:o.colors.brand,highlight:o.colors.highlight,grey:o.colors.grey},components:{body:{background:o.colors.background,color:o.colors.text,custom:{fontSize:ia(o.font.size)}},anchor:{color:o.colors.anchor.default,hover:{color:o.colors.anchor.hover}},btnPrimary:{background:o.colors.brand[600],color:o.colors.grey[0],borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem},hover:{background:o.colors.brand[700],color:o.colors.grey[0]}},btnSecondary:{background:o.colors.grey[100],color:o.colors.brand[700],borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem},hover:{background:o.colors.brand[100],color:o.colors.grey[800]}},btnTertiary:{background:o.colors.grey[100],color:o.colors.grey[700],borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem},hover:{background:o.colors.grey[300],color:o.colors.grey[800]}},input:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},chatMenu:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},chatMenuItem:{borderRadius:{minRem:o.borderRadius.minRem/2,maxRem:o.borderRadius.maxRem/2}},card:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},pillDefault:{background:o.colors.grey[200],color:o.colors.brand[700],borderRadius:{minRem:o.borderRadius.minRem*1.5,maxRem:o.borderRadius.maxRem*1.5},hover:{background:o.colors.brand[200],color:o.colors.brand[800]}},chatFooter:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},chatInput:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},chatInputSubmit:{background:o.colors.brand[600],borderRadius:{minRem:o.borderRadius.minRem/1.25,maxRem:o.borderRadius.maxRem/1.25}},dialog:{background:o.colors.grey[50],borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},message:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},messageUser:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},reference:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},referenceNumberContent:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},referenceNumberTrigger:{borderRadius:{minRem:o.borderRadius.minRem/2,maxRem:o.borderRadius.maxRem/2}},toast:{borderRadius:{minRem:o.borderRadius.minRem,maxRem:o.borderRadius.maxRem}},tooltip:{borderRadius:{minRem:o.borderRadius.minRem/2,maxRem:o.borderRadius.maxRem/2}}},svgs:{avatar:a,predefinedQuestion:`
|
|
168
|
-
<svg viewBox="0 0 24 24" >
|
|
169
|
-
<path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
170
|
-
<path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
171
|
-
<path d="M23.5 3.5A10.5 10.5 0 0 0 13 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
172
|
-
<path d="M13 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
173
|
-
</svg>
|
|
174
|
-
`}}}};function El(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $n,va;function $l(){if(va)return $n;va=1;var t=function(k){return e(k)&&!r(k)};function e(p){return!!p&&typeof p=="object"}function r(p){var k=Object.prototype.toString.call(p);return k==="[object RegExp]"||k==="[object Date]"||a(p)}var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103;function a(p){return p.$$typeof===o}function i(p){return Array.isArray(p)?[]:{}}function s(p,k){return k.clone!==!1&&k.isMergeableObject(p)?b(i(p),p,k):p}function c(p,k,v){return p.concat(k).map(function(x){return s(x,v)})}function l(p,k){if(!k.customMerge)return b;var v=k.customMerge(p);return typeof v=="function"?v:b}function u(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(k){return Object.propertyIsEnumerable.call(p,k)}):[]}function f(p){return Object.keys(p).concat(u(p))}function d(p,k){try{return k in p}catch{return!1}}function m(p,k){return d(p,k)&&!(Object.hasOwnProperty.call(p,k)&&Object.propertyIsEnumerable.call(p,k))}function _(p,k,v){var x={};return v.isMergeableObject(p)&&f(p).forEach(function(S){x[S]=s(p[S],v)}),f(k).forEach(function(S){m(p,S)||(d(p,S)&&v.isMergeableObject(k[S])?x[S]=l(S,v)(p[S],k[S],v):x[S]=s(k[S],v))}),x}function b(p,k,v){v=v||{},v.arrayMerge=v.arrayMerge||c,v.isMergeableObject=v.isMergeableObject||t,v.cloneUnlessOtherwiseSpecified=s;var x=Array.isArray(k),S=Array.isArray(p),F=x===S;return F?x?v.arrayMerge(p,k,v):_(p,k,v):s(k,v)}b.all=function(k,v){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(x,S){return b(x,S,v)},{})};var T=b;return $n=T,$n}var Al=$l();const Ye=El(Al),ma={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)"}},header:{background:"transparent"},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},box:{custom:{shadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"}},anchor:{color:"var(--color-brand-600)",hover:{color:"var(--color-brand-950)"}},line:{color:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)"},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:{minRem:.5,maxRem:.75},hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--color-grey-600)",background:"var(--color-grey-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},card:{color:"inherit",background:"var(--color-grey-100)",borderRadius:{minRem:.5,maxRem:.75},boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},pillDefault:{color:"var(--color-grey-700)",background:"var(--color-grey-200)",borderRadius:{minRem:.75,maxRem:1},boxShadow:"var(--card-box-shadow)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:{minRem:.25,maxRem:.5},custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--line-color)"},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",boxShadow:"var(--box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--font-weight-bold)",separatorColor:"var(--line-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:{minRem:.25,maxRem:.5},hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:{minRem:.75,maxRem:1},boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:{minRem:.75,maxRem:1},borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:{minRem:.5,maxRem:.75},hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#dd1313",color:"var(--color-grey-0)",borderColor:"#dd1313",borderWidth:"1px",borderRadius:{minRem:.25,maxRem:.5}},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",boxShadow:"var(--box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--line-color)"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--card-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:{minRem:.5,maxRem:.75}},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:{minRem:.25,maxRem:.5},hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"}},referencesTrigger:{color:"var(--anchor-color)",background:"transparent",borderRadius:{minRem:.5,maxRem:.75},hover:{color:"var(--anchor-hover-color)"}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceNumeral:{color:"var(--anchor-color)"},referenceDomain:{color:"var(--pill-default-color)",background:"var(--pill-default-background)",hover:{color:"var(--pill-default-hover-color)",background:"var(--pill-default-hover-background)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:{minRem:.25,maxRem:.25},hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},referenceNumberDomain:{color:"var(--pill-default-color)",background:"var(--pill-default-background)",hover:{color:"var(--pill-default-hover-color)",background:"var(--pill-default-hover-background)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--box-shadow)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:{minRem:.2,maxRem:.3}}},svgs:{predefinedQuestion:'<svg viewBox="0 0 24 24" ><path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M23.5 3.5A10.5 10.5 0 0 0 13 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',edit:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m15.9 4.7 3.5 3.5-10.8 10.8-3.5-3.5z"/><path d="m5.1 15.4-1.7 5.3 5.3-1.7-3.5-3.5z"/><path d="m19.3 8.1-3.5-3.5.6-.6c1-1 2.6-.9 3.5 0 .9 1 .9 2.5 0 3.5z"/></g></svg>',newConversation:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m12.6 15.3-4.7 1.6 1.5-4.8 7.6-7.6c.6-.6 1.5-.6 2.1 0l1.1 1.1c.6.6.6 1.5 0 2.1l-7.7 7.7z"/><path d="m12.8 15.1-3.3-3.3"/><path d="m20.2 12.1v7.4c0 .8-.7 1.5-1.5 1.5h-13.8c-.8 0-1.5-.7-1.5-1.5v-14.5c0-.8.7-1.5 1.5-1.5h8.4"/></g></svg>',voteUp:'<svg viewBox="0 0 24 24"><path d="M0.5 8.372h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3.5 19.372c7.339 3.726 6.981 3.235 13.265 3.235 2.632 0 3.958 -1.715 4.732 -4.228l0 -0.016 1.907 -6.4 0 -0.012A2 2 0 0 0 21.5 9.372h-4.9a2 2 0 0 1 -1.934 -2.51l0.882 -3.344a1.713 1.713 0 0 0 -3.06 -1.418L7.6 9.025a2 2 0 0 1 -1.634 0.847H3.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',voteDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m.5 2.5h2c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1h-2"/><path d="m3.5 15h2.5c.6 0 1.3.3 1.6.8l4.9 6.9c.4.6 1.1.9 1.8.7.9-.2 1.5-1.2 1.2-2.1l-.9-3.3c0-.2 0-.3 0-.5 0-1.1.9-2 2-2h4.9.6c1.1-.3 1.7-1.4 1.3-2.5s-1.9-6.4-1.9-6.4c-.8-2.5-2.1-4.2-4.7-4.2-6.3 0-5.9-.5-13.3 3.2"/></g></svg>',retry:'<svg viewBox="0 0 24 24"><path d="M5.5 18.928A9.5 9.5 0 0 1 17.061 3.956" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m18.5 9.498 0 -4.5 4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m5.5 14.498 0 4.5 -4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18.5 5.071A9.5 9.5 0 0 1 6.883 20.006" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',message:'<svg viewBox="0 0 24 24"><path d="m12 1.6c-6 0-10.9 4-10.9 9 0 2.5 1.2 4.8 3.2 6.4l-2.3 5.4 6-3.4c1.3.4 2.6.6 3.9.6 6 0 10.9-4 10.9-9s-4.8-9-10.8-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',messageLoading:`<svg viewBox="0 0 24 24" width="24" height="24">
|
|
15
|
+
sans-serif;}.error-message__retry-button.svelte-4thrqu {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function ro(t,e){Ct(e,!0),Cs(t,Us);const r=(c,u=hr,h=hr)=>{ta();var d=Vs(),g=se(d),b=Je(g);{var v=m=>{},T=m=>{var k=Zs(),p=Ee(k),y=Je(Ee(p));y.__click=[Ds,h],Te(p),Te(k),Z(m,k)};Ve(b,m=>{a()?m(v):m(T,!1)})}Yt(m=>ms(g,`${m??""} `),[()=>console.error(`Panic, uncaught error:
|
|
16
|
+
`,u())??""]),Z(c,d)};let n=W(e,"body",7),a=W(e,"silent",7),o=fe(void 0);const i=c=>{ie(o,{error:c},!0)};var s=Ae(),l=se(s);return Pi(l,{get failed(){return r}},c=>{var u=Ae(),h=se(u);{var d=b=>{r(b,()=>E(o).error,()=>()=>{ie(o,void 0)})},g=b=>{var v=Ae(),T=se(v);gn(T,n,()=>i),Z(b,v)};Ve(h,b=>{E(o)?b(d):b(g,!1)})}Z(c,u)}),Z(t,s),St({get body(){return n()},set body(c){n(c),V()},get silent(){return a()},set silent(c){a(c),V()}})}vn(["click"]),tr(ro,{body:{},silent:{}},[],[],!0);const qs='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer base{.chat-app{--spacer-1: .0625rem;--spacer-2: .125rem;--spacer-3: .1875rem;--spacer-4: .25rem;--spacer-5: .3125rem;--spacer-6: .375rem;--spacer-8: .5rem;--spacer-10: .625rem;--spacer-12: .75rem;--spacer-16: 1rem;--spacer-20: 1.25rem;--spacer-24: 1.5rem;--spacer-28: 1.75rem;--spacer-32: 2rem;--spacer-40: 2.5rem;--spacer-48: 3rem;--spacer-56: 3.5rem;--spacer-64: 4rem;--spacer-80: 5rem;--spacer-120: 7.5rem;--spacer-r-8: clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12: clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16: clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20: clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24: clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28: clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32: clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40: clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48: clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56: clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64: clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80: clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96: clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120: clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration: .2s;--default-transition-timing-function: ease-in-out;--z-index-flyout: 10000;--z-index-dialog: 600;--z-index-loader: 500;--z-index-reference-number: 400;--z-index-footer: 300;--z-index-header: 200;--z-index-tooltip: 100;--z-index-local-overlay: 10;--ease-out-quart: cubic-bezier(.165, .84, .44, 1);--ease-in-quart: cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--fly-in-id: 0}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app :where(h1,h2,h3,h4,h5,h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow, none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::-moz-placeholder{color:var(--input-placeholder-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}.chat-app *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:transparent}.chat-app ::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app *:hover::-webkit-scrollbar-thumb,.chat-app *:active::-webkit-scrollbar-thumb,.chat-app *:focus::-webkit-scrollbar-thumb{visibility:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{position:absolute;inset:0;background-color:transparent;content:""}.chat-app :where(.sr-only){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.fly-in){--fly-in-id: 0;--fly-in-duration: .4s;--fly-out-duration: .2s;--fly-in-delay: .3s;--fly-in-delay-additional: .1s;--fly-in-y: var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease,var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){transform:translateY(0);opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration)}.chat-app :where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-app :where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--3){-webkit-line-clamp:3}.chat-app :where(.line-clamp--12){-webkit-line-clamp:12}.chat-app :where(.container){width:100%;max-width:var(--container-max-width, 1024px);margin:0 auto;padding-right:var(--spacer-16);padding-left:var(--spacer-16)}@container chat-container (min-width: 640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (min-width: 768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){position:relative;padding-left:1em}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{position:absolute;top:0;left:0;content:"•";font-size:.9em}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container):first-child{margin-top:0}.chat-app :where(.text-container):last-child{margin-bottom:0}.chat-app :where(.text-container) :where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}}@layer base{.svg{width:var(--spacer-r-24);height:auto}.svg svg{display:block;width:100%;height:auto;overflow:visible}}@layer components{.chat-app{display:contents}.chat-app__container{container-name:chat-container;container-type:inline-size;display:flex;align-items:flex-start;height:100%;overflow:hidden}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__main{display:flex;flex-direction:column;width:100%;height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--body-background);scrollbar-gutter:stable}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__header{z-index:var(--z-index-header);position:sticky;top:0}.chat-app__header-content{display:flex;-moz-column-gap:var(--spacer-r-12);column-gap:var(--spacer-r-12);flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;padding-top:var(--spacer-12);background:var(--body-background);box-shadow:0 12px 20px 6px color-mix(in srgb,var(--body-background) 100%,transparent)}.chat-app__header-content>:where(*){pointer-events:auto}.chat-app__body{display:flex;position:relative;flex-grow:1;flex-direction:column;width:100%}.chat-app__page-transition{display:flex;flex-grow:1;flex-direction:column;width:100%;height:100%}.chat-app__aside{--duration-in: .65s;--duration-out: .5s;visibility:hidden;flex-grow:1;width:0;height:100%;transition-delay:0s,var(--duration-out);transition-duration:var(--duration-out),0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart),linear}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in),0s;transition-timing-function:var(--ease-out-quart),linear}.chat-app__aside-container{position:relative;width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__aside-header,.chat-app__sheet-header{display:flex;z-index:var(--z-index-flyout);position:sticky;top:0;flex-wrap:no-wrap;align-items:center;justify-content:space-between;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color)}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);position:fixed;inset:0;background:var(--aside-background-overlay)}.chat-app__sheet-content{z-index:var(--z-index-flyout);position:fixed;top:0;right:0;width:100%;max-width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:transparent}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button:hover .open-button__text{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease)}.open-button:hover .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease),height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{position:relative;width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance}.open-button__avatar{z-index:var(--z-index-local-overlay);position:relative;width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);overflow:clip;border-radius:var(--spacer-r-80);filter:drop-shadow(0 0 8px rgba(0,0,0,.2));transition:transform .2s var(--open-button-ease)}.open-button:hover .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{display:none;position:absolute;right:0;width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color)}:where(.open-button--standalone){position:fixed;right:var(--spacer-r-16);bottom:var(--spacer-r-16)}@media (prefers-reduced-motion: reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}}',Hs=()=>{const t=localStorage.getItem("liipgpt-color-scheme");return t==="light"||t==="dark"?t:"system"},Ws=t=>{let e=Hs();return e==="system"&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),t.includes(e)?e:t[0]??"light"},Gs=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Ys=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Qs=new RegExp("(\\d)(\\p{Ll})","gu"),Ks=new RegExp("(\\p{L})(\\d)","gu"),Xs=/[^\p{L}\d]+/giu,Rr="$1\0$2",Js="";function el(t,e){let r=t.trim();r=r.replace(Gs,Rr).replace(Ys,Rr),e?.separateNumbers&&(r=r.replace(Qs,Rr).replace(Ks,Rr)),r=r.replace(Xs,"\0");let n=0,a=r.length;for(;r.charAt(n)==="\0";)n++;if(n===a)return[];for(;r.charAt(a-1)==="\0";)a--;return r.slice(n,a).split(/\0/g)}function tl(t,e){return al(t,e?.prefixCharacters)+el(t,e).map(nl(e?.locale)).join(e?.delimiter??" ")}function rl(t,e){return tl(t,{delimiter:"-",...e})}function nl(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function al(t,e=Js){let r="";for(let n=0;n<t.length;n++){const a=t.charAt(n);if(e.includes(a))r+=a;else break}return r}const Ir=rl;var P;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const o={};for(const i of a)o[i]=i;return o},t.getValidEnumValues=a=>{const o=t.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),i={};for(const s of o)i[s]=a[s];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(o){return a[o]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&o.push(i);return o},t.find=(a,o)=>{for(const i of a)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function n(a,o=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=n,t.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(P||(P={}));var no;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(no||(no={}));const x=P.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),tt=t=>{switch(typeof t){case"undefined":return x.undefined;case"string":return x.string;case"number":return Number.isNaN(t)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(t)?x.array:t===null?x.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?x.promise:typeof Map<"u"&&t instanceof Map?x.map:typeof Set<"u"&&t instanceof Set?x.set:typeof Date<"u"&&t instanceof Date?x.date:x.object;default:return x.unknown}},_=P.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ue extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(o){return o.message},n={_errors:[]},a=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let s=n,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(i))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return a(this),n}static assert(e){if(!(e instanceof Ue))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,P.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const a of this.issues)if(a.path.length>0){const o=a.path[0];r[o]=r[o]||[],r[o].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Ue.create=t=>new Ue(t);const On=(t,e)=>{let r;switch(t.code){case _.invalid_type:t.received===x.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case _.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,P.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:r=`Unrecognized key(s) in object: ${P.joinValues(t.keys,", ")}`;break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${P.joinValues(t.options)}`;break;case _.invalid_enum_value:r=`Invalid enum value. Expected ${P.joinValues(t.options)}, received '${t.received}'`;break;case _.invalid_arguments:r="Invalid function arguments";break;case _.invalid_return_type:r="Invalid function return type";break;case _.invalid_date:r="Invalid date";break;case _.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:P.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case _.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case _.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case _.custom:r="Invalid input";break;case _.invalid_intersection_types:r="Intersection results could not be merged";break;case _.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case _.not_finite:r="Number must be finite";break;default:r=e.defaultError,P.assertNever(t)}return{message:r}};let ol=On;function il(){return ol}const sl=t=>{const{data:e,path:r,errorMaps:n,issueData:a}=t,o=[...r,...a.path||[]],i={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let s="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)s=c(i,{data:e,defaultError:s}).message;return{...a,path:o,message:s}};function w(t,e){const r=il(),n=sl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===On?void 0:On].filter(a=>!!a)});t.common.issues.push(n)}class ne{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const a of r){if(a.status==="aborted")return A;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const a of r){const o=await a.key,i=await a.value;n.push({key:o,value:i})}return ne.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const a of r){const{key:o,value:i}=a;if(o.status==="aborted"||i.status==="aborted")return A;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[o.value]=i.value)}return{status:e.value,value:n}}}const A=Object.freeze({status:"aborted"}),rr=t=>({status:"dirty",value:t}),_e=t=>({status:"valid",value:t}),ao=t=>t.status==="aborted",oo=t=>t.status==="dirty",It=t=>t.status==="valid",jr=t=>typeof Promise<"u"&&t instanceof Promise;var S;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(S||(S={}));class Re{constructor(e,r,n,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const io=(t,e)=>{if(It(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ue(t.common.issues);return this._error=r,this._error}}};function R(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:a}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,s)=>{const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??n??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:a}}class N{get description(){return this._def.description}_getType(e){return tt(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:tt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ne,ctx:{common:e.parent.common,data:e.data,parsedType:tt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(jr(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tt(e)},a=this._parseSync({data:e,path:n.path,parent:n});return io(n,a)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tt(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:r});return It(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(n=>It(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:tt(e)},a=this._parse({data:e,path:n.path,parent:n}),o=await(jr(a)?a:Promise.resolve(a));return io(n,o)}refine(e,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{const i=e(a),s=()=>o.addIssue({code:_.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(e,r){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(e){return new Pt({schema:this,typeName:O.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return nt.create(this,this._def)}nullable(){return zt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ie.create(this)}promise(){return Br.create(this,this._def)}or(e){return Lr.create([this,e],this._def)}and(e){return Pr.create(this,e,this._def)}transform(e){return new Pt({...R(this._def),schema:this,typeName:O.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new jn({...R(this._def),innerType:this,defaultValue:r,typeName:O.ZodDefault})}brand(){return new Al({typeName:O.ZodBranded,type:this,...R(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Nn({...R(this._def),innerType:this,catchValue:r,typeName:O.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ln.create(this,e)}readonly(){return Pn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ll=/^c[^\s-]{8,}$/i,cl=/^[0-9a-z]+$/,ul=/^[0-9A-HJKMNP-TV-Z]{26}$/i,dl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fl=/^[a-z0-9_-]{21}$/i,hl=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,pl=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ml="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let An;const gl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,_l=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,kl=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,yl=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wl=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,so="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",xl=new RegExp(`^${so}$`);function lo(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Cl(t){return new RegExp(`^${lo(t)}$`)}function Sl(t){let e=`${so}T${lo(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Tl(t,e){return!!((e==="v4"||!e)&&gl.test(t)||(e==="v6"||!e)&&_l.test(t))}function El(t,e){if(!hl.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function $l(t,e){return!!((e==="v4"||!e)&&bl.test(t)||(e==="v6"||!e)&&kl.test(t))}class qe extends N{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){const o=this._getOrReturnCtx(e);return w(o,{code:_.invalid_type,expected:x.string,received:o.parsedType}),A}const n=new ne;let a;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")e.data.length>o.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,s=e.data.length<o.value;(i||s)&&(a=this._getOrReturnCtx(e,a),i?w(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&w(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")vl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"email",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")An||(An=new RegExp(ml,"u")),An.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"emoji",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")dl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"uuid",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")fl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"nanoid",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")ll.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")cl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid2",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")ul.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ulid",code:_.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),w(a,{validation:"url",code:_.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"regex",code:_.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?Sl(o).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?xl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?Cl(o).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?pl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?Tl(e.data,o.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?El(e.data,o.alg)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"jwt",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?$l(e.data,o.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cidr",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?yl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?wl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64url",code:_.invalid_string,message:o.message}),n.dirty()):P.assertNever(o);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(a=>e.test(a),{validation:r,code:_.invalid_string,...S.errToObj(n)})}_addCheck(e){return new qe({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...S.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...S.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...S.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...S.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...S.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...S.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...S.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...S.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...S.errToObj(r)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new qe({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qe({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qe({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}qe.create=t=>new qe({checks:[],typeName:O.ZodString,coerce:t?.coerce??!1,...R(t)});function Ol(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=r>n?r:n,o=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return o%i/10**a}class jt extends N{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x.number){const o=this._getOrReturnCtx(e);return w(o,{code:_.invalid_type,expected:x.number,received:o.parsedType}),A}let n;const a=new ne;for(const o of this._def.checks)o.kind==="int"?P.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),w(n,{code:_.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?Ol(e.data,o.value)!==0&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),w(n,{code:_.not_finite,message:o.message}),a.dirty()):P.assertNever(o);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,S.toString(r))}gt(e,r){return this.setLimit("min",e,!1,S.toString(r))}lte(e,r){return this.setLimit("max",e,!0,S.toString(r))}lt(e,r){return this.setLimit("max",e,!1,S.toString(r))}setLimit(e,r,n,a){return new jt({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:S.toString(a)}]})}_addCheck(e){return new jt({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&P.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}jt.create=t=>new jt({checks:[],typeName:O.ZodNumber,coerce:t?.coerce||!1,...R(t)});class nr extends N{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==x.bigint)return this._getInvalidInput(e);let n;const a=new ne;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):P.assertNever(o);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return w(r,{code:_.invalid_type,expected:x.bigint,received:r.parsedType}),A}gte(e,r){return this.setLimit("min",e,!0,S.toString(r))}gt(e,r){return this.setLimit("min",e,!1,S.toString(r))}lte(e,r){return this.setLimit("max",e,!0,S.toString(r))}lt(e,r){return this.setLimit("max",e,!1,S.toString(r))}setLimit(e,r,n,a){return new nr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:S.toString(a)}]})}_addCheck(e){return new nr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}nr.create=t=>new nr({checks:[],typeName:O.ZodBigInt,coerce:t?.coerce??!1,...R(t)});class Mn extends N{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x.boolean){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.boolean,received:n.parsedType}),A}return _e(e.data)}}Mn.create=t=>new Mn({typeName:O.ZodBoolean,coerce:t?.coerce||!1,...R(t)});class Nr extends N{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){const o=this._getOrReturnCtx(e);return w(o,{code:_.invalid_type,expected:x.date,received:o.parsedType}),A}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return w(o,{code:_.invalid_date}),A}const n=new ne;let a;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:_.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:_.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):P.assertNever(o);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Nr({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Nr.create=t=>new Nr({checks:[],coerce:t?.coerce||!1,typeName:O.ZodDate,...R(t)});class co extends N{_parse(e){if(this._getType(e)!==x.symbol){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.symbol,received:n.parsedType}),A}return _e(e.data)}}co.create=t=>new co({typeName:O.ZodSymbol,...R(t)});class uo extends N{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.undefined,received:n.parsedType}),A}return _e(e.data)}}uo.create=t=>new uo({typeName:O.ZodUndefined,...R(t)});class fo extends N{_parse(e){if(this._getType(e)!==x.null){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.null,received:n.parsedType}),A}return _e(e.data)}}fo.create=t=>new fo({typeName:O.ZodNull,...R(t)});class ho extends N{constructor(){super(...arguments),this._any=!0}_parse(e){return _e(e.data)}}ho.create=t=>new ho({typeName:O.ZodAny,...R(t)});class po extends N{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _e(e.data)}}po.create=t=>new po({typeName:O.ZodUnknown,...R(t)});class rt extends N{_parse(e){const r=this._getOrReturnCtx(e);return w(r,{code:_.invalid_type,expected:x.never,received:r.parsedType}),A}}rt.create=t=>new rt({typeName:O.ZodNever,...R(t)});class vo extends N{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.void,received:n.parsedType}),A}return _e(e.data)}}vo.create=t=>new vo({typeName:O.ZodVoid,...R(t)});class Ie extends N{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),a=this._def;if(r.parsedType!==x.array)return w(r,{code:_.invalid_type,expected:x.array,received:r.parsedType}),A;if(a.exactLength!==null){const i=r.data.length>a.exactLength.value,s=r.data.length<a.exactLength.value;(i||s)&&(w(r,{code:i?_.too_big:_.too_small,minimum:s?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(w(r,{code:_.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(w(r,{code:_.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>a.type._parseAsync(new Re(r,i,r.path,s)))).then(i=>ne.mergeArray(n,i));const o=[...r.data].map((i,s)=>a.type._parseSync(new Re(r,i,r.path,s)));return ne.mergeArray(n,o)}get element(){return this._def.type}min(e,r){return new Ie({...this._def,minLength:{value:e,message:S.toString(r)}})}max(e,r){return new Ie({...this._def,maxLength:{value:e,message:S.toString(r)}})}length(e,r){return new Ie({...this._def,exactLength:{value:e,message:S.toString(r)}})}nonempty(e){return this.min(1,e)}}Ie.create=(t,e)=>new Ie({type:t,minLength:null,maxLength:null,exactLength:null,typeName:O.ZodArray,...R(e)});function Nt(t){if(t instanceof U){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=nt.create(Nt(n))}return new U({...t._def,shape:()=>e})}else return t instanceof Ie?new Ie({...t._def,type:Nt(t.element)}):t instanceof nt?nt.create(Nt(t.unwrap())):t instanceof zt?zt.create(Nt(t.unwrap())):t instanceof gt?gt.create(t.items.map(e=>Nt(e))):t}class U extends N{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=P.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==x.object){const c=this._getOrReturnCtx(e);return w(c,{code:_.invalid_type,expected:x.object,received:c.parsedType}),A}const{status:n,ctx:a}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof rt&&this._def.unknownKeys==="strip"))for(const c in a.data)i.includes(c)||s.push(c);const l=[];for(const c of i){const u=o[c],h=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Re(a,h,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof rt){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:a.data[u]}});else if(c==="strict")s.length>0&&(w(a,{code:_.unrecognized_keys,keys:s}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const h=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Re(a,h,a.path,u)),alwaysSet:u in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const h=await u.key,d=await u.value;c.push({key:h,value:d,alwaysSet:u.alwaysSet})}return c}).then(c=>ne.mergeObjectSync(n,c)):ne.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new U({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{const a=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:S.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(e){return new U({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new U({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:O.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new U({...this._def,catchall:e})}pick(e){const r={};for(const n of P.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new U({...this._def,shape:()=>r})}omit(e){const r={};for(const n of P.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new U({...this._def,shape:()=>r})}deepPartial(){return Nt(this)}partial(e){const r={};for(const n of P.objectKeys(this.shape)){const a=this.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()}return new U({...this._def,shape:()=>r})}required(e){const r={};for(const n of P.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof nt;)o=o._def.innerType;r[n]=o}return new U({...this._def,shape:()=>r})}keyof(){return bo(P.objectKeys(this.shape))}}U.create=(t,e)=>new U({shape:()=>t,unknownKeys:"strip",catchall:rt.create(),typeName:O.ZodObject,...R(e)}),U.strictCreate=(t,e)=>new U({shape:()=>t,unknownKeys:"strict",catchall:rt.create(),typeName:O.ZodObject,...R(e)}),U.lazycreate=(t,e)=>new U({shape:t,unknownKeys:"strip",catchall:rt.create(),typeName:O.ZodObject,...R(e)});class Lr extends N{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function a(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const i=o.map(s=>new Ue(s.ctx.common.issues));return w(r,{code:_.invalid_union,unionErrors:i}),A}if(r.common.async)return Promise.all(n.map(async o=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let o;const i=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const s=i.map(l=>new Ue(l));return w(r,{code:_.invalid_union,unionErrors:s}),A}}get options(){return this._def.options}}Lr.create=(t,e)=>new Lr({options:t,typeName:O.ZodUnion,...R(e)});function Rn(t,e){const r=tt(t),n=tt(e);if(t===e)return{valid:!0,data:t};if(r===x.object&&n===x.object){const a=P.objectKeys(e),o=P.objectKeys(t).filter(s=>a.indexOf(s)!==-1),i={...t,...e};for(const s of o){const l=Rn(t[s],e[s]);if(!l.valid)return{valid:!1};i[s]=l.data}return{valid:!0,data:i}}else if(r===x.array&&n===x.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let o=0;o<t.length;o++){const i=t[o],s=e[o],l=Rn(i,s);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return r===x.date&&n===x.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Pr extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=(o,i)=>{if(ao(o)||ao(i))return A;const s=Rn(o.value,i.value);return s.valid?((oo(o)||oo(i))&&r.dirty(),{status:r.value,value:s.data}):(w(n,{code:_.invalid_intersection_types}),A)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>a(o,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Pr.create=(t,e,r)=>new Pr({left:t,right:e,typeName:O.ZodIntersection,...R(r)});class gt extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.array)return w(n,{code:_.invalid_type,expected:x.array,received:n.parsedType}),A;if(n.data.length<this._def.items.length)return w(n,{code:_.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),A;!this._def.rest&&n.data.length>this._def.items.length&&(w(n,{code:_.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((i,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Re(n,i,n.path,s)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>ne.mergeArray(r,i)):ne.mergeArray(r,o)}get items(){return this._def.items}rest(e){return new gt({...this._def,rest:e})}}gt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new gt({items:t,typeName:O.ZodTuple,rest:null,...R(e)})};class zr extends N{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.object)return w(n,{code:_.invalid_type,expected:x.object,received:n.parsedType}),A;const a=[],o=this._def.keyType,i=this._def.valueType;for(const s in n.data)a.push({key:o._parse(new Re(n,s,n.path,s)),value:i._parse(new Re(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?ne.mergeObjectAsync(r,a):ne.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof N?new zr({keyType:e,valueType:r,typeName:O.ZodRecord,...R(n)}):new zr({keyType:qe.create(),valueType:e,typeName:O.ZodRecord,...R(r)})}}class mo extends N{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.map)return w(n,{code:_.invalid_type,expected:x.map,received:n.parsedType}),A;const a=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([s,l],c)=>({key:a._parse(new Re(n,s,n.path,[c,"key"])),value:o._parse(new Re(n,l,n.path,[c,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return A;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return A;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}}}}mo.create=(t,e,r)=>new mo({valueType:e,keyType:t,typeName:O.ZodMap,...R(r)});class ar extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.set)return w(n,{code:_.invalid_type,expected:x.set,received:n.parsedType}),A;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(w(n,{code:_.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(w(n,{code:_.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return A;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const s=[...n.data.values()].map((l,c)=>o._parse(new Re(n,l,n.path,c)));return n.common.async?Promise.all(s).then(l=>i(l)):i(s)}min(e,r){return new ar({...this._def,minSize:{value:e,message:S.toString(r)}})}max(e,r){return new ar({...this._def,maxSize:{value:e,message:S.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}ar.create=(t,e)=>new ar({valueType:t,minSize:null,maxSize:null,typeName:O.ZodSet,...R(e)});class go extends N{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}go.create=(t,e)=>new go({getter:t,typeName:O.ZodLazy,...R(e)});class In extends N{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return w(r,{received:r.data,code:_.invalid_literal,expected:this._def.value}),A}return{status:"valid",value:e.data}}get value(){return this._def.value}}In.create=(t,e)=>new In({value:t,typeName:O.ZodLiteral,...R(e)});function bo(t,e){return new Lt({values:t,typeName:O.ZodEnum,...R(e)})}class Lt extends N{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return w(r,{expected:P.joinValues(n),received:r.parsedType,code:_.invalid_type}),A}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return w(r,{received:r.data,code:_.invalid_enum_value,options:n}),A}return _e(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Lt.create(e,{...this._def,...r})}exclude(e,r=this._def){return Lt.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Lt.create=bo;class _o extends N{_parse(e){const r=P.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==x.string&&n.parsedType!==x.number){const a=P.objectValues(r);return w(n,{expected:P.joinValues(a),received:n.parsedType,code:_.invalid_type}),A}if(this._cache||(this._cache=new Set(P.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=P.objectValues(r);return w(n,{received:n.data,code:_.invalid_enum_value,options:a}),A}return _e(e.data)}get enum(){return this._def.values}}_o.create=(t,e)=>new _o({values:t,typeName:O.ZodNativeEnum,...R(e)});class Br extends N{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==x.promise&&r.common.async===!1)return w(r,{code:_.invalid_type,expected:x.promise,received:r.parsedType}),A;const n=r.parsedType===x.promise?r.data:Promise.resolve(r.data);return _e(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Br.create=(t,e)=>new Br({type:t,typeName:O.ZodPromise,...R(e)});class Pt extends N{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===O.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=this._def.effect||null,o={addIssue:i=>{w(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){const i=a.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return A;const l=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return l.status==="aborted"?A:l.status==="dirty"||r.value==="dirty"?rr(l.value):l});{if(r.value==="aborted")return A;const s=this._def.schema._parseSync({data:i,path:n.path,parent:n});return s.status==="aborted"?A:s.status==="dirty"||r.value==="dirty"?rr(s.value):s}}if(a.type==="refinement"){const i=s=>{const l=a.refinement(s,o);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?A:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?A:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(a.type==="transform")if(n.common.async===!1){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!It(i))return A;const s=a.transform(i.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>It(i)?Promise.resolve(a.transform(i.value,o)).then(s=>({status:r.value,value:s})):A);P.assertNever(a)}}Pt.create=(t,e,r)=>new Pt({schema:t,typeName:O.ZodEffects,effect:e,...R(r)}),Pt.createWithPreprocess=(t,e,r)=>new Pt({schema:e,effect:{type:"preprocess",transform:t},typeName:O.ZodEffects,...R(r)});class nt extends N{_parse(e){return this._getType(e)===x.undefined?_e(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}nt.create=(t,e)=>new nt({innerType:t,typeName:O.ZodOptional,...R(e)});class zt extends N{_parse(e){return this._getType(e)===x.null?_e(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}zt.create=(t,e)=>new zt({innerType:t,typeName:O.ZodNullable,...R(e)});class jn extends N{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===x.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}jn.create=(t,e)=>new jn({innerType:t,typeName:O.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...R(e)});class Nn extends N{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return jr(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ue(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ue(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Nn.create=(t,e)=>new Nn({innerType:t,typeName:O.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...R(e)});class ko extends N{_parse(e){if(this._getType(e)!==x.nan){const n=this._getOrReturnCtx(e);return w(n,{code:_.invalid_type,expected:x.nan,received:n.parsedType}),A}return{status:"valid",value:e.data}}}ko.create=t=>new ko({typeName:O.ZodNaN,...R(t)});class Al extends N{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Ln extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?A:o.status==="dirty"?(r.dirty(),rr(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?A:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,r){return new Ln({in:e,out:r,typeName:O.ZodPipeline})}}class Pn extends N{_parse(e){const r=this._def.innerType._parse(e),n=a=>(It(a)&&(a.value=Object.freeze(a.value)),a);return jr(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}Pn.create=(t,e)=>new Pn({innerType:t,typeName:O.ZodReadonly,...R(e)});var O;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(O||(O={}));const f=qe.create,Fr=jt.create,je=Mn.create;rt.create;const or=Ie.create,z=U.create,Dr=Lr.create;Pr.create,gt.create;const at=zr.create,Ml=In.create,Zr=Lt.create;Br.create,nt.create,zt.create;const Rl=640,Il=1024;let Vr=null;const jl=()=>{if(Vr)return Vr;if(!globalThis.document)return 16;const t=globalThis.document.querySelector(":root");return Vr=Number(getComputedStyle(t).fontSize.slice(0,-2)),Vr},Nl=({minRem:t,maxRem:e})=>{const r=jl(),n=Rl/r,a=Il/r,o=(e-t)/(a-n),i=-n*o+t;return`clamp( ${t}rem, ${i}rem + ${o*100}cqw, ${e}rem )`},ae=z({minRem:Fr(),maxRem:Fr()}).or(f()),Ur=z({0:f().optional(),50:f(),100:f(),200:f(),300:f(),400:f(),500:f(),600:f(),700:f(),800:f(),900:f(),950:f(),1e3:f().optional()}),zn=z({color:f().optional(),background:f().optional(),borderWidth:f().optional(),borderColor:f().optional(),boxShadow:f().optional()}),Ll=z({borderRadius:ae.optional(),custom:at(f(),Dr([f(),Fr()])).optional(),hover:zn.optional(),focus:zn.optional()}).and(zn),Pl=z({family:f().optional()}),zl=at(Zr(["predefinedQuestion","edit","newConversation","voteUp","voteDown","retry","message","messageLoading","thread","submit","abort","expand","help","attach","record","reward","share","audio","copy","dismiss","menu","info","menuClose","chevronDown","internalLink","externalLink","liip","avatar","openChat","speechInput","listUnordered","lightMode","darkMode"]),f()),Bl=z({font:Pl.optional(),colors:z({brand:Ur,accent:Ur.optional(),highlight:Ur,grey:Ur}),base:z({fontSizeXs:ae.optional(),fontSizeSm:ae.optional(),fontSizeBody:ae.optional(),fontSizeH3:ae.optional(),fontSizeH2:ae.optional(),fontSizeH1:ae.optional(),fontWeightNormal:f().optional(),fontWeightBold:f().optional(),fontWeightTitle:f().optional(),lineHeightDefault:f().optional(),lineHeightSnug:f().optional(),lineHeightTight:f().optional(),borderRadius:ae.optional(),lineColor:f().optional(),boxShadow:f().optional()}),components:at(f(),Ll),svgs:zl}),qr=z({customCSS:f().optional(),fontCSS:f().optional(),fontURLs:f().array().optional(),tokens:Bl});z({light:qr,dark:qr});const Fl=z({light:qr,dark:qr}).deepPartial(),yo=t=>typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?t.minRem===t.maxRem?`${t.minRem}rem`:Nl(t):"",Bn=(t,e,r,n=!1)=>{let a="";return r.forEach(o=>{let i=e[o];n&&!i&&o==="borderWidth"&&(i="0px"),n&&!i&&o==="borderColor"&&(i="transparent"),i&&(a+=`--${Ir(t)}-${Ir(o)}:${yo(i)}; `)}),a},wo=(t,e)=>Object.entries(e).map(([r,n])=>`--${t}-${Ir(r)}:${yo(n)}`).join("; ")+"; ",Dl=(t,e)=>{let r="";return r+=Bn(t,e,["background","borderWidth","borderColor","boxShadow","borderRadius","color"],!0),e.hover&&(r+=Bn(`${t}-hover`,e.hover,["background","borderWidth","borderColor","boxShadow","color"])),e.focus&&(r+=Bn(`${t}-focus`,e.focus,["background","borderWidth","borderColor","boxShadow","color"])),e.custom&&(r+=wo(t,e.custom)),r},Zl=(t,e)=>Object.entries(e).map(([r,n])=>`--color-${t}-${r}:${n}`).join("; ")+"; ",Vl=t=>`--font-family: ${t?.family||"inherit"};`,Ul=t=>{const e=Vl(t.font),r=Object.entries(t.colors).map(([o,i])=>Zl(o,i)).join(""),n=wo("base",t.base),a=Object.entries(t.components).map(([o,i])=>Dl(Ir(o),i)).join("");return`.chat-app {${e} ${r} ${n} ${a}};`};var Fn={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};const xo=z({50:f(),100:f(),200:f(),300:f(),400:f(),500:f(),600:f(),700:f(),800:f(),900:f(),950:f()}),Co=Zr(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),So=Dr([xo,Co]),ql=Dr([xo.and(z({0:f(),1e3:f()})),Co]),To=z({avatarImageUrl:f().optional(),colors:z({brand:So.optional(),highlight:So.optional(),grey:ql.optional(),background:f().optional(),text:f().optional(),anchor:z({default:f().optional(),hover:f().optional()}).optional()}).optional(),font:z({family:f().optional(),urls:or(f()).optional(),sizeXs:ae.optional(),sizeSm:ae.optional(),sizeBody:ae.optional(),sizeH3:ae.optional(),sizeH2:ae.optional(),sizeH1:ae.optional(),weightNormal:f().optional(),weightBold:f().optional(),weightTitle:f().optional()}).optional(),borderRadius:ae.optional(),fineGrained:Fl.optional()}),Hl=z({blocked:f(),maintenance:f(),"rate-limit":f(),"server-error":f(),"too-short":f(),"too-long":f(),"quota-reached":f(),aborted:f(),"sse-error":f(),"client-error":f(),"unexpected-call":f(),"incomplete-error":f(),"feedback-failed":f(),"speech-not-supported":f(),"speech-transcription-failed":f(),"speech-no-text-detected":f(),"speech-microphone-access-denied":f(),"pii-detected":f()}),Wl=z({email:f(),creditCard:f(),ahv:f(),phoneSwiss:f(),phoneInternational:f(),swissPassport:f(),longNumber:f()}),Eo=z({predefinedQuestions:f(),introductionTitle:f(),introductionDisclaimer:f().optional(),chatInputPlaceholder:f(),chatInputPlaceholderListening:f().optional(),chatInputSubmit:f(),chatInputStartListening:f(),chatInputStopListening:f(),referenceLink:f(),referencesDisplay:f(),referencesHide:f(),referencesTitle:f(),referencesFurtherTitle:f(),newChat:f(),maintenanceModeError:f(),messageBotLoading:f(),messageBotError:f(),messageBotDefaultError:f(),chatFooterText:f().optional(),scrollToBottom:f(),openButtonTitle:f().optional(),openButtonDescription:f().optional(),openMenu:f(),openInfo:f(),aboutThisChat:f().optional(),closeMenu:f(),closeChat:f(),close:f(),send:f(),thankYouForFeedback:f(),giveFeedback:f(),sendFeedback:f(),feedbackFormTitle:f(),feedbackFormMessage:f(),feedbackFormMessagePlaceholder:f(),feedbackFormEmail:f(),feedbackFormEmailPlaceholder:f(),answerGood:f(),answerBad:f(),classificationSubmit:f(),classificationThankYou:f(),classificationTitle:f(),selectLanguage:f(),lightMode:f(),darkMode:f()}),Bt=Zr(["en","de","fr","it"]),$o=at(Bt,Eo.partial());at(Bt,Hl),at(Bt,Wl);const Oo=z({label:f(),options:or(z({label:f(),value:Fr()}))}),Gl=z({label:f(),icon:f(),url:f(),target:Zr(["_blank","_self"]).optional()}),Yl=z({label:f().nullable(),question:f()}),Ao=z({impact:Oo.optional(),quality:Oo.optional()});z({classification:Ao.optional()}),z({predefinedQuestions:or(Yl)}),Dr([z({maintenance:Ml(!0)}),z({id:f(),cID:f()})]),at(Bt,Eo);const Ql=z({showPredefinedQuestions:je(),showOverallFeedbackButton:je(),showCloseChatButton:je(),showContextMenu:je(),showContextInfo:je(),allowAudioInput:je(),blockPII:je(),questionPrefix:f(),menu:at(Bt,or(Gl)).optional(),supportedLanguages:or(Bt),classification:Ao.optional(),showTextFeedback:je(),theme:To,translations:$o,buttonHref:f().optional(),addQueryToUrlParams:je().optional(),renderKatex:je().optional()}).partial().and(z({theme:z({name:f().optional()}).optional()}));function Kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dn,Mo;function Xl(){if(Mo)return Dn;Mo=1;var t=function(k){return e(k)&&!r(k)};function e(m){return!!m&&typeof m=="object"}function r(m){var k=Object.prototype.toString.call(m);return k==="[object RegExp]"||k==="[object Date]"||o(m)}var n=typeof Symbol=="function"&&Symbol.for,a=n?Symbol.for("react.element"):60103;function o(m){return m.$$typeof===a}function i(m){return Array.isArray(m)?[]:{}}function s(m,k){return k.clone!==!1&&k.isMergeableObject(m)?v(i(m),m,k):m}function l(m,k,p){return m.concat(k).map(function(y){return s(y,p)})}function c(m,k){if(!k.customMerge)return v;var p=k.customMerge(m);return typeof p=="function"?p:v}function u(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(k){return Object.propertyIsEnumerable.call(m,k)}):[]}function h(m){return Object.keys(m).concat(u(m))}function d(m,k){try{return k in m}catch{return!1}}function g(m,k){return d(m,k)&&!(Object.hasOwnProperty.call(m,k)&&Object.propertyIsEnumerable.call(m,k))}function b(m,k,p){var y={};return p.isMergeableObject(m)&&h(m).forEach(function(C){y[C]=s(m[C],p)}),h(k).forEach(function(C){g(m,C)||(d(m,C)&&p.isMergeableObject(k[C])?y[C]=c(C,p)(m[C],k[C],p):y[C]=s(k[C],p))}),y}function v(m,k,p){p=p||{},p.arrayMerge=p.arrayMerge||l,p.isMergeableObject=p.isMergeableObject||t,p.cloneUnlessOtherwiseSpecified=s;var y=Array.isArray(k),C=Array.isArray(m),L=y===C;return L?y?p.arrayMerge(m,k,p):b(m,k,p):s(k,p)}v.all=function(k,p){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(y,C){return v(y,C,p)},{})};var T=v;return Dn=T,Dn}var Jl=Xl();const ir=Kl(Jl),ec=t=>t===null||typeof t!="object",Zn=t=>{if(ec(t))return t;if(Array.isArray(t))return t.map(Zn);const e=Object.entries(t).filter(([r,n])=>n!==void 0).map(([r,n])=>[r,Zn(n)]);return Object.fromEntries(e)},Hr=(t,e)=>{const r=Zn(e);return ir(t,r)},Ro={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-600)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--color-grey-600)",background:"var(--color-grey-100)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},card:{color:"inherit",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:"var(--base-border-radius)",boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:"var(--base-border-radius)",borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:"calc(var(--base-border-radius) / 1.25)",hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#dd1313",color:"var(--color-grey-0)",borderColor:"#dd1313",borderWidth:"1px",borderRadius:"calc(var(--base-border-radius) / 2)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:768,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageReferences:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--card-border-radius)",hover:{color:"var(--anchor-hover-color)"}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"}},referencesToggle:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"}},svgs:{predefinedQuestion:`
|
|
17
|
+
<svg viewBox="0 0 24 24" >
|
|
18
|
+
<path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
19
|
+
<path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
20
|
+
<path d="M23.5 3.5A10.5 10.5 0 0 0 13 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
21
|
+
<path d="M13 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
22
|
+
</svg>
|
|
23
|
+
`,edit:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m15.9 4.7 3.5 3.5-10.8 10.8-3.5-3.5z"/><path d="m5.1 15.4-1.7 5.3 5.3-1.7-3.5-3.5z"/><path d="m19.3 8.1-3.5-3.5.6-.6c1-1 2.6-.9 3.5 0 .9 1 .9 2.5 0 3.5z"/></g></svg>',newConversation:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m12.6 15.3-4.7 1.6 1.5-4.8 7.6-7.6c.6-.6 1.5-.6 2.1 0l1.1 1.1c.6.6.6 1.5 0 2.1l-7.7 7.7z"/><path d="m12.8 15.1-3.3-3.3"/><path d="m20.2 12.1v7.4c0 .8-.7 1.5-1.5 1.5h-13.8c-.8 0-1.5-.7-1.5-1.5v-14.5c0-.8.7-1.5 1.5-1.5h8.4"/></g></svg>',voteUp:'<svg viewBox="0 0 24 24"><path d="M0.5 8.372h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3.5 19.372c7.339 3.726 6.981 3.235 13.265 3.235 2.632 0 3.958 -1.715 4.732 -4.228l0 -0.016 1.907 -6.4 0 -0.012A2 2 0 0 0 21.5 9.372h-4.9a2 2 0 0 1 -1.934 -2.51l0.882 -3.344a1.713 1.713 0 0 0 -3.06 -1.418L7.6 9.025a2 2 0 0 1 -1.634 0.847H3.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',voteDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m.5 2.5h2c.6 0 1 .4 1 1v12c0 .6-.4 1-1 1h-2"/><path d="m3.5 15h2.5c.6 0 1.3.3 1.6.8l4.9 6.9c.4.6 1.1.9 1.8.7.9-.2 1.5-1.2 1.2-2.1l-.9-3.3c0-.2 0-.3 0-.5 0-1.1.9-2 2-2h4.9.6c1.1-.3 1.7-1.4 1.3-2.5s-1.9-6.4-1.9-6.4c-.8-2.5-2.1-4.2-4.7-4.2-6.3 0-5.9-.5-13.3 3.2"/></g></svg>',retry:'<svg viewBox="0 0 24 24"><path d="M5.5 18.928A9.5 9.5 0 0 1 17.061 3.956" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m18.5 9.498 0 -4.5 4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m5.5 14.498 0 4.5 -4.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18.5 5.071A9.5 9.5 0 0 1 6.883 20.006" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',message:'<svg viewBox="0 0 24 24"><path d="m12 1.6c-6 0-10.9 4-10.9 9 0 2.5 1.2 4.8 3.2 6.4l-2.3 5.4 6-3.4c1.3.4 2.6.6 3.9.6 6 0 10.9-4 10.9-9s-4.8-9-10.8-9z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',messageLoading:`<svg viewBox="0 0 24 24" width="24" height="24">
|
|
175
24
|
<circle cx="6" cy="23" r="1.75" fill="currentColor">
|
|
176
25
|
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0s"/>
|
|
177
26
|
</circle>
|
|
@@ -181,16 +30,170 @@ var LiipGPTButton=function(Fr){"use strict";const Ia="5";typeof window<"u"&&((wi
|
|
|
181
30
|
<circle cx="18" cy="23" r="1.75" fill="currentColor">
|
|
182
31
|
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.6s"/>
|
|
183
32
|
</circle>
|
|
184
|
-
</svg>`,thread:'<svg viewBox="0 0 24 24"><path d="M9.5 16.5c0 4.288 5 7.5 9.5 5.5l4 1.5 -1.5 -3a4.994 4.994 0 0 0 2 -4c0 -3.154 -3.134 -6 -7 -6s-7 2.846 -7 6Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.4 8.5a5.822 5.822 0 0 0 0.1 -1c0 -3.866 -3.8 -7 -8.5 -7S0.5 3.634 0.5 7.5a6.434 6.434 0 0 0 2.517 4.97L1 16l4.939 -1.976a9.993 9.993 0 0 0 1.561 0.361" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',submit:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"/><path d="m4 9 8-8 8 8"/></g></svg>',abort:'<svg viewBox="0 0 24 24"><g fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h14v14H5z"/></g></svg>',expand:'<svg viewBox="0 0 24 24"><path d="m22 7-10 10-10-10" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',help:'<svg viewBox="0 0
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
33
|
+
</svg>`,thread:'<svg viewBox="0 0 24 24"><path d="M9.5 16.5c0 4.288 5 7.5 9.5 5.5l4 1.5 -1.5 -3a4.994 4.994 0 0 0 2 -4c0 -3.154 -3.134 -6 -7 -6s-7 2.846 -7 6Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.4 8.5a5.822 5.822 0 0 0 0.1 -1c0 -3.866 -3.8 -7 -8.5 -7S0.5 3.634 0.5 7.5a6.434 6.434 0 0 0 2.517 4.97L1 16l4.939 -1.976a9.993 9.993 0 0 0 1.561 0.361" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',submit:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"/><path d="m4 9 8-8 8 8"/></g></svg>',abort:'<svg viewBox="0 0 24 24"><g fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h14v14H5z"/></g></svg>',expand:'<svg viewBox="0 0 24 24"><path d="m22 7-10 10-10-10" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',help:'<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M5.04 7.955v-.161c.004-.555.053-.998.148-1.328.099-.33.241-.596.429-.799.187-.203.412-.387.675-.552.197-.127.373-.258.528-.395a1.71 1.71 0 0 0 .371-.452 1.15 1.15 0 0 0 .138-.561c0-.219-.052-.41-.157-.576a1.045 1.045 0 0 0-.423-.38 1.26 1.26 0 0 0-.58-.133c-.207 0-.402.046-.586.138a1.117 1.117 0 0 0-.452.4c-.117.174-.18.39-.19.65H3c.016-.633.168-1.157.457-1.569.288-.416.67-.725 1.146-.928.476-.206 1-.309 1.575-.309.631 0 1.19.105 1.675.314.485.206.865.506 1.141.9.276.392.414.867.414 1.422 0 .37-.062.7-.185.99-.12.285-.29.538-.51.76a3.943 3.943 0 0 1-.775.595c-.25.15-.457.304-.618.466a1.584 1.584 0 0 0-.357.562 2.42 2.42 0 0 0-.119.785v.161H5.041ZM5.984 11c-.317 0-.588-.111-.814-.333a1.095 1.095 0 0 1-.328-.809c-.003-.31.106-.577.328-.799.226-.222.497-.333.814-.333.301 0 .566.111.794.333a1.092 1.092 0 0 1 .181 1.375 1.23 1.23 0 0 1-.414.414 1.081 1.081 0 0 1-.561.152Z" fill="currentColor"/></svg>',attach:'<svg viewBox="0 0 24 24"><path d="m7.618 15.345 8.666 -8.666a2.039 2.039 0 1 1 2.883 2.883L7.461 21.305a4.078 4.078 0 0 1 -5.767 -5.768L13.928 3.305a5.606 5.606 0 0 1 7.929 7.928L13.192 19.9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',record:'<svg viewBox="0 0 24 24"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" fill="currentColor"/><path d="M19 10v2a7 7 0 0 1-14 0v-2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 19v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 23h8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',reward:'<svg viewBox="0 0 24 24"><path d="M23.5 10.5a1 1 0 0 1 -1 1h-21a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h21a1 1 0 0 1 1 1Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M21.5 22.5a1 1 0 0 1 -1 1h-17a1 1 0 0 1 -1 -1v-11h19Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m8.5 7.5 0 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m15.5 23.5 0 -16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.427 3.84C16.663 4.605 13 5.5 13 5.5s0.9 -3.663 1.66 -4.427a1.957 1.957 0 1 1 2.767 2.767Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.573 3.84C7.337 4.605 11 5.5 11 5.5s-0.9 -3.663 -1.66 -4.427A1.957 1.957 0 0 0 6.573 3.84Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',share:'<svg viewBox="0 0 24 24"><g><path d="M14.8 12.56a2.25 2.25 0 0 0 3.27 0.1l4.45 -4.45a3.37 3.37 0 0 0 0 -4.76l-2 -2a3.37 3.37 0 0 0 -4.76 0l-4.42 4.48a2.24 2.24 0 0 0 0.1 3.26" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.2 11.44a2.26 2.26 0 0 0 -3.27 -0.1l-4.45 4.45a3.37 3.37 0 0 0 0 4.76l2 2a3.37 3.37 0 0 0 4.76 0l4.45 -4.45a2.25 2.25 0 0 0 -0.1 -3.27" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m7.64 16.36 8.72 -8.72" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g></svg>',audio:'<svg viewBox="0 0 24 24"><path d="M5.5 9H2a1.5 1.5 0 0 0 -1.5 1.5v3A1.5 1.5 0 0 0 2 15h3.5l6.147 6.146a0.5 0.5 0 0 0 0.853 -0.353V3.207a0.5 0.5 0 0 0 -0.853 -0.353Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M20 4a10.893 10.893 0 0 1 0 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.5 6a7.535 7.535 0 0 1 0 12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.5 8.5c2.677 1.947 2.669 5.06 0 7" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>',copy:'<svg viewBox="0 0 24 24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.4999 5.5V1.50049c0 -0.552286 -0.4477 -1.000002 -1 -1.000002H1.49988C0.947593 0.500488 0.499878 0.948203 0.499878 1.50049V15.5005c0 0.5523 0.447715 1 1.000002 1H5.5" stroke-width="1.5"></path><path stroke="currentColor" stroke-linejoin="round" d="M7.4999 8.49951c0 -0.55228 0.44772 -1 1 -1h14c0.5523 0 1 0.44772 1 1V22.4995c0 0.5523 -0.4477 1 -1 1h-14c-0.55228 0 -1 -0.4477 -1 -1V8.49951Z" stroke-width="1.5"></path></svg>',dismiss:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"/><path d="m18.257 5.742-12.514 12.514"/></g></svg>',menu:'<svg viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path d="m4 6h16"/><path d="m4 12h16"/><path d="m4 18h16"/></g></svg>',menuClose:'<svg viewBox="0 0 24 24"><path d="m20 16-8-8-8 8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>',externalLink:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m18 6-12 12"/><path d="m18 17v-11h-11"/></g></svg>',internalLink:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"/><path d="m13 19 7-7-7-7"/></g></svg>',chevronDown:'<svg viewBox="0 0 24 24"><path d="m20 8-8 8-8-8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>',liip:'<svg viewBox="0 0 199 72"><path d="m125.352941.70588235 14.588235 7.05882353-32.705882 63.29411762-14.5882352-7.0588235zm-37.6470586 0 14.3529416 7.05882353-32.7058828 63.29411762-14.5882353-7.0588235zm78.8235296 45.17647055v23.0588236h-16.235294v-64.9411765h26.117647c14.588235 0 22.588235 10.3529412 22.588235 20.9411765 0 10.8235294-7.764706 20.9411764-22.588235 20.9411764zm0-27.5294117v13.1764706h9.17647c4.470589 0 7.058824-3.2941177 7.058824-6.5882353 0-3.2941177-2.588235-6.5882353-7.058824-6.5882353zm-166.11764729-14.3529412h16.23529409v50.8235294h27.7647059v14.1176471h-43.99999999z" fill="currentColor" fill-rule="evenodd"/></svg>',avatar:`
|
|
34
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" width="100" height="100" shape-rendering="geometricPrecision" text-rendering="geometricPrecision">
|
|
35
|
+
<style>
|
|
36
|
+
.svg--avatar {
|
|
37
|
+
--logo-color1: var(--color-brand-500);
|
|
38
|
+
--logo-color1-transparent: var(--color-brand-400);
|
|
39
|
+
|
|
40
|
+
--logo-color2: var(--color-highlight-400);
|
|
41
|
+
--logo-color2-transparent: var(--color-highlight-500);
|
|
42
|
+
|
|
43
|
+
--logo-color3: var(--color-brand-400);
|
|
44
|
+
--logo-color3-transparent: var(--color-highlight-500);
|
|
45
|
+
|
|
46
|
+
--logo-color4: var(--color-highlight-400);
|
|
47
|
+
--logo-color4-transparent: var(--color-brand-500);
|
|
48
|
+
|
|
49
|
+
--logo-glass-color: oklch(1 0 0 / 0.2); /* Soft white glass effect */
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#group1 {
|
|
53
|
+
animation: group1_anim 8000ms ease-in-out infinite normal forwards;
|
|
54
|
+
/* Delay animation after fly-in animation */
|
|
55
|
+
transform: translate(30px, 30px);
|
|
56
|
+
animation-delay: 0.8s;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes group1_anim {
|
|
60
|
+
0% { transform: translate(30px, 30px); }
|
|
61
|
+
25% { transform: translate(50px, 100px); }
|
|
62
|
+
50% { transform: translate(90px, 30px); }
|
|
63
|
+
75% { transform: translate(50px, 50px); }
|
|
64
|
+
100% { transform: translate(30px, 30px); }
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#group2 {
|
|
68
|
+
animation: group2_anim 8000ms ease-in-out infinite normal forwards;
|
|
69
|
+
/* Delay animation after fly-in animation */
|
|
70
|
+
transform: translate(-35px, -35px);
|
|
71
|
+
animation-delay: 0.8s;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes group2_anim {
|
|
75
|
+
0% { transform: translate(-35px, -35px); }
|
|
76
|
+
25% { transform: translate(25px, 40px); }
|
|
77
|
+
50% { transform: translate(100px, 35px); }
|
|
78
|
+
75% { transform: translate(25px, 25px); }
|
|
79
|
+
100% { transform: translate(-35px, -35px); }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#group3 {
|
|
83
|
+
overflow: visible;
|
|
84
|
+
animation: group3_anim 8000ms ease-in-out infinite normal forwards;
|
|
85
|
+
/* Delay animation after fly-in animation */
|
|
86
|
+
transform: translate(120px, 20px);
|
|
87
|
+
animation-delay: 0.8s;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes group3_anim {
|
|
91
|
+
0% { transform: translate(120px, 20px); }
|
|
92
|
+
25% { transform: translate(30px, 17px); }
|
|
93
|
+
50% { transform: translate(35px, 20px); }
|
|
94
|
+
75% { transform: translate(30px, 120px); }
|
|
95
|
+
100% { transform: translate(120px, 20px); }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#group4 {
|
|
99
|
+
animation: group4_anim 12000ms ease-in-out infinite normal forwards;
|
|
100
|
+
/* Delay animation after fly-in animation */
|
|
101
|
+
transform: translate(40px, -40px);
|
|
102
|
+
animation-delay: 0.8s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes group4_anim {
|
|
106
|
+
0% { transform: translate(40px, -40px); }
|
|
107
|
+
25% { transform: translate(25px, 45px); }
|
|
108
|
+
50% { transform: translate(-20px, 120px); }
|
|
109
|
+
75% { transform: translate(50px, 0px); }
|
|
110
|
+
100% { transform: translate(40px, -40px); }
|
|
111
|
+
}
|
|
112
|
+
</style>
|
|
113
|
+
<defs>
|
|
114
|
+
<!-- Define the circular masks -->
|
|
115
|
+
<mask id="circleMask1">
|
|
116
|
+
<rect width="100" height="100" fill="black" />
|
|
117
|
+
<circle cx="50" cy="50" r="50" fill="white" />
|
|
118
|
+
</mask>
|
|
119
|
+
<mask id="circleMask2">
|
|
120
|
+
<rect width="100" height="100" fill="black" />
|
|
121
|
+
<circle cx="50" cy="50" r="46" fill="white" />
|
|
122
|
+
</mask>
|
|
123
|
+
|
|
124
|
+
<!-- Radial Gradients for Animations -->
|
|
125
|
+
<radialGradient id="gradient1" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
126
|
+
<stop offset="0%" stop-color="var(--logo-color1)" />
|
|
127
|
+
<stop offset="80%" stop-color="var(--logo-color1-transparent)" />
|
|
128
|
+
</radialGradient>
|
|
129
|
+
<radialGradient id="gradient2" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
130
|
+
<stop offset="0%" stop-color="var(--logo-color2)" />
|
|
131
|
+
<stop offset="80%" stop-color="var(--logo-color2-transparent)" />
|
|
132
|
+
</radialGradient>
|
|
133
|
+
<radialGradient id="gradient3" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
134
|
+
<stop offset="0%" stop-color="var(--logo-color3)" />
|
|
135
|
+
<stop offset="50%" stop-color="var(--logo-color3-transparent)" />
|
|
136
|
+
</radialGradient>
|
|
137
|
+
<radialGradient id="gradient4" cx="0.5" cy="0.5" r="1" spreadMethod="pad">
|
|
138
|
+
<stop offset="0%" stop-color="var(--logo-color4)" />
|
|
139
|
+
<stop offset="80%" stop-color="var(--logo-color4-transparent)" />
|
|
140
|
+
</radialGradient>
|
|
141
|
+
|
|
142
|
+
<!-- Radial Gradient for Centered Disc -->
|
|
143
|
+
<radialGradient id="centerGradient" cx="0.5" cy="0.5" r="0.5" spreadMethod="pad">
|
|
144
|
+
<stop offset="0%" stop-color="rgba(255, 255, 255, 0)" />
|
|
145
|
+
<stop offset="75%" stop-color="rgba(255, 255, 255, 0)" />
|
|
146
|
+
<stop offset="100%" stop-color="var(--logo-glass-color)" />
|
|
147
|
+
</radialGradient>
|
|
148
|
+
|
|
149
|
+
<!-- Gaussian blur filter -->
|
|
150
|
+
<filter id="blurFilter" x="-150%" y="-150%" width="400%" height="400%">
|
|
151
|
+
<feGaussianBlur stdDeviation="8" />
|
|
152
|
+
</filter>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</defs>
|
|
158
|
+
|
|
159
|
+
<!-- Larger Disc (border) -->
|
|
160
|
+
<g mask="url(#circleMask1)">
|
|
161
|
+
<circle cx="50" cy="50" r="50" fill="var(--logo-color2)" />
|
|
162
|
+
<g id="group1">
|
|
163
|
+
<ellipse x="50" rx="500" ry="80" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
164
|
+
</g>
|
|
165
|
+
<g id="group2">
|
|
166
|
+
<ellipse rx="100" ry="100" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
167
|
+
</g>
|
|
168
|
+
<g id="group3">
|
|
169
|
+
<ellipse rx="100" ry="100" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
170
|
+
</g>
|
|
171
|
+
</g>
|
|
172
|
+
|
|
173
|
+
<!-- Smaller Disc -->
|
|
174
|
+
<g mask="url(#circleMask2)">
|
|
175
|
+
<circle cx="50" cy="50" r="46" fill="var(--logo-color1)" />
|
|
176
|
+
<g id="group1">
|
|
177
|
+
<ellipse x="50" rx="100" ry="80" fill="url(#gradient1)" filter="url(#blurFilter)" />
|
|
178
|
+
</g>
|
|
179
|
+
<g id="group2">
|
|
180
|
+
<ellipse rx="80" ry="50" fill="url(#gradient2)" filter="url(#blurFilter)" />
|
|
181
|
+
</g>
|
|
182
|
+
<g id="group3">
|
|
183
|
+
<ellipse rx="60" ry="40" fill="url(#gradient3)" filter="url(#blurFilter)" />
|
|
184
|
+
</g>
|
|
185
|
+
<g id="group4">
|
|
186
|
+
<ellipse rx="30" ry="40" fill="url(#gradient4)" filter="url(#blurFilter)" />
|
|
187
|
+
</g>
|
|
188
|
+
|
|
189
|
+
<!-- Grain -->
|
|
190
|
+
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" filter='url(#grainFilter)' style="mix-blend-mode: soft-light;" />
|
|
191
|
+
</g>
|
|
192
|
+
|
|
193
|
+
<!-- Grain -->
|
|
194
|
+
<circle cx="50" cy="50" r="46" fill="url(#centerGradient)" />
|
|
195
|
+
</svg>
|
|
196
|
+
`,info:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m6.7 8.5c-.1-4.2 5.1-6.6 8.2-4 3.3 2.5 2 8.1-2.1 8.9-.6.1-1.1.7-1.1 1.3v2.2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="11.8" cy="20.6" r=".4"/></g></svg>',openChat:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m12 4v17"/><path d="m19 11-7-7-7 7"/></g></svg>',speechInput:`
|
|
194
197
|
<svg width="0" height="0">
|
|
195
198
|
<defs>
|
|
196
199
|
<mask id="microphone-mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox">
|
|
@@ -211,7 +214,16 @@ var LiipGPTButton=function(Fr){"use strict";const Ia="5";typeof window<"u"&&((wi
|
|
|
211
214
|
</mask>
|
|
212
215
|
</defs>
|
|
213
216
|
</svg>
|
|
214
|
-
`,
|
|
217
|
+
`,listUnordered:`
|
|
218
|
+
<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
219
|
+
<path d='M8 6H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
220
|
+
<path d='M8 12H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
221
|
+
<path d='M8 18H21' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
222
|
+
<path d='M3 6H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
223
|
+
<path d='M3 12H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
224
|
+
<path d='M3 18H3.01' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>
|
|
225
|
+
</svg>
|
|
226
|
+
`,lightMode:`
|
|
215
227
|
<svg viewBox="0 0 24 24" fill="none">
|
|
216
228
|
<path d="M18.5625 12C18.5625 10.2595 17.8711 8.59032 16.6404 7.35961C15.4097 6.1289 13.7405 5.4375 12 5.4375C10.2595 5.4375 8.59032 6.1289 7.35961 7.35961C6.1289 8.59032 5.4375 10.2595 5.4375 12C5.4375 13.7405 6.1289 15.4097 7.35961 16.6404C8.59032 17.8711 10.2595 18.5625 12 18.5625C13.7405 18.5625 15.4097 17.8711 16.6404 16.6404C17.8711 15.4097 18.5625 13.7405 18.5625 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
217
229
|
<path d="M12 20.4375V22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -228,4 +240,4 @@ var LiipGPTButton=function(Fr){"use strict";const Ia="5";typeof window<"u"&&((wi
|
|
|
228
240
|
<svg viewBox="0 0 24 24" fill="none">
|
|
229
241
|
<path d="M17.4546 19.3866C19.2134 18.1336 20.4574 16.2846 20.9554 14.1833C20.27 14.9892 19.4098 15.6282 18.4403 16.0517C17.4708 16.4753 16.4176 16.6723 15.3605 16.6277C14.3035 16.5831 13.2706 16.2981 12.3402 15.7944C11.4098 15.2908 10.6065 14.5816 9.99136 13.7209C9.37618 12.8601 8.96532 11.8705 8.78999 10.8272C8.61467 9.78384 8.67951 8.71426 8.97957 7.69974C9.27963 6.68522 9.80703 5.75246 10.5217 4.97235C11.2363 4.19223 12.1194 3.5853 13.1038 3.19768C11.6649 3.0599 10.2141 3.2727 8.87542 3.81787C7.53673 4.36304 6.35002 5.22437 5.41679 6.32817C4.48357 7.43197 3.83159 8.7454 3.51665 10.1561C3.2017 11.5668 3.23314 13.0328 3.6083 14.4287C3.98345 15.8246 4.69115 17.1089 5.67085 18.1717C6.65055 19.2344 7.87311 20.0441 9.23394 20.5313C10.5948 21.0186 12.0534 21.169 13.485 20.9696C14.9166 20.7703 16.2787 20.2271 17.4546 19.3866Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
230
242
|
</svg>
|
|
231
|
-
`}}},Ol=Ye(ma,{tokens:{components:{body:{background:"var(--color-grey-900)",color:"var(--color-grey-100)",focus:{color:"var(--color-highlight-400)"},custom:{selectionColor:"var(--color-grey-1000)",selectionBackground:"var(--color-brand-400)"}},avatar:{color:"var(--color-brand-200)",background:"var(--color-grey-800)"},anchor:{color:"var(--color-brand-300)",hover:{color:"var(--color-brand-50)"}},line:{color:"color-mix(in srgb, var(--color-brand-100) 20%, transparent)"},btnPrimary:{color:"var(--color-grey-1000)",background:"var(--color-brand-300)",hover:{background:"var(--color-brand-100)"}},btnSecondary:{color:"var(--color-brand-100)",background:"var(--color-brand-900)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},btnTertiary:{color:"var(--color-grey-0)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},card:{color:"var(--body-color)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-900)"}},pillDefault:{color:"var(--color-grey-200)",background:"var(--color-grey-600)",boxShadow:"var(--card-box-shadow)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-700)"}},input:{background:"var(--color-grey-900)",borderColor:"var(--color-grey-700)",custom:{placeholderColor:"var(--color-grey-400)"}},label:{color:"var(--color-grey-50)"},contextBox:{custom:{titleColor:"var(--color-grey-50)"}},chatFooter:{color:"var(--color-grey-500)"},chatInput:{color:"var(--color-grey-100)"},chatInputSubmit:{custom:{deactivatedBackground:"var(--color-grey-400)",deactivatedBorderColor:"var(--color-grey-400)"}},dialog:{custom:{backgroundOverlay:"rgba(0, 0, 0, 0.5)"}},tooltip:{background:"var(--color-grey-1000)"}}}}),$t={fineGrained:{light:ma,dark:Ol}},Il=Object.freeze(Object.defineProperty({__proto__:null,theme:$t},Symbol.toStringTag,{value:"Module"})),Ml=t=>{const e=Tl(t);return{light:Ye($t.fineGrained.light,e)}},jl=t=>{const e={};return t.dark&&(e.dark=Ye($t.fineGrained.dark,t.dark)),t.light&&(e.light=Ye($t.fineGrained.light,t.light)),!t.dark&&!t.light&&(e.light=t.light),e},At={de:{answerGood:"Gute Antwort",answerBad:"Schlechte Antwort",predefinedQuestions:"Vordefinierte Fragen:",chatInputPlaceholder:"Fragen Sie mich etwas",chatInputPlaceholderListening:"Ich höre zu...",chatInputSubmit:"Aufforderung senden",chatInputStartListening:"Spracherkennung starten",chatInputStopListening:"Spracherkennung beenden",introductionTitle:'Ich bin <span class="liipgpt-gradient-text">LiipGPT</span>. Wie kann ich Ihnen heute helfen?',referenceLink:"Link zur Referenz",newChat:"Neuer Chat",maintenanceModeError:"Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.",messageBotLoading:"Lass mich nachdenken",messageBotError:"Es ist ein Fehler aufgetreten:",messageBotDefaultError:"Unbekannter Fehler",referenceTitle:"Referenzen anzeigen",chatFooterText:"",scrollToBottom:"Nach unten scrollen",openMenu:"Menü öffnen",closeMenu:"Menü schließen",closeChat:"Chat schließen",close:"Schließen",openInfo:"Info öffnen",send:"Abschicken",thankYouForFeedback:"Danke für Dein Feedback!",giveFeedback:"Feedback geben",sendFeedback:"Feedback senden",feedbackFormTitle:"<h4>Feedback geben, um unseren Chatbot zu verbessern</h4>",feedbackFormMessage:"Ihre Nachricht",feedbackFormMessagePlaceholder:"Schreiben Sie hier Ihre Nachricht...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Ihre E-Mail eingeben...",classificationSubmit:"Abschicken",classificationThankYou:"Danke für Dein Feedback!",classificationTitle:"Bitte bewerten Sie den Einfluss und die Qualität der Nachricht oben",selectLanguage:"Sprache auswählen",lightMode:"Hell",darkMode:"Dunkel"},en:{answerGood:"Good answer",answerBad:"Bad answer",predefinedQuestions:"Predefined Questions:",chatInputPlaceholder:"Ask me something",chatInputPlaceholderListening:"I'm listening...",chatInputSubmit:"Send prompt",chatInputStartListening:"Start speech recognition",chatInputStopListening:"Stop speech recognition",introductionTitle:'I am <span class="liipgpt-gradient-text">LiipGPT</span>. How can I help you out today?',referenceLink:"Link to reference",newChat:"New discussion",maintenanceModeError:"The chat is currently not available. Please try again later.",messageBotLoading:"Let me think",messageBotError:"An error occurred:",messageBotDefaultError:"Unknown error",referenceTitle:"Show references",chatFooterText:"",scrollToBottom:"Scroll to bottom",openMenu:"Open menu",closeMenu:"Close menu",closeChat:"Close chat",openInfo:"Open info",close:"Close",send:"Send",thankYouForFeedback:"Thank you for your feedback!",giveFeedback:"Give feedback",sendFeedback:"Send feedback",feedbackFormTitle:"<h4>Give feedback to improve our Chatbot</h4>",feedbackFormMessage:"Your message",feedbackFormMessagePlaceholder:"Write your message here...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Enter your E-Mail",classificationSubmit:"Submit",classificationThankYou:"Thank you for your feedback!",classificationTitle:"Please rate the impact and quality of the message above",selectLanguage:"Select language",lightMode:"Light",darkMode:"Dark"},it:{answerGood:"Risposta buona",answerBad:"Risposta cattiva",predefinedQuestions:"Domande predefinite:",chatInputPlaceholder:"Chiedimi qualcosa",chatInputPlaceholderListening:"Sto ascoltando...",chatInputSubmit:"Invia richiesta",chatInputStartListening:"Avvia il riconoscimento vocale",chatInputStopListening:"Ferma il riconoscimento vocale",introductionTitle:'Sono <span class="liipgpt-gradient-text">LiipGPT</span>. Come posso aiutarti oggi?',referenceLink:"Link alla referenza",newChat:"Nuova discussione",maintenanceModeError:"Il chat è attualmente non disponibile. Per favore riprova più tardi.",messageBotLoading:"Fammi pensare",messageBotError:"Si è verificato un errore:",messageBotDefaultError:"Errore sconosciuto",referenceTitle:"Mostra riferimenti",chatFooterText:"",scrollToBottom:"Scorri verso il basso",openMenu:"Apri menu",closeMenu:"Chiudi menu",closeChat:"Chiudi chat",openInfo:"Apri info",close:"Chiudi",send:"Invia",thankYouForFeedback:"Grazie per il tuo feedback!",giveFeedback:"Invia feedback",sendFeedback:"Invia feedback",feedbackFormTitle:"<h4>Invia feedback per migliorare il nostro Chatbot</h4>",feedbackFormMessage:"Il tuo messaggio",feedbackFormMessagePlaceholder:"Scrivi qui il tuo messaggio...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Inserisci il tuo E-Mail",classificationSubmit:"Invia",classificationThankYou:"Grazie per il tuo feedback!",classificationTitle:"Per favore valuta l'impatto e la qualità del messaggio sopra",selectLanguage:"Selezionare la lingua",lightMode:"Chiaro",darkMode:"Scuro"},fr:{answerGood:"Réponse bonne",answerBad:"Réponse mauvaise",predefinedQuestions:"Questions prédéfinies:",chatInputPlaceholder:"Posez-moi une question",chatInputPlaceholderListening:"J'écoute...",chatInputSubmit:"Envoyer la demande",chatInputStartListening:"Démarrer la reconnaissance vocale",chatInputStopListening:"Arrêter la reconnaissance vocale",introductionTitle:"Je suis <span class='liipgpt-gradient-text'>LiipGPT</span>. Comment puis-je vous aider aujourd'hui?",referenceLink:"Lien vers la référence",newChat:"Nouvelle discussion",maintenanceModeError:"Le chat est actuellement indisponible. Veuillez réessayer plus tard.",messageBotLoading:"Laissez-moi réfléchir",messageBotError:"Une erreur est survenue:",messageBotDefaultError:"Erreur inconnue",referenceTitle:"Afficher les références",chatFooterText:"",scrollToBottom:"Scroller vers le bas",openMenu:"Ouvrir le menu",closeMenu:"Fermer le menu",closeChat:"Fermer le chat",openInfo:"Ouvrir info",close:"Fermer",send:"Envoyer",thankYouForFeedback:"Merci pour votre feedback!",giveFeedback:"Donner un feedback",sendFeedback:"Envoyer un feedback",feedbackFormTitle:"<h4>Donnez un feedback pour améliorer notre Chatbot</h4>",feedbackFormMessage:"Votre message",feedbackFormMessagePlaceholder:"Écrivez votre message ici...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Entrez votre E-Mail",classificationSubmit:"Envoyer",classificationThankYou:"Merci pour votre feedback!",classificationTitle:"Veuillez évaluer l'impact et la qualité du message ci-dessus",selectLanguage:"Choisir la langue",lightMode:"Clair",darkMode:"Sombre"}},Nl=Object.freeze(Object.defineProperty({__proto__:null,translations:At},Symbol.toStringTag,{value:"Module"})),Ll=t=>{t=t??At;const e={};return t.de&&(e.de=Ye(At.de,t.de)),t.en&&(e.en=Ye(At.en,t.en)),t.fr&&(e.fr=Ye(At.fr,t.fr)),t.it&&(e.it=Ye(At.it,t.it)),e},Pl=t=>{let e;t.theme?.fineGrained?e=jl(t.theme?.fineGrained):e=Ml(t?.theme??{});const r=Ll(t?.translations),n={...t,showPredefinedQuestions:t.showPredefinedQuestions??!0,showOverallFeedbackButton:t.showOverallFeedbackButton??!1,showCloseChatButton:t.showCloseChatButton??!1,showContextInfo:t.showContextInfo??!1,showContextMenu:t.showContextMenu??!1,showTextFeedback:t.showTextFeedback??!0,questionPrefix:t.questionPrefix??"",blockPII:t.blockPII??!1,allowAudioInput:t.allowAudioInput??!1,supportedLanguages:t.supportedLanguages??Object.keys(r),fullTheme:e,translations:r,buttonHref:t.buttonHref,addQueryToUrlParams:t.addQueryToUrlParams??!0,renderKatex:t.renderKatex??!1};return t.classification&&(n.classification=t.classification),t.menu&&(n.menu=t.menu),n},An=structuredClone($t.fineGrained.light);An.tokens.colors={brand:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},highlight:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}};const ga=structuredClone($t.fineGrained.dark);ga.tokens.colors=An.tokens.colors;const Bl=Object.freeze(Object.defineProperty({__proto__:null,theme:{fineGrained:{light:An,dark:ga}}},Symbol.toStringTag,{value:"Module"})),ba=t=>t.split("/").pop().split(".")[0],Fl=Object.assign({"./default/fallback-dev.theme.ts":Bl,"./default/fallback.theme.ts":Il}),ka=new Map;Object.entries(Fl).forEach(([t,e])=>{const{error:r,data:n}=ua.safeParse(e?.theme);if(r){console.error(`Invalid theme in ${t}:`,r);return}ka.set(ba(t),n)}),Array.from(ka.keys());const Dl=Object.assign({"./default/fallback.translations.ts":Nl}),_a=new Map;Object.entries(Dl).forEach(([t,e])=>{const{error:r,data:n}=fa.safeParse(e?.translations);if(r){console.error(`Invalid translations in ${t}:`,r);return}_a.set(ba(t),n)}),Array.from(_a.keys());const zl=["en","de","fr","it"],Zl="en",ya=t=>zl.includes(t),wa=t=>{if(ya(t))return t;const e=Vl();return ya(e)?e:Zl},Vl=()=>navigator.language.split("-")[0],Ul=()=>wa(localStorage.getItem("liipgpt:selectedLanguage"));var he=typeof window<"u"?window:{screen:{},navigator:{}},Ot=(he.matchMedia||function(){return{matches:!1}}).bind(he),Wl={get passive(){return!0}},xa=function(){};he.addEventListener&&he.addEventListener("p",xa,Wl),he.removeEventListener&&he.removeEventListener("p",xa,!1);var On="ontouchstart"in he,Gl="TouchEvent"in he,ql=On||Gl&&Ot("(any-pointer: coarse)").matches,Ca=(he.navigator.maxTouchPoints||0)>0||ql,Ra=he.navigator.userAgent||"",Hl=Ot("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Ra)&&Math.min(he.screen.width||0,he.screen.height||0)>=768,Sa=(Ot("(pointer: coarse)").matches||!Ot("(pointer: fine)").matches&&On)&&!/Windows.*Firefox/.test(Ra),Yl=Ot("(any-pointer: fine)").matches||Ot("(any-hover: hover)").matches||Hl||!On,Ta=Ca&&(Yl||!Sa)?"hybrid":Ca?"touchOnly":"mouseOnly",Ql=Ta==="mouseOnly"?"mouse":Ta==="touchOnly"||Sa?"touch":"mouse";ui();var Kl=me("<a><!></a>"),Jl=me('<button type="button"><!></button>');function Ea(t,e){mt(e,!1);let r=U(e,"href",12),n=U(e,"onclick",12),o=U(e,"onmouseenter",12),a=U(e,"onmouseleave",12),i=U(e,"style",12),s=U(e,"className",12),c=U(e,"isStandalone",12,!1),l=U(e,"children",12);const u=Array.isArray(s())?s():s()?[s()]:[];var f=Ce(),d=ee(f);{var m=b=>{var T=Kl();let p;var k=ke(T);on(k,l),be(T),zt(v=>{wr(T,"href",r()),p=dn(T,1,cn(u),null,p,v),hn(T,i())},[()=>({"open-button--standalone":c()})],hr),_r("mouseenter",T,function(...v){o()?.apply(this,v)}),_r("mouseleave",T,function(...v){a()?.apply(this,v)}),D(b,T)},_=b=>{var T=Jl();T.__click=function(...v){n()?.apply(this,v)};let p;var k=ke(T);on(k,l),be(T),zt(v=>{p=dn(T,1,cn(u),null,p,v),hn(T,i())},[()=>({"open-button--standalone":c()})],hr),_r("mouseenter",T,function(...v){o()?.apply(this,v)}),_r("mouseleave",T,function(...v){a()?.apply(this,v)}),D(b,T)};Ne(d,b=>{r()?b(m):b(_,!1)})}return D(t,f),gt({get href(){return r()},set href(b){r(b),Z()},get onclick(){return n()},set onclick(b){n(b),Z()},get onmouseenter(){return o()},set onmouseenter(b){o(b),Z()},get onmouseleave(){return a()},set onmouseleave(b){a(b),Z()},get style(){return i()},set style(b){i(b),Z()},get className(){return s()},set className(b){s(b),Z()},get isStandalone(){return c()},set isStandalone(b){c(b),Z()},get children(){return l()},set children(b){l(b),Z()}})}rn(["click"]),Qt(Ea,{href:{},onclick:{},onmouseenter:{},onmouseleave:{},style:{},className:{},isStandalone:{},children:{}},[],[],!0);function tr(t,e){mt(e,!0);let r=U(e,"css",7),n=Do(e,["$$slots","$$events","$$legacy","$$host","css"]);const o=c=>{mi(()=>{r()&&(c.innerHTML=r())})};var a=Ce(),i=ee(a);{var s=c=>{var l=Ce(),u=ee(l);Qi(u,()=>"style",!1,(f,d)=>{Ji(f,m=>o?.(m)),is(f,()=>({...n}))}),D(c,l)};Ne(i,c=>{r()&&c(s)})}return D(t,a),gt({get css(){return r()},set css(c){r(c),Z()}})}Qt(tr,{css:{}},[],[],!0);var Xl=me('<div class="open-button__title"><!></div>'),ec=me('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),tc=me('<div class="open-button__text"><!> <!></div>'),rc=me('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),nc=me('<link rel="stylesheet"/>'),oc=me("<!> <!>",1),ac=me('<!> <!> <!> <main class="chat-app"><!></main>',1);function $a(t,e){mt(e,!0);const r=(x,S)=>{let F=()=>S?.().theme,B=()=>S?.().language;const z=ve(()=>{const{openButtonTitle:pe,openButtonDescription:lt}=F().translations[B()];return{openButtonTitle:pe,openButtonDescription:lt}}),se=ve(()=>F().fullTheme[R(n)].tokens.svgs),Be=ve(()=>["open-button",e.buttonClass]);Ea(x,{get href(){return F().buttonHref},get onclick(){return e.onclick},onmouseenter:b,onmouseleave:T,get style(){return e.buttonStyle},get className(){return R(Be)},get isStandalone(){return R(l)},children:(pe,lt)=>{var Qe=rc(),ct=ee(Qe);{var ut=ft=>{var Mt=tc(),Oa=ke(Mt);{var ic=ht=>{var Ke=Xl(),rr=ke(Ke);ln(rr,()=>R(z).openButtonTitle),be(Ke),D(ht,Ke)};Ne(Oa,ht=>{R(z).openButtonTitle&&ht(ic)})}var sc=De(Oa,2);{var lc=ht=>{var Ke=ec(),rr=ke(Ke),cc=ke(rr);ln(cc,()=>R(z).openButtonDescription),be(rr),Fo(rr,In=>Q(d,In),()=>R(d)),be(Ke),Fo(Ke,In=>Q(f,In),()=>R(f)),D(ht,Ke)};Ne(sc,ht=>{R(z).openButtonDescription&&Ql==="mouse"&&ht(lc)})}be(Mt),D(ft,Mt)};Ne(ct,ft=>{(R(z).openButtonTitle||R(z).openButtonDescription)&&ft(ut)})}var dt=De(ct,2),It=ke(dt);ln(It,()=>R(se).avatar),be(dt),D(pe,Qe)},$$slots:{default:!0}})};let n=ae("light"),o=U(e,"host",7),a=U(e,"onError",7),i=Do(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);const s=async x=>{const F=await(await fetch(`${x}/chatconfig`)).json();return Sl.parse(F)},c=async({forceTheme:x,lang:S,apiUrl:F})=>{const B=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await s(F);let z;S?z=wa(S):z=Ul();const se=Pl(B),Be=Object.keys(se.fullTheme);return Q(n,xs(Be),!0),{theme:se,language:z}};let l=ve(()=>!!o()),u=ae(!1),f=ae(void 0),d=ae(void 0),m=ve(()=>R(d)?.offsetWidth??0),_=ve(()=>R(d)?.offsetHeight??0);function b(){!R(d)||!R(f)||(R(f).style.width=`${R(m)}px`,R(f).style.height=`${R(_)}px`)}function T(){!R(u)&&R(f)&&(R(f).style.width="0",R(f).style.height="0")}let p=ve(()=>c(i).catch(x=>a()(x)));var k=Ce();Ii(x=>{var S=Ce(),F=ee(S);{var B=z=>{var se=Ce(),Be=ee(se);So(Be,()=>R(p),null,(pe,lt)=>{var Qe=oc();const ct=ve(()=>R(lt).theme.fullTheme[R(n)]);var ut=ee(Qe);qi(ut,17,()=>R(ct).fontURLs??[],Wi,(It,ft)=>{var Mt=nc();zt(()=>wr(Mt,"href",R(ft))),D(It,Mt)});var dt=De(ut,2);tr(dt,{id:"font-css",get css(){return R(ct).fontCSS}}),D(pe,Qe)}),D(z,se)};Ne(F,z=>{R(l)&&z(B)})}D(x,S)});var v=ee(k);return So(v,()=>R(p),x=>{},(x,S)=>{var F=Ce();const B=ve(()=>R(S).theme.fullTheme[R(n)]);var z=ee(F);{var se=pe=>{var lt=ac(),Qe=ee(lt);const ct=ve(()=>_l(R(B).tokens));tr(Qe,{id:"theme-css",get css(){return R(ct)}});var ut=De(Qe,2);tr(ut,{id:"app-css",get css(){return ys}});var dt=De(ut,2);tr(dt,{id:"custom-css",get css(){return R(B).customCSS}});var It=De(dt,2),ft=ke(It);r(ft,()=>R(S)),be(It),D(pe,lt)},Be=pe=>{r(pe,()=>R(S))};Ne(z,pe=>{R(l)?pe(se):pe(Be,!1)})}D(x,F)}),D(t,k),gt({get host(){return o()},set host(x){o(x),Z()},get onError(){return a()},set onError(x){a(x),Z()}})}Qt($a,{host:{},onError:{}},[],[],!0);function Aa(t,e){mt(e,!0);let r=U(e,"onclick",7),n=U(e,"buttonClass",7),o=U(e,"buttonStyle",7),a=U(e,"apiUrl",7),i=U(e,"forceTheme",7),s=U(e,"lang",7),c=ve(()=>({onclick:r(),buttonClass:n(),buttonStyle:o(),apiUrl:a(),forceTheme:i(),lang:s()}));return Zo(t,{silent:!0,body:(u,f=lr)=>{$a(u,us({host:e.$$host,get onError(){return f()}},()=>R(c)))},$$slots:{body:!0}}),gt({get onclick(){return r()},set onclick(l){r(l),Z()},get buttonClass(){return n()},set buttonClass(l){n(l),Z()},get buttonStyle(){return o()},set buttonStyle(l){o(l),Z()},get apiUrl(){return a()},set apiUrl(l){a(l),Z()},get forceTheme(){return i()},set forceTheme(l){i(l),Z()},get lang(){return s()},set lang(l){s(l),Z()}})}return customElements.define("liipgpt-button",Qt(Aa,{forceTheme:{attribute:"force-theme",type:"String"},buttonClass:{attribute:"button-class",type:"String"},buttonStyle:{attribute:"button-style",type:"String"},apiUrl:{attribute:"api-url",type:"String"},lang:{attribute:"lang",type:"String"},onclick:{}},[],[],!0)),Fr.LiipGPTButton=Aa,Object.defineProperty(Fr,Symbol.toStringTag,{value:"Module"}),Fr}({});
|
|
243
|
+
`}}},tc=Hr(Ro,{tokens:{base:{lineColor:"color-mix(in srgb, var(--color-brand-100) 20%, transparent)"},components:{body:{background:"var(--color-grey-900)",color:"var(--color-grey-100)",focus:{color:"var(--color-highlight-400)"},custom:{selectionColor:"var(--color-grey-1000)",selectionBackground:"var(--color-brand-400)"}},avatar:{color:"var(--color-brand-200)",background:"var(--color-grey-800)"},anchor:{color:"var(--color-brand-300)",hover:{color:"var(--color-brand-50)"}},btnPrimary:{color:"var(--color-grey-1000)",background:"var(--color-brand-300)",hover:{background:"var(--color-brand-100)"}},btnSecondary:{color:"var(--color-brand-100)",background:"var(--color-brand-900)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},btnTertiary:{color:"var(--color-grey-0)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-800)"}},card:{color:"var(--body-color)",background:"var(--color-grey-800)",hover:{color:"var(--color-grey-0)",background:"var(--color-brand-900)"}},input:{background:"var(--color-grey-900)",borderColor:"var(--color-grey-700)",custom:{placeholderColor:"var(--color-grey-400)"}},label:{color:"var(--color-grey-50)"},contextBox:{custom:{titleColor:"var(--color-grey-50)"}},referenceDescription:{color:"var(--color-grey-300)",hover:{color:"var(--color-grey-300)"}},chatFooter:{color:"var(--color-grey-500)"},chatInput:{color:"var(--color-grey-100)"},chatInputSubmit:{custom:{deactivatedBackground:"var(--color-grey-400)",deactivatedBorderColor:"var(--color-grey-400)"}},dialog:{custom:{backgroundOverlay:"rgba(0, 0, 0, 0.5)"}},tooltip:{background:"var(--color-grey-1000)"}}}}),bt={fineGrained:{light:Ro,dark:tc}},rc=Object.freeze(Object.defineProperty({__proto__:null,theme:bt},Symbol.toStringTag,{value:"Module"})),Vn=t=>typeof t=="string"?Fn[t]:t,nc=t=>{const e=Vn(t?.colors?.brand||Fn.gray),r=Vn(t?.colors?.highlight||e),n={0:"#ffffff",1e3:"#000000",...Vn(t?.colors?.grey||Fn.gray)};let a="";return t.avatarImageUrl?a=`<img src="${t.avatarImageUrl}" alt="Avatar" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%; aspect-ratio: 1 / 1; display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));" />`:a=bt.fineGrained.light.tokens.svgs.avatar,{fontURLs:t.font?.urls,tokens:{font:{family:t.font?.family},colors:{brand:e,highlight:r,grey:n},base:{fontSizeXs:t.font?.sizeXs,fontSizeSm:t.font?.sizeSm,fontSizeBody:t.font?.sizeBody,fontSizeH3:t.font?.sizeH3,fontSizeH2:t.font?.sizeH2,fontSizeH1:t.font?.sizeH1,fontWeightNormal:t.font?.weightBold,fontWeightBold:t.font?.weightNormal,fontWeightTitle:t.font?.weightTitle,borderRadius:t.borderRadius},components:{body:{background:t.colors?.background,color:t.colors?.text},anchor:{color:t.colors?.anchor?.default,hover:{color:t.colors?.anchor?.hover}}},svgs:{avatar:a}}}},ac=t=>{const e=nc(t);return{light:Hr(bt.fineGrained.light,e)}},oc=t=>{const e={};return t.dark&&(e.dark=Hr(bt.fineGrained.dark,t.dark)),t.light&&(e.light=Hr(bt.fineGrained.light,t.light)),!t.dark&&!t.light&&(e.light=t.light),e},Ft={de:{answerGood:"Gute Antwort",answerBad:"Schlechte Antwort",predefinedQuestions:"Vordefinierte Fragen:",chatInputPlaceholder:"Fragen Sie mich etwas",chatInputPlaceholderListening:"Ich höre zu...",chatInputSubmit:"Aufforderung senden",chatInputStartListening:"Spracherkennung starten",chatInputStopListening:"Spracherkennung beenden",introductionTitle:'Ich bin <span class="liipgpt-gradient-text">LiipGPT</span>. Wie kann ich Ihnen heute helfen?',newChat:"Neuer Chat",maintenanceModeError:"Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.",messageBotLoading:"Lass mich nachdenken",messageBotError:"Es ist ein Fehler aufgetreten:",messageBotDefaultError:"Unbekannter Fehler",referenceLink:"Link zur Referenz",referencesDisplay:"Referenzen anzeigen",referencesHide:"Referenzen ausblenden",referencesTitle:"Referenzen",referencesFurtherTitle:"Weitere Referenzen",chatFooterText:"",scrollToBottom:"Nach unten scrollen",openMenu:"Menü öffnen",closeMenu:"Menü schließen",closeChat:"Chat schließen",close:"Schließen",openInfo:"Info öffnen",send:"Abschicken",thankYouForFeedback:"Danke für Dein Feedback!",giveFeedback:"Feedback geben",sendFeedback:"Feedback senden",feedbackFormTitle:"<h4>Feedback geben, um unseren Chatbot zu verbessern</h4>",feedbackFormMessage:"Ihre Nachricht",feedbackFormMessagePlaceholder:"Schreiben Sie hier Ihre Nachricht...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Ihre E-Mail eingeben...",classificationSubmit:"Abschicken",classificationThankYou:"Danke für Dein Feedback!",classificationTitle:"Bitte bewerten Sie den Einfluss und die Qualität der Nachricht oben",selectLanguage:"Sprache auswählen",lightMode:"Hell",darkMode:"Dunkel"},en:{answerGood:"Good answer",answerBad:"Bad answer",predefinedQuestions:"Predefined Questions:",chatInputPlaceholder:"Ask me something",chatInputPlaceholderListening:"I'm listening...",chatInputSubmit:"Send prompt",chatInputStartListening:"Start speech recognition",chatInputStopListening:"Stop speech recognition",introductionTitle:'I am <span class="liipgpt-gradient-text">LiipGPT</span>. How can I help you out today?',newChat:"New discussion",maintenanceModeError:"The chat is currently not available. Please try again later.",messageBotLoading:"Let me think",messageBotError:"An error occurred:",messageBotDefaultError:"Unknown error",referenceLink:"Link to reference",referencesDisplay:"Show references",referencesHide:"Hide references",referencesTitle:"References",referencesFurtherTitle:"More references",chatFooterText:"",scrollToBottom:"Scroll to bottom",openMenu:"Open menu",closeMenu:"Close menu",closeChat:"Close chat",openInfo:"Open info",close:"Close",send:"Send",thankYouForFeedback:"Thank you for your feedback!",giveFeedback:"Give feedback",sendFeedback:"Send feedback",feedbackFormTitle:"<h4>Give feedback to improve our Chatbot</h4>",feedbackFormMessage:"Your message",feedbackFormMessagePlaceholder:"Write your message here...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Enter your E-Mail",classificationSubmit:"Submit",classificationThankYou:"Thank you for your feedback!",classificationTitle:"Please rate the impact and quality of the message above",selectLanguage:"Select language",lightMode:"Light",darkMode:"Dark"},it:{answerGood:"Risposta buona",answerBad:"Risposta cattiva",predefinedQuestions:"Domande predefinite:",chatInputPlaceholder:"Chiedimi qualcosa",chatInputPlaceholderListening:"Sto ascoltando...",chatInputSubmit:"Invia richiesta",chatInputStartListening:"Avvia il riconoscimento vocale",chatInputStopListening:"Ferma il riconoscimento vocale",introductionTitle:'Sono <span class="liipgpt-gradient-text">LiipGPT</span>. Come posso aiutarti oggi?',newChat:"Nuova discussione",maintenanceModeError:"Il chat è attualmente non disponibile. Per favore riprova più tardi.",messageBotLoading:"Fammi pensare",messageBotError:"Si è verificato un errore:",messageBotDefaultError:"Errore sconosciuto",referenceLink:"Link alla referenza",referencesDisplay:"Mostra riferimenti",referencesHide:"Nascondi riferimenti",referencesTitle:"Riferimenti",referencesFurtherTitle:"Più riferimenti",chatFooterText:"",scrollToBottom:"Scorri verso il basso",openMenu:"Apri menu",closeMenu:"Chiudi menu",closeChat:"Chiudi chat",openInfo:"Apri info",close:"Chiudi",send:"Invia",thankYouForFeedback:"Grazie per il tuo feedback!",giveFeedback:"Invia feedback",sendFeedback:"Invia feedback",feedbackFormTitle:"<h4>Invia feedback per migliorare il nostro Chatbot</h4>",feedbackFormMessage:"Il tuo messaggio",feedbackFormMessagePlaceholder:"Scrivi qui il tuo messaggio...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Inserisci il tuo E-Mail",classificationSubmit:"Invia",classificationThankYou:"Grazie per il tuo feedback!",classificationTitle:"Per favore valuta l'impatto e la qualità del messaggio sopra",selectLanguage:"Selezionare la lingua",lightMode:"Chiaro",darkMode:"Scuro"},fr:{answerGood:"Réponse bonne",answerBad:"Réponse mauvaise",predefinedQuestions:"Questions prédéfinies:",chatInputPlaceholder:"Posez-moi une question",chatInputPlaceholderListening:"J'écoute...",chatInputSubmit:"Envoyer la demande",chatInputStartListening:"Démarrer la reconnaissance vocale",chatInputStopListening:"Arrêter la reconnaissance vocale",introductionTitle:"Je suis <span class='liipgpt-gradient-text'>LiipGPT</span>. Comment puis-je vous aider aujourd'hui?",newChat:"Nouvelle discussion",maintenanceModeError:"Le chat est actuellement indisponible. Veuillez réessayer plus tard.",messageBotLoading:"Laissez-moi réfléchir",messageBotError:"Une erreur est survenue:",messageBotDefaultError:"Erreur inconnue",referenceLink:"Lien vers la référence",referencesDisplay:"Afficher les références",referencesHide:"Masquer les références",referencesTitle:"Références",referencesFurtherTitle:"Plus de références",chatFooterText:"",scrollToBottom:"Scroller vers le bas",openMenu:"Ouvrir le menu",closeMenu:"Fermer le menu",closeChat:"Fermer le chat",openInfo:"Ouvrir info",close:"Fermer",send:"Envoyer",thankYouForFeedback:"Merci pour votre feedback!",giveFeedback:"Donner un feedback",sendFeedback:"Envoyer un feedback",feedbackFormTitle:"<h4>Donnez un feedback pour améliorer notre Chatbot</h4>",feedbackFormMessage:"Votre message",feedbackFormMessagePlaceholder:"Écrivez votre message ici...",feedbackFormEmail:"E-Mail",feedbackFormEmailPlaceholder:"Entrez votre E-Mail",classificationSubmit:"Envoyer",classificationThankYou:"Merci pour votre feedback!",classificationTitle:"Veuillez évaluer l'impact et la qualité du message ci-dessus",selectLanguage:"Choisir la langue",lightMode:"Clair",darkMode:"Sombre"}},ic=Object.freeze(Object.defineProperty({__proto__:null,translations:Ft},Symbol.toStringTag,{value:"Module"})),sc=t=>{t=t??Ft;const e={};return t.de&&(e.de=ir(Ft.de,t.de)),t.en&&(e.en=ir(Ft.en,t.en)),t.fr&&(e.fr=ir(Ft.fr,t.fr)),t.it&&(e.it=ir(Ft.it,t.it)),e},lc=t=>{let e;t.theme?.fineGrained?e=oc(t.theme?.fineGrained):e=ac(t?.theme??{});const r=sc(t?.translations),n={...t,showPredefinedQuestions:t.showPredefinedQuestions??!0,showOverallFeedbackButton:t.showOverallFeedbackButton??!1,showCloseChatButton:t.showCloseChatButton??!1,showContextInfo:t.showContextInfo??!1,showContextMenu:t.showContextMenu??!1,showTextFeedback:t.showTextFeedback??!0,questionPrefix:t.questionPrefix??"",blockPII:t.blockPII??!1,allowAudioInput:t.allowAudioInput??!1,supportedLanguages:t.supportedLanguages??Object.keys(r),fullTheme:e,translations:r,buttonHref:t.buttonHref,addQueryToUrlParams:t.addQueryToUrlParams??!0,renderKatex:t.renderKatex??!1};return t.classification&&(n.classification=t.classification),t.menu&&(n.menu=t.menu),n},Un=structuredClone(bt.fineGrained.light);Un.tokens.colors={brand:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},highlight:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}};const Io=structuredClone(bt.fineGrained.dark);Io.tokens.colors=Un.tokens.colors;const cc=Object.freeze(Object.defineProperty({__proto__:null,theme:{fineGrained:{light:Un,dark:Io}}},Symbol.toStringTag,{value:"Module"})),jo=t=>t.split("/").pop().split(".")[0],uc=Object.assign({"./default/fallback-dev.theme.ts":cc,"./default/fallback.theme.ts":rc}),No=new Map;Object.entries(uc).forEach(([t,e])=>{const{error:r,data:n}=To.safeParse(e?.theme);if(r){console.error(`Invalid theme in ${t}:`,r);return}No.set(jo(t),n)}),Array.from(No.keys());const dc=Object.assign({"./default/fallback.translations.ts":ic}),Lo=new Map;Object.entries(dc).forEach(([t,e])=>{const{error:r,data:n}=$o.safeParse(e?.translations);if(r){console.error(`Invalid translations in ${t}:`,r);return}Lo.set(jo(t),n)}),Array.from(Lo.keys());const fc=["en","de","fr","it"],hc="en",Po=t=>fc.includes(t),zo=t=>{if(Po(t))return t;const e=pc();return Po(e)?e:hc},pc=()=>navigator.language.split("-")[0],vc=()=>zo(localStorage.getItem("liipgpt:selectedLanguage"));var ke=typeof window<"u"?window:{screen:{},navigator:{}},Dt=(ke.matchMedia||function(){return{matches:!1}}).bind(ke),mc={get passive(){return!0}},Bo=function(){};ke.addEventListener&&ke.addEventListener("p",Bo,mc),ke.removeEventListener&&ke.removeEventListener("p",Bo,!1);var qn="ontouchstart"in ke,gc="TouchEvent"in ke,bc=qn||gc&&Dt("(any-pointer: coarse)").matches,Fo=(ke.navigator.maxTouchPoints||0)>0||bc,Do=ke.navigator.userAgent||"",_c=Dt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Do)&&Math.min(ke.screen.width||0,ke.screen.height||0)>=768,Zo=(Dt("(pointer: coarse)").matches||!Dt("(pointer: fine)").matches&&qn)&&!/Windows.*Firefox/.test(Do),kc=Dt("(any-pointer: fine)").matches||Dt("(any-hover: hover)").matches||_c||!qn,Vo=Fo&&(kc||!Zo)?"hybrid":Fo?"touchOnly":"mouseOnly",yc=Vo==="mouseOnly"?"mouse":Vo==="touchOnly"||Zo?"touch":"mouse";Ai();var wc=Ce("<a><!></a>"),xc=Ce('<button type="button"><!></button>');function Uo(t,e){Ct(e,!1);let r=W(e,"href",12),n=W(e,"onclick",12),a=W(e,"onmouseenter",12),o=W(e,"onmouseleave",12),i=W(e,"style",12),s=W(e,"className",12),l=W(e,"isStandalone",12,!1),c=W(e,"children",12);const u=Array.isArray(s())?s():s()?[s()]:[];var h=Ae(),d=se(h);{var g=v=>{var T=wc();let m;var k=Ee(T);gn(k,c),Te(T),Yt(p=>{Or(T,"href",r()),m=Sn(T,1,xn(u),null,m,p),En(T,i())},[()=>({"open-button--standalone":l()})]),Er("mouseenter",T,function(...p){a()?.apply(this,p)}),Er("mouseleave",T,function(...p){o()?.apply(this,p)}),Z(v,T)},b=v=>{var T=xc();T.__click=function(...p){n()?.apply(this,p)};let m;var k=Ee(T);gn(k,c),Te(T),Yt(p=>{m=Sn(T,1,xn(u),null,m,p),En(T,i())},[()=>({"open-button--standalone":l()})]),Er("mouseenter",T,function(...p){a()?.apply(this,p)}),Er("mouseleave",T,function(...p){o()?.apply(this,p)}),Z(v,T)};Ve(d,v=>{r()?v(g):v(b,!1)})}return Z(t,h),St({get href(){return r()},set href(v){r(v),V()},get onclick(){return n()},set onclick(v){n(v),V()},get onmouseenter(){return a()},set onmouseenter(v){a(v),V()},get onmouseleave(){return o()},set onmouseleave(v){o(v),V()},get style(){return i()},set style(v){i(v),V()},get className(){return s()},set className(v){s(v),V()},get isStandalone(){return l()},set isStandalone(v){l(v),V()},get children(){return c()},set children(v){c(v),V()}})}vn(["click"]),tr(Uo,{href:{},onclick:{},onmouseenter:{},onmouseleave:{},style:{},className:{},isStandalone:{},children:{}},[],[],!0);function sr(t,e){Ct(e,!0);let r=W(e,"css",7),n=eo(e,["$$slots","$$events","$$legacy","$$host","css"]);const a=l=>{Yi(()=>{r()&&(l.innerHTML=r())})};var o=Ae(),i=se(o);{var s=l=>{var c=Ae(),u=se(c);xs(u,()=>"style",!1,(h,d)=>{Ss(h,g=>a?.(g)),Is(h,()=>({...n}))}),Z(l,c)};Ve(i,l=>{r()&&l(s)})}return Z(t,o),St({get css(){return r()},set css(l){r(l),V()}})}tr(sr,{css:{}},[],[],!0);var Cc=Ce('<div class="open-button__title"><!></div>'),Sc=Ce('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),Tc=Ce('<div class="open-button__text"><!> <!></div>'),Ec=Ce('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),$c=Ce('<link rel="stylesheet"/>'),Oc=Ce("<!> <!>",1),Ac=Ce('<!> <!> <!> <main class="chat-app"><!></main>',1);function qo(t,e){Ct(e,!0);const r=(y,C)=>{let L=()=>C?.().theme,B=()=>C?.().language;const F=we(()=>{const{openButtonTitle:le,openButtonDescription:K}=L().translations[B()];return{openButtonTitle:le,openButtonDescription:K}}),D=we(()=>L().fullTheme[E(n)].tokens.svgs);{let le=we(()=>["open-button",e.buttonClass]);Uo(y,{get href(){return L().buttonHref},get onclick(){return e.onclick},onmouseenter:v,onmouseleave:T,get style(){return e.buttonStyle},get className(){return E(le)},get isStandalone(){return E(c)},children:(K,He)=>{var Ne=Ec(),Le=se(Ne);{var We=kt=>{var Zt=Tc(),Wo=Ee(Zt);{var Mc=yt=>{var ot=Cc(),cr=Ee(ot);wn(cr,()=>E(F).openButtonTitle),Te(ot),Z(yt,ot)};Ve(Wo,yt=>{E(F).openButtonTitle&&yt(Mc)})}var Rc=Je(Wo,2);{var Ic=yt=>{var ot=Sc(),cr=Ee(ot),jc=Ee(cr);wn(jc,()=>E(F).openButtonDescription),Te(cr),Ja(cr,Hn=>ie(d,Hn),()=>E(d)),Te(ot),Ja(ot,Hn=>ie(h,Hn),()=>E(h)),Z(yt,ot)};Ve(Rc,yt=>{E(F).openButtonDescription&&yc==="mouse"&&yt(Ic)})}Te(Zt),Z(kt,Zt)};Ve(Le,kt=>{(E(F).openButtonTitle||E(F).openButtonDescription)&&kt(We)})}var _t=Je(Le,2),lr=Ee(_t);wn(lr,()=>E(D).avatar),Te(_t),Z(K,Ne)},$$slots:{default:!0}})}};let n=fe("light"),a=W(e,"host",7),o=W(e,"onError",7),i=eo(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);const s=async y=>{const L=await(await fetch(`${y}/chatconfig`)).json();return Ql.parse(L)},l=async({forceTheme:y,lang:C,apiUrl:L})=>{const B=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await s(L);let F;C?F=zo(C):F=vc();const D=lc(B),le=Object.keys(D.fullTheme);return ie(n,Ws(le),!0),{theme:D,language:F}};let c=we(()=>!!a()),u=fe(!1),h=fe(void 0),d=fe(void 0),g=we(()=>E(d)?.offsetWidth??0),b=we(()=>E(d)?.offsetHeight??0);function v(){!E(d)||!E(h)||(E(h).style.width=`${E(g)}px`,E(h).style.height=`${E(b)}px`)}function T(){!E(u)&&E(h)&&(E(h).style.width="0",E(h).style.height="0")}let m=we(()=>l(i).catch(y=>o()(y)));var k=Ae();is(y=>{var C=Ae(),L=se(C);{var B=F=>{var D=Ae(),le=se(D);Da(le,()=>E(m),null,(K,He)=>{var Ne=Oc();const Le=we(()=>E(He).theme.fullTheme[E(n)]);var We=se(Ne);ys(We,17,()=>E(Le).fontURLs??[],_s,(lr,kt)=>{var Zt=$c();Yt(()=>Or(Zt,"href",E(kt))),Z(lr,Zt)});var _t=Je(We,2);sr(_t,{id:"font-css",get css(){return E(Le).fontCSS}}),Z(K,Ne)}),Z(F,D)};Ve(L,F=>{E(c)&&F(B)})}Z(y,C)});var p=se(k);return Da(p,()=>E(m),y=>{},(y,C)=>{var L=Ae();const B=we(()=>E(C).theme.fullTheme[E(n)]);var F=se(L);{var D=K=>{var He=Ac(),Ne=se(He);{let kt=we(()=>Ul(E(B).tokens));sr(Ne,{id:"theme-css",get css(){return E(kt)}})}var Le=Je(Ne,2);sr(Le,{id:"app-css",get css(){return qs}});var We=Je(Le,2);sr(We,{id:"custom-css",get css(){return E(B).customCSS}});var _t=Je(We,2),lr=Ee(_t);r(lr,()=>E(C)),Te(_t),Z(K,He)},le=K=>{r(K,()=>E(C))};Ve(F,K=>{E(c)?K(D):K(le,!1)})}Z(y,L)}),Z(t,k),St({get host(){return a()},set host(y){a(y),V()},get onError(){return o()},set onError(y){o(y),V()}})}tr(qo,{host:{},onError:{}},[],[],!0);function Ho(t,e){Ct(e,!0);let r=W(e,"onclick",7),n=W(e,"buttonClass",7),a=W(e,"buttonStyle",7),o=W(e,"apiUrl",7),i=W(e,"forceTheme",7),s=W(e,"lang",7),l=we(()=>({onclick:r(),buttonClass:n(),buttonStyle:a(),apiUrl:o(),forceTheme:i(),lang:s()}));return ro(t,{silent:!0,body:(u,h=hr)=>{qo(u,Ps({host:e.$$host,get onError(){return h()}},()=>E(l)))},$$slots:{body:!0}}),St({get onclick(){return r()},set onclick(c){r(c),V()},get buttonClass(){return n()},set buttonClass(c){n(c),V()},get buttonStyle(){return a()},set buttonStyle(c){a(c),V()},get apiUrl(){return o()},set apiUrl(c){o(c),V()},get forceTheme(){return i()},set forceTheme(c){i(c),V()},get lang(){return s()},set lang(c){s(c),V()}})}return customElements.define("liipgpt-button",tr(Ho,{forceTheme:{attribute:"force-theme",type:"String"},buttonClass:{attribute:"button-class",type:"String"},buttonStyle:{attribute:"button-style",type:"String"},apiUrl:{attribute:"api-url",type:"String"},lang:{attribute:"lang",type:"String"},onclick:{}},[],[],!0)),Wr.LiipGPTButton=Ho,Object.defineProperty(Wr,Symbol.toStringTag,{value:"Module"}),Wr}({});
|