@liip/liipgpt 2.6.2 → 3.0.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 +47 -6
- package/chat/liipgpt-chat.iife.js +80 -39
- package/config/index.cjs +32 -3
- package/config/index.d.ts +229 -40
- package/config/index.js +32 -3
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BAPHAIYf.js +1 -0
- package/configurator/_app/immutable/chunks/{Buwjqn5O.js → BPJ7Wmg3.js} +1 -1
- package/configurator/_app/immutable/chunks/{tN9GciFC.js → BQeTClLS.js} +1 -1
- package/configurator/_app/immutable/chunks/Br3XAryM.js +3 -0
- package/configurator/_app/immutable/chunks/{M-YrVFI7.js → CKBsx5jh.js} +1 -1
- package/configurator/_app/immutable/chunks/{BKW66Lfr.js → CM6OGTTD.js} +1 -1
- package/configurator/_app/immutable/chunks/CPeLWh9I.js +212 -0
- package/configurator/_app/immutable/chunks/DApeDt8n.js +1 -0
- package/configurator/_app/immutable/chunks/{DC-s52-u.js → DMTdy3IZ.js} +1 -1
- package/configurator/_app/immutable/chunks/{Df9MUm2j.js → DVzPdffW.js} +1 -1
- package/configurator/_app/immutable/chunks/{BWlPVxXO.js → Dw3u3J4Q.js} +44 -3
- package/configurator/_app/immutable/chunks/{Bu5Euvdy.js → LW4IUse-.js} +1 -1
- package/configurator/_app/immutable/chunks/{m7522vkh.js → LWSgf72j.js} +1 -1
- package/configurator/_app/immutable/entry/{app.CZ0SH_Vk.js → app.CX233_RN.js} +2 -2
- package/configurator/_app/immutable/entry/start.DP8mCLsI.js +1 -0
- package/configurator/_app/immutable/nodes/{0.CbZBO6K-.js → 0.CzOECOph.js} +44 -2
- package/configurator/_app/immutable/nodes/{1.RxzCcgx-.js → 1.DNHfTjB6.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.Cfyy-seW.js → 2.Dr0dTBhS.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.BoGEz7-s.js → 3.Cjna3oh9.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +37 -7
- package/index.d.ts +533 -67
- package/index.js +37 -7
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/1dD7WPXn.js +0 -3
- package/configurator/_app/immutable/chunks/BmSehLEh.js +0 -1
- package/configurator/_app/immutable/chunks/C99KO4nD.js +0 -212
- package/configurator/_app/immutable/chunks/xZHK-ZHf.js +0 -1
- package/configurator/_app/immutable/entry/start.BV7l4dkK.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var LiipGPTButton=function(Dr){"use strict";const Vo="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Vo);const Uo=1,qo=2,Wo=16,Ho=1,Go=4,Yo=8,Qo=16,Ko=1,Xo=2,Zr="[",lr="[!",Vr="]",it={},q=Symbol(),Jo="http://www.w3.org/1999/xhtml",ei="http://www.w3.org/2000/svg",ti="@attach",zn=!1;var cr=Array.isArray,ri=Array.prototype.indexOf,Ur=Array.from,ur=Object.keys,wt=Object.defineProperty,je=Object.getOwnPropertyDescriptor,ni=Object.getOwnPropertyDescriptors,ai=Object.prototype,oi=Array.prototype,Bn=Object.getPrototypeOf,Fn=Object.isExtensible;function Vt(t){return typeof t=="function"}const dr=()=>{};function Dn(t){return typeof t?.then=="function"}function Zn(t){for(var e=0;e<t.length;e++)t[e]()}function ii(){var t,e,r=new Promise((n,a)=>{t=n,e=a});return{promise:r,resolve:t,reject:e}}const le=2,qr=4,Wr=8,Ut=16,Ne=32,st=64,Hr=128,ce=256,fr=512,G=1024,ue=2048,lt=4096,xe=8192,ct=16384,Gr=32768,xt=65536,Vn=1<<17,Un=1<<18,hr=1<<19,qn=1<<20,Yr=1<<21,Qr=1<<22,ut=1<<23,qe=Symbol("$state"),Kr=Symbol("legacy props"),si=Symbol(""),Xr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},li=1,ci=3,dt=8;function ui(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function di(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function vi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mi(){throw new Error("https://svelte.dev/e/hydration_failed")}function gi(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function bi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _i(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function yi(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let $=!1;function K(t){$=t}let I;function X(t){if(t===null)throw qt(),it;return I=t}function Te(){return X(pe(I))}function We(t){if($){if(pe(I)!==null)throw qt(),it;I=t}}function Wn(t=1){if($){for(var e=t,r=I;e--;)r=pe(r);I=r}}function Wt(){for(var t=0,e=I;;){if(e.nodeType===dt){var r=e.data;if(r===Vr){if(t===0)return e;t-=1}else(r===Zr||r===lr)&&(t+=1)}var n=pe(e);e.remove(),e=n}}function Hn(t){if(!t||t.nodeType!==dt)throw qt(),it;return t.data}function Gn(t){return t===this.v}function wi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Yn(t){return!wi(t,this.v)}let xi=!1,de=null;function He(t){de=t}function Ct(t,e=!1,r){de={p:de,c:null,e:null,s:t,x:null,l:null}}function St(t){var e=de,r=e.e;if(r!==null){e.e=null;for(var n of r)pa(n)}return t!==void 0&&(e.x=t),de=e.p,t??{}}function Qn(){return!0}const Ci=new WeakMap;function Si(t){var e=A;if(e===null)return j.f|=ut,t;if((e.f&Gr)===0){if((e.f&Hr)===0)throw!e.parent&&t instanceof Error&&Kn(t),t;e.b.error(t)}else pr(t,e)}function pr(t,e){for(;e!==null;){if((e.f&Hr)!==0)try{e.b.error(t);return}catch{}e=e.parent}throw t instanceof Error&&Kn(t),t}function Kn(t){const e=Ci.get(t);e&&(wt(t,"message",{value:e.message}),wt(t,"stack",{value:e.stack}))}let Ht=[],Jr=[];function Xn(){var t=Ht;Ht=[],Zn(t)}function Ti(){var t=Jr;Jr=[],Zn(t)}function ft(t){Ht.length===0&&queueMicrotask(Xn),Ht.push(t)}function Ei(){Ht.length>0&&Xn(),Jr.length>0&&Ti()}function $i(t){let e=0,r=Le(0),n;return()=>{Di()&&(C(r),an(()=>(e===0&&(n=xr(()=>t(()=>br(r)))),e+=1,()=>{ft(()=>{e-=1,e===0&&(n?.(),n=void 0)})})))}}var Ri=xt|hr|Hr;function Oi(t,e,r){new Ai(t,e,r)}class Ai{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&&Ye(this.#d,this.#n)};#f=$i(()=>(this.#d=Le(this.#n),()=>{this.#d=null}));constructor(e,r,n){this.#e=e,this.#a=r,this.#l=n,this.#t=I,this.parent=A.b,this.pending=!!this.#a.pending,this.#u=Pe(()=>{A.b=this,$&&Te();const a=this.#a.pending;if($&&a)this.#r=W(()=>a(this.#e)),queueMicrotask(()=>{this.#o=this.#p(()=>(ht.ensure(),W(()=>this.#l(this.#e)))),this.#n>0?this.#v():($e(this.#r,()=>{this.#r=null}),this.pending=!1)});else{try{this.#o=W(()=>n(this.#e))}catch(o){this.error(o)}this.#n>0?this.#v():this.pending=!1}},Ri),$&&(this.#e=I)}has_pending_snippet(){return!!this.#a.pending}#p(e){var r=A,n=j,a=de;ge(this.#u),ee(this.#u),He(this.#u.ctx);try{return e()}finally{ge(r),ee(n),He(a)}}#v(){const e=this.#a.pending;this.#o!==null&&(this.#s=document.createDocumentFragment(),Mi(this.#o,this.#s)),this.#r===null&&(this.#r=W(()=>e(this.#e)))}#m(e){this.#n+=e,this.#n===0&&(this.pending=!1,this.#r&&$e(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),tn.add(this.#h)}get_effect_pending(){return this.#f(),C(this.#d)}error(e){var r=this.#a.onerror;let n=this.#a.failed;const a=()=>{this.#n=0,this.#i!==null&&$e(this.#i,()=>{this.#i=null}),this.pending=!0,this.#o=this.#p(()=>(this.#c=!1,W(()=>this.#l(this.#e)))),this.#n>0?this.#v():this.pending=!1};if(this.#c||!r&&!n)throw e;var o=j;try{ee(null),r?.(e,a)}finally{ee(o)}this.#o&&(Y(this.#o),this.#o=null),this.#r&&(Y(this.#r),this.#r=null),this.#i&&(Y(this.#i),this.#i=null),$&&(X(this.#t),Wn(),X(Wt())),n&&ft(()=>{this.#i=this.#p(()=>{this.#c=!0;try{return W(()=>{n(this.#e,()=>e,()=>a)})}catch(i){return pr(i,this.#u.parent),null}finally{this.#c=!1}})})}}function Mi(t,e){for(var r=t.nodes_start,n=t.nodes_end;r!==null;){var a=r===n?null:pe(r);e.append(r),r=a}}function Ii(){for(var t=A.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&ui(),t}function vr(t){var e=le|ue,r=j!==null&&(j.f&le)!==0?j:null;return A===null||r!==null&&(r.f&ce)!==0?e|=ce:A.f|=hr,{ctx:de,deps:null,effects:null,equals:Gn,f:e,fn:t,reactions:null,rv:0,v:q,wv:0,parent:r??A,ac:null}}function ji(t,e){let r=A;r===null&&di();var n=r.b,a=void 0,o=Le(q),i=null,s=!j;return Wi(()=>{try{var c=t()}catch(v){c=Promise.reject(v)}var l=()=>c;a=i?.then(l,l)??Promise.resolve(c),i=a;var d=oe,h=n.pending;s&&(n.update_pending_count(1),h||d.increment());const f=(v,g=void 0)=>{i=null,h||d.activate(),g?g!==Xr&&(o.f|=ut,Ye(o,g)):((o.f&ut)!==0&&(o.f^=ut),Ye(o,v)),s&&(n.update_pending_count(-1),h||d.decrement()),na()};if(a.then(f,v=>f(null,v||"unknown")),d)return()=>{queueMicrotask(()=>d.neuter())}}),new Promise(c=>{function l(d){function h(){d===a?c(o):l(a)}d.then(h,h)}l(a)})}function fe(t){const e=vr(t);return xa(e),e}function Jn(t){const e=vr(t);return e.equals=Yn,e}function ea(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)Y(e[r])}}function Ni(t){for(var e=t.parent;e!==null;){if((e.f&le)===0)return e;e=e.parent}return null}function en(t){var e,r=A;ge(Ni(t));try{ea(t),e=Ea(t)}finally{ge(r)}return e}function ta(t){var e=en(t);if(t.equals(e)||(t.v=e,t.wv=Sa()),!vt)if(Tt!==null)Tt.set(t,t.v);else{var r=(Je||(t.f&ce)!==0)&&t.deps!==null?lt:G;J(t,r)}}function ra(t,e,r){const n=vr;if(e.length===0){r(t.map(n));return}var a=oe,o=A,i=Li(),s=Ii();Promise.all(e.map(c=>ji(c))).then(c=>{a?.activate(),i();try{r([...t.map(n),...c])}catch(l){(o.f&ct)===0&&pr(l,o)}a?.deactivate(),na()}).catch(c=>{s.error(c)})}function Li(){var t=A,e=j,r=de;return function(){ge(t),ee(e),He(r)}}function na(){ge(null),ee(null),He(null)}const mr=new Set;let oe=null,Tt=null,tn=new Set,Et=[],gr=null,rn=!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){Et=[];var r=null;if(mr.size>1){r=new Map,Tt=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 mr)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(),aa(n),aa(a),this.#u?.resolve()}else{for(const o of this.#s)J(o,G);for(const o of this.#n)J(o,G);for(const o of this.#c)J(o,G)}if(r){for(const[o,{v:i,wv:s}]of r)o.wv<=s&&(o.v=i);Tt=null}for(const o of this.#r)Yt(o);for(const o of this.#i)Yt(o);this.#r=[],this.#i=[]}#h(e){e.f^=G;for(var r=e.first;r!==null;){var n=r.f,a=(n&(Ne|st))!==0,o=a&&(n&G)!==0,i=o||(n&xe)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(a)r.f^=G;else if((n&qr)!==0)this.#n.push(r);else if(yr(r))if((n&Qr)!==0){var s=r.b?.pending?this.#i:this.#r;s.push(r)}else(r.f&Ut)!==0&&this.#c.push(r),Yt(r);var c=r.first;if(c!==null){r=c;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)r=l.next,l=l.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 tn)if(tn.delete(e),e(),oe!==null)break}neuter(){this.#o=!0}flush(){Et.length>0?this.flush_effects():this.#f(),oe===this&&(this.#l===0&&mr.delete(this),this.deactivate())}flush_effects(){var e=Ot;rn=!0;try{var r=0;for(ya(!0);Et.length>0;){if(r++>1e3){var n,a;Pi()}this.#d(Et),pt.clear()}}finally{rn=!1,ya(e),gr=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)J(e,ue),Ge(e);for(const e of this.#n)J(e,ue),Ge(e);for(const e of this.#c)J(e,ue),Ge(e);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#a.add(e)}settled(){return(this.#u??=ii()).promise}static ensure(e=!0){if(oe===null){const r=oe=new ht;mr.add(oe),e&&queueMicrotask(()=>{oe===r&&r.flush()})}return oe}}function Z(t){var e;const r=ht.ensure(!1);for(;;){if(Ei(),Et.length===0)return r===oe&&r.flush(),gr=null,e;r.flush_effects()}}function Pi(){try{vi()}catch(t){pr(t,gr)}}function aa(t){var e=t.length;if(e!==0){for(var r=0;r<e;r++){var n=t[r];if((n.f&(ct|xe))===0&&yr(n)){var a=kr;if(Yt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ba(n):n.fn=null),kr>a&&(n.f&qn)!==0)break}}for(;r<e;r+=1)Ge(t[r])}}function Ge(t){for(var e=gr=t;e.parent!==null;){e=e.parent;var r=e.f;if(rn&&e===A&&(r&Ut)!==0)return;if((r&(st|Ne))!==0){if((r&G)===0)return;e.f^=G}}Et.push(e)}const pt=new Map;function Le(t,e){var r={f:0,v:t,reactions:null,equals:Gn,rv:0,wv:0};return r}function he(t,e){const r=Le(t);return xa(r),r}function oa(t,e=!1,r=!0){const n=Le(t);return e||(n.equals=Yn),n}function ie(t,e,r=!1){j!==null&&(!Ce||(j.f&Vn)!==0)&&Qn()&&(j.f&(le|Ut|Qr|Vn))!==0&&!ze?.includes(t)&&ki();let n=r?$t(e):e;return Ye(t,n)}function Ye(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&le)!==0&&((t.f&ue)!==0&&en(t),J(t,(t.f&ce)===0?G:lt)),t.wv=Sa(),ia(t,ue),A!==null&&(A.f&G)!==0&&(A.f&(Ne|st))===0&&(be===null?Gi([t]):be.push(t))}return e}function br(t){ie(t,t.v+1)}function ia(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,a=0;a<n;a++){var o=r[a],i=o.f;(i&ue)===0&&(J(o,e),(i&(G|ce))!==0&&((i&le)!==0?ia(o,lt):Ge(o)))}}function $t(t){if(typeof t!="object"||t===null||qe in t)return t;const e=Bn(t);if(e!==ai&&e!==oi)return t;var r=new Map,n=cr(t),a=he(0),o=mt,i=s=>{if(mt===o)return s();var c=j,l=mt;ee(null),Ca(o);var d=s();return ee(c),Ca(l),d};return n&&r.set("length",he(t.length)),new Proxy(t,{defineProperty(s,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&bi();var d=r.get(c);return d===void 0?d=i(()=>{var h=he(l.value);return r.set(c,h),h}):ie(d,l.value,!0),!0},deleteProperty(s,c){var l=r.get(c);if(l===void 0){if(c in s){const d=i(()=>he(q));r.set(c,d),br(a)}}else ie(l,q),br(a);return!0},get(s,c,l){if(c===qe)return t;var d=r.get(c),h=c in s;if(d===void 0&&(!h||je(s,c)?.writable)&&(d=i(()=>{var v=$t(h?s[c]:q),g=he(v);return g}),r.set(c,d)),d!==void 0){var f=C(d);return f===q?void 0:f}return Reflect.get(s,c,l)},getOwnPropertyDescriptor(s,c){var l=Reflect.getOwnPropertyDescriptor(s,c);if(l&&"value"in l){var d=r.get(c);d&&(l.value=C(d))}else if(l===void 0){var h=r.get(c),f=h?.v;if(h!==void 0&&f!==q)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return l},has(s,c){if(c===qe)return!0;var l=r.get(c),d=l!==void 0&&l.v!==q||Reflect.has(s,c);if(l!==void 0||A!==null&&(!d||je(s,c)?.writable)){l===void 0&&(l=i(()=>{var f=d?$t(s[c]):q,v=he(f);return v}),r.set(c,l));var h=C(l);if(h===q)return!1}return d},set(s,c,l,d){var h=r.get(c),f=c in s;if(n&&c==="length")for(var v=l;v<h.v;v+=1){var g=r.get(v+"");g!==void 0?ie(g,q):v in s&&(g=i(()=>he(q)),r.set(v+"",g))}if(h===void 0)(!f||je(s,c)?.writable)&&(h=i(()=>he(void 0)),ie(h,$t(l)),r.set(c,h));else{f=h.v!==q;var p=i(()=>$t(l));ie(h,p)}var E=Reflect.getOwnPropertyDescriptor(s,c);if(E?.set&&E.set.call(d,l),!f){if(n&&typeof c=="string"){var m=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=m.v&&ie(m,k+1)}br(a)}return!0},ownKeys(s){C(a);var c=Reflect.ownKeys(s).filter(h=>{var f=r.get(h);return f===void 0||f.v!==q});for(var[l,d]of r)d.v!==q&&!(l in s)&&c.push(l);return c},setPrototypeOf(){_i()}})}function sa(t){try{if(t!==null&&typeof t=="object"&&qe in t)return t[qe]}catch{}return t}function zi(t,e){return Object.is(sa(t),sa(e))}var la,ca,ua,da;function nn(){if(la===void 0){la=window,ca=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ua=je(e,"firstChild").get,da=je(e,"nextSibling").get,Fn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Fn(r)&&(r.__t=void 0)}}function Qe(t=""){return document.createTextNode(t)}function me(t){return ua.call(t)}function pe(t){return da.call(t)}function Ke(t,e){if(!$)return me(t);var r=me(I);return r===null&&(r=I.appendChild(Qe())),X(r),r}function te(t,e){if(!$){var r=me(t);return r instanceof Comment&&r.data===""?pe(r):r}return I}function Xe(t,e=1,r=!1){let n=$?I:t;for(var a;e--;)a=n,n=pe(n);if(!$)return n;if(r&&n?.nodeType!==ci){var o=Qe();return n===null?a?.after(o):n.before(o),X(o),o}return X(n),n}function fa(t){t.textContent=""}function ha(){return!1}function Bi(t){A===null&&j===null&&pi(),j!==null&&(j.f&ce)!==0&&A===null&&hi(),vt&&fi()}function Fi(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Ee(t,e,r,n=!0){var a=A;a!==null&&(a.f&xe)!==0&&(t|=xe);var o={ctx:de,deps:null,nodes_start:null,nodes_end:null,f:t|ue,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{Yt(o),o.f|=Gr}catch(c){throw Y(o),c}else e!==null&&Ge(o);var i=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&hr)===0;if(!i&&n&&(a!==null&&Fi(o,a),j!==null&&(j.f&le)!==0)){var s=j;(s.effects??=[]).push(o)}return o}function Di(){return j!==null&&!Ce}function Zi(t){const e=Ee(Wr,null,!1);return J(e,G),e.teardown=t,e}function Vi(t){Bi();var e=A.f,r=!j&&(e&Ne)!==0&&(e&Gr)===0;if(r){var n=de;(n.e??=[]).push(t)}else return pa(t)}function pa(t){return Ee(qr|qn,t,!1)}function Ui(t){ht.ensure();const e=Ee(st,t,!0);return()=>{Y(e)}}function qi(t){ht.ensure();const e=Ee(st,t,!0);return(r={})=>new Promise(n=>{r.outro?$e(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function _r(t){return Ee(qr,t,!1)}function Wi(t){return Ee(Qr|hr,t,!0)}function an(t,e=0){return Ee(Wr|e,t,!0)}function on(t,e=[],r=[]){ra(e,r,n=>{Ee(Wr,()=>t(...n.map(C)),!0)})}function Pe(t,e=0){var r=Ee(Ut|e,t,!0);return r}function W(t,e=!0){return Ee(Ne,t,!0,e)}function va(t){var e=t.teardown;if(e!==null){const r=vt,n=j;wa(!0),ee(null);try{e.call(null)}finally{wa(r),ee(n)}}}function ma(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){r.ac?.abort(Xr);var n=r.next;(r.f&st)!==0?r.parent=null:Y(r,e),r=n}}function Hi(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Ne)===0&&Y(e),e=r}}function Y(t,e=!0){var r=!1;(e||(t.f&Un)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ga(t.nodes_start,t.nodes_end),r=!0),ma(t,e&&!r),wr(t,0),J(t,ct);var n=t.transitions;if(n!==null)for(const o of n)o.stop();va(t);var a=t.parent;a!==null&&a.first!==null&&ba(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ga(t,e){for(;t!==null;){var r=t===e?null:pe(t);t.remove(),t=r}}function ba(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 $e(t,e){var r=[];sn(t,r,!0),_a(r,()=>{Y(t),e&&e()})}function _a(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var a of t)a.out(n)}else e()}function sn(t,e,r){if((t.f&xe)===0){if(t.f^=xe,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&Ne)!==0;sn(n,e,o?r:!1),n=a}}}function Rt(t){ka(t,!0)}function ka(t,e){if((t.f&xe)!==0){t.f^=xe,(t.f&G)===0&&(J(t,ue),Ge(t));for(var r=t.first;r!==null;){var n=r.next,a=(r.f&xt)!==0||(r.f&Ne)!==0;ka(r,a?e:!1),r=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}let Ot=!1;function ya(t){Ot=t}let vt=!1;function wa(t){vt=t}let j=null,Ce=!1;function ee(t){j=t}let A=null;function ge(t){A=t}let ze=null;function xa(t){j!==null&&(ze===null?ze=[t]:ze.push(t))}let re=null,ve=0,be=null;function Gi(t){be=t}let kr=1,Gt=0,mt=Gt;function Ca(t){mt=t}let Je=!1;function Sa(){return++kr}function yr(t){var e=t.f;if((e&ue)!==0)return!0;if((e<)!==0){var r=t.deps,n=(e&ce)!==0;if(r!==null){var a,o,i=(e&fr)!==0,s=n&&A!==null&&!Je,c=r.length;if((i||s)&&(A===null||(A.f&ct)===0)){var l=t,d=l.parent;for(a=0;a<c;a++)o=r[a],(i||!o?.reactions?.includes(l))&&(o.reactions??=[]).push(l);i&&(l.f^=fr),s&&d!==null&&(d.f&ce)===0&&(l.f^=ce)}for(a=0;a<c;a++)if(o=r[a],yr(o)&&ta(o),o.wv>t.wv)return!0}(!n||A!==null&&!Je)&&J(t,G)}return!1}function Ta(t,e,r=!0){var n=t.reactions;if(n!==null&&!ze?.includes(t))for(var a=0;a<n.length;a++){var o=n[a];(o.f&le)!==0?Ta(o,e,!1):e===o&&(r?J(o,ue):(o.f&G)!==0&&J(o,lt),Ge(o))}}function Ea(t){var e=re,r=ve,n=be,a=j,o=Je,i=ze,s=de,c=Ce,l=mt,d=t.f;re=null,ve=0,be=null,Je=(d&ce)!==0&&(Ce||!Ot||j===null),j=(d&(Ne|st))===0?t:null,ze=null,He(t.ctx),Ce=!1,mt=++Gt,t.ac!==null&&(t.ac.abort(Xr),t.ac=null);try{t.f|=Yr;var h=(0,t.fn)(),f=t.deps;if(re!==null){var v;if(wr(t,ve),f!==null&&ve>0)for(f.length=ve+re.length,v=0;v<re.length;v++)f[ve+v]=re[v];else t.deps=f=re;if(!Je||(d&le)!==0&&t.reactions!==null)for(v=ve;v<f.length;v++)(f[v].reactions??=[]).push(t)}else f!==null&&ve<f.length&&(wr(t,ve),f.length=ve);if(Qn()&&be!==null&&!Ce&&f!==null&&(t.f&(le|lt|ue))===0)for(v=0;v<be.length;v++)Ta(be[v],t);return a!==null&&a!==t&&(Gt++,be!==null&&(n===null?n=be:n.push(...be))),(t.f&ut)!==0&&(t.f^=ut),h}catch(g){return Si(g)}finally{t.f^=Yr,re=e,ve=r,be=n,j=a,Je=o,ze=i,He(s),Ce=c,mt=l}}function Yi(t,e){let r=e.reactions;if(r!==null){var n=ri.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&le)!==0&&(re===null||!re.includes(e))&&(J(e,lt),(e.f&(ce|fr))===0&&(e.f^=fr),ea(e),wr(e,0))}function wr(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Yi(t,r[n])}function Yt(t){var e=t.f;if((e&ct)===0){J(t,G);var r=A,n=Ot;A=t,Ot=!0;try{(e&Ut)!==0?Hi(t):ma(t),va(t);var a=Ea(t);t.teardown=typeof a=="function"?a:null,t.wv=kr;var o;zn&&xi&&(t.f&ue)!==0&&t.deps}finally{Ot=n,A=r}}}function C(t){var e=t.f,r=(e&le)!==0;if(j!==null&&!Ce){var n=A!==null&&(A.f&ct)!==0;if(!n&&!ze?.includes(t)){var a=j.deps;if((j.f&Yr)!==0)t.rv<Gt&&(t.rv=Gt,re===null&&a!==null&&a[ve]===t?ve++:re===null?re=[t]:(!Je||!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&ce)===0&&(i.f^=ce)}if(vt){if(pt.has(t))return pt.get(t);if(r){i=t;var c=i.v;return((i.f&G)!==0||$a(i))&&(c=en(i)),pt.set(i,c),c}}else if(r){if(i=t,Tt?.has(i))return Tt.get(i);yr(i)&&ta(i)}if((t.f&ut)!==0)throw t.v;return t.v}function $a(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&le)!==0&&$a(e))return!0;return!1}function xr(t){var e=Ce;try{return Ce=!0,t()}finally{Ce=e}}const Qi=-7169;function J(t,e){t.f=t.f&Qi|e}function Ki(t,e){if(e){const r=document.body;t.autofocus=!0,ft(()=>{document.activeElement===r&&t.focus()})}}function Xi(t){var e=j,r=A;ee(null),ge(null);try{return t()}finally{ee(e),ge(r)}}const Ra=new Set,ln=new Set;function Ji(t,e,r,n={}){function a(o){if(n.capture||Qt.call(e,o),!o.cancelBubble)return Xi(()=>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 Oa(t){for(var e=0;e<t.length;e++)Ra.add(t[e]);for(var r of ln)r(t)}function Qt(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 c=a.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var l=a.indexOf(e);if(l===-1)return;c<=l&&(i=c)}if(o=a[i]||t.target,o!==e){wt(t,"currentTarget",{configurable:!0,get(){return o||r}});var d=j,h=A;ee(null),ge(null);try{for(var f,v=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+n];if(p!=null&&(!o.disabled||t.target===o))if(cr(p)){var[E,...m]=p;E.apply(o,[t,...m])}else p.call(o,t)}catch(k){f?v.push(k):f=k}if(t.cancelBubble||g===e||g===null)break;o=g}if(f){for(let k of v)queueMicrotask(()=>{throw k});throw f}}finally{t.__root=e,delete t.currentTarget,ee(d),ge(h)}}}let _e;function es(){_e=void 0}function ts(t){let e=null,r=$;var n;if($){for(e=I,_e===void 0&&(_e=me(document.head));_e!==null&&(_e.nodeType!==dt||_e.data!==Zr);)_e=pe(_e);_e===null?K(!1):_e=X(pe(_e))}$||(n=document.head.appendChild(Qe()));try{Pe(()=>t(n),Un)}finally{r&&(K(!0),_e=I,X(e))}}function Aa(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Be(t,e){var r=A;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Fe(t,e){var r=(e&Ko)!==0,n=(e&Xo)!==0,a,o=!t.startsWith("<!>");return()=>{if($)return Be(I,null),I;a===void 0&&(a=Aa(o?t:"<!>"+t),r||(a=me(a)));var i=n||ca?document.importNode(a,!0):a.cloneNode(!0);if(r){var s=me(i),c=i.lastChild;Be(s,c)}else Be(i,i);return i}}function Se(){if($)return Be(I,null),I;var t=document.createDocumentFragment(),e=document.createComment(""),r=Qe();return t.append(e,r),Be(e,r),t}function V(t,e){if($){A.nodes_end=I,Te();return}t!==null&&t.before(e)}function rs(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ns=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function as(t){return ns.includes(t)}const os={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 is(t){return t=t.toLowerCase(),os[t]??t}const ss=["touchstart","touchmove"];function ls(t){return ss.includes(t)}const cs=["textarea","script","style","title"];function us(t){return cs.includes(t)}function ds(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Ma(t,e){return Ia(t,e)}function fs(t,e){nn(),e.intro=e.intro??!1;const r=e.target,n=$,a=I;try{for(var o=me(r);o&&(o.nodeType!==dt||o.data!==Zr);)o=pe(o);if(!o)throw it;K(!0),X(o),Te();const i=Ia(t,{...e,anchor:o});if(I===null||I.nodeType!==dt||I.data!==Vr)throw qt(),it;return K(!1),i}catch(i){if(i===it)return e.recover===!1&&mi(),nn(),fa(r),K(!1),Ma(t,e);throw i}finally{K(n),X(a),es()}}const At=new Map;function Ia(t,{target:e,anchor:r,props:n={},events:a,context:o,intro:i=!0}){nn();var s=new Set,c=h=>{for(var f=0;f<h.length;f++){var v=h[f];if(!s.has(v)){s.add(v);var g=ls(v);e.addEventListener(v,Qt,{passive:g});var p=At.get(v);p===void 0?(document.addEventListener(v,Qt,{passive:g}),At.set(v,1)):At.set(v,p+1)}}};c(Ur(Ra)),ln.add(c);var l=void 0,d=qi(()=>{var h=r??e.appendChild(Qe());return W(()=>{if(o){Ct({});var f=de;f.c=o}a&&(n.$$events=a),$&&Be(h,null),l=t(h,n)||{},$&&(A.nodes_end=I),o&&St()}),()=>{for(var f of s){e.removeEventListener(f,Qt);var v=At.get(f);--v===0?(document.removeEventListener(f,Qt),At.delete(f)):At.set(f,v)}ln.delete(c),h!==r&&h.parentNode?.removeChild(h)}});return cn.set(l,d),l}let cn=new WeakMap;function hs(t,e){const r=cn.get(t);return r?(cn.delete(t),r(e)):Promise.resolve()}function ja(t,e,...r){var n=t,a=dr,o;Pe(()=>{a!==(a=e())&&(o&&(Y(o),o=null),o=W(()=>a(n,...r)))},xt),$&&(n=I)}const un=0,Cr=1,dn=2;function Na(t,e,r,n,a){$&&Te();var o=t,i=de,s=q,c,l,d,h=Le(void 0),f=Le(void 0),v=!1;function g(E,m){v=!0,m&&(ge(p),ee(p),He(i));try{E===un&&r&&(c?Rt(c):c=W(()=>r(o))),E===Cr&&n&&(l?Rt(l):l=W(()=>n(o,h))),E!==un&&c&&$e(c,()=>c=null),E!==Cr&&l&&$e(l,()=>l=null),E!==dn&&d&&$e(d,()=>d=null)}finally{m&&(He(null),ee(null),ge(null),Z())}}var p=Pe(()=>{if(s===(s=e()))return;let E=$&&Dn(s)===(o.data===lr);if(E&&(o=Wt(),X(o),K(!1),E=!0),Dn(s)){var m=s;v=!1,m.then(k=>{m===s&&(Ye(h,k),g(Cr,!0))},k=>{if(m===s)throw Ye(f,k),g(dn,!0),f.v}),$?r&&(c=W(()=>r(o))):ft(()=>{v||g(un,!0)})}else Ye(h,s),g(Cr,!1);return E&&K(!0),()=>s=q});$&&(o=I)}function et(t,e,r=!1){$&&Te();var n=t,a=null,o=null,i=q,s=r?xt:0,c=!1;const l=(v,g=!0)=>{c=!0,f(g,v)};var d=null;function h(){d!==null&&(d.lastChild.remove(),n.before(d),d=null);var v=i?a:o,g=i?o:a;v&&Rt(v),g&&$e(g,()=>{i?o=null:a=null})}const f=(v,g)=>{if(i===(i=v))return;let p=!1;if($){const T=Hn(n)===lr;!!i===T&&(n=Wt(),X(n),K(!1),p=!0)}var E=ha(),m=n;if(E&&(d=document.createDocumentFragment(),d.append(m=Qe())),i?a??=g&&W(()=>g(m)):o??=g&&W(()=>g(m)),E){var k=oe,b=i?a:o,y=i?o:a;b&&k.skipped_effects.delete(b),y&&k.skipped_effects.add(y),k.add_callback(h)}else h();p&&K(!0)};Pe(()=>{c=!1,e(l),c||f(null,null)},s),$&&(n=I)}function ps(t,e){return e}function vs(t,e,r){for(var n=t.items,a=[],o=e.length,i=0;i<o;i++)sn(e[i].e,a,!0);var s=o>0&&a.length===0&&r!==null;if(s){var c=r.parentNode;fa(c),c.append(r),n.clear(),Re(t,e[0].prev,e[o-1].next)}_a(a,()=>{for(var l=0;l<o;l++){var d=e[l];s||(n.delete(d.k),Re(t,d.prev,d.next)),Y(d.e,!s)}})}function ms(t,e,r,n,a,o=null){var i=t,s={flags:e,items:new Map,first:null};$&&Te();var c=null,l=!1,d=new Map,h=Jn(()=>{var p=r();return cr(p)?p:p==null?[]:Ur(p)}),f,v;function g(){gs(v,f,s,d,i,a,e,n,r),o!==null&&(f.length===0?c?Rt(c):c=W(()=>o(i)):c!==null&&$e(c,()=>{c=null}))}Pe(()=>{v??=A,f=C(h);var p=f.length;if(l&&p===0)return;l=p===0;let E=!1;if($){var m=Hn(i)===lr;m!==(p===0)&&(i=Wt(),X(i),K(!1),E=!0)}if($){for(var k=null,b,y=0;y<p;y++){if(I.nodeType===dt&&I.data===Vr){i=I,E=!0,K(!1);break}var T=f[y],L=n(T,y);b=fn(I,s,k,null,T,L,y,a,e,r),s.items.set(L,b),k=b}p>0&&X(Wt())}if($)p===0&&o&&(c=W(()=>o(i)));else if(ha()){var B=new Set,F=oe;for(y=0;y<p;y+=1){T=f[y],L=n(T,y);var D=s.items.get(L)??d.get(L);D?La(D,T,y):(b=fn(null,s,null,null,T,L,y,a,e,r,!0),d.set(L,b)),B.add(L)}for(const[se,Q]of s.items)B.has(se)||F.skipped_effects.add(Q.e);F.add_callback(g)}else g();E&&K(!0),C(h)}),$&&(i=I)}function gs(t,e,r,n,a,o,i,s,c){var l=e.length,d=r.items,h=r.first,f=h,v,g=null,p=[],E=[],m,k,b,y;for(y=0;y<l;y+=1){if(m=e[y],k=s(m,y),b=d.get(k),b===void 0){var T=n.get(k);if(T!==void 0){n.delete(k),d.set(k,T);var L=g?g.next:f;Re(r,g,T),Re(r,T,L),hn(T,L,a),g=T}else{var B=f?f.e.nodes_start:a;g=fn(B,r,g,g===null?r.first:g.next,m,k,y,o,i,c)}d.set(k,g),p=[],E=[],f=g.next;continue}if(La(b,m,y),(b.e.f&xe)!==0&&Rt(b.e),b!==f){if(v!==void 0&&v.has(b)){if(p.length<E.length){var F=E[0],D;g=F.prev;var se=p[0],Q=p[p.length-1];for(D=0;D<p.length;D+=1)hn(p[D],F,a);for(D=0;D<E.length;D+=1)v.delete(E[D]);Re(r,se.prev,Q.next),Re(r,g,se),Re(r,Q,F),f=F,g=Q,y-=1,p=[],E=[]}else v.delete(b),hn(b,f,a),Re(r,b.prev,b.next),Re(r,b,g===null?r.first:g.next),Re(r,g,b),g=b;continue}for(p=[],E=[];f!==null&&f.k!==k;)(f.e.f&xe)===0&&(v??=new Set).add(f),E.push(f),f=f.next;if(f===null)continue;b=f}p.push(b),g=b,f=b.next}if(f!==null||v!==void 0){for(var Ve=v===void 0?[]:Ur(v);f!==null;)(f.e.f&xe)===0&&Ve.push(f),f=f.next;var Me=Ve.length;if(Me>0){var Ie=null;vs(r,Ve,Ie)}}t.first=r.first&&r.first.e,t.last=g&&g.e;for(var Ue of n.values())Y(Ue.e);n.clear()}function La(t,e,r,n){Ye(t.v,e),t.i=r}function fn(t,e,r,n,a,o,i,s,c,l,d){var h=(c&Uo)!==0,f=(c&Wo)===0,v=h?f?oa(a,!1,!1):Le(a):a,g=(c&qo)===0?i:Le(i),p={i:g,v,k:o,a:null,e:null,prev:r,next:n};try{if(t===null){var E=document.createDocumentFragment();E.append(t=Qe())}return p.e=W(()=>s(t,v,g,l),$),p.e.prev=r&&r.e,p.e.next=n&&n.e,r===null?d||(e.first=p):(r.next=p,r.e.next=p.e),n!==null&&(n.prev=p,n.e.prev=p.e),p}finally{}}function hn(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=pe(o);a.before(o),o=i}}function Re(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 pn(t,e,r=!1,n=!1,a=!1){var o=t,i="";on(()=>{var s=A;if(i===(i=e()??"")){$&&Te();return}if(s.nodes_start!==null&&(ga(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),i!==""){if($){I.data;for(var c=Te(),l=c;c!==null&&(c.nodeType!==dt||c.data!=="");)l=c,c=pe(c);if(c===null)throw qt(),it;Be(I,l),o=X(c);return}var d=i+"";r?d=`<svg>${d}</svg>`:n&&(d=`<math>${d}</math>`);var h=Aa(d);if((r||n)&&(h=me(h)),Be(me(h),h.lastChild),r||n)for(;me(h);)o.before(me(h));else o.before(h)}})}function Pa(t,e,r,n,a,o){let i=$;$&&Te();var s,c,l=null;$&&I.nodeType===li&&(l=I,Te());var d=$?I:t,h;Pe(()=>{const f=e()||null;var v=f==="svg"?ei:null;f!==s&&(h&&(f===null?$e(h,()=>{h=null,c=null}):f===c?Rt(h):Y(h)),f&&f!==c&&(h=W(()=>{if(l=$?l:v?document.createElementNS(v,f):document.createElement(f),Be(l,l),n){$&&us(f)&&l.append(document.createComment(""));var g=$?me(l):l.appendChild(Qe());$&&(g===null?K(!1):X(g)),n(l,g)}A.nodes_end=l,d.before(l)})),s=f,s&&(c=s))},xt),i&&(K(!0),X(d))}function bs(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 _s(t,e,r){_r(()=>{var n=xr(()=>e(t,r?.())||{});if(n?.destroy)return()=>n.destroy()})}function ks(t,e){var r=void 0,n;Pe(()=>{r!==(r=e())&&(n&&(Y(n),n=null),r&&(n=W(()=>{_r(()=>r(t))})))})}function za(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=za(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ys(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=za(t))&&(n&&(n+=" "),n+=e);return n}function ws(t){return typeof t=="object"?ys(t):t??""}const Ba=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function xs(t,e,r){var n=t==null?"":""+t;if(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||Ba.includes(n[i-1]))&&(s===n.length||Ba.includes(n[s]))?n=(i===0?"":n.substring(0,i))+n.substring(s+1):i=s}}return n===""?null:n}function Fa(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 vn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Cs(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,c=[];n&&c.push(...Object.keys(n).map(vn)),a&&c.push(...Object.keys(a).map(vn));var l=0,d=-1;const p=t.length;for(var h=0;h<p;h++){var f=t[h];if(s?f==="/"&&t[h-1]==="*"&&(s=!1):o?o===f&&(o=!1):f==="/"&&t[h+1]==="*"?s=!0:f==='"'||f==="'"?o=f:f==="("?i++:f===")"&&i--,!s&&o===!1&&i===0){if(f===":"&&d===-1)d=h;else if(f===";"||h===p-1){if(d!==-1){var v=vn(t.substring(l,d).trim());if(!c.includes(v)){f!==";"&&h++;var g=t.substring(l,h).trim();r+=" "+g+";"}}l=h+1,d=-1}}}}return n&&(r+=Fa(n)),a&&(r+=Fa(a,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Ss(t,e,r,n,a,o){var i=t.__className;if($||i!==r||i===void 0){var s=xs(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 c in o){var l=!!o[c];(a==null||l!==!!a[c])&&t.classList.toggle(c,l)}return o}function mn(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 Ts(t,e,r,n){var a=t.__style;if($||a!==e){var o=Cs(e,n);(!$||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}else n&&(Array.isArray(n)?(mn(t,r?.[0],n[0]),mn(t,r?.[1],n[1],"important")):mn(t,r,n));return n}function gn(t,e,r=!1){if(t.multiple){if(e==null)return;if(!cr(e))return yi();for(var n of t.options)n.selected=e.includes(Da(n));return}for(n of t.options){var a=Da(n);if(zi(a,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function Es(t){var e=new MutationObserver(()=>{gn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Zi(()=>{e.disconnect()})}function Da(t){return"__value"in t?t.__value:t.value}const Mt=Symbol("class"),Kt=Symbol("style"),Za=Symbol("is custom element"),Va=Symbol("is html");function $s(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function bn(t,e,r,n){var a=qa(t);$&&(a[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||a[e]!==(a[e]=r)&&(e==="loading"&&(t[si]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ha(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Rs(t,e,r,n,a=!1){var o=qa(t),i=o[Za],s=!o[Va];let c=$&&i;c&&K(!1);var l=e||{},d=t.tagName==="OPTION";for(var h in e)h in r||(r[h]=null);r.class?r.class=ws(r.class):r[Mt]&&(r.class=null),r[Kt]&&(r.style??=null);var f=Ha(t);for(const b in r){let y=r[b];if(d&&b==="value"&&y==null){t.value=t.__value="",l[b]=y;continue}if(b==="class"){var v=t.namespaceURI==="http://www.w3.org/1999/xhtml";Ss(t,v,y,n,e?.[Mt],r[Mt]),l[b]=y,l[Mt]=r[Mt];continue}if(b==="style"){Ts(t,y,e?.[Kt],r[Kt]),l[b]=y,l[Kt]=r[Kt];continue}var g=l[b];if(!(y===g&&!(y===void 0&&t.hasAttribute(b)))){l[b]=y;var p=b[0]+b[1];if(p!=="$$")if(p==="on"){const T={},L="$$"+b;let B=b.slice(2);var E=as(B);if(rs(B)&&(B=B.slice(0,-7),T.capture=!0),!E&&g){if(y!=null)continue;t.removeEventListener(B,l[L],T),l[L]=null}if(y!=null)if(E)t[`__${B}`]=y,Oa([B]);else{let F=function(D){l[b].call(this,D)};l[L]=Ji(B,t,F,T)}else E&&(t[`__${B}`]=void 0)}else if(b==="style")bn(t,b,y);else if(b==="autofocus")Ki(t,!!y);else if(!i&&(b==="__value"||b==="value"&&y!=null))t.value=t.__value=y;else if(b==="selected"&&d)$s(t,y);else{var m=b;s||(m=is(m));var k=m==="defaultValue"||m==="defaultChecked";if(y==null&&!i&&!k)if(o[b]=null,m==="value"||m==="checked"){let T=t;const L=e===void 0;if(m==="value"){let B=T.defaultValue;T.removeAttribute(m),T.defaultValue=B,T.value=T.__value=L?B:null}else{let B=T.defaultChecked;T.removeAttribute(m),T.defaultChecked=B,T.checked=L?B:!1}}else t.removeAttribute(b);else k||f.includes(m)&&(i||typeof y!="string")?t[m]=y:typeof y!="function"&&bn(t,m,y)}}}return c&&K(!0),l}function Ua(t,e,r=[],n=[],a,o=!1){ra(r,n,i=>{var s=void 0,c={},l=t.nodeName==="SELECT",d=!1;if(Pe(()=>{var f=e(...i.map(C)),v=Rs(t,s,f,a,o);d&&l&&"value"in f&&gn(t,f.value);for(let p of Object.getOwnPropertySymbols(c))f[p]||Y(c[p]);for(let p of Object.getOwnPropertySymbols(f)){var g=f[p];p.description===ti&&(!s||g!==s[p])&&(c[p]&&Y(c[p]),c[p]=W(()=>ks(t,()=>g))),v[p]=g}s=v}),l){var h=t;_r(()=>{gn(h,s.value,!0),Es(h)})}d=!0})}function qa(t){return t.__attributes??={[Za]:t.nodeName.includes("-"),[Va]:t.namespaceURI===Jo}}var Wa=new Map;function Ha(t){var e=Wa.get(t.nodeName);if(e)return e;Wa.set(t.nodeName,e=[]);for(var r,n=t,a=Element.prototype;a!==n;){r=ni(n);for(var o in r)r[o].set&&e.push(o);n=Bn(n)}return e}function Ga(t,e){return t===e||t?.[qe]===e}function Ya(t={},e,r,n){return _r(()=>{var a,o;return an(()=>{a=o,o=[],xr(()=>{t!==r(...o)&&(e(t,...o),a&&Ga(r(...a),t)&&e(null,...a))})}),()=>{ft(()=>{o&&Ga(r(...o),t)&&e(null,...o)})}}),t}let Sr=!1;function Os(t){var e=Sr;try{return Sr=!1,[t(),Sr]}finally{Sr=e}}const As={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 _n(t,e,r){return new Proxy({props:t,exclude:e},As)}const Ms={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=je(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=je(n,e);return a&&!a.configurable&&(a.configurable=!0),a}}},has(t,e){if(e===qe||e===Kr)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 Is(...t){return new Proxy({props:t},Ms)}function H(t,e,r,n){var a=(r&Yo)!==0,o=(r&Qo)!==0,i=n,s=!0,c=()=>(s&&(s=!1,i=o?xr(n):n),i),l;if(a){var d=qe in t||Kr in t;l=je(t,e)?.set??(d&&e in t?k=>t[e]=k:void 0)}var h,f=!1;a?[h,f]=Os(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=c(),l&&(gi(),l(h)));var v;if(v=()=>{var k=t[e];return k===void 0?c():(s=!0,k)},(r&Go)===0)return v;if(l){var g=t.$$legacy;return function(k,b){return arguments.length>0?((!b||g||f)&&l(b?v():k),k):v()}}var p=!1,E=((r&Ho)!==0?vr:Jn)(()=>(p=!1,v()));a&&C(E);var m=A;return function(k,b){if(arguments.length>0){const y=b?C(E):a?$t(k):k;return ie(E,y),p=!0,i!==void 0&&(i=y),k}return vt&&p||(m.f&ct)!==0?E.v:C(E)}}function js(t){return new Ns(t)}class Ns{#e;#t;constructor(e){var r=new Map,n=(o,i)=>{var s=oa(i,!1,!1);return r.set(o,s),s};const a=new Proxy({...e.props||{},$$events:{}},{get(o,i){return C(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===Kr?!0:(C(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?fs:Ma)(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)&&Z(),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=()=>{hs(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 Qa;typeof HTMLElement=="function"&&(Qa=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),V(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ls(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]=Tr(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=js({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Ui(()=>{an(()=>{this.$$r=!0;for(const n of ur(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const a=Tr(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]=Tr(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 ur(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Tr(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 Ls(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Xt(t,e,r,n,a,o){let i=class extends Qa{constructor(){super(t,r,a),this.$$p_d=e}static get observedAttributes(){return ur(e).map(s=>(e[s].attribute||s).toLowerCase())}};return ur(e).forEach(s=>{wt(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){c=Tr(s,c,e),this.$$d[s]=c;var l=this.$$c;if(l){var d=je(l,s)?.get;d?l[s]=c:l.$set({[s]:c})}}})}),n.forEach(s=>{wt(i.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=i,i}var Ps=(t,e)=>e()(),zs=Fe('<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>'),Bs=Fe(" <!>",1);const Fs={hash:"svelte-4thrqu",code:`
|
|
1
|
+
var LiipGPTButton=function(Fr){"use strict";const Va="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Va);const Ua=1,Wa=2,Ha=16,qa=1,Ga=4,Ya=8,Qa=16,Ka=1,Xa=2,Zr="[",lr="[!",Vr="]",it={},W=Symbol(),Ja="http://www.w3.org/1999/xhtml",ei="http://www.w3.org/2000/svg",ti="@attach",zn=!1;var cr=Array.isArray,ri=Array.prototype.indexOf,Ur=Array.from,ur=Object.keys,xt=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,ni=Object.getOwnPropertyDescriptors,oi=Object.prototype,ai=Array.prototype,Bn=Object.getPrototypeOf,Dn=Object.isExtensible;function Wt(t){return typeof t=="function"}const dr=()=>{};function Fn(t){return typeof t?.then=="function"}function Zn(t){for(var e=0;e<t.length;e++)t[e]()}function ii(){var t,e,r=new Promise((n,o)=>{t=n,e=o});return{promise:r,resolve:t,reject:e}}const ce=2,Wr=4,Hr=8,Ht=16,Le=32,st=64,qr=128,ue=256,hr=512,G=1024,de=2048,lt=4096,xe=8192,ct=16384,Gr=32768,Ct=65536,Vn=1<<17,Un=1<<18,fr=1<<19,Wn=1<<20,Yr=1<<21,Qr=1<<22,ut=1<<23,He=Symbol("$state"),Kr=Symbol("legacy props"),si=Symbol(""),Xr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},li=1,ci=3,dt=8;function ui(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function di(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function vi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mi(){throw new Error("https://svelte.dev/e/hydration_failed")}function gi(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function bi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _i(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ki(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function yi(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let O=!1;function K(t){O=t}let j;function X(t){if(t===null)throw qt(),it;return j=t}function Te(){return X(ve(j))}function qe(t){if(O){if(ve(j)!==null)throw qt(),it;j=t}}function Hn(t=1){if(O){for(var e=t,r=j;e--;)r=ve(r);j=r}}function Gt(){for(var t=0,e=j;;){if(e.nodeType===dt){var r=e.data;if(r===Vr){if(t===0)return e;t-=1}else(r===Zr||r===lr)&&(t+=1)}var n=ve(e);e.remove(),e=n}}function qn(t){if(!t||t.nodeType!==dt)throw qt(),it;return t.data}function Gn(t){return t===this.v}function wi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Yn(t){return!wi(t,this.v)}let xi=!1,he=null;function Ge(t){he=t}function St(t,e=!1,r){he={p:he,c:null,e:null,s:t,x:null,l:null}}function Tt(t){var e=he,r=e.e;if(r!==null){e.e=null;for(var n of r)vo(n)}return t!==void 0&&(e.x=t),he=e.p,t??{}}function Qn(){return!0}const Ci=new WeakMap;function Si(t){var e=$;if(e===null)return I.f|=ut,t;if((e.f&Gr)===0){if((e.f&qr)===0)throw!e.parent&&t instanceof Error&&Kn(t),t;e.b.error(t)}else pr(t,e)}function pr(t,e){for(;e!==null;){if((e.f&qr)!==0)try{e.b.error(t);return}catch{}e=e.parent}throw t instanceof Error&&Kn(t),t}function Kn(t){const e=Ci.get(t);e&&(xt(t,"message",{value:e.message}),xt(t,"stack",{value:e.stack}))}let Yt=[],Jr=[];function Xn(){var t=Yt;Yt=[],Zn(t)}function Ti(){var t=Jr;Jr=[],Zn(t)}function ht(t){Yt.length===0&&queueMicrotask(Xn),Yt.push(t)}function Ei(){Yt.length>0&&Xn(),Jr.length>0&&Ti()}function Oi(t){let e=0,r=Pe(0),n;return()=>{Fi()&&(C(r),on(()=>(e===0&&(n=xr(()=>t(()=>br(r)))),e+=1,()=>{ht(()=>{e-=1,e===0&&(n?.(),n=void 0)})})))}}var Ai=Ct|fr|qr;function Mi(t,e,r){new $i(t,e,r)}class $i{pending=!1;parent;#e;#t;#o;#l;#u;#a=null;#r=null;#i=null;#s=null;#n=0;#c=!1;#d=null;#f=()=>{this.#d&&Qe(this.#d,this.#n)};#h=Oi(()=>(this.#d=Pe(this.#n),()=>{this.#d=null}));constructor(e,r,n){this.#e=e,this.#o=r,this.#l=n,this.#t=j,this.parent=$.b,this.pending=!!this.#o.pending,this.#u=ze(()=>{$.b=this,O&&Te();const o=this.#o.pending;if(O&&o)this.#r=H(()=>o(this.#e)),queueMicrotask(()=>{this.#a=this.#p(()=>(ft.ensure(),H(()=>this.#l(this.#e)))),this.#n>0?this.#v():(Oe(this.#r,()=>{this.#r=null}),this.pending=!1)});else{try{this.#a=H(()=>n(this.#e))}catch(a){this.error(a)}this.#n>0?this.#v():this.pending=!1}},Ai),O&&(this.#e=j)}has_pending_snippet(){return!!this.#o.pending}#p(e){var r=$,n=I,o=he;be(this.#u),ee(this.#u),Ge(this.#u.ctx);try{return e()}finally{be(r),ee(n),Ge(o)}}#v(){const e=this.#o.pending;this.#a!==null&&(this.#s=document.createDocumentFragment(),Ri(this.#a,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),tn.add(this.#f)}get_effect_pending(){return this.#h(),C(this.#d)}error(e){var r=this.#o.onerror;let n=this.#o.failed;const o=()=>{this.#n=0,this.#i!==null&&Oe(this.#i,()=>{this.#i=null}),this.pending=!0,this.#a=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 a=I;try{ee(null),r?.(e,o)}finally{ee(a)}this.#a&&(Y(this.#a),this.#a=null),this.#r&&(Y(this.#r),this.#r=null),this.#i&&(Y(this.#i),this.#i=null),O&&(X(this.#t),Hn(),X(Gt())),n&&ht(()=>{this.#i=this.#p(()=>{this.#c=!0;try{return H(()=>{n(this.#e,()=>e,()=>o)})}catch(i){return pr(i,this.#u.parent),null}finally{this.#c=!1}})})}}function Ri(t,e){for(var r=t.nodes_start,n=t.nodes_end;r!==null;){var o=r===n?null:ve(r);e.append(r),r=o}}function ji(){for(var t=$.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&ui(),t}function vr(t){var e=ce|de,r=I!==null&&(I.f&ce)!==0?I:null;return $===null||r!==null&&(r.f&ue)!==0?e|=ue:$.f|=fr,{ctx:he,deps:null,effects:null,equals:Gn,f:e,fn:t,reactions:null,rv:0,v:W,wv:0,parent:r??$,ac:null}}function Ii(t,e){let r=$;r===null&&di();var n=r.b,o=void 0,a=Pe(W),i=null,s=!I;return Hi(()=>{try{var c=t()}catch(v){c=Promise.reject(v)}var l=()=>c;o=i?.then(l,l)??Promise.resolve(c),i=o;var d=ae,f=n.pending;s&&(n.update_pending_count(1),f||d.increment());const h=(v,g=void 0)=>{i=null,f||d.activate(),g?g!==Xr&&(a.f|=ut,Qe(a,g)):((a.f&ut)!==0&&(a.f^=ut),Qe(a,v)),s&&(n.update_pending_count(-1),f||d.decrement()),no()};if(o.then(h,v=>h(null,v||"unknown")),d)return()=>{queueMicrotask(()=>d.neuter())}}),new Promise(c=>{function l(d){function f(){d===o?c(a):l(o)}d.then(f,f)}l(o)})}function fe(t){const e=vr(t);return Co(e),e}function Jn(t){const e=vr(t);return e.equals=Yn,e}function eo(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)Y(e[r])}}function Ni(t){for(var e=t.parent;e!==null;){if((e.f&ce)===0)return e;e=e.parent}return null}function en(t){var e,r=$;be(Ni(t));try{eo(t),e=Oo(t)}finally{be(r)}return e}function to(t){var e=en(t);if(t.equals(e)||(t.v=e,t.wv=To()),!vt)if(Et!==null)Et.set(t,t.v);else{var r=(et||(t.f&ue)!==0)&&t.deps!==null?lt:G;J(t,r)}}function ro(t,e,r){const n=vr;if(e.length===0){r(t.map(n));return}var o=ae,a=$,i=Li(),s=ji();Promise.all(e.map(c=>Ii(c))).then(c=>{o?.activate(),i();try{r([...t.map(n),...c])}catch(l){(a.f&ct)===0&&pr(l,a)}o?.deactivate(),no()}).catch(c=>{s.error(c)})}function Li(){var t=$,e=I,r=he;return function(){be(t),ee(e),Ge(r)}}function no(){be(null),ee(null),Ge(null)}const mr=new Set;let ae=null,Et=null,tn=new Set,Ot=[],gr=null,rn=!1;class ft{#e=new Map;#t=new Map;#o=new Set;#l=0;#u=null;#a=!1;#r=[];#i=[];#s=[];#n=[];#c=[];skipped_effects=new Set;#d(e){Ot=[];var r=null;if(mr.size>1){r=new Map,Et=new Map;for(const[a,i]of this.#e)r.set(a,{v:a.v,wv:a.wv}),a.v=i;for(const a of mr)if(a!==this)for(const[i,s]of a.#t)r.has(i)||(r.set(i,{v:i.v,wv:i.wv}),i.v=s)}for(const a of e)this.#f(a);if(this.#r.length===0&&this.#l===0){var n=this.#s,o=this.#n;this.#s=[],this.#n=[],this.#c=[],this.#h(),oo(n),oo(o),this.#u?.resolve()}else{for(const a of this.#s)J(a,G);for(const a of this.#n)J(a,G);for(const a of this.#c)J(a,G)}if(r){for(const[a,{v:i,wv:s}]of r)a.wv<=s&&(a.v=i);Et=null}for(const a of this.#r)Kt(a);for(const a of this.#i)Kt(a);this.#r=[],this.#i=[]}#f(e){e.f^=G;for(var r=e.first;r!==null;){var n=r.f,o=(n&(Le|st))!==0,a=o&&(n&G)!==0,i=a||(n&xe)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(o)r.f^=G;else if((n&Wr)!==0)this.#n.push(r);else if(yr(r))if((n&Qr)!==0){var s=r.b?.pending?this.#i:this.#r;s.push(r)}else(r.f&Ht)!==0&&this.#c.push(r),Kt(r);var c=r.first;if(c!==null){r=c;continue}}var l=r.parent;for(r=r.next;r===null&&l!==null;)r=l.next,l=l.parent}}capture(e,r){this.#t.has(e)||this.#t.set(e,r),this.#e.set(e,e.v)}activate(){ae=this}deactivate(){ae=null;for(const e of tn)if(tn.delete(e),e(),ae!==null)break}neuter(){this.#a=!0}flush(){Ot.length>0?this.flush_effects():this.#h(),ae===this&&(this.#l===0&&mr.delete(this),this.deactivate())}flush_effects(){var e=$t;rn=!0;try{var r=0;for(wo(!0);Ot.length>0;){if(r++>1e3){var n,o;Pi()}this.#d(Ot),pt.clear()}}finally{rn=!1,wo(e),gr=null}}#h(){if(!this.#a)for(const e of this.#o)e();this.#o.clear()}increment(){this.#l+=1}decrement(){if(this.#l-=1,this.#l===0){for(const e of this.#s)J(e,de),Ye(e);for(const e of this.#n)J(e,de),Ye(e);for(const e of this.#c)J(e,de),Ye(e);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#o.add(e)}settled(){return(this.#u??=ii()).promise}static ensure(e=!0){if(ae===null){const r=ae=new ft;mr.add(ae),e&&queueMicrotask(()=>{ae===r&&r.flush()})}return ae}}function Z(t){var e;const r=ft.ensure(!1);for(;;){if(Ei(),Ot.length===0)return r===ae&&r.flush(),gr=null,e;r.flush_effects()}}function Pi(){try{vi()}catch(t){pr(t,gr)}}function oo(t){var e=t.length;if(e!==0){for(var r=0;r<e;r++){var n=t[r];if((n.f&(ct|xe))===0&&yr(n)){var o=kr;if(Kt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?_o(n):n.fn=null),kr>o&&(n.f&Wn)!==0)break}}for(;r<e;r+=1)Ye(t[r])}}function Ye(t){for(var e=gr=t;e.parent!==null;){e=e.parent;var r=e.f;if(rn&&e===$&&(r&Ht)!==0)return;if((r&(st|Le))!==0){if((r&G)===0)return;e.f^=G}}Ot.push(e)}const pt=new Map;function Pe(t,e){var r={f:0,v:t,reactions:null,equals:Gn,rv:0,wv:0};return r}function pe(t,e){const r=Pe(t);return Co(r),r}function ao(t,e=!1,r=!0){const n=Pe(t);return e||(n.equals=Yn),n}function ie(t,e,r=!1){I!==null&&(!Ce||(I.f&Vn)!==0)&&Qn()&&(I.f&(ce|Ht|Qr|Vn))!==0&&!Be?.includes(t)&&ki();let n=r?At(e):e;return Qe(t,n)}function Qe(t,e){if(!t.equals(e)){var r=t.v;vt?pt.set(t,e):pt.set(t,r),t.v=e,ft.ensure().capture(t,r),(t.f&ce)!==0&&((t.f&de)!==0&&en(t),J(t,(t.f&ue)===0?G:lt)),t.wv=To(),io(t,de),$!==null&&($.f&G)!==0&&($.f&(Le|st))===0&&(_e===null?Gi([t]):_e.push(t))}return e}function br(t){ie(t,t.v+1)}function io(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var a=r[o],i=a.f;(i&de)===0&&(J(a,e),(i&(G|ue))!==0&&((i&ce)!==0?io(a,lt):Ye(a)))}}function At(t){if(typeof t!="object"||t===null||He in t)return t;const e=Bn(t);if(e!==oi&&e!==ai)return t;var r=new Map,n=cr(t),o=pe(0),a=mt,i=s=>{if(mt===a)return s();var c=I,l=mt;ee(null),So(a);var d=s();return ee(c),So(l),d};return n&&r.set("length",pe(t.length)),new Proxy(t,{defineProperty(s,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&bi();var d=r.get(c);return d===void 0?d=i(()=>{var f=pe(l.value);return r.set(c,f),f}):ie(d,l.value,!0),!0},deleteProperty(s,c){var l=r.get(c);if(l===void 0){if(c in s){const d=i(()=>pe(W));r.set(c,d),br(o)}}else ie(l,W),br(o);return!0},get(s,c,l){if(c===He)return t;var d=r.get(c),f=c in s;if(d===void 0&&(!f||Ne(s,c)?.writable)&&(d=i(()=>{var v=At(f?s[c]:W),g=pe(v);return g}),r.set(c,d)),d!==void 0){var h=C(d);return h===W?void 0:h}return Reflect.get(s,c,l)},getOwnPropertyDescriptor(s,c){var l=Reflect.getOwnPropertyDescriptor(s,c);if(l&&"value"in l){var d=r.get(c);d&&(l.value=C(d))}else if(l===void 0){var f=r.get(c),h=f?.v;if(f!==void 0&&h!==W)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(s,c){if(c===He)return!0;var l=r.get(c),d=l!==void 0&&l.v!==W||Reflect.has(s,c);if(l!==void 0||$!==null&&(!d||Ne(s,c)?.writable)){l===void 0&&(l=i(()=>{var h=d?At(s[c]):W,v=pe(h);return v}),r.set(c,l));var f=C(l);if(f===W)return!1}return d},set(s,c,l,d){var f=r.get(c),h=c in s;if(n&&c==="length")for(var v=l;v<f.v;v+=1){var g=r.get(v+"");g!==void 0?ie(g,W):v in s&&(g=i(()=>pe(W)),r.set(v+"",g))}if(f===void 0)(!h||Ne(s,c)?.writable)&&(f=i(()=>pe(void 0)),ie(f,At(l)),r.set(c,f));else{h=f.v!==W;var p=i(()=>At(l));ie(f,p)}var E=Reflect.getOwnPropertyDescriptor(s,c);if(E?.set&&E.set.call(d,l),!h){if(n&&typeof c=="string"){var m=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=m.v&&ie(m,k+1)}br(o)}return!0},ownKeys(s){C(o);var c=Reflect.ownKeys(s).filter(f=>{var h=r.get(f);return h===void 0||h.v!==W});for(var[l,d]of r)d.v!==W&&!(l in s)&&c.push(l);return c},setPrototypeOf(){_i()}})}function so(t){try{if(t!==null&&typeof t=="object"&&He in t)return t[He]}catch{}return t}function zi(t,e){return Object.is(so(t),so(e))}var lo,co,uo,ho;function nn(){if(lo===void 0){lo=window,co=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;uo=Ne(e,"firstChild").get,ho=Ne(e,"nextSibling").get,Dn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Dn(r)&&(r.__t=void 0)}}function Ke(t=""){return document.createTextNode(t)}function ge(t){return uo.call(t)}function ve(t){return ho.call(t)}function Xe(t,e){if(!O)return ge(t);var r=ge(j);return r===null&&(r=j.appendChild(Ke())),X(r),r}function te(t,e){if(!O){var r=ge(t);return r instanceof Comment&&r.data===""?ve(r):r}return j}function Je(t,e=1,r=!1){let n=O?j:t;for(var o;e--;)o=n,n=ve(n);if(!O)return n;if(r&&n?.nodeType!==ci){var a=Ke();return n===null?o?.after(a):n.before(a),X(a),a}return X(n),n}function fo(t){t.textContent=""}function po(){return!1}function Bi(t){$===null&&I===null&&pi(),I!==null&&(I.f&ue)!==0&&$===null&&fi(),vt&&hi()}function Di(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Ee(t,e,r,n=!0){var o=$;o!==null&&(o.f&xe)!==0&&(t|=xe);var a={ctx:he,deps:null,nodes_start:null,nodes_end:null,f:t|de,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{Kt(a),a.f|=Gr}catch(c){throw Y(a),c}else e!==null&&Ye(a);var i=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&fr)===0;if(!i&&n&&(o!==null&&Di(a,o),I!==null&&(I.f&ce)!==0)){var s=I;(s.effects??=[]).push(a)}return a}function Fi(){return I!==null&&!Ce}function Zi(t){const e=Ee(Hr,null,!1);return J(e,G),e.teardown=t,e}function Vi(t){Bi();var e=$.f,r=!I&&(e&Le)!==0&&(e&Gr)===0;if(r){var n=he;(n.e??=[]).push(t)}else return vo(t)}function vo(t){return Ee(Wr|Wn,t,!1)}function Ui(t){ft.ensure();const e=Ee(st,t,!0);return()=>{Y(e)}}function Wi(t){ft.ensure();const e=Ee(st,t,!0);return(r={})=>new Promise(n=>{r.outro?Oe(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function _r(t){return Ee(Wr,t,!1)}function Hi(t){return Ee(Qr|fr,t,!0)}function on(t,e=0){return Ee(Hr|e,t,!0)}function an(t,e=[],r=[]){ro(e,r,n=>{Ee(Hr,()=>t(...n.map(C)),!0)})}function ze(t,e=0){var r=Ee(Ht|e,t,!0);return r}function H(t,e=!0){return Ee(Le,t,!0,e)}function mo(t){var e=t.teardown;if(e!==null){const r=vt,n=I;xo(!0),ee(null);try{e.call(null)}finally{xo(r),ee(n)}}}function go(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){r.ac?.abort(Xr);var n=r.next;(r.f&st)!==0?r.parent=null:Y(r,e),r=n}}function qi(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Le)===0&&Y(e),e=r}}function Y(t,e=!0){var r=!1;(e||(t.f&Un)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(bo(t.nodes_start,t.nodes_end),r=!0),go(t,e&&!r),wr(t,0),J(t,ct);var n=t.transitions;if(n!==null)for(const a of n)a.stop();mo(t);var o=t.parent;o!==null&&o.first!==null&&_o(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function bo(t,e){for(;t!==null;){var r=t===e?null:ve(t);t.remove(),t=r}}function _o(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=[];sn(t,r,!0),ko(r,()=>{Y(t),e&&e()})}function ko(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function sn(t,e,r){if((t.f&xe)===0){if(t.f^=xe,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&Ct)!==0||(n.f&Le)!==0;sn(n,e,a?r:!1),n=o}}}function Mt(t){yo(t,!0)}function yo(t,e){if((t.f&xe)!==0){t.f^=xe,(t.f&G)===0&&(J(t,de),Ye(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Ct)!==0||(r.f&Le)!==0;yo(r,o?e:!1),r=n}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}let $t=!1;function wo(t){$t=t}let vt=!1;function xo(t){vt=t}let I=null,Ce=!1;function ee(t){I=t}let $=null;function be(t){$=t}let Be=null;function Co(t){I!==null&&(Be===null?Be=[t]:Be.push(t))}let re=null,me=0,_e=null;function Gi(t){_e=t}let kr=1,Qt=0,mt=Qt;function So(t){mt=t}let et=!1;function To(){return++kr}function yr(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 o,a,i=(e&hr)!==0,s=n&&$!==null&&!et,c=r.length;if((i||s)&&($===null||($.f&ct)===0)){var l=t,d=l.parent;for(o=0;o<c;o++)a=r[o],(i||!a?.reactions?.includes(l))&&(a.reactions??=[]).push(l);i&&(l.f^=hr),s&&d!==null&&(d.f&ue)===0&&(l.f^=ue)}for(o=0;o<c;o++)if(a=r[o],yr(a)&&to(a),a.wv>t.wv)return!0}(!n||$!==null&&!et)&&J(t,G)}return!1}function Eo(t,e,r=!0){var n=t.reactions;if(n!==null&&!Be?.includes(t))for(var o=0;o<n.length;o++){var a=n[o];(a.f&ce)!==0?Eo(a,e,!1):e===a&&(r?J(a,de):(a.f&G)!==0&&J(a,lt),Ye(a))}}function Oo(t){var e=re,r=me,n=_e,o=I,a=et,i=Be,s=he,c=Ce,l=mt,d=t.f;re=null,me=0,_e=null,et=(d&ue)!==0&&(Ce||!$t||I===null),I=(d&(Le|st))===0?t:null,Be=null,Ge(t.ctx),Ce=!1,mt=++Qt,t.ac!==null&&(t.ac.abort(Xr),t.ac=null);try{t.f|=Yr;var f=(0,t.fn)(),h=t.deps;if(re!==null){var v;if(wr(t,me),h!==null&&me>0)for(h.length=me+re.length,v=0;v<re.length;v++)h[me+v]=re[v];else t.deps=h=re;if(!et||(d&ce)!==0&&t.reactions!==null)for(v=me;v<h.length;v++)(h[v].reactions??=[]).push(t)}else h!==null&&me<h.length&&(wr(t,me),h.length=me);if(Qn()&&_e!==null&&!Ce&&h!==null&&(t.f&(ce|lt|de))===0)for(v=0;v<_e.length;v++)Eo(_e[v],t);return o!==null&&o!==t&&(Qt++,_e!==null&&(n===null?n=_e:n.push(..._e))),(t.f&ut)!==0&&(t.f^=ut),f}catch(g){return Si(g)}finally{t.f^=Yr,re=e,me=r,_e=n,I=o,et=a,Be=i,Ge(s),Ce=c,mt=l}}function Yi(t,e){let r=e.reactions;if(r!==null){var n=ri.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&ce)!==0&&(re===null||!re.includes(e))&&(J(e,lt),(e.f&(ue|hr))===0&&(e.f^=hr),eo(e),wr(e,0))}function wr(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Yi(t,r[n])}function Kt(t){var e=t.f;if((e&ct)===0){J(t,G);var r=$,n=$t;$=t,$t=!0;try{(e&Ht)!==0?qi(t):go(t),mo(t);var o=Oo(t);t.teardown=typeof o=="function"?o:null,t.wv=kr;var a;zn&&xi&&(t.f&de)!==0&&t.deps}finally{$t=n,$=r}}}function C(t){var e=t.f,r=(e&ce)!==0;if(I!==null&&!Ce){var n=$!==null&&($.f&ct)!==0;if(!n&&!Be?.includes(t)){var o=I.deps;if((I.f&Yr)!==0)t.rv<Qt&&(t.rv=Qt,re===null&&o!==null&&o[me]===t?me++:re===null?re=[t]:(!et||!re.includes(t))&&re.push(t));else{(I.deps??=[]).push(t);var a=t.reactions;a===null?t.reactions=[I]:a.includes(I)||a.push(I)}}}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 c=i.v;return((i.f&G)!==0||Ao(i))&&(c=en(i)),pt.set(i,c),c}}else if(r){if(i=t,Et?.has(i))return Et.get(i);yr(i)&&to(i)}if((t.f&ut)!==0)throw t.v;return t.v}function Ao(t){if(t.v===W)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pt.has(e)||(e.f&ce)!==0&&Ao(e))return!0;return!1}function xr(t){var e=Ce;try{return Ce=!0,t()}finally{Ce=e}}const Qi=-7169;function J(t,e){t.f=t.f&Qi|e}function Ki(t,e){if(e){const r=document.body;t.autofocus=!0,ht(()=>{document.activeElement===r&&t.focus()})}}function Xi(t){var e=I,r=$;ee(null),be(null);try{return t()}finally{ee(e),be(r)}}const Mo=new Set,ln=new Set;function Ji(t,e,r,n={}){function o(a){if(n.capture||Xt.call(e,a),!a.cancelBubble)return Xi(()=>r?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ht(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function $o(t){for(var e=0;e<t.length;e++)Mo.add(t[e]);for(var r of ln)r(t)}function Xt(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){xt(t,"currentTarget",{configurable:!0,get(){return a||r}});var d=I,f=$;ee(null),be(null);try{for(var h,v=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var p=a["__"+n];if(p!=null&&(!a.disabled||t.target===a))if(cr(p)){var[E,...m]=p;E.apply(a,[t,...m])}else p.call(a,t)}catch(k){h?v.push(k):h=k}if(t.cancelBubble||g===e||g===null)break;a=g}if(h){for(let k of v)queueMicrotask(()=>{throw k});throw h}}finally{t.__root=e,delete t.currentTarget,ee(d),be(f)}}}let ke;function es(){ke=void 0}function ts(t){let e=null,r=O;var n;if(O){for(e=j,ke===void 0&&(ke=ge(document.head));ke!==null&&(ke.nodeType!==dt||ke.data!==Zr);)ke=ve(ke);ke===null?K(!1):ke=X(ve(ke))}O||(n=document.head.appendChild(Ke()));try{ze(()=>t(n),Un)}finally{r&&(K(!0),ke=j,X(e))}}function Ro(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function De(t,e){var r=$;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Fe(t,e){var r=(e&Ka)!==0,n=(e&Xa)!==0,o,a=!t.startsWith("<!>");return()=>{if(O)return De(j,null),j;o===void 0&&(o=Ro(a?t:"<!>"+t),r||(o=ge(o)));var i=n||co?document.importNode(o,!0):o.cloneNode(!0);if(r){var s=ge(i),c=i.lastChild;De(s,c)}else De(i,i);return i}}function Se(){if(O)return De(j,null),j;var t=document.createDocumentFragment(),e=document.createComment(""),r=Ke();return t.append(e,r),De(e,r),t}function V(t,e){if(O){$.nodes_end=j,Te();return}t!==null&&t.before(e)}function rs(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ns=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function os(t){return ns.includes(t)}const as={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 is(t){return t=t.toLowerCase(),as[t]??t}const ss=["touchstart","touchmove"];function ls(t){return ss.includes(t)}const cs=["textarea","script","style","title"];function us(t){return cs.includes(t)}function ds(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function jo(t,e){return Io(t,e)}function hs(t,e){nn(),e.intro=e.intro??!1;const r=e.target,n=O,o=j;try{for(var a=ge(r);a&&(a.nodeType!==dt||a.data!==Zr);)a=ve(a);if(!a)throw it;K(!0),X(a),Te();const i=Io(t,{...e,anchor:a});if(j===null||j.nodeType!==dt||j.data!==Vr)throw qt(),it;return K(!1),i}catch(i){if(i===it)return e.recover===!1&&mi(),nn(),fo(r),K(!1),jo(t,e);throw i}finally{K(n),X(o),es()}}const Rt=new Map;function Io(t,{target:e,anchor:r,props:n={},events:o,context:a,intro:i=!0}){nn();var s=new Set,c=f=>{for(var h=0;h<f.length;h++){var v=f[h];if(!s.has(v)){s.add(v);var g=ls(v);e.addEventListener(v,Xt,{passive:g});var p=Rt.get(v);p===void 0?(document.addEventListener(v,Xt,{passive:g}),Rt.set(v,1)):Rt.set(v,p+1)}}};c(Ur(Mo)),ln.add(c);var l=void 0,d=Wi(()=>{var f=r??e.appendChild(Ke());return H(()=>{if(a){St({});var h=he;h.c=a}o&&(n.$$events=o),O&&De(f,null),l=t(f,n)||{},O&&($.nodes_end=j),a&&Tt()}),()=>{for(var h of s){e.removeEventListener(h,Xt);var v=Rt.get(h);--v===0?(document.removeEventListener(h,Xt),Rt.delete(h)):Rt.set(h,v)}ln.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return cn.set(l,d),l}let cn=new WeakMap;function fs(t,e){const r=cn.get(t);return r?(cn.delete(t),r(e)):Promise.resolve()}function No(t,e,...r){var n=t,o=dr,a;ze(()=>{o!==(o=e())&&(a&&(Y(a),a=null),a=H(()=>o(n,...r)))},Ct),O&&(n=j)}const un=0,Cr=1,dn=2;function Lo(t,e,r,n,o){O&&Te();var a=t,i=he,s=W,c,l,d,f=Pe(void 0),h=Pe(void 0),v=!1;function g(E,m){v=!0,m&&(be(p),ee(p),Ge(i));try{E===un&&r&&(c?Mt(c):c=H(()=>r(a))),E===Cr&&n&&(l?Mt(l):l=H(()=>n(a,f))),E!==un&&c&&Oe(c,()=>c=null),E!==Cr&&l&&Oe(l,()=>l=null),E!==dn&&d&&Oe(d,()=>d=null)}finally{m&&(Ge(null),ee(null),be(null),Z())}}var p=ze(()=>{if(s===(s=e()))return;let E=O&&Fn(s)===(a.data===lr);if(E&&(a=Gt(),X(a),K(!1),E=!0),Fn(s)){var m=s;v=!1,m.then(k=>{m===s&&(Qe(f,k),g(Cr,!0))},k=>{if(m===s)throw Qe(h,k),g(dn,!0),h.v}),O?r&&(c=H(()=>r(a))):ht(()=>{v||g(un,!0)})}else Qe(f,s),g(Cr,!1);return E&&K(!0),()=>s=W});O&&(a=j)}function tt(t,e,r=!1){O&&Te();var n=t,o=null,a=null,i=W,s=r?Ct:0,c=!1;const l=(v,g=!0)=>{c=!0,h(g,v)};var d=null;function f(){d!==null&&(d.lastChild.remove(),n.before(d),d=null);var v=i?o:a,g=i?a:o;v&&Mt(v),g&&Oe(g,()=>{i?a=null:o=null})}const h=(v,g)=>{if(i===(i=v))return;let p=!1;if(O){const T=qn(n)===lr;!!i===T&&(n=Gt(),X(n),K(!1),p=!0)}var E=po(),m=n;if(E&&(d=document.createDocumentFragment(),d.append(m=Ke())),i?o??=g&&H(()=>g(m)):a??=g&&H(()=>g(m)),E){var k=ae,b=i?o:a,y=i?a:o;b&&k.skipped_effects.delete(b),y&&k.skipped_effects.add(y),k.add_callback(f)}else f();p&&K(!0)};ze(()=>{c=!1,e(l),c||h(null,null)},s),O&&(n=j)}function ps(t,e){return e}function vs(t,e,r){for(var n=t.items,o=[],a=e.length,i=0;i<a;i++)sn(e[i].e,o,!0);var s=a>0&&o.length===0&&r!==null;if(s){var c=r.parentNode;fo(c),c.append(r),n.clear(),Ae(t,e[0].prev,e[a-1].next)}ko(o,()=>{for(var l=0;l<a;l++){var d=e[l];s||(n.delete(d.k),Ae(t,d.prev,d.next)),Y(d.e,!s)}})}function ms(t,e,r,n,o,a=null){var i=t,s={flags:e,items:new Map,first:null};O&&Te();var c=null,l=!1,d=new Map,f=Jn(()=>{var p=r();return cr(p)?p:p==null?[]:Ur(p)}),h,v;function g(){gs(v,h,s,d,i,o,e,n,r),a!==null&&(h.length===0?c?Mt(c):c=H(()=>a(i)):c!==null&&Oe(c,()=>{c=null}))}ze(()=>{v??=$,h=C(f);var p=h.length;if(l&&p===0)return;l=p===0;let E=!1;if(O){var m=qn(i)===lr;m!==(p===0)&&(i=Gt(),X(i),K(!1),E=!0)}if(O){for(var k=null,b,y=0;y<p;y++){if(j.nodeType===dt&&j.data===Vr){i=j,E=!0,K(!1);break}var T=h[y],P=n(T,y);b=hn(j,s,k,null,T,P,y,o,e,r),s.items.set(P,b),k=b}p>0&&X(Gt())}if(O)p===0&&a&&(c=H(()=>a(i)));else if(po()){var B=new Set,D=ae;for(y=0;y<p;y+=1){T=h[y],P=n(T,y);var F=s.items.get(P)??d.get(P);F?Po(F,T,y):(b=hn(null,s,null,null,T,P,y,o,e,r,!0),d.set(P,b)),B.add(P)}for(const[le,Q]of s.items)B.has(le)||D.skipped_effects.add(Q.e);D.add_callback(g)}else g();E&&K(!0),C(f)}),O&&(i=j)}function gs(t,e,r,n,o,a,i,s,c){var l=e.length,d=r.items,f=r.first,h=f,v,g=null,p=[],E=[],m,k,b,y;for(y=0;y<l;y+=1){if(m=e[y],k=s(m,y),b=d.get(k),b===void 0){var T=n.get(k);if(T!==void 0){n.delete(k),d.set(k,T);var P=g?g.next:h;Ae(r,g,T),Ae(r,T,P),fn(T,P,o),g=T}else{var B=h?h.e.nodes_start:o;g=hn(B,r,g,g===null?r.first:g.next,m,k,y,a,i,c)}d.set(k,g),p=[],E=[],h=g.next;continue}if(Po(b,m,y),(b.e.f&xe)!==0&&Mt(b.e),b!==h){if(v!==void 0&&v.has(b)){if(p.length<E.length){var D=E[0],F;g=D.prev;var le=p[0],Q=p[p.length-1];for(F=0;F<p.length;F+=1)fn(p[F],D,o);for(F=0;F<E.length;F+=1)v.delete(E[F]);Ae(r,le.prev,Q.next),Ae(r,g,le),Ae(r,Q,D),h=D,g=Q,y-=1,p=[],E=[]}else v.delete(b),fn(b,h,o),Ae(r,b.prev,b.next),Ae(r,b,g===null?r.first:g.next),Ae(r,g,b),g=b;continue}for(p=[],E=[];h!==null&&h.k!==k;)(h.e.f&xe)===0&&(v??=new Set).add(h),E.push(h),h=h.next;if(h===null)continue;b=h}p.push(b),g=b,h=b.next}if(h!==null||v!==void 0){for(var Ue=v===void 0?[]:Ur(v);h!==null;)(h.e.f&xe)===0&&Ue.push(h),h=h.next;var je=Ue.length;if(je>0){var Ie=null;vs(r,Ue,Ie)}}t.first=r.first&&r.first.e,t.last=g&&g.e;for(var We of n.values())Y(We.e);n.clear()}function Po(t,e,r,n){Qe(t.v,e),t.i=r}function hn(t,e,r,n,o,a,i,s,c,l,d){var f=(c&Ua)!==0,h=(c&Ha)===0,v=f?h?ao(o,!1,!1):Pe(o):o,g=(c&Wa)===0?i:Pe(i),p={i:g,v,k:a,a:null,e:null,prev:r,next:n};try{if(t===null){var E=document.createDocumentFragment();E.append(t=Ke())}return p.e=H(()=>s(t,v,g,l),O),p.e.prev=r&&r.e,p.e.next=n&&n.e,r===null?d||(e.first=p):(r.next=p,r.e.next=p.e),n!==null&&(n.prev=p,n.e.prev=p.e),p}finally{}}function fn(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!==null&&a!==n;){var i=ve(a);o.before(a),a=i}}function Ae(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 pn(t,e,r=!1,n=!1,o=!1){var a=t,i="";an(()=>{var s=$;if(i===(i=e()??"")){O&&Te();return}if(s.nodes_start!==null&&(bo(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),i!==""){if(O){j.data;for(var c=Te(),l=c;c!==null&&(c.nodeType!==dt||c.data!=="");)l=c,c=ve(c);if(c===null)throw qt(),it;De(j,l),a=X(c);return}var d=i+"";r?d=`<svg>${d}</svg>`:n&&(d=`<math>${d}</math>`);var f=Ro(d);if((r||n)&&(f=ge(f)),De(ge(f),f.lastChild),r||n)for(;ge(f);)a.before(ge(f));else a.before(f)}})}function zo(t,e,r,n,o,a){let i=O;O&&Te();var s,c,l=null;O&&j.nodeType===li&&(l=j,Te());var d=O?j:t,f;ze(()=>{const h=e()||null;var v=h==="svg"?ei:null;h!==s&&(f&&(h===null?Oe(f,()=>{f=null,c=null}):h===c?Mt(f):Y(f)),h&&h!==c&&(f=H(()=>{if(l=O?l:v?document.createElementNS(v,h):document.createElement(h),De(l,l),n){O&&us(h)&&l.append(document.createComment(""));var g=O?ge(l):l.appendChild(Ke());O&&(g===null?K(!1):X(g)),n(l,g)}$.nodes_end=l,d.before(l)})),s=h,s&&(c=s))},Ct),i&&(K(!0),X(d))}function bs(t,e){ht(()=>{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 _s(t,e,r){_r(()=>{var n=xr(()=>e(t,r?.())||{});if(n?.destroy)return()=>n.destroy()})}function ks(t,e){var r=void 0,n;ze(()=>{r!==(r=e())&&(n&&(Y(n),n=null),r&&(n=H(()=>{_r(()=>r(t))})))})}function Bo(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=Bo(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ys(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Bo(t))&&(n&&(n+=" "),n+=e);return n}function ws(t){return typeof t=="object"?ys(t):t??""}const Do=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function xs(t,e,r){var n=t==null?"":""+t;if(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||Do.includes(n[i-1]))&&(s===n.length||Do.includes(n[s]))?n=(i===0?"":n.substring(0,i))+n.substring(s+1):i=s}}return n===""?null:n}function Fo(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 vn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Cs(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(vn)),o&&c.push(...Object.keys(o).map(vn));var l=0,d=-1;const p=t.length;for(var f=0;f<p;f++){var h=t[f];if(s?h==="/"&&t[f-1]==="*"&&(s=!1):a?a===h&&(a=!1):h==="/"&&t[f+1]==="*"?s=!0:h==='"'||h==="'"?a=h:h==="("?i++:h===")"&&i--,!s&&a===!1&&i===0){if(h===":"&&d===-1)d=f;else if(h===";"||f===p-1){if(d!==-1){var v=vn(t.substring(l,d).trim());if(!c.includes(v)){h!==";"&&f++;var g=t.substring(l,f).trim();r+=" "+g+";"}}l=f+1,d=-1}}}}return n&&(r+=Fo(n)),o&&(r+=Fo(o,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Ss(t,e,r,n,o,a){var i=t.__className;if(O||i!==r||i===void 0){var s=xs(r,n,a);(!O||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 mn(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 Ts(t,e,r,n){var o=t.__style;if(O||o!==e){var a=Cs(e,n);(!O||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else n&&(Array.isArray(n)?(mn(t,r?.[0],n[0]),mn(t,r?.[1],n[1],"important")):mn(t,r,n));return n}function gn(t,e,r=!1){if(t.multiple){if(e==null)return;if(!cr(e))return yi();for(var n of t.options)n.selected=e.includes(Zo(n));return}for(n of t.options){var o=Zo(n);if(zi(o,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function Es(t){var e=new MutationObserver(()=>{gn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Zi(()=>{e.disconnect()})}function Zo(t){return"__value"in t?t.__value:t.value}const jt=Symbol("class"),Jt=Symbol("style"),Vo=Symbol("is custom element"),Uo=Symbol("is html");function Os(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function bn(t,e,r,n){var o=Ho(t);O&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[si]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Go(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function As(t,e,r,n,o=!1){var a=Ho(t),i=a[Vo],s=!a[Uo];let c=O&&i;c&&K(!1);var l=e||{},d=t.tagName==="OPTION";for(var f in e)f in r||(r[f]=null);r.class?r.class=ws(r.class):r[jt]&&(r.class=null),r[Jt]&&(r.style??=null);var h=Go(t);for(const b in r){let y=r[b];if(d&&b==="value"&&y==null){t.value=t.__value="",l[b]=y;continue}if(b==="class"){var v=t.namespaceURI==="http://www.w3.org/1999/xhtml";Ss(t,v,y,n,e?.[jt],r[jt]),l[b]=y,l[jt]=r[jt];continue}if(b==="style"){Ts(t,y,e?.[Jt],r[Jt]),l[b]=y,l[Jt]=r[Jt];continue}var g=l[b];if(!(y===g&&!(y===void 0&&t.hasAttribute(b)))){l[b]=y;var p=b[0]+b[1];if(p!=="$$")if(p==="on"){const T={},P="$$"+b;let B=b.slice(2);var E=os(B);if(rs(B)&&(B=B.slice(0,-7),T.capture=!0),!E&&g){if(y!=null)continue;t.removeEventListener(B,l[P],T),l[P]=null}if(y!=null)if(E)t[`__${B}`]=y,$o([B]);else{let D=function(F){l[b].call(this,F)};l[P]=Ji(B,t,D,T)}else E&&(t[`__${B}`]=void 0)}else if(b==="style")bn(t,b,y);else if(b==="autofocus")Ki(t,!!y);else if(!i&&(b==="__value"||b==="value"&&y!=null))t.value=t.__value=y;else if(b==="selected"&&d)Os(t,y);else{var m=b;s||(m=is(m));var k=m==="defaultValue"||m==="defaultChecked";if(y==null&&!i&&!k)if(a[b]=null,m==="value"||m==="checked"){let T=t;const P=e===void 0;if(m==="value"){let B=T.defaultValue;T.removeAttribute(m),T.defaultValue=B,T.value=T.__value=P?B:null}else{let B=T.defaultChecked;T.removeAttribute(m),T.defaultChecked=B,T.checked=P?B:!1}}else t.removeAttribute(b);else k||h.includes(m)&&(i||typeof y!="string")?t[m]=y:typeof y!="function"&&bn(t,m,y)}}}return c&&K(!0),l}function Wo(t,e,r=[],n=[],o,a=!1){ro(r,n,i=>{var s=void 0,c={},l=t.nodeName==="SELECT",d=!1;if(ze(()=>{var h=e(...i.map(C)),v=As(t,s,h,o,a);d&&l&&"value"in h&&gn(t,h.value);for(let p of Object.getOwnPropertySymbols(c))h[p]||Y(c[p]);for(let p of Object.getOwnPropertySymbols(h)){var g=h[p];p.description===ti&&(!s||g!==s[p])&&(c[p]&&Y(c[p]),c[p]=H(()=>ks(t,()=>g))),v[p]=g}s=v}),l){var f=t;_r(()=>{gn(f,s.value,!0),Es(f)})}d=!0})}function Ho(t){return t.__attributes??={[Vo]:t.nodeName.includes("-"),[Uo]:t.namespaceURI===Ja}}var qo=new Map;function Go(t){var e=qo.get(t.nodeName);if(e)return e;qo.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=ni(n);for(var a in r)r[a].set&&e.push(a);n=Bn(n)}return e}function Yo(t,e){return t===e||t?.[He]===e}function Qo(t={},e,r,n){return _r(()=>{var o,a;return on(()=>{o=a,a=[],xr(()=>{t!==r(...a)&&(e(t,...a),o&&Yo(r(...o),t)&&e(null,...o))})}),()=>{ht(()=>{a&&Yo(r(...a),t)&&e(null,...a)})}}),t}let Sr=!1;function Ms(t){var e=Sr;try{return Sr=!1,[t(),Sr]}finally{Sr=e}}const $s={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 _n(t,e,r){return new Proxy({props:t,exclude:e},$s)}const Rs={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Wt(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];Wt(o)&&(o=o());const a=Ne(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(Wt(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=Ne(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===He||e===Kr)return!1;for(let r of t.props)if(Wt(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Wt(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 js(...t){return new Proxy({props:t},Rs)}function q(t,e,r,n){var o=(r&Ya)!==0,a=(r&Qa)!==0,i=n,s=!0,c=()=>(s&&(s=!1,i=a?xr(n):n),i),l;if(o){var d=He in t||Kr in t;l=Ne(t,e)?.set??(d&&e in t?k=>t[e]=k:void 0)}var f,h=!1;o?[f,h]=Ms(()=>t[e]):f=t[e],f===void 0&&n!==void 0&&(f=c(),l&&(gi(),l(f)));var v;if(v=()=>{var k=t[e];return k===void 0?c():(s=!0,k)},(r&Ga)===0)return v;if(l){var g=t.$$legacy;return function(k,b){return arguments.length>0?((!b||g||h)&&l(b?v():k),k):v()}}var p=!1,E=((r&qa)!==0?vr:Jn)(()=>(p=!1,v()));o&&C(E);var m=$;return function(k,b){if(arguments.length>0){const y=b?C(E):o?At(k):k;return ie(E,y),p=!0,i!==void 0&&(i=y),k}return vt&&p||(m.f&ct)!==0?E.v:C(E)}}function Is(t){return new Ns(t)}class Ns{#e;#t;constructor(e){var r=new Map,n=(a,i)=>{var s=ao(i,!1,!1);return r.set(a,s),s};const o=new Proxy({...e.props||{},$$events:{}},{get(a,i){return C(r.get(i)??n(i,Reflect.get(a,i)))},has(a,i){return i===Kr?!0:(C(r.get(i)??n(i,Reflect.get(a,i))),Reflect.has(a,i))},set(a,i,s){return ie(r.get(i)??n(i,s),s),Reflect.set(a,i,s)}});this.#t=(e.hydrate?hs:jo)(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"||xt(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=()=>{fs(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 Ko;typeof HTMLElement=="function"&&(Ko=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),V(o,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ls(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]=Tr(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=Is({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Ui(()=>{on(()=>{this.$$r=!0;for(const n of ur(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=Tr(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]=Tr(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 ur(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Tr(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 Ls(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function er(t,e,r,n,o,a){let i=class extends Ko{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return ur(e).map(s=>(e[s].attribute||s).toLowerCase())}};return ur(e).forEach(s=>{xt(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){c=Tr(s,c,e),this.$$d[s]=c;var l=this.$$c;if(l){var d=Ne(l,s)?.get;d?l[s]=c:l.$set({[s]:c})}}})}),n.forEach(s=>{xt(i.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=i,i}var Ps=(t,e)=>e()(),zs=Fe('<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>'),Bs=Fe(" <!>",1);const Ds={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,8 +12,8 @@ var LiipGPTButton=function(Dr){"use strict";const Vo="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
|
-
`,d())??""]),V(l,f)};let n=H(e,"body",7),a=H(e,"silent",7),o=he(void 0);const i=l=>{ie(o,{error:l},!0)};var s=Se(),c=te(s);return Oi(c,{get failed(){return r}},l=>{var d=Se(),h=te(d);{var f=g=>{r(g,()=>C(o).error,()=>()=>{ie(o,void 0)})},v=g=>{var p=Se(),E=te(p);ja(E,n,()=>i),V(g,p)};et(h,g=>{C(o)?g(f):g(v,!1)})}V(l,d)}),V(t,s),St({get body(){return n()},set body(l){n(l),Z()},get silent(){return a()},set silent(l){a(l),Z()}})}Oa(["click"]),Xt(Ka,{body:{},silent:{}},[],[],!0);const Ds='@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-tooltip-hover: 101;--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;--btn-padding-x: var(--spacer-r-20);--btn-padding-y: var(--spacer-r-8);--btn-icon-size: var(--spacer-24);--last-bot-message-min-height: 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);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.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(--body-focus-width);outline-offset:var(--body-focus-offset)}.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--6){-webkit-line-clamp:6}.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;transform:translateZ(0)}.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-x:hidden;overflow-y:auto;overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y}.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__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);position:sticky;top:0;background:var(--body-background)}.chat-app__header-content{--btn-padding-x: var(--btn-padding-y);display:flex;position:relative;-moz-column-gap:var(--spacer-r-12);column-gap:var(--spacer-r-12);flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10)}.chat-app__header-content>:where(*){z-index:0;position:relative;pointer-events:auto}.chat-app__header-content:after{position:absolute;right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);border-bottom:1px solid transparent;content:"";transition:border-color .1s ease-in-out}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.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-header);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;white-space:pre}.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}}}',Zs=()=>{const t=localStorage.getItem("liipgpt-color-scheme");return t==="light"||t==="dark"?t:"system"},Vs=t=>{let e=Zs();return e==="system"&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),t.includes(e)?e:t[0]??"light"},Us=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),qs=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ws=new RegExp("(\\d)(\\p{Ll})","gu"),Hs=new RegExp("(\\p{L})(\\d)","gu"),Gs=/[^\p{L}\d]+/giu,Er="$1\0$2",Ys="";function Qs(t,e){let r=t.trim();r=r.replace(Us,Er).replace(qs,Er),e?.separateNumbers&&(r=r.replace(Ws,Er).replace(Hs,Er)),r=r.replace(Gs,"\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 Ks(t,e){return el(t,e?.prefixCharacters)+Qs(t,e).map(Js(e?.locale)).join(e?.delimiter??" ")}function Xs(t,e){return Ks(t,{delimiter:"-",...e})}function Js(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function el(t,e=Ys){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 $r=Xs;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 Xa;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Xa||(Xa={}));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 De 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,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 a(this),n}static assert(e){if(!(e instanceof De))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()}}De.create=t=>new De(t);const kn=(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 tl=kn;function rl(){return tl}const nl=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 c=n.filter(l=>!!l).slice().reverse();for(const l of c)s=l(i,{data:e,defaultError:s}).message;return{...a,path:o,message:s}};function w(t,e){const r=rl(),n=nl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===kn?void 0:kn].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 O;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 O;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 O=Object.freeze({status:"aborted"}),Jt=t=>({status:"dirty",value:t}),ke=t=>({status:"valid",value:t}),Ja=t=>t.status==="aborted",eo=t=>t.status==="dirty",It=t=>t.status==="valid",Rr=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 Oe{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 to=(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 De(t.common.issues);return this._error=r,this._error}}};function M(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: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: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(Rr(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 to(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(Rr(a)?a:Promise.resolve(a));return to(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(c=>c?!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:R.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 Ae.create(this)}promise(){return jr.create(this,this._def)}or(e){return Ar.create([this,e],this._def)}and(e){return Mr.create(this,e,this._def)}transform(e){return new Pt({...M(this._def),schema:this,typeName:R.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Sn({...M(this._def),innerType:this,defaultValue:r,typeName:R.ZodDefault})}brand(){return new Tl({typeName:R.ZodBranded,type:this,...M(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Tn({...M(this._def),innerType:this,catchValue:r,typeName:R.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return En.create(this,e)}readonly(){return $n.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const al=/^c[^\s-]{8,}$/i,ol=/^[0-9a-z]+$/,il=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sl=/^[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,ll=/^[a-z0-9_-]{21}$/i,cl=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ul=/^[-+]?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)?)??$/,dl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let yn;const hl=/^(?:(?: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])$/,pl=/^(?:(?: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])$/,vl=/^(([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]))$/,ml=/^(([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])$/,gl=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bl=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ro="((\\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])))",_l=new RegExp(`^${ro}$`);function no(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 kl(t){return new RegExp(`^${no(t)}$`)}function yl(t){let e=`${ro}T${no(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 wl(t,e){return!!((e==="v4"||!e)&&hl.test(t)||(e==="v6"||!e)&&vl.test(t))}function xl(t,e){if(!cl.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 Cl(t,e){return!!((e==="v4"||!e)&&pl.test(t)||(e==="v6"||!e)&&ml.test(t))}class Ze 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}),O}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")dl.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")yn||(yn=new RegExp(fl,"u")),yn.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")sl.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")ll.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")al.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")ol.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")il.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"?yl(o).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?_l.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?kl(o).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:_.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?ul.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?wl(e.data,o.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?xl(e.data,o.alg)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"jwt",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?Cl(e.data,o.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cidr",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?gl.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:_.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?bl.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 Ze({...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 Ze({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ze({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ze({...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}}Ze.create=t=>new Ze({checks:[],typeName:R.ZodString,coerce:t?.coerce??!1,...M(t)});function Sl(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}),O}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"?Sl(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:R.ZodNumber,coerce:t?.coerce||!1,...M(t)});class er 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}),O}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 er({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:S.toString(a)}]})}_addCheck(e){return new er({...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}}er.create=t=>new er({checks:[],typeName:R.ZodBigInt,coerce:t?.coerce??!1,...M(t)});class wn 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}),O}return ke(e.data)}}wn.create=t=>new wn({typeName:R.ZodBoolean,coerce:t?.coerce||!1,...M(t)});class Or 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}),O}if(Number.isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return w(o,{code:_.invalid_date}),O}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 Or({...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}}Or.create=t=>new Or({checks:[],coerce:t?.coerce||!1,typeName:R.ZodDate,...M(t)});class ao 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}),O}return ke(e.data)}}ao.create=t=>new ao({typeName:R.ZodSymbol,...M(t)});class oo 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}),O}return ke(e.data)}}oo.create=t=>new oo({typeName:R.ZodUndefined,...M(t)});class io 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}),O}return ke(e.data)}}io.create=t=>new io({typeName:R.ZodNull,...M(t)});class so extends N{constructor(){super(...arguments),this._any=!0}_parse(e){return ke(e.data)}}so.create=t=>new so({typeName:R.ZodAny,...M(t)});class lo extends N{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ke(e.data)}}lo.create=t=>new lo({typeName:R.ZodUnknown,...M(t)});class rt extends N{_parse(e){const r=this._getOrReturnCtx(e);return w(r,{code:_.invalid_type,expected:x.never,received:r.parsedType}),O}}rt.create=t=>new rt({typeName:R.ZodNever,...M(t)});class co 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}),O}return ke(e.data)}}co.create=t=>new co({typeName:R.ZodVoid,...M(t)});class Ae 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}),O;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 Oe(r,i,r.path,s)))).then(i=>ne.mergeArray(n,i));const o=[...r.data].map((i,s)=>a.type._parseSync(new Oe(r,i,r.path,s)));return ne.mergeArray(n,o)}get element(){return this._def.type}min(e,r){return new Ae({...this._def,minLength:{value:e,message:S.toString(r)}})}max(e,r){return new Ae({...this._def,maxLength:{value:e,message:S.toString(r)}})}length(e,r){return new Ae({...this._def,exactLength:{value:e,message:S.toString(r)}})}nonempty(e){return this.min(1,e)}}Ae.create=(t,e)=>new Ae({type:t,minLength:null,maxLength:null,exactLength:null,typeName:R.ZodArray,...M(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 Ae?new Ae({...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 l=this._getOrReturnCtx(e);return w(l,{code:_.invalid_type,expected:x.object,received:l.parsedType}),O}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 l in a.data)i.includes(l)||s.push(l);const c=[];for(const l of i){const d=o[l],h=a.data[l];c.push({key:{status:"valid",value:l},value:d._parse(new Oe(a,h,a.path,l)),alwaysSet:l in a.data})}if(this._def.catchall instanceof rt){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(l==="strict")s.length>0&&(w(a,{code:_.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 d of s){const h=a.data[d];c.push({key:{status:"valid",value:d},value:l._parse(new Oe(a,h,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of c){const h=await d.key,f=await d.value;l.push({key:h,value:f,alwaysSet:d.alwaysSet})}return l}).then(l=>ne.mergeObjectSync(n,l)):ne.mergeObjectSync(n,c)}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:R.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 ho(P.objectKeys(this.shape))}}U.create=(t,e)=>new U({shape:()=>t,unknownKeys:"strip",catchall:rt.create(),typeName:R.ZodObject,...M(e)}),U.strictCreate=(t,e)=>new U({shape:()=>t,unknownKeys:"strict",catchall:rt.create(),typeName:R.ZodObject,...M(e)}),U.lazycreate=(t,e)=>new U({shape:t,unknownKeys:"strip",catchall:rt.create(),typeName:R.ZodObject,...M(e)});class Ar 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 De(s.ctx.common.issues));return w(r,{code:_.invalid_union,unionErrors:i}),O}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 c of n){const l={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const s=i.map(c=>new De(c));return w(r,{code:_.invalid_union,unionErrors:s}),O}}get options(){return this._def.options}}Ar.create=(t,e)=>new Ar({options:t,typeName:R.ZodUnion,...M(e)});function xn(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 c=xn(t[s],e[s]);if(!c.valid)return{valid:!1};i[s]=c.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],c=xn(i,s);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return r===x.date&&n===x.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Mr extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=(o,i)=>{if(Ja(o)||Ja(i))return O;const s=xn(o.value,i.value);return s.valid?((eo(o)||eo(i))&&r.dirty(),{status:r.value,value:s.data}):(w(n,{code:_.invalid_intersection_types}),O)};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}))}}Mr.create=(t,e,r)=>new Mr({left:t,right:e,typeName:R.ZodIntersection,...M(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}),O;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"}),O;!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 c=this._def.items[s]||this._def.rest;return c?c._parse(new Oe(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:R.ZodTuple,rest:null,...M(e)})};class Ir 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}),O;const a=[],o=this._def.keyType,i=this._def.valueType;for(const s in n.data)a.push({key:o._parse(new Oe(n,s,n.path,s)),value:i._parse(new Oe(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 Ir({keyType:e,valueType:r,typeName:R.ZodRecord,...M(n)}):new Ir({keyType:Ze.create(),valueType:e,typeName:R.ZodRecord,...M(r)})}}class uo 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}),O;const a=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([s,c],l)=>({key:a._parse(new Oe(n,s,n.path,[l,"key"])),value:o._parse(new Oe(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,d=await c.value;if(l.status==="aborted"||d.status==="aborted")return O;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const c of i){const l=c.key,d=c.value;if(l.status==="aborted"||d.status==="aborted")return O;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}}}}uo.create=(t,e,r)=>new uo({valueType:e,keyType:t,typeName:R.ZodMap,...M(r)});class tr 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}),O;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(c){const l=new Set;for(const d of c){if(d.status==="aborted")return O;d.status==="dirty"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((c,l)=>o._parse(new Oe(n,c,n.path,l)));return n.common.async?Promise.all(s).then(c=>i(c)):i(s)}min(e,r){return new tr({...this._def,minSize:{value:e,message:S.toString(r)}})}max(e,r){return new tr({...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)}}tr.create=(t,e)=>new tr({valueType:t,minSize:null,maxSize:null,typeName:R.ZodSet,...M(e)});class fo 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})}}fo.create=(t,e)=>new fo({getter:t,typeName:R.ZodLazy,...M(e)});class Cn 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}),O}return{status:"valid",value:e.data}}get value(){return this._def.value}}Cn.create=(t,e)=>new Cn({value:t,typeName:R.ZodLiteral,...M(e)});function ho(t,e){return new Lt({values:t,typeName:R.ZodEnum,...M(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}),O}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}),O}return ke(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=ho;class po 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}),O}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}),O}return ke(e.data)}get enum(){return this._def.values}}po.create=(t,e)=>new po({values:t,typeName:R.ZodNativeEnum,...M(e)});class jr 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}),O;const n=r.parsedType===x.promise?r.data:Promise.resolve(r.data);return ke(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}jr.create=(t,e)=>new jr({type:t,typeName:R.ZodPromise,...M(e)});class Pt extends N{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===R.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 O;const c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?O:c.status==="dirty"||r.value==="dirty"?Jt(c.value):c});{if(r.value==="aborted")return O;const s=this._def.schema._parseSync({data:i,path:n.path,parent:n});return s.status==="aborted"?O:s.status==="dirty"||r.value==="dirty"?Jt(s.value):s}}if(a.type==="refinement"){const i=s=>{const c=a.refinement(s,o);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"?O:(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"?O:(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 O;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})):O);P.assertNever(a)}}Pt.create=(t,e,r)=>new Pt({schema:t,typeName:R.ZodEffects,effect:e,...M(r)}),Pt.createWithPreprocess=(t,e,r)=>new Pt({schema:e,effect:{type:"preprocess",transform:t},typeName:R.ZodEffects,...M(r)});class nt extends N{_parse(e){return this._getType(e)===x.undefined?ke(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}nt.create=(t,e)=>new nt({innerType:t,typeName:R.ZodOptional,...M(e)});class zt extends N{_parse(e){return this._getType(e)===x.null?ke(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}zt.create=(t,e)=>new zt({innerType:t,typeName:R.ZodNullable,...M(e)});class Sn 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}}Sn.create=(t,e)=>new Sn({innerType:t,typeName:R.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...M(e)});class Tn 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 Rr(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new De(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Tn.create=(t,e)=>new Tn({innerType:t,typeName:R.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...M(e)});class vo 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}),O}return{status:"valid",value:e.data}}}vo.create=t=>new vo({typeName:R.ZodNaN,...M(t)});class Tl 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 En 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"?O:o.status==="dirty"?(r.dirty(),Jt(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"?O: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 En({in:e,out:r,typeName:R.ZodPipeline})}}class $n extends N{_parse(e){const r=this._def.innerType._parse(e),n=a=>(It(a)&&(a.value=Object.freeze(a.value)),a);return Rr(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}$n.create=(t,e)=>new $n({innerType:t,typeName:R.ZodReadonly,...M(e)});var R;(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"})(R||(R={}));const u=Ze.create,Nr=jt.create,ye=wn.create;rt.create;const rr=Ae.create,z=U.create,Lr=Ar.create;Mr.create,gt.create;const at=Ir.create,El=Cn.create,nr=Lt.create;jr.create,nt.create,zt.create;const $l=640,Rl=1024;let Pr=null;const Ol=()=>{if(Pr)return Pr;if(!globalThis.document)return 16;const t=globalThis.document.querySelector(":root");return Pr=Number(getComputedStyle(t).fontSize.slice(0,-2)),Pr},Al=({minRem:t,maxRem:e})=>{const r=Ol(),n=$l/r,a=Rl/r,o=(e-t)/(a-n),i=-n*o+t;return`clamp( ${t}rem, ${i}rem + ${o*100}cqw, ${e}rem )`},ae=z({minRem:Nr(),maxRem:Nr()}).or(u()),zr=z({0:u().optional(),50:u(),100:u(),200:u(),300:u(),400:u(),500:u(),600:u(),700:u(),800:u(),900:u(),950:u(),1e3:u().optional()}),Rn=z({color:u().optional(),background:u().optional(),borderWidth:u().optional(),borderColor:u().optional(),boxShadow:u().optional()}),Ml=z({borderRadius:ae.optional(),custom:at(u(),Lr([u(),Nr()])).optional(),hover:Rn.optional(),focus:Rn.optional()}).and(Rn),Il=z({family:u().optional()}),jl=at(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","chevronUp","chevronTopDown","internalLink","externalLink","liip","avatar","avatarLarge","openChat","speechInput","listUnordered","lightMode","darkMode","avatarLarge"]),u()),Nl=z({font:Il.optional(),colors:z({brand:zr,accent:zr.optional(),highlight:zr,grey:zr}),base:z({fontSizeXs:ae.optional(),fontSizeSm:ae.optional(),fontSizeBody:ae.optional(),fontSizeH3:ae.optional(),fontSizeH2:ae.optional(),fontSizeH1:ae.optional(),fontWeightNormal:u().optional(),fontWeightBold:u().optional(),fontWeightTitle:u().optional(),lineHeightDefault:u().optional(),lineHeightSnug:u().optional(),lineHeightTight:u().optional(),borderRadius:ae.optional(),lineColor:u().optional(),boxShadow:u().optional()}),components:at(u(),Ml),svgs:jl}),Br=z({customCSS:u().optional(),fontCSS:u().optional(),fontURLs:u().array().optional(),tokens:Nl});z({light:Br,dark:Br});const Ll=z({light:Br,dark:Br}).deepPartial(),mo=t=>typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?t.minRem===t.maxRem?`${t.minRem}rem`:Al(t):"",On=(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+=`--${$r(t)}-${$r(o)}:${mo(i)}; `)}),a},go=(t,e)=>Object.entries(e).map(([r,n])=>`--${t}-${$r(r)}:${mo(n)}`).join("; ")+"; ",Pl=(t,e)=>{let r="";return r+=On(t,e,["background","borderWidth","borderColor","boxShadow","borderRadius","color"],!0),e.hover&&(r+=On(`${t}-hover`,e.hover,["background","borderWidth","borderColor","boxShadow","color"])),e.focus&&(r+=On(`${t}-focus`,e.focus,["background","borderWidth","borderColor","boxShadow","color"])),e.custom&&(r+=go(t,e.custom)),r},zl=(t,e)=>Object.entries(e).map(([r,n])=>`--color-${t}-${r}:${n}`).join("; ")+"; ",Bl=t=>`--font-family: ${t?.family||"inherit"};`,Fl=t=>{const e=Bl(t.font),r=Object.entries(t.colors).map(([o,i])=>zl(o,i)).join(""),n=go("base",t.base),a=Object.entries(t.components).map(([o,i])=>Pl($r(o),i)).join("");return`.chat-app {${e} ${r} ${n} ${a}};`};var An={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 bo=z({50:u(),100:u(),200:u(),300:u(),400:u(),500:u(),600:u(),700:u(),800:u(),900:u(),950:u()}),_o=nr(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),ko=Lr([bo,_o]),Dl=Lr([bo.and(z({0:u(),1e3:u()})),_o]),yo=z({avatarImageUrl:u().optional(),colors:z({brand:ko.optional(),highlight:ko.optional(),grey:Dl.optional(),background:u().optional(),text:u().optional(),anchor:z({default:u().optional(),hover:u().optional()}).optional()}).optional(),font:z({family:u().optional(),urls:rr(u()).optional(),sizeXs:ae.optional(),sizeSm:ae.optional(),sizeBody:ae.optional(),sizeH3:ae.optional(),sizeH2:ae.optional(),sizeH1:ae.optional(),weightNormal:u().optional(),weightBold:u().optional(),weightTitle:u().optional()}).optional(),borderRadius:ae.optional(),fineGrained:Ll.optional()}),Zl=z({blocked:u(),maintenance:u(),"rate-limit":u(),"server-error":u(),"too-short":u(),"too-long":u(),"quota-reached":u(),aborted:u(),"sse-error":u(),"client-error":u(),"unexpected-call":u(),"incomplete-error":u(),"feedback-failed":u(),"speech-not-supported":u(),"speech-transcription-failed":u(),"speech-no-text-detected":u(),"speech-microphone-access-denied":u(),"pii-detected":u()}),Vl=z({email:u(),creditCard:u(),ahv:u(),phoneSwiss:u(),phoneInternational:u(),swissPassport:u(),longNumber:u()}),wo=z({predefinedQuestions:u(),introductionTitle:u(),introductionDisclaimer:u().optional(),chatInputPlaceholder:u(),chatInputPlaceholderListening:u().optional(),chatInputSubmit:u(),chatInputStartListening:u(),chatInputStopListening:u(),referenceLink:u(),referencesDisplay:u(),referencesHide:u(),referencesTitle:u(),referencesFurtherTitle:u(),newChat:u(),maintenanceModeError:u(),messageBotLoading:u(),messageBotError:u(),messageBotDefaultError:u(),noResultsFound:u(),chatFooterText:u().optional(),scrollToBottom:u(),openButtonTitle:u().optional(),openButtonDescription:u().optional(),openMenu:u(),openInfo:u(),aboutThisChat:u().optional(),closeMenu:u(),closeChat:u(),close:u(),send:u(),thankYouForFeedback:u(),giveFeedback:u(),sendFeedback:u(),feedbackFormTitle:u(),feedbackFormMessage:u(),feedbackFormMessagePlaceholder:u(),feedbackFormEmail:u(),feedbackFormEmailPlaceholder:u(),answerGood:u(),answerBad:u(),classificationSubmit:u(),classificationThankYou:u(),classificationTitle:u(),selectLanguage:u(),lightMode:u(),darkMode:u(),termsTitle:u().optional(),termsContent:u().optional()}),Bt=nr(["en","de","fr","it"]),xo=at(Bt,wo.partial());at(Bt,Zl),at(Bt,Vl);const Co=z({label:u(),options:rr(z({label:u(),value:Nr()}))}),Ul=z({label:u(),icon:u(),url:u(),target:nr(["_blank","_self"]).optional()}),ql=z({label:u().nullable(),question:u()}),So=z({impact:Co.optional(),quality:Co.optional()});z({classification:So.optional()}),z({predefinedQuestions:rr(ql)}),Lr([z({maintenance:El(!0)}),z({id:u(),cID:u()})]),at(Bt,wo);const Wl=z({showPredefinedQuestions:ye(),showOverallFeedbackButton:ye(),showCloseChatButton:ye(),showContextMenu:ye(),showContextInfo:ye(),showReferencesByDefault:ye(),allowAudioInput:ye(),blockPII:ye(),questionPrefix:u(),menu:at(Bt,rr(Ul)).optional(),supportedLanguages:rr(Bt),classification:So.optional(),showTextFeedback:ye(),theme:yo,translations:xo,buttonHref:u().optional(),addQueryToUrlParams:ye().optional(),renderKatex:ye().optional(),reflectLanguageInPath:ye().optional(),sendReferrer:nr(["all","own","none","location"]).optional()}).partial().and(z({theme:z({name:u().optional()}).optional()}));function Hl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mn,To;function Gl(){if(To)return Mn;To=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)?p(i(m),m,k):m}function c(m,k,b){return m.concat(k).map(function(y){return s(y,b)})}function l(m,k){if(!k.customMerge)return p;var b=k.customMerge(m);return typeof b=="function"?b:p}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(k){return Object.propertyIsEnumerable.call(m,k)}):[]}function h(m){return Object.keys(m).concat(d(m))}function f(m,k){try{return k in m}catch{return!1}}function v(m,k){return f(m,k)&&!(Object.hasOwnProperty.call(m,k)&&Object.propertyIsEnumerable.call(m,k))}function g(m,k,b){var y={};return b.isMergeableObject(m)&&h(m).forEach(function(T){y[T]=s(m[T],b)}),h(k).forEach(function(T){v(m,T)||(f(m,T)&&b.isMergeableObject(k[T])?y[T]=l(T,b)(m[T],k[T],b):y[T]=s(k[T],b))}),y}function p(m,k,b){b=b||{},b.arrayMerge=b.arrayMerge||c,b.isMergeableObject=b.isMergeableObject||t,b.cloneUnlessOtherwiseSpecified=s;var y=Array.isArray(k),T=Array.isArray(m),L=y===T;return L?y?b.arrayMerge(m,k,b):g(m,k,b):s(k,b)}p.all=function(k,b){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(y,T){return p(y,T,b)},{})};var E=p;return Mn=E,Mn}var Yl=Gl();const ar=Hl(Yl),Ql=t=>t===null||typeof t!="object",In=t=>{if(Ql(t))return t;if(Array.isArray(t))return t.map(In);const e=Object.entries(t).filter(([r,n])=>n!==void 0).map(([r,n])=>[r,In(n)]);return Object.fromEntries(e)},Fr=(t,e)=>{const r=In(e);return ar(t,r)},Eo={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)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)"}},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)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},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)",placeholderOpacity:"1"}},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}},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:`
|
|
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 Xo(t,e){St(e,!0),bs(t,Ds);const r=(l,d=dr,f=dr)=>{Hn();var h=Bs(),v=te(h),g=Je(v);{var p=m=>{},E=m=>{var k=zs(),b=Xe(k),y=Je(Xe(b));y.__click=[Ps,f],qe(b),qe(k),V(m,k)};tt(g,m=>{o()?m(p):m(E,!1)})}an(m=>ds(v,`${m??""} `),[()=>console.error(`Panic, uncaught error:
|
|
16
|
+
`,d())??""]),V(l,h)};let n=q(e,"body",7),o=q(e,"silent",7),a=pe(void 0);const i=l=>{ie(a,{error:l},!0)};var s=Se(),c=te(s);return Mi(c,{get failed(){return r}},l=>{var d=Se(),f=te(d);{var h=g=>{r(g,()=>C(a).error,()=>()=>{ie(a,void 0)})},v=g=>{var p=Se(),E=te(p);No(E,n,()=>i),V(g,p)};tt(f,g=>{C(a)?g(h):g(v,!1)})}V(l,d)}),V(t,s),Tt({get body(){return n()},set body(l){n(l),Z()},get silent(){return o()},set silent(l){o(l),Z()}})}$o(["click"]),er(Xo,{body:{},silent:{}},[],[],!0);const Fs='@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-tooltip-hover: 101;--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;--btn-padding-x: var(--spacer-r-20);--btn-padding-y: var(--spacer-r-8);--btn-icon-size: var(--spacer-24);--btn-submit-size: 2.5em;--last-bot-message-min-height: 0}}@value container-sm,container-md,container-lg,container-inner-xs,container-inner-sm,container-inner-md,container-inner-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);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.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:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.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--6){-webkit-line-clamp:6}.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)}.chat-app :where(.display-contents){display:contents}}@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;transform:translateZ(0)}.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{container-name:chat-inner-container;container-type:inline-size;display:flex;flex-direction:column;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y}.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__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);position:sticky;top:0;background:var(--body-background)}.chat-app__header-content{--btn-padding-x: var(--btn-padding-y);display:flex;position:relative;-moz-column-gap:var(--spacer-r-12);column-gap:var(--spacer-r-12);flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10)}.chat-app__header-content>:where(*){z-index:0;position:relative;pointer-events:auto}.chat-app__header-content:after{position:absolute;right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);border-bottom:1px solid transparent;content:"";transition:border-color .1s ease-in-out}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.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-header);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;white-space:pre}.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}}}',Zs=()=>{const t=localStorage.getItem("liipgpt-color-scheme");return t==="light"||t==="dark"?t:"system"},Vs=t=>{let e=Zs();return e==="system"&&(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),t.includes(e)?e:t[0]??"light"},Us=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Ws=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Hs=new RegExp("(\\d)(\\p{Ll})","gu"),qs=new RegExp("(\\p{L})(\\d)","gu"),Gs=/[^\p{L}\d]+/giu,Er="$1\0$2",Ys="";function Qs(t,e){let r=t.trim();r=r.replace(Us,Er).replace(Ws,Er),e?.separateNumbers&&(r=r.replace(Hs,Er).replace(qs,Er)),r=r.replace(Gs,"\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 Ks(t,e){return el(t,e?.prefixCharacters)+Qs(t,e).map(Js(e?.locale)).join(e?.delimiter??" ")}function Xs(t,e){return Ks(t,{delimiter:"-",...e})}function Js(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function el(t,e=Ys){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 Or=Xs;var z;(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})(z||(z={}));var Jo;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Jo||(Jo={}));const x=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rt=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}},_=z.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 Ze 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 Ze))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,z.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()}}Ze.create=t=>new Ze(t);const kn=(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,z.jsonStringifyReplacer)}`;break;case _.unrecognized_keys:r=`Unrecognized key(s) in object: ${z.joinValues(t.keys,", ")}`;break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${z.joinValues(t.options)}`;break;case _.invalid_enum_value:r=`Invalid enum value. Expected ${z.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}"`:z.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,z.assertNever(t)}return{message:r}};let tl=kn;function rl(){return tl}const nl=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 w(t,e){const r=rl(),n=nl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===kn?void 0:kn].filter(o=>!!o)});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 o of r){if(o.status==="aborted")return M;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 ne.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 M;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 M=Object.freeze({status:"aborted"}),tr=t=>({status:"dirty",value:t}),ye=t=>({status:"valid",value:t}),ea=t=>t.status==="aborted",ta=t=>t.status==="dirty",It=t=>t.status==="valid",Ar=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 Me{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 ra=(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 Ze(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: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 N{get description(){return this._def.description}_getType(e){return rt(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:rt(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:rt(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Ar(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:rt(e)},o=this._parseSync({data:e,path:n.path,parent:n});return ra(n,o)}"~validate"(e){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:rt(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:rt(e)},o=this._parse({data:e,path:n.path,parent:n}),a=await(Ar(o)?o:Promise.resolve(o));return ra(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:_.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 zt({schema:this,typeName:A.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 ot.create(this,this._def)}nullable(){return Bt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $e.create(this)}promise(){return Ir.create(this,this._def)}or(e){return $r.create([this,e],this._def)}and(e){return Rr.create(this,e,this._def)}transform(e){return new zt({...R(this._def),schema:this,typeName:A.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Sn({...R(this._def),innerType:this,defaultValue:r,typeName:A.ZodDefault})}brand(){return new Tl({typeName:A.ZodBranded,type:this,...R(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Tn({...R(this._def),innerType:this,catchValue:r,typeName:A.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return En.create(this,e)}readonly(){return On.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ol=/^c[^\s-]{8,}$/i,al=/^[0-9a-z]+$/,il=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sl=/^[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,ll=/^[a-z0-9_-]{21}$/i,cl=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ul=/^[-+]?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)?)??$/,dl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let yn;const fl=/^(?:(?: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])$/,pl=/^(?:(?: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])$/,vl=/^(([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]))$/,ml=/^(([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])$/,gl=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,bl=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,na="((\\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])))",_l=new RegExp(`^${na}$`);function oa(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 kl(t){return new RegExp(`^${oa(t)}$`)}function yl(t){let e=`${na}T${oa(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 wl(t,e){return!!((e==="v4"||!e)&&fl.test(t)||(e==="v6"||!e)&&vl.test(t))}function xl(t,e){if(!cl.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 Cl(t,e){return!!((e==="v4"||!e)&&pl.test(t)||(e==="v6"||!e)&&ml.test(t))}class Ve extends N{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){const a=this._getOrReturnCtx(e);return w(a,{code:_.invalid_type,expected:x.string,received:a.parsedType}),M}const n=new ne;let o;for(const a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(o=this._getOrReturnCtx(e,o),w(o,{code:_.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),w(o,{code:_.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?w(o,{code:_.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&w(o,{code:_.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")dl.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"email",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")yn||(yn=new RegExp(hl,"u")),yn.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"emoji",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")sl.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"uuid",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")ll.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"nanoid",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")ol.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"cuid",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")al.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"cuid2",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")il.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"ulid",code:_.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),w(o,{validation:"url",code:_.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),w(o,{validation:"regex",code:_.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),w(o,{code:_.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),w(o,{code:_.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(o=this._getOrReturnCtx(e,o),w(o,{code:_.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?yl(a).test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{code:_.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?_l.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{code:_.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?kl(a).test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{code:_.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?ul.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"duration",code:_.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?wl(e.data,a.version)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"ip",code:_.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?xl(e.data,a.alg)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"jwt",code:_.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?Cl(e.data,a.version)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"cidr",code:_.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?gl.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"base64",code:_.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?bl.test(e.data)||(o=this._getOrReturnCtx(e,o),w(o,{validation:"base64url",code:_.invalid_string,message:a.message}),n.dirty()):z.assertNever(a);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(o=>e.test(o),{validation:r,code:_.invalid_string,...S.errToObj(n)})}_addCheck(e){return new Ve({...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 Ve({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ve({...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}}Ve.create=t=>new Ve({checks:[],typeName:A.ZodString,coerce:t?.coerce??!1,...R(t)});function Sl(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 Nt 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 a=this._getOrReturnCtx(e);return w(a,{code:_.invalid_type,expected:x.number,received:a.parsedType}),M}let n;const o=new ne;for(const a of this._def.checks)a.kind==="int"?z.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),w(n,{code:_.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),w(n,{code:_.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),w(n,{code:_.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?Sl(e.data,a.value)!==0&&(n=this._getOrReturnCtx(e,n),w(n,{code:_.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),w(n,{code:_.not_finite,message:a.message}),o.dirty()):z.assertNever(a);return{status:o.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,o){return new Nt({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:S.toString(o)}]})}_addCheck(e){return new Nt({...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"&&z.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)}}Nt.create=t=>new Nt({checks:[],typeName:A.ZodNumber,coerce:t?.coerce||!1,...R(t)});class rr 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 o=new ne;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),w(n,{code:_.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),w(n,{code:_.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),w(n,{code:_.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):z.assertNever(a);return{status:o.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return w(r,{code:_.invalid_type,expected:x.bigint,received:r.parsedType}),M}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,o){return new rr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:S.toString(o)}]})}_addCheck(e){return new rr({...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}}rr.create=t=>new rr({checks:[],typeName:A.ZodBigInt,coerce:t?.coerce??!1,...R(t)});class wn 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}),M}return ye(e.data)}}wn.create=t=>new wn({typeName:A.ZodBoolean,coerce:t?.coerce||!1,...R(t)});class Mr extends N{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){const a=this._getOrReturnCtx(e);return w(a,{code:_.invalid_type,expected:x.date,received:a.parsedType}),M}if(Number.isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return w(a,{code:_.invalid_date}),M}const n=new ne;let o;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(o=this._getOrReturnCtx(e,o),w(o,{code:_.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),w(o,{code:_.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):z.assertNever(a);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Mr({...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}}Mr.create=t=>new Mr({checks:[],coerce:t?.coerce||!1,typeName:A.ZodDate,...R(t)});class aa 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}),M}return ye(e.data)}}aa.create=t=>new aa({typeName:A.ZodSymbol,...R(t)});class ia 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}),M}return ye(e.data)}}ia.create=t=>new ia({typeName:A.ZodUndefined,...R(t)});class sa 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}),M}return ye(e.data)}}sa.create=t=>new sa({typeName:A.ZodNull,...R(t)});class la extends N{constructor(){super(...arguments),this._any=!0}_parse(e){return ye(e.data)}}la.create=t=>new la({typeName:A.ZodAny,...R(t)});class ca extends N{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ye(e.data)}}ca.create=t=>new ca({typeName:A.ZodUnknown,...R(t)});class nt extends N{_parse(e){const r=this._getOrReturnCtx(e);return w(r,{code:_.invalid_type,expected:x.never,received:r.parsedType}),M}}nt.create=t=>new nt({typeName:A.ZodNever,...R(t)});class ua 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}),M}return ye(e.data)}}ua.create=t=>new ua({typeName:A.ZodVoid,...R(t)});class $e extends N{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),o=this._def;if(r.parsedType!==x.array)return w(r,{code:_.invalid_type,expected:x.array,received:r.parsedType}),M;if(o.exactLength!==null){const i=r.data.length>o.exactLength.value,s=r.data.length<o.exactLength.value;(i||s)&&(w(r,{code:i?_.too_big:_.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&&(w(r,{code:_.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&&(w(r,{code:_.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 Me(r,i,r.path,s)))).then(i=>ne.mergeArray(n,i));const a=[...r.data].map((i,s)=>o.type._parseSync(new Me(r,i,r.path,s)));return ne.mergeArray(n,a)}get element(){return this._def.type}min(e,r){return new $e({...this._def,minLength:{value:e,message:S.toString(r)}})}max(e,r){return new $e({...this._def,maxLength:{value:e,message:S.toString(r)}})}length(e,r){return new $e({...this._def,exactLength:{value:e,message:S.toString(r)}})}nonempty(e){return this.min(1,e)}}$e.create=(t,e)=>new $e({type:t,minLength:null,maxLength:null,exactLength:null,typeName:A.ZodArray,...R(e)});function Lt(t){if(t instanceof U){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=ot.create(Lt(n))}return new U({...t._def,shape:()=>e})}else return t instanceof $e?new $e({...t._def,type:Lt(t.element)}):t instanceof ot?ot.create(Lt(t.unwrap())):t instanceof Bt?Bt.create(Lt(t.unwrap())):t instanceof gt?gt.create(t.items.map(e=>Lt(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=z.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==x.object){const l=this._getOrReturnCtx(e);return w(l,{code:_.invalid_type,expected:x.object,received:l.parsedType}),M}const{status:n,ctx:o}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof nt&&this._def.unknownKeys==="strip"))for(const l in o.data)i.includes(l)||s.push(l);const c=[];for(const l of i){const d=a[l],f=o.data[l];c.push({key:{status:"valid",value:l},value:d._parse(new Me(o,f,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof nt){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(l==="strict")s.length>0&&(w(o,{code:_.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 d of s){const f=o.data[d];c.push({key:{status:"valid",value:d},value:l._parse(new Me(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of c){const f=await d.key,h=await d.value;l.push({key:f,value:h,alwaysSet:d.alwaysSet})}return l}).then(l=>ne.mergeObjectSync(n,l)):ne.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new U({...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:S.errToObj(e).message??o}:{message:o}}}:{}})}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:A.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 z.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 z.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new U({...this._def,shape:()=>r})}deepPartial(){return Lt(this)}partial(e){const r={};for(const n of z.objectKeys(this.shape)){const o=this.shape[n];e&&!e[n]?r[n]=o:r[n]=o.optional()}return new U({...this._def,shape:()=>r})}required(e){const r={};for(const n of z.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof ot;)a=a._def.innerType;r[n]=a}return new U({...this._def,shape:()=>r})}keyof(){return fa(z.objectKeys(this.shape))}}U.create=(t,e)=>new U({shape:()=>t,unknownKeys:"strip",catchall:nt.create(),typeName:A.ZodObject,...R(e)}),U.strictCreate=(t,e)=>new U({shape:()=>t,unknownKeys:"strict",catchall:nt.create(),typeName:A.ZodObject,...R(e)}),U.lazycreate=(t,e)=>new U({shape:t,unknownKeys:"strip",catchall:nt.create(),typeName:A.ZodObject,...R(e)});class $r extends N{_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 Ze(s.ctx.common.issues));return w(r,{code:_.invalid_union,unionErrors:i}),M}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},d=c._parseSync({data:r.data,path:r.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,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 Ze(c));return w(r,{code:_.invalid_union,unionErrors:s}),M}}get options(){return this._def.options}}$r.create=(t,e)=>new $r({options:t,typeName:A.ZodUnion,...R(e)});function xn(t,e){const r=rt(t),n=rt(e);if(t===e)return{valid:!0,data:t};if(r===x.object&&n===x.object){const o=z.objectKeys(e),a=z.objectKeys(t).filter(s=>o.indexOf(s)!==-1),i={...t,...e};for(const s of a){const c=xn(t[s],e[s]);if(!c.valid)return{valid:!1};i[s]=c.data}return{valid:!0,data:i}}else if(r===x.array&&n===x.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=xn(i,s);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return r===x.date&&n===x.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Rr extends N{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),o=(a,i)=>{if(ea(a)||ea(i))return M;const s=xn(a.value,i.value);return s.valid?((ta(a)||ta(i))&&r.dirty(),{status:r.value,value:s.data}):(w(n,{code:_.invalid_intersection_types}),M)};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}))}}Rr.create=(t,e,r)=>new Rr({left:t,right:e,typeName:A.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}),M;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"}),M;!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 a=[...n.data].map((i,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new Me(n,i,n.path,s)):null}).filter(i=>!!i);return n.common.async?Promise.all(a).then(i=>ne.mergeArray(r,i)):ne.mergeArray(r,a)}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:A.ZodTuple,rest:null,...R(e)})};class jr 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}),M;const o=[],a=this._def.keyType,i=this._def.valueType;for(const s in n.data)o.push({key:a._parse(new Me(n,s,n.path,s)),value:i._parse(new Me(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?ne.mergeObjectAsync(r,o):ne.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof N?new jr({keyType:e,valueType:r,typeName:A.ZodRecord,...R(n)}):new jr({keyType:Ve.create(),valueType:e,typeName:A.ZodRecord,...R(r)})}}class da 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}),M;const o=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([s,c],l)=>({key:o._parse(new Me(n,s,n.path,[l,"key"])),value:a._parse(new Me(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,d=await c.value;if(l.status==="aborted"||d.status==="aborted")return M;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const c of i){const l=c.key,d=c.value;if(l.status==="aborted"||d.status==="aborted")return M;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}}}}da.create=(t,e,r)=>new da({valueType:e,keyType:t,typeName:A.ZodMap,...R(r)});class nr 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}),M;const o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(w(n,{code:_.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&&(w(n,{code:_.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 d of c){if(d.status==="aborted")return M;d.status==="dirty"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((c,l)=>a._parse(new Me(n,c,n.path,l)));return n.common.async?Promise.all(s).then(c=>i(c)):i(s)}min(e,r){return new nr({...this._def,minSize:{value:e,message:S.toString(r)}})}max(e,r){return new nr({...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)}}nr.create=(t,e)=>new nr({valueType:t,minSize:null,maxSize:null,typeName:A.ZodSet,...R(e)});class ha 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})}}ha.create=(t,e)=>new ha({getter:t,typeName:A.ZodLazy,...R(e)});class Cn 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}),M}return{status:"valid",value:e.data}}get value(){return this._def.value}}Cn.create=(t,e)=>new Cn({value:t,typeName:A.ZodLiteral,...R(e)});function fa(t,e){return new Pt({values:t,typeName:A.ZodEnum,...R(e)})}class Pt extends N{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return w(r,{expected:z.joinValues(n),received:r.parsedType,code:_.invalid_type}),M}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}),M}return ye(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 Pt.create(e,{...this._def,...r})}exclude(e,r=this._def){return Pt.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Pt.create=fa;class pa extends N{_parse(e){const r=z.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==x.string&&n.parsedType!==x.number){const o=z.objectValues(r);return w(n,{expected:z.joinValues(o),received:n.parsedType,code:_.invalid_type}),M}if(this._cache||(this._cache=new Set(z.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const o=z.objectValues(r);return w(n,{received:n.data,code:_.invalid_enum_value,options:o}),M}return ye(e.data)}get enum(){return this._def.values}}pa.create=(t,e)=>new pa({values:t,typeName:A.ZodNativeEnum,...R(e)});class Ir 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}),M;const n=r.parsedType===x.promise?r.data:Promise.resolve(r.data);return ye(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ir.create=(t,e)=>new Ir({type:t,typeName:A.ZodPromise,...R(e)});class zt extends N{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===A.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=>{w(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 M;const c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?M:c.status==="dirty"||r.value==="dirty"?tr(c.value):c});{if(r.value==="aborted")return M;const s=this._def.schema._parseSync({data:i,path:n.path,parent:n});return s.status==="aborted"?M:s.status==="dirty"||r.value==="dirty"?tr(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"?M:(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"?M:(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(!It(i))return M;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=>It(i)?Promise.resolve(o.transform(i.value,a)).then(s=>({status:r.value,value:s})):M);z.assertNever(o)}}zt.create=(t,e,r)=>new zt({schema:t,typeName:A.ZodEffects,effect:e,...R(r)}),zt.createWithPreprocess=(t,e,r)=>new zt({schema:e,effect:{type:"preprocess",transform:t},typeName:A.ZodEffects,...R(r)});class ot extends N{_parse(e){return this._getType(e)===x.undefined?ye(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ot.create=(t,e)=>new ot({innerType:t,typeName:A.ZodOptional,...R(e)});class Bt extends N{_parse(e){return this._getType(e)===x.null?ye(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Bt.create=(t,e)=>new Bt({innerType:t,typeName:A.ZodNullable,...R(e)});class Sn 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}}Sn.create=(t,e)=>new Sn({innerType:t,typeName:A.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...R(e)});class Tn extends N{_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 Ar(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ze(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ze(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Tn.create=(t,e)=>new Tn({innerType:t,typeName:A.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...R(e)});class va 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}),M}return{status:"valid",value:e.data}}}va.create=t=>new va({typeName:A.ZodNaN,...R(t)});class Tl 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 En extends N{_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"?M:a.status==="dirty"?(r.dirty(),tr(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"?M: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 En({in:e,out:r,typeName:A.ZodPipeline})}}class On extends N{_parse(e){const r=this._def.innerType._parse(e),n=o=>(It(o)&&(o.value=Object.freeze(o.value)),o);return Ar(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}}On.create=(t,e)=>new On({innerType:t,typeName:A.ZodReadonly,...R(e)});var A;(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"})(A||(A={}));const u=Ve.create,Nr=Nt.create,se=wn.create;nt.create;const bt=$e.create,L=U.create,Lr=$r.create;Rr.create,gt.create;const Re=jr.create,El=Cn.create,Dt=Pt.create;Ir.create,ot.create,Bt.create;const Ol=640,Al=1024;let Pr=null;const Ml=()=>{if(Pr)return Pr;if(!globalThis.document)return 16;const t=globalThis.document.querySelector(":root");return Pr=Number(getComputedStyle(t).fontSize.slice(0,-2)),Pr},$l=({minRem:t,maxRem:e})=>{const r=Ml(),n=Ol/r,o=Al/r,a=(e-t)/(o-n),i=-n*a+t;return`clamp( ${t}rem, ${i}rem + ${a*100}cqw, ${e}rem )`},oe=L({minRem:Nr(),maxRem:Nr()}).or(u()),zr=L({0:u().optional(),50:u(),100:u(),200:u(),300:u(),400:u(),500:u(),600:u(),700:u(),800:u(),900:u(),950:u(),1e3:u().optional()}),An=L({color:u().optional(),background:u().optional(),borderWidth:u().optional(),borderColor:u().optional(),boxShadow:u().optional()}),Rl=L({borderRadius:oe.optional(),custom:Re(u(),Lr([u(),Nr()])).optional(),hover:An.optional(),focus:An.optional()}).and(An),jl=L({family:u().optional()}),Il=Re(Dt(["predefinedQuestion","edit","newConversation","voteUp","voteDown","retry","message","messageLoading","thread","submit","abort","expand","help","attach","record","reward","share","audio","copy","dismiss","menu","info","menuClose","chevronDown","chevronUp","chevronTopDown","chevronDownSmall","internalLink","externalLink","liip","avatar","avatarLarge","openChat","speechInput","listUnordered","lightMode","darkMode","avatarLarge","settings","settingsClose","sources","model","checkbox"]),u()),Nl=L({font:jl.optional(),colors:L({brand:zr,accent:zr.optional(),highlight:zr,grey:zr}),base:L({fontSizeXs:oe.optional(),fontSizeSm:oe.optional(),fontSizeBody:oe.optional(),fontSizeH3:oe.optional(),fontSizeH2:oe.optional(),fontSizeH1:oe.optional(),fontWeightNormal:u().optional(),fontWeightBold:u().optional(),fontWeightTitle:u().optional(),lineHeightDefault:u().optional(),lineHeightSnug:u().optional(),lineHeightTight:u().optional(),borderRadius:oe.optional(),lineColor:u().optional(),boxShadow:u().optional()}),components:Re(u(),Rl),svgs:Il}),Br=L({customCSS:u().optional(),fontCSS:u().optional(),fontURLs:u().array().optional(),tokens:Nl});L({light:Br,dark:Br});const Ll=L({light:Br,dark:Br}).deepPartial(),ma=t=>typeof t=="string"?t:typeof t=="number"?String(t):typeof t=="object"?t.minRem===t.maxRem?`${t.minRem}rem`:$l(t):"",Mn=(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+=`--${Or(t)}-${Or(a)}:${ma(i)}; `)}),o},ga=(t,e)=>Object.entries(e).map(([r,n])=>`--${t}-${Or(r)}:${ma(n)}`).join("; ")+"; ",Pl=(t,e)=>{let r="";return r+=Mn(t,e,["background","borderWidth","borderColor","boxShadow","borderRadius","color"],!0),e.hover&&(r+=Mn(`${t}-hover`,e.hover,["background","borderWidth","borderColor","boxShadow","color"])),e.focus&&(r+=Mn(`${t}-focus`,e.focus,["background","borderWidth","borderColor","boxShadow","color"])),e.custom&&(r+=ga(t,e.custom)),r},zl=(t,e)=>Object.entries(e).map(([r,n])=>`--color-${t}-${r}:${n}`).join("; ")+"; ",Bl=t=>`--font-family: ${t?.family||"inherit"};`,Dl=t=>{const e=Bl(t.font),r=Object.entries(t.colors).map(([a,i])=>zl(a,i)).join(""),n=ga("base",t.base),o=Object.entries(t.components).map(([a,i])=>Pl(Or(a),i)).join("");return`.chat-app {${e} ${r} ${n} ${o}};`};var $n={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 ba=L({50:u(),100:u(),200:u(),300:u(),400:u(),500:u(),600:u(),700:u(),800:u(),900:u(),950:u()}),_a=Dt(["slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"]),ka=Lr([ba,_a]),Fl=Lr([ba.and(L({0:u(),1e3:u()})),_a]),ya=L({avatarImageUrl:u().optional(),colors:L({brand:ka.optional(),highlight:ka.optional(),grey:Fl.optional(),background:u().optional(),text:u().optional(),anchor:L({default:u().optional(),hover:u().optional()}).optional()}).optional(),font:L({family:u().optional(),urls:bt(u()).optional(),sizeXs:oe.optional(),sizeSm:oe.optional(),sizeBody:oe.optional(),sizeH3:oe.optional(),sizeH2:oe.optional(),sizeH1:oe.optional(),weightNormal:u().optional(),weightBold:u().optional(),weightTitle:u().optional()}).optional(),borderRadius:oe.optional(),fineGrained:Ll.optional()}),Zl=L({blocked:u(),maintenance:u(),"rate-limit":u(),"server-error":u(),"too-short":u(),"too-long":u(),"quota-reached":u(),aborted:u(),"sse-error":u(),"client-error":u(),"unexpected-call":u(),"incomplete-error":u(),"feedback-failed":u(),"speech-not-supported":u(),"speech-transcription-failed":u(),"speech-no-text-detected":u(),"speech-microphone-access-denied":u(),"pii-detected":u()}),Vl=L({email:u(),creditCard:u(),ahv:u(),phoneSwiss:u(),phoneInternational:u(),swissPassport:u(),longNumber:u()}),Ul=L({name:u(),namePlural:u().optional(),intro:u().optional(),placeholder:u(),values:Re(u(),u())}),wa=L({predefinedQuestions:u(),introductionTitle:u(),introductionDisclaimer:u().optional(),chatInputPlaceholder:u(),chatInputPlaceholderListening:u().optional(),chatInputSubmit:u(),chatInputStartListening:u(),chatInputStopListening:u(),referenceLink:u(),referencesDisplay:u(),referencesHide:u(),referencesTitle:u(),referencesFurtherTitle:u(),newChat:u(),maintenanceModeError:u(),messageBotLoading:u(),messageBotError:u(),messageBotDefaultError:u(),noResultsFound:u(),chatFooterText:u().optional(),scrollToBottom:u(),openButtonTitle:u().optional(),openButtonDescription:u().optional(),openMenu:u(),openInfo:u(),aboutThisChat:u().optional(),closeMenu:u(),closeChat:u(),close:u(),send:u(),thankYouForFeedback:u(),giveFeedback:u(),sendFeedback:u(),feedbackFormTitle:u(),feedbackFormMessage:u(),feedbackFormMessagePlaceholder:u(),feedbackFormEmail:u(),feedbackFormEmailPlaceholder:u(),answerGood:u(),answerBad:u(),classificationSubmit:u(),classificationThankYou:u(),classificationTitle:u(),selectLanguage:u(),lightMode:u(),darkMode:u(),termsTitle:u().optional(),termsContent:u().optional(),selectors:Re(u(),Ul).optional(),hideSettings:u(),showSettings:u(),chooseAtLeastOneOption:u(),selectAll:u(),selectNone:u()}),Ft=Dt(["en","de","fr","it"]),xa=Re(Ft,wa.partial());Re(Ft,Zl),Re(Ft,Vl);const Ca=L({label:u(),options:bt(L({label:u(),value:Nr()}))}),Wl=L({label:u(),icon:u(),url:u(),target:Dt(["_blank","_self"]).optional()}),Hl=L({label:u().nullable(),question:u()}),Sa=L({impact:Ca.optional(),quality:Ca.optional()});L({classification:Sa.optional()}),L({predefinedQuestions:bt(Hl)}),Lr([L({maintenance:El(!0)}),L({id:u(),cID:u()})]),Re(Ft,wa);const ql=L({settingName:u(),iconName:u(),settingIntro:u().optional(),type:Dt(["single-select","multi-select"]),allowEmpty:se(),values:bt(u())}),Gl=L({showPredefinedQuestions:se(),showOverallFeedbackButton:se(),showCloseChatButton:se(),showContextMenu:se(),showContextInfo:se(),showReferencesByDefault:se(),showExpandedSelectors:se(),allowAudioInput:se(),blockPII:se(),questionPrefix:u(),menu:Re(Ft,bt(Wl)).optional(),supportedLanguages:bt(Ft),classification:Sa.optional(),showTextFeedback:se(),theme:ya,translations:xa,buttonHref:u().optional(),addQueryToUrlParams:se().optional(),renderKatex:se().optional(),reflectLanguageInPath:se().optional(),sendReferrer:Dt(["all","own","none","location"]).optional(),selectorsConfig:bt(ql)}).partial().and(L({theme:L({name:u().optional()}).optional()}));function Yl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rn,Ta;function Ql(){if(Ta)return Rn;Ta=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]"||a(m)}var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103;function a(m){return m.$$typeof===o}function i(m){return Array.isArray(m)?[]:{}}function s(m,k){return k.clone!==!1&&k.isMergeableObject(m)?p(i(m),m,k):m}function c(m,k,b){return m.concat(k).map(function(y){return s(y,b)})}function l(m,k){if(!k.customMerge)return p;var b=k.customMerge(m);return typeof b=="function"?b:p}function d(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(k){return Object.propertyIsEnumerable.call(m,k)}):[]}function f(m){return Object.keys(m).concat(d(m))}function h(m,k){try{return k in m}catch{return!1}}function v(m,k){return h(m,k)&&!(Object.hasOwnProperty.call(m,k)&&Object.propertyIsEnumerable.call(m,k))}function g(m,k,b){var y={};return b.isMergeableObject(m)&&f(m).forEach(function(T){y[T]=s(m[T],b)}),f(k).forEach(function(T){v(m,T)||(h(m,T)&&b.isMergeableObject(k[T])?y[T]=l(T,b)(m[T],k[T],b):y[T]=s(k[T],b))}),y}function p(m,k,b){b=b||{},b.arrayMerge=b.arrayMerge||c,b.isMergeableObject=b.isMergeableObject||t,b.cloneUnlessOtherwiseSpecified=s;var y=Array.isArray(k),T=Array.isArray(m),P=y===T;return P?y?b.arrayMerge(m,k,b):g(m,k,b):s(k,b)}p.all=function(k,b){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(y,T){return p(y,T,b)},{})};var E=p;return Rn=E,Rn}var Kl=Ql();const or=Yl(Kl),Xl=t=>t===null||typeof t!="object",jn=t=>{if(Xl(t))return t;if(Array.isArray(t))return t.map(jn);const e=Object.entries(t).filter(([r,n])=>n!==void 0).map(([r,n])=>[r,jn(n)]);return Object.fromEntries(e)},Dr=(t,e)=>{const r=jn(e);return or(t,r)},Ea={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)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)"}},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)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"var(--color-grey-900)",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)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},checkbox:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"0.2em",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},radio:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},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)",errorColor:"var(--message-error-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}},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
17
|
<svg viewBox="0 0 24 24" >
|
|
18
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
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>
|
|
@@ -30,7 +30,7 @@ var LiipGPTButton=function(Dr){"use strict";const Vo="5";typeof window<"u"&&((wi
|
|
|
30
30
|
<circle cx="18" cy="23" r="1.75" fill="currentColor">
|
|
31
31
|
<animate attributeName="opacity" dur="1s" values="0.2;0.8;0.2" repeatCount="indefinite" begin="0.6s"/>
|
|
32
32
|
</circle>
|
|
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" 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"><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>',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>',chevronUp:'<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>',chevronTopDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m19 9-7-7-7 7"/><path d="m19 15-7 7-7-7"/></g></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:`
|
|
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" 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"><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>',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>',chevronUp:'<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>',chevronTopDown:'<svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m19 9-7-7-7 7"/><path d="m19 15-7 7-7-7"/></g></svg>',chevronDownSmall:'<svg viewBox="0 0 10 10" fill="none"><path d="M8.75 3.75C7.25 5.25 5 7.5 5 7.50L1.25 3.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></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
34
|
<svg viewBox="0 0 100 100" width="100" height="100" shape-rendering="geometricPrecision" text-rendering="geometricPrecision">
|
|
35
35
|
<style>
|
|
36
36
|
.svg--avatar {
|
|
@@ -240,4 +240,45 @@ var LiipGPTButton=function(Dr){"use strict";const Vo="5";typeof window<"u"&&((wi
|
|
|
240
240
|
<svg viewBox="0 0 24 24" fill="none">
|
|
241
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"/>
|
|
242
242
|
</svg>
|
|
243
|
-
`}}},Kl=Fr(Eo,{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(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},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:Eo,dark:Kl}},Xl=Object.freeze(Object.defineProperty({__proto__:null,theme:bt},Symbol.toStringTag,{value:"Module"})),jn=t=>typeof t=="string"?An[t]:t,Jl=t=>{const e=jn(t?.colors?.brand||An.gray),r=jn(t?.colors?.highlight||e),n={0:"#ffffff",1e3:"#000000",...jn(t?.colors?.grey||An.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}}}},ec=t=>{const e=Jl(t);return{light:Fr(bt.fineGrained.light,e)}},tc=t=>{const e={};return t.dark&&(e.dark=Fr(bt.fineGrained.dark,t.dark)),t.light&&(e.light=Fr(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",noResultsFound:"Keine Ergebnisse gefunden"},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",noResultsFound:"No results found"},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",noResultsFound:"Nessun risultato trovato"},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",noResultsFound:"Aucun résultat trouvé"}},rc=Object.freeze(Object.defineProperty({__proto__:null,translations:Ft},Symbol.toStringTag,{value:"Module"})),nc=t=>{t=t??Ft;const e={};return t.de&&(e.de=ar(Ft.de,t.de)),t.en&&(e.en=ar(Ft.en,t.en)),t.fr&&(e.fr=ar(Ft.fr,t.fr)),t.it&&(e.it=ar(Ft.it,t.it)),e},ac=t=>{let e;t.theme?.fineGrained?e=tc(t.theme?.fineGrained):e=ec(t?.theme??{});const r=nc(t?.translations),n={...t,showPredefinedQuestions:t.showPredefinedQuestions??!0,showOverallFeedbackButton:t.showOverallFeedbackButton??!1,showCloseChatButton:t.showCloseChatButton??!1,showContextInfo:t.showContextInfo??!1,showContextMenu:t.showContextMenu??!1,showReferencesByDefault:t.showReferencesByDefault??!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,sendReferrer:t.sendReferrer??"all"};return t.classification&&(n.classification=t.classification),t.menu&&(n.menu=t.menu),n},Nn=structuredClone(bt.fineGrained.light);Nn.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 $o=structuredClone(bt.fineGrained.dark);$o.tokens.colors=Nn.tokens.colors;const oc=Object.freeze(Object.defineProperty({__proto__:null,theme:{fineGrained:{light:Nn,dark:$o}}},Symbol.toStringTag,{value:"Module"})),Ro=t=>t.split("/").pop().split(".")[0],ic=Object.assign({"./default/fallback-dev.theme.ts":oc,"./default/fallback.theme.ts":Xl}),Oo=new Map;Object.entries(ic).forEach(([t,e])=>{const{error:r,data:n}=yo.safeParse(e?.theme);if(r){console.error(`Invalid theme in ${t}:`,r);return}Oo.set(Ro(t),n)}),Array.from(Oo.keys());const sc=Object.assign({"./default/fallback.translations.ts":rc}),Ao=new Map;Object.entries(sc).forEach(([t,e])=>{const{error:r,data:n}=xo.safeParse(e?.translations);if(r){console.error(`Invalid translations in ${t}:`,r);return}Ao.set(Ro(t),n)}),Array.from(Ao.keys());const lc="en",Mo=(t,e)=>e.includes(t),Io=(t,e)=>{if(Mo(t,e))return t;const r=cc();return Mo(r,e)?r:lc},cc=()=>navigator.language.split("-")[0],uc=t=>Io(localStorage.getItem("liipgpt:selectedLanguage"),t);var we=typeof window<"u"?window:{screen:{},navigator:{}},Dt=(we.matchMedia||function(){return{matches:!1}}).bind(we),dc={get passive(){return!0}},jo=function(){};we.addEventListener&&we.addEventListener("p",jo,dc),we.removeEventListener&&we.removeEventListener("p",jo,!1);var Ln="ontouchstart"in we,fc="TouchEvent"in we,hc=Ln||fc&&Dt("(any-pointer: coarse)").matches,No=(we.navigator.maxTouchPoints||0)>0||hc,Lo=we.navigator.userAgent||"",pc=Dt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Lo)&&Math.min(we.screen.width||0,we.screen.height||0)>=768,Po=(Dt("(pointer: coarse)").matches||!Dt("(pointer: fine)").matches&&Ln)&&!/Windows.*Firefox/.test(Lo),vc=Dt("(any-pointer: fine)").matches||Dt("(any-hover: hover)").matches||pc||!Ln,zo=No&&(vc||!Po)?"hybrid":No?"touchOnly":"mouseOnly",mc=zo==="mouseOnly"?"mouse":zo==="touchOnly"||Po?"touch":"mouse";function Bo(t,e){Ct(e,!0);let r=H(e,"href",7),n=H(e,"target",7),a=H(e,"onclick",7),o=H(e,"className",23,()=>[]),i=H(e,"isStandalone",7,!1),s=H(e,"children",7),c=H(e,"type",7,"button"),l=H(e,"class",7),d=_n(e,["$$slots","$$events","$$legacy","$$host","href","target","onclick","className","isStandalone","children","type","class"]);const h=fe(()=>r()?"a":"button"),f=fe(()=>[...Array.isArray(o())?o():o()?[o()]:[],...l()?[l()]:[]]);var v=Se(),g=te(v);return Pa(g,()=>C(h),!1,(p,E)=>{Ua(p,b=>({...d,onclick:r()?void 0:a(),type:r()?void 0:c(),href:r(),role:r()?"link":"button",target:r()?n():void 0,class:C(f),[Mt]:b}),[()=>({"open-button--standalone":i()})]);var m=Se(),k=te(m);ja(k,s),V(E,m)}),V(t,v),St({get href(){return r()},set href(p){r(p),Z()},get target(){return n()},set target(p){n(p),Z()},get onclick(){return a()},set onclick(p){a(p),Z()},get className(){return o()},set className(p=[]){o(p),Z()},get isStandalone(){return i()},set isStandalone(p=!1){i(p),Z()},get children(){return s()},set children(p){s(p),Z()},get type(){return c()},set type(p="button"){c(p),Z()},get class(){return l()},set class(p){l(p),Z()}})}Xt(Bo,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},class:{}},[],[],!0);function or(t,e){Ct(e,!0);let r=H(e,"css",7),n=_n(e,["$$slots","$$events","$$legacy","$$host","css"]);const a=c=>{Vi(()=>{r()&&(c.innerHTML=r())})};var o=Se(),i=te(o);{var s=c=>{var l=Se(),d=te(l);Pa(d,()=>"style",!1,(h,f)=>{_s(h,v=>a?.(v)),Ua(h,()=>({...n}))}),V(c,l)};et(i,c=>{r()&&c(s)})}return V(t,o),St({get css(){return r()},set css(c){r(c),Z()}})}Xt(or,{css:{}},[],[],!0);var gc=Fe('<div class="open-button__title"><!></div>'),bc=Fe('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),_c=Fe('<div class="open-button__text"><!> <!></div>'),kc=Fe('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),yc=Fe('<link rel="stylesheet"/>'),wc=Fe("<!> <!>",1),xc=Fe('<!> <!> <!> <main class="chat-app"><!></main>',1);function Fo(t,e){Ct(e,!0);const r=(y,T)=>{let L=()=>T?.().chatConfig,B=()=>T?.().language;const F=fe(()=>{const{openButtonTitle:se,openButtonDescription:Q}=L().translations[B()];return{openButtonTitle:se,openButtonDescription:Q}}),D=fe(()=>L().fullTheme[C(n)].tokens.svgs);{let se=fe(()=>["open-button",e.buttonClass]);Bo(y,{get href(){return L().buttonHref},get onclick(){return e.onclick},onmouseenter:p,onmouseleave:E,get style(){return e.buttonStyle},get className(){return C(se)},get isStandalone(){return C(l)},children:(Q,Ve)=>{var Me=kc(),Ie=te(Me);{var Ue=kt=>{var Zt=_c(),Zo=Ke(Zt);{var Cc=yt=>{var ot=gc(),sr=Ke(ot);pn(sr,()=>C(F).openButtonTitle),We(ot),V(yt,ot)};et(Zo,yt=>{C(F).openButtonTitle&&yt(Cc)})}var Sc=Xe(Zo,2);{var Tc=yt=>{var ot=bc(),sr=Ke(ot),Ec=Ke(sr);pn(Ec,()=>C(F).openButtonDescription),We(sr),Ya(sr,Pn=>ie(f,Pn),()=>C(f)),We(ot),Ya(ot,Pn=>ie(h,Pn),()=>C(h)),V(yt,ot)};et(Sc,yt=>{C(F).openButtonDescription&&mc==="mouse"&&yt(Tc)})}We(Zt),V(kt,Zt)};et(Ie,kt=>{(C(F).openButtonTitle||C(F).openButtonDescription)&&kt(Ue)})}var _t=Xe(Ie,2),ir=Ke(_t);pn(ir,()=>C(D).avatar),We(_t),V(Q,Me)},$$slots:{default:!0}})}};let n=he("light"),a=H(e,"host",7),o=H(e,"onError",7),i=_n(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);const s=async y=>{const L=await(await fetch(`${y}/chatconfig`)).json();return Wl.parse(L)},c=async({forceTheme:y,lang:T,apiUrl:L})=>{const B=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await s(L),F=ac(B);let D;T?D=Io(T,F.supportedLanguages):D=uc(F.supportedLanguages);const se=Object.keys(F.fullTheme);return ie(n,Vs(se),!0),{chatConfig:F,language:D}};let l=fe(()=>!!a()),d=he(!1),h=he(void 0),f=he(void 0),v=fe(()=>C(f)?.offsetWidth??0),g=fe(()=>C(f)?.offsetHeight??0);function p(){!C(f)||!C(h)||(C(h).style.width=`${C(v)}px`,C(h).style.height=`${C(g)}px`)}function E(){!C(d)&&C(h)&&(C(h).style.width="0",C(h).style.height="0")}let m=fe(()=>c(i).catch(y=>o()(y)));var k=Se();ts(y=>{var T=Se(),L=te(T);{var B=F=>{var D=Se(),se=te(D);Na(se,()=>C(m),null,(Q,Ve)=>{var Me=wc();const Ie=fe(()=>C(Ve).chatConfig.fullTheme[C(n)]);var Ue=te(Me);ms(Ue,17,()=>C(Ie).fontURLs??[],ps,(ir,kt)=>{var Zt=yc();on(()=>bn(Zt,"href",C(kt))),V(ir,Zt)});var _t=Xe(Ue,2);or(_t,{id:"font-css",get css(){return C(Ie).fontCSS}}),V(Q,Me)}),V(F,D)};et(L,F=>{C(l)&&F(B)})}V(y,T)});var b=te(k);return Na(b,()=>C(m),y=>{},(y,T)=>{var L=Se();const B=fe(()=>C(T).chatConfig.fullTheme[C(n)]);var F=te(L);{var D=Q=>{var Ve=xc(),Me=te(Ve);{let kt=fe(()=>Fl(C(B).tokens));or(Me,{id:"theme-css",get css(){return C(kt)}})}var Ie=Xe(Me,2);or(Ie,{id:"app-css",get css(){return Ds}});var Ue=Xe(Ie,2);or(Ue,{id:"custom-css",get css(){return C(B).customCSS}});var _t=Xe(Ue,2),ir=Ke(_t);r(ir,()=>C(T)),We(_t),V(Q,Ve)},se=Q=>{r(Q,()=>C(T))};et(F,Q=>{C(l)?Q(D):Q(se,!1)})}V(y,L)}),V(t,k),St({get host(){return a()},set host(y){a(y),Z()},get onError(){return o()},set onError(y){o(y),Z()}})}Xt(Fo,{host:{},onError:{}},[],[],!0);function Do(t,e){Ct(e,!0);let r=H(e,"onclick",7),n=H(e,"buttonClass",7),a=H(e,"buttonStyle",7),o=H(e,"apiUrl",7),i=H(e,"forceTheme",7),s=H(e,"lang",7),c=fe(()=>({onclick:r(),buttonClass:n(),buttonStyle:a(),apiUrl:o(),forceTheme:i(),lang:s()}));return Ka(t,{silent:!0,body:(d,h=dr)=>{Fo(d,Is({host:e.$$host,get onError(){return h()}},()=>C(c)))},$$slots:{body:!0}}),St({get onclick(){return r()},set onclick(l){r(l),Z()},get buttonClass(){return n()},set buttonClass(l){n(l),Z()},get buttonStyle(){return a()},set buttonStyle(l){a(l),Z()},get apiUrl(){return o()},set apiUrl(l){o(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",Xt(Do,{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)),Dr.LiipGPTButton=Do,Object.defineProperty(Dr,Symbol.toStringTag,{value:"Module"}),Dr}({});
|
|
243
|
+
`,settings:`
|
|
244
|
+
<svg fill="none" viewBox="0 0 24 24">
|
|
245
|
+
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
246
|
+
<path d="M5.08008 12H1.26074"></path>
|
|
247
|
+
<path d="M22.7383 12H10.0059"></path>
|
|
248
|
+
<path d="M13.9941 20.1172H1.26074"></path>
|
|
249
|
+
<path d="M22.7383 20.1172h-3.8184"></path>
|
|
250
|
+
<path d="m13.9941 4.02344 -12.73336 0"></path>
|
|
251
|
+
<path d="M22.7383 4.02344h-3.8184"></path>
|
|
252
|
+
<path d="M5.08 12.002a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
253
|
+
<path d="M13.994 20.119a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
254
|
+
<path d="M13.994 3.885a2.463 2.463 0 1 0 4.926 0 2.463 2.463 0 1 0 -4.926 0"></path>
|
|
255
|
+
</g>
|
|
256
|
+
</svg>
|
|
257
|
+
`,settingsClose:`
|
|
258
|
+
<svg fill="none" viewBox="0 0 24 24">
|
|
259
|
+
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
260
|
+
<path d="m6 18 12-12"/>
|
|
261
|
+
<path d="m18 18-12-12"/>
|
|
262
|
+
</g>
|
|
263
|
+
</svg>
|
|
264
|
+
`,sources:`
|
|
265
|
+
<svg fill="none" viewBox="0 0 24 24" width="24">
|
|
266
|
+
<g fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
267
|
+
<path d="m20.3713 11.9655c.0006 1.0543-.2065 2.0983-.6093 3.0726-.4029.9742-.9936 1.8595-1.7386 2.6054-.7449.7458-1.6294 1.3376-2.603 1.7416s-2.0172.6122-3.0712.6127c-2.1389-.0355-4.17716-.9146-5.67123-2.4459-1.49408-1.5313-2.32301-3.5908-2.30639-5.7304.00172-2.04515.80385-4.00834 2.23469-5.46928s3.37664-2.30352 5.42083-2.34734c.1155-.00487.231-.00696.3478-.00696 1.0491-.00569 2.089.19629 3.0598.5943.9707.39801 1.8531.9842 2.5964 1.72479s1.3327 1.62095 1.7343 2.59038c.4017.96942.6076 2.00871.6059 3.05811z"/>
|
|
268
|
+
<path d="m12.3713 3.9978c-3.99996 4.52568-3.99996 10.4299 0 16"/>
|
|
269
|
+
<path d="m12.3713 3.9978c4 4.52627 4 10.4292 0 16"/>
|
|
270
|
+
<path d="m4.37134 11.9978h15.99996"/>
|
|
271
|
+
</g>
|
|
272
|
+
</svg>
|
|
273
|
+
`,model:`
|
|
274
|
+
<svg fill="none" viewBox="0 0 24 24">
|
|
275
|
+
<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
276
|
+
<path d="m2.63867 10.0059c3.35563-.67463 6.05732-3.40917 6.73292-6.8516.67571 3.44243 3.37671 6.17697 6.73231 6.8516m0 .0039c-3.3556.6746-6.0573 3.4091-6.73291 6.8516-.6756-3.4425-3.37669-6.177-6.73232-6.8516"/>
|
|
277
|
+
<path d="m13.6367 17.3983c2.0766-.4174 3.7486-2.1097 4.1668-4.2401.4181 2.1304 2.0896 3.8227 4.1663 4.2401m0 .0024c-2.0767.4176-3.7487 2.1098-4.1667 4.2402-.4181-2.1304-2.0898-3.8226-4.1664-4.2402"/>
|
|
278
|
+
</g>
|
|
279
|
+
</svg>
|
|
280
|
+
`,checkbox:`
|
|
281
|
+
<svg viewBox="0 0 24 24" fill="none">
|
|
282
|
+
<path d="M18 6L10 16L5 11" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
283
|
+
</svg>
|
|
284
|
+
`}}},Jl=Dr(Ea,{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(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},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)"}}}}),_t={fineGrained:{light:Ea,dark:Jl}},ec=Object.freeze(Object.defineProperty({__proto__:null,theme:_t},Symbol.toStringTag,{value:"Module"})),In=t=>typeof t=="string"?$n[t]:t,tc=t=>{const e=In(t?.colors?.brand||$n.gray),r=In(t?.colors?.highlight||e),n={0:"#ffffff",1e3:"#000000",...In(t?.colors?.grey||$n.gray)};let o="";return t.avatarImageUrl?o=`<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));" />`:o=_t.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:o}}}},rc=t=>{const e=tc(t);return{light:Dr(_t.fineGrained.light,e)}},nc=t=>{const e={};return t.dark&&(e.dark=Dr(_t.fineGrained.dark,t.dark)),t.light&&(e.light=Dr(_t.fineGrained.light,t.light)),!t.dark&&!t.light&&(e.light=t.light),e},Zt={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",noResultsFound:"Keine Ergebnisse gefunden",hideSettings:"Einstellungen ausblenden",showSettings:"Einstellungen",chooseAtLeastOneOption:"Wählen Sie mindestens eine Option",selectAll:"Alle auswählen",selectNone:"Alle abwählen",selectors:{model:{name:"Modell",intro:"Modell auswählen",placeholder:"Modell",values:{"gpt-4o-mini":"gpt-4o-mini long title","gpt-4o":"gpt-4o"}},sources:{name:"Quelle",namePlural:"Quellen",intro:"Quellen auswählen",placeholder:"Quelle",values:{docs:"Dokumente",web:"Web",files:"Dateien"}}}},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",noResultsFound:"No results found",hideSettings:"Hide settings",showSettings:"Show settings",chooseAtLeastOneOption:"Select at least one option",selectAll:"Select all",selectNone:"Deselect all",selectors:{model:{name:"Model",intro:"Select model",placeholder:"Model",values:{"gpt-4o-mini":"gpt-4o-mini","gpt-4o":"gpt-4o"}},sources:{name:"Source",namePlural:"Sources",intro:"Select sources",placeholder:"Source",values:{docs:"Documents",web:"Web",files:"Files"}}}},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",noResultsFound:"Nessun risultato trovato",hideSettings:"Nascondi impostazioni",showSettings:"Impostazioni",chooseAtLeastOneOption:"Seleziona almeno una opzione",selectAll:"Seleziona tutto",selectNone:"Deseleziona tutto",selectors:{model:{name:"Modello",intro:"Seleziona modello",placeholder:"Modello",values:{"gpt-4o-mini":"gpt-4o-mini","gpt-4o":"gpt-4o"}},sources:{name:"Fonte",namePlural:"Fonti",intro:"Seleziona fonti",placeholder:"Fonte",values:{docs:"Documenti",web:"Web",files:"File"}}}},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",noResultsFound:"Aucun résultat trouvé",hideSettings:"Masquer les paramètres",showSettings:"Paramètres",chooseAtLeastOneOption:"Veuillez choisir au moins une option",selectAll:"Tout sélectionner",selectNone:"Tout désélectionner",selectors:{model:{name:"Modèle",intro:"Sélectionner le modèle",placeholder:"Modèle",values:{"gpt-4o-mini":"gpt-4o-mini","gpt-4o":"gpt-4o"}},sources:{name:"Source",namePlural:"Sources",intro:"Sélectionner les sources",placeholder:"Source",values:{docs:"Documents",web:"Web",files:"Fichiers"}}}}},oc=Object.freeze(Object.defineProperty({__proto__:null,translations:Zt},Symbol.toStringTag,{value:"Module"})),ac=t=>{t=t??Zt;const e={};return t.de&&(e.de=or(Zt.de,t.de)),t.en&&(e.en=or(Zt.en,t.en)),t.fr&&(e.fr=or(Zt.fr,t.fr)),t.it&&(e.it=or(Zt.it,t.it)),e},ic=t=>{let e;t.theme?.fineGrained?e=nc(t.theme?.fineGrained):e=rc(t?.theme??{});const r=ac(t?.translations),n={...t,showPredefinedQuestions:t.showPredefinedQuestions??!0,showOverallFeedbackButton:t.showOverallFeedbackButton??!1,showCloseChatButton:t.showCloseChatButton??!1,showContextInfo:t.showContextInfo??!1,showContextMenu:t.showContextMenu??!1,showReferencesByDefault:t.showReferencesByDefault??!1,showTextFeedback:t.showTextFeedback??!0,showExpandedSelectors:t.showExpandedSelectors??!1,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,sendReferrer:t.sendReferrer??"all",selectorsConfig:t.selectorsConfig??[]};return t.classification&&(n.classification=t.classification),t.menu&&(n.menu=t.menu),n},Nn=structuredClone(_t.fineGrained.light);Nn.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 Oa=structuredClone(_t.fineGrained.dark);Oa.tokens.colors=Nn.tokens.colors;const sc=Object.freeze(Object.defineProperty({__proto__:null,theme:{fineGrained:{light:Nn,dark:Oa}}},Symbol.toStringTag,{value:"Module"})),Aa=t=>t.split("/").pop().split(".")[0],lc=Object.assign({"./default/fallback-dev.theme.ts":sc,"./default/fallback.theme.ts":ec}),Ma=new Map;Object.entries(lc).forEach(([t,e])=>{const{error:r,data:n}=ya.safeParse(e?.theme);if(r){console.error(`Invalid theme in ${t}:`,r);return}Ma.set(Aa(t),n)}),Array.from(Ma.keys());const cc=Object.assign({"./default/fallback.translations.ts":oc}),$a=new Map;Object.entries(cc).forEach(([t,e])=>{const{error:r,data:n}=xa.safeParse(e?.translations);if(r){console.error(`Invalid translations in ${t}:`,r);return}$a.set(Aa(t),n)}),Array.from($a.keys());const uc="en",Ra=(t,e)=>e.includes(t),ja=(t,e)=>{if(Ra(t,e))return t;const r=dc();return Ra(r,e)?r:uc},dc=()=>navigator.language.split("-")[0],hc=t=>ja(localStorage.getItem("liipgpt:selectedLanguage"),t);var we=typeof window<"u"?window:{screen:{},navigator:{}},Vt=(we.matchMedia||function(){return{matches:!1}}).bind(we),fc={get passive(){return!0}},Ia=function(){};we.addEventListener&&we.addEventListener("p",Ia,fc),we.removeEventListener&&we.removeEventListener("p",Ia,!1);var Ln="ontouchstart"in we,pc="TouchEvent"in we,vc=Ln||pc&&Vt("(any-pointer: coarse)").matches,Na=(we.navigator.maxTouchPoints||0)>0||vc,La=we.navigator.userAgent||"",mc=Vt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(La)&&Math.min(we.screen.width||0,we.screen.height||0)>=768,Pa=(Vt("(pointer: coarse)").matches||!Vt("(pointer: fine)").matches&&Ln)&&!/Windows.*Firefox/.test(La),gc=Vt("(any-pointer: fine)").matches||Vt("(any-hover: hover)").matches||mc||!Ln,za=Na&&(gc||!Pa)?"hybrid":Na?"touchOnly":"mouseOnly",bc=za==="mouseOnly"?"mouse":za==="touchOnly"||Pa?"touch":"mouse";function Ba(t,e){St(e,!0);let r=q(e,"href",7),n=q(e,"target",7),o=q(e,"onclick",7),a=q(e,"className",23,()=>[]),i=q(e,"isStandalone",7,!1),s=q(e,"children",7),c=q(e,"type",7,"button"),l=q(e,"class",7),d=_n(e,["$$slots","$$events","$$legacy","$$host","href","target","onclick","className","isStandalone","children","type","class"]);const f=fe(()=>r()?"a":"button"),h=fe(()=>[...Array.isArray(a())?a():a()?[a()]:[],...l()?[l()]:[]]);var v=Se(),g=te(v);return zo(g,()=>C(f),!1,(p,E)=>{Wo(p,b=>({...d,onclick:r()?void 0:o(),type:r()?void 0:c(),href:r(),role:r()?"link":"button",target:r()?n():void 0,class:C(h),[jt]:b}),[()=>({"open-button--standalone":i()})]);var m=Se(),k=te(m);No(k,s),V(E,m)}),V(t,v),Tt({get href(){return r()},set href(p){r(p),Z()},get target(){return n()},set target(p){n(p),Z()},get onclick(){return o()},set onclick(p){o(p),Z()},get className(){return a()},set className(p=[]){a(p),Z()},get isStandalone(){return i()},set isStandalone(p=!1){i(p),Z()},get children(){return s()},set children(p){s(p),Z()},get type(){return c()},set type(p="button"){c(p),Z()},get class(){return l()},set class(p){l(p),Z()}})}er(Ba,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},class:{}},[],[],!0);function ar(t,e){St(e,!0);let r=q(e,"css",7),n=_n(e,["$$slots","$$events","$$legacy","$$host","css"]);const o=c=>{Vi(()=>{r()&&(c.innerHTML=r())})};var a=Se(),i=te(a);{var s=c=>{var l=Se(),d=te(l);zo(d,()=>"style",!1,(f,h)=>{_s(f,v=>o?.(v)),Wo(f,()=>({...n}))}),V(c,l)};tt(i,c=>{r()&&c(s)})}return V(t,a),Tt({get css(){return r()},set css(c){r(c),Z()}})}er(ar,{css:{}},[],[],!0);var _c=Fe('<div class="open-button__title"><!></div>'),kc=Fe('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),yc=Fe('<div class="open-button__text"><!> <!></div>'),wc=Fe('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),xc=Fe('<link rel="stylesheet"/>'),Cc=Fe("<!> <!>",1),Sc=Fe('<!> <!> <!> <main class="chat-app"><!></main>',1);function Da(t,e){St(e,!0);const r=(y,T)=>{let P=()=>T?.().chatConfig,B=()=>T?.().language;const D=fe(()=>{const{openButtonTitle:le,openButtonDescription:Q}=P().translations[B()];return{openButtonTitle:le,openButtonDescription:Q}}),F=fe(()=>P().fullTheme[C(n)].tokens.svgs);{let le=fe(()=>["open-button",e.buttonClass]);Ba(y,{get href(){return P().buttonHref},get onclick(){return e.onclick},onmouseenter:p,onmouseleave:E,get style(){return e.buttonStyle},get className(){return C(le)},get isStandalone(){return C(l)},children:(Q,Ue)=>{var je=wc(),Ie=te(je);{var We=yt=>{var Ut=yc(),Za=Xe(Ut);{var Tc=wt=>{var at=_c(),sr=Xe(at);pn(sr,()=>C(D).openButtonTitle),qe(at),V(wt,at)};tt(Za,wt=>{C(D).openButtonTitle&&wt(Tc)})}var Ec=Je(Za,2);{var Oc=wt=>{var at=kc(),sr=Xe(at),Ac=Xe(sr);pn(Ac,()=>C(D).openButtonDescription),qe(sr),Qo(sr,Pn=>ie(h,Pn),()=>C(h)),qe(at),Qo(at,Pn=>ie(f,Pn),()=>C(f)),V(wt,at)};tt(Ec,wt=>{C(D).openButtonDescription&&bc==="mouse"&&wt(Oc)})}qe(Ut),V(yt,Ut)};tt(Ie,yt=>{(C(D).openButtonTitle||C(D).openButtonDescription)&&yt(We)})}var kt=Je(Ie,2),ir=Xe(kt);pn(ir,()=>C(F).avatar),qe(kt),V(Q,je)},$$slots:{default:!0}})}};let n=pe("light"),o=q(e,"host",7),a=q(e,"onError",7),i=_n(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);const s=async y=>{const P=await(await fetch(`${y}/chatconfig`)).json();return Gl.parse(P)},c=async({forceTheme:y,lang:T,apiUrl:P})=>{const B=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await s(P),D=ic(B);let F;T?F=ja(T,D.supportedLanguages):F=hc(D.supportedLanguages);const le=Object.keys(D.fullTheme);return ie(n,Vs(le),!0),{chatConfig:D,language:F}};let l=fe(()=>!!o()),d=pe(!1),f=pe(void 0),h=pe(void 0),v=fe(()=>C(h)?.offsetWidth??0),g=fe(()=>C(h)?.offsetHeight??0);function p(){!C(h)||!C(f)||(C(f).style.width=`${C(v)}px`,C(f).style.height=`${C(g)}px`)}function E(){!C(d)&&C(f)&&(C(f).style.width="0",C(f).style.height="0")}let m=fe(()=>c(i).catch(y=>a()(y)));var k=Se();ts(y=>{var T=Se(),P=te(T);{var B=D=>{var F=Se(),le=te(F);Lo(le,()=>C(m),null,(Q,Ue)=>{var je=Cc();const Ie=fe(()=>C(Ue).chatConfig.fullTheme[C(n)]);var We=te(je);ms(We,17,()=>C(Ie).fontURLs??[],ps,(ir,yt)=>{var Ut=xc();an(()=>bn(Ut,"href",C(yt))),V(ir,Ut)});var kt=Je(We,2);ar(kt,{id:"font-css",get css(){return C(Ie).fontCSS}}),V(Q,je)}),V(D,F)};tt(P,D=>{C(l)&&D(B)})}V(y,T)});var b=te(k);return Lo(b,()=>C(m),y=>{},(y,T)=>{var P=Se();const B=fe(()=>C(T).chatConfig.fullTheme[C(n)]);var D=te(P);{var F=Q=>{var Ue=Sc(),je=te(Ue);{let yt=fe(()=>Dl(C(B).tokens));ar(je,{id:"theme-css",get css(){return C(yt)}})}var Ie=Je(je,2);ar(Ie,{id:"app-css",get css(){return Fs}});var We=Je(Ie,2);ar(We,{id:"custom-css",get css(){return C(B).customCSS}});var kt=Je(We,2),ir=Xe(kt);r(ir,()=>C(T)),qe(kt),V(Q,Ue)},le=Q=>{r(Q,()=>C(T))};tt(D,Q=>{C(l)?Q(F):Q(le,!1)})}V(y,P)}),V(t,k),Tt({get host(){return o()},set host(y){o(y),Z()},get onError(){return a()},set onError(y){a(y),Z()}})}er(Da,{host:{},onError:{}},[],[],!0);function Fa(t,e){St(e,!0);let r=q(e,"onclick",7),n=q(e,"buttonClass",7),o=q(e,"buttonStyle",7),a=q(e,"apiUrl",7),i=q(e,"forceTheme",7),s=q(e,"lang",7),c=fe(()=>({onclick:r(),buttonClass:n(),buttonStyle:o(),apiUrl:a(),forceTheme:i(),lang:s()}));return Xo(t,{silent:!0,body:(d,f=dr)=>{Da(d,js({host:e.$$host,get onError(){return f()}},()=>C(c)))},$$slots:{body:!0}}),Tt({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",er(Fa,{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=Fa,Object.defineProperty(Fr,Symbol.toStringTag,{value:"Module"}),Fr}({});
|