@liip/liipgpt 3.6.1 → 3.6.3

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.
Files changed (43) hide show
  1. package/button/liipgpt-button.iife.js +31 -31
  2. package/chat/liipgpt-chat.iife.js +15 -15
  3. package/config/index.cjs +7 -1
  4. package/config/index.d.ts +14 -2
  5. package/config/index.js +7 -1
  6. package/configurator/_app/env.js +1 -1
  7. package/configurator/_app/immutable/chunks/-NcnoUoN.js +74 -0
  8. package/configurator/_app/immutable/chunks/{DzLbPreo.js → 6JdeEzKi.js} +1 -1
  9. package/configurator/_app/immutable/chunks/{CnzkQxWo.js → BsL0-YLl.js} +1 -1
  10. package/configurator/_app/immutable/chunks/C4ORIoWK.js +1 -0
  11. package/configurator/_app/immutable/chunks/{BdBqI4to.js → C59SVKNf.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{CwB4sTdn.js → CKIDNEuR.js} +1 -1
  13. package/configurator/_app/immutable/chunks/CZiOHSGl.js +1 -0
  14. package/configurator/_app/immutable/chunks/{DFfTn9KD.js → Cz0dIq0O.js} +1 -1
  15. package/configurator/_app/immutable/chunks/D6Qx_EAy.js +29 -0
  16. package/configurator/_app/immutable/chunks/D7xeAlKo.js +143 -0
  17. package/configurator/_app/immutable/chunks/DembPZun.js +2 -0
  18. package/configurator/_app/immutable/chunks/{BpIo1_hS.js → GwQP32Cz.js} +1 -1
  19. package/configurator/_app/immutable/chunks/NtMAcZ7G.js +1 -0
  20. package/configurator/_app/immutable/chunks/{DABlUYYh.js → Nw8j0Xyw.js} +1 -1
  21. package/configurator/_app/immutable/chunks/{BF-6zfFW.js → QyXFn05f.js} +2 -2
  22. package/configurator/_app/immutable/entry/{app.BPWZQddg.js → app.C_qls3uJ.js} +2 -2
  23. package/configurator/_app/immutable/entry/start.CJocbWmY.js +1 -0
  24. package/configurator/_app/immutable/nodes/{0.DxuzEfw5.js → 0.Z8aHQ8Ms.js} +2 -2
  25. package/configurator/_app/immutable/nodes/{1.B-APb2B8.js → 1.D_R2KrSw.js} +1 -1
  26. package/configurator/_app/immutable/nodes/{2.CfEhZdph.js → 2.BoZGqQ9G.js} +6 -4
  27. package/configurator/_app/immutable/nodes/{3.Bn5RTTEX.js → 3.Bg8nwFnb.js} +1 -1
  28. package/configurator/_app/version.json +1 -1
  29. package/configurator/index.html +6 -6
  30. package/configurator/sidebar.html +6 -6
  31. package/index.cjs +7 -1
  32. package/index.d.ts +28 -4
  33. package/index.js +7 -1
  34. package/package.json +1 -1
  35. package/search-summary/liipgpt-search-summary.iife.js +13 -13
  36. package/configurator/_app/immutable/chunks/B5M3tt1h.js +0 -70
  37. package/configurator/_app/immutable/chunks/BLUZvgID.js +0 -2
  38. package/configurator/_app/immutable/chunks/BgnzWwt-.js +0 -1
  39. package/configurator/_app/immutable/chunks/CX0dfddQ.js +0 -1
  40. package/configurator/_app/immutable/chunks/DFBUyDYh.js +0 -29
  41. package/configurator/_app/immutable/chunks/dq9OZHm7.js +0 -143
  42. package/configurator/_app/immutable/chunks/vVBttUZh.js +0 -1
  43. package/configurator/_app/immutable/entry/start.CpjUPnYE.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DxuzEfw5.js","../chunks/CibALFW0.js","../chunks/B5M3tt1h.js","../chunks/C00ruT0L.js","../chunks/DV91TmsB.js","../chunks/MRyhzcyW.js","../chunks/CFKVnMbq.js","../chunks/Ct405RO9.js","../chunks/tFLMI64R.js","../nodes/1.B-APb2B8.js","../chunks/DABlUYYh.js","../chunks/DzLbPreo.js","../chunks/DVeOoWpz.js","../chunks/Bo0U8J3e.js","../nodes/2.CfEhZdph.js","../chunks/DjVmpym-.js","../chunks/BF-6zfFW.js","../chunks/BpIo1_hS.js","../chunks/CX0dfddQ.js","../chunks/BgnzWwt-.js","../chunks/DFBUyDYh.js","../chunks/CqCdl07t.js","../chunks/CwB4sTdn.js","../nodes/3.Bn5RTTEX.js","../chunks/dq9OZHm7.js","../chunks/BdBqI4to.js"])))=>i.map(i=>d[i]);
2
- import{Et as e,F as t,G as n,H as r,It as i,J as a,Lt as o,Ot as s,Q as c,Wt as l,Y as u,a as d,at as f,bt as p,ht as m,i as h,jt as g,mt as _,o as v,pt as y,q as b,r as x,st as S,u as C,wt as w,xt as T,yt as E}from"../chunks/C00ruT0L.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=u(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=u(`<!> <!>`,1);function j(u,d){o(d,!0);let h=v(d,`stores`,7),D=v(d,`page`,7),O=v(d,`constructors`,7),j=v(d,`components`,23,()=>[]),M=v(d,`form`,7),N=v(d,`data_0`,7,null),P=v(d,`data_1`,7,null);m(()=>h().page.set(D())),_(()=>{h(),D(),O(),j(),M(),N(),P(),h().page.notify()});let F=e(!1),I=e(!1),L=e(null);x(()=>{let e=h().page.subscribe(()=>{f(F)&&(w(I,!0),S().then(()=>{w(L,document.title||`untitled page`,!0)}))});return w(F,!0),e});let R=s(()=>O()[1]);var z={get stores(){return h()},set stores(e){h(e),g()},get page(){return D()},set page(e){D(e),g()},get constructors(){return O()},set constructors(e){O(e),g()},get components(){return j()},set components(e=[]){j(e),g()},get form(){return M()},set form(e){M(e),g()},get data_0(){return N()},set data_0(e=null){N(e),g()},get data_1(){return P()},set data_1(e=null){P(e),g()}},B=A(),V=p(B),H=e=>{let n=s(()=>O()[0]);var r=a();t(p(r),()=>f(n),(e,n)=>{C(n(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,n)=>{var r=a();t(p(r),()=>f(R),(e,t)=>{C(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),b(e,r)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),b(e,r)},U=e=>{let n=s(()=>O()[0]);var r=a();t(p(r),()=>f(n),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),b(e,r)};r(V,e=>{O()[1]?e(H):e(U,-1)});var W=T(V,2),G=e=>{var t=k(),i=E(t),a=e=>{var t=c();y(()=>n(t,f(L))),b(e,t)};r(i,e=>{f(I)&&e(a)}),l(t),b(e,t)};return r(W,e=>{f(F)&&e(G)}),b(u,B),i(z)}h(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=d(j),N=[()=>D(()=>import(`../nodes/0.DxuzEfw5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.B-APb2B8.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.CfEhZdph.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,20,4,21,22,11,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.Bn5RTTEX.js`),__vite__mapDeps([23,10,3,1,2,16,17,5,18,19,15,20,4,21,22,11,24,25,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Z8aHQ8Ms.js","../chunks/CibALFW0.js","../chunks/-NcnoUoN.js","../chunks/C00ruT0L.js","../chunks/DV91TmsB.js","../chunks/MRyhzcyW.js","../chunks/CFKVnMbq.js","../chunks/Ct405RO9.js","../chunks/tFLMI64R.js","../nodes/1.D_R2KrSw.js","../chunks/Nw8j0Xyw.js","../chunks/6JdeEzKi.js","../chunks/DVeOoWpz.js","../chunks/Bo0U8J3e.js","../nodes/2.BoZGqQ9G.js","../chunks/DjVmpym-.js","../chunks/QyXFn05f.js","../chunks/GwQP32Cz.js","../chunks/CZiOHSGl.js","../chunks/C4ORIoWK.js","../chunks/D6Qx_EAy.js","../chunks/CqCdl07t.js","../chunks/CKIDNEuR.js","../nodes/3.Bg8nwFnb.js","../chunks/D7xeAlKo.js","../chunks/C59SVKNf.js"])))=>i.map(i=>d[i]);
2
+ import{Et as e,F as t,G as n,H as r,It as i,J as a,Lt as o,Ot as s,Q as c,Wt as l,Y as u,a as d,at as f,bt as p,ht as m,i as h,jt as g,mt as _,o as v,pt as y,q as b,r as x,st as S,u as C,wt as w,xt as T,yt as E}from"../chunks/C00ruT0L.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=u(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=u(`<!> <!>`,1);function j(u,d){o(d,!0);let h=v(d,`stores`,7),D=v(d,`page`,7),O=v(d,`constructors`,7),j=v(d,`components`,23,()=>[]),M=v(d,`form`,7),N=v(d,`data_0`,7,null),P=v(d,`data_1`,7,null);m(()=>h().page.set(D())),_(()=>{h(),D(),O(),j(),M(),N(),P(),h().page.notify()});let F=e(!1),I=e(!1),L=e(null);x(()=>{let e=h().page.subscribe(()=>{f(F)&&(w(I,!0),S().then(()=>{w(L,document.title||`untitled page`,!0)}))});return w(F,!0),e});let R=s(()=>O()[1]);var z={get stores(){return h()},set stores(e){h(e),g()},get page(){return D()},set page(e){D(e),g()},get constructors(){return O()},set constructors(e){O(e),g()},get components(){return j()},set components(e=[]){j(e),g()},get form(){return M()},set form(e){M(e),g()},get data_0(){return N()},set data_0(e=null){N(e),g()},get data_1(){return P()},set data_1(e=null){P(e),g()}},B=A(),V=p(B),H=e=>{let n=s(()=>O()[0]);var r=a();t(p(r),()=>f(n),(e,n)=>{C(n(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,n)=>{var r=a();t(p(r),()=>f(R),(e,t)=>{C(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),b(e,r)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),b(e,r)},U=e=>{let n=s(()=>O()[0]);var r=a();t(p(r),()=>f(n),(e,t)=>{C(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),b(e,r)};r(V,e=>{O()[1]?e(H):e(U,-1)});var W=T(V,2),G=e=>{var t=k(),i=E(t),a=e=>{var t=c();y(()=>n(t,f(L))),b(e,t)};r(i,e=>{f(I)&&e(a)}),l(t),b(e,t)};return r(W,e=>{f(F)&&e(G)}),b(u,B),i(z)}h(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=d(j),N=[()=>D(()=>import(`../nodes/0.Z8aHQ8Ms.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.D_R2KrSw.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.BoZGqQ9G.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,20,4,21,22,11,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.Bg8nwFnb.js`),__vite__mapDeps([23,10,3,1,2,16,17,5,18,19,15,20,4,21,22,11,24,25,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
@@ -0,0 +1 @@
1
+ import"../chunks/C00ruT0L.js";import{n as e,s as t}from"../chunks/Nw8j0Xyw.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
@@ -1,4 +1,4 @@
1
- import{n as e}from"../chunks/CibALFW0.js";import{I as t,It as n,J as r,Lt as i,bt as a,i as o,jt as s,o as c,q as l}from"../chunks/C00ruT0L.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/Ct405RO9.js";import{l as d,n as f,o as p,t as m}from"../chunks/B5M3tt1h.js";import"../chunks/DV91TmsB.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";var h=async e=>await(await e(`https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names`)).json(),g=[`baselcitygpt`],_=async e=>{let t=await h(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>g.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(n)},v=`/**
1
+ import{n as e}from"../chunks/CibALFW0.js";import{I as t,It as n,J as r,Lt as i,bt as a,i as o,jt as s,o as c,q as l}from"../chunks/C00ruT0L.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/Ct405RO9.js";import{l as d,n as f,o as p,t as m}from"../chunks/-NcnoUoN.js";import"../chunks/DV91TmsB.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";var h=async e=>await(await e(`https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names`)).json(),g=[`baselcitygpt`],_=async e=>{let t=await h(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>g.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(n)},v=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -154,4 +154,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
154
154
  </g>
155
155
  </svg>
156
156
  </div>
157
- `,b={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:d,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},"additional-start-parameters":{type:`string`,value:`{"availableTopicIds":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:y,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:v,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:f,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`}},x=async e=>{let t=await _(e),n=b;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},S=e({load:()=>E,prerender:()=>!0,ssr:()=>!1}),C=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},w,T=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},E=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await x(t),i=C(n,T(e.searchParams)),a=!!(w&&w[`api-org`].value!==i[`api-org`].value),o=!!(w&&w[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!w||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return w=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function D(e,o){i(o,!0);let u=c(o,`children`,7);var d={get children(){return u()},set children(e){u(e),s()}},f=r();return t(a(f),u),l(e,f),n(d)}o(D,{children:{}},[],[],{mode:`open`});export{D as component,S as universal};
157
+ `,b={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:d,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"additional-start-parameters":{type:`string`,value:`{"availableTopicIds":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:y,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:v,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:f,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`}},x=async e=>{let t=await _(e),n=b;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},S=e({load:()=>E,prerender:()=>!0,ssr:()=>!1}),C=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},w,T=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},E=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await x(t),i=C(n,T(e.searchParams)),a=!!(w&&w[`api-org`].value!==i[`api-org`].value),o=!!(w&&w[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!w||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return w=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function D(e,o){i(o,!0);let u=c(o,`children`,7);var d={get children(){return u()},set children(e){u(e),s()}},f=r();return t(a(f),u),l(e,f),n(d)}o(D,{children:{}},[],[],{mode:`open`});export{D as component,S as universal};
@@ -1 +1 @@
1
- import{G as e,It as t,Lt as n,Wt as r,Y as i,bt as a,i as o,l as s,pt as c,q as l,xt as u,yt as d}from"../chunks/C00ruT0L.js";import"../chunks/DABlUYYh.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DVeOoWpz.js";import{t as f}from"../chunks/DzLbPreo.js";var p=i(`<h1> </h1> <p> </p>`,1);function m(i,o){n(o,!1),s();var m=p(),h=a(m),g=d(h,!0);r(h);var _=u(h,2),v=d(_,!0);r(_),c(()=>{e(g,f.status),e(v,f.error?.message)}),l(i,m),t()}o(m,{},[],[],{mode:`open`});export{m as component};
1
+ import{G as e,It as t,Lt as n,Wt as r,Y as i,bt as a,i as o,l as s,pt as c,q as l,xt as u,yt as d}from"../chunks/C00ruT0L.js";import"../chunks/Nw8j0Xyw.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DVeOoWpz.js";import{t as f}from"../chunks/6JdeEzKi.js";var p=i(`<h1> </h1> <p> </p>`,1);function m(i,o){n(o,!1),s();var m=p(),h=a(m),g=d(h,!0);r(h);var _=u(h,2),v=d(_,!0);r(_),c(()=>{e(g,f.status),e(v,f.error?.message)}),l(i,m),t()}o(m,{},[],[],{mode:`open`});export{m as component};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/vVBttUZh.js","../chunks/BF-6zfFW.js","../chunks/BpIo1_hS.js","../chunks/C00ruT0L.js","../chunks/CibALFW0.js","../chunks/MRyhzcyW.js","../chunks/CX0dfddQ.js","../chunks/BgnzWwt-.js","../chunks/DjVmpym-.js","../chunks/DFBUyDYh.js","../chunks/DV91TmsB.js","../chunks/CqCdl07t.js","../chunks/dq9OZHm7.js","../chunks/BdBqI4to.js","../chunks/CFKVnMbq.js","../chunks/DVeOoWpz.js","../chunks/Bo0U8J3e.js","../chunks/BmUm-Ak4.js","../chunks/DFfTn9KD.js","../chunks/BLUZvgID.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
2
- import{A as e,B as t,E as n,Et as r,G as i,H as a,It as o,J as s,Kt as c,Lt as l,M as u,O as d,Ot as f,R as p,T as m,Ut as h,V as g,Wt as _,Y as v,_t as y,at as b,b as x,bt as S,c as C,ct as ee,i as w,jt as T,k as E,kt as D,mt as O,nt as k,o as A,pt as j,q as M,s as te,u as N,ut as P,v as F,w as I,wt as L,xt as R,yt as z,z as B}from"../chunks/C00ruT0L.js";import{t as V}from"../chunks/DABlUYYh.js";import"../chunks/Bo0U8J3e.js";import{t as H}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{a as U,c as W,r as G,s as ne}from"../chunks/B5M3tt1h.js";import"../chunks/DV91TmsB.js";import"../chunks/DFBUyDYh.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import{t as re}from"../chunks/DzLbPreo.js";import{t as K}from"../chunks/CwB4sTdn.js";import{n as q,t as J}from"../chunks/BpIo1_hS.js";import"../chunks/CX0dfddQ.js";import{n as Y,r as X}from"../chunks/BgnzWwt-.js";import{R as Z,a as ie,c as ae,d as oe,h as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me,u as he,z as ge}from"../chunks/BF-6zfFW.js";var _e=v(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),ve={hash:`svelte-1inuijp`,code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/NtMAcZ7G.js","../chunks/QyXFn05f.js","../chunks/GwQP32Cz.js","../chunks/C00ruT0L.js","../chunks/CibALFW0.js","../chunks/MRyhzcyW.js","../chunks/CZiOHSGl.js","../chunks/C4ORIoWK.js","../chunks/DjVmpym-.js","../chunks/D6Qx_EAy.js","../chunks/DV91TmsB.js","../chunks/CqCdl07t.js","../chunks/D7xeAlKo.js","../chunks/C59SVKNf.js","../chunks/CFKVnMbq.js","../chunks/DVeOoWpz.js","../chunks/Bo0U8J3e.js","../chunks/BmUm-Ak4.js","../chunks/Cz0dIq0O.js","../chunks/DembPZun.js","../chunks/tFLMI64R.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,B as t,E as n,Et as r,G as i,H as a,It as o,J as s,Kt as c,Lt as l,M as u,O as d,Ot as f,R as p,T as m,Ut as h,V as g,Wt as _,Y as v,_t as y,at as b,b as x,bt as S,c as C,ct as ee,i as w,jt as T,k as E,kt as D,mt as O,nt as k,o as A,pt as j,q as M,s as te,u as N,ut as P,v as F,w as I,wt as L,xt as R,yt as z,z as B}from"../chunks/C00ruT0L.js";import{t as V}from"../chunks/Nw8j0Xyw.js";import"../chunks/Bo0U8J3e.js";import{t as H}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";import{a as U,c as W,r as G,s as ne}from"../chunks/-NcnoUoN.js";import"../chunks/DV91TmsB.js";import"../chunks/D6Qx_EAy.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import{t as re}from"../chunks/6JdeEzKi.js";import{t as K}from"../chunks/CKIDNEuR.js";import{n as q,t as J}from"../chunks/GwQP32Cz.js";import"../chunks/CZiOHSGl.js";import{n as Y,r as X}from"../chunks/C4ORIoWK.js";import{R as Z,a as ie,c as ae,d as oe,h as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me,u as he,z as ge}from"../chunks/QyXFn05f.js";var _e=v(`<div class="swatch svelte-1inuijp"><div class="swatch__color svelte-1inuijp"></div> <div class="swatch__label svelte-1inuijp"> </div></div>`),ve={hash:`svelte-1inuijp`,code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-1inuijp {opacity:1;}}.swatch__color.svelte-1inuijp {aspect-ratio:1;width:100%;}.swatch__label.svelte-1inuijp {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
3
3
 
4
4
  @media (min-width: 768px) {display:block;
5
5
  }}`};function ye(e,t){l(t,!1),E(e,ve);let n=A(t,`name`,12),r=A(t,`key`,12),a=A(t,`value`,12);var s={get name(){return n()},set name(e){n(e),T()},get key(){return r()},set key(e){r(e),T()},get value(){return a()},set value(e){a(e),T()}},c=_e(),u=z(c),d=R(u,2),f=z(d,!0);return _(d),_(c),j(()=>{F(c,`title`,`Color ${r()}: ${a()}`),I(u,`background-color: var(--color-${n()??``}-${r()??``});`),i(f,r())}),M(e,c),o(s)}w(ye,{name:{},key:{},value:{}},[],[],{mode:`open`});var be=v(`<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" aria-hidden="true"><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" aria-hidden="true"><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="" aria-hidden="true"><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" aria-hidden="true"><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 xe(e){M(e,be())}w(xe,{},[],[],{mode:`open`});var Se=v(`<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> <p class="text-sm svelte-4x0tmq">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
@@ -42,6 +42,8 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
42
42
  &:has(.has-bg-image:where(.svelte-1uha8ag)),
43
43
  &:has(#preview-form:where(.svelte-1uha8ag)) {height:auto;& .sidebar-slot:where(.svelte-1uha8ag) {position:sticky;top:0;height:100vh;}}}#chat-wrapper.svelte-1uha8ag {container-name:preview-container;
44
44
  /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-chat {display:block;width:100%;height:100%;}#chat-wrapper.svelte-1uha8ag liipgpt-button {display:inline-block;}#chat-wrapper.search-summary-preview.svelte-1uha8ag {
45
- /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;padding:1.5rem;}#chat-wrapper.search-summary-preview.svelte-1uha8ag liipgpt-search-summary {display:block;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
45
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;padding:1.5rem;}#chat-wrapper.search-summary-preview.svelte-1uha8ag liipgpt-search-summary {display:block;}liipgpt-search-summary:not(:defined) {visibility:hidden;}liipgpt-search-summary:not(:defined) > * {display:none;}liipgpt-search-summary > [slot] {display:none;}
46
+
47
+ /* Keep widget hidden until the component marks itself ready (avoids barebone/unthemed flash) */liipgpt-search-summary .search-summary:not(.search-summary--ready) {opacity:0;}#chat-wrapper.has-bg-image.svelte-1uha8ag,
46
48
  #chat-wrapper.svelte-1uha8ag:has(#preview-form:where(.svelte-1uha8ag)) {
47
- /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(t,i){l(i,!0),E(t,Ve);let c=te(i,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),u=f(()=>i.data);O(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&V(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let d=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),x=async e=>{e===`build`&&(await H(()=>import(d(`chat`)),[],import.meta.url),await H(()=>import(d(`button`)),[],import.meta.url),await H(()=>import(d(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/vVBttUZh.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),await H(()=>import(`../chunks/DFfTn9KD.js`),__vite__mapDeps([18,2,3,4,5,6,10,13,7,8,9,14,16,17]),import.meta.url),await H(()=>import(`../chunks/BLUZvgID.js`),__vite__mapDeps([19,8,2,3,4,5,6,11,14,16,20]),import.meta.url)),e===`server`&&(H(()=>import(U(i.data.options,`chat`)),[],import.meta.url),H(()=>import(U(i.data.options,`button`)),[],import.meta.url),H(()=>import(U(i.data.options,`search-summary`)),[],import.meta.url))},ee=f(()=>i.data.options?.[`preview-mode`]?.value??`server`);O(()=>{x(b(ee))});let w=`./sidebar${re.url.search}`,T=r(void 0),k=r(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};O(()=>{b(T)&&A(b(T),b(u).options.CHAT_CONFIG_OVERRIDE.value||``)}),O(()=>{b(k)&&b(u).embedTab===`chat`?A(b(k),b(u).options.onclosechat.value||``):b(k)&&b(k).replaceChildren()});let I=f(()=>b(u)&&b(u).options[`preview-components`].value),B=f(()=>b(u).embedTab===`chat`),q=f(()=>b(u).embedTab===`search-summary`);O(()=>{if(!b(q)){W();return}let e=b(u).options[`use-chat-config`]?.value?``:b(u).options[`host-css`]?.value??``;e?ne(e):W()});var J=Be();e(`1uha8ag`,e=>{var t=s(),n=S(t),r=e=>{P(()=>{y.title=`LiipGPT Configurator | Components`})},i=e=>{P(()=>{y.title=`LiipGPT Configurator`})};a(n,e=>{b(u).options[`preview-components`].value?e(r,1):e(i,-1)}),M(e,t)});var Y=z(J);let X;var Z=z(Y),ie=e=>{var t=Ie();j(()=>F(t,`src`,w)),M(e,t)};a(Z,e=>{b(u).options[`hide-sidebar`].value||e(ie)}),_(Y);var ae=R(Y,2),oe=e=>{K(e,{mode:`show`})};a(ae,e=>{b(u).options[`hide-sidebar`].value&&e(oe)}),g(R(ae,2),()=>b(u),e=>{var t=s(),n=S(t),r=e=>{var t=s();D(S(t),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,C(()=>c))}),M(e,t)},i=e=>{var t=ze();let n;var r=z(t),i=e=>{var t=Le(),n=R(z(t),6),r=z(n),i=R(z(r),6),a=R(z(i),2),o=R(z(a),14),s=R(z(o),2),c=z(s);c.value=c.__value=``;var l=R(c);l.value=l.__value=`ch`;var u=R(l);u.value=u.__value=`de`;var d=R(u);d.value=d.__value=`at`,_(s),_(o);var f=R(o,12),p=R(z(f),2),m=z(p);m.value=m.__value=``;var g=R(m);g.value=g.__value=`a`;var v=R(g);v.value=v.__value=`b`;var y=R(v);y.value=y.__value=`c`,_(p),_(f),h(2),_(a),_(i),h(16),_(r),h(2),_(n),_(t),M(e,t)};a(r,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-form`].value&&e(i)});var o=R(r,2),c=e=>{var t=s(),n=S(t),r=e=>{var t=Re();j(()=>F(t,`src`,b(u).options[`preview-background`].value)),M(e,t)},i=f(()=>v(b(u).options[`preview-background`].value));a(n,e=>{b(i)&&e(r)}),M(e,t)};a(o,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-background`].value&&e(c)});var l=R(o,2);N(l,e=>L(T,e),()=>b(T));var d=R(l,2);p(d,()=>G(b(u).options,b(u).embedTab)),N(R(d,2),e=>L(k,e),()=>b(k)),_(t),j(e=>n=m(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":b(u).options.flyout.value&&b(u).options[`preview-background`].value&&v(b(u).options[`preview-background`].value),"search-summary-preview":b(q)})]),M(e,t)};a(n,e=>{b(I)?e(r):e(i,-1)}),M(e,t)}),_(J),j(()=>{m(J,1,n([{"components-preview":b(I)}]),`svelte-1uha8ag`),X=m(Y,1,`sidebar-slot svelte-1uha8ag`,null,X,{"sidebar-slot--hidden":b(u).options[`hide-sidebar`].value})}),M(t,J),o()}w($,{},[],[],{mode:`open`});export{$ as component};
49
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1uha8ag {display:block;width:100%;height:auto;pointer-events:none;user-select:none;}`};function $(t,i){l(i,!0),E(t,Ve);let c=te(i,[`$$slots`,`$$events`,`$$legacy`,`$$host`]),u=f(()=>i.data);O(()=>{window.onmessage=function(e){typeof e.data==`string`&&e.data.startsWith(`liipgpt-url:`)&&V(`?`+new URLSearchParams(e.data.replace(`liipgpt-url:`,``)).toString(),{replaceState:!0})}});let d=e=>`/build/${e}/liipgpt-${e}.iife.js`,v=e=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(e),x=async e=>{e===`build`&&(await H(()=>import(d(`chat`)),[],import.meta.url),await H(()=>import(d(`button`)),[],import.meta.url),await H(()=>import(d(`search-summary`)),[],import.meta.url)),e===`dev`&&(await H(()=>import(`../chunks/NtMAcZ7G.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),await H(()=>import(`../chunks/Cz0dIq0O.js`),__vite__mapDeps([18,2,3,4,5,6,10,13,7,8,9,14,16,17]),import.meta.url),await H(()=>import(`../chunks/DembPZun.js`),__vite__mapDeps([19,8,2,3,4,5,6,11,14,16,20]),import.meta.url)),e===`server`&&(H(()=>import(U(i.data.options,`chat`)),[],import.meta.url),H(()=>import(U(i.data.options,`button`)),[],import.meta.url),H(()=>import(U(i.data.options,`search-summary`)),[],import.meta.url))},ee=f(()=>i.data.options?.[`preview-mode`]?.value??`server`);O(()=>{x(b(ee))});let w=`./sidebar${re.url.search}`,T=r(void 0),k=r(void 0),A=(e,t)=>{let n=document.createElement(`script`),r=document.createTextNode(`{${t}}`);n.appendChild(r),e.replaceChildren(n)};O(()=>{b(T)&&A(b(T),b(u).options.CHAT_CONFIG_OVERRIDE.value||``)}),O(()=>{b(k)&&b(u).embedTab===`chat`?A(b(k),b(u).options.onclosechat.value||``):b(k)&&b(k).replaceChildren()});let I=f(()=>b(u)&&b(u).options[`preview-components`].value),B=f(()=>b(u).embedTab===`chat`),q=f(()=>b(u).embedTab===`search-summary`);O(()=>{if(!b(q)){W();return}let e=b(u).options[`use-chat-config`]?.value?``:b(u).options[`host-css`]?.value??``;e?ne(e):W()});var J=Be();e(`1uha8ag`,e=>{var t=s(),n=S(t),r=e=>{P(()=>{y.title=`LiipGPT Configurator | Components`})},i=e=>{P(()=>{y.title=`LiipGPT Configurator`})};a(n,e=>{b(u).options[`preview-components`].value?e(r,1):e(i,-1)}),M(e,t)});var Y=z(J);let X;var Z=z(Y),ie=e=>{var t=Ie();j(()=>F(t,`src`,w)),M(e,t)};a(Z,e=>{b(u).options[`hide-sidebar`].value||e(ie)}),_(Y);var ae=R(Y,2),oe=e=>{K(e,{mode:`show`})};a(ae,e=>{b(u).options[`hide-sidebar`].value&&e(oe)}),g(R(ae,2),()=>b(u),e=>{var t=s(),n=S(t),r=e=>{var t=s();D(S(t),{onerror:e=>console.error(`Rendering error of components`,e)},e=>{Q(e,C(()=>c))}),M(e,t)},i=e=>{var t=ze();let n;var r=z(t),i=e=>{var t=Le(),n=R(z(t),6),r=z(n),i=R(z(r),6),a=R(z(i),2),o=R(z(a),14),s=R(z(o),2),c=z(s);c.value=c.__value=``;var l=R(c);l.value=l.__value=`ch`;var u=R(l);u.value=u.__value=`de`;var d=R(u);d.value=d.__value=`at`,_(s),_(o);var f=R(o,12),p=R(z(f),2),m=z(p);m.value=m.__value=``;var g=R(m);g.value=g.__value=`a`;var v=R(g);v.value=v.__value=`b`;var y=R(v);y.value=y.__value=`c`,_(p),_(f),h(2),_(a),_(i),h(16),_(r),h(2),_(n),_(t),M(e,t)};a(r,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-form`].value&&e(i)});var o=R(r,2),c=e=>{var t=s(),n=S(t),r=e=>{var t=Re();j(()=>F(t,`src`,b(u).options[`preview-background`].value)),M(e,t)},i=f(()=>v(b(u).options[`preview-background`].value));a(n,e=>{b(i)&&e(r)}),M(e,t)};a(o,e=>{b(B)&&b(u).options.flyout.value&&b(u).options[`preview-background`].value&&e(c)});var l=R(o,2);N(l,e=>L(T,e),()=>b(T));var d=R(l,2);p(d,()=>G(b(u).options,b(u).embedTab)),N(R(d,2),e=>L(k,e),()=>b(k)),_(t),j(e=>n=m(t,1,`svelte-1uha8ag`,null,n,e),[()=>({"has-bg-image":b(u).options.flyout.value&&b(u).options[`preview-background`].value&&v(b(u).options[`preview-background`].value),"search-summary-preview":b(q)})]),M(e,t)};a(n,e=>{b(I)?e(r):e(i,-1)}),M(e,t)}),_(J),j(()=>{m(J,1,n([{"components-preview":b(I)}]),`svelte-1uha8ag`),X=m(Y,1,`sidebar-slot svelte-1uha8ag`,null,X,{"sidebar-slot--hidden":b(u).options[`hide-sidebar`].value})}),M(t,J),o()}w($,{},[],[],{mode:`open`});export{$ as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,B as n,C as r,Et as i,G as a,H as o,It as s,J as c,Lt as l,O as u,Ot as d,S as f,St as p,T as m,Ut as h,Wt as g,Y as _,_ as v,at as y,bt as b,c as x,et as S,gt as C,i as w,jt as T,k as ee,mt as E,nt as te,o as D,pt as O,q as k,s as A,tt as j,u as M,v as N,wt as P,x as ne,xt as F,y as re,yt as I,z as ie}from"../chunks/C00ruT0L.js";import"../chunks/DABlUYYh.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/Ct405RO9.js";import{i as se,r as ce}from"../chunks/B5M3tt1h.js";import"../chunks/DV91TmsB.js";import"../chunks/DFBUyDYh.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import"../chunks/DzLbPreo.js";import{n as le,r as ue,t as de}from"../chunks/CwB4sTdn.js";import"../chunks/BpIo1_hS.js";import"../chunks/CX0dfddQ.js";import"../chunks/BgnzWwt-.js";import"../chunks/dq9OZHm7.js";import"../chunks/BF-6zfFW.js";import"../chunks/BdBqI4to.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],te=[],D=[],O=null,k=null,A=``,j=``,M=0,N;for(let t=0;t<e.length;t++){let P=e.charCodeAt(t);if(!(P===u&&(N=e.charCodeAt(t+1),N===l)))if(P===n)A===``&&(M=t),A+=e.slice(t,t+2),t+=1;else if(P===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(N=e.charCodeAt(a),N===n)a+=1;else if(N===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));te.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(P===o||P===a){let n=ee(e,t,P,C);A+=e.slice(t,n+1),t=n}else{if((P===d||P===l||P===f)&&(N=e.charCodeAt(t+1))&&(N===d||N===l||N===f||N===u&&(N=e.charCodeAt(t+2))&&N==l))continue;if(P===l){if(A.length===0)continue;N=A.charCodeAt(A.length-1),N!==d&&N!==l&&N!==f&&(A+=` `)}else if(P===y&&e.charCodeAt(t+1)===y&&A.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(N=e.charCodeAt(f),N===n)f+=1;else if(N===o||N===a)f=ee(e,f,N,C);else if(N===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(N=e.charCodeAt(t),N===n)t+=1;else if(N===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&N===s)d=A.length+f-u;else if(N===c&&l.length===0){A+=e.slice(u,f),t=f;break}else if(N===h)l+=`)`;else if(N===_)l+=`]`;else if(N===p)l+=`}`;else if((N===m||e.length-1===f)&&l.length===0){t=f-1,A+=e.slice(u,f);break}else (N===g||N===v||N===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(A,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),O?O.nodes.push(f):E.push(f),A=``}else if(P===c&&A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else if(P===c&&j[j.length-1]!==`)`){let e=T(A);if(!e){if(A.length===0)continue;throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null)}C&&(e.src=[C,M,t],e.dst=[C,M,t]),O?O.nodes.push(e):E.push(e),A=``}else if(P===p&&j[j.length-1]!==`)`)j+=`}`,k=H(A.trim()),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O&&O.nodes.push(k),D.push(O),O=k,A=``,k=null;else if(P===m&&j[j.length-1]!==`)`){if(j===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(j=j.slice(0,-1),A.length>0)if(A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else{let e=A.indexOf(`:`);if(O){let n=T(A,e);if(!n)throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null);C&&(n.src=[C,M,t],n.dst=[C,M,t]),O.nodes.push(n)}}let e=D.pop()??null;e===null&&O&&E.push(O),O=e,A=``,k=null}else if(P===h)j+=`)`,A+=`(`;else if(P===g){if(j[j.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);j=j.slice(0,-1),A+=`)`}else{if(A.length===0&&(P===d||P===l||P===f))continue;A===``&&(M=t),A+=String.fromCharCode(P)}}}if(A.charCodeAt(0)===b){let t=w(A);C&&(t.src=[C,M,e.length],t.dst=[C,M,e.length]),E.push(t)}if(j.length>0&&O){if(O.kind===`rule`)throw new S(`Missing closing } at ${O.selector}`,O.src?[O.src[0],O.src[1],O.src[1]]:null);if(O.kind===`at-rule`)throw new S(`Missing closing } at ${O.name} ${O.params}`,O.src?[O.src[0],O.src[1],O.src[1]]:null)}return te.length>0?te.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function te(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var D=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function O(e,t){return(D.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var k=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(O(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=te(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=D.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!O(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=te(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},A=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function j(e){return{kind:`word`,value:e}}function M(e,t){return{kind:`function`,value:e,nodes:t}}function N(e){return{kind:`separator`,value:e}}function P(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+P(n.nodes)+`)`}return t}var ne=92,F=41,re=58,I=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
1
+ import{$ as e,A as t,B as n,C as r,Et as i,G as a,H as o,It as s,J as c,Lt as l,O as u,Ot as d,S as f,St as p,T as m,Ut as h,Wt as g,Y as _,_ as v,at as y,bt as b,c as x,et as S,gt as C,i as w,jt as T,k as ee,mt as E,nt as te,o as D,pt as O,q as k,s as A,tt as j,u as M,v as N,wt as P,x as ne,xt as F,y as re,yt as I,z as ie}from"../chunks/C00ruT0L.js";import"../chunks/Nw8j0Xyw.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/Ct405RO9.js";import{i as se,r as ce}from"../chunks/-NcnoUoN.js";import"../chunks/DV91TmsB.js";import"../chunks/D6Qx_EAy.js";import"../chunks/MRyhzcyW.js";import"../chunks/tFLMI64R.js";import"../chunks/DVeOoWpz.js";import"../chunks/6JdeEzKi.js";import{n as le,r as ue,t as de}from"../chunks/CKIDNEuR.js";import"../chunks/GwQP32Cz.js";import"../chunks/CZiOHSGl.js";import"../chunks/C4ORIoWK.js";import"../chunks/D7xeAlKo.js";import"../chunks/QyXFn05f.js";import"../chunks/C59SVKNf.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],te=[],D=[],O=null,k=null,A=``,j=``,M=0,N;for(let t=0;t<e.length;t++){let P=e.charCodeAt(t);if(!(P===u&&(N=e.charCodeAt(t+1),N===l)))if(P===n)A===``&&(M=t),A+=e.slice(t,t+2),t+=1;else if(P===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(N=e.charCodeAt(a),N===n)a+=1;else if(N===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));te.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(P===o||P===a){let n=ee(e,t,P,C);A+=e.slice(t,n+1),t=n}else{if((P===d||P===l||P===f)&&(N=e.charCodeAt(t+1))&&(N===d||N===l||N===f||N===u&&(N=e.charCodeAt(t+2))&&N==l))continue;if(P===l){if(A.length===0)continue;N=A.charCodeAt(A.length-1),N!==d&&N!==l&&N!==f&&(A+=` `)}else if(P===y&&e.charCodeAt(t+1)===y&&A.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(N=e.charCodeAt(f),N===n)f+=1;else if(N===o||N===a)f=ee(e,f,N,C);else if(N===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(N=e.charCodeAt(t),N===n)t+=1;else if(N===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&N===s)d=A.length+f-u;else if(N===c&&l.length===0){A+=e.slice(u,f),t=f;break}else if(N===h)l+=`)`;else if(N===_)l+=`]`;else if(N===p)l+=`}`;else if((N===m||e.length-1===f)&&l.length===0){t=f-1,A+=e.slice(u,f);break}else (N===g||N===v||N===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(A,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),O?O.nodes.push(f):E.push(f),A=``}else if(P===c&&A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else if(P===c&&j[j.length-1]!==`)`){let e=T(A);if(!e){if(A.length===0)continue;throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null)}C&&(e.src=[C,M,t],e.dst=[C,M,t]),O?O.nodes.push(e):E.push(e),A=``}else if(P===p&&j[j.length-1]!==`)`)j+=`}`,k=H(A.trim()),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O&&O.nodes.push(k),D.push(O),O=k,A=``,k=null;else if(P===m&&j[j.length-1]!==`)`){if(j===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(j=j.slice(0,-1),A.length>0)if(A.charCodeAt(0)===b)k=w(A),C&&(k.src=[C,M,t],k.dst=[C,M,t]),O?O.nodes.push(k):E.push(k),A=``,k=null;else{let e=A.indexOf(`:`);if(O){let n=T(A,e);if(!n)throw new S(`Invalid declaration: \`${A.trim()}\``,C?[C,M,t]:null);C&&(n.src=[C,M,t],n.dst=[C,M,t]),O.nodes.push(n)}}let e=D.pop()??null;e===null&&O&&E.push(O),O=e,A=``,k=null}else if(P===h)j+=`)`,A+=`(`;else if(P===g){if(j[j.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);j=j.slice(0,-1),A+=`)`}else{if(A.length===0&&(P===d||P===l||P===f))continue;A===``&&(M=t),A+=String.fromCharCode(P)}}}if(A.charCodeAt(0)===b){let t=w(A);C&&(t.src=[C,M,e.length],t.dst=[C,M,e.length]),E.push(t)}if(j.length>0&&O){if(O.kind===`rule`)throw new S(`Missing closing } at ${O.selector}`,O.src?[O.src[0],O.src[1],O.src[1]]:null);if(O.kind===`at-rule`)throw new S(`Missing closing } at ${O.name} ${O.params}`,O.src?[O.src[0],O.src[1],O.src[1]]:null)}return te.length>0?te.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function te(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var D=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function O(e,t){return(D.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var k=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(O(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=te(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=D.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!O(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=te(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},A=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function j(e){return{kind:`word`,value:e}}function M(e,t){return{kind:`function`,value:e,nodes:t}}function N(e){return{kind:`separator`,value:e}}function P(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+P(n.nodes)+`)`}return t}var ne=92,F=41,re=58,I=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case ne:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=j(e[o]);r?r.nodes.push(n):t.push(n);break}case re:case I:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=j(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==re&&a!==I&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=N(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===ne)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=M(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case F:{let e=n.pop();if(i.length>0){let t=j(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(j(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new A(()=>new Set),o=new A(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new A(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:P(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
4
4
  `,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
@@ -1 +1 @@
1
- {"version":"1780471773329"}
1
+ {"version":"1780499083546"}
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.CpjUPnYE.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/DABlUYYh.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.CJocbWmY.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/Nw8j0Xyw.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/C00ruT0L.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.BPWZQddg.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.C_qls3uJ.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_ueip3m = {
21
+ __sveltekit_of6ik3 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.CpjUPnYE.js"),
30
- import("./_app/immutable/entry/app.BPWZQddg.js")
29
+ import("./_app/immutable/entry/start.CJocbWmY.js"),
30
+ import("./_app/immutable/entry/app.C_qls3uJ.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
@@ -4,12 +4,12 @@
4
4
  <meta charset="utf-8" />
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <link href="./_app/immutable/entry/start.CpjUPnYE.js" rel="modulepreload">
8
- <link href="./_app/immutable/chunks/DABlUYYh.js" rel="modulepreload">
7
+ <link href="./_app/immutable/entry/start.CJocbWmY.js" rel="modulepreload">
8
+ <link href="./_app/immutable/chunks/Nw8j0Xyw.js" rel="modulepreload">
9
9
  <link href="./_app/immutable/chunks/C00ruT0L.js" rel="modulepreload">
10
10
  <link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
11
11
  <link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
12
- <link href="./_app/immutable/entry/app.BPWZQddg.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.C_qls3uJ.js" rel="modulepreload">
13
13
  <link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
14
14
  <link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
15
15
 
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_ueip3m = {
21
+ __sveltekit_of6ik3 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.CpjUPnYE.js"),
30
- import("./_app/immutable/entry/app.BPWZQddg.js")
29
+ import("./_app/immutable/entry/start.CJocbWmY.js"),
30
+ import("./_app/immutable/entry/app.C_qls3uJ.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/index.cjs CHANGED
@@ -19693,7 +19693,10 @@ var translationSchema = exports_external.object({
19693
19693
  lightMode: exports_external.string(),
19694
19694
  darkMode: exports_external.string(),
19695
19695
  ariaMainNavigation: exports_external.string(),
19696
- ariaMainNavigationRegion: exports_external.string(),
19696
+ ariaMainNavigationInfo: exports_external.string(),
19697
+ ariaMainNavigationLinks: exports_external.string(),
19698
+ ariaMainNavigationLanguageSwitch: exports_external.string(),
19699
+ ariaMainNavigationColorMode: exports_external.string(),
19697
19700
  ariaGotoMainNavigation: exports_external.string(),
19698
19701
  ariaAskQuestion: exports_external.string(),
19699
19702
  ariaAskQuestionRegion: exports_external.string(),
@@ -19708,6 +19711,7 @@ var translationSchema = exports_external.object({
19708
19711
  ariaQuestionSent: exports_external.string(),
19709
19712
  ariaAnswerReady: exports_external.string(),
19710
19713
  ariaAnswerFinished: exports_external.string(),
19714
+ ariaAnswerFinishedWithSelectedTopic: exports_external.string(),
19711
19715
  ariaAskQuestionAgain: exports_external.string(),
19712
19716
  ariaAnswerGood: exports_external.string(),
19713
19717
  ariaAnswerBad: exports_external.string(),
@@ -19729,6 +19733,7 @@ var translationSchema = exports_external.object({
19729
19733
  ariaAllSelected: exports_external.string(),
19730
19734
  ariaAllUnselected: exports_external.string(),
19731
19735
  ariaAllReseted: exports_external.string(),
19736
+ ariaChangeTopic: exports_external.string(),
19732
19737
  popups: exports_external.array(popup).optional(),
19733
19738
  termsAcceptButton: exports_external.string().optional(),
19734
19739
  termsReadButton: exports_external.string().optional(),
@@ -19740,6 +19745,7 @@ var translationSchema = exports_external.object({
19740
19745
  selectNone: exports_external.string(),
19741
19746
  resetToDefaults: exports_external.string(),
19742
19747
  messageTooLong: exports_external.string(),
19748
+ selectedTopic: exports_external.string(),
19743
19749
  changeTopic: exports_external.string(),
19744
19750
  searchSummaryExpand: exports_external.string(),
19745
19751
  searchSummaryCollapse: exports_external.string(),
package/index.d.ts CHANGED
@@ -5168,7 +5168,10 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
5168
5168
  lightMode: z.ZodString;
5169
5169
  darkMode: z.ZodString;
5170
5170
  ariaMainNavigation: z.ZodString;
5171
- ariaMainNavigationRegion: z.ZodString;
5171
+ ariaMainNavigationInfo: z.ZodString;
5172
+ ariaMainNavigationLinks: z.ZodString;
5173
+ ariaMainNavigationLanguageSwitch: z.ZodString;
5174
+ ariaMainNavigationColorMode: z.ZodString;
5172
5175
  ariaGotoMainNavigation: z.ZodString;
5173
5176
  ariaAskQuestion: z.ZodString;
5174
5177
  ariaAskQuestionRegion: z.ZodString;
@@ -5183,6 +5186,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
5183
5186
  ariaQuestionSent: z.ZodString;
5184
5187
  ariaAnswerReady: z.ZodString;
5185
5188
  ariaAnswerFinished: z.ZodString;
5189
+ ariaAnswerFinishedWithSelectedTopic: z.ZodString;
5186
5190
  ariaAskQuestionAgain: z.ZodString;
5187
5191
  ariaAnswerGood: z.ZodString;
5188
5192
  ariaAnswerBad: z.ZodString;
@@ -5204,6 +5208,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
5204
5208
  ariaAllSelected: z.ZodString;
5205
5209
  ariaAllUnselected: z.ZodString;
5206
5210
  ariaAllReseted: z.ZodString;
5211
+ ariaChangeTopic: z.ZodString;
5207
5212
  popups: z.ZodOptional<z.ZodArray<z.ZodObject<{
5208
5213
  hash: z.ZodString;
5209
5214
  title: z.ZodString;
@@ -5233,6 +5238,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
5233
5238
  selectNone: z.ZodString;
5234
5239
  resetToDefaults: z.ZodString;
5235
5240
  messageTooLong: z.ZodString;
5241
+ selectedTopic: z.ZodString;
5236
5242
  changeTopic: z.ZodString;
5237
5243
  searchSummaryExpand: z.ZodString;
5238
5244
  searchSummaryCollapse: z.ZodString;
@@ -5981,7 +5987,10 @@ export declare const completeChatConfigSchema: z.ZodObject<{
5981
5987
  lightMode: z.ZodOptional<z.ZodString>;
5982
5988
  darkMode: z.ZodOptional<z.ZodString>;
5983
5989
  ariaMainNavigation: z.ZodOptional<z.ZodString>;
5984
- ariaMainNavigationRegion: z.ZodOptional<z.ZodString>;
5990
+ ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
5991
+ ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
5992
+ ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
5993
+ ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
5985
5994
  ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
5986
5995
  ariaAskQuestion: z.ZodOptional<z.ZodString>;
5987
5996
  ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
@@ -5996,6 +6005,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
5996
6005
  ariaQuestionSent: z.ZodOptional<z.ZodString>;
5997
6006
  ariaAnswerReady: z.ZodOptional<z.ZodString>;
5998
6007
  ariaAnswerFinished: z.ZodOptional<z.ZodString>;
6008
+ ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
5999
6009
  ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
6000
6010
  ariaAnswerGood: z.ZodOptional<z.ZodString>;
6001
6011
  ariaAnswerBad: z.ZodOptional<z.ZodString>;
@@ -6017,6 +6027,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
6017
6027
  ariaAllSelected: z.ZodOptional<z.ZodString>;
6018
6028
  ariaAllUnselected: z.ZodOptional<z.ZodString>;
6019
6029
  ariaAllReseted: z.ZodOptional<z.ZodString>;
6030
+ ariaChangeTopic: z.ZodOptional<z.ZodString>;
6020
6031
  popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6021
6032
  hash: z.ZodString;
6022
6033
  title: z.ZodString;
@@ -6039,6 +6050,7 @@ export declare const completeChatConfigSchema: z.ZodObject<{
6039
6050
  selectNone: z.ZodOptional<z.ZodString>;
6040
6051
  resetToDefaults: z.ZodOptional<z.ZodString>;
6041
6052
  messageTooLong: z.ZodOptional<z.ZodString>;
6053
+ selectedTopic: z.ZodOptional<z.ZodString>;
6042
6054
  changeTopic: z.ZodOptional<z.ZodString>;
6043
6055
  searchSummaryExpand: z.ZodOptional<z.ZodString>;
6044
6056
  searchSummaryCollapse: z.ZodOptional<z.ZodString>;
@@ -8562,7 +8574,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8562
8574
  lightMode: z.ZodOptional<z.ZodString>;
8563
8575
  darkMode: z.ZodOptional<z.ZodString>;
8564
8576
  ariaMainNavigation: z.ZodOptional<z.ZodString>;
8565
- ariaMainNavigationRegion: z.ZodOptional<z.ZodString>;
8577
+ ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
8578
+ ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
8579
+ ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
8580
+ ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
8566
8581
  ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
8567
8582
  ariaAskQuestion: z.ZodOptional<z.ZodString>;
8568
8583
  ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
@@ -8577,6 +8592,7 @@ export declare const chatConfigSchema: z.ZodObject<{
8577
8592
  ariaQuestionSent: z.ZodOptional<z.ZodString>;
8578
8593
  ariaAnswerReady: z.ZodOptional<z.ZodString>;
8579
8594
  ariaAnswerFinished: z.ZodOptional<z.ZodString>;
8595
+ ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
8580
8596
  ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
8581
8597
  ariaAnswerGood: z.ZodOptional<z.ZodString>;
8582
8598
  ariaAnswerBad: z.ZodOptional<z.ZodString>;
@@ -8598,6 +8614,7 @@ export declare const chatConfigSchema: z.ZodObject<{
8598
8614
  ariaAllSelected: z.ZodOptional<z.ZodString>;
8599
8615
  ariaAllUnselected: z.ZodOptional<z.ZodString>;
8600
8616
  ariaAllReseted: z.ZodOptional<z.ZodString>;
8617
+ ariaChangeTopic: z.ZodOptional<z.ZodString>;
8601
8618
  popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
8602
8619
  hash: z.ZodString;
8603
8620
  title: z.ZodString;
@@ -8620,6 +8637,7 @@ export declare const chatConfigSchema: z.ZodObject<{
8620
8637
  selectNone: z.ZodOptional<z.ZodString>;
8621
8638
  resetToDefaults: z.ZodOptional<z.ZodString>;
8622
8639
  messageTooLong: z.ZodOptional<z.ZodString>;
8640
+ selectedTopic: z.ZodOptional<z.ZodString>;
8623
8641
  changeTopic: z.ZodOptional<z.ZodString>;
8624
8642
  searchSummaryExpand: z.ZodOptional<z.ZodString>;
8625
8643
  searchSummaryCollapse: z.ZodOptional<z.ZodString>;
@@ -11143,7 +11161,10 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
11143
11161
  lightMode: z.ZodOptional<z.ZodString>;
11144
11162
  darkMode: z.ZodOptional<z.ZodString>;
11145
11163
  ariaMainNavigation: z.ZodOptional<z.ZodString>;
11146
- ariaMainNavigationRegion: z.ZodOptional<z.ZodString>;
11164
+ ariaMainNavigationInfo: z.ZodOptional<z.ZodString>;
11165
+ ariaMainNavigationLinks: z.ZodOptional<z.ZodString>;
11166
+ ariaMainNavigationLanguageSwitch: z.ZodOptional<z.ZodString>;
11167
+ ariaMainNavigationColorMode: z.ZodOptional<z.ZodString>;
11147
11168
  ariaGotoMainNavigation: z.ZodOptional<z.ZodString>;
11148
11169
  ariaAskQuestion: z.ZodOptional<z.ZodString>;
11149
11170
  ariaAskQuestionRegion: z.ZodOptional<z.ZodString>;
@@ -11158,6 +11179,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
11158
11179
  ariaQuestionSent: z.ZodOptional<z.ZodString>;
11159
11180
  ariaAnswerReady: z.ZodOptional<z.ZodString>;
11160
11181
  ariaAnswerFinished: z.ZodOptional<z.ZodString>;
11182
+ ariaAnswerFinishedWithSelectedTopic: z.ZodOptional<z.ZodString>;
11161
11183
  ariaAskQuestionAgain: z.ZodOptional<z.ZodString>;
11162
11184
  ariaAnswerGood: z.ZodOptional<z.ZodString>;
11163
11185
  ariaAnswerBad: z.ZodOptional<z.ZodString>;
@@ -11179,6 +11201,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
11179
11201
  ariaAllSelected: z.ZodOptional<z.ZodString>;
11180
11202
  ariaAllUnselected: z.ZodOptional<z.ZodString>;
11181
11203
  ariaAllReseted: z.ZodOptional<z.ZodString>;
11204
+ ariaChangeTopic: z.ZodOptional<z.ZodString>;
11182
11205
  popups: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
11183
11206
  hash: z.ZodString;
11184
11207
  title: z.ZodString;
@@ -11201,6 +11224,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
11201
11224
  selectNone: z.ZodOptional<z.ZodString>;
11202
11225
  resetToDefaults: z.ZodOptional<z.ZodString>;
11203
11226
  messageTooLong: z.ZodOptional<z.ZodString>;
11227
+ selectedTopic: z.ZodOptional<z.ZodString>;
11204
11228
  changeTopic: z.ZodOptional<z.ZodString>;
11205
11229
  searchSummaryExpand: z.ZodOptional<z.ZodString>;
11206
11230
  searchSummaryCollapse: z.ZodOptional<z.ZodString>;
package/index.js CHANGED
@@ -19618,7 +19618,10 @@ var translationSchema = exports_external.object({
19618
19618
  lightMode: exports_external.string(),
19619
19619
  darkMode: exports_external.string(),
19620
19620
  ariaMainNavigation: exports_external.string(),
19621
- ariaMainNavigationRegion: exports_external.string(),
19621
+ ariaMainNavigationInfo: exports_external.string(),
19622
+ ariaMainNavigationLinks: exports_external.string(),
19623
+ ariaMainNavigationLanguageSwitch: exports_external.string(),
19624
+ ariaMainNavigationColorMode: exports_external.string(),
19622
19625
  ariaGotoMainNavigation: exports_external.string(),
19623
19626
  ariaAskQuestion: exports_external.string(),
19624
19627
  ariaAskQuestionRegion: exports_external.string(),
@@ -19633,6 +19636,7 @@ var translationSchema = exports_external.object({
19633
19636
  ariaQuestionSent: exports_external.string(),
19634
19637
  ariaAnswerReady: exports_external.string(),
19635
19638
  ariaAnswerFinished: exports_external.string(),
19639
+ ariaAnswerFinishedWithSelectedTopic: exports_external.string(),
19636
19640
  ariaAskQuestionAgain: exports_external.string(),
19637
19641
  ariaAnswerGood: exports_external.string(),
19638
19642
  ariaAnswerBad: exports_external.string(),
@@ -19654,6 +19658,7 @@ var translationSchema = exports_external.object({
19654
19658
  ariaAllSelected: exports_external.string(),
19655
19659
  ariaAllUnselected: exports_external.string(),
19656
19660
  ariaAllReseted: exports_external.string(),
19661
+ ariaChangeTopic: exports_external.string(),
19657
19662
  popups: exports_external.array(popup).optional(),
19658
19663
  termsAcceptButton: exports_external.string().optional(),
19659
19664
  termsReadButton: exports_external.string().optional(),
@@ -19665,6 +19670,7 @@ var translationSchema = exports_external.object({
19665
19670
  selectNone: exports_external.string(),
19666
19671
  resetToDefaults: exports_external.string(),
19667
19672
  messageTooLong: exports_external.string(),
19673
+ selectedTopic: exports_external.string(),
19668
19674
  changeTopic: exports_external.string(),
19669
19675
  searchSummaryExpand: exports_external.string(),
19670
19676
  searchSummaryCollapse: exports_external.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {