@liip/liipgpt 2.6.2 → 2.6.4

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 (30) hide show
  1. package/button/liipgpt-button.iife.js +3 -3
  2. package/chat/liipgpt-chat.iife.js +30 -30
  3. package/config/index.cjs +2 -1
  4. package/config/index.d.ts +6 -3
  5. package/config/index.js +2 -1
  6. package/configurator/_app/env.js +1 -1
  7. package/configurator/_app/immutable/chunks/{C99KO4nD.js → 3JqtIvwh.js} +13 -13
  8. package/configurator/_app/immutable/chunks/{m7522vkh.js → Bnv-iyvp.js} +1 -1
  9. package/configurator/_app/immutable/chunks/{BWlPVxXO.js → BpbjeQs5.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{tN9GciFC.js → C6dLbwbN.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{Df9MUm2j.js → CHPoPnIb.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{BKW66Lfr.js → Cyn6RLjQ.js} +1 -1
  13. package/configurator/_app/immutable/chunks/Ddtu07x_.js +1 -0
  14. package/configurator/_app/immutable/chunks/{BmSehLEh.js → DpT3h3Cj.js} +1 -1
  15. package/configurator/_app/immutable/chunks/{1dD7WPXn.js → Ia_qDzV9.js} +1 -1
  16. package/configurator/_app/immutable/entry/{app.CZ0SH_Vk.js → app.C6Lz9kUE.js} +2 -2
  17. package/configurator/_app/immutable/entry/start.BrLLqc2_.js +1 -0
  18. package/configurator/_app/immutable/nodes/{0.CbZBO6K-.js → 0.AW2mys-2.js} +3 -2
  19. package/configurator/_app/immutable/nodes/{1.RxzCcgx-.js → 1.DLJ3Rj-t.js} +1 -1
  20. package/configurator/_app/immutable/nodes/{2.Cfyy-seW.js → 2.B3MdcWTy.js} +3 -3
  21. package/configurator/_app/immutable/nodes/{3.BoGEz7-s.js → 3.CgBYaWu4.js} +1 -1
  22. package/configurator/_app/version.json +1 -1
  23. package/configurator/index.html +6 -6
  24. package/configurator/sidebar.html +6 -6
  25. package/index.cjs +4 -2
  26. package/index.d.ts +23 -10
  27. package/index.js +4 -2
  28. package/package.json +1 -1
  29. package/configurator/_app/immutable/chunks/xZHK-ZHf.js +0 -1
  30. package/configurator/_app/immutable/entry/start.BV7l4dkK.js +0 -1
@@ -1 +1 @@
1
- import"./NZTpNUN0.js";import{p as m,F as y,d as f,v as r,G as S,H as d,c as h}from"./DC-s52-u.js";import{p as n,s as _}from"./M-YrVFI7.js";import{E as T}from"./BKW66Lfr.js";import{O as k}from"./BmSehLEh.js";function C(c,e){m(e,!0);let o=n(e,"onclick",7),u=n(e,"buttonClass",7),l=n(e,"buttonStyle",7),s=n(e,"apiUrl",7),a=n(e,"forceTheme",7),i=n(e,"lang",7),b=d(()=>({onclick:o(),buttonClass:u(),buttonStyle:l(),apiUrl:s(),forceTheme:a(),lang:i()}));return T(c,{silent:!0,body:(g,p=y)=>{k(g,_({host:e.$$host,get onError(){return p()}},()=>S(b)))},$$slots:{body:!0}}),f({get onclick(){return o()},set onclick(t){o(t),r()},get buttonClass(){return u()},set buttonClass(t){u(t),r()},get buttonStyle(){return l()},set buttonStyle(t){l(t),r()},get apiUrl(){return s()},set apiUrl(t){s(t),r()},get forceTheme(){return a()},set forceTheme(t){a(t),r()},get lang(){return i()},set lang(t){i(t),r()}})}customElements.define("liipgpt-button",h(C,{forceTheme:{attribute:"force-theme",type:"String"},buttonClass:{attribute:"button-class",type:"String"},buttonStyle:{attribute:"button-style",type:"String"},apiUrl:{attribute:"api-url",type:"String"},lang:{attribute:"lang",type:"String"},onclick:{}},[],[],!0));export{C as LiipGPTButton};
1
+ import"./NZTpNUN0.js";import{p as m,F as y,d as f,v as r,G as S,H as d,c as h}from"./DC-s52-u.js";import{p as n,s as _}from"./M-YrVFI7.js";import{E as T}from"./Cyn6RLjQ.js";import{O as k}from"./DpT3h3Cj.js";function C(c,e){m(e,!0);let o=n(e,"onclick",7),u=n(e,"buttonClass",7),l=n(e,"buttonStyle",7),s=n(e,"apiUrl",7),a=n(e,"forceTheme",7),i=n(e,"lang",7),b=d(()=>({onclick:o(),buttonClass:u(),buttonStyle:l(),apiUrl:s(),forceTheme:a(),lang:i()}));return T(c,{silent:!0,body:(g,p=y)=>{k(g,_({host:e.$$host,get onError(){return p()}},()=>S(b)))},$$slots:{body:!0}}),f({get onclick(){return o()},set onclick(t){o(t),r()},get buttonClass(){return u()},set buttonClass(t){u(t),r()},get buttonStyle(){return l()},set buttonStyle(t){l(t),r()},get apiUrl(){return s()},set apiUrl(t){s(t),r()},get forceTheme(){return a()},set forceTheme(t){a(t),r()},get lang(){return i()},set lang(t){i(t),r()}})}customElements.define("liipgpt-button",h(C,{forceTheme:{attribute:"force-theme",type:"String"},buttonClass:{attribute:"button-class",type:"String"},buttonStyle:{attribute:"button-style",type:"String"},apiUrl:{attribute:"api-url",type:"String"},lang:{attribute:"lang",type:"String"},onclick:{}},[],[],!0));export{C as LiipGPTButton};
@@ -1,4 +1,4 @@
1
- const Wt="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Ft="2.6.2";function Xe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var se,we;function Qe(){if(we)return se;we=1;var r=function(k){return e(k)&&!t(k)};function e(v){return!!v&&typeof v=="object"}function t(v){var k=Object.prototype.toString.call(v);return k==="[object RegExp]"||k==="[object Date]"||o(v)}var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===n}function s(v){return Array.isArray(v)?[]:{}}function i(v,k){return k.clone!==!1&&k.isMergeableObject(v)?D(s(v),v,k):v}function f(v,k,w){return v.concat(k).map(function(A){return i(A,w)})}function p(v,k){if(!k.customMerge)return D;var w=k.customMerge(v);return typeof w=="function"?w:D}function _(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(k){return Object.propertyIsEnumerable.call(v,k)}):[]}function E(v){return Object.keys(v).concat(_(v))}function J(v,k){try{return k in v}catch{return!1}}function Ge(v,k){return J(v,k)&&!(Object.hasOwnProperty.call(v,k)&&Object.propertyIsEnumerable.call(v,k))}function qe(v,k,w){var A={};return w.isMergeableObject(v)&&E(v).forEach(function(j){A[j]=i(v[j],w)}),E(k).forEach(function(j){Ge(v,j)||(J(v,j)&&w.isMergeableObject(k[j])?A[j]=p(j,w)(v[j],k[j],w):A[j]=i(k[j],w))}),A}function D(v,k,w){w=w||{},w.arrayMerge=w.arrayMerge||f,w.isMergeableObject=w.isMergeableObject||r,w.cloneUnlessOtherwiseSpecified=i;var A=Array.isArray(k),j=Array.isArray(v),Je=A===j;return Je?A?w.arrayMerge(v,k,w):qe(v,k,w):i(k,w)}D.all=function(k,w){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(A,j){return D(A,j,w)},{})};var Ye=D;return se=Ye,se}var Ke=Qe();const et=Xe(Ke),tt=r=>r===null||typeof r!="object",ce=r=>{if(tt(r))return r;if(Array.isArray(r))return r.map(ce);const e=Object.entries(r).filter(([t,a])=>a!==void 0).map(([t,a])=>[t,ce(a)]);return Object.fromEntries(e)},rt=(r,e)=>{const t=ce(e);return et(r,t)},Le={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-600)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"inherit",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:"var(--base-border-radius)",boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:"var(--base-border-radius)",borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:"calc(var(--base-border-radius) / 1.25)",hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#dd1313",color:"var(--color-grey-0)",borderColor:"#dd1313",borderWidth:"1px",borderRadius:"calc(var(--base-border-radius) / 2)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:768,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"}},referencesToggle:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"}},svgs:{predefinedQuestion:`
1
+ const Wt="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Ft="2.6.4";function Xe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var se,we;function Qe(){if(we)return se;we=1;var r=function(k){return e(k)&&!t(k)};function e(v){return!!v&&typeof v=="object"}function t(v){var k=Object.prototype.toString.call(v);return k==="[object RegExp]"||k==="[object Date]"||o(v)}var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===n}function s(v){return Array.isArray(v)?[]:{}}function i(v,k){return k.clone!==!1&&k.isMergeableObject(v)?D(s(v),v,k):v}function f(v,k,w){return v.concat(k).map(function(A){return i(A,w)})}function p(v,k){if(!k.customMerge)return D;var w=k.customMerge(v);return typeof w=="function"?w:D}function _(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(k){return Object.propertyIsEnumerable.call(v,k)}):[]}function E(v){return Object.keys(v).concat(_(v))}function J(v,k){try{return k in v}catch{return!1}}function Ge(v,k){return J(v,k)&&!(Object.hasOwnProperty.call(v,k)&&Object.propertyIsEnumerable.call(v,k))}function qe(v,k,w){var A={};return w.isMergeableObject(v)&&E(v).forEach(function(j){A[j]=i(v[j],w)}),E(k).forEach(function(j){Ge(v,j)||(J(v,j)&&w.isMergeableObject(k[j])?A[j]=p(j,w)(v[j],k[j],w):A[j]=i(k[j],w))}),A}function D(v,k,w){w=w||{},w.arrayMerge=w.arrayMerge||f,w.isMergeableObject=w.isMergeableObject||r,w.cloneUnlessOtherwiseSpecified=i;var A=Array.isArray(k),j=Array.isArray(v),Je=A===j;return Je?A?w.arrayMerge(v,k,w):qe(v,k,w):i(k,w)}D.all=function(k,w){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(A,j){return D(A,j,w)},{})};var Ye=D;return se=Ye,se}var Ke=Qe();const et=Xe(Ke),tt=r=>r===null||typeof r!="object",ce=r=>{if(tt(r))return r;if(Array.isArray(r))return r.map(ce);const e=Object.entries(r).filter(([t,a])=>a!==void 0).map(([t,a])=>[t,ce(a)]);return Object.fromEntries(e)},rt=(r,e)=>{const t=ce(e);return et(r,t)},Le={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-600)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"inherit",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:"var(--base-border-radius)",boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:"var(--base-border-radius)",borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:"calc(var(--base-border-radius) / 1.25)",hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#dd1313",color:"var(--color-grey-0)",borderColor:"#dd1313",borderWidth:"1px",borderRadius:"calc(var(--base-border-radius) / 2)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:1024,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"}},referencesToggle:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--anchor-color)",hover:{color:"var(--anchor-hover-color)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"}},svgs:{predefinedQuestion:`
2
2
  <svg viewBox="0 0 24 24" >
3
3
  <path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
4
4
  <path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
@@ -1 +1 @@
1
- import{h as d,ab as m,u,o as b,ay as i,az as h,G as g,aA as k,W as v,aB as y}from"./DC-s52-u.js";import{s as x,p as c}from"./1dD7WPXn.js";function B(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=b(()=>e.m.map(h));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()}y();const $={get error(){return c.error},get status(){return c.status},get url(){return c.url}};x.updated.check;const G=$;export{B as i,G as p};
1
+ import{h as d,ab as m,u,o as b,ay as i,az as h,G as g,aA as k,W as v,aB as y}from"./DC-s52-u.js";import{s as x,p as c}from"./Ia_qDzV9.js";function B(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=b(()=>e.m.map(h));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()}y();const $={get error(){return c.error},get status(){return c.status},get url(){return c.url}};x.updated.check;const G=$;export{B as i,G as p};
@@ -1 +1 @@
1
- import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./DC-s52-u.js";import{p as o,s as R}from"./M-YrVFI7.js";import{C as U}from"./xZHK-ZHf.js";import{E as _}from"./BKW66Lfr.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));{const e=(b,K=B)=>{U(b,R({host:t.$$host,get onError(){return K()}},()=>d(h)))};let C=m(()=>d(h).flyout??!1);_(S,{get silent(){return d(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
1
+ import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./DC-s52-u.js";import{p as o,s as R}from"./M-YrVFI7.js";import{C as U}from"./Ddtu07x_.js";import{E as _}from"./Cyn6RLjQ.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));{const e=(b,K=B)=>{U(b,R({host:t.$$host,get onError(){return K()}},()=>d(h)))};let C=m(()=>d(h).flyout??!1);_(S,{get silent(){return d(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
@@ -1,4 +1,4 @@
1
- import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./DC-s52-u.js";import{i as F}from"./Buwjqn5O.js";import{a as A}from"./C99KO4nD.js";import{p as M}from"./M-YrVFI7.js";var D=(u,a)=>a()(),H=B('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Q=B(" <!>",1);const V={hash:"svelte-4thrqu",code:`
1
+ import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./DC-s52-u.js";import{i as F}from"./Buwjqn5O.js";import{a as A}from"./3JqtIvwh.js";import{p as M}from"./M-YrVFI7.js";var D=(u,a)=>a()(),H=B('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Q=B(" <!>",1);const V={hash:"svelte-4thrqu",code:`
2
2
  /* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
3
3
  BlinkMacSystemFont,
4
4
  avenir next,
@@ -0,0 +1 @@
1
+ import"./NZTpNUN0.js";import{av as ct,o as dt,aN as Ie,p as te,I as Q,a as R,b as d,d as re,v as P,L as ue,G as t,H as K,f as N,e as v,r as u,F as Oe,c as ae,O as L,K as Y,ab as Rt,s as M,aL as Bt,t as X,aI as me,g as ge,M as It,u as ce,aO as We,aH as qt}from"./DC-s52-u.js";import{i as W,c as _e,b as be}from"./Buwjqn5O.js";import{J as Ht,K as se,L as Pe,O as Se,Q as qe,T as $t,U as zt,V as je,W as Kt,X as Wt,Y as Qe,Z as Ve,_ as jt,$ as Qt,a0 as nt,a1 as Vt,a2 as Ut,a3 as De,a4 as Yt,l,a5 as Gt,a6 as Jt,a7 as Xt,a8 as Zt,o as de,a9 as Ue,aa as er,S as He,ab as tr,ac as Ne,w as rr,D as ar,ad as st,h as Le,s as Ce,e as we,m as Fe,t as Be,q as ut,A as xe,M as nr,ae as sr,af as $e,k as ze,x as vt,i as Ee,p as Ye,ag as or,R as ot,ah as ir,ai as lr,P as cr,a as dr,I as Ae,n as ft,aj as ur,ak as it,al as vr,am as fr,an as hr,ao as gr,c as pr,ap as _r,aq as mr,N as br,u as yr,C as Cr,v as kr}from"./3JqtIvwh.js";import{p as S,r as Te,s as ht}from"./M-YrVFI7.js";import{t as wr}from"./BpbjeQs5.js";import{O as Pr}from"./DpT3h3Cj.js";class Ge{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#a().observe(e,this.#r),()=>{var s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#a(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){Ge.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var Sr=new Ge({box:"border-box"});function gt(C,e,a){var r=Sr.observe(C,()=>a(C[e]));ct(()=>(dt(()=>a(C[e])),r))}var xr=N("<div><!></div>");function pt(C,e){const a=Ie();te(e,!0);let r=S(e,"id",23,()=>Pe(a)),s=S(e,"children",7),n=S(e,"child",7),i=S(e,"ref",15,null),c=Te(e,["$$slots","$$events","$$legacy","$$host","id","children","child","ref"]);const f=Ht.create({id:se.with(()=>r()),ref:se.with(()=>i(),k=>i(k))}),p=K(()=>qe(c,f.props));var w=Q(),y=R(w);{var x=k=>{var _=Q(),q=R(_);ue(q,n,()=>({props:t(p)})),d(k,_)},E=k=>{var _=xr();Se(_,()=>({...t(p)}));var q=v(_);ue(q,()=>s()??Oe),u(_),d(k,_)};W(y,k=>{n()?k(x):k(E,!1)})}return d(C,w),re({get id(){return r()},set id(k=Pe(a)){r(k),P()},get children(){return s()},set children(k){s(k),P()},get child(){return n()},set child(k){n(k),P()},get ref(){return i()},set ref(k=null){i(k),P()}})}ae(pt,{id:{},children:{},child:{},ref:{}},[],[],!0);function _t(C,e){te(e,!0);let a=S(e,"children",7),r=S(e,"defaultPortalTo",7),s=S(e,"defaultLocale",7);$t({defaultPortalTo:se.with(()=>r()),defaultLocale:se.with(()=>s())});var n=Q(),i=R(n);return ue(i,()=>a()??Oe),d(C,n),re({get children(){return a()},set children(c){a(c),P()},get defaultPortalTo(){return r()},set defaultPortalTo(c){r(c),P()},get defaultLocale(){return s()},set defaultLocale(c){s(c),P()}})}ae(_t,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],!0);const Je=Qt({component:"collapsible",parts:["root","content","trigger"]}),Xe=new zt("Collapsible.Root");class Ze{static create(e){return Xe.set(new Ze(e))}opts;attachment;#e=Y(null);get contentNode(){return t(this.#e)}set contentNode(e){L(this.#e,e,!0)}#t=Y(void 0);get contentId(){return t(this.#t)}set contentId(e){L(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=je(this.opts.ref),new Vt({ref:se.with(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=K(()=>({id:this.opts.id.current,"data-state":Ve(this.opts.open.current),"data-disabled":Qe(this.opts.disabled.current),[Je.root]:"",...this.attachment}));get props(){return t(this.#r)}set props(e){L(this.#r,e)}}class et{static create(e){return new et(e,Xe.get())}opts;root;attachment;#e=K(()=>this.opts.forceMount.current||this.root.opts.open.current);get present(){return t(this.#e)}set present(e){L(this.#e,e)}#t;#r=Y(!1);#a=Y(0);#n=Y(0);constructor(e,a){this.opts=e,this.root=a,L(this.#r,a.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=je(this.opts.ref,r=>this.root.contentNode=r),nt.pre(()=>this.opts.id.current,r=>{this.root.contentId=r}),Rt(()=>{const r=requestAnimationFrame(()=>{L(this.#r,!1)});return()=>{cancelAnimationFrame(r)}}),nt([()=>this.opts.ref.current,()=>this.present],([r])=>{r&&Ut(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const s=r.getBoundingClientRect();if(L(this.#n,s.height,!0),L(this.#a,s.width,!0),!t(this.#r)){const{animationName:n,transitionDuration:i}=this.#t;r.style.transitionDuration=i,r.style.animationName=n}})})}#s=K(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#s)}set snippetProps(e){L(this.#s,e)}#o=K(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":t(this.#n)?`${t(this.#n)}px`:void 0,"--bits-collapsible-content-width":t(this.#a)?`${t(this.#a)}px`:void 0},"data-state":Ve(this.root.opts.open.current),"data-disabled":Qe(this.root.opts.disabled.current),[Je.content]:"",...this.attachment}));get props(){return t(this.#o)}set props(e){L(this.#o,e)}}class tt{static create(e){return new tt(e,Xe.get())}opts;root;attachment;#e=K(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,a){this.opts=e,this.root=a,this.attachment=je(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!t(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){t(this.#e)||(e.key===Kt||e.key===Wt)&&(e.preventDefault(),this.root.toggleOpen())}#t=K(()=>({id:this.opts.id.current,type:"button",disabled:t(this.#e),"aria-controls":this.root.contentId,"aria-expanded":jt(this.root.opts.open.current),"data-state":Ve(this.root.opts.open.current),"data-disabled":Qe(t(this.#e)),[Je.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){L(this.#t,e)}}var Er=N("<div><!></div>");function mt(C,e){const a=Ie();te(e,!0);let r=S(e,"children",7),s=S(e,"child",7),n=S(e,"id",23,()=>Pe(a)),i=S(e,"ref",15,null),c=S(e,"open",15,!1),f=S(e,"disabled",7,!1),p=S(e,"onOpenChange",7,De),w=S(e,"onOpenChangeComplete",7,De),y=Te(e,["$$slots","$$events","$$legacy","$$host","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const x=Ze.create({open:se.with(()=>c(),o=>{c(o),p()(o)}),disabled:se.with(()=>f()),id:se.with(()=>n()),ref:se.with(()=>i(),o=>i(o)),onOpenChangeComplete:se.with(()=>w())}),E=K(()=>qe(y,x.props));var k=Q(),_=R(k);{var q=o=>{var h=Q(),m=R(h);ue(m,s,()=>({props:t(E)})),d(o,h)},g=o=>{var h=Er();Se(h,()=>({...t(E)}));var m=v(h);ue(m,()=>r()??Oe),u(h),d(o,h)};W(_,o=>{s()?o(q):o(g,!1)})}return d(C,k),re({get children(){return r()},set children(o){r(o),P()},get child(){return s()},set child(o){s(o),P()},get id(){return n()},set id(o=Pe(a)){n(o),P()},get ref(){return i()},set ref(o=null){i(o),P()},get open(){return c()},set open(o=!1){c(o),P()},get disabled(){return f()},set disabled(o=!1){f(o),P()},get onOpenChange(){return p()},set onOpenChange(o=De){p(o),P()},get onOpenChangeComplete(){return w()},set onOpenChangeComplete(o=De){w(o),P()}})}ae(mt,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],!0);var Or=N("<div><!></div>");function bt(C,e){const a=Ie();te(e,!0);let r=S(e,"child",7),s=S(e,"ref",15,null),n=S(e,"forceMount",7,!1),i=S(e,"children",7),c=S(e,"id",23,()=>Pe(a)),f=Te(e,["$$slots","$$events","$$legacy","$$host","child","ref","forceMount","children","id"]);const p=et.create({id:se.with(()=>c()),forceMount:se.with(()=>n()),ref:se.with(()=>s(),w=>s(w))});return Yt(C,{forceMount:!0,get open(){return p.present},get ref(){return p.opts.ref},presence:(y,x)=>{let E=()=>x?.().present;var k=Q();const _=K(()=>qe(f,p.props,{hidden:n()?void 0:!E()}));var q=R(k);{var g=h=>{var m=Q(),z=R(m);{let $=K(()=>({...p.snippetProps,props:t(_)}));ue(z,r,()=>t($))}d(h,m)},o=h=>{var m=Or();Se(m,()=>({...t(_)}));var z=v(m);ue(z,()=>i()??Oe),u(m),d(h,m)};W(q,h=>{r()?h(g):h(o,!1)})}d(y,k)},$$slots:{presence:!0}}),re({get child(){return r()},set child(w){r(w),P()},get ref(){return s()},set ref(w=null){s(w),P()},get forceMount(){return n()},set forceMount(w=!1){n(w),P()},get children(){return i()},set children(w){i(w),P()},get id(){return c()},set id(w=Pe(a)){c(w),P()}})}ae(bt,{child:{},ref:{},forceMount:{},children:{},id:{}},[],[],!0);var Tr=N("<button><!></button>");function yt(C,e){const a=Ie();te(e,!0);let r=S(e,"children",7),s=S(e,"child",7),n=S(e,"ref",15,null),i=S(e,"id",23,()=>Pe(a)),c=S(e,"disabled",7,!1),f=Te(e,["$$slots","$$events","$$legacy","$$host","children","child","ref","id","disabled"]);const p=tt.create({id:se.with(()=>i()),ref:se.with(()=>n(),_=>n(_)),disabled:se.with(()=>c())}),w=K(()=>qe(f,p.props));var y=Q(),x=R(y);{var E=_=>{var q=Q(),g=R(q);ue(g,s,()=>({props:t(w)})),d(_,q)},k=_=>{var q=Tr();Se(q,()=>({...t(w)}));var g=v(q);ue(g,()=>r()??Oe),u(q),d(_,q)};W(x,_=>{s()?_(E):_(k,!1)})}return d(C,y),re({get children(){return r()},set children(_){r(_),P()},get child(){return s()},set child(_){s(_),P()},get ref(){return n()},set ref(_=null){n(_),P()},get id(){return i()},set id(_=Pe(a)){i(_),P()},get disabled(){return c()},set disabled(_=!1){c(_),P()}})}ae(yt,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],!0);var Mr=N("<div></div>"),Nr=N('<span class="sr-only">Close</span> <!>',1),Lr=N('<div><div class="dialog-header"><!> <!></div> <!></div>'),Ar=N("<!> <!>",1);function rt(C,e){te(e,!0);let a=S(e,"open",7),r=S(e,"content",7),s=S(e,"title",7),n=S(e,"onClose",7);const i={duration:Number(l.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(l.theme.components.dialog.custom?.transitionDelay)||0,y:Number(l.theme.components.dialog.custom?.transitionY)||10},c=y=>{y||n()()};var f=Q(),p=R(f);{var w=y=>{var x=Q(),E=R(x);_e(E,()=>Zt,(k,_)=>{_(k,{get open(){return a()},onOpenChange:c,children:(q,g)=>{var o=Q(),h=R(o);_e(h,()=>Gt,(m,z)=>{z(m,{get to(){return l.targets.portals},children:($,j)=>{var O=Ar(),B=R(O);{const H=(A,D)=>{let G=()=>D?.().props,Z=()=>D?.().open;var ee=Q(),J=R(ee);{var b=F=>{var I=Mr();Se(I,()=>({...G(),class:"dialog-overlay"})),de(3,I,()=>Ue,()=>i),d(F,I)};W(J,F=>{Z()&&F(b)})}d(A,ee)};_e(B,()=>Jt,(A,D)=>{D(A,{forceMount:!0,child:H,$$slots:{child:!0}})})}var U=M(B,2);{const H=(D,G)=>{let Z=()=>G?.().props,ee=()=>G?.().open;var J=Q(),b=R(J);{var F=I=>{var V=Lr();Se(V,()=>({...Z(),class:"dialog-content"}));var oe=v(V),pe=v(oe);_e(pe,()=>er,(ne,ie)=>{ie(ne,{class:"dialog-title",children:(he,Me)=>{var fe=Q(),T=R(fe);ue(T,()=>s()??Oe),d(he,fe)},$$slots:{default:!0}})});var ye=M(pe,2);_e(ye,()=>tr,(ne,ie)=>{ie(ne,{class:"dialog-close",children:(he,Me)=>{var fe=Nr(),T=M(R(fe),2);He(T,{name:"dismiss"}),d(he,fe)},$$slots:{default:!0}})}),u(oe);var ve=M(oe,2);_e(ve,()=>pt,(ne,ie)=>{ie(ne,{class:"dialog-description",children:(he,Me)=>{var fe=Q(),T=R(fe);ue(T,r),d(he,fe)},$$slots:{default:!0}})}),u(V),de(3,V,()=>Ne,()=>i),d(I,V)};W(b,I=>{ee()&&I(F)})}d(D,J)};let A=K(()=>!l.data.chatConfig.inlineLayout);_e(U,()=>Xt,(D,G)=>{G(D,{forceMount:!0,get preventScroll(){return t(A)},child:H,$$slots:{child:!0}})})}d($,O)},$$slots:{default:!0}})}),d(q,o)},$$slots:{default:!0}})}),d(y,x)};W(p,y=>{l.targets.portals&&y(w)})}return d(C,f),re({get open(){return a()},set open(y){a(y),P()},get content(){return r()},set content(y){r(y),P()},get title(){return s()},set title(y){s(y),P()},get onClose(){return n()},set onClose(y){n(y),P()}})}ae(rt,{open:{},content:{},title:{},onClose:{}},[],[],!0);var Fr=N('<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 Ct(C,e){te(e,!0);let a=K(()=>l.t),r=Y(""),s=Y(""),n=Y(void 0),i=Y(void 0),c=K(()=>t(n)!==void 0||t(i)!==void 0||t(r)!=="");{const f=y=>{var x=Q(),E=R(x);Le(E,()=>t(a).feedbackFormTitle),d(y,x)},p=y=>{var x=Fr(),E=v(x);rr(E,{get classificationConfig(){return l.data.chatConfig.classification},get impact(){return t(n)},set impact(O){L(n,O,!0)},get quality(){return t(i)},set quality(O){L(i,O,!0)}});var k=M(E,2),_=v(k),q=v(_,!0);u(_);var g=M(_,2);Bt(g),u(k);var o=M(k,2),h=v(o),m=v(h,!0);u(h);var z=M(h,2);ar(z),u(o);var $=M(o,2),j=v($,!0);u($),u(x),X(()=>{ge(q,t(a).feedbackFormMessage),Ce(g,"placeholder",t(a).feedbackFormMessagePlaceholder),ge(m,t(a).feedbackFormEmail),Ce(z,"placeholder",t(a).feedbackFormEmailPlaceholder),$.disabled=!t(c),ge(j,t(a).send)}),me("submit",x,async O=>{O.preventDefault(),l.data.chatConfig.classification?await l.submitFeedback({email:t(s),message:t(r),classification:{impact:t(n),quality:t(i)}}):await l.submitFeedback({email:t(s),message:t(r)}),L(n,void 0),L(i,void 0),L(r,""),l.closeFeedback()}),st(g,()=>t(r),O=>L(r,O)),st(z,()=>t(s),O=>L(s,O)),d(y,x)};let w=K(()=>!!l.data.feedbackOpenedId||l.data.feedbackOpenedConversation);rt(C,{get open(){return t(w)},get onClose(){return l.closeFeedback},title:f,content:p,$$slots:{title:!0,content:!0}})}re()}ae(Ct,{},[],[],!0);let Re;function Dr(C,e,a,r,s){Re&&cancelAnimationFrame(Re);const n=C instanceof Window?window.scrollY:C[r],i=performance.now();function c(f){const p=f-i,w=Math.min(p/a,1),y=s(w),x=n+(e-n)*y;C instanceof Window?window.scrollTo({top:x,behavior:"instant"}):C[r]=x,w<1?Re=requestAnimationFrame(c):C.dispatchEvent(new CustomEvent("scrollcomplete"))}Re=requestAnimationFrame(c)}var Rr=()=>l.openConversationFeedback(),Br=N('<div class="chat-page__give-feedback"><button class="btn btn--primary"> </button></div>'),Ir=(C,e)=>{e(500)},qr=N('<div class="chat-page__footer-text"><!></div>'),Hr=N('<section class="chat-page"><!> <div class="chat-page__body"><div class="chat-page__messages"></div> <div class="chat-page__buttons"><!></div></div> <div class="chat-page__footer"><div class="container"><div class="chat-page__footer-content"><button><span class="sr-only"> </span> <!></button> <!> <!></div></div></div></section>');function kt(C,e){te(e,!0);let a=K(()=>l.t),r=Y(!1),s,n,i,c,f;const p=90,w=b=>{f&&Dr(f,f.scrollHeight-f.clientHeight,b,"scrollTop",sr)},y=()=>{if(!f)return;const b=f.scrollHeight-f.scrollTop-f.clientHeight<p;L(r,!b)},x=()=>{y()},E=b=>{if(b.altKey&&b.code==="KeyR"){b.preventDefault();const F=l.data.history.findLast(I=>I.type==="user")?.message;l.goto({name:"start-page",prefill:F})}},k=()=>{setTimeout(()=>{const{chatAppContainer:b,chatAppHeader:F,chatPageMessages:I,chatPageLastUserMessage:V}=l.targets;if(b&&F&&I&&V){const oe=b.clientHeight-F.offsetHeight-c.offsetHeight-i.offsetHeight-V.offsetHeight-parseInt(getComputedStyle(I).gap)*2;n.style.setProperty("--last-bot-message-min-height",`${oe}px`)}w(1e3)},50)},_=()=>{l.onSubmit(!0)};ce(()=>{s&&(f=s.closest(".chat-app__main"))}),ce(()=>{if(f)return f.addEventListener("scroll",y),()=>{f.removeEventListener("scroll",y)}});var q=Hr();me("resize",We,x),me("keypress",We,E);var g=v(q);Ct(g,{});var o=M(g,2),h=v(o);we(h,21,()=>l.data.history,b=>b?.id??b?.time,(b,F)=>{nr(b,{get message(){return t(F)},onmessageupdate:y,onbotmessageinit:k,get logic(){return l}})}),u(h),be(h,b=>n=b,()=>n),Fe(h,(b,F)=>Be?.(b,F),()=>"chatPageMessages");var m=M(h,2),z=v(m);{var $=b=>{var F=Br(),I=v(F);I.__click=[Rr];var V=v(I,!0);u(I),u(F),X(()=>ge(V,t(a).giveFeedback)),d(b,F)};W(z,b=>{l.data.chatConfig.showOverallFeedbackButton&&b($)})}u(m),be(m,b=>i=b,()=>i),u(o);var j=M(o,2),O=v(j),B=v(O),U=v(B);U.__click=[Ir,w];let H;var A=v(U),D=v(A,!0);u(A);var G=M(A,2);He(G,{name:"chevronDown"}),u(U);var Z=M(U,2);ut(Z,{onSubmit:_,class:"chat-page__chat-input"});var ee=M(Z,2);{var J=b=>{var F=qr(),I=v(F);Le(I,()=>t(a).chatFooterText),u(F),d(b,F)};W(ee,b=>{t(a).chatFooterText!==void 0&&b(J)})}u(B),u(O),u(j),be(j,b=>c=b,()=>c),u(q),be(q,b=>s=b,()=>s),X(b=>{H=xe(U,1,"chat-page__scroll-to-bottom btn btn--secondary btn--square",null,H,b),ge(D,t(a).scrollToBottom)},[()=>({"chat-page__scroll-to-bottom--hidden":!t(r)})]),d(C,q),re()}It(["click"]);ae(kt,{},[],[],!0);var $r=N("<div><div><!></div></div>");function wt(C,e){te(e,!0);let a=S(e,"class",7),r=S(e,"children",7),s=Y(void 0);var n=$r();let i;var c=v(n),f=v(c);return ue(f,()=>r()??Oe),u(c),u(n),X(p=>{xe(n,1,$e(["animated-height",a()])),i=ze(n,"",i,p)},[()=>({height:t(s)?`${t(s)}px`:"auto"})]),gt(c,"clientHeight",p=>L(s,p)),d(C,n),re({get class(){return a()},set class(p){a(p),P()},get children(){return r()},set children(p){r(p),P()}})}ae(wt,{class:{},children:{}},[],[],!0);var zr=N("<div><!></div>"),Kr=N('<div class="references__toggle-title"> </div> <!>',1),Wr=N('<div><div class="references__items"></div></div>'),jr=N("<!> <!>",1),Qr=N("<div><!></div>"),Vr=N('<div><div class="references__items"></div> <!></div>'),Ur=N('<div><div class="references__container"><div class="references__transition"><!></div></div></div>');function Pt(C,e){te(e,!0);let a=S(e,"class",7),r=K(()=>l.data.history.filter(E=>E.type==="bot").find(E=>E.id===l.data.currentReferencesAsideId)?.references),s=K(()=>l.data.currentReferencesAsideId),n=Y(void 0),i=Y(!1),c=Y(void 0);ce(()=>{t(s)&&L(i,!1),L(n,t(s),!0)}),ce(()=>{t(i)&&setTimeout(()=>{l.data.chatConfig.inlineLayout===!1&&t(c)?.scrollIntoView({behavior:"smooth"})},200)});const f={delay:200,duration:500,easing:or,y:50};var p=Ur(),w=v(p),y=v(w),x=v(y);return vt(x,()=>l.data.currentReferencesAsideId,E=>{var k=Vr(),_=v(k);we(_,21,()=>t(r)?.used,Ee,(o,h)=>{var m=zr(),z=v(m);ot(z,{get reference(){return t(h)}}),u(m),de(1,m,()=>Ne,()=>({...f,delay:0})),d(o,m)}),u(_);var q=M(_,2);{var g=o=>{var h=Qr(),m=v(h);wt(m,{children:(z,$)=>{var j=Q(),O=R(j);_e(O,()=>mt,(B,U)=>{U(B,{get class(){return`references__further ${a()??""}`},get open(){return t(i)},set open(H){L(i,H,!0)},children:(H,A)=>{var D=jr(),G=R(D);_e(G,()=>yt,(ee,J)=>{J(ee,{class:"references__toggle transition-colors",children:(b,F)=>{var I=Kr(),V=R(I),oe=v(V,!0);u(V);var pe=M(V,2);He(pe,{name:"chevronDown",class:"references__toggle-icon"}),X(()=>ge(oe,l.t.referencesFurtherTitle)),d(b,I)},$$slots:{default:!0}})});var Z=M(G,2);{const ee=(J,b)=>{let F=()=>b?.().props,I=()=>b?.().open;var V=Q(),oe=R(V);{var pe=ye=>{var ve=Wr();Se(ve,()=>({...F(),class:"references__container"}));var ne=v(ve);we(ne,21,()=>t(r)?.unused,Ee,(ie,he)=>{ot(ie,{get reference(){return t(he)}})}),u(ne),u(ve),be(ve,ie=>L(c,ie),()=>t(c)),de(1,ve,()=>Ne,()=>({...f,delay:0})),de(2,ve,()=>Ue,()=>({duration:100})),d(ye,ve)};W(oe,ye=>{I()&&ye(pe)})}d(J,V)};_e(Z,()=>bt,(J,b)=>{b(J,{forceMount:!0,child:ee,$$slots:{child:!0}})})}d(H,D)},$$slots:{default:!0}})}),d(z,j)},$$slots:{default:!0}}),u(h),de(1,h,()=>Ne,()=>f),d(o,h)};W(q,o=>{t(r)?.unused&&t(r).unused.length>0&&o(g)})}u(k),de(2,k,()=>Ye,()=>({duration:200,delay:t(s)?0:200})),de(1,k,()=>Ne,()=>t(n)?f:{duration:0,y:0}),d(E,k)}),u(y),u(w),u(p),X(()=>xe(p,1,$e(["references",a()]))),d(C,p),re({get class(){return a()},set class(E){a(E),P()}})}ae(Pt,{class:{}},[],[],!0);var Yr=N('<div><!> <h1 class="introduction__title"><!></h1></div>');function St(C,e){te(e,!0);let a=K(()=>l.t),r=S(e,"class",7);var s=Yr(),n=v(s);ir(n,{class:"introduction__avatar",isLarge:!0});var i=M(n,2),c=v(i);return Le(c,()=>t(a).introductionTitle),u(i),u(s),X(()=>xe(s,1,`introduction ${r()??""}`)),d(C,s),re({get class(){return r()},set class(f){r(f),P()}})}ae(St,{class:{}},[],[],!0);var Gr=N("<div></div>");function xt(C,e){te(e,!0);let a=S(e,"class",7),r=Te(e,["$$slots","$$events","$$legacy","$$host","class"]);var s=Gr();return Se(s,n=>({class:`predefined-questions ${a()??""}`,...r,[lr]:n}),[()=>({"predefined-questions--pii-padding":l.data.questionHasPii})]),we(s,21,()=>l.data.predefinedQuestions,Ee,(n,i,c)=>{cr(n,{get predefinedQuestion(){return t(i)},get onSubmit(){return l.onStartConversation},index:c})}),u(s),d(C,s),re({get class(){return a()},set class(n){a(n),P()}})}ae(xt,{class:{}},[],[],!0);var Jr=N('<div class="introduction-disclaimer text-container fly-in" style="--fly-in-id: 3;"><!></div>'),Xr=N("<section><!> <!> <!> <!></section>");function Et(C,e){te(e,!0);let a=K(()=>l.t),r=Y(!1);ce(()=>{L(r,!0)});var s=Xr();let n;var i=v(s);St(i,{class:"start-page__introduction fly-in"});var c=M(i,2);ut(c,{get onSubmit(){return l.onStartConversation},class:"start-page__chat-input fly-in",style:"--fly-in-id: 1;",isStartPage:!0});var f=M(c,2);{var p=x=>{xt(x,{class:"start-page__predefined-questions fly-in",style:"--fly-in-id: 2;"})};W(f,x=>{l.data.predefinedQuestions&&l.data.predefinedQuestions.length&&x(p)})}var w=M(f,2);{var y=x=>{var E=Jr(),k=v(E);Le(k,()=>t(a).introductionDisclaimer),u(E),d(x,E)};W(w,x=>{t(a).introductionDisclaimer&&x(y)})}u(s),X(x=>n=xe(s,1,"start-page container",null,n,x),[()=>({mounted:t(r)})]),d(C,s),re()}ae(Et,{},[],[],!0);function lt(C,{delay:e=0,duration:a=200,easing:r=i=>i,baseScale:s=0,transformOrigin:n="bottom right"}={}){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: scale(1); transform-origin: ${n};`};const c=getComputedStyle(C),f=+c.opacity,p=c.transform.match(/scale\(([0-9.]+)\)/),w=p?+p[1]:1,y=1-s;return{delay:e,duration:a,css:x=>{const E=r(x),k=E*w*y+s;return`opacity: ${E*f}; transform: scale(${k}); transform-origin: ${n};`}}}var Zr=N('<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 ea={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 Ot(C,e){te(e,!0),dr(C,ea);let a=S(e,"color",7),r=S(e,"background",7);var s=Zr(),n=v(s);return u(s),X(()=>{ze(s,r()?`background: ${r()};`:""),Ce(n,"fill",a()??"rgba(127, 127, 127, 0.3)")}),d(C,s),re({get color(){return a()},set color(i){a(i),P()},get background(){return r()},set background(i){r(i),P()}})}ae(Ot,{color:{},background:{}},[],[],!0);var ta=N('<div class="flyout__content"><!></div>'),ra=N('<div><div class="flyout__body"><!></div></div>'),aa=N('<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>',1);function Tt(C,e){te(e,!0);let a=S(e,"children",7),r=S(e,"loaderColor",7),s=S(e,"loaderBackground",7),n=S(e,"flyout",7),i=S(e,"flyoutClass",7),c=S(e,"flyoutStyle",7),f=S(e,"onCloseChat",7),p=S(e,"onError",7),w=Te(e,["$$slots","$$events","$$legacy","$$host","children","loaderColor","loaderBackground","flyout","flyoutClass","flyoutStyle","onCloseChat","onError"]),y;const x=g=>{ce(()=>{const o=h=>{y=h};return g.addEventListener("click",o),()=>{g.removeEventListener("click",o),y=void 0}})};var E=Q();me("click",We,g=>{g!==y&&n()&&f()()});var k=R(E);{var _=g=>{var o=Q(),h=R(o);{var m=$=>{},z=$=>{var j=ra(),O=v(j),B=v(O);{var U=A=>{var D=ta(),G=v(D);ue(G,a),u(D),de(1,D,()=>lt,()=>({delay:0,duration:500,easing:it,baseScale:.3})),de(2,D,()=>lt,()=>({delay:0,duration:300,easing:it,baseScale:.7})),d(A,D)},H=A=>{Pr(A,ht({get onError(){return p()},onclick:D=>{D.stopPropagation(),l.openFlyout()},buttonClass:"flyout__open-button"},()=>w))};W(B,A=>{l.data.flyoutIsOpen?A(U):A(H,!1)})}u(O),Fe(O,A=>x?.(A)),u(j),X(()=>{ze(j,c()),xe(j,1,$e(["flyout",i()]))}),d($,j)};W(h,$=>{l.initialized?$(z,!1):$(m)})}d(g,o)},q=g=>{var o=Q(),h=R(o);{var m=$=>{var j=aa(),O=R(j);Ae(O,{id:"app-css",get css(){return ft}});var B=M(O,2),U=v(B),H=v(U);ur(H,e,"loader",{},A=>{Ot(A,{get background(){return s()},get color(){return r()}})}),u(U),u(B),de(2,B,()=>Ye,()=>({duration:200,delay:300})),d($,j)},z=$=>{var j=Q(),O=R(j);ue(O,a),d($,j)};W(h,$=>{l.initialized?$(z,!1):$(m)})}d(g,o)};W(k,g=>{n()?g(_):g(q,!1)})}return d(C,E),re({get children(){return a()},set children(g){a(g),P()},get loaderColor(){return r()},set loaderColor(g){r(g),P()},get loaderBackground(){return s()},set loaderBackground(g){s(g),P()},get flyout(){return n()},set flyout(g){n(g),P()},get flyoutClass(){return i()},set flyoutClass(g){i(g),P()},get flyoutStyle(){return c()},set flyoutStyle(g){c(g),P()},get onCloseChat(){return f()},set onCloseChat(g){f(g),P()},get onError(){return p()},set onError(g){p(g),P()}})}ae(Tt,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},["loader"],[],!0);var na=N('<span class="reference__description line-clamp line-clamp--6"> </span>'),sa=N('<span class="reference__breadcrumb transition-colors"> </span>'),oa=N('<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>'),ia=N('<div class="reference-number__content-wrapper" role="tooltip"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer"><span class="reference__header"><h3 class="reference__title line-clamp line-clamp--2 h4"> </h3> <!></span> <!> <!></a></div>'),la=N('<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>');function ca(C,e){te(e,!0);let a=K(()=>l.t),r=S(e,"usedNumber",7),s=S(e,"source",7),n=Y(!1),i,c,f=Y(void 0);const p=s();let w=K(()=>p.display.card.title),y=K(()=>p.display.card.description),x=K(()=>p.display.card.badge),E=K(()=>p.display.card.breadcrumbs);const k={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},_=async()=>{if(!c||!t(f))return;const{x:O,y:B}=await vr(c,t(f),{placement:"top",middleware:[fr(8),hr(),gr({padding:8})]});Object.assign(t(f).style,{left:`${O}px`,top:`${B}px`})},q=()=>{i&&(clearTimeout(i),i=void 0)},g=()=>{q(),i=setTimeout(()=>{L(n,!1)},100)},o=()=>{q(),L(n,!0)};ce(()=>{t(n)&&_()});var h=la(),m=v(h),z=v(m,!0);u(m),be(m,O=>c=O,()=>c);var $=M(m,2);{var j=O=>{var B=ia(),U=v(B),H=v(U),A=v(H),D=v(A,!0);u(A);var G=M(A,2);He(G,{name:"externalLink",class:"reference__icon transition-colors"}),u(H);var Z=M(H,2);{var ee=F=>{var I=na(),V=v(I,!0);u(I),X(()=>ge(V,t(y))),d(F,I)};W(Z,F=>{t(y)&&F(ee)})}var J=M(Z,2);{var b=F=>{var I=oa(),V=v(I),oe=v(V),pe=v(oe,!0);u(oe),u(V);var ye=M(V,2);{var ve=ne=>{var ie=Q(),he=R(ie);we(he,17,()=>t(E),Ee,(Me,fe)=>{var T=sa(),le=v(T,!0);u(T),X(()=>ge(le,t(fe))),d(Me,T)}),d(ne,ie)};W(ye,ne=>{t(E)&&ne(ve)})}u(I),X(()=>ge(pe,t(x))),d(F,I)};W(J,F=>{t(x)&&F(b)})}u(U),u(B),be(B,F=>L(f,F),()=>t(f)),X(()=>{Ce(U,"href",p.url),ge(D,t(w))}),me("mouseenter",B,o),me("mouseleave",B,g),de(3,B,()=>Ne,()=>k),d(O,B)};W($,O=>{t(n)&&O(j)})}return u(h),X(()=>{Ce(m,"href",p.url),Ce(m,"aria-label",`${t(a).referenceLink??""}: ${t(w)??""}`),ge(z,r())}),me("mouseenter",m,o),me("mouseleave",m,g),me("focus",m,()=>L(n,!0)),me("blur",m,()=>L(n,!1)),d(C,h),re({get usedNumber(){return r()},set usedNumber(O){r(O),P()},get source(){return s()},set source(O){s(O),P()}})}customElements.define("liipgpt-reference-number",ae(ca,{source:{attribute:"data-source",type:"Object"},refNumber:{attribute:"data-all-index",type:"String"},usedNumber:{attribute:"data-used-index",type:"String"}},[],[],!1));function Mt(C,e){te(e,!0);let a=K(()=>l.t);rt(C,{get open(){return l.data.termsOpened},get onClose(){return l.closeTerms},title:n=>{var i=Q(),c=R(i);Le(c,()=>t(a).termsTitle),d(n,i)},content:n=>{var i=Q(),c=R(i);Le(c,()=>t(a).termsContent),d(n,i)},$$slots:{title:!0,content:!0}}),re()}ae(Mt,{},[],[],!0);var da=N('<link rel="stylesheet"/>'),ua=N('<link rel="stylesheet"/>'),va=N("<!> <!> <!>",1),fa=N('<link rel="stylesheet"/>'),ha=N("<!> <!> <!> <!>",1),ga=N('<div class="chat-app__page-transition"><!></div>'),pa=N('<div><div class="chat-app__main"><div class="chat-app__portals"></div> <div class="chat-app__header"><div class="container"><div><!> <!> <!> <!></div></div></div> <div class="chat-app__body"><!> <!></div> <!></div> <!></div>'),_a=N('<main class="chat-app"><!> <!></main>');function ma(C,e){te(e,!0);let a=S(e,"host",7),r=S(e,"onError",7),s=Te(e,["$$slots","$$events","$$legacy","$$host","host","onError"]);ce(()=>{const o={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};dt(()=>l.init(o).catch(h=>r()(h)))});let n=K(()=>l.data.route.name);const i=()=>{l.closeFlyout(),a().dispatchEvent(new CustomEvent("closechat"))};ce(()=>{l.initialized&&l.data?.chatConfig&&a().dispatchEvent(new CustomEvent("configloaded",{detail:l.data.chatConfig}))});let c=Y(void 0),f=Y(0);const p=wr.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout;let w=Y(!1),y=K(()=>l.data.props?.flyout||t(f)<=p),x=K(()=>l.data?.chatConfig?.inlineLayout),E=Y(void 0),k=Y(!1),_=Y(0);ce(()=>{if(t(E)&&t(E).firstElementChild instanceof HTMLElement){const o=getComputedStyle(t(E).firstElementChild);L(_,parseFloat(o.paddingTop)||0,!0)}}),ce(()=>{let o=!1;const h=()=>{o||(o=!0,requestAnimationFrame(()=>{t(c)&&(o=!1,L(k,t(c).scrollTop>=t(_)+1))}))};return h(),t(c)?.addEventListener("scroll",h,{passive:!0}),()=>t(c)?.removeEventListener("scroll",h)});const q=()=>{l.closeReferencesAside()};ce(()=>{l.data.currentReferencesAsideId?L(w,!0):L(w,!1)}),ce(()=>{l.setAsideMobile(t(y))});let g=Y(void 0);return ce(()=>{if(t(x)&&t(g)){let o=!1;const h=()=>{o||(o=!0,t(g)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{o=!1},300))},m=["mouseup","click","touchend","keydown","input"];return m.forEach(z=>{t(g).addEventListener(z,h,!0)}),()=>{m.forEach(z=>{t(g).removeEventListener(z,h,!0)})}}}),qt(o=>{var h=Q(),m=R(h);{var z=$=>{var j=va(),O=R(j);we(O,17,()=>l.themeBase.fontURLs??[],Ee,(H,A)=>{var D=da();X(()=>Ce(D,"href",t(A))),d(H,D)});var B=M(O,2);we(B,17,()=>l.data.additionalStylesheets,Ee,(H,A)=>{var D=ua();X(()=>Ce(D,"href",t(A))),d(H,D)});var U=M(B,2);Ae(U,{id:"font-css",get css(){return l.themeBase.fontCSS}}),d($,j)};W(m,$=>{l.initialized&&$(z)})}d(o,h)}),_t(C,{get defaultPortalTo(){return t(c)},children:(o,h)=>{var m=_a();let z;var $=v(m);{var j=B=>{var U=ha(),H=R(U);{let Z=K(()=>pr(l.theme));Ae(H,{id:"theme-css",get css(){return t(Z)}})}var A=M(H,2);Ae(A,{id:"app-css",get css(){return ft}});var D=M(A,2);Ae(D,{id:"custom-css",get css(){return l.themeBase.customCSS}});var G=M(D,2);we(G,17,()=>l.data.additionalStylesheets,Ee,(Z,ee)=>{var J=fa();X(()=>Ce(J,"href",t(ee))),d(Z,J)}),d(B,U)};W($,B=>{l.initialized&&B(j)})}var O=M($,2);Tt(O,ht({onCloseChat:i,get onError(){return r()}},()=>s,{children:(B,U)=>{var H=pa(),A=v(H),D=v(A);Fe(D,(T,le)=>Be?.(T,le),()=>"portals");var G=M(D,2),Z=v(G),ee=v(Z);let J;var b=v(ee);{var F=T=>{br(T,{})};W(b,T=>{t(n)!=="start-page"&&T(F)})}var I=M(b,2);{var V=T=>{yr(T,{get logic(){return l}})};W(I,T=>{l.data.chatConfig.showContextInfo&&T(V)})}var oe=M(I,2);{var pe=T=>{Cr(T,{get chatLogic(){return l}})};W(oe,T=>{l.data.chatConfig.showContextMenu&&T(pe)})}var ye=M(oe,2);{var ve=T=>{kr(T,{onclick:i})};W(ye,T=>{(l.data.chatConfig.showCloseChatButton||l.data.props.flyout)&&T(ve)})}u(ee),u(Z),u(G),Fe(G,(T,le)=>Be?.(T,le),()=>"chatAppHeader");var ne=M(G,2),ie=v(ne);Mt(ie,{});var he=M(ie,2);vt(he,()=>t(n),T=>{var le=ga(),Nt=v(le);{var Lt=ke=>{Et(ke,{})},At=ke=>{var at=Q(),Ft=R(at);{var Dt=Ke=>{kt(Ke,{})};W(Ft,Ke=>{t(n)==="chat-page"&&Ke(Dt)},!0)}d(ke,at)};W(Nt,ke=>{t(n)==="start-page"?ke(Lt):ke(At,!1)})}u(le),be(le,ke=>L(E,ke),()=>t(E)),de(1,le,()=>Ue,()=>({duration:300,delay:250})),de(2,le,()=>Ye,()=>({duration:150})),d(T,le)}),u(ne);var Me=M(ne,2);_r(Me,{position:"top-center"}),u(A),be(A,T=>L(c,T),()=>t(c));var fe=M(A,2);mr(fe,{get isOpen(){return t(w)},get isMobile(){return t(y)},onClose:q,get title(){return l.t.referencesTitle},children:(T,le)=>{Pt(T,{})},$$slots:{default:!0}}),u(H),ct(()=>gt(H,"clientWidth",T=>L(f,T))),be(H,T=>L(g,T),()=>t(g)),Fe(H,(T,le)=>Be?.(T,le),()=>"chatAppContainer"),X(T=>{xe(H,1,$e(["chat-app__container",{"chat-app__container--inline-layout":l?.data?.chatConfig?.inlineLayout}])),J=xe(ee,1,"chat-app__header-content",null,J,T)},[()=>({"has-border":t(k)})]),d(B,H)},$$slots:{default:!0}})),u(m),X(B=>z=ze(m,"",z,B),[()=>({"color-scheme":l.colorScheme})]),d(o,m)},$$slots:{default:!0}}),re({get host(){return a()},set host(o){a(o),P()},get onError(){return r()},set onError(o){r(o),P()}})}ae(ma,{host:{},onError:{}},[],[],!0);export{ma as C};
@@ -1 +1 @@
1
- import"./NZTpNUN0.js";import{aC as Oe,ae as Me,aD as he,aj as ue,aE as ae,_ as ve,P as be,ax as Ne,a0 as me,aF as fe,aG as ge,h as Ae,al as we,ah as re,am as oe,v as pe,an as $,aq as Be,ar as De,as as He,at as ye,ao as Pe,au as Re,p as We,I as Z,aH as Fe,a as S,G as e,H as v,b as h,d as Ge,f as L,s as M,K,e as N,r as A,c as Ye,O as ne,t as Ue}from"./DC-s52-u.js";import{i as G,b as xe}from"./Buwjqn5O.js";import{e as Ve,i as $e,I as J,c as Ze,B as Ke,h as ie,b as Je,d as Qe,g as Xe,f as et,j as tt,s as at}from"./C99KO4nD.js";import{p as _e,r as rt}from"./M-YrVFI7.js";import"./BWlPVxXO.js";const se=0,Q=1,ce=2;function ke(X,b,z,C,D){$&&Pe();var p=X,Y=Oe(),ee=Ae,l=ue,d,w,n,m=Y?ve(void 0):be(void 0,!1,!1),U=Y?ve(void 0):be(void 0,!1,!1),H=!1;function j(r,f){H=!0,f&&(me(V),fe(V),ge(ee));try{r===se&&z&&(d?we(d):d=re(()=>z(p))),r===Q&&C&&(w?we(w):w=re(()=>C(p,m))),r!==se&&d&&oe(d,()=>d=null),r!==Q&&w&&oe(w,()=>w=null),r!==ce&&n&&oe(n,()=>n=null)}finally{f&&(ge(null),fe(null),me(null),pe())}}var V=Me(()=>{if(l===(l=b()))return;let r=$&&he(l)===(p.data===Be);if(r&&(p=De(),He(p),ye(!1),r=!0),he(l)){var f=l;H=!1,f.then(P=>{f===l&&(ae(m,P),j(Q,!0))},P=>{if(f===l)throw ae(U,P),j(ce,!0),U.v}),$?z&&(d=re(()=>z(p))):Ne(()=>{H||j(se,!0)})}else ae(m,l),j(Q,!1);return r&&ye(!0),()=>l=ue});$&&(p=Re)}const ot='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer base{.chat-app{--spacer-1: .0625rem;--spacer-2: .125rem;--spacer-3: .1875rem;--spacer-4: .25rem;--spacer-5: .3125rem;--spacer-6: .375rem;--spacer-8: .5rem;--spacer-10: .625rem;--spacer-12: .75rem;--spacer-16: 1rem;--spacer-20: 1.25rem;--spacer-24: 1.5rem;--spacer-28: 1.75rem;--spacer-32: 2rem;--spacer-40: 2.5rem;--spacer-48: 3rem;--spacer-56: 3.5rem;--spacer-64: 4rem;--spacer-80: 5rem;--spacer-120: 7.5rem;--spacer-r-8: clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12: clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16: clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20: clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24: clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28: clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32: clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40: clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48: clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56: clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64: clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80: clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96: clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120: clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration: .2s;--default-transition-timing-function: ease-in-out;--z-index-flyout: 10000;--z-index-dialog: 600;--z-index-loader: 500;--z-index-reference-number: 400;--z-index-footer: 300;--z-index-header: 200;--z-index-tooltip: 100;--z-index-tooltip-hover: 101;--z-index-local-overlay: 10;--ease-out-quart: cubic-bezier(.165, .84, .44, 1);--ease-in-quart: cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--fly-in-id: 0;--btn-padding-x: var(--spacer-r-20);--btn-padding-y: var(--spacer-r-8);--btn-icon-size: var(--spacer-24);--last-bot-message-min-height: 0}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app :where(h1,h2,h3,h4,h5,h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow, none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::-moz-placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:transparent}.chat-app ::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app *:hover::-webkit-scrollbar-thumb,.chat-app *:active::-webkit-scrollbar-thumb,.chat-app *:focus::-webkit-scrollbar-thumb{visibility:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{position:absolute;inset:0;background-color:transparent;content:""}.chat-app :where(.sr-only){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.fly-in){--fly-in-id: 0;--fly-in-duration: .4s;--fly-out-duration: .2s;--fly-in-delay: .3s;--fly-in-delay-additional: .1s;--fly-in-y: var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease,var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){transform:translateY(0);opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration)}.chat-app :where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-app :where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width, 1024px);margin:0 auto;padding-right:var(--spacer-16);padding-left:var(--spacer-16)}@container chat-container (min-width: 640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (min-width: 768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){position:relative;padding-left:1em}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{position:absolute;top:0;left:0;content:"•";font-size:.9em}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container):first-child{margin-top:0}.chat-app :where(.text-container):last-child{margin-bottom:0}.chat-app :where(.text-container) :where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}}@layer base{.svg{width:var(--spacer-r-24);height:auto}.svg svg{display:block;width:100%;height:auto;overflow:visible}}@layer components{.chat-app{display:contents}.chat-app__container{container-name:chat-container;container-type:inline-size;display:flex;align-items:flex-start;height:100%;overflow:hidden;transform:translateZ(0)}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__main{display:flex;flex-direction:column;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);position:sticky;top:0;background:var(--body-background)}.chat-app__header-content{--btn-padding-x: var(--btn-padding-y);display:flex;position:relative;-moz-column-gap:var(--spacer-r-12);column-gap:var(--spacer-r-12);flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10)}.chat-app__header-content>:where(*){z-index:0;position:relative;pointer-events:auto}.chat-app__header-content:after{position:absolute;right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);border-bottom:1px solid transparent;content:"";transition:border-color .1s ease-in-out}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__body{display:flex;position:relative;flex-grow:1;flex-direction:column;width:100%}.chat-app__page-transition{display:flex;flex-grow:1;flex-direction:column;width:100%;height:100%}.chat-app__aside{--duration-in: .65s;--duration-out: .5s;visibility:hidden;flex-grow:1;width:0;height:100%;transition-delay:0s,var(--duration-out);transition-duration:var(--duration-out),0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart),linear}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in),0s;transition-timing-function:var(--ease-out-quart),linear}.chat-app__aside-container{position:relative;width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__aside-header,.chat-app__sheet-header{display:flex;z-index:var(--z-index-header);position:sticky;top:0;flex-wrap:no-wrap;align-items:center;justify-content:space-between;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color)}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);position:fixed;inset:0;background:var(--aside-background-overlay)}.chat-app__sheet-content{z-index:var(--z-index-flyout);position:fixed;top:0;right:0;width:100%;max-width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:transparent}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button:hover .open-button__text{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700;white-space:pre}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease)}.open-button:hover .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease),height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{position:relative;width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance}.open-button__avatar{z-index:var(--z-index-local-overlay);position:relative;width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);overflow:clip;border-radius:var(--spacer-r-80);filter:drop-shadow(0 0 8px rgba(0,0,0,.2));transition:transform .2s var(--open-button-ease)}.open-button:hover .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{display:none;position:absolute;right:0;width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color)}:where(.open-button--standalone){position:fixed;right:var(--spacer-r-16);bottom:var(--spacer-r-16)}@media (prefers-reduced-motion: reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}}';var c=typeof window<"u"?window:{screen:{},navigator:{}},B=(c.matchMedia||function(){return{matches:!1}}).bind(c),nt={get passive(){return!0}},Ee=function(){};c.addEventListener&&c.addEventListener("p",Ee,nt);c.removeEventListener&&c.removeEventListener("p",Ee,!1);var le="ontouchstart"in c,it="TouchEvent"in c,st=le||it&&B("(any-pointer: coarse)").matches,ze=(c.navigator.maxTouchPoints||0)>0||st,Te=c.navigator.userAgent||"",ct=B("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Te)&&Math.min(c.screen.width||0,c.screen.height||0)>=768,qe=(B("(pointer: coarse)").matches||!B("(pointer: fine)").matches&&le)&&!/Windows.*Firefox/.test(Te),pt=B("(any-pointer: fine)").matches||B("(any-hover: hover)").matches||ct||!le,Ce=ze&&(pt||!qe)?"hybrid":ze?"touchOnly":"mouseOnly",lt=Ce==="mouseOnly"?"mouse":Ce==="touchOnly"||qe?"touch":"mouse",dt=L('<div class="open-button__title"><!></div>'),ht=L('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),ut=L('<div class="open-button__text"><!> <!></div>'),vt=L('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),bt=L('<link rel="stylesheet"/>'),mt=L("<!> <!>",1),ft=L('<!> <!> <!> <main class="chat-app"><!></main>',1);function gt(X,b){We(b,!0);const z=(a,o)=>{let i=()=>o?.().chatConfig,y=()=>o?.().language;const t=v(()=>{const{openButtonTitle:g,openButtonDescription:s}=i().translations[y()];return{openButtonTitle:g,openButtonDescription:s}}),u=v(()=>i().fullTheme[e(C)].tokens.svgs);{let g=v(()=>["open-button",b.buttonClass]);Ke(a,{get href(){return i().buttonHref},get onclick(){return b.onclick},onmouseenter:j,onmouseleave:V,get style(){return b.buttonStyle},get className(){return e(g)},get isStandalone(){return e(d)},children:(s,R)=>{var x=vt(),_=S(x);{var E=q=>{var O=ut(),de=N(O);{var Ie=I=>{var k=dt(),F=N(k);ie(F,()=>e(t).openButtonTitle),A(k),h(I,k)};G(de,I=>{e(t).openButtonTitle&&I(Ie)})}var Se=M(de,2);{var Le=I=>{var k=ht(),F=N(k),je=N(F);ie(je,()=>e(t).openButtonDescription),A(F),xe(F,te=>ne(m,te),()=>e(m)),A(k),xe(k,te=>ne(n,te),()=>e(n)),h(I,k)};G(Se,I=>{e(t).openButtonDescription&&lt==="mouse"&&I(Le)})}A(O),h(q,O)};G(_,q=>{(e(t).openButtonTitle||e(t).openButtonDescription)&&q(E)})}var T=M(_,2),W=N(T);ie(W,()=>e(u).avatar),A(T),h(s,x)},$$slots:{default:!0}})}};let C=K("light"),D=_e(b,"host",7),p=_e(b,"onError",7),Y=rt(b,["$$slots","$$events","$$legacy","$$host","host","onError"]);const ee=async a=>{const i=await(await fetch(`${a}/chatconfig`)).json();return tt.parse(i)},l=async({forceTheme:a,lang:o,apiUrl:i})=>{const y=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await ee(i),t=Je(y);let u;o?u=Qe(o,t.supportedLanguages):u=Xe(t.supportedLanguages);const g=Object.keys(t.fullTheme);return ne(C,et(g),!0),{chatConfig:t,language:u}};let d=v(()=>!!D()),w=K(!1),n=K(void 0),m=K(void 0),U=v(()=>e(m)?.offsetWidth??0),H=v(()=>e(m)?.offsetHeight??0);function j(){!e(m)||!e(n)||(e(n).style.width=`${e(U)}px`,e(n).style.height=`${e(H)}px`)}function V(){!e(w)&&e(n)&&(e(n).style.width="0",e(n).style.height="0")}let r=v(()=>l(Y).catch(a=>p()(a)));var f=Z();Fe(a=>{var o=Z(),i=S(o);{var y=t=>{var u=Z(),g=S(u);ke(g,()=>e(r),null,(s,R)=>{var x=mt();const _=v(()=>e(R).chatConfig.fullTheme[e(C)]);var E=S(x);Ve(E,17,()=>e(_).fontURLs??[],$e,(W,q)=>{var O=bt();Ue(()=>at(O,"href",e(q))),h(W,O)});var T=M(E,2);J(T,{id:"font-css",get css(){return e(_).fontCSS}}),h(s,x)}),h(t,u)};G(i,t=>{e(d)&&t(y)})}h(a,o)});var P=S(f);return ke(P,()=>e(r),a=>{},(a,o)=>{var i=Z();const y=v(()=>e(o).chatConfig.fullTheme[e(C)]);var t=S(i);{var u=s=>{var R=ft(),x=S(R);{let q=v(()=>Ze(e(y).tokens));J(x,{id:"theme-css",get css(){return e(q)}})}var _=M(x,2);J(_,{id:"app-css",get css(){return ot}});var E=M(_,2);J(E,{id:"custom-css",get css(){return e(y).customCSS}});var T=M(E,2),W=N(T);z(W,()=>e(o)),A(T),h(s,R)},g=s=>{z(s,()=>e(o))};G(t,s=>{e(d)?s(u):s(g,!1)})}h(a,i)}),h(X,f),Ge({get host(){return D()},set host(a){D(a),pe()},get onError(){return p()},set onError(a){p(a),pe()}})}Ye(gt,{host:{},onError:{}},[],[],!0);export{gt as O};
1
+ import"./NZTpNUN0.js";import{aC as Oe,ae as Me,aD as he,aj as ue,aE as ae,_ as ve,P as be,ax as Ne,a0 as me,aF as fe,aG as ge,h as Ae,al as we,ah as re,am as oe,v as pe,an as $,aq as Be,ar as De,as as He,at as ye,ao as Pe,au as Re,p as We,I as Z,aH as Fe,a as S,G as e,H as v,b as h,d as Ge,f as L,s as M,K,e as N,r as A,c as Ye,O as ne,t as Ue}from"./DC-s52-u.js";import{i as G,b as _e}from"./Buwjqn5O.js";import{e as Ve,i as $e,I as J,c as Ze,B as Ke,h as ie,b as Je,d as Qe,g as Xe,f as et,j as tt,s as at}from"./3JqtIvwh.js";import{p as xe,r as rt}from"./M-YrVFI7.js";import"./BpbjeQs5.js";const se=0,Q=1,ce=2;function ke(X,b,z,C,D){$&&Pe();var p=X,Y=Oe(),ee=Ae,l=ue,d,w,n,m=Y?ve(void 0):be(void 0,!1,!1),U=Y?ve(void 0):be(void 0,!1,!1),H=!1;function j(r,f){H=!0,f&&(me(V),fe(V),ge(ee));try{r===se&&z&&(d?we(d):d=re(()=>z(p))),r===Q&&C&&(w?we(w):w=re(()=>C(p,m))),r!==se&&d&&oe(d,()=>d=null),r!==Q&&w&&oe(w,()=>w=null),r!==ce&&n&&oe(n,()=>n=null)}finally{f&&(ge(null),fe(null),me(null),pe())}}var V=Me(()=>{if(l===(l=b()))return;let r=$&&he(l)===(p.data===Be);if(r&&(p=De(),He(p),ye(!1),r=!0),he(l)){var f=l;H=!1,f.then(P=>{f===l&&(ae(m,P),j(Q,!0))},P=>{if(f===l)throw ae(U,P),j(ce,!0),U.v}),$?z&&(d=re(()=>z(p))):Ne(()=>{H||j(se,!0)})}else ae(m,l),j(Q,!1);return r&&ye(!0),()=>l=ue});$&&(p=Re)}const ot='@layer base,utilities,components;/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::-moz-placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer base{.chat-app{--spacer-1: .0625rem;--spacer-2: .125rem;--spacer-3: .1875rem;--spacer-4: .25rem;--spacer-5: .3125rem;--spacer-6: .375rem;--spacer-8: .5rem;--spacer-10: .625rem;--spacer-12: .75rem;--spacer-16: 1rem;--spacer-20: 1.25rem;--spacer-24: 1.5rem;--spacer-28: 1.75rem;--spacer-32: 2rem;--spacer-40: 2.5rem;--spacer-48: 3rem;--spacer-56: 3.5rem;--spacer-64: 4rem;--spacer-80: 5rem;--spacer-120: 7.5rem;--spacer-r-8: clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12: clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16: clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20: clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24: clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28: clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32: clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40: clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48: clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56: clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64: clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80: clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96: clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120: clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration: .2s;--default-transition-timing-function: ease-in-out;--z-index-flyout: 10000;--z-index-dialog: 600;--z-index-loader: 500;--z-index-reference-number: 400;--z-index-footer: 300;--z-index-header: 200;--z-index-tooltip: 100;--z-index-tooltip-hover: 101;--z-index-local-overlay: 10;--ease-out-quart: cubic-bezier(.165, .84, .44, 1);--ease-in-quart: cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--fly-in-id: 0;--btn-padding-x: var(--spacer-r-20);--btn-padding-y: var(--spacer-r-8);--btn-icon-size: var(--spacer-24);--last-bot-message-min-height: 0}}@value container-sm,container-md,container-lg from "./viewports.css";@layer base{.chat-app :where(h1,h2,h3,h4,h5,h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow, none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::-moz-placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(*:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app *::-moz-selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app *::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:transparent}.chat-app ::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0000004d;-webkit-transition:background-color .2s;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:rgba(0,0,0,.3) transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app *:hover::-webkit-scrollbar-thumb,.chat-app *:active::-webkit-scrollbar-thumb,.chat-app *:focus::-webkit-scrollbar-thumb{visibility:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{position:absolute;inset:0;background-color:transparent;content:""}.chat-app :where(.sr-only){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.fly-in){--fly-in-id: 0;--fly-in-duration: .4s;--fly-out-duration: .2s;--fly-in-delay: .3s;--fly-in-delay-additional: .1s;--fly-in-y: var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease,var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){transform:translateY(0);opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration)}.chat-app :where(.truncate){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-app :where(.line-clamp){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width, 1024px);margin:0 auto;padding-right:var(--spacer-16);padding-left:var(--spacer-16)}@container chat-container (min-width: 640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (min-width: 768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){display:block;margin-bottom:var(--spacer-r-24)}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-position:outside;list-style-type:decimal}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){position:relative;padding-left:1em}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{position:absolute;top:0;left:0;content:"•";font-size:.9em}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;border:none;background-color:var(--color-grey-700);background-color:var(--hr-color)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight, var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration, underline);text-decoration:var(--anchor-text-decoration, underline);text-underline-offset:var(--anchor-text-underline-offset, .15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container):first-child{margin-top:0}.chat-app :where(.text-container):last-child{margin-bottom:0}.chat-app :where(.text-container) :where(table){display:block;width:100%;overflow-x:auto;border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}}@layer base{.svg{width:var(--spacer-r-24);height:auto}.svg svg{display:block;width:100%;height:auto;overflow:visible}}@layer components{.chat-app{display:contents}.chat-app__container{container-name:chat-container;container-type:inline-size;display:flex;align-items:flex-start;height:100%;overflow:hidden;transform:translateZ(0)}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__container.chat-app__container--inline-layout{height:100vh}.chat-app__main{display:flex;flex-direction:column;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y}.chat-app__container--inline-layout .chat-app__main{overscroll-behavior-y:auto}.chat-app__loader-container{display:flex;z-index:var(--z-index-loader);position:relative;align-items:center;justify-content:center;width:100%;height:100%}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);position:sticky;top:0;background:var(--body-background)}.chat-app__header-content{--btn-padding-x: var(--btn-padding-y);display:flex;position:relative;-moz-column-gap:var(--spacer-r-12);column-gap:var(--spacer-r-12);flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10)}.chat-app__header-content>:where(*){z-index:0;position:relative;pointer-events:auto}.chat-app__header-content:after{position:absolute;right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);border-bottom:1px solid transparent;content:"";transition:border-color .1s ease-in-out}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__body{display:flex;position:relative;flex-grow:1;flex-direction:column;width:100%}.chat-app__page-transition{display:flex;flex-grow:1;flex-direction:column;width:100%;height:100%}.chat-app__aside{--duration-in: .65s;--duration-out: .5s;visibility:hidden;flex-grow:1;width:0;height:100%;transition-delay:0s,var(--duration-out);transition-duration:var(--duration-out),0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart),linear}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in),0s;transition-timing-function:var(--ease-out-quart),linear}.chat-app__aside-container{position:relative;width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__container--inline-layout .chat-app__aside-container{overscroll-behavior-y:auto}.chat-app__aside-header,.chat-app__sheet-header{display:flex;z-index:var(--z-index-header);position:sticky;top:0;flex-wrap:no-wrap;align-items:center;justify-content:space-between;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color)}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);position:fixed;inset:0;background:var(--aside-background-overlay)}.chat-app__sheet-content{z-index:var(--z-index-flyout);position:fixed;top:0;right:0;width:100%;max-width:var(--aside-width);height:100%;overflow-y:auto;overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable}.chat-app__container--inline-layout .chat-app__sheet-content{overscroll-behavior-y:auto}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:transparent}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}}@layer components{.open-button{--open-button-avatar-height: var(--spacer-r-80);--open-button-avatar-width: var(--spacer-r-80);--open-button-duration: .4s;--open-button-delay: .3s;--open-button-ease: ease-in-out;display:flex;flex-direction:row;align-items:flex-end;cursor:pointer}.open-button__text{display:flex;position:absolute;right:100%;bottom:50%;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);padding-left:0;overflow:hidden;transform:translateY(50%);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease),padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button:hover .open-button__text{transform:translateY(0);background:var(--open-button-hover-background, var(--open-button-background));color:var(--open-button-hover-color, var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);font-weight:700;white-space:pre}.open-button__mask{width:0;height:0;overflow:hidden;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease),height var(--open-button-duration) var(--open-button-ease)}.open-button:hover .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease),height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{position:relative;width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance}.open-button__avatar{z-index:var(--z-index-local-overlay);position:relative;width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);overflow:clip;border-radius:var(--spacer-r-80);filter:drop-shadow(0 0 8px rgba(0,0,0,.2));transition:transform .2s var(--open-button-ease)}.open-button:hover .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{display:none;position:absolute;right:0;width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color)}:where(.open-button--standalone){position:fixed;right:var(--spacer-r-16);bottom:var(--spacer-r-16)}@media (prefers-reduced-motion: reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}}';var c=typeof window<"u"?window:{screen:{},navigator:{}},B=(c.matchMedia||function(){return{matches:!1}}).bind(c),nt={get passive(){return!0}},Ee=function(){};c.addEventListener&&c.addEventListener("p",Ee,nt);c.removeEventListener&&c.removeEventListener("p",Ee,!1);var le="ontouchstart"in c,it="TouchEvent"in c,st=le||it&&B("(any-pointer: coarse)").matches,ze=(c.navigator.maxTouchPoints||0)>0||st,Te=c.navigator.userAgent||"",ct=B("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Te)&&Math.min(c.screen.width||0,c.screen.height||0)>=768,qe=(B("(pointer: coarse)").matches||!B("(pointer: fine)").matches&&le)&&!/Windows.*Firefox/.test(Te),pt=B("(any-pointer: fine)").matches||B("(any-hover: hover)").matches||ct||!le,Ce=ze&&(pt||!qe)?"hybrid":ze?"touchOnly":"mouseOnly",lt=Ce==="mouseOnly"?"mouse":Ce==="touchOnly"||qe?"touch":"mouse",dt=L('<div class="open-button__title"><!></div>'),ht=L('<div class="open-button__mask"><div class="open-button__description"><!></div></div>'),ut=L('<div class="open-button__text"><!> <!></div>'),vt=L('<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"><!></div>',1),bt=L('<link rel="stylesheet"/>'),mt=L("<!> <!>",1),ft=L('<!> <!> <!> <main class="chat-app"><!></main>',1);function gt(X,b){We(b,!0);const z=(a,o)=>{let i=()=>o?.().chatConfig,y=()=>o?.().language;const t=v(()=>{const{openButtonTitle:g,openButtonDescription:s}=i().translations[y()];return{openButtonTitle:g,openButtonDescription:s}}),u=v(()=>i().fullTheme[e(C)].tokens.svgs);{let g=v(()=>["open-button",b.buttonClass]);Ke(a,{get href(){return i().buttonHref},get onclick(){return b.onclick},onmouseenter:j,onmouseleave:V,get style(){return b.buttonStyle},get className(){return e(g)},get isStandalone(){return e(d)},children:(s,R)=>{var _=vt(),x=S(_);{var E=q=>{var O=ut(),de=N(O);{var Ie=I=>{var k=dt(),F=N(k);ie(F,()=>e(t).openButtonTitle),A(k),h(I,k)};G(de,I=>{e(t).openButtonTitle&&I(Ie)})}var Se=M(de,2);{var Le=I=>{var k=ht(),F=N(k),je=N(F);ie(je,()=>e(t).openButtonDescription),A(F),_e(F,te=>ne(m,te),()=>e(m)),A(k),_e(k,te=>ne(n,te),()=>e(n)),h(I,k)};G(Se,I=>{e(t).openButtonDescription&&lt==="mouse"&&I(Le)})}A(O),h(q,O)};G(x,q=>{(e(t).openButtonTitle||e(t).openButtonDescription)&&q(E)})}var T=M(x,2),W=N(T);ie(W,()=>e(u).avatar),A(T),h(s,_)},$$slots:{default:!0}})}};let C=K("light"),D=xe(b,"host",7),p=xe(b,"onError",7),Y=rt(b,["$$slots","$$events","$$legacy","$$host","host","onError"]);const ee=async a=>{const i=await(await fetch(`${a}/chatconfig`)).json();return tt.parse(i)},l=async({forceTheme:a,lang:o,apiUrl:i})=>{const y=window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await ee(i),t=Je(y);let u;o?u=Qe(o,t.supportedLanguages):u=Xe(t.supportedLanguages);const g=Object.keys(t.fullTheme);return ne(C,et(g),!0),{chatConfig:t,language:u}};let d=v(()=>!!D()),w=K(!1),n=K(void 0),m=K(void 0),U=v(()=>e(m)?.offsetWidth??0),H=v(()=>e(m)?.offsetHeight??0);function j(){!e(m)||!e(n)||(e(n).style.width=`${e(U)}px`,e(n).style.height=`${e(H)}px`)}function V(){!e(w)&&e(n)&&(e(n).style.width="0",e(n).style.height="0")}let r=v(()=>l(Y).catch(a=>p()(a)));var f=Z();Fe(a=>{var o=Z(),i=S(o);{var y=t=>{var u=Z(),g=S(u);ke(g,()=>e(r),null,(s,R)=>{var _=mt();const x=v(()=>e(R).chatConfig.fullTheme[e(C)]);var E=S(_);Ve(E,17,()=>e(x).fontURLs??[],$e,(W,q)=>{var O=bt();Ue(()=>at(O,"href",e(q))),h(W,O)});var T=M(E,2);J(T,{id:"font-css",get css(){return e(x).fontCSS}}),h(s,_)}),h(t,u)};G(i,t=>{e(d)&&t(y)})}h(a,o)});var P=S(f);return ke(P,()=>e(r),a=>{},(a,o)=>{var i=Z();const y=v(()=>e(o).chatConfig.fullTheme[e(C)]);var t=S(i);{var u=s=>{var R=ft(),_=S(R);{let q=v(()=>Ze(e(y).tokens));J(_,{id:"theme-css",get css(){return e(q)}})}var x=M(_,2);J(x,{id:"app-css",get css(){return ot}});var E=M(x,2);J(E,{id:"custom-css",get css(){return e(y).customCSS}});var T=M(E,2),W=N(T);z(W,()=>e(o)),A(T),h(s,R)},g=s=>{z(s,()=>e(o))};G(t,s=>{e(d)?s(u):s(g,!1)})}h(a,i)}),h(X,f),Ge({get host(){return D()},set host(a){D(a),pe()},get onError(){return p()},set onError(a){p(a),pe()}})}Ye(gt,{host:{},onError:{}},[],[],!0);export{gt as O};
@@ -1,3 +1,3 @@
1
- import{o as De,s as mt}from"./Bu5Euvdy.js";import{bB as Ee,K as T,G as x,O as P}from"./DC-s52-u.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 kt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&q.delete(Ie(e)),kt(e,t));const q=new Map;function Et(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&&q.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(q.size>0){const r=Ie(e,n),a=q.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);q.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 Be(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_10or78?.base??"/configurator",Pt=globalThis.__sveltekit_10or78?.assets??U,Ct="1760366246121",Je="sveltekit:snapshot",ze="sveltekit:scroll",Xe="sveltekit:states",Ot="sveltekit:pageurl",F="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 B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...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=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(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:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=Ee(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}=Ee(!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 Ge(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,Bt=-2,Ft=-3,Vt=-4,Gt=-5,Mt=-6;function qt(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===Ft)return NaN;if(s===Vt)return 1/0;if(s===Gt)return-1/0;if(s===Mt)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],_=Ge(p),m=new l(_);r[s]=m;break}case"ArrayBuffer":{const l=o[1],p=Ge(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!==Bt&&(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 Kt=new Set([...tt]);[...Kt];function Ht(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 E,J,ye;const zt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());zt?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(E=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(E,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:Ee(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 G(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 Me(){}let Te,be,re,C,Ae,v;const ae=[],oe=[];let O=null;const ee=new Map,rt=new Set,an=new Set,K=new Set;let w={branch:[],error:null,url:null},xe=!1,se=!1,qe=!0,X=!1,M=!1,at=!1,Pe=!1,ot,A,I,$;const H=new Set;async function En(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?.[F],I=history.state?.[Y],A||(A=I=Date.now(),history.replaceState({...history.state,[F]: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 Ke(){Le(A),Be(ze,D),st(I),Be(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={};H.add(t),O={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(H.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(E,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()};K.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:Ht(n).map(l=>l.node.component),page:$e(E)}};i!==void 0&&(c.props.form=i);let f={},d=!E,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!==E.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:E.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):Et(r,t);return{resolved:a,promise:s}}function He(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(E),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return H.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],k=!!g?.[0]&&(b?.loader!==g[1]||He(p,u,h,l,b.server?.uses,r));return k&&(p=!0),k});if(_.some(Boolean)){try{d=await ht(n,_)}catch(g){const y=await V(g,{url:n,params:r,route:{id:e}});return H.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],k=m?.[y];if((!k||k.type==="skip")&&g[1]===b?.loader&&!He(R,u,h,l,b.universal?.uses,r))return b;if(R=!0,k?.type==="error")throw k;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(k===void 0&&g[0]?{type:"skip"}:k??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(H.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),k;if(m?.includes(y))b=y.status??b,k=y.error;else if(y instanceof le)k=y.body;else{if(await N.updated.check())return await nt(),await G(n);k=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:k,route:a}):await dt(n,{id:a.id},k,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 G(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=Me,block:d=Me}){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 G(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 G(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={[F]: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=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.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(qe){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),qe=!0,m.props.page&&Object.assign(E,m.props.page),X=!1,e==="popstate"&&it(I),l.fulfil(void 0),K.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 G(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))}}K.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(Ke(),!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"&&Ke()}),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(M=!0,Le(A),e(r),!o.replace_state)return;M=!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(!ke){if(t.state?.[F]){const n=t.state[F];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!==E.state&&(E.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(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[F]:++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=E.url=t,N.page.set($e(E)),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 G(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 qt(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?`
1
+ import{o as De,s as mt}from"./Bu5Euvdy.js";import{bB as Ee,K as T,G as x,O as P}from"./DC-s52-u.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 kt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&q.delete(Ie(e)),kt(e,t));const q=new Map;function Et(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&&q.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(q.size>0){const r=Ie(e,n),a=q.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);q.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 Be(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_849wov?.base??"/configurator",Pt=globalThis.__sveltekit_849wov?.assets??U,Ct="1763019714773",Je="sveltekit:snapshot",ze="sveltekit:scroll",Xe="sveltekit:states",Ot="sveltekit:pageurl",F="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 B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Fe={...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=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(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:Fe[r??"off"],preload_data:Fe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=Ee(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}=Ee(!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 Ge(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,Bt=-2,Ft=-3,Vt=-4,Gt=-5,Mt=-6;function qt(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===Ft)return NaN;if(s===Vt)return 1/0;if(s===Gt)return-1/0;if(s===Mt)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],_=Ge(p),m=new l(_);r[s]=m;break}case"ArrayBuffer":{const l=o[1],p=Ge(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!==Bt&&(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 Kt=new Set([...tt]);[...Kt];function Ht(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 E,J,ye;const zt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());zt?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ye={current:!1}):(E=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(E,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:Ee(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 G(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 Me(){}let Te,be,re,C,Ae,v;const ae=[],oe=[];let O=null;const ee=new Map,rt=new Set,an=new Set,K=new Set;let w={branch:[],error:null,url:null},xe=!1,se=!1,qe=!0,X=!1,M=!1,at=!1,Pe=!1,ot,A,I,$;const H=new Set;async function En(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?.[F],I=history.state?.[Y],A||(A=I=Date.now(),history.replaceState({...history.state,[F]: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 Ke(){Le(A),Be(ze,D),st(I),Be(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={};H.add(t),O={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(H.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(E,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()};K.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:Ht(n).map(l=>l.node.component),page:$e(E)}};i!==void 0&&(c.props.form=i);let f={},d=!E,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!==E.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:E.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):Et(r,t);return{resolved:a,promise:s}}function He(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(E),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return H.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],k=!!g?.[0]&&(b?.loader!==g[1]||He(p,u,h,l,b.server?.uses,r));return k&&(p=!0),k});if(_.some(Boolean)){try{d=await ht(n,_)}catch(g){const y=await V(g,{url:n,params:r,route:{id:e}});return H.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],k=m?.[y];if((!k||k.type==="skip")&&g[1]===b?.loader&&!He(R,u,h,l,b.universal?.uses,r))return b;if(R=!0,k?.type==="error")throw k;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(k===void 0&&g[0]?{type:"skip"}:k??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(H.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),k;if(m?.includes(y))b=y.status??b,k=y.error;else if(y instanceof le)k=y.body;else{if(await N.updated.check())return await nt(),await G(n);k=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:k,route:a}):await dt(n,{id:a.id},k,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 G(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=Me,block:d=Me}){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 G(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 G(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={[F]: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=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.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(qe){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),qe=!0,m.props.page&&Object.assign(E,m.props.page),X=!1,e==="popstate"&&it(I),l.fulfil(void 0),K.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 G(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))}}K.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(Ke(),!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"&&Ke()}),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(M=!0,Le(A),e(r),!o.replace_state)return;M=!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(!ke){if(t.state?.[F]){const n=t.state[F];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!==E.state&&(E.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(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[F]:++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=E.url=t,N.page.set($e(E)),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 G(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 qt(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
2
  `:c.decode(u,{stream:!0});;){const l=d.indexOf(`
3
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 ke=!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;ke=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),ke=!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{En as a,Sn as g,vn as l,E as p,N as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CbZBO6K-.js","../chunks/BWlPVxXO.js","../chunks/NZTpNUN0.js","../chunks/DC-s52-u.js","../chunks/M-YrVFI7.js","../nodes/1.RxzCcgx-.js","../chunks/tN9GciFC.js","../chunks/1dD7WPXn.js","../chunks/Bu5Euvdy.js","../nodes/2.Cfyy-seW.js","../chunks/Buwjqn5O.js","../chunks/C99KO4nD.js","../nodes/3.BoGEz7-s.js","../chunks/xZHK-ZHf.js","../chunks/BmSehLEh.js"])))=>i.map(i=>d[i]);
2
- import{i as O,c as x,b as D,_ as E}from"../chunks/Buwjqn5O.js";import{c as N,p as Q,ab as U,u as W,G as i,K as I,O as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,I as w,H as A,e as $,r as tt,ac as et,t as rt,g as at,ad as st}from"../chunks/DC-s52-u.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/Bu5Euvdy.js";import{p as u}from"../chunks/M-YrVFI7.js";const vt={};var nt=C('<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>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),d=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),_=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(d())),W(()=>{m(),d(),o(),r(),_(),f(),b(),m().page.notify()});let y=I(!1),L=I(!1),T=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(L,!0),X().then(()=>{R(T,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=A(()=>o()[1]);var V=it(),k=P(V);{var K=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params},children:(h,mt)=>{var j=w(),z=P(j);x(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return _()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},M=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};O(k,t=>{o()[1]?t(K):t(M,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(T))),p(n,l)};O(v,n=>{i(L)&&n(g)})}tt(a),p(t,a)};O(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return d()},set page(t){d(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return _()},set form(t){_(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}N(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.CbZBO6K-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.RxzCcgx-.js"),__vite__mapDeps([5,2,6,3,7,8]),import.meta.url),()=>E(()=>import("../nodes/2.Cfyy-seW.js"),__vite__mapDeps([9,10,3,2,11,4,6,7,8,1]),import.meta.url),()=>E(()=>import("../nodes/3.BoGEz7-s.js"),__vite__mapDeps([12,2,4,3,11,10,6,7,8,1,13,14]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.AW2mys-2.js","../chunks/BpbjeQs5.js","../chunks/NZTpNUN0.js","../chunks/DC-s52-u.js","../chunks/M-YrVFI7.js","../nodes/1.DLJ3Rj-t.js","../chunks/C6dLbwbN.js","../chunks/Ia_qDzV9.js","../chunks/Bu5Euvdy.js","../nodes/2.B3MdcWTy.js","../chunks/Buwjqn5O.js","../chunks/3JqtIvwh.js","../nodes/3.CgBYaWu4.js","../chunks/Ddtu07x_.js","../chunks/DpT3h3Cj.js"])))=>i.map(i=>d[i]);
2
+ import{i as O,c as x,b as D,_ as E}from"../chunks/Buwjqn5O.js";import{c as N,p as Q,ab as U,u as W,G as i,K as I,O as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,I as w,H as A,e as $,r as tt,ac as et,t as rt,g as at,ad as st}from"../chunks/DC-s52-u.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/Bu5Euvdy.js";import{p as u}from"../chunks/M-YrVFI7.js";const vt={};var nt=C('<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>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),d=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),_=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(d())),W(()=>{m(),d(),o(),r(),_(),f(),b(),m().page.notify()});let y=I(!1),L=I(!1),T=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(L,!0),X().then(()=>{R(T,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=A(()=>o()[1]);var V=it(),k=P(V);{var K=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params},children:(h,mt)=>{var j=w(),z=P(j);x(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return _()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},M=t=>{var a=w();const v=A(()=>o()[0]);var g=P(a);x(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return _()},get params(){return d().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};O(k,t=>{o()[1]?t(K):t(M,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(T))),p(n,l)};O(v,n=>{i(L)&&n(g)})}tt(a),p(t,a)};O(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return d()},set page(t){d(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return _()},set form(t){_(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}N(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.AW2mys-2.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.DLJ3Rj-t.js"),__vite__mapDeps([5,2,6,3,7,8]),import.meta.url),()=>E(()=>import("../nodes/2.B3MdcWTy.js"),__vite__mapDeps([9,10,3,2,11,4,6,7,8,1]),import.meta.url),()=>E(()=>import("../nodes/3.CgBYaWu4.js"),__vite__mapDeps([12,2,4,3,11,10,6,7,8,1,13,14]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/Ia_qDzV9.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{P as r}from"../chunks/BWlPVxXO.js";import"../chunks/NZTpNUN0.js";import{c as a,p as l,I as c,a as p,L as u,b as d,d as h,v as f}from"../chunks/DC-s52-u.js";import{p as g}from"../chunks/M-YrVFI7.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),y=["baselcitygpt"],m=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>y.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(i)},b=`/**
1
+ import{P as r}from"../chunks/BpbjeQs5.js";import"../chunks/NZTpNUN0.js";import{c as a,p as l,I as c,a as p,L as u,b as d,d as h,v as f}from"../chunks/DC-s52-u.js";import{p as g}from"../chunks/M-YrVFI7.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),y=["baselcitygpt"],m=async()=>{const n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.map(e=>y.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(i)},b=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -9,6 +9,7 @@ const CHAT_CONFIG_OVERRIDE = {
9
9
  // showPredefinedQuestions: true,
10
10
  // showReferencesByDefault: true,
11
11
  // showTextFeedback: false,
12
+ // inlineLayout: true,
12
13
  // allowAudioInput: true,
13
14
  // blockPII: false,
14
15
  // questionPrefix: "url:https://example.com",
@@ -58,4 +59,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
58
59
  </g>
59
60
  </svg>
60
61
  </div>
61
- `,C={"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:r,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"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."},"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:w,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."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"}},I=async()=>{const n=await m();let i=C;return i["api-org"].values=Object.keys(n),{optionsDefinition:i,apiUrls:n}},O=!1,x=!0,T=(n,i)=>{const e=structuredClone(n);return Object.entries(n).forEach(([t,o])=>{const s=i.get(t);o.type==="boolean"&&(e[t].required=!0),s!==null?(o.type==="boolean"&&(e[t].value=s!=="false"),o.type==="string"&&(e[t].value=String(s))):o.required?e[t].value=n[t].value:e[t].value=void 0}),e},_=async({url:n})=>{const{optionsDefinition:i,apiUrls:e}=await I(),t=T(i,n.searchParams);if(t["api-org"].value){const o=e[t["api-org"].value];t["api-url"].value=t["prod-api"].value?o.prod:o.dev}return{optionsDefinition:i,options:t}},L=Object.freeze(Object.defineProperty({__proto__:null,load:_,prerender:x,ssr:O},Symbol.toStringTag,{value:"Module"}));function E(n,i){l(i,!0);let e=g(i,"children",7);var t=c(),o=p(t);return u(o,e),d(n,t),h({get children(){return e()},set children(s){e(s),f()}})}a(E,{children:{}},[],[],!0);export{E as component,L as universal};
62
+ `,C={"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:r,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"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."},"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:w,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."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"}},I=async()=>{const n=await m();let i=C;return i["api-org"].values=Object.keys(n),{optionsDefinition:i,apiUrls:n}},O=!1,x=!0,T=(n,i)=>{const e=structuredClone(n);return Object.entries(n).forEach(([t,o])=>{const s=i.get(t);o.type==="boolean"&&(e[t].required=!0),s!==null?(o.type==="boolean"&&(e[t].value=s!=="false"),o.type==="string"&&(e[t].value=String(s))):o.required?e[t].value=n[t].value:e[t].value=void 0}),e},_=async({url:n})=>{const{optionsDefinition:i,apiUrls:e}=await I(),t=T(i,n.searchParams);if(t["api-org"].value){const o=e[t["api-org"].value];t["api-url"].value=t["prod-api"].value?o.prod:o.dev}return{optionsDefinition:i,options:t}},A=Object.freeze(Object.defineProperty({__proto__:null,load:_,prerender:x,ssr:O},Symbol.toStringTag,{value:"Module"}));function E(n,i){l(i,!0);let e=g(i,"children",7);var t=c(),o=p(t);return u(o,e),d(n,t),h({get children(){return e()},set children(s){e(s),f()}})}a(E,{children:{}},[],[],!0);export{E as component,A as universal};
@@ -1 +1 @@
1
- import"../chunks/NZTpNUN0.js";import{i as c,p as r}from"../chunks/tN9GciFC.js";import{c as h,p as l,f as u,a as _,t as v,b as g,d,e as s,r as p,s as x,g as o}from"../chunks/DC-s52-u.js";var b=u("<h1> </h1> <p> </p>",1);function E(m,i){l(i,!1),c();var a=b(),t=_(a),f=s(t,!0);p(t);var e=x(t,2),n=s(e,!0);p(e),v(()=>{o(f,r.status),o(n,r.error?.message)}),g(m,a),d()}h(E,{},[],[],!0);export{E as component};
1
+ import"../chunks/NZTpNUN0.js";import{i as c,p as r}from"../chunks/C6dLbwbN.js";import{c as h,p as l,f as u,a as _,t as v,b as g,d,e as s,r as p,s as x,g as o}from"../chunks/DC-s52-u.js";var b=u("<h1> </h1> <p> </p>",1);function E(m,i){l(i,!1),c();var a=b(),t=_(a),f=s(t,!0);p(t);var e=x(t,2),n=s(e,!0);p(e),v(()=>{o(f,r.status),o(n,r.error?.message)}),g(m,a),d()}h(E,{},[],[],!0);export{E as component};