@liip/liipgpt 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +186 -174
- package/chat/liipgpt-chat.iife.js +222 -210
- package/config/index.cjs +36 -6
- package/config/index.d.ts +3024 -538
- package/config/index.js +36 -6
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/BnCAkRMw.js +1 -0
- package/configurator/_app/immutable/chunks/C1CVfDcA.js +209 -0
- package/configurator/_app/immutable/chunks/C7ucs8kz.js +1 -0
- package/configurator/_app/immutable/chunks/CfQtRUjK.js +1 -0
- package/configurator/_app/immutable/chunks/Cgm2UlUC.js +1 -0
- package/configurator/_app/immutable/chunks/DNNNN9KC.js +3 -0
- package/configurator/_app/immutable/chunks/DuQTZe3l.js +1 -0
- package/configurator/_app/immutable/chunks/DvEdoyY3.js +1 -0
- package/configurator/_app/immutable/chunks/{BzVylwd7.js → DwsPRhVz.js} +1 -1
- package/configurator/_app/immutable/chunks/PdZf4Jij.js +1 -0
- package/configurator/_app/immutable/chunks/TMezqz9A.js +1 -0
- package/configurator/_app/immutable/chunks/dZVw-Q0d.js +228 -0
- package/configurator/_app/immutable/chunks/lMON6K8G.js +15 -0
- package/configurator/_app/immutable/entry/app.CdFUjOEM.js +2 -0
- package/configurator/_app/immutable/entry/start.CnM-eUb6.js +1 -0
- package/configurator/_app/immutable/nodes/{0.C1WA-Sd0.js → 0.-WsI4DHZ.js} +1 -1
- package/configurator/_app/immutable/nodes/1.CbwRpfkr.js +1 -0
- package/configurator/_app/immutable/nodes/2.DbP2H5Hu.js +30 -0
- package/configurator/_app/immutable/nodes/3.CrU_53hy.js +897 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +10 -10
- package/configurator/sidebar.html +10 -10
- package/index.cjs +1329 -864
- package/index.d.ts +4770 -726
- package/index.js +1329 -864
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BiXZbQqO.js +0 -1
- package/configurator/_app/immutable/chunks/BmumJykv.js +0 -3
- package/configurator/_app/immutable/chunks/BynrE7QB.js +0 -4
- package/configurator/_app/immutable/chunks/CXbcLk5j.js +0 -1
- package/configurator/_app/immutable/chunks/CaDmIJkP.js +0 -28
- package/configurator/_app/immutable/chunks/D5wkZK_2.js +0 -1
- package/configurator/_app/immutable/chunks/DCtHJYgu.js +0 -1
- package/configurator/_app/immutable/chunks/DH3truD-.js +0 -364
- package/configurator/_app/immutable/chunks/DTGU2mqM.js +0 -1
- package/configurator/_app/immutable/chunks/DUt8zN7X.js +0 -1
- package/configurator/_app/immutable/chunks/DkXqbGhE.js +0 -58
- package/configurator/_app/immutable/chunks/Dq6jck_i.js +0 -1
- package/configurator/_app/immutable/chunks/DqybDqwy.js +0 -15
- package/configurator/_app/immutable/entry/app.0vDWmuRN.js +0 -2
- package/configurator/_app/immutable/entry/start.DR9kqzeI.js +0 -1
- package/configurator/_app/immutable/nodes/1.D_clQXr4.js +0 -1
- package/configurator/_app/immutable/nodes/2.DVQmbfVp.js +0 -1
- package/configurator/_app/immutable/nodes/3.CVRgUIw6.js +0 -897
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as S,N as K,O as Y,L as y,P as B,F as d,Q as M,R as $,S as j,T as x,U as Z,V as q,W as z,X as C,Y as F,Z as R,_ as E,$ as D,a0 as p,a1 as g,a2 as T,a3 as w,a4 as G,a5 as Q,a6 as V,o as W,n as X,a7 as H,a8 as J}from"./DUt8zN7X.js";let v=!1,h=Symbol();function ie(e,r,s){const n=s[r]??={store:null,source:K(void 0),unsubscribe:S};if(n.store!==e&&!(h in s))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=S;else{var u=!0;n.unsubscribe=Y(e,t=>{u?n.source.v=t:y(n.source,t)}),u=!1}return e&&h in s?B(e):d(n.source)}function te(e,r,s){let n=s[r];return n&&n.store!==e&&(n.unsubscribe(),n.unsubscribe=S),e}function fe(){const e={};function r(){M(()=>{for(var s in e)e[s].unsubscribe();$(e,h,{enumerable:!1,value:!0})})}return[e,r]}function k(e){var r=v;try{return v=!1,[e(),v]}finally{v=r}}const ee={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function le(e,r,s){return new Proxy({props:e,exclude:r},ee)}const re={get(e,r){if(!e.exclude.includes(r))return d(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,s){if(!(r in e.special)){var n=x;try{E(e.parent_effect),e.special[r]=se({get[r](){return e.props[r]}},r,D)}finally{E(n)}}return e.special[r](s),R(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),R(e.version)),!0},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ae(e,r){return new Proxy({props:e,exclude:r,special:{},version:F(0),parent_effect:x},re)}const ne={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let u=e.props[n];p(u)&&(u=u());const t=w(u,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=w(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===g||r===T)return!1;for(let s of e.props)if(p(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(p(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function oe(...e){return new Proxy({props:e},ne)}function se(e,r,s,n){var u=!X||(s&H)!==0,t=(s&V)!==0,A=(s&J)!==0,f=n,b=!0,O=()=>(b&&(b=!1,f=A?W(n):n),f),a;if(t){var L=g in e||T in e;a=w(e,r)?.set??(L&&r in e?i=>e[r]=i:void 0)}var o,m=!1;t?[o,m]=k(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=O(),a&&(u&&G(),a(o)));var l;if(u?l=()=>{var i=e[r];return i===void 0?O():(b=!0,i)}:l=()=>{var i=e[r];return i!==void 0&&(f=void 0),i===void 0?f:i},u&&(s&D)===0)return l;if(a){var N=e.$$legacy;return function(i,_){return arguments.length>0?((!u||!_||N||m)&&a(_?l():i),i):l()}}var P=!1,c=((s&Q)!==0?q:C)(()=>(P=!1,l()));t&&d(c);var U=x;return function(i,_){if(arguments.length>0){const I=_?d(c):u&&t?z(i):i;return y(c,I),P=!0,f!==void 0&&(f=I),i}return j&&P||(U.f&Z)!==0?c.v:d(c)}}export{ie as a,fe as b,te as c,ae as l,se as p,le as r,oe as s};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{o as De,s as mt}from"./D5wkZK_2.js";import{bE as ke,I as T,F as x,L as P}from"./DUt8zN7X.js";class le{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function _t(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function wt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function me({href:e}){return e.split("#")[0]}function vt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function bt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function At(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Et=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Ie(e)),Et(e,t));const G=new Map;function kt(e,t){const n=Ie(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&G.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=At(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function St(e,t,n){if(G.size>0){const r=Ie(e,n),a=G.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);G.delete(r)}}return window.fetch(t,n)}function Ie(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${bt(...a)}"]`}return r}const Rt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function It(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Lt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const d=Rt.exec(c),[,h,u,l,p]=d;return t.push({name:l,matcher:p,optional:!!h,rest:!!u,chained:u?f===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return!/^\([^)]+\)$/.test(e)}function Lt(e){return e.slice(1).split("/").filter(Ut)}function Tt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=a[o-i];if(c.chained&&c.rest&&i&&(f=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](f)){r[c.name]=f;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function xt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,f,d]])=>{const{pattern:h,params:u}=It(o),l={id:o,exec:p=>{const _=h.exec(p);if(_)return Tt(_,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...f||[]].map(i),leaf:s(c)};return l.errors.length=l.layouts.length=Math.max(l.errors.length,l.layouts.length),l});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Ye(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Fe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_8gidgf?.base??"/configurator",Pt=globalThis.__sveltekit_8gidgf?.assets??U,Ct="1753373509230",Je="sveltekit:snapshot",ze="sveltekit:scroll",Xe="sveltekit:states",Ot="sveltekit:pageurl",B="sveltekit:history",Y="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Z=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function fe(){return{x:pageXOffset,y:pageYOffset}}function F(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Qe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Z&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function te(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=F(o,"preload-code")),a===null&&(a=F(o,"preload-data")),t===null&&(t=F(o,"keepfocus")),n===null&&(n=F(o,"noscroll")),s===null&&(s=F(o,"reload")),i===null&&(i=F(o,"replacestate")),o=Ze(o);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=ke(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const et={v:()=>{}};function Nt(){const{set:e,subscribe:t}=ke(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Pt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Ct;return i&&(e(!0),et.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Z||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function vn(e){}function Me(e){const t=$t(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function $t(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=jt.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Dt=-1,Ft=-2,Bt=-3,Vt=-4,Mt=-5,qt=-6;function Gt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Dt)return;if(s===Bt)return NaN;if(s===Vt)return 1/0;if(s===Mt)return-1/0;if(s===qt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],f=t?.[c];if(f)return r[s]=f(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let l=1;l<o.length;l+=1)d.add(a(o[l]));break;case"Map":const h=new Map;r[s]=h;for(let l=1;l<o.length;l+=2)h.set(a(o[l]),a(o[l+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let l=1;l<o.length;l+=2)u[o[l]]=a(o[l+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const l=globalThis[c],p=o[1],_=Me(p),m=new l(_);r[s]=m;break}case"ArrayBuffer":{const l=o[1],p=Me(l);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let f=0;f<o.length;f+=1){const d=o[f];d!==Ft&&(c[f]=a(d))}}else{const c={};r[s]=c;for(const f in o){const d=o[f];c[f]=a(d)}}return r[s]}return a(0)}const tt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...tt];const Ht=new Set([...tt]);[...Ht];function Kt(e){return e.filter(t=>t!=null)}const Wt="x-sveltekit-invalidated",Yt="x-sveltekit-trailing-slash";function ne(e){return e instanceof le||e instanceof Re?e.status:500}function Jt(e){return e instanceof Re?e.text:"Internal Error"}let k,J,ye;const zt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());zt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(k=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},et.v=()=>ye.current=!0);function Xt(e){Object.assign(k,e)}const Zt="/__data.json",Qt=".html__data.json";function en(e){return e.endsWith(".html")?e.replace(/\.html$/,Qt):e.replace(/\/$/,"")+Zt}const{tick:tn}=mt,nn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Ye(ze)??{},z=Ye(Je)??{},N={url:Ve({}),page:Ve({}),navigating:ke(null),updated:Nt()};function Le(e){D[e]=fe()}function rn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function M(e){return location.href=e.href,new Promise(()=>{})}async function nt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function qe(){}let Te,be,re,C,Ae,v;const ae=[],oe=[];let O=null;const ee=new Map,rt=new Set,an=new Set,H=new Set;let w={branch:[],error:null,url:null},xe=!1,se=!1,Ge=!0,X=!1,q=!1,at=!1,Pe=!1,ot,A,I,$;const K=new Set;async function kn(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=xt(e),C=document.documentElement,Ae=t,be=e.nodes[0],re=e.nodes[1],be(),re(),A=history.state?.[B],I=history.state?.[Y],A||(A=I=Date.now(),history.replaceState({...history.state,[B]:A,[Y]:I},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await gn(Ae,n)):(await W({type:"enter",url:Ue(v.hash?_n(new URL(location.href)):location.href),replace_state:!0}),a()),pn()}function on(){ae.length=0,Pe=!1}function st(e){oe.some(t=>t?.snapshot)&&(z[e]=oe.map(t=>t?.snapshot?.capture()))}function it(e){z[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function He(){Le(A),Fe(ze,D),st(I),Fe(Je,z)}async function Ce(e,t,n,r){return W({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Pe=!0),t.invalidate&&t.invalidate.forEach(hn)}})}async function sn(e){if(e.id!==O?.id){const t={};K.add(t),O={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(K.delete(t),n.type==="loaded"&&n.state.error&&(O=null),n))}}return O.promise}async function we(e){const t=(await he(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ct(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),ot=new v.root({target:t,props:{...e.props,stores:N,components:oe},hydrate:n,sync:!1}),it(I),n){const a={from:null,to:{params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(s=>s(a))}se=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const l of n)l?.slash!==void 0&&(o=l.slash);e.pathname=_t(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Kt(n).map(l=>l.node.component),page:$e(k)}};i!==void 0&&(c.props.form=i);let f={},d=!k,h=0;for(let l=0;l<Math.max(n.length,w.branch.length);l+=1){const p=n[l],_=w.branch[l];p?.data!==_?.data&&(d=!0),p&&(f={...f,...p.data},d&&(c.props[`data_${h}`]=f),h+=1)}return(!w.url||e.href!==w.url.href||w.error!==a||i!==void 0&&i!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?f:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let d=function(...u){for(const l of u){const{href:p}=new URL(l,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,l)=>(o&&(c.route=!0),u[l])}),params:new Proxy(r,{get:(u,l)=>(o&&c.params.add(l),u[l])}),data:s?.data??null,url:vt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,l){u instanceof Request&&(l={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...l});const{resolved:p,promise:_}=lt(u,l,n);return o&&d(p.href),_},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:s,universal:f.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:f.universal?.trailingSlash??s?.slash}}function lt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=se?St(r,a.href,t):kt(r,t);return{resolved:a,promise:s}}function Ke(e,t,n,r,a,s){if(Pe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(ae.some(o=>o(new URL(i))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function cn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function We({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:$e(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return K.delete(O.token),O.promise;const{errors:i,layouts:o,leaf:c}=a,f=[...o,c];i.forEach(g=>g?.().catch(()=>{})),f.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=w.url?e!==ce(w.url):!1,u=w.route?a.id!==w.route.id:!1,l=cn(w.url,n);let p=!1;const _=f.map((g,y)=>{const b=w.branch[y],E=!!g?.[0]&&(b?.loader!==g[1]||Ke(p,u,h,l,b.server?.uses,r));return E&&(p=!0),E});if(_.some(Boolean)){try{d=await ht(n,_)}catch(g){const y=await V(g,{url:n,params:r,route:{id:e}});return K.has(s)?We({error:y,url:n,params:r,route:a}):de({status:ne(g),error:y,url:n,route:a})}if(d.type==="redirect")return d}const m=d?.nodes;let R=!1;const S=f.map(async(g,y)=>{if(!g)return;const b=w.branch[y],E=m?.[y];if((!E||E.type==="skip")&&g[1]===b?.loader&&!Ke(R,u,h,l,b.universal?.uses,r))return b;if(R=!0,E?.type==="error")throw E;return Oe({loader:g[1],url:n,params:r,route:a,parent:async()=>{const pe={};for(let ge=0;ge<y;ge+=1)Object.assign(pe,(await S[ge])?.data);return pe},server_data_node:Ne(E===void 0&&g[0]?{type:"skip"}:E??null,g[0]?b?.server:void 0)})});for(const g of S)g.catch(()=>{});const L=[];for(let g=0;g<f.length;g+=1)if(f[g])try{L.push(await S[g])}catch(y){if(y instanceof Se)return{type:"redirect",location:y.location};if(K.has(s))return We({error:await V(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=ne(y),E;if(m?.includes(y))b=y.status??b,E=y.error;else if(y instanceof le)E=y.body;else{if(await N.updated.check())return await nt(),await M(n);E=await V(y,{params:r,url:n,route:{id:a.id}})}const Q=await ln(g,L,i);return Q?ie({url:n,params:r,branch:L.slice(0,Q.idx).concat(Q.node),status:b,error:E,route:a}):await dt(n,{id:a.id},E,b)}else L.push(void 0);return ie({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function ln(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function de({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await ht(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Z||n.pathname!==location.pathname||xe)&&await M(n)}try{const o=await Oe({loader:be,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ne(s)}),c={node:await re(),loader:re,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return Ce(new URL(o.location,location.href),{},0);throw o}}async function fn(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>lt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function he(e,t){if(e&&!ue(e,U,v.hash)){const n=await fn(e);if(!n)return;const r=un(n);for(const a of Te){const s=a.exec(r);if(s)return{id:ce(e),invalidating:t,route:a,params:wt(s),url:e}}}}function un(e){return yt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ut({url:e,type:t,intent:n,delta:r}){let a=!1;const s=je(w,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return X||rt.forEach(o=>o(i)),a?null:s}async function W({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:f=qe,block:d=qe}){const h=$;$=c;const u=await he(t,!1),l=e==="enter"?je(w,u,t,e):ut({url:t,type:e,delta:n?.delta,intent:u});if(!l){d(),$===c&&($=h);return}const p=A,_=I;f(),X=!0,se&&l.navigation.type!=="enter"&&N.navigating.set(J.current=l.navigation);let m=u&&await ft(u);if(!m){if(ue(t,U,v.hash))return await M(t);m=await dt(t,{id:null},await V(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return l.reject(new Error("navigation aborted")),!1;if(m.type==="redirect")if(o>=20)m=await de({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Ce(new URL(m.location,t).href,{},o+1,c),!1;else m.props.page.status>=400&&await N.updated.check()&&(await nt(),await M(t));if(on(),Le(p),st(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,y={[B]:A+=g,[Y]:I+=g,[Xe]:i};(s?history.replaceState:history.pushState).call(history,y,"",t),s||rn(A,I)}if(O=null,m.props.page.state=i,se){w=m.state,m.props.page&&(m.props.page.url=t);const g=(await Promise.all(Array.from(an,y=>y(l.navigation)))).filter(y=>typeof y=="function");if(g.length>0){let y=function(){g.forEach(b=>{H.delete(b)})};g.push(y),g.forEach(b=>{H.add(b)})}ot.$set(m.props),Xt(m.props.page),at=!0}else ct(m,Ae,!1);const{activeElement:R}=document;await tn();const S=n?n.scroll:a?fe():null;if(Ge){const g=t.hash&&document.getElementById(gt(t));S?scrollTo(S.x,S.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&mn(t),Ge=!0,m.props.page&&Object.assign(k,m.props.page),X=!1,e==="popstate"&&it(I),l.fulfil(void 0),H.forEach(g=>g(l.navigation)),N.navigating.set(J.current=null)}async function dt(e,t,n,r){return e.origin===Z&&e.pathname===location.pathname&&!xe?await de({status:r,error:n,url:e,route:t}):await M(e)}function dn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const f=Qe(o,C),d=f===t&&c>=n;if(!f||d)return;const{url:h,external:u,download:l}=ve(f,U,v.hash);if(u||l)return;const p=te(f),_=h&&ce(w.url)===ce(h);if(!(p.reload||_))if(c<=p.preload_data){t=f,n=j.tap;const m=await he(h,!1);if(!m)return;sn(m)}else c<=p.preload_code&&(t=f,n=c,we(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:f,download:d}=ve(o,U,v.hash);if(f||d)continue;const h=te(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&we(c))}}H.add(i),i()}function V(e,t){if(e instanceof le)return e.body;const n=ne(e),r=Jt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Sn(e,t={}){return e=new URL(Ue(e)),e.origin!==Z?Promise.reject(new Error("goto: invalid URL")):Ce(e,t,0)}function hn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function pn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(He(),!X){const r=je(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};rt.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&He()}),navigator.connection?.saveData||dn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Qe(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=ve(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[f,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=f===me(location);if(a||o.reload&&(!h||!d)){ut({url:r,type:"link"})?X=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=w.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const l=n.ownerDocument.getElementById(decodeURIComponent(d));l&&(l.scrollIntoView(),l.focus())}return}if(q=!0,Le(A),e(r),!o.replace_state)return;q=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await W({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(i,U,!1))return;const o=t.target,c=te(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o),d=r?.getAttribute("name");d&&f.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(f).toString(),W({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[B]){const n=t.state[B];if($={},n===A)return;const r=D[n],a=t.state[Xe]??{},s=new URL(t.state[Ot]??location.href),i=t.state[Y],o=w.url?me(location)===me(w.url):!1;if(i===I&&(at||o)){a!==k.state&&(k.state=a),e(s),D[A]=fe(),r&&scrollTo(r.x,r.y),A=n;return}const f=n-A;await W({type:"popstate",url:s,popped:{state:a,scroll:r,delta:f},accept:()=>{A=n,I=i},block:()=>{history.go(-f)},nav_token:$})}else if(!q){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{q&&(q=!1,history.replaceState({...history.state,[B]:++A,[Y]:I},"",location.href))});for(const t of document.querySelectorAll("link"))nn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(J.current=null)});function e(t){w.url=k.url=t,N.page.set($e(k)),N.page.notify()}}async function gn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){xe=!0;const f=new URL(location.href);let d;({params:a={},route:s={id:null}}=await he(f,!1)||{}),d=Te.find(({id:l})=>l===s.id);let h,u=!0;try{const l=r.map(async(_,m)=>{const R=o[m];return R?.uses&&(R.uses=pt(R.uses)),Oe({loader:v.nodes[_],url:f,params:a,route:s,parent:async()=>{const S={};for(let L=0;L<m;L+=1)Object.assign(S,(await l[L]).data);return S},server_data_node:Ne(R)})}),p=await Promise.all(l);if(d){const _=d.layouts;for(let m=0;m<_.length;m++)_[m]||p.splice(m,0,void 0)}h=ie({url:f,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(l){if(l instanceof Se){await M(new URL(l.location,location.href));return}h=await de({status:ne(l),error:await V(l,{url:f,params:a,route:s}),url:f,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),ct(h,e,u)}async function ht(e,t){const n=new URL(e);n.pathname=en(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Yt,"1"),n.searchParams.append(Wt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new le(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function f(h){return Gt(h,{...v.decoders,Promise:u=>new Promise((l,p)=>{i.set(u,{fulfil:l,reject:p})})})}let d="";for(;;){const{done:h,value:u}=await o.read();if(h&&!d)break;for(d+=!u&&d?`
|
|
2
|
-
`:c.decode(u,{stream:!0});;){const l=d.indexOf(`
|
|
3
|
-
`);if(l===-1)break;const p=JSON.parse(d.slice(0,l));if(d=d.slice(l+1),p.type==="redirect")return s(p);if(p.type==="data")p.nodes?.forEach(_=>{_?.type==="data"&&(_.uses=pt(_.uses),_.data=f(_.data))}),s(p);else if(p.type==="chunk"){const{id:_,data:m,error:R}=p,S=i.get(_);i.delete(_),R?S.reject(f(R)):S.fulfil(f(m))}}}})}function pt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function mn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=fe();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,r){let a,s;const i=new Promise((c,f)=>{a=c,s=f});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function $e(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function _n(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{kn as a,Sn as g,vn as l,k as p,N as s};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{I as V,aN as Ze,Y as jt,F as i,L as k,aO as Te,G as B,p as Z,H as j,a as H,b as _,d as J,v,J as oe,f as L,g as C,E as de,r as E,c as $,aP as pe,u as ae,aQ as Yt,o as lt,X as ct,s as A,t as se,e as fe,aD as le,aL as Qt,M as ut,aR as Ue,aE as Xt,K as Gt}from"./DUt8zN7X.js";import{i as z,c as Se,b as Ee}from"./Dq6jck_i.js";import{G as dt,H as _e,J as Zt,K as Jt,L as $t,O as I,Q as ce,T as ye,U as ge,V as q,W as Fe,X as er,Y as Ye,Z as Oe,_ as tr,$ as rr,a0 as nr,a1 as ft,n as F,t as ue,a2 as ht,S as Ke,a3 as Ie,v as or,s as he,a4 as Je,h as Ae,z as sr,a as vt,e as xe,C as pt,b as ke,a5 as ir,M as ar,i as De,E as ze,a6 as lr,a7 as cr,a8 as gt,a9 as mt,aa as bt,ab as ur,P as dr,d as Qe,c as fr,I as Pe,o as yt,ac as hr,p as _t,ad as $e,ae as vr,w as pr,af as gr,N as mr,ag as br,r as yr,u as _r,f as wr}from"./DH3truD-.js";import{p,r as we,s as Ce}from"./BiXZbQqO.js";import{O as Sr}from"./CXbcLk5j.js";class Er extends Map{#e=new Map;#t=V(0);#r=V(0);#s=Ze||-1;constructor(e){if(super(),e){for(var[t,r]of e)super.set(t,r);this.#r.v=super.size}}#n(e){return Ze===this.#s?V(e):jt(e)}has(e){var t=this.#e,r=t.get(e);if(r===void 0){var o=super.get(e);if(o!==void 0)r=this.#n(0),t.set(e,r);else return i(this.#t),!1}return i(r),!0}forEach(e,t){this.#o(),super.forEach(e,t)}get(e){var t=this.#e,r=t.get(e);if(r===void 0){var o=super.get(e);if(o!==void 0)r=this.#n(0),t.set(e,r);else{i(this.#t);return}}return i(r),super.get(e)}set(e,t){var r=this.#e,o=r.get(e),s=super.get(e),l=super.set(e,t),a=this.#t;if(o===void 0)o=this.#n(0),r.set(e,o),k(this.#r,super.size),Te(a);else if(s!==t){Te(o);var u=a.reactions===null?null:new Set(a.reactions),b=u===null||!o.reactions?.every(h=>u.has(h));b&&Te(a)}return l}delete(e){var t=this.#e,r=t.get(e),o=super.delete(e);return r!==void 0&&(t.delete(e),k(this.#r,super.size),k(r,-1),Te(this.#t)),o}clear(){if(super.size!==0){super.clear();var e=this.#e;k(this.#r,0);for(var t of e.values())k(t,-1);Te(this.#t),e.clear()}}#o(){i(this.#t);var e=this.#e;if(this.#r.v!==e.size){for(var t of super.keys())if(!e.has(t)){var r=this.#n(0);e.set(t,r)}}for([,r]of this.#e)i(r)}keys(){return i(this.#t),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return i(this.#r),super.size}}function Xe(n,e){return setTimeout(e,n)}const wt=typeof document<"u",et=Cr();function Cr(){return wt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ve(n){return n instanceof HTMLElement}function Fr(n){return n instanceof Element}function kr(n){return n instanceof HTMLInputElement&&"select"in n}function Nr(n,e){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e!==void 0&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Tr(n){return{content:`data-${n}-content`,trigger:`data-${n}-trigger`,overlay:`data-${n}-overlay`,title:`data-${n}-title`,description:`data-${n}-description`,close:`data-${n}-close`,cancel:`data-${n}-cancel`,action:`data-${n}-action`}}class Pr{opts;#e=V(null);get triggerNode(){return i(this.#e)}set triggerNode(e){k(this.#e,e,!0)}#t=V(null);get contentNode(){return i(this.#t)}set contentNode(e){k(this.#t,e,!0)}#r=V(null);get descriptionNode(){return i(this.#r)}set descriptionNode(e){k(this.#r,e,!0)}#s=V(void 0);get contentId(){return i(this.#s)}set contentId(e){k(this.#s,e,!0)}#n=V(void 0);get titleId(){return i(this.#n)}set titleId(e){k(this.#n,e,!0)}#o=V(void 0);get triggerId(){return i(this.#o)}set triggerId(e){k(this.#o,e,!0)}#a=V(void 0);get descriptionId(){return i(this.#a)}set descriptionId(e){k(this.#a,e,!0)}#l=V(null);get cancelNode(){return i(this.#l)}set cancelNode(e){k(this.#l,e,!0)}#i=B(()=>Tr(this.opts.variant.current));get attrs(){return i(this.#i)}set attrs(e){k(this.#i,e)}constructor(e){this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}#c=B(()=>({"data-state":$t(this.opts.open.current)}));get sharedProps(){return i(this.#c)}set sharedProps(e){k(this.#c,e)}}class Or{opts;root;#e=B(()=>this.root.attrs[this.opts.variant.current]);constructor(e,t){this.opts=e,this.root=t,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),_e({...e,deps:()=>this.root.opts.open.current})}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Zt||e.key===Jt)&&(e.preventDefault(),this.root.handleClose())}#t=B(()=>({id:this.opts.id.current,[i(this.#e)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps}));get props(){return i(this.#t)}set props(e){k(this.#t,e)}}class xr{opts;root;constructor(e,t){this.opts=e,this.root=t,_e({...e,onRefChange:r=>{this.root.titleId=r?.id},deps:()=>this.root.opts.open.current})}#e=B(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps}));get props(){return i(this.#e)}set props(e){k(this.#e,e)}}class Dr{opts;root;constructor(e,t){this.opts=e,this.root=t,_e({...e,deps:()=>this.root.opts.open.current,onRefChange:r=>{this.root.descriptionNode=r,this.root.descriptionId=r?.id}})}#e=B(()=>({id:this.opts.id.current,[this.root.attrs.description]:"",...this.root.sharedProps}));get props(){return i(this.#e)}set props(e){k(this.#e,e)}}class Ir{opts;root;constructor(e,t){this.opts=e,this.root=t,_e({...e,deps:()=>this.root.opts.open.current,onRefChange:r=>{this.root.contentNode=r,this.root.contentId=r?.id}})}#e=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return i(this.#e)}set snippetProps(e){k(this.#e,e)}#t=B(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps}));get props(){return i(this.#t)}set props(e){k(this.#t,e)}}class Ar{opts;root;constructor(e,t){this.opts=e,this.root=t,_e({...e,deps:()=>this.root.opts.open.current})}#e=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return i(this.#e)}set snippetProps(e){k(this.#e,e)}#t=B(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps}));get props(){return i(this.#t)}set props(e){k(this.#t,e)}}const Ne=new dt("Dialog.Root");function Lr(n){return Ne.set(new Pr(n))}function Mr(n){return new xr(n,Ne.get())}function Br(n){return new Ir(n,Ne.get())}function Rr(n){return new Ar(n,Ne.get())}function Kr(n){return new Dr(n,Ne.get())}function Hr(n){return new Or(n,Ne.get())}var qr=L("<div><!></div>");function St(n,e){Z(e,!0);let t=p(e,"id",23,ce),r=p(e,"ref",15,null),o=p(e,"child",7),s=p(e,"children",7),l=p(e,"level",7,2),a=we(e,["$$slots","$$events","$$legacy","$$host","id","ref","child","children","level"]);const u=Mr({id:I.with(()=>t()),level:I.with(()=>l()),ref:I.with(()=>r(),g=>r(g))}),b=B(()=>ge(a,u.props));var h=j(),w=H(h);{var f=g=>{var S=j(),P=H(S);oe(P,o,()=>({props:i(b)})),_(g,S)},y=g=>{var S=qr();ye(S,()=>({...i(b)}));var P=C(S);oe(P,()=>s()??de),E(S),_(g,S)};z(w,g=>{o()?g(f):g(y,!1)})}return _(n,h),J({get id(){return t()},set id(g=ce()){t(g),v()},get ref(){return r()},set ref(g=null){r(g),v()},get child(){return o()},set child(g){o(g),v()},get children(){return s()},set children(g){s(g),v()},get level(){return l()},set level(g=2){l(g),v()}})}$(St,{id:{},ref:{},child:{},children:{},level:{}},[],[],!0);function Et(n,e,t,r){const o=Array.isArray(e)?e:[e];return o.forEach(s=>n.addEventListener(s,t,r)),()=>{o.forEach(s=>n.removeEventListener(s,t,r))}}class Ct{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){const r=this.createEvent(t);return e.dispatchEvent(r),r}listen(e,t,r){const o=s=>{t(s)};return pe(e,this.eventName,o,r)}}function tt(n,e=500){let t=null;const r=(...o)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...o)},e)};return r.destroy=()=>{t!==null&&(clearTimeout(t),t=null)},r}function Ge(n,e){return n===e||n.contains(e)}function Ft(n){return n?.ownerDocument??document}function Ur(n,e){const{clientX:t,clientY:r}=n,o=e.getBoundingClientRect();return t<o.left||t>o.right||r<o.top||r>o.bottom}globalThis.bitsDismissableLayers??=new Map;class zr{opts;#e;#t;#r={pointerdown:!1};#s=!1;#n=!1;node=I(null);#o=void 0;#a;#l=V(null);get currNode(){return i(this.#l)}set currNode(e){k(this.#l,e,!0)}#i=q;constructor(e){this.opts=e,_e({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:o=>{this.currNode=o}}),this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#a=e.onFocusOutside,ae(()=>{this.#o=Ft(this.currNode)});let t=q;const r=()=>{this.#d(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),t()};Fe([()=>this.opts.enabled.current,()=>this.currNode],([o,s])=>{if(!(!o||!s))return Xe(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#f())}),r}),er(()=>{this.#d.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#i(),t()})}#c=e=>{e.defaultPrevented||this.currNode&&Ye(()=>{!this.currNode||this.#m(e.target)||e.target&&!this.#n&&this.#a.current?.(e)})};#f(){return Oe(pe(this.#o,"pointerdown",Oe(this.#v,this.#g),{capture:!0}),pe(this.#o,"pointerdown",Oe(this.#p,this.#u)),pe(this.#o,"focusin",this.#c))}#h=e=>{let t=e;t.defaultPrevented&&(t=rt(e)),this.#e.current(e)};#u=tt(e=>{if(!this.currNode){this.#i();return}const t=this.opts.isValidEvent.current(e,this.currNode)||Yr(e,this.currNode);if(!this.#s||this.#b()||!t){this.#i();return}let r=e;if(r.defaultPrevented&&(r=rt(r)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#i();return}e.pointerType==="touch"?(this.#i(),this.#i=Et(this.#o,"click",this.#h,{once:!0})):this.#e.current(r)},10);#v=e=>{this.#r[e.type]=!0};#p=e=>{this.#r[e.type]=!1};#g=()=>{this.node.current&&(this.#s=jr(this.node.current))};#m=e=>this.node.current?Ge(this.node.current,e):!1;#d=tt(()=>{for(const e in this.#r)this.#r[e]=!1;this.#s=!1},20);#b(){return Object.values(this.#r).some(Boolean)}#y=()=>{this.#n=!0};#_=()=>{this.#n=!1};props={onfocuscapture:this.#y,onblurcapture:this.#_}}function Vr(n){return new zr(n)}function Wr(n){return n.findLast(([e,{current:t}])=>t==="close"||t==="ignore")}function jr(n){const e=[...globalThis.bitsDismissableLayers],t=Wr(e);if(t)return t[0].node.current===n;const[r]=e[0];return r.node.current===n}function Yr(n,e){if("button"in n&&n.button>0)return!1;const t=n.target;return Fr(t)?Ft(t).documentElement.contains(t)&&!Ge(e,t)&&Ur(n,e):!1}function rt(n){const e=n.currentTarget,t=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let o=!1;return new Proxy(r,{get:(l,a)=>a==="currentTarget"?e:a==="target"?t:a==="preventDefault"?()=>{o=!0,typeof l.preventDefault=="function"&&l.preventDefault()}:a==="defaultPrevented"?o:a in l?l[a]:n[a]})}function kt(n,e){Z(e,!0);let t=p(e,"interactOutsideBehavior",7,"close"),r=p(e,"onInteractOutside",7,q),o=p(e,"onFocusOutside",7,q),s=p(e,"id",7),l=p(e,"children",7),a=p(e,"enabled",7),u=p(e,"isValidEvent",7,()=>!1);const b=Vr({id:I.with(()=>s()),interactOutsideBehavior:I.with(()=>t()),onInteractOutside:I.with(()=>r()),enabled:I.with(()=>a()),onFocusOutside:I.with(()=>o()),isValidEvent:I.with(()=>u())});var h=j(),w=H(h);return oe(w,()=>l()??de,()=>({props:b.props})),_(n,h),J({get interactOutsideBehavior(){return t()},set interactOutsideBehavior(f="close"){t(f),v()},get onInteractOutside(){return r()},set onInteractOutside(f=q){r(f),v()},get onFocusOutside(){return o()},set onFocusOutside(f=q){o(f),v()},get id(){return s()},set id(f){s(f),v()},get children(){return l()},set children(f){l(f),v()},get enabled(){return a()},set enabled(f){a(f),v()},get isValidEvent(){return u()},set isValidEvent(f=()=>!1){u(f),v()}})}$(kt,{interactOutsideBehavior:{},onInteractOutside:{},onFocusOutside:{},id:{},children:{},enabled:{},isValidEvent:{}},[],[],!0);globalThis.bitsEscapeLayers??=new Map;class Qr{opts;constructor(e){this.opts=e;let t=q;Fe(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>pe(document,"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==tr||!Gr(this))return;const t=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(t)}}function Xr(n){return new Qr(n)}function Gr(n){const e=[...globalThis.bitsEscapeLayers],t=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(t)return t[0]===n;const[r]=e[0];return r===n}function Nt(n,e){Z(e,!0);let t=p(e,"escapeKeydownBehavior",7,"close"),r=p(e,"onEscapeKeydown",7,q),o=p(e,"children",7),s=p(e,"enabled",7);Xr({escapeKeydownBehavior:I.with(()=>t()),onEscapeKeydown:I.with(()=>r()),enabled:I.with(()=>s())});var l=j(),a=H(l);return oe(a,()=>o()??de),_(n,l),J({get escapeKeydownBehavior(){return t()},set escapeKeydownBehavior(u="close"){t(u),v()},get onEscapeKeydown(){return r()},set onEscapeKeydown(u=q){r(u),v()},get children(){return o()},set children(u){o(u),v()},get enabled(){return s()},set enabled(u){s(u),v()}})}$(Nt,{escapeKeydownBehavior:{},onEscapeKeydown:{},children:{},enabled:{}},[],[],!0);const me=I([]);function Zr(){return{add(n){const e=me.current[0];e&&n.id!==e.id&&e.pause(),me.current=nt(me.current,n),me.current.unshift(n)},remove(n){me.current=nt(me.current,n),me.current[0]?.resume()},get current(){return me.current}}}function Jr(){let n=V(!1),e=V(!1);return{id:ce(),get paused(){return i(n)},get isHandlingFocus(){return i(e)},set isHandlingFocus(t){k(e,t,!0)},pause(){k(n,!0)},resume(){k(n,!1)}}}function nt(n,e){return[...n].filter(t=>t.id!==e.id)}function $r(n){return n.filter(e=>e.tagName!=="A")}function be(n,{select:e=!1}={}){if(!(n&&n.focus)||document.activeElement===n)return;const t=document.activeElement;n.focus({preventScroll:!0}),n!==t&&kr(n)&&e&&n.select()}function en(n,{select:e=!1}={}){const t=document.activeElement;for(const r of n)if(be(r,{select:e}),document.activeElement!==t)return!0}function ot(n,e){for(const t of n)if(!Nr(t,e))return t}function Tt(n){const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function tn(n){const e=Tt(n),t=ot(e,n),r=ot(e.reverse(),n);return[t,r]}/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var rn=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],nn=rn.join(","),Pt=typeof Element>"u",Be=Pt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Re=!Pt&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},on=function n(e,t){var r;t===void 0&&(t=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=o===""||o==="true",l=s||t&&e&&n(e.parentNode);return l},sn=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},an=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ln=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||sn(e))&&!an(e)?0:e.tabIndex},Ot=function(e){return e.tagName==="INPUT"},cn=function(e){return Ot(e)&&e.type==="hidden"},un=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},dn=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},fn=function(e){if(!e.name)return!0;var t=e.form||Re(e),r=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=dn(o,e.form);return!s||s===e},hn=function(e){return Ot(e)&&e.type==="radio"},vn=function(e){return hn(e)&&!fn(e)},pn=function(e){var t,r=e&&Re(e),o=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,a,u;for(s=!!((l=o)!==null&&l!==void 0&&(a=l.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(u=e.ownerDocument)!==null&&u!==void 0&&u.contains(e));!s&&o;){var b,h,w;r=Re(o),o=(b=r)===null||b===void 0?void 0:b.host,s=!!((h=o)!==null&&h!==void 0&&(w=h.ownerDocument)!==null&&w!==void 0&&w.contains(o))}}return s},st=function(e){var t=e.getBoundingClientRect(),r=t.width,o=t.height;return r===0&&o===0},gn=function(e,t){var r=t.displayCheck,o=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Be.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(Be.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var u=e.parentElement,b=Re(e);if(u&&!u.shadowRoot&&o(u)===!0)return st(e);e.assignedSlot?e=e.assignedSlot:!u&&b!==e.ownerDocument?e=b.host:e=u}e=a}if(pn(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return st(e);return!1},mn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var o=t.children.item(r);if(o.tagName==="LEGEND")return Be.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},bn=function(e,t){return!(t.disabled||on(t)||cn(t)||gn(t,e)||un(t)||mn(t))},yn=function(e,t){return!(vn(t)||ln(t)<0||!bn(e,t))},_n=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Be.call(e,nn)===!1?!1:yn(t,e)};const wn=new Ct("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),Sn=new Ct("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),En=new dt("FocusScope");function Cn({id:n,loop:e,enabled:t,onOpenAutoFocus:r,onCloseAutoFocus:o,forceMount:s}){const l=Zr(),a=Jr(),u=I(null),b=En.getOr({ignoreCloseAutoFocus:!1});let h=null;_e({id:n,ref:u,deps:()=>t.current});function w(d){if(!(a.paused||!u.current||a.isHandlingFocus)){a.isHandlingFocus=!0;try{const c=d.target;if(!Ve(c))return;const m=u.current.contains(c);if(d.type==="focusin")if(m)h=c;else{if(b.ignoreCloseAutoFocus)return;be(h,{select:!0})}else d.type==="focusout"&&!m&&!b.ignoreCloseAutoFocus&&be(h,{select:!0})}finally{a.isHandlingFocus=!1}}}function f(d){if(!h||!u.current)return;let c=!1;for(const m of d){if(m.type==="childList"&&m.removedNodes.length>0)for(const N of m.removedNodes){if(N===h){c=!0;break}if(N.nodeType===Node.ELEMENT_NODE&&N.contains(h)){c=!0;break}}if(c)break}c&&u.current&&!u.current.contains(document.activeElement)&&be(u.current)}Fe([()=>u.current,()=>t.current],([d,c])=>{if(!d||!c)return;const m=Oe(pe(document,"focusin",w),pe(document,"focusout",w)),N=new MutationObserver(f);return N.observe(d,{childList:!0,subtree:!0,attributes:!1}),()=>{m(),N.disconnect()}}),Fe([()=>s.current,()=>u.current],([d,c])=>{if(d)return;const m=document.activeElement;return y(c,m),()=>{c&&g(m)}}),Fe([()=>s.current,()=>u.current,()=>t.current],([d,c])=>{if(!d)return;const m=document.activeElement;return y(c,m),()=>{c&&g(m)}});function y(d,c){if(d||(d=document.getElementById(n.current)),!d||!t.current)return;if(l.add(a),!d.contains(c)){const N=wn.createEvent();r.current(N),N.defaultPrevented||Ye(()=>{if(!d)return;en($r(Tt(d)),{select:!0})||be(d)})}}function g(d){const c=Sn.createEvent();o.current?.(c);const m=b.ignoreCloseAutoFocus;Xe(0,()=>{!c.defaultPrevented&&d&&!m&&be(_n(d)?d:document.body,{select:!0}),l.remove(a)})}function S(d){if(!t.current||!e.current&&!t.current||a.paused)return;const c=d.key===rr&&!d.ctrlKey&&!d.altKey&&!d.metaKey,m=document.activeElement;if(!(c&&m))return;const N=u.current;if(!N)return;const[R,O]=tn(N);R&&O?!d.shiftKey&&m===O?(d.preventDefault(),e.current&&be(R,{select:!0})):d.shiftKey&&m===R&&(d.preventDefault(),e.current&&be(O,{select:!0})):m===N&&d.preventDefault()}const P=B(()=>({id:n.current,tabindex:-1,onkeydown:S}));return{get props(){return i(P)}}}function xt(n,e){Z(e,!0);let t=p(e,"id",7),r=p(e,"trapFocus",7,!1),o=p(e,"loop",7,!1),s=p(e,"onCloseAutoFocus",7,q),l=p(e,"onOpenAutoFocus",7,q),a=p(e,"focusScope",7),u=p(e,"forceMount",7,!1);const b=Cn({enabled:I.with(()=>r()),loop:I.with(()=>o()),onCloseAutoFocus:I.with(()=>s()),onOpenAutoFocus:I.with(()=>l()),id:I.with(()=>t()),forceMount:I.with(()=>u())});var h=j(),w=H(h);return oe(w,()=>a()??de,()=>({props:b.props})),_(n,h),J({get id(){return t()},set id(f){t(f),v()},get trapFocus(){return r()},set trapFocus(f=!1){r(f),v()},get loop(){return o()},set loop(f=!1){o(f),v()},get onCloseAutoFocus(){return s()},set onCloseAutoFocus(f=q){s(f),v()},get onOpenAutoFocus(){return l()},set onOpenAutoFocus(f=q){l(f),v()},get focusScope(){return a()},set focusScope(f){a(f),v()},get forceMount(){return u()},set forceMount(f=!1){u(f),v()}})}$(xt,{id:{},trapFocus:{},loop:{},onCloseAutoFocus:{},onOpenAutoFocus:{},focusScope:{},forceMount:{}},[],[],!0);globalThis.bitsTextSelectionLayers??=new Map;class Fn{opts;#e=q;#t=I(null);constructor(e){this.opts=e,_e({id:e.id,ref:this.#t,deps:()=>this.opts.enabled.current});let t=q;Fe(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#r()),()=>{t(),this.#n(),globalThis.bitsTextSelectionLayers.delete(this)}))}#r(){return Oe(pe(document,"pointerdown",this.#s),pe(document,"pointerup",nr(this.#n,this.opts.onPointerUp.current)))}#s=e=>{const t=this.#t.current,r=e.target;!Ve(t)||!Ve(r)||!this.opts.enabled.current||!Tn(this)||!Ge(t,r)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&(this.#e=Nn(t)))};#n=()=>{this.#e(),this.#e=q}}function kn(n){return new Fn(n)}const it=n=>n.style.userSelect||n.style.webkitUserSelect;function Nn(n){const e=document.body,t=it(e),r=it(n);return Le(e,"none"),Le(n,"text"),()=>{Le(e,t),Le(n,r)}}function Le(n,e){n.style.userSelect=e,n.style.webkitUserSelect=e}function Tn(n){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const t=e.at(-1);return t?t[0]===n:!1}function Dt(n,e){Z(e,!0);let t=p(e,"preventOverflowTextSelection",7,!0),r=p(e,"onPointerDown",7,q),o=p(e,"onPointerUp",7,q),s=p(e,"id",7),l=p(e,"children",7),a=p(e,"enabled",7);kn({id:I.with(()=>s()),onPointerDown:I.with(()=>r()),onPointerUp:I.with(()=>o()),enabled:I.with(()=>a()&&t())});var u=j(),b=H(u);return oe(b,()=>l()??de),_(n,u),J({get preventOverflowTextSelection(){return t()},set preventOverflowTextSelection(h=!0){t(h),v()},get onPointerDown(){return r()},set onPointerDown(h=q){r(h),v()},get onPointerUp(){return o()},set onPointerUp(h=q){o(h),v()},get id(){return s()},set id(h){s(h),v()},get children(){return l()},set children(h){l(h),v()},get enabled(){return a()},set enabled(h){a(h),v()}})}$(Dt,{preventOverflowTextSelection:{},onPointerDown:{},onPointerUp:{},id:{},children:{},enabled:{}},[],[],!0);function Pn(n){let e=0,t=V(void 0),r;function o(){e-=1,r&&e<=0&&(r(),k(t,void 0),r=void 0)}return(...s)=>(e+=1,i(t)===void 0&&(r=Yt(()=>{k(t,n(...s),!0)})),ae(()=>()=>{o()}),i(t))}const On=Pn(()=>{const n=new Er,e=B(()=>{for(const s of n.values())if(s)return!0;return!1});let t=V(null),r=null;function o(){wt&&(document.body.setAttribute("style",i(t)??""),document.body.style.removeProperty("--scrollbar-width"),et&&r?.())}return ae(()=>{const s=i(e);return lt(()=>{if(!s)return;k(t,document.body.getAttribute("style"),!0);const l=getComputedStyle(document.body),a=window.innerWidth-document.documentElement.clientWidth,b={padding:Number.parseInt(l.paddingRight??"0",10)+a,margin:Number.parseInt(l.marginRight??"0",10)};a>0&&(document.body.style.paddingRight=`${b.padding}px`,document.body.style.marginRight=`${b.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`),document.body.style.overflow="hidden"),et&&(r=Et(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),Ye(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),ae(()=>()=>{r?.()}),{get map(){return n},resetBodyStyle:o}});function xn(n,e=()=>null){const t=ce(),r=On();if(!r)return;const o=B(e);r.map.set(t,n??!1);const s=I.with(()=>r.map.get(t)??!1,l=>r.map.set(t,l));return ae(()=>()=>{r.map.delete(t),!Dn(r.map)&&(i(o)===null?requestAnimationFrame(()=>r.resetBodyStyle()):Xe(i(o),()=>r.resetBodyStyle()))}),s}function Dn(n){for(const[e,t]of n)if(t)return!0;return!1}function We(n,e){Z(e,!0);let t=p(e,"preventScroll",7,!0),r=p(e,"restoreScrollDelay",7,null);return xn(t(),()=>r()),J({get preventScroll(){return t()},set preventScroll(o=!0){t(o),v()},get restoreScrollDelay(){return r()},set restoreScrollDelay(o=null){r(o),v()}})}$(We,{preventScroll:{},restoreScrollDelay:{}},[],[],!0);function In({forceMount:n,present:e,trapFocus:t,open:r}){return n?r&&t:e&&t&&r}var An=L("<div><!></div>");function It(n,e){Z(e,!0);let t=p(e,"id",23,ce),r=p(e,"forceMount",7,!1),o=p(e,"child",7),s=p(e,"children",7),l=p(e,"ref",15,null),a=we(e,["$$slots","$$events","$$legacy","$$host","id","forceMount","child","children","ref"]);const u=Rr({id:I.with(()=>t()),ref:I.with(()=>l(),w=>l(w))}),b=B(()=>ge(a,u.props)),h=B(()=>u.root.opts.open.current||r());return ft(n,{get id(){return t()},get present(){return i(h)},presence:f=>{var y=j(),g=H(y);{var S=d=>{var c=j(),m=H(c),N=ct(()=>({props:ge(i(b)),...u.snippetProps}));oe(m,o,()=>i(N)),_(d,c)},P=d=>{var c=An();ye(c,N=>({...N}),[()=>ge(i(b))]);var m=C(c);oe(m,()=>s()??de,()=>u.snippetProps),E(c),_(d,c)};z(g,d=>{o()?d(S):d(P,!1)})}_(f,y)},$$slots:{presence:!0}}),J({get id(){return t()},set id(w=ce()){t(w),v()},get forceMount(){return r()},set forceMount(w=!1){r(w),v()},get child(){return o()},set child(w){o(w),v()},get children(){return s()},set children(w){s(w),v()},get ref(){return l()},set ref(w=null){l(w),v()}})}$(It,{id:{},forceMount:{},child:{},children:{},ref:{}},[],[],!0);var Ln=L("<div><!></div>");function At(n,e){Z(e,!0);let t=p(e,"id",23,ce),r=p(e,"children",7),o=p(e,"child",7),s=p(e,"ref",15,null),l=we(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const a=Kr({id:I.with(()=>t()),ref:I.with(()=>s(),y=>s(y))}),u=B(()=>ge(l,a.props));var b=j(),h=H(b);{var w=y=>{var g=j(),S=H(g);oe(S,o,()=>({props:i(u)})),_(y,g)},f=y=>{var g=Ln();ye(g,()=>({...i(u)}));var S=C(g);oe(S,()=>r()??de),E(g),_(y,g)};z(h,y=>{o()?y(w):y(f,!1)})}return _(n,b),J({get id(){return t()},set id(y=ce()){t(y),v()},get children(){return r()},set children(y){r(y),v()},get child(){return o()},set child(y){o(y),v()},get ref(){return s()},set ref(y=null){s(y),v()}})}$(At,{id:{},children:{},child:{},ref:{}},[],[],!0);function Lt(n,e){Z(e,!0);let t=p(e,"open",15,!1),r=p(e,"onOpenChange",7,q),o=p(e,"children",7);Lr({variant:I.with(()=>"dialog"),open:I.with(()=>t(),a=>{t(a),r()(a)})});var s=j(),l=H(s);return oe(l,()=>o()??de),_(n,s),J({get open(){return t()},set open(a=!1){t(a),v()},get onOpenChange(){return r()},set onOpenChange(a=q){r(a),v()},get children(){return o()},set children(a){o(a),v()}})}$(Lt,{open:{},onOpenChange:{},children:{}},[],[],!0);var Mn=L("<button><!></button>");function je(n,e){Z(e,!0);let t=p(e,"children",7),r=p(e,"child",7),o=p(e,"id",23,ce),s=p(e,"ref",15,null),l=p(e,"disabled",7,!1),a=we(e,["$$slots","$$events","$$legacy","$$host","children","child","id","ref","disabled"]);const u=Hr({variant:I.with(()=>"close"),id:I.with(()=>o()),ref:I.with(()=>s(),g=>s(g)),disabled:I.with(()=>!!l())}),b=B(()=>ge(a,u.props));var h=j(),w=H(h);{var f=g=>{var S=j(),P=H(S);oe(P,r,()=>({props:i(b)})),_(g,S)},y=g=>{var S=Mn();ye(S,()=>({...i(b)}));var P=C(S);oe(P,()=>t()??de),E(S),_(g,S)};z(w,g=>{r()?g(f):g(y,!1)})}return _(n,h),J({get children(){return t()},set children(g){t(g),v()},get child(){return r()},set child(g){r(g),v()},get id(){return o()},set id(g=ce()){o(g),v()},get ref(){return s()},set ref(g=null){s(g),v()},get disabled(){return l()},set disabled(g=!1){l(g),v()}})}$(je,{children:{},child:{},id:{},ref:{},disabled:{}},[],[],!0);var Bn=L("<!> <!>",1),Rn=L("<!> <div><!></div>",1);function Mt(n,e){Z(e,!0);let t=p(e,"id",23,ce),r=p(e,"children",7),o=p(e,"child",7),s=p(e,"ref",15,null),l=p(e,"forceMount",7,!1),a=p(e,"onCloseAutoFocus",7,q),u=p(e,"onOpenAutoFocus",7,q),b=p(e,"onEscapeKeydown",7,q),h=p(e,"onInteractOutside",7,q),w=p(e,"trapFocus",7,!0),f=p(e,"preventScroll",7,!0),y=p(e,"restoreScrollDelay",7,null),g=we(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const S=Br({id:I.with(()=>t()),ref:I.with(()=>s(),c=>s(c))}),P=B(()=>ge(g,S.props)),d=B(()=>S.root.opts.open.current||l());return ft(n,Ce(()=>i(P),{get forceMount(){return l()},get present(){return i(d)},presence:m=>{const N=B(()=>In({forceMount:l(),present:S.root.opts.open.current,trapFocus:w(),open:S.root.opts.open.current}));xt(m,{loop:!0,get trapFocus(){return i(N)},get onOpenAutoFocus(){return u()},get id(){return t()},onCloseAutoFocus:O=>{a()(O),!O.defaultPrevented&&S.root.triggerNode?.focus()},focusScope:(O,T)=>{let K=()=>T?.().props;Nt(O,Ce(()=>i(P),{get enabled(){return S.root.opts.open.current},onEscapeKeydown:M=>{b()(M),!M.defaultPrevented&&S.root.handleClose()},children:(M,W)=>{kt(M,Ce(()=>i(P),{get enabled(){return S.root.opts.open.current},onInteractOutside:ee=>{h()(ee),!ee.defaultPrevented&&S.root.handleClose()},children:(ee,Y)=>{Dt(ee,Ce(()=>i(P),{get enabled(){return S.root.opts.open.current},children:(D,Q)=>{var G=j(),U=H(G);{var X=re=>{var ie=Bn(),x=H(ie);{var ne=qe=>{We(qe,{get preventScroll(){return f()},get restoreScrollDelay(){return y()}})};z(x,qe=>{S.root.opts.open.current&&qe(ne)})}var ve=A(x,2),He=ct(()=>({props:ge(i(P),K()),...S.snippetProps}));oe(ve,o,()=>i(He)),_(re,ie)},te=re=>{var ie=Rn(),x=H(ie);We(x,{get preventScroll(){return f()}});var ne=A(x,2);ye(ne,He=>({...He}),[()=>ge(i(P),K())]);var ve=C(ne);oe(ve,()=>r()??de),E(ne),_(re,ie)};z(U,re=>{o()?re(X):re(te,!1)})}_(D,G)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})},$$slots:{presence:!0}})),J({get id(){return t()},set id(c=ce()){t(c),v()},get children(){return r()},set children(c){r(c),v()},get child(){return o()},set child(c){o(c),v()},get ref(){return s()},set ref(c=null){s(c),v()},get forceMount(){return l()},set forceMount(c=!1){l(c),v()},get onCloseAutoFocus(){return a()},set onCloseAutoFocus(c=q){a(c),v()},get onOpenAutoFocus(){return u()},set onOpenAutoFocus(c=q){u(c),v()},get onEscapeKeydown(){return b()},set onEscapeKeydown(c=q){b(c),v()},get onInteractOutside(){return h()},set onInteractOutside(c=q){h(c),v()},get trapFocus(){return w()},set trapFocus(c=!0){w(c),v()},get preventScroll(){return f()},set preventScroll(c=!0){f(c),v()},get restoreScrollDelay(){return y()},set restoreScrollDelay(c=null){y(c),v()}})}$(Mt,{id:{},children:{},child:{},ref:{},forceMount:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onEscapeKeydown:{},onInteractOutside:{},trapFocus:{},preventScroll:{},restoreScrollDelay:{}},[],[],!0);var Kn=L("<div></div>"),Hn=L('<span class="sr-only">Close</span> <!>',1),qn=L('<div><div class="dialog-header"><!> <!></div> <!></div>'),Un=L("<!> <!>",1);function Bt(n,e){Z(e,!0);let t=p(e,"open",7),r=p(e,"content",7),o=p(e,"title",7),s=p(e,"onClose",7);const l={duration:Number(F.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(F.theme.components.dialog.custom?.transitionDelay)||0,y:Number(F.theme.components.dialog.custom?.transitionY)||10},a=h=>{h||s()()};var u=j(),b=H(u);return Se(b,()=>Lt,(h,w)=>{w(h,{get open(){return t()},onOpenChange:a,children:(f,y)=>{var g=Un(),S=H(g);Se(S,()=>je,(d,c)=>{c(d,{class:"dialog-overlay-wrapper",children:(m,N)=>{var R=j(),O=H(R);{const T=(K,M)=>{let W=()=>M?.().props,ee=()=>M?.().open;var Y=j(),D=H(Y);{var Q=G=>{var U=Kn();ye(U,()=>({...W(),class:"dialog-overlay"})),ue(3,U,()=>ht,()=>l),_(G,U)};z(D,G=>{ee()&&G(Q)})}_(K,Y)};Se(O,()=>It,(K,M)=>{M(K,{forceMount:!0,child:T,$$slots:{child:!0}})})}_(m,R)},$$slots:{default:!0}})});var P=A(S,2);{const d=(c,m)=>{let N=()=>m?.().props,R=()=>m?.().open;var O=j(),T=H(O);{var K=M=>{var W=qn();ye(W,()=>({...N(),class:"dialog-content"}));var ee=C(W),Y=C(ee);Se(Y,()=>St,(G,U)=>{U(G,{class:"dialog-title",children:(X,te)=>{var re=j(),ie=H(re);oe(ie,()=>o()??de),_(X,re)},$$slots:{default:!0}})});var D=A(Y,2);Se(D,()=>je,(G,U)=>{U(G,{class:"dialog-close",children:(X,te)=>{var re=Hn(),ie=A(H(re),2);Ke(ie,{name:"dismiss"}),_(X,re)},$$slots:{default:!0}})}),E(ee);var Q=A(ee,2);Se(Q,()=>At,(G,U)=>{U(G,{class:"dialog-description",children:(X,te)=>{var re=j(),ie=H(re);oe(ie,r),_(X,re)},$$slots:{default:!0}})}),E(W),ue(3,W,()=>Ie,()=>l),_(M,W)};z(T,M=>{R()&&M(K)})}_(c,O)};Se(P,()=>Mt,(c,m)=>{m(c,{forceMount:!0,child:d,$$slots:{child:!0}})})}_(f,g)},$$slots:{default:!0}})}),_(n,u),J({get open(){return t()},set open(h){t(h),v()},get content(){return r()},set content(h){r(h),v()},get title(){return o()},set title(h){o(h),v()},get onClose(){return s()},set onClose(h){s(h),v()}})}$(Bt,{open:{},content:{},title:{},onClose:{}},[],[],!0);var zn=L('<form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div> <button type="submit" class="btn btn--primary"> </button></form>');function Rt(n,e){Z(e,!0);let t=B(()=>F.t),r=p(e,"logic",7),o=V(""),s=V(""),l=V(void 0),a=V(void 0),u=B(()=>i(l)!==void 0||i(a)!==void 0||i(o)!=="");const b=B(()=>!!r().data.feedbackOpenedId||r().data.feedbackOpenedConversation);return Bt(n,{get open(){return i(b)},get onClose(){return r().closeFeedback},title:f=>{var y=j(),g=H(y);Ae(g,()=>i(t).feedbackFormTitle),_(f,y)},content:f=>{var y=zn(),g=C(y);or(g,{get classificationConfig(){return r().data.chatConfig.classification},get impact(){return i(l)},set impact(M){k(l,M,!0)},get quality(){return i(a)},set quality(M){k(a,M,!0)}});var S=A(g,2),P=C(S),d=C(P,!0);E(P);var c=A(P,2);Qt(c),E(S);var m=A(S,2),N=C(m),R=C(N,!0);E(N);var O=A(N,2);sr(O),E(m);var T=A(m,2),K=C(T,!0);E(T),E(y),se(()=>{fe(d,i(t).feedbackFormMessage),he(c,"placeholder",i(t).feedbackFormMessagePlaceholder),fe(R,i(t).feedbackFormEmail),he(O,"placeholder",i(t).feedbackFormEmailPlaceholder),T.disabled=!i(u),fe(K,i(t).send)}),le("submit",y,async M=>{M.preventDefault(),r().data.chatConfig.classification?await r().submitFeedback({email:i(s),message:i(o),classification:{impact:i(l),quality:i(a)}}):await r().submitFeedback({email:i(s),message:i(o)}),k(l,void 0),k(a,void 0),k(o,""),r().closeFeedback()}),Je(c,()=>i(o),M=>k(o,M)),Je(O,()=>i(s),M=>k(s,M)),_(f,y)},$$slots:{title:!0,content:!0}}),J({get logic(){return r()},set logic(h){r(h),v()}})}$(Rt,{logic:{}},[],[],!0);let Me;function Vn(n,e,t,r,o){Me&&cancelAnimationFrame(Me);const s=n instanceof Window?window.scrollY:n[r],l=performance.now();function a(u){const b=u-l,h=Math.min(b/t,1),w=o(h),f=s+(e-s)*w;n instanceof Window?window.scrollTo({top:f,behavior:"instant"}):n[r]=f,h<1?Me=requestAnimationFrame(a):n.dispatchEvent(new CustomEvent("scrollcomplete"))}Me=requestAnimationFrame(a)}var Wn=()=>F.openConverstionFeedback(),jn=L('<button class="chat-page__give-feedback btn btn--primary"> </button>'),Yn=L('<div class="chat-page__footer-text"><!></div>'),Qn=L('<section class="chat-page"><!> <div class="chat-page__body"><div class="chat-page__messages"><!> <div class="chat-page__buttons"><!></div></div></div> <div><div class="chat-page__footer-content"><button><span class="sr-only"> </span> <!></button> <!> <!></div></div></section>');const Xn={hash:"svelte-19wcq0c",code:":host {--chat-footer-height: 0px;}"};function Kt(n,e){Z(e,!0),vt(n,Xn);let t=B(()=>F.t),r=p(e,"history",7),o=p(e,"onSubmit",7),s=V(!1),l=V(!1),a,u,b,h=V(0);const w=90,f=()=>{k(h,b.offsetHeight,!0),a.style.setProperty("--chat-footer-height",`${i(h)}px`)};ae(()=>{const x=new ResizeObserver(f);return x.observe(b),()=>x.disconnect()});const y=()=>{Vn(a,a.scrollHeight-a.clientHeight,1e3,"scrollTop",ir)},g=()=>{if(!a)return;const x=a.scrollHeight-a.scrollTop-a.clientHeight<w;k(l,!x)},S=()=>{g()},P=x=>{if(x.altKey&&x.code==="KeyR"){x.preventDefault();const ne=F.data.history.findLast(ve=>ve.type==="user")?.message;F.goto({name:"start-page",prefill:ne})}},d=x=>{u.offsetHeight>a.offsetHeight&&(u.style.minHeight=`calc(${u.offsetHeight}px + 40cqh)`,requestAnimationFrame(()=>{y()})),o()(x)};ae(()=>{k(s,!0)});var c=Qn();le("resize",Ue,S),le("keypress",Ue,P);var m=C(c);Rt(m,{get logic(){return F}});var N=A(m,2),R=C(N),O=C(R);xe(O,17,r,De,(x,ne)=>{ar(x,{get message(){return i(ne)},onmessageupdate:g,get logic(){return F}})});var T=A(O,2),K=C(T);{var M=x=>{var ne=jn();ne.__click=[Wn];var ve=C(ne,!0);E(ne),se(()=>fe(ve,i(t).giveFeedback)),_(x,ne)};z(K,x=>{F.data.chatConfig.showOverallFeedbackButton&&x(M)})}E(T),E(R),Ee(R,x=>u=x,()=>u),E(N),Ee(N,x=>a=x,()=>a);var W=A(N,2);let ee;var Y=C(W),D=C(Y);D.__click=y;let Q;var G=C(D),U=C(G,!0);E(G);var X=A(G,2);Ke(X,{name:"chevronDown"}),E(D);var te=A(D,2);pt(te,{onSubmit:d,class:"chat-page__chat-input"});var re=A(te,2);{var ie=x=>{var ne=Yn(),ve=C(ne);Ae(ve,()=>i(t).chatFooterText),E(ne),_(x,ne)};z(re,x=>{i(t).chatFooterText!==void 0&&x(ie)})}return E(Y),E(W),Ee(W,x=>b=x,()=>b),E(c),se((x,ne)=>{ee=ke(W,1,"chat-page__footer container",null,ee,x),Q=ke(D,1,"chat-page__scroll-to-bottom btn btn--secondary",null,Q,ne),fe(U,i(t).scrollToBottom)},[()=>({mounted:i(s)}),()=>({"chat-page__scroll-to-bottom--hidden":!i(l)})]),le("scroll",N,g),_(n,c),J({get history(){return r()},set history(x){r(x),v()},get onSubmit(){return o()},set onSubmit(x){o(x),v()}})}ut(["click"]);$(Kt,{history:{},onSubmit:{}},[],[],!0);var Gn=(n,e)=>(n.stopPropagation(),k(e,!i(e))),Zn=L('<div class="context-box__content text-container"><!></div>'),Jn=L('<div><button class="btn btn--secondary btn--header"><span class="sr-only"> </span> <!></button> <!></div>');function Ht(n,e){Z(e,!0);let t=B(()=>F.t),r=V(!1),o,s=V(void 0),l=p(e,"logic",7);const a={duration:Number(l().theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(l().theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(l().theme.components.referenceNumberContent.custom?.transitionY)||10},u=async()=>{if(!o||!i(s))return;const{x:c,y:m}=await gt(o,i(s),{placement:"bottom-end",middleware:[mt(8),bt({padding:8})]});Object.assign(i(s).style,{left:`${c}px`,top:`${m}px`})};ae(()=>{i(r)&&u()});var b=Jn();let h;var w=C(b);w.__click=[Gn,r];var f=C(w),y=C(f,!0);E(f);var g=A(f,2);const S=B(()=>i(r)?"menuClose":"info");Ke(g,{get name(){return i(S)}}),E(w),Ee(w,c=>o=c,()=>o),ze(w,c=>lr?.(c)),ze(w,(c,m)=>cr?.(c,m),()=>({text:i(t).openInfo,position:"bottom-right",delay:0}));var P=A(w,2);{var d=c=>{var m=Zn(),N=C(m);Ae(N,()=>i(t).aboutThisChat),E(m),Ee(m,R=>k(s,R),()=>i(s)),ue(3,m,()=>Ie,()=>a),_(c,m)};z(P,c=>{i(r)&&c(d)})}return E(b),se(c=>{h=ke(b,1,"context-box context-box--info",null,h,c),he(w,"aria-label",i(r)?i(t).close:i(t).openInfo),fe(y,i(r)?i(t).close:i(t).openInfo)},[()=>({open:i(r)})]),le("clickoutside",w,()=>k(r,!1)),_(n,b),J({get logic(){return l()},set logic(c){l(c),v()}})}ut(["click"]);$(Ht,{logic:{}},[],[],!0);var $n=L('<div><!> <h1 class="introduction__title"><!></h1></div>');function qt(n,e){Z(e,!0);let t=B(()=>F.t),r=p(e,"class",7);var o=$n(),s=C(o);Ke(s,{name:"avatar",class:"introduction__avatar"});var l=A(s,2),a=C(l);return Ae(a,()=>i(t).introductionTitle),E(l),E(o),se(()=>ke(o,1,`introduction ${r()??""}`)),_(n,o),J({get class(){return r()},set class(u){r(u),v()}})}$(qt,{class:{}},[],[],!0);var eo=L("<div></div>");function Ut(n,e){Z(e,!0);let t=p(e,"class",7),r=we(e,["$$slots","$$events","$$legacy","$$host","class"]);var o=eo();return ye(o,s=>({class:`predefined-questions ${t()??""}`,...r,[ur]:s}),[()=>({"predefined-questions--pii-padding":F.data.questionHasPii})]),xe(o,21,()=>F.data.predefinedQuestions,De,(s,l)=>{dr(s,{get predefinedQuestion(){return i(l)},get onSubmit(){return F.onStartConversation}})}),E(o),_(n,o),J({get class(){return t()},set class(s){t(s),v()}})}$(Ut,{class:{}},[],[],!0);var to=L('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),ro=L("<section><!> <!> <!> <!></section>");function zt(n,e){Z(e,!0);let t=B(()=>F.t),r=V(!1);ae(()=>{k(r,!0)});var o=ro();let s;var l=C(o);qt(l,{class:"start-page__introduction fly-in"});var a=A(l,2);pt(a,{get onSubmit(){return F.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0});var u=A(a,2);{var b=f=>{Ut(f,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};z(u,f=>{F.data.predefinedQuestions&&F.data.predefinedQuestions.length&&f(b)})}var h=A(u,2);{var w=f=>{var y=to(),g=C(y);Ae(g,()=>i(t).introductionDisclaimer),E(y),_(f,y)};z(h,f=>{i(t).introductionDisclaimer&&f(w)})}E(o),se(f=>s=ke(o,1,"start-page container",null,s,f),[()=>({mounted:i(r)})]),_(n,o),J()}$(zt,{},[],[],!0);function at(n,{delay:e=0,duration:t=200,easing:r=l=>l,baseScale:o=0,transformOrigin:s="bottom right"}={}){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: scale(1); transform-origin: ${s};`};const a=getComputedStyle(n),u=+a.opacity,b=a.transform.match(/scale\(([0-9.]+)\)/),h=b?+b[1]:1,w=1-o;return{delay:e,duration:t,css:f=>{const y=r(f),g=y*h*w+o;return`opacity: ${y*u}; transform: scale(${g}); transform-origin: ${s};`}}}var no=L('<div class="loader-container svelte-jdm8uf"><svg width="40" height="40" viewBox="0 0 24 24"><circle cx="4" cy="12" r="3"><animate id="spinner_qFRN" begin="0;spinner_OcgL.end+0.25s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="12" cy="12" r="3"><animate begin="spinner_qFRN.begin+0.1s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="20" cy="12" r="3"><animate id="spinner_OcgL" begin="spinner_qFRN.begin+0.2s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle></svg></div>');const oo={hash:"svelte-jdm8uf",code:".loader-container.svelte-jdm8uf {display:flex;z-index:var(--z-index-loader);position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;background-color:#fff;}"};function Vt(n,e){Z(e,!0),vt(n,oo);let t=p(e,"color",7),r=p(e,"background",7);var o=no(),s=C(o);return E(o),se(()=>{Qe(o,r()?`background: ${r()};`:""),he(s,"fill",t()??"rgba(127, 127, 127, 0.3)")}),_(n,o),J({get color(){return t()},set color(l){t(l),v()},get background(){return r()},set background(l){r(l),v()}})}$(Vt,{color:{},background:{}},[],[],!0);var so=L('<div class="flyout__content"><!></div>'),io=L('<div><div class="flyout__body"><!></div></div>'),ao=L('<!> <div class="chat-app__main"><div class="chat-app__loader-container"><!></div></div>',1);function Wt(n,e){Z(e,!0);let t=p(e,"children",7),r=p(e,"loaderColor",7),o=p(e,"loaderBackground",7),s=p(e,"flyout",7),l=p(e,"flyoutClass",7),a=p(e,"flyoutStyle",7),u=p(e,"onCloseChat",7),b=p(e,"onError",7),h=we(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),w;const f=d=>{ae(()=>{const c=m=>{w=m};return d.addEventListener("click",c),()=>{d.removeEventListener("click",c),w=void 0}})};var y=j();le("click",Ue,d=>{d!==w&&s()&&u()()});var g=H(y);{var S=d=>{var c=j(),m=H(c);{var N=O=>{},R=O=>{var T=io(),K=C(T),M=C(K);{var W=Y=>{var D=so(),Q=C(D);oe(Q,t),E(D),ue(1,D,()=>at,()=>({delay:0,duration:500,easing:$e,baseScale:.3})),ue(2,D,()=>at,()=>({delay:0,duration:300,easing:$e,baseScale:.7})),_(Y,D)},ee=Y=>{Sr(Y,Ce({get onError(){return b()},onclick:D=>{D.stopPropagation(),F.openFlyout()},buttonClass:"flyout__open-button"},()=>h))};z(M,Y=>{F.data.flyoutIsOpen?Y(W):Y(ee,!1)})}E(K),ze(K,Y=>f?.(Y)),E(T),se(()=>{Qe(T,a()),ke(T,1,fr(["flyout",l()]))}),_(O,T)};z(m,O=>{F.initialized?O(R,!1):O(N)})}_(d,c)},P=d=>{var c=j(),m=H(c);{var N=O=>{var T=ao(),K=H(T);Pe(K,{id:"app-css",get css(){return yt}});var M=A(K,2),W=C(M),ee=C(W);hr(ee,e,"loader",{},Y=>{Vt(Y,{get background(){return o()},get color(){return r()}})}),E(W),E(M),ue(2,W,()=>_t,()=>({duration:200,delay:300})),_(O,T)},R=O=>{var T=j(),K=H(T);oe(K,t),_(O,T)};z(m,O=>{F.initialized?O(R,!1):O(N)})}_(d,c)};z(g,d=>{s()?d(S):d(P,!1)})}return _(n,y),J({get children(){return t()},set children(d){t(d),v()},get loaderColor(){return r()},set loaderColor(d){r(d),v()},get loaderBackground(){return o()},set loaderBackground(d){o(d),v()},get flyout(){return s()},set flyout(d){s(d),v()},get flyoutClass(){return l()},set flyoutClass(d){l(d),v()},get flyoutStyle(){return a()},set flyoutStyle(d){a(d),v()},get onCloseChat(){return u()},set onCloseChat(d){u(d),v()},get onError(){return b()},set onError(d){b(d),v()}})}$(Wt,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);var lo=L('<strong class="reference-number__content-title"> </strong>'),co=L('<div class="line-clamp line-clamp--12"> </div>'),uo=L('<div class="reference-number__domain transition-colors"><span class="truncate"> </span></div>'),fo=L('<div class="reference-number__content-wrapper" role="tooltip"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer"><!> <!> <!></a></div>'),ho=L('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function vo(n,e){Z(e,!0);let t=B(()=>F.t),r=p(e,"usedNumber",7),o=p(e,"source",7),s=V(!1),l,a,u=V(void 0);const b=o();let h=B(()=>b.display.card.title),w=B(()=>b.display.card.description),f=B(()=>b.display.card.badge);const y={duration:Number(F.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(F.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(F.theme.components.referenceNumberContent.custom?.transitionY)||10},g=async()=>{if(!a||!i(u))return;const{x:T,y:K}=await gt(a,i(u),{placement:"top",middleware:[mt(8),vr(),bt({padding:8})]});Object.assign(i(u).style,{left:`${T}px`,top:`${K}px`})},S=()=>{l&&(clearTimeout(l),l=void 0)},P=()=>{S(),l=setTimeout(()=>{k(s,!1)},100)},d=()=>{S(),k(s,!0)};ae(()=>{i(s)&&g()});var c=ho(),m=C(c),N=C(m,!0);E(m),Ee(m,T=>a=T,()=>a);var R=A(m,2);{var O=T=>{var K=fo(),M=C(K),W=C(M);{var ee=U=>{var X=lo(),te=C(X,!0);E(X),se(()=>fe(te,i(h))),_(U,X)};z(W,U=>{i(h)&&U(ee)})}var Y=A(W,2);{var D=U=>{var X=co(),te=C(X,!0);E(X),se(()=>fe(te,i(w))),_(U,X)};z(Y,U=>{i(w)&&U(D)})}var Q=A(Y,2);{var G=U=>{var X=uo(),te=C(X),re=C(te,!0);E(te),E(X),se(()=>fe(re,i(f))),_(U,X)};z(Q,U=>{b.url&&U(G)})}E(M),E(K),Ee(K,U=>k(u,U),()=>i(u)),se(()=>he(M,"href",b.url)),le("mouseenter",K,d),le("mouseleave",K,P),ue(3,K,()=>Ie,()=>y),_(T,K)};z(R,T=>{i(s)&&T(O)})}return E(c),se(()=>{he(m,"href",b.url),he(m,"aria-label",`${i(t).referenceLink??""}: ${i(h)??""}`),fe(N,r())}),le("mouseenter",m,d),le("mouseleave",m,P),le("focus",m,()=>k(s,!0)),le("blur",m,()=>k(s,!1)),_(n,c),J({get usedNumber(){return r()},set usedNumber(T){r(T),v()},get source(){return o()},set source(T){o(T),v()}})}customElements.define("liipgpt-reference-number",$(vo,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));var po=L('<link rel="stylesheet"/>'),go=L('<link rel="stylesheet"/>'),mo=L("<!> <!> <!>",1),bo=L('<link rel="stylesheet"/>'),yo=L("<!> <!> <!> <!>",1),_o=L("<div><!></div>"),wo=L('<div class="chat-app__page-transition"><!></div>'),So=L('<div class="chat-app__container"><div class="chat-app__main"><div class="chat-app__header"><div class="chat-app__header-container"><!> <!> <!> <!></div></div> <div class="chat-app__body"><!></div> <!></div> <div class="chat-app__aside">References</div></div>'),Eo=L('<main class="chat-app"><!> <!></main>');function Co(n,e){Z(e,!0);let t=p(e,"host",7),r=p(e,"onError",7),o=we(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);ae(()=>{const f={forceTheme:e.forceTheme,apiUrl:e.apiUrl,apiKey:e.apiKey,speechRecognitionApiKey:e.speechRecognitionApiKey,lang:e.lang,features:e.features,loaderBackground:e.loaderBackground,loaderColor:e.loaderColor,flyout:e.flyout,flyoutStyle:e.flyoutStyle,flyoutClass:e.flyoutClass};lt(()=>F.init(f).catch(y=>r()(y)))});let s=B(()=>F.data.route.name);const l=()=>{F.closeFlyout(),t().dispatchEvent(new CustomEvent("closechat"))};ae(()=>{F.initialized&&F.data?.chatConfig&&t().dispatchEvent(new CustomEvent("configloaded",{detail:F.data.chatConfig}))});var a=Eo();Xt(f=>{var y=j(),g=H(y);{var S=P=>{var d=mo(),c=H(d);xe(c,17,()=>F.themeBase.fontURLs??[],De,(R,O)=>{var T=po();se(()=>he(T,"href",i(O))),_(R,T)});var m=A(c,2);xe(m,17,()=>F.data.additionalStylesheets,De,(R,O)=>{var T=go();se(()=>he(T,"href",i(O))),_(R,T)});var N=A(m,2);Pe(N,{id:"font-css",get css(){return F.themeBase.fontCSS}}),_(P,d)};z(g,P=>{F.initialized&&P(S)})}_(f,y)});let u;var b=C(a);{var h=f=>{var y=yo(),g=H(y);const S=B(()=>wr(F.theme));Pe(g,{id:"theme-css",get css(){return i(S)}});var P=A(g,2);Pe(P,{id:"app-css",get css(){return yt}});var d=A(P,2);Pe(d,{id:"custom-css",get css(){return F.themeBase.customCSS}});var c=A(d,2);xe(c,17,()=>F.data.additionalStylesheets,De,(m,N)=>{var R=bo();se(()=>he(R,"href",i(N))),_(m,R)}),_(f,y)};z(b,f=>{F.initialized&&f(h)})}var w=A(b,2);return Wt(w,Ce({onCloseChat:l,get onError(){return r()}},()=>o,{children:(f,y)=>{var g=So(),S=C(g),P=C(S),d=C(P),c=C(d);{var m=D=>{var Q=_o(),G=C(Q);mr(G,{}),E(Q),ue(1,Q,()=>Ie,()=>({duration:300,y:30})),ue(2,Q,()=>Ie,()=>({y:15,duration:150,easing:br})),_(D,Q)};z(c,D=>{i(s)!=="start-page"&&D(m)})}var N=A(c,2);{var R=D=>{yr(D,{get chatLogic(){return F}})};z(N,D=>{F.data.chatConfig.showContextMenu&&D(R)})}var O=A(N,2);{var T=D=>{Ht(D,{get logic(){return F}})};z(O,D=>{F.data.chatConfig.showContextInfo&&D(T)})}var K=A(O,2);{var M=D=>{_r(D,{onclick:l})};z(K,D=>{(F.data.chatConfig.showCloseChatButton||F.data.props.flyout)&&D(M)})}E(d),E(P);var W=A(P,2),ee=C(W);pr(ee,()=>i(s),D=>{var Q=wo(),G=C(Q);{var U=te=>{zt(te,{})},X=(te,re)=>{{var ie=x=>{Kt(x,{get history(){return F.data.history},get onSubmit(){return F.onSubmit}})};z(te,x=>{i(s)==="chat-page"&&x(ie)},re)}};z(G,te=>{i(s)==="start-page"?te(U):te(X,!1)})}E(Q),ue(1,Q,()=>ht,()=>({duration:300,delay:250})),ue(2,Q,()=>_t,()=>({duration:150})),_(D,Q)}),E(W);var Y=A(W,2);gr(Y,{position:"top-center"}),E(S),Gt(2),E(g),_(f,g)},$$slots:{default:!0}})),E(a),se(f=>u=Qe(a,"",u,f),[()=>({"color-scheme":F.colorScheme})]),_(n,a),J({get host(){return t()},set host(f){t(f),v()},get onError(){return r()},set onError(f){r(f),v()}})}$(Co,{host:{},onError:{}},[],[],!0);export{Co as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{ay as Ge,ac as Ue,az as be,ah as fe,aA as ne,Y as me,N as ge,at as Ve,_ as we,aB as ye,aC as _e,h as Je,ae as xe,af as ie,ag as se,v as x,ai as $,aj as Xe,am as Ze,an as Ke,ao as Qe,ap as ke,aq as $e,M as et,c as je,p as Me,H as Q,a as j,b as p,d as Oe,f as I,g as M,J as ze,r as O,t as pe,X as Ee,aD as ee,aE as tt,F as e,G as E,s as V,I as te,L as le}from"./DUt8zN7X.js";import{i as J,b as Se}from"./Dq6jck_i.js";import{s as Be,b as Te,c as Ce,d as Ie,e as ot,i as rt,I as oe,f as at,h as ce,g as nt,j as it,k as st,l as lt,m as ct}from"./DH3truD-.js";import{p as S,r as dt}from"./BiXZbQqO.js";import"./DkXqbGhE.js";import"./DCtHJYgu.js";const de=0,re=1,he=2;function Ne(Z,r,b,w,k){$&&Xe();var i=Z,T=Ge(),z=Je,s=fe,l,y,d,_=T?me(void 0):ge(void 0,!1,!1),q=T?me(void 0):ge(void 0,!1,!1),B=!1;function t(a,u){B=!0,u&&(we(o),ye(o),_e(z));try{a===de&&b&&(l?xe(l):l=ie(()=>b(i))),a===re&&w&&(y?xe(y):y=ie(()=>w(i,_))),a!==de&&l&&se(l,()=>l=null),a!==re&&y&&se(y,()=>y=null),a!==he&&d&&se(d,()=>d=null)}finally{u&&(_e(null),ye(null),we(null),x())}}var o=Ue(()=>{if(s===(s=r()))return;let a=$&&be(s)===(i.data===Ze);if(a&&(i=Ke(),Qe(i),ke(!1),a=!0),be(s)){var u=s;B=!1,u.then(n=>{u===s&&(ne(_,n),t(re,!0))},n=>{if(u===s)throw ne(q,n),t(he,!0),q.v}),$?b&&(l=ie(()=>b(i))):Ve(()=>{B||t(de,!0)})}else ne(_,s),t(re,!1);return a&&ke(!0),()=>s=fe});$&&(i=$e)}const ht='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor;@supports (color: color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color: color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app{:where(h1,h2,h3,h4,h5,h6){font-weight:var(--font-weight-bold);line-height:var(--line-height-tight)}:where(b,strong){font-weight:var(--font-weight-bold)}: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);&::-moz-placeholder{color:var(--input-placeholder-color)}&::placeholder{color:var(--input-placeholder-color)}}:where(input[type=radio],input[type=checkbox]){margin:0}:where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}& *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}& *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}>*{color:var(--body-color);font-style:normal;font-weight:var(--font-weight-normal);font-size:var(--body-font-size, var(--font-body));line-height:var(--line-height-default);font-family:var(--font-family);font-optical-sizing:auto}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}::-webkit-scrollbar-thumb:hover{background-color:#00000080}*{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}::-webkit-scrollbar-thumb{visibility:hidden}*:hover::-webkit-scrollbar-thumb,*:active::-webkit-scrollbar-thumb,*:focus::-webkit-scrollbar-thumb{visibility:visible}}}@layer utilities{.chat-app{:where(.expand-interaction){position:relative;&:after{position:absolute;inset:0;background-color:transparent;content:""}}: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}: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)}: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)}: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)}: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)}:where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}:where(.line-clamp--2){-webkit-line-clamp:2}:where(.line-clamp--12){-webkit-line-clamp:12}: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){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}@container chat-container (min-width: 768px){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}:where(.text-container){>:where(h1){font-size:var(--font-h1)}>:where(h2){font-size:var(--font-h2)}>:where(h3){font-size:var(--font-h3)}>:where(h4,h5,h6){font-size:var(--font-body)}>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}>:where(div){margin:var(--spacer-r-40) 0}>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}>:where(ul:not(.no-list-styling),ol:not(.no-list-styling)){>:where(li){margin-bottom:var(--spacer-12);&:last-child{margin-bottom:0}}}>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}>:where(ul:not(.no-list-styling)){>:where(li){position:relative;padding-left:1em;&:before{position:absolute;top:0;left:0;content:"•";font-size:.9em}}}>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}:where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function);&:hover{color:var(--anchor-hover-color)}}&:first-child{margin-top:0}&:last-child{margin-bottom:0}:where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}:where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--line-height-tight);text-align:left;vertical-align:bottom}:where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}:where(tr:last-child td){border-bottom:none}}}}@layer base{.svg{width:var(--spacer-r-24);height:auto;& svg{display:block;width:100%;height:auto;overflow:visible}}}@layer components{.chat-app{display:contents}.chat-app__container{display:flex;height:100%}.chat-app__main{container-name:chat-container;container-type:inline-size;display:block;width:100%;height:100%;transform:scale(1);background:var(--body-background)}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__header{padding:var(--spacer-16);@container chat-container (min-width: 640px){padding:var(--spacer-12)}z-index:var(--z-index-header);position:fixed;top:0;right:0;left:0;border-width:var(--header-border-width);border-style:solid;border-color:var(--header-border-color);background:var(--header-background);box-shadow:var(--header-box-shadow);pointer-events:none}.chat-app__header-container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacer-r-12);>:where(*){pointer-events:auto}}.chat-app__body{position:relative;width:100%;height:100%}.chat-app__page-transition{width:100%;height:100%}.chat-app__aside{visibility:hidden;width:0;overflow:hidden;background:var(--color-brand-100);opacity:0;transition:width .3s ease-in-out,opacity .3s ease-in-out;&.open{visibility:visible;width:300px;opacity:1}}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);.open-button:hover &{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease);.open-button:hover &{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 &{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}}}';var g=typeof window<"u"?window:{screen:{},navigator:{}},X=(g.matchMedia||function(){return{matches:!1}}).bind(g),pt={get passive(){return!0}},De=function(){};g.addEventListener&&g.addEventListener("p",De,pt);g.removeEventListener&&g.removeEventListener("p",De,!1);var ue="ontouchstart"in g,ut="TouchEvent"in g,vt=ue||ut&&X("(any-pointer: coarse)").matches,Ae=(g.navigator.maxTouchPoints||0)>0||vt,He=g.navigator.userAgent||"",bt=X("(pointer: coarse)").matches&&/iPad|Macintosh/.test(He)&&Math.min(g.screen.width||0,g.screen.height||0)>=768,Pe=(X("(pointer: coarse)").matches||!X("(pointer: fine)").matches&&ue)&&!/Windows.*Firefox/.test(He),ft=X("(any-pointer: fine)").matches||X("(any-hover: hover)").matches||bt||!ue,Le=Ae&&(ft||!Pe)?"hybrid":Ae?"touchOnly":"mouseOnly",mt=Le==="mouseOnly"?"mouse":Le==="touchOnly"||Pe?"touch":"mouse",gt=I("<a><!></a>"),wt=I('<button type="button"><!></button>');function Re(Z,r){Me(r,!1);let b=S(r,"href",12),w=S(r,"onclick",12),k=S(r,"onmouseenter",12),i=S(r,"onmouseleave",12),T=S(r,"style",12),z=S(r,"className",12),s=S(r,"isStandalone",12,!1),l=S(r,"children",12);const y=Array.isArray(z())?z():z()?[z()]:[];var d=Q(),_=j(d);{var q=t=>{var o=gt();let a;var u=M(o);ze(u,l),O(o),pe(n=>{Be(o,"href",b()),a=Te(o,1,Ce(y),null,a,n),Ie(o,T())},[()=>({"open-button--standalone":s()})],Ee),ee("mouseenter",o,function(...n){k()?.apply(this,n)}),ee("mouseleave",o,function(...n){i()?.apply(this,n)}),p(t,o)},B=t=>{var o=wt();o.__click=function(...n){w()?.apply(this,n)};let a;var u=M(o);ze(u,l),O(o),pe(n=>{a=Te(o,1,Ce(y),null,a,n),Ie(o,T())},[()=>({"open-button--standalone":s()})],Ee),ee("mouseenter",o,function(...n){k()?.apply(this,n)}),ee("mouseleave",o,function(...n){i()?.apply(this,n)}),p(t,o)};J(_,t=>{b()?t(q):t(B,!1)})}return p(Z,d),Oe({get href(){return b()},set href(t){b(t),x()},get onclick(){return w()},set onclick(t){w(t),x()},get onmouseenter(){return k()},set onmouseenter(t){k(t),x()},get onmouseleave(){return i()},set onmouseleave(t){i(t),x()},get style(){return T()},set style(t){T(t),x()},get className(){return z()},set className(t){z(t),x()},get isStandalone(){return s()},set isStandalone(t){s(t),x()},get children(){return l()},set children(t){l(t),x()}})}et(["click"]);je(Re,{href:{},onclick:{},onmouseenter:{},onmouseleave:{},style:{},className:{},isStandalone:{},children:{}},[],[],!0);var yt=I('<div class="open-button__title"><!></div>'),_t=I('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),xt=I('<div class="open-button__text"><!> <!></div>'),kt=I('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),zt=I('<link rel="stylesheet"/>'),Et=I("<!> <!>",1),St=I('<!> <!> <!> <main class="chat-app"><!></main>',1);function Tt(Z,r){Me(r,!0);const b=(h,v)=>{let f=()=>v?.().theme,N=()=>v?.().language;const c=E(()=>{const{openButtonTitle:m,openButtonDescription:H}=f().translations[N()];return{openButtonTitle:m,openButtonDescription:H}}),C=E(()=>f().fullTheme[e(w)].tokens.svgs),D=E(()=>["open-button",r.buttonClass]);Re(h,{get href(){return f().buttonHref},get onclick(){return r.onclick},onmouseenter:t,onmouseleave:o,get style(){return r.buttonStyle},get className(){return e(D)},get isStandalone(){return e(l)},children:(m,H)=>{var A=kt(),P=j(A);{var R=F=>{var U=xt(),ve=M(U);{var We=Y=>{var L=yt(),K=M(L);ce(K,()=>e(c).openButtonTitle),O(L),p(Y,L)};J(ve,Y=>{e(c).openButtonTitle&&Y(We)})}var Fe=V(ve,2);{var Ye=Y=>{var L=_t(),K=M(L),qe=M(K);ce(qe,()=>e(c).openButtonDescription),O(K),Se(K,ae=>le(_,ae),()=>e(_)),O(L),Se(L,ae=>le(d,ae),()=>e(d)),p(Y,L)};J(Fe,Y=>{e(c).openButtonDescription&&mt==="mouse"&&Y(Ye)})}O(U),p(F,U)};J(P,F=>{(e(c).openButtonTitle||e(c).openButtonDescription)&&F(R)})}var W=V(P,2),G=M(W);ce(G,()=>e(C).avatar),O(W),p(m,A)},$$slots:{default:!0}})};let w=te("light"),k=S(r,"host",7),i=S(r,"onError",7),T=dt(r,["$$slots","$$events","$$legacy","$$host","host","onError"]);const z=async h=>{const f=await(await fetch(`${h}/chatconfig`)).json();return ct.parse(f)},s=async({forceTheme:h,lang:v,apiUrl:f})=>{const N=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await z(f);let c;v?c=nt(v):c=it();const C=st(N),D=Object.keys(C.fullTheme);return le(w,lt(D),!0),{theme:C,language:c}};let l=E(()=>!!k()),y=te(!1),d=te(void 0),_=te(void 0),q=E(()=>e(_)?.offsetWidth??0),B=E(()=>e(_)?.offsetHeight??0);function t(){!e(_)||!e(d)||(e(d).style.width=`${e(q)}px`,e(d).style.height=`${e(B)}px`)}function o(){!e(y)&&e(d)&&(e(d).style.width="0",e(d).style.height="0")}let a=E(()=>s(T).catch(h=>i()(h)));var u=Q();tt(h=>{var v=Q(),f=j(v);{var N=c=>{var C=Q(),D=j(C);Ne(D,()=>e(a),null,(m,H)=>{var A=Et();const P=E(()=>e(H).theme.fullTheme[e(w)]);var R=j(A);ot(R,17,()=>e(P).fontURLs??[],rt,(G,F)=>{var U=zt();pe(()=>Be(U,"href",e(F))),p(G,U)});var W=V(R,2);oe(W,{id:"font-css",get css(){return e(P).fontCSS}}),p(m,A)}),p(c,C)};J(f,c=>{e(l)&&c(N)})}p(h,v)});var n=j(u);return Ne(n,()=>e(a),h=>{},(h,v)=>{var f=Q();const N=E(()=>e(v).theme.fullTheme[e(w)]);var c=j(f);{var C=m=>{var H=St(),A=j(H);const P=E(()=>at(e(N).tokens));oe(A,{id:"theme-css",get css(){return e(P)}});var R=V(A,2);oe(R,{id:"app-css",get css(){return ht}});var W=V(R,2);oe(W,{id:"custom-css",get css(){return e(N).customCSS}});var G=V(W,2),F=M(G);b(F,()=>e(v)),O(G),p(m,H)},D=m=>{b(m,()=>e(v))};J(c,m=>{e(l)?m(C):m(D,!1)})}p(h,f)}),p(Z,u),Oe({get host(){return k()},set host(h){k(h),x()},get onError(){return i()},set onError(h){i(h),x()}})}je(Tt,{host:{},onError:{}},[],[],!0);export{Tt as O};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DTGU2mqM.js","./NZTpNUN0.js","./DUt8zN7X.js","./BiXZbQqO.js","./BynrE7QB.js","./Dq6jck_i.js","./DH3truD-.js","./DCtHJYgu.js","./BmumJykv.js","./D5wkZK_2.js","./DkXqbGhE.js","./CXbcLk5j.js","./DqybDqwy.js","./BzVylwd7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as j,b as rt,_ as st}from"./Dq6jck_i.js";import"./NZTpNUN0.js";import{aq as nt,ac as Mt,T as lt,ai as ge,aj as Ft,af as be,_ as dt,aB as X,aC as ct,i as ut,h as Pt,aF as pt,ao as ht,K as oe,an as Dt,at as Ht,aG as Rt,ag as At,ad as Gt,aH as Jt,aI as Ot,c as K,p as ke,f as T,s as e,g as o,t as V,e as ye,b as u,d as xe,v as te,r as t,u as Q,aE as ft,o as Ut,H as D,a as E,F as i,G as P,aD as Nt,aJ as we,aK as vt,I as mt,L as gt}from"./DUt8zN7X.js";import{a as qe,s as W,d as _t,n as c,e as Z,i as $,I as ee,o as Zt,t as $t,p as Qt,S as s,C as Vt,P as fe,R as bt,q as _e,N as Wt,r as Kt,u as Yt,v as Xt,M as ei,f as ti,w as ii,h as ai,x as oi,y as wt}from"./DH3truD-.js";import{p as ie,s as ri,r as si}from"./BiXZbQqO.js";import{g as ni}from"./BmumJykv.js";import{p as li}from"./DCtHJYgu.js";var di=Gt|Jt|Ot;function ci(p,a,l){new ui(p,a,l)}class ui{#t;#s;#r;#n;#i;#a=null;#e=null;#o=!1;constructor(a,l,r){this.#t=a,this.#r=l,this.#n=r,this.#s=nt,this.#i=Mt(()=>{lt.b=this,ge&&Ft();try{this.#a=be(()=>r(this.#t))}catch(h){this.error(h)}},di),ge&&(this.#t=nt)}#l(a){var l=lt,r=ut,h=Pt;dt(this.#i),X(this.#i),ct(this.#i.ctx);try{return a()}finally{dt(l),X(r),ct(h)}}error(a){var l=this.#r.onerror;let r=this.#r.failed;const h=()=>{this.#e!==null&&At(this.#e,()=>{this.#e=null}),this.#a=this.#l(()=>(this.#o=!1,be(()=>this.#n(this.#t))))};if(this.#o||!l&&!r)throw a;var g=ut;try{X(null),l?.(a,h)}finally{X(g)}this.#a&&(pt(this.#a),this.#a=null),this.#e&&(pt(this.#e),this.#e=null),ge&&(ht(this.#s),oe(),ht(Dt())),r&&Ht(()=>{this.#e=this.#l(()=>{this.#o=!0;try{return be(()=>{r(this.#t,()=>a,()=>h)})}catch(B){return Rt(B,this.#i.parent),null}finally{this.#o=!1}})})}}var pi=T('<div class="swatch svelte-ys8164"><div class="swatch__color svelte-ys8164"></div> <div class="swatch__label svelte-ys8164"> </div></div>');const hi={hash:"svelte-ys8164",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-ys8164 {opacity:1;}}.swatch__color.svelte-ys8164 {aspect-ratio:1;width:100%;}.swatch__label.svelte-ys8164 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
|
|
3
|
-
|
|
4
|
-
@media (min-width: 768px) {display:block;
|
|
5
|
-
}}`};function ae(p,a){ke(a,!1),qe(p,hi);let l=ie(a,"name",12),r=ie(a,"key",12),h=ie(a,"value",12);var g=pi(),B=o(g),z=e(B,2),H=o(z,!0);return t(z),t(g),V(()=>{W(g,"title",`Color ${r()}: ${h()}`),_t(B,`background-color: var(--color-${l()??""}-${r()??""});`),ye(H,r())}),u(p,g),xe({get name(){return l()},set name(y){l(y),te()},get key(){return r()},set key(y){r(y),te()},get value(){return h()},set value(y){h(y),te()}})}K(ae,{name:{},key:{},value:{}},[],[],!0);var vi=T('<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>');function yt(p){var a=vi();u(p,a)}K(yt,{},[],[],!0);var mi=T(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h2>Title h2</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
6
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h3>Title h3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
7
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h4>Title h4</h4> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
8
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <ul><li>Unordered List 1</li> <li>Unordered List 2</li> <li>Unordered List 3</li></ul> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
9
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet sed sed enim in elit vulputate
|
|
10
|
-
finibus.</p> <table><tbody><tr><th>Name</th><th>Role</th><th>Location</th></tr><tr><td>Sarah Hilse</td><td>Software Developer</td><td>Zürich</td></tr><tr><td>Sarah Perrollaz</td><td>User Experience Designer</td><td>Bern</td></tr><tr><td>Sarah Bähler</td><td>User Experience Designer</td><td>Fribourg</td></tr></tbody></table> <ol><li>Ordered List 1</li> <li>Ordered List 2</li> <li>Ordered List 3</li></ol> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
11
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet <a href="https://www.google.com">Check it on google</a> sed sed enim in elit vulputate finibus.</p>`,1);function kt(p){var a=mi();oe(26),u(p,a)}K(kt,{},[],[],!0);const gi=[{type:"user",time:"2025-01-22T08:03:11.044Z",message:"Ok, let's inspect this dummy discussion"},{state:"done",errors:[],type:"bot",time:"2025-03-31T15:37:53.914Z",message:{markdown:`Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind.
|
|
12
|
-
|
|
13
|
-
Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über **End-to-End-Tests mit Jest und Puppeteer** von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert[^4].
|
|
14
|
-
|
|
15
|
-
Zusätzlich gibt es auch Inhalte über **Debugging von E-Mails auf einem Staging-Server**, die einfache Lösungen für Testumgebungen bieten[^3].
|
|
16
|
-
|
|
17
|
-
Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!
|
|
18
|
-
|
|
19
|
-
`,html:`<p>Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. </p>
|
|
20
|
-
<p>Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über <strong>End-to-End-Tests mit Jest und Puppeteer</strong> von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks","considered":true,"referencesIndex":{"all":3,"used":1},"display":{"card":{"title":"How to test your Gutenberg blocks with Jest and Puppeteer · Blog","description":"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.","badge":"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},"listItem":{"title":"How to test your Gutenberg blocks with Jest and Puppeteer · Blog","badge":"www.liip.ch"}}}" data-used-index="1" data-all-index="3"></liipgpt-reference-number>. </p>
|
|
21
|
-
<p>Zusätzlich gibt es auch Inhalte über <strong>Debugging von E-Mails auf einem Staging-Server</strong>, die einfache Lösungen für Testumgebungen bieten <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/debugging-email-on-staging-server","considered":true,"referencesIndex":{"all":2,"used":2},"display":{"card":{"title":"Debugging Email on Staging Server · Blog","description":"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.","badge":"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},"listItem":{"title":"Debugging Email on Staging Server · Blog","badge":"www.liip.ch"}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
|
|
22
|
-
<p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
|
|
23
|
-
`},references:{used:[{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,score:.9,metadata:{},referenceIndex:{all:3,used:1},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}}],all:[{url:"https://www.liip.ch/en/blog/little-test",considered:!0,referenceIndex:{all:0},score:.9,metadata:{},display:{card:{title:"little test · Blog",description:"The text appears to be a placeholder or test entry on a blog, lacking substantive content or context.",badge:"https://www.liip.ch/en/blog/little-test"},listItem:{title:"little test · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,referenceIndex:{all:3,used:1},score:.9,metadata:{},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}}],unused:[{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}}]},id:"eb8a0123-5143-46e2-8e23-d4e6a76a8ebb"}];var bi=T('<link rel="stylesheet"/>'),wi=T("<!> <!> <!> <!> <!>",1),fi=T('<div class="chat-app__loader-container">Loading...</div>'),_i=T(`<div class="container text-container" style="padding-top: 100px;"><h1>Base</h1> <p>This text has the configured text color. This <a href="https://www.liip.ch">anchor</a> has the configured anchor color. This page has the configured background color.</p> <h2 class="h3">Colors</h2> <h3 class="h4">Brand Colors</h3> <div class="color-swatches svelte-eb6y9j"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-eb6y9j"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-eb6y9j"><!></div></div> <div class="container text-container"><hr/> <h1>Abstractions</h1> <p>The following elements are not components, but abstractions only. Their properties are defined in the configuration
|
|
24
|
-
files and are applied to the components that need them.</p> <div class="card transition-colors svelte-eb6y9j">Card</div> <div class="pill transition-colors svelte-eb6y9j">Pill</div></div> <div class="container text-container"><hr/> <h1>Components</h1> <h2>Buttons</h2> <div><div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><button class="btn btn--primary">Primary</button> <button class="btn btn--secondary">Secondary</button> <button class="btn btn--tertiary">Tertiary (optional)</button></div> <div style="display: flex; gap: 1rem;"><button class="btn btn--primary" disabled>Primary</button> <button class="btn btn--secondary" disabled>Secondary</button> <button class="btn btn--tertiary" disabled>Tertiary (optional)</button></div></div> <h2>Avatars</h2> <div style="display: flex; gap: 1rem;"><!> <!></div> <h2>ChatInput</h2> <!> <div class="predefined-questions"><!> <!> <!></div> <h2>References</h2> <div class="references__container"><!> <!></div> <div><p>hover over the reference number to see the tooltip: <liipgpt-reference-number></liipgpt-reference-number> .</p></div> <div style="position: relative;"><a class="reference-number__content transition-colors no-link-styling" href="https://www.liip.ch" target="_blank" rel="noopener noreferrer"><strong>Reference tooltip example</strong> <div class="line-clamp line-clamp--12">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
25
|
-
dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> <div class="reference-number__domain transition-colors"><span class="truncate">www.liip.ch</span></div></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><!> <!> <!></div> <h3>Menu example</h3> <div class="context-box__content svelte-eb6y9j"><ul class="context-box__menu"><li><a class="context-box__menu-item transition-colors" href="https://www.liip.ch/de" target="_blank"><div aria-hidden="true" class="svg svg--externalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m18 6-12 12"></path><path d="m18 17v-11h-11"></path></g></svg></div> <span>Menü Beispiel</span></a></li></ul> <hr class="context-box__separator"/> <div class="context-box__title">Sprache auswählen</div> <ul class="context-box__menu"><li><button class="context-box__menu-item transition-colors active"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Deutsch</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>English</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Français</span></button></li> <li><button class="context-box__menu-item transition-colors"><div aria-hidden="true" class="svg svg--internalLink context-box__menu-item__icon"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2"><path d="m20 12h-17"></path><path d="m13 19 7-7-7-7"></path></g></svg></div> <span>Italiano</span></button></li></ul> <hr class="context-box__separator"/> <div class="color-scheme-selector"><button class="color-scheme-selector__button transition-colors"><div aria-hidden="true" class="svg svg--lightMode"><svg viewBox="0 0 24 24" fill="none"><path d="M18.5625 12C18.5625 10.2595 17.8711 8.59032 16.6404 7.35961C15.4097 6.1289 13.7405 5.4375 12 5.4375C10.2595 5.4375 8.59032 6.1289 7.35961 7.35961C6.1289 8.59032 5.4375 10.2595 5.4375 12C5.4375 13.7405 6.1289 15.4097 7.35961 16.6404C8.59032 17.8711 10.2595 18.5625 12 18.5625C13.7405 18.5625 15.4097 17.8711 16.6404 16.6404C17.8711 15.4097 18.5625 13.7405 18.5625 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 20.4375V22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20.4375 12H22.3125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 3.5625V1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5625 12H1.6875" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.03469 17.9663L4.70813 19.2929" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.9662 17.9663L19.2919 19.2919" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.9672 6.03461L19.2928 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6.03375 6.03461L4.70813 4.70898" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></div> <span>Hell</span></button> <hr class="color-scheme-selector__separator"/> <button class="color-scheme-selector__button transition-colors color-scheme-selector__button--active"><div aria-hidden="true" class="svg svg--darkMode"><svg viewBox="0 0 24 24" fill="none"><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"></path></svg></div> <span>Dunkel</span></button></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-eb6y9j"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg 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><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages"></div> <div class="text-container container" style="padding-bottom: 200px;"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem;"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div>`,3),yi=T('<main class="chat-app svelte-eb6y9j"><div class="chat-app__container svelte-eb6y9j"><div class="chat-app__main svelte-eb6y9j"><!></div></div></main>');const ki={hash:"svelte-eb6y9j",code:`.color-swatches.svelte-eb6y9j {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-eb6y9j,
|
|
26
|
-
.chat-app__container.svelte-eb6y9j {width:100%;height:100%;background:var(--body-background);}.chat-app__container.svelte-eb6y9j {overflow-y:auto;}.chat-app__main.svelte-eb6y9j {background:transparent;}.card.svelte-eb6y9j {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.pill.svelte-eb6y9j {display:inline-flex;max-width:100%;margin-top:var(--spacer-8);padding:var(--spacer-2) var(--spacer-10);border-width:var(--pill-default-border-width);border-radius:var(--pill-default-border-radius);border-color:var(--pill-default-border-color);background:var(--pill-default-background);box-shadow:var(--pill-default-box-shadow);color:var(--pill-default-color);font-weight:700;font-size:var(--font-xs);&:hover {background:var(--pill-default-hover-background);color:var(--pill-default-hover-color);}}.dialog-content.svelte-eb6y9j {position:relative;top:0;left:0;transform:none;}.context-box__content.svelte-eb6y9j {position:relative;}`};function xt(p,a){ke(a,!0),qe(p,ki);let l=ie(a,"data",7),r=P(()=>c.t);Q(()=>{const d={lang:l().options.lang.value,forceTheme:l().options?.["force-theme"]?.value,apiUrl:l().options["api-url"].value,features:""};Ut(()=>c.init(d).catch(b=>{console.error("Failed to init chat logic",b)}))});const h=gi;var g=yi();ft(d=>{var b=D(),M=E(b);{var n=v=>{var x=wi(),k=E(x);Z(k,17,()=>c.themeBase.fontURLs??[],$,(F,I)=>{var A=bi();V(()=>W(A,"href",i(I))),u(F,A)});var C=e(k,2);ee(C,{id:"font-css",get css(){return c.themeBase.fontCSS}});var w=e(C,2);const f=P(()=>ti(c.theme));ee(w,{id:"theme-css",get css(){return i(f)}});var q=e(w,2);ee(q,{id:"app-css",get css(){return Zt}});var m=e(q,2);ee(m,{id:"custom-css",get css(){return c.themeBase.customCSS}}),u(v,x)};j(M,v=>{c.initialized&&v(n)})}u(d,b)});let B;var z=o(g),H=o(z),y=o(H);{var R=d=>{var b=fi();$t(2,b,()=>Qt,()=>({duration:200,delay:300})),u(d,b)},Y=d=>{var b=_i(),M=E(b),n=e(o(M),8),v=o(n);{var x=_=>{var S=D(),G=E(S);Z(G,17,()=>Object.entries(c.theme.colors.brand),$,(J,O)=>{var L=P(()=>we(i(O),2));let U=()=>i(L)[0],N=()=>i(L)[1];ae(J,{name:"brand",get key(){return U()},get value(){return N()}})}),u(_,S)};j(v,_=>{c.theme.colors?.brand&&_(x)})}t(n);var k=e(n,4),C=o(k);{var w=_=>{var S=D(),G=E(S);Z(G,17,()=>Object.entries(c.theme.colors.highlight),$,(J,O)=>{var L=P(()=>we(i(O),2));let U=()=>i(L)[0],N=()=>i(L)[1];ae(J,{name:"highlight",get key(){return U()},get value(){return N()}})}),u(_,S)};j(C,_=>{c.theme?.colors?.highlight&&_(w)})}t(k);var f=e(k,4),q=o(f);{var m=_=>{var S=D(),G=E(S);Z(G,17,()=>Object.entries(c.theme.colors.grey),$,(J,O)=>{var L=P(()=>we(i(O),2));let U=()=>i(L)[0],N=()=>i(L)[1];ae(J,{name:"grey",get key(){return U()},get value(){return N()}})}),u(_,S)};j(q,_=>{c.theme?.colors?.grey&&_(m)})}t(f),t(M);var F=e(M,4),I=e(o(F),10),A=o(I);s(A,{name:"avatar",class:"introduction__avatar"});var qt=e(A,2);s(qt,{name:"avatar",class:"message__bot-avatar"}),t(I);var Ce=e(I,4);Vt(Ce,{onSubmit:()=>{}});var re=e(Ce,2),Se=o(re);fe(Se,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{}});var Te=e(Se,2);fe(Te,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{}});var Ct=e(Te,2);fe(Ct,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{}}),t(re);var se=e(re,4),Be=o(se);bt(Be,{title:"Reference title",number:1,domainName:"www.liip.ch",url:"https://www.liip.ch"});var St=e(Be,2);bt(St,{title:"Reference title",number:2,domainName:"www.liip.ch",url:"https://www.liip.ch"}),t(se);var ne=e(se,2),Ie=o(ne),le=e(o(Ie));_e(le,"data-source",JSON.stringify({url:"https://www.liip.ch",considered:!0,referencesIndex:{all:3,used:1},display:{card:{title:"Reference tooltip example",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",badge:"www.liip.ch"}}})),_e(le,"data-used-index","1"),_e(le,"data-all-index","3"),oe(),t(Ie),t(ne);var de=e(ne,6),Ee=o(de);Wt(Ee,{});var Le=e(Ee,2);Kt(Le,{get chatLogic(){return c}});var Tt=e(Le,2);Yt(Tt,{onclick:()=>{}}),t(de);var je=e(de,8),ze=e(o(je),2),ce=o(ze),Me=o(ce);Xt(Me,{get classificationConfig(){return c.data.chatConfig.classification},impact:0,quality:0});var ue=e(Me,2),pe=o(ue),Bt=o(pe,!0);t(pe);var It=e(pe,2);t(ue);var Fe=e(ue,2),he=o(Fe),Et=o(he,!0);t(he);var Lt=e(he,2);t(Fe),t(ce),t(ze),t(je),oe(4),t(F);var ve=e(F,2),jt=e(o(ve),4);yt(jt),t(ve);var me=e(ve,4);Z(me,21,()=>h,$,(_,S)=>{ei(_,{get message(){return i(S)},get logic(){return c},onmessageupdate:()=>{}})}),t(me);var Pe=e(me,2),De=e(o(Pe),4);kt(De);var He=e(De,6),Re=o(He);s(Re,{name:"predefinedQuestion"});var Ae=e(Re,2);s(Ae,{name:"edit"});var Ge=e(Ae,2);s(Ge,{name:"newConversation"});var Je=e(Ge,2);s(Je,{name:"voteUp"});var Oe=e(Je,2);s(Oe,{name:"voteDown"});var Ue=e(Oe,2);s(Ue,{name:"retry"});var Ne=e(Ue,2);s(Ne,{name:"message"});var Ze=e(Ne,2);s(Ze,{name:"thread"});var $e=e(Ze,2);s($e,{name:"submit"});var Qe=e($e,2);s(Qe,{name:"expand"});var Ve=e(Qe,2);s(Ve,{name:"help"});var We=e(Ve,2);s(We,{name:"attach"});var Ke=e(We,2);s(Ke,{name:"record"});var Ye=e(Ke,2);s(Ye,{name:"reward"});var Xe=e(Ye,2);s(Xe,{name:"share"});var et=e(Xe,2);s(et,{name:"audio"});var tt=e(et,2);s(tt,{name:"copy"});var it=e(tt,2);s(it,{name:"dismiss"});var at=e(it,2);s(at,{name:"menu"});var ot=e(at,2);s(ot,{name:"lightMode"});var zt=e(ot,2);s(zt,{name:"darkMode"}),t(He),t(Pe),V(()=>{ye(Bt,i(r).feedbackFormMessage),W(It,"placeholder",i(r).feedbackFormMessagePlaceholder),ye(Et,i(r).feedbackFormEmail),W(Lt,"placeholder",i(r).feedbackFormEmailPlaceholder)}),Nt("submit",ce,async()=>{}),u(d,b)};j(y,d=>{c.initialized?d(Y,!1):d(R)})}return t(H),t(z),t(g),V(d=>B=_t(g,"",B,d),[()=>({"color-scheme":c.colorScheme})]),u(p,g),xe({get data(){return l()},set data(d){l(d),te()}})}K(xt,{data:{}},[],[],!0);var xi=T('<div id="chat-wrapper" class="svelte-1h9zc1h"><div></div> <!> <div></div></div>'),qi=T('<div id="preview" class="svelte-1h9zc1h"><iframe title="sidebar" id="sidebar" class="svelte-1h9zc1h"></iframe> <!></div>');const Ci={hash:"svelte-1h9zc1h",code:`html,
|
|
27
|
-
body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1h9zc1h {width:500px;height:100%;border:none;}#preview.svelte-1h9zc1h {display:flex;align-items:center;justify-content:center;width:100%;height:100%;}#chat-wrapper.svelte-1h9zc1h {container-name:preview-container;
|
|
28
|
-
/* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}`};function Si(p,a){ke(a,!0),qe(p,Ci);let l=si(a,["$$slots","$$events","$$legacy","$$host"]),r=P(()=>a.data);Q(()=>{window.onmessage=function(n){if(typeof n.data=="string"&&n.data.startsWith("liipgpt-url:")){const v=new URLSearchParams(n.data.replace("liipgpt-url:",""));ni("?"+v.toString(),{replaceState:!0})}}});const h=n=>`/build/${n}/liipgpt-${n}.iife.js`,g=async n=>{n==="build"&&(await import(h("chat")),await import(h("button"))),n==="dev"&&(await st(()=>import("./DTGU2mqM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),await st(()=>import("./BzVylwd7.js"),__vite__mapDeps([13,1,2,3,12,5,6,7,8,9,10,11]),import.meta.url)),n==="server"&&(import(wt(a.data.options,"chat")),import(wt(a.data.options,"button")))};let B="server",z=P(()=>a.data.options?.["preview-mode"]?.value??B);Q(()=>{g(i(z))});const H=`./sidebar${li.url.search}`;let y=mt(void 0),R=mt(void 0);const Y=(n,v)=>{const x=document.createElement("script"),k=document.createTextNode(v);x.appendChild(k),n.replaceChildren(x)};Q(()=>{i(y)&&Y(i(y),i(r).options.CHAT_CONFIG_OVERRIDE.value||"")}),Q(()=>{i(R)&&Y(i(R),i(r).options.onclosechat.value||"")});var d=qi();ft(n=>{var v=D(),x=E(v);{var k=(C,w)=>{{var f=m=>{vt.title="LiipGPT Configurator | Components"},q=m=>{vt.title="LiipGPT Configurator"};j(C,m=>{i(r).options["show-components"].value?m(f):m(q,!1)},w)}};j(x,C=>{C(k,!1)})}u(n,v)});var b=o(d),M=e(b,2);ii(M,()=>i(r),n=>{var v=D(),x=E(v);{var k=w=>{var f=D(),q=E(f);ci(q,{onerror:m=>console.error("Rendering error of components",m)},m=>{xt(m,ri(()=>l))}),u(w,f)},C=w=>{var f=xi(),q=o(f);rt(q,I=>gt(y,I),()=>i(y));var m=e(q,2);ai(m,()=>oi(i(r).options));var F=e(m,2);rt(F,I=>gt(R,I),()=>i(R)),t(f),u(w,f)};j(x,w=>{i(r).options["show-components"].value?w(k):w(C,!1)})}u(n,v)}),t(d),V(()=>W(b,"src",H)),u(p,d),xe()}K(Si,{},[],[],!0);export{Si as _,ci as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as a,u as v,h as e,i,j as g,k as y,m as f,n as b,o as c,q as d,v as x,w as h,x as C,y as k,z as S,A as w,B as A,C as j,D}from"./DUt8zN7X.js";function z(){return i===null&&g(),(i.ac??=new AbortController).signal}function _(t){e===null&&a(),b&&e.l!==null?u(e).m.push(t):v(()=>{const n=c(t);if(typeof n=="function")return n})}function E(t){e===null&&a(),_(()=>()=>c(t))}function M(t,n,{bubbles:l=!1,cancelable:s=!1}={}){return new CustomEvent(t,{detail:n,bubbles:l,cancelable:s})}function O(){const t=e;return t===null&&a(),(n,l,s)=>{const o=t.s.$$events?.[n];if(o){const p=y(o)?o.slice():[o],r=M(n,l,s);for(const m of p)m.call(t.x,r);return!r.defaultPrevented}return!0}}function P(t){e===null&&a(),e.l===null&&f(),u(e).b.push(t)}function U(t){e===null&&a(),e.l===null&&f(),u(e).a.push(t)}function u(t){var n=t.l;return n.u??={a:[],b:[],m:[]}}const q=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:U,beforeUpdate:P,createEventDispatcher:O,createRawSnippet:d,flushSync:x,getAbortSignal:z,getAllContexts:h,getContext:C,hasContext:k,hydrate:S,mount:w,onDestroy:E,onMount:_,setContext:A,tick:j,unmount:D,untrack:c},Symbol.toStringTag,{value:"Module"}));export{E as a,_ as o,q as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as d,a9 as m,u,au as i,o as h,av as b,F as g,aw as k,V as v,ax as x}from"./DUt8zN7X.js";import{s as y,p as c}from"./BmumJykv.js";function V(r=!1){const t=d,e=t.l.u;if(!e)return;let o=()=>k(t.s);if(r){let a=0,s={};const _=v(()=>{let l=!1;const f=t.s;for(const n in f)f[n]!==s[n]&&(s[n]=f[n],l=!0);return l&&a++,a});o=()=>g(_)}e.b.length&&m(()=>{p(t,o),i(e.b)}),u(()=>{const a=h(()=>e.m.map(b));return()=>{for(const s of a)typeof s=="function"&&s()}}),e.a.length&&u(()=>{p(t,o),i(e.a)})}function p(r,t){if(r.l.s)for(const e of r.l.s)g(e);t()}x();const $={get error(){return c.error},get status(){return c.status},get url(){return c.url}};y.updated.check;const j=$;export{V as i,j as p};
|