@liip/liipgpt 3.6.2 → 3.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.
- package/button/liipgpt-button.iife.js +36 -31
- package/chat/liipgpt-chat.iife.js +43 -38
- package/config/index.cjs +42 -18
- package/config/index.d.ts +67 -0
- package/config/index.js +42 -18
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/4rln5D2N.js +1 -0
- package/configurator/_app/immutable/chunks/B-P0cQBf.js +1 -0
- package/configurator/_app/immutable/chunks/{MRyhzcyW.js → BQwc7106.js} +1 -1
- package/configurator/_app/immutable/chunks/{DqWrDTiT.js → BiGeVjFa.js} +2 -2
- package/configurator/_app/immutable/chunks/BiTRwaVm.js +15 -0
- package/configurator/_app/immutable/chunks/CPPDi2Fg.js +1 -0
- package/configurator/_app/immutable/chunks/CqzYdUi6.js +2 -0
- package/configurator/_app/immutable/chunks/{D6Qx_EAy.js → Czdz2g0u.js} +5 -5
- package/configurator/_app/immutable/chunks/D4hsPSLS.js +1 -0
- package/configurator/_app/immutable/chunks/DRq9fhs9.js +1 -0
- package/configurator/_app/immutable/chunks/{DGMq4YTc.js → DSTWBVLS.js} +1 -1
- package/configurator/_app/immutable/chunks/DTspBV79.js +16 -0
- package/configurator/_app/immutable/chunks/DcOGFwCk.js +75 -0
- package/configurator/_app/immutable/chunks/DzOV-etd.js +61 -0
- package/configurator/_app/immutable/chunks/{BsL0-YLl.js → H_Qz1t09.js} +1 -1
- package/configurator/_app/immutable/chunks/IsmK4Fpw.js +143 -0
- package/configurator/_app/immutable/chunks/{DV91TmsB.js → JEKVFENx.js} +6 -1
- package/configurator/_app/immutable/chunks/{BjD-MS84.js → TZgETsNt.js} +1 -1
- package/configurator/_app/immutable/chunks/nqjonts_.js +1 -0
- package/configurator/_app/immutable/chunks/rEsbAd0y.js +3 -0
- package/configurator/_app/immutable/entry/app.Du0Ip1qt.js +2 -0
- package/configurator/_app/immutable/entry/start.A4roapPb.js +1 -0
- package/configurator/_app/immutable/nodes/0.BJaEr5tZ.js +231 -0
- package/configurator/_app/immutable/nodes/1.C4Q2p2ww.js +1 -0
- package/configurator/_app/immutable/nodes/{2.B2VHw2_C.js → 2.zTSXNJuk.js} +11 -9
- package/configurator/_app/immutable/nodes/{3.CtLGhOnC.js → 3.BJjkyEoj.js} +13 -13
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +7 -7
- package/configurator/sidebar.html +7 -7
- package/index.cjs +59 -18
- package/index.d.ts +310 -0
- package/index.js +59 -18
- package/package.json +1 -1
- package/search-summary/liipgpt-search-summary.iife.js +20 -15
- package/configurator/_app/immutable/chunks/BhtfdPmu.js +0 -70
- package/configurator/_app/immutable/chunks/BmUm-Ak4.js +0 -15
- package/configurator/_app/immutable/chunks/C00ruT0L.js +0 -3
- package/configurator/_app/immutable/chunks/C3C5ovFp.js +0 -1
- package/configurator/_app/immutable/chunks/CI5X5-2i.js +0 -16
- package/configurator/_app/immutable/chunks/CNPN3doH.js +0 -1
- package/configurator/_app/immutable/chunks/CZiOHSGl.js +0 -1
- package/configurator/_app/immutable/chunks/Cfhl-lQn.js +0 -1
- package/configurator/_app/immutable/chunks/DVeOoWpz.js +0 -1
- package/configurator/_app/immutable/chunks/DuT8PUr2.js +0 -1
- package/configurator/_app/immutable/chunks/GwQP32Cz.js +0 -61
- package/configurator/_app/immutable/chunks/jnZHBu2H.js +0 -143
- package/configurator/_app/immutable/chunks/yuKWODQS.js +0 -2
- package/configurator/_app/immutable/entry/app.C0j_jYEe.js +0 -2
- package/configurator/_app/immutable/entry/start.B1J-yqeo.js +0 -1
- package/configurator/_app/immutable/nodes/0.ieD1cNha.js +0 -157
- package/configurator/_app/immutable/nodes/1.TURI2PFu.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as e}from"./CibALFW0.js";var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.keys,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible;function p(e){return typeof e==`function`}var m=()=>{};function h(e){return typeof e?.then==`function`}function g(e){return e()}function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function y(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ee=1<<24,b=1024,x=2048,te=4096,ne=8192,re=16384,ie=32768,ae=1<<25,oe=65536,se=1<<18,ce=1<<19,le=1<<20,ue=1<<25,de=65536,fe=1<<21,pe=1<<22,me=1<<23,he=Symbol(`$state`),ge=Symbol(`legacy props`),_e=Symbol(``),ve=Symbol(`proxy path`),ye=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function xe(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Se(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Ce(){throw Error(`https://svelte.dev/e/missing_context`)}function we(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Te(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ee(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function De(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Oe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ke(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ae(){throw Error(`https://svelte.dev/e/fork_discarded`)}function je(){throw Error(`https://svelte.dev/e/fork_timing`)}function Me(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ne(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Pe(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Fe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ie(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Le(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Re(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Be(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ve={},S=Symbol(),He=`http://www.w3.org/1999/xhtml`,Ue=`http://www.w3.org/2000/svg`,We=`http://www.w3.org/1998/Math/MathML`,Ge=`@attach`;function Ke(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function qe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Je(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ye(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw qe(),Ve;return T=e}function D(){return E(R(T))}function Xe(e){if(C){if(R(T)!==null)throw qe(),Ve;T=e}}function Ze(e=1){if(C){for(var t=e,n=T;t--;)n=R(n);T=n}}function Qe(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function $e(e){if(!e||e.nodeType!==8)throw qe(),Ve;return e.data}function et(e){return e===this.v}function tt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function nt(e){return!tt(e,this.v)}var O=!1,rt=!1;function it(){rt=!0}var at=[];function ot(e,t=!1,n=!1){return st(e,new Map,``,at,null,n)}function st(e,n,r,i,a=null,o=!1){if(typeof e==`object`&&e){var s=n.get(e);if(s!==void 0)return s;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(t(e)){var c=Array(e.length);n.set(e,c),a!==null&&n.set(a,c);for(var u=0;u<e.length;u+=1){var f=e[u];u in e&&(c[u]=st(f,n,r,i,null,o))}return c}if(d(e)===l){c={},n.set(e,c),a!==null&&n.set(a,c);for(var p of Object.keys(e))c[p]=st(e[p],n,r,i,null,o);return c}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!o)return st(e.toJSON(),n,r,i,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}function ct(e,t){return e.label=t,lt(e.v,t),e}function lt(e,t){return e?.[ve]?.(t),e}function ut(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}var k=null;function dt(e){k=e}function ft(){let e={};return[()=>(ht(e)||Ce(),pt(e)),t=>mt(e,t)]}function pt(e){return bt(`getContext`).get(e)}function mt(e,t){let n=bt(`setContext`);if(O){var r=G.f;!H&&r&32&&!k.i||Ie()}return n.set(e,t),t}function ht(e){return bt(`hasContext`).has(e)}function gt(){return bt(`getAllContexts`)}function _t(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:G,l:rt&&!t?{s:null,u:null,$:[]}:null}}function vt(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)ar(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function yt(){return!rt||k!==null&&k.l===null}function bt(e){return k===null&&Se(e),k.c??=new Map(xt(k)||void 0)}function xt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var St=[];function Ct(){var e=St;St=[],_(e)}function A(e){if(St.length===0&&!Rt){var t=St;queueMicrotask(()=>{t===St&&Ct()})}St.push(e)}function wt(){for(;St.length>0;)Ct()}function Tt(e){var t=G;if(t===null)return H.f|=me,e;if(!(t.f&32768)&&!(t.f&4))throw e;Et(e,t)}function Et(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Dt=~(x|te|b);function j(e,t){e.f=e.f&Dt|t}function Ot(e){e.f&512||e.deps===null?j(e,b):j(e,te)}function kt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=de,kt(t.deps))}function At(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),kt(e.deps),j(e,b)}var jt=[];function Mt(e,t=m){let n=null,r=new Set;function i(t){if(tt(e,t)&&(e=t,n)){let t=!jt.length;for(let t of r)t[1](),jt.push(t,e);if(t){for(let e=0;e<jt.length;e+=2)jt[e][0](jt[e+1]);jt.length=0}}}function a(t){i(t(e))}function o(o,s=m){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||m),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var Nt=!1,Pt=!1;function Ft(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}var M=new Set,N=null,It=null,P=null,Lt=null,Rt=!1,zt=!1,Bt=null,Vt=null,Ht=0,Ut=1,Wt=class e{id=Ut++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,x),this.schedule(n);for(n of t.m)j(n,te),this.schedule(n)}}#d(){if(Ht++>1e3&&(M.delete(this),Kt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),j(e,x),this.schedule(e);for(let e of this.#s)j(e,te),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Bt=[],r=[],i=Vt=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw en(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Bt=null,Vt=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)$t(e,t)}else{this.#n===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),It=this,Jt(r),Jt(n),It=null,this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#d()),M.has(this)||this.#m()}#f(e,t,n){e.f^=b;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=b:i&4?t.push(r):O&&i&16777224?n.push(r):Ir(r)&&(i&16&&this.#s.add(r),Vr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)At(e[t],this.#o,this.#s)}capture(e,t){t!==S&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{zt=!0,N=this,this.#d()}finally{Ht=0,Lt=null,Bt=null,Vt=null,zt=!1,N=null,P=null,Sn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#m(){for(let s of M){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Yt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,A(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;zt||(M.add(N),Rt||A(()=>{N===t&&t.flush()}))}return N}apply(){if(!O||!this.is_fork&&M.size===1){P=null;return}P=new Map(this.current);for(let e of M)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)P.has(t)||P.set(t,n)}schedule(e){if(Lt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Bt!==null&&t===G&&(O||(H===null||!(H.f&2))&&!Nt))return;if(n&96){if(!(n&1024))return;t.f^=b}}this.#a.push(t)}};function Gt(e){var t=Rt;Rt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(wt(),N===null)return n;N.flush()}}finally{Rt=t}}function Kt(){try{ke()}catch(e){Et(e,Lt)}}var qt=null;function Jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ir(r)&&(qt=new Set,Vr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yr(r),qt?.size>0)){Sn.clear();for(let e of qt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)qt.has(n)&&(qt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vr(n)}}qt.clear()}}qt=null}}function Yt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Yt(i,t,n,r):e&4194320&&!(e&2048)&&Zt(i,t,r)&&(j(i,x),Qt(i))}}function Xt(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Xt(n,t):e&131072&&(j(n,x),t.add(n))}}function Zt(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&Zt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Qt(e){N.schedule(e)}function $t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,b);for(var n=e.first;n!==null;)$t(n,t),n=n.next}}function en(e){j(e,b);for(var t=e.first;t!==null;)en(t),t=t.next}function tn(e){O||xe(`fork`),N!==null&&je();var t=Wt.ensure();t.is_fork=!0,P=new Map;var n=!1,r=t.settled();Gt(e);for(var[i,a]of t.previous)i.v=a;return{commit:async()=>{if(n){await r;return}M.has(t)||Ae(),n=!0,t.is_fork=!1;for(var[e,i]of t.current)e.v=i,e.wv=Fr();Gt(()=>{var e=new Set;for(var n of t.current.keys())Xt(n,e);Cn(e),kn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Fr();!n&&M.has(t)&&t.discard()}}}function nn(e){let t=0,n=Tn(0),r;return()=>{nr()&&(Z(n),dr(()=>(t===0&&(r=Q(()=>e(()=>An(n)))),t+=1,()=>{A(()=>{--t,t===0&&(r?.(),r=void 0,An(n))})})))}}var rn=oe|ce;function an(e,t,n,r){new on(e,t,n,r)}var on=class{parent;is_pending=!1;transform_error;#e;#t=C?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=nn(()=>(this.#m=Tn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=pr(()=>{if(C){let e=this.#t;D();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},rn),C&&(this.#e=T)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),A(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,br(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wr(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){At(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=H,r=k;K(this.#i),W(this.#i),dt(this.#i.ctx);try{return Wt.ensure(),e()}catch(e){return Tt(e),null}finally{K(t),W(n),dt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&br(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,A(()=>{this.#d=!1,this.#m&&On(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),C&&(E(this.#t),Ze(),E(Qe()));var r=!1,i=!1;let a=()=>{if(r){Ye();return}r=!0,i&&Be(),this.#s!==null&&br(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Et(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Et(e,this.#i.parent),null}}))};A(()=>{var t;try{t=this.transform_error(e)}catch(e){Et(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Et(e,this.#i&&this.#i.parent)):o(t)})}};function sn(e,t,n,r){let i=yt()?dn:mn;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=cn(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Et(e,o)}ln()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=un();function d(){Promise.all(n.map(e=>fn(e))).then(e=>l([...t.map(i),...e])).catch(e=>Et(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),ln()}):d()}function cn(){var e=G,t=H,n=k,r=N;return function(i=!0){K(e),W(t),dt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function ln(e=!0){K(null),W(null),dt(null),e&&N?.deactivate()}function un(){var e=G.b,t=N,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function dn(e){var t=2|x,n=H!==null&&H.f&2?H:null;return G!==null&&(G.f|=ce),{ctx:k,deps:null,effects:null,equals:et,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??G,ac:null}}function fn(e,t,n){let r=G;r===null&&we();var i=void 0,a=Tn(S),o=!H,s=new Map;return ur(()=>{var t=G,n=v();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(ln)}catch(e){n.reject(e),ln()}var c=N;if(o){if(t.f&32768)var l=un();if(r.b.is_rendered())s.get(c)?.reject(ye),s.delete(c);else{for(let e of s.values())e.reject(ye);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===ye),!(n===ye||t.f&16384)){if(c.activate(),n)a.f|=me,On(a,n);else{a.f&8388608&&(a.f^=me),On(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(ye)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),rr(()=>{for(let e of s.values())e.reject(ye)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function pn(e){let t=dn(e);return O||kr(t),t}function mn(e){let t=dn(e);return t.equals=nt,t}function hn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function gn(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function _n(e){var t,n=G;K(gn(e));try{e.f&=~de,hn(e),t=Rr(e)}finally{K(n)}return t}function vn(e){var t=e.v,n=_n(e);if(!e.equals(n)&&(e.wv=Fr(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t),e.deps===null))){j(e,b);return}Dr||(P===null?Ot(e):(nr()||N?.is_fork)&&P.set(e,n))}function yn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ye),t.teardown=m,t.ac=null,Br(t,0),gr(t))}function bn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vr(t)}var xn=new Set,Sn=new Map;function Cn(e){xn=e}var wn=!1;function Tn(e,t){return{f:0,v:e,reactions:null,equals:et,rv:0,wv:0}}function En(e,t){let n=Tn(e,t);return kr(n),n}function Dn(e,t=!1,n=!0){let r=Tn(e);return t||(r.equals=nt),rt&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function F(e,t,n=!1){return H!==null&&(!U||H.f&131072)&&yt()&&H.f&4325394&&(q===null||!r.call(q,e))&&ze(),On(e,n?Mn(t):t,Vt)}function On(e,t,n=null){if(!e.equals(t)){var r=e.v;Dr?Sn.set(e,t):Sn.set(e,r),e.v=t;var i=Wt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&_n(t),P===null&&Ot(t)}e.wv=Fr(),jn(e,x,n),yt()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?Ar([e]):X.push(e)),!i.is_fork&&xn.size>0&&!wn&&kn()}return t}function kn(){wn=!1;for(let e of xn)e.f&1024&&j(e,te),Ir(e)&&Vr(e);xn.clear()}function An(e){F(e,e.v+1)}function jn(e,t,n){var r=e.reactions;if(r!==null)for(var i=yt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&x)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=de),jn(u,te,n))}else if(l){var d=s;c&16&&qt!==null&&qt.add(d),n===null?Qt(d):n.push(d)}}}}function Mn(e){if(typeof e!=`object`||!e||he in e)return e;let n=d(e);if(n!==l&&n!==u)return e;var r=new Map,i=t(e),a=En(0),o=null,c=Nr,f=e=>{if(Nr===c)return e();var t=H,n=Nr;W(null),Pr(c);var r=e();return W(t),Pr(n),r};return i&&r.set(`length`,En(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Le();var i=r.get(t);return i===void 0?f(()=>{var e=En(n.value,o);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>En(S,o));r.set(t,e),An(a)}}else F(n,S),An(a);return!0},get(t,n,i){if(n===he)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>En(Mn(c?t[n]:S),o)),r.set(n,a)),a!==void 0){var l=Z(a);return l===S?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=Z(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==S)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===he)return!0;var n=r.get(t),i=n!==void 0&&n.v!==S||Reflect.has(e,t);return(n!==void 0||G!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>En(i?Mn(e[t]):S,o)),r.set(t,n)),Z(n)===S)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>En(S,o)),r.set(d+``,p)):F(p,S)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>En(void 0,o)),F(l,Mn(n)),r.set(t,l));else{u=l.v!==S;var m=f(()=>Mn(n));F(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}An(a)}return!0},ownKeys(e){Z(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==S});for(var[n,i]of r)i.v!==S&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Re()}})}function Nn(e){try{if(typeof e==`object`&&e&&he in e)return e[he]}catch{}return e}function Pn(e,t){return Object.is(Nn(e),Nn(t))}var Fn,In,Ln,Rn,zn;function Bn(){if(Fn===void 0){Fn=window,In=document,Ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rn=s(t,`firstChild`).get,zn=s(t,`nextSibling`).get,f(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),f(n)&&(n.__t=void 0)}}function I(e=``){return document.createTextNode(e)}function L(e){return Rn.call(e)}function R(e){return zn.call(e)}function Vn(e,t){if(!C)return L(e);var n=L(T);if(n===null)n=T.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),E(r),r}return t&&qn(n),E(n),n}function Hn(e,t=!1){if(!C){var n=L(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(T?.nodeType!==3){var r=I();return T?.before(r),E(r),r}qn(T)}return T}function Un(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=R(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),E(a),a}qn(r)}return E(r),r}function Wn(e){e.textContent=``}function Gn(){return!O||qt!==null?!1:(G.f&ie)!==0}function Kn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function qn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Jn(e,t){if(t){let t=document.body;e.autofocus=!0,A(()=>{document.activeElement===t&&e.focus()})}}function Yn(e){C&&L(e)!==null&&Wn(e)}var Xn=!1;function Zn(){Xn||(Xn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qn(e){var t=H,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function $n(e,t,n,r=n){e.addEventListener(t,()=>Qn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Zn()}function er(e){G===null&&(H===null&&Oe(e),De()),Dr&&Ee(e)}function tr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=G;n!==null&&n.f&8192&&(e|=ne);var r={ctx:k,deps:null,nodes:null,f:e|x|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)Bt===null?Wt.ensure().schedule(r):Bt.push(r);else if(t!==null){try{Vr(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=oe))}if(i!==null&&(i.parent=n,n!==null&&tr(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function nr(){return H!==null&&!U}function rr(e){let t=z(8,null);return j(t,b),t.teardown=e,t}function ir(e){er(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return ar(e)}function ar(e){return z(4|le,e)}function or(e){return er(`$effect.pre`),z(8|le,e)}function sr(e){Wt.ensure();let t=z(64|ce,e);return()=>{V(t)}}function cr(e){Wt.ensure();let t=z(64|ce,e);return(e={})=>new Promise(n=>{e.outro?br(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function lr(e){return z(4,e)}function ur(e){return z(pe|ce,e)}function dr(e,t=0){return z(8|t,e)}function fr(e,t=[],n=[],r=[]){sn(r,t,n,t=>{z(8,()=>e(...t.map(Z)))})}function pr(e,t=0){return z(16|t,e)}function mr(e,t=0){return z(ee|t,e)}function B(e){return z(32|ce,e)}function hr(e){var t=e.teardown;if(t!==null){let e=Dr,n=H;Or(!0),W(null);try{t.call(null)}finally{Or(e),W(n)}}}function gr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Qn(()=>{e.abort(ye)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function _r(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vr(e.nodes.start,e.nodes.end),n=!0),j(e,ae),gr(e,t&&!n),Br(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hr(e),e.f^=ae,e.f|=re;var i=e.parent;i!==null&&i.first!==null&&yr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function vr(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function yr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function br(e,t,n=!0){var r=[];xr(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xr(e,t,n){if(!(e.f&8192)){e.f^=ne;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xr(i,t,o?n:!1),i=a}}}function Sr(e){Cr(e,!0)}function Cr(e,t){if(e.f&8192){e.f^=ne,e.f&1024||(j(e,x),Wt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function wr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Tr=null,Er=!1,Dr=!1;function Or(e){Dr=e}var H=null,U=!1;function W(e){H=e}var G=null;function K(e){G=e}var q=null;function kr(e){H!==null&&(!O||H.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function Ar(e){X=e}var jr=1,Mr=0,Nr=Mr;function Pr(e){Nr=e}function Fr(){return++jr}function Ir(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~de),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ir(a)&&vn(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,b)}return!1}function Lr(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!O&&q!==null&&r.call(q,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?Lr(o,t,!1):t===o&&(n?j(o,x):o.f&1024&&j(o,te),Qt(o))}}function Rr(e){var t=J,n=Y,r=X,i=H,a=q,o=k,s=U,c=Nr,l=e.f;J=null,Y=0,X=null,H=l&96?null:e,q=null,dt(e.ctx),U=!1,Nr=++Mr,e.ac!==null&&(Qn(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=fe;var u=e.fn,d=u();e.f|=ie;var f=e.deps,p=N?.is_fork;if(J!==null){var m;if(p||Br(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(nr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Br(e,Y),f.length=Y);if(yt()&&X!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Lr(X[m],e);if(i!==null&&i!==e){if(Mr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mr;if(t!==null)for(let e of t)e.rv=Mr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=me),d}catch(e){return Tt(e)}finally{e.f^=fe,J=t,Y=n,X=r,H=i,q=a,dt(o),U=s,Nr=c}}function zr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(J===null||!r.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~de),Ot(s),yn(s),Br(s,0)}}function Br(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zr(e,n[r])}function Vr(e){var t=e.f;if(!(t&16384)){j(e,b);var n=G,r=Er;G=e,Er=!0;try{t&16777232?_r(e):gr(e),hr(e);var i=Rr(e);e.teardown=typeof i==`function`?i:null,e.wv=jr}finally{Er=r,G=n}}}async function Hr(){if(O)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Gt()}function Ur(){return Wt.ensure().settled()}function Z(e){var t=(e.f&2)!=0;if(Tr?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(q===null||!r.call(q,e))){var n=H.deps;if(H.f&2097152)e.rv<Mr&&(e.rv=Mr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(H.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[H]:r.call(i,H)||i.push(H)}}if(Dr&&Sn.has(e))return Sn.get(e);if(t){var a=e;if(Dr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Gr(a))&&(o=_n(a)),Sn.set(a,o),o}var s=(a.f&512)==0&&!U&&H!==null&&(Er||(H.f&512)!=0),c=(a.f&ie)===0;Ir(a)&&(s&&(a.f|=512),vn(a)),s&&!c&&(bn(a),Wr(a))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Wr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(bn(t),Wr(t))}function Gr(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Sn.has(t)||t.f&2&&Gr(t))return!0;return!1}function Q(e){var t=U;try{return U=!0,e()}finally{U=t}}function Kr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(he in e)qr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&he in n&&qr(n)}}}function qr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{qr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Jr(){return Symbol(Ge)}function Yr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Xr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Zr(e){return Xr.includes(e)}var Qr=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),$r={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function ei(e){return e=e.toLowerCase(),$r[e]??e}[...Qr];var ti=[`touchstart`,`touchmove`];function ni(e){return ti.includes(e)}var ri=[`textarea`,`script`,`style`,`title`];function ii(e){return ri.includes(e)}var ai=Symbol(`events`),oi=new Set,si=new Set;function ci(e,t,n,r={}){function i(e){if(r.capture||mi.call(t,e),!e.cancelBubble)return Qn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?A(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function li(e,t,n,r={}){var i=ci(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ui(e,t,n,r,i){var a={capture:r,passive:i},o=ci(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rr(()=>{t.removeEventListener(e,o,a)})}function di(e,t,n){(t[ai]??={})[e]=n}function fi(e){for(var t=0;t<e.length;t++)oi.add(e[t]);for(var n of si)n(e)}var pi=null;function mi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;pi=e;var s=0,c=pi===e&&e[ai];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[ai]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[ai]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[ai]=t,delete e.currentTarget,W(d),K(f)}}}var hi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function gi(e){return hi?.createHTML(e)??e}function _i(e){var t=Kn(`template`);return t.innerHTML=gi(e.replaceAll(`<!>`,`<!---->`)),t.content}var vi=be?`script`:`SCRIPT`;function $(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function yi(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return $(T,null),T;i===void 0&&(i=_i(a?e:`<!>`+e),n||(i=L(i)));var t=r||Ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function bi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(C)return $(T,null),T;if(!o){var e=L(_i(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function xi(e,t){return bi(e,t,`svg`)}function Si(e){return()=>Ci(e())}function Ci(e){if(C)return e;let t=e.nodeType===11,n=e.nodeName===vi?[e]:e.querySelectorAll(`script`),r=G;for(let a of n){let n=Kn(`script`);for(var i of a.attributes)n.setAttribute(i.name,i.value);n.textContent=a.textContent,(t?e.firstChild===a:e===a)&&(r.nodes.start=n),(t?e.lastChild===a:e===a)&&(r.nodes.end=n),a.replaceWith(n)}return e}function wi(e=``){if(!C){var t=I(e+``);return $(t,t),t}var n=T;return n.nodeType===3?qn(n):(n.before(n=I()),E(n)),$(n,n),n}function Ti(){if(C)return $(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),$(t,n),e}function Ei(e,t){if(C){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),D();return}e!==null&&e.before(t)}function Di(){if(C&&T&&T.nodeType===8&&T.textContent?.startsWith(`$`)){let e=T.textContent.substring(1);return D(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var Oi=!0;function ki(e){Oi=e}function Ai(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function ji(e,t){return Pi(e,t)}function Mi(e,t){Bn(),t.intro=t.intro??!1;let n=t.target,r=C,i=T;try{for(var a=L(n);a&&(a.nodeType!==8||a.data!==`[`);)a=R(a);if(!a)throw Ve;w(!0),E(a);let r=Pi(e,{...t,anchor:a});return w(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Ve&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ne(),Bn(),Wn(n),w(!1),ji(e,t)}finally{w(r),E(i)}}var Ni=new Map;function Pi(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){Bn();var l=void 0,u=cr(()=>{var u=n??t.appendChild(I());an(u,{pending:()=>{}},t=>{_t({});var n=k;if(o&&(n.c=o),a&&(r.$$events=a),C&&$(t,null),Oi=s,l=e(t,r)||{},Oi=!0,C&&(G.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw qe(),Ve;vt()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=ni(r);for(let e of[t,document]){var a=Ni.get(e);a===void 0&&(a=new Map,Ni.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,mi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(i(oi)),si.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=Ni.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,mi),r.delete(e),r.size===0&&Ni.delete(n)):r.set(e,i)}si.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return Fi.set(l,u),l}var Fi=new WeakMap;function Ii(e,t){let n=Fi.get(e);return n?(Fi.delete(e),n(t)):Promise.resolve()}var Li=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Sr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();wr(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),br(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Gn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}},Ri=0,zi=1,Bi=2;function Vi(e,t,n,r,i){C&&D();var a=yt(),o=S,s=a?Tn(o):Dn(o,!1,!1),c=a?Tn(o):Dn(o,!1,!1),l=new Li(e);pr(()=>{var a=N;a.deactivate();var o=t();a.activate();var u=!1;let d=C&&h(o)===(e.data===`[!`);if(d&&(E(Qe()),w(!1)),h(o)){var f=cn(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Wt.ensure(),C&&w(!1);try{e()}finally{ln(!1),Rt||Gt()}}};o.then(t=>{e(()=>{On(s,t),l.ensure(zi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(On(c,t),l.ensure(Bi,i&&(e=>i(e,c))),!i)throw c.v})}),C?l.ensure(Ri,n):A(()=>{p||e(()=>{l.ensure(Ri,n)})})}else On(s,o),l.ensure(zi,r&&(e=>r(e,s)));return d&&w(!0),()=>{u=!0}})}function Hi(e,t,n=!1){var r;C&&(r=T,D());var i=new Li(e),a=n?oe:0;function o(e,t){if(C){var n=$e(r);if(e!==parseInt(n.substring(1))){var a=Qe();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}pr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Ui=Symbol(`NaN`);function Wi(e,t,n){C&&D();var r=new Li(e),i=!yt();pr(()=>{var e=t();e!==e&&(e=Ui),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Gi(e,t){return t}function Ki(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];br(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;qi(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Wn(d),d.append(u),e.items.clear()}qi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function qi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ue,wr(a,document.createDocumentFragment())):V(t[i],n)}}var Ji;function Yi(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=C?E(L(u)):u.appendChild(I())}C&&D();var d=null,f=mn(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Zi(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ue,$i(d,null,c)):Sr(d):br(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:pr(()=>{p=Z(f);var e=p.length;let t=!1;C&&$e(c)===`[!`!=(e===0)&&(c=Qe(),E(c),w(!1),t=!0);for(var i=new Set,u=N,v=Gn(),y=0;y<e;y+=1){C&&T.nodeType===8&&T.data===`]`&&(c=T,t=!0,w(!1));var ee=p[y],b=a(ee,y),x=h?null:l.get(b);x?(x.v&&On(x.v,ee),x.i&&On(x.i,y),v&&u.unskip_effect(x.e)):(x=Qi(l,h?c:Ji??=I(),ee,b,y,o,n,r),h||(x.e.f|=ue),l.set(b,x)),i.add(b)}if(e===0&&s&&!d&&(h?d=B(()=>s(c)):(d=B(()=>s(Ji??=I())),d.f|=ue)),e>i.size&&Te(``,``,``),C&&e>0&&E(Qe()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&w(!0),Z(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=T)}function Xi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Zi(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Xi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Sr(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ue,_===l)$i(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),ea(e,d,_),ea(e,_,y),$i(_,y,n),d=_,p=[],m=[],l=Xi(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var ee=m[0],b;d=ee.prev;var x=p[0],te=p[p.length-1];for(b=0;b<p.length;b+=1)$i(p[b],ee,n);for(b=0;b<m.length;b+=1)u.delete(m[b]);ea(e,x.prev,te.next),ea(e,d,x),ea(e,te,ee),l=ee,d=te,--v,p=[],m=[]}else u.delete(_),$i(_,l,n),ea(e,_.prev,_.next),ea(e,_,d===null?e.effect.first:d.next),ea(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Xi(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Xi(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(qi(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var ne=[];if(u!==void 0)for(_ of u)_.f&8192||ne.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&ne.push(l),l=Xi(l.next);var re=ne.length;if(re>0){var ie=r&4&&s===0?n:null;if(o){for(v=0;v<re;v+=1)ne[v].nodes?.a?.measure();for(v=0;v<re;v+=1)ne[v].nodes?.a?.fix()}Ki(e,ne,ie)}}o&&A(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Qi(e,t,n,r,i,a,o,s){var c=o&1?o&16?Tn(n):Dn(n,!1,!1):null,l=o&2?Tn(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function $i(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function ea(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ta(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;C&&(o=E(L(c)))}fr(()=>{var e=G;if(s===(s=t()??``)){C&&D();return}if(n&&!C){e.nodes=null,c.innerHTML=s,s!==``&&$(L(c),c.lastChild);return}if(e.nodes!==null&&(vr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(C){for(var a=T.data,l=D(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=R(l);if(l===null)throw qe(),Ve;$(T,u),o=E(l);return}var d=Kn(r?`svg`:i?`math`:`template`,r?Ue:i?We:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(L(f),f.lastChild),r||i)for(;L(f);)o.before(L(f));else o.before(f)}})}function na(e,t,n,r,i){C&&D();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function ra(e,t,...n){var r=new Li(e);pr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},oe)}function ia(e){return(t,...n)=>{var r=e(...n),i;C?(i=T,D()):(i=L(_i(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&rr(a)}}function aa(e,t,n){var r;C&&(r=T,D());var i=new Li(e);pr(()=>{var e=t()??null;if(C&&$e(r)===`[`!=(e!==null)){var a=Qe();E(a),i.anchor=a,w(!1),i.ensure(e,e&&(t=>n(t,e))),w(!0);return}i.ensure(e,e&&(t=>n(t,e)))},oe)}var oa=()=>performance.now(),sa={tick:e=>requestAnimationFrame(e),now:()=>oa(),tasks:new Set};function ca(){let e=sa.now();sa.tasks.forEach(t=>{t.c(e)||(sa.tasks.delete(t),t.f())}),sa.tasks.size!==0&&sa.tick(ca)}function la(e){let t;return sa.tasks.size===0&&sa.tick(ca),{promise:new Promise(n=>{sa.tasks.add(t={c:e,f:n})}),abort(){sa.tasks.delete(t)}}}function ua(e,t){Qn(()=>{e.dispatchEvent(new CustomEvent(t))})}function da(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function fa(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=da(n.trim());t[i]=r.trim()}return t}var pa=e=>e;function ma(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return Qn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=ha(t,m(),p,1,()=>{ua(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=ha(t,m(),f,0,()=>{ua(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=G;if((g.nodes.t??=[]).push(h),i&&Oi){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&lr(()=>{Q(()=>h.in())})}}function ha(e,t,n,r,i){var a=r===1;if(p(t)){var o,s=!1;return A(()=>{s||(o=ha(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return ua(e,a?`introstart`:`outrostart`),i(),{abort:m,deactivate:m,reset:m,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=pa}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var h=fa(l(0,1));f.push(h,h)}var g=()=>1-r,_=e.animate(f,{duration:c,fill:`forwards`});return _.onfinish=()=>{_.cancel(),ua(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var m=Math.ceil(c/(1e3/60)),h=0;h<=m;h+=1){var v=o+s*d(h/m),y=fa(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),g=()=>{var e=_.currentTime;return o+s*d(e/c)},u&&la(()=>{if(_.playState!==`running`)return!1;var e=g();return u(e,1-e),!0})}_=e.animate(f,{duration:c,fill:`forwards`}),_.onfinish=()=>{g=()=>r,u?.(r,1-r),i()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=m)},deactivate:()=>{i=m},reset:()=>{r===0&&u?.(1,0)},t:()=>g()}}function ga(e,t,n,r,i,a){let o=C;C&&D();var s=null;C&&T.nodeType===1&&(s=T,D());var c=C?T:e,l=new Li(c,!1);pr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ue:void 0;if(e===null){l.ensure(null,null),ki(!0);return}return l.ensure(e,t=>{if(e){if(s=C?s:Kn(e,a),$(s,s),r){C&&ii(e)&&s.append(document.createComment(``));var n=C?L(s):s.appendChild(I());C&&(n===null?w(!1):E(n)),r(s,n)}G.nodes.end=s,t.before(s)}C&&E(t)}),ki(!0),()=>{e&&ki(!1)}},oe),rr(()=>{ki(!0)}),o&&(w(!0),E(c))}function _a(e,t){let n=null,r=C;var i;if(C){n=T;for(var a=L(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=R(a);if(a===null)w(!1);else{var o=R(a);a.remove(),E(o)}}C||(i=document.head.appendChild(I()));try{pr(()=>t(i),se|ce)}finally{r&&(w(!0),E(n))}}function va(e,t){lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Kn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ya(e,t,n){lr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};dr(()=>{var e=n();Kr(e),i&&tt(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ba(e,t){var n=void 0,r;mr(()=>{n!==(n=t())&&(r&&=(V(r),null),n&&(r=B(()=>{lr(()=>n(e))})))})}function xa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Sa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xa(e))&&(r&&(r+=` `),r+=t);return r}function Ca(e){return typeof e==`object`?Sa(e):e??``}var wa=[...`
|
|
3
|
+
\r\f\xA0\v`];function Ta(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||wa.includes(r[o-1]))&&(s===r.length||wa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ea(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Da(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Oa(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Da)),i&&c.push(...Object.keys(i).map(Da));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Da(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ea(r)),i&&(n+=Ea(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ka(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=Ta(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Aa(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ja(e,t,n,r){var i=e.__style;if(C||i!==t){var a=Oa(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Aa(e,n?.[0],r[0]),Aa(e,n?.[1],r[1],`important`)):Aa(e,n,r));return r}function Ma(e,n,r=!1){if(e.multiple){if(n==null)return;if(!t(n))return Je();for(var i of e.options)i.selected=n.includes(Fa(i));return}for(i of e.options)if(Pn(Fa(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(e.selectedIndex=-1)}function Na(e){var t=new MutationObserver(()=>{Ma(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),rr(()=>{t.disconnect()})}function Pa(e,t,n=t){var r=new WeakSet,i=!0;$n(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Fa);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Fa(o)}n(a),e.__value=a,N!==null&&r.add(N)}),lr(()=>{var a=t();if(e===document.activeElement){var o=O?It:N;if(r.has(o))return}if(Ma(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Fa(s),n(a))}e.__value=a,i=!1}),Na(e)}function Fa(e){return`__value`in e?e.__value:e.value}var Ia=Symbol(`class`),La=Symbol(`style`),Ra=Symbol(`is custom element`),za=Symbol(`is html`),Ba=be?`link`:`LINK`,Va=be?`input`:`INPUT`,Ha=be?`option`:`OPTION`,Ua=be?`select`:`SELECT`,Wa=be?`progress`:`PROGRESS`;function Ga(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Ya(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Ya(e,`checked`,null),e.checked=r}}};e.__on_r=n,A(n),Zn()}}function Ka(e,t){var n=$a(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Wa)||(e.value=t??``)}function qa(e,t){var n=$a(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ja(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Ya(e,t,n,r){var i=$a(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ba)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[_e]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&to(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Xa(e,t,n){var r=H,i=G;let a=C;C&&w(!1),W(null),K(null);try{t!==`style`&&(eo.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?to(e).includes(t):n&&typeof n==`object`)?e[t]=n:Ya(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&w(!0)}}function Za(e,t,n,r,i=!1,a=!1){if(C&&i&&e.nodeName===Va){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ga(o)}var s=$a(e),c=s[Ra],l=!s[za];let u=C&&c;u&&w(!1);var d=t||{},f=e.nodeName===Ha;for(var p in t)p in n||(n[p]=null);n.class?n.class=Ca(n.class):(r||n[Ia])&&(n.class=null),n[La]&&(n.style??=null);var m=to(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){ka(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Ia],n[Ia]),d[i]=o,d[Ia]=n[Ia];continue}if(i===`style`){ja(e,o,t?.[La],n[La]),d[i]=o,d[La]=n[La];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=Zr(r);if(Yr(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)di(r,e,o),fi([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=ci(r,e,a,t)}}else if(i===`style`)Ya(e,i,o);else if(i===`autofocus`)Jn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Ja(e,o);else{var v=i;l||(v=ei(v));var y=v===`defaultValue`||v===`defaultChecked`;if(o==null&&!c&&!y)if(s[i]=null,v===`value`||v===`checked`){let n=e,r=t===void 0;if(v===`value`){let e=n.defaultValue;n.removeAttribute(v),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(v),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else y||m.includes(v)&&(c||typeof o!=`string`)?(e[v]=o,v in s&&(s[v]=S)):typeof o!=`function`&&Ya(e,v,o,a)}}}return u&&w(!0),d}function Qa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){sn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ua,l=!1;if(mr(()=>{var u=t(...n.map(Z)),d=Za(e,r,u,a,o,s);l&&c&&`value`in u&&Ma(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||V(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&V(i[t]),i[t]=B(()=>ba(e,()=>f))),d[t]=f}r=d}),c){var u=e;lr(()=>{Ma(u,r.value,!0),Na(u)})}l=!0})}function $a(e){return e.__attributes??={[Ra]:e.nodeName.includes(`-`),[za]:e.namespaceURI===He}}var eo=new Map;function to(e){var t=e.getAttribute(`is`)||e.nodeName,n=eo.get(t);if(n)return n;eo.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&n.push(o);i=d(i)}return n}function no(e,t,n=t){var r=new WeakSet;$n(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=oo(e)?so(a):a,n(a),N!==null&&r.add(N),await Hr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(oo(e)?so(e.value):e.value),N!==null&&r.add(N)),dr(()=>{var n=t();if(e===document.activeElement){var i=O?It:N;if(r.has(i))return}oo(e)&&n===so(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var ro=new Set;function io(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),$n(n,`change`,()=>{var e=n.__value;a&&(e=ao(o,e,n.checked)),i(e)},()=>i(a?[]:null)),dr(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=Pn(n.__value,e)}),rr(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),ro.has(o)||(ro.add(o),A(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),ro.delete(o)})),A(()=>{if(s){var e=a?ao(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function ao(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function oo(e){var t=e.type;return t===`number`||t===`range`}function so(e){return e===``?null:+e}var co=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function lo(e,t,n){var r=co.observe(e,()=>n(e[t]));lr(()=>(Q(()=>n(e[t])),r))}function uo(e,t){return e===t||e?.[he]===t}function fo(e={},t,n,r){var i=k.r,a=G;return lr(()=>{var o,s;return dr(()=>{o=s,s=r?.()||[],Q(()=>{e!==n(...s)&&(t(e,...s),o&&uo(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&uo(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function po(e=!1){let t=k,n=t.l.u;if(!n)return;let r=()=>Kr(t.s);if(e){let e=0,n={},i=dn(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Z(i)}n.b.length&&or(()=>{mo(t,r),_(n.b)}),ir(()=>{let e=Q(()=>n.m.map(g));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&ir(()=>{mo(t,r),_(n.a)})}function mo(e,t){if(e.l.s)for(let t of e.l.s)Z(t);t()}var ho={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function go(e,t,n){return new Proxy({props:e,exclude:t},ho)}var _o={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];p(i)&&(i=i());let a=s(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=s(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===he||t===ge)return!1;for(let n of e.props)if(p(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(p(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function vo(...e){return new Proxy({props:e},_o)}function yo(e,t,n,r){var i=!rt||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=o?Q(r):r),c);let d;if(a){var f=he in e||ge in e;d=s(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Ft(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Fe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?dn:mn)(()=>(_=!1,h()));a&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?Mn(e):e;return F(v,n),_=!0,c!==void 0&&(c=n),e}return Dr&&_||y.f&16384?v.v:Z(v)})}function bo(e){return new So(e)}function xo(e){return class extends So{constructor(t){super({component:e,...t})}}}var So=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Dn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ge?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Mi:ji)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!O&&(!e?.props?.$$host||e.sync===!1)&&Gt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||o(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ii(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Co;typeof HTMLElement==`function`&&(Co=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Kn(`slot`);e!==`default`&&(n.name=e),Ei(t,n)}}let t={},n=To(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=wo(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=bo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sr(()=>{dr(()=>{this.$$r=!0;for(let e of a(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=wo(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wo(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return a(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function wo(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function To(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Eo(e,t,n,r,i,c){let l=class extends Co{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return a(t).map(e=>(t[e].attribute||e).toLowerCase())}};return a(t).forEach(e=>{o(l.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=wo(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(s(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{o(l.prototype,e,{get(){return this.$$c?.[e]}})}),c&&(l=c(l)),e.element=l,l}function Do(e,t){if(O||xe(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ke(e)}return t()}var Oo=e({afterUpdate:()=>Fo,beforeUpdate:()=>Po,createContext:()=>ft,createEventDispatcher:()=>No,createRawSnippet:()=>ia,flushSync:()=>Gt,fork:()=>tn,getAbortSignal:()=>ko,getAllContexts:()=>gt,getContext:()=>pt,hasContext:()=>ht,hydratable:()=>Do,hydrate:()=>Mi,mount:()=>ji,onDestroy:()=>jo,onMount:()=>Ao,setContext:()=>mt,settled:()=>Ur,tick:()=>Hr,unmount:()=>Ii,untrack:()=>Q});function ko(){return H===null&&Me(),(H.ac??=new AbortController).signal}function Ao(e){k===null&&Se(`onMount`),rt&&k.l!==null?Io(k).m.push(e):ir(()=>{let t=Q(e);if(typeof t==`function`)return t})}function jo(e){k===null&&Se(`onDestroy`),Ao(()=>()=>Q(e))}function Mo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function No(){let e=k;return e===null&&Se(`createEventDispatcher`),(n,r,i)=>{let a=e.s.$$events?.[n];if(a){let o=t(a)?a.slice():[a],s=Mo(n,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function Po(e){k===null&&Se(`beforeUpdate`),k.l===null&&Pe(`beforeUpdate`),Io(k).b.push(e)}function Fo(e){k===null&&Se(`afterUpdate`),k.l===null&&Pe(`afterUpdate`),Io(k).a.push(e)}function Io(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{wi as $,va as A,an as At,Yi as B,ut as Bt,Na as C,Mn as Ct,Ca as D,En as Dt,ka as E,Tn as Et,sa as F,pt as Ft,ji as G,Xe as Gt,Wi as H,ot as Ht,aa as I,ht as It,Ei as J,Ai as K,m as Kt,ra as L,vt as Lt,ga as M,Gt as Mt,ma as N,Mt as Nt,Sa as O,mn as Ot,la as P,gt as Pt,Di as Q,na as R,_t as Rt,Pa as S,Un as St,ja as T,F as Tt,Hi as U,it as Ut,Gi as V,ct as Vt,Vi as W,Ze as Wt,yi as X,Ti as Y,xi as Z,Ga as _,Yn as _t,xo as a,Jr as at,Xa as b,Vn as bt,vo as c,Hr as ct,lo as d,lr as dt,Si as et,io as f,sr as ft,Qa as g,or as gt,La as h,ir as ht,Eo as i,li as it,_a as j,nn as jt,ya as k,pn as kt,po as l,Q as lt,Ia as m,fr as mt,jo as n,di as nt,yo as o,Z as ot,no as p,dr as pt,Ii as q,y as qt,Ao as r,ui as rt,go as s,Ur as st,Oo as t,fi as tt,fo as u,Nr as ut,Ya as v,In as vt,Ma as w,An as wt,Ka as x,Hn as xt,qa as y,Fn as yt,ta as z,mt as zt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BJaEr5tZ.js","../chunks/CibALFW0.js","../chunks/DcOGFwCk.js","../chunks/rEsbAd0y.js","../chunks/JEKVFENx.js","../chunks/BQwc7106.js","../chunks/CFKVnMbq.js","../chunks/Ct405RO9.js","../chunks/tFLMI64R.js","../nodes/1.C4Q2p2ww.js","../chunks/TZgETsNt.js","../chunks/DSTWBVLS.js","../chunks/CPPDi2Fg.js","../chunks/Bo0U8J3e.js","../nodes/2.zTSXNJuk.js","../chunks/DjVmpym-.js","../chunks/DTspBV79.js","../chunks/DzOV-etd.js","../chunks/4rln5D2N.js","../chunks/B-P0cQBf.js","../chunks/Czdz2g0u.js","../chunks/CqCdl07t.js","../chunks/BiGeVjFa.js","../nodes/3.BJjkyEoj.js","../chunks/IsmK4Fpw.js","../chunks/DRq9fhs9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/rEsbAd0y.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.BJaEr5tZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.C4Q2p2ww.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.zTSXNJuk.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,20,4,21,22,11,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.BJjkyEoj.js`),__vite__mapDeps([23,10,3,1,2,16,17,5,18,19,15,20,4,21,22,11,24,25,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/rEsbAd0y.js";import{n as e,s as t}from"../chunks/TZgETsNt.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/rEsbAd0y.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/Ct405RO9.js";import{l as d,n as f,o as p,t as m}from"../chunks/DcOGFwCk.js";import"../chunks/JEKVFENx.js";import"../chunks/BQwc7106.js";import"../chunks/tFLMI64R.js";var h=async e=>await(await e(`https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names`)).json(),g=[`baselcitygpt`],_=async e=>{let t=await h(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>g.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(n)},v=`/**
|
|
2
|
+
* @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
|
|
3
|
+
*/
|
|
4
|
+
const CHAT_CONFIG_OVERRIDE = {
|
|
5
|
+
// showCloseChatButton: true,
|
|
6
|
+
// showContextInfo: true,
|
|
7
|
+
// showContextMenu: true,
|
|
8
|
+
// showOverallFeedbackButton: true,
|
|
9
|
+
// forcePredefinedQuestions: true, // hides the chat-input on the start-page, forcing the user to use predefined questions.
|
|
10
|
+
// forceChatPage: true, // starts the app directly on the chat-page and hides the "new discussion" button so the user can't go back to the start-page.
|
|
11
|
+
// showReferencesByDefault: true,
|
|
12
|
+
// showExpandedSelectors: true,
|
|
13
|
+
// showTextFeedback: false,
|
|
14
|
+
// inlineLayout: true,
|
|
15
|
+
// allowAudioInput: true,
|
|
16
|
+
// blockPII: false,
|
|
17
|
+
// questionPrefix: "url:https://example.com",
|
|
18
|
+
// translations: {},
|
|
19
|
+
// theme: {},
|
|
20
|
+
// renderKatex: true, // will use katex to render formulas
|
|
21
|
+
// reflectLanguageInPath: true,
|
|
22
|
+
// sendReferrer: true, // sends referrer path to backend for each question
|
|
23
|
+
// addRetrievalQuestionToUrlParams: true, // when true, adds the retrieval question to the URL search parameter
|
|
24
|
+
// forceConsent: true, // when true, forces the user to accept terms and conditions before using the chat
|
|
25
|
+
// askQuestionAgain: true, // when true, the answers of the bot will have an option to ask the corresponding question again
|
|
26
|
+
// enableBackdrop: true, // when true, shows a backdrop when flyout is opened
|
|
27
|
+
/*classification: {
|
|
28
|
+
impact: {
|
|
29
|
+
label: "Impact",
|
|
30
|
+
options: [
|
|
31
|
+
{ label: "Positive", value: 1 },
|
|
32
|
+
{ label: "Negative", value: 2 },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
quality: {
|
|
36
|
+
label: "Quality",
|
|
37
|
+
options: [
|
|
38
|
+
{ label: "Good", value: 1 },
|
|
39
|
+
{ label: "Bad", value: 2 },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
*/
|
|
44
|
+
/* selectorsConfig: [
|
|
45
|
+
{
|
|
46
|
+
settingName: "sources",
|
|
47
|
+
iconName: "sources", // Must match an SVG key in the theme
|
|
48
|
+
type: "multi-select",
|
|
49
|
+
values: [
|
|
50
|
+
"docs",
|
|
51
|
+
"web",
|
|
52
|
+
"files",
|
|
53
|
+
"docs long title",
|
|
54
|
+
"web long title ",
|
|
55
|
+
"files long title ",
|
|
56
|
+
"docs long title with overflow",
|
|
57
|
+
"web2",
|
|
58
|
+
"files2",
|
|
59
|
+
"docs2",
|
|
60
|
+
"web3",
|
|
61
|
+
"files3",
|
|
62
|
+
"docs3",
|
|
63
|
+
"web4",
|
|
64
|
+
"files4",
|
|
65
|
+
"docs4",
|
|
66
|
+
"web5",
|
|
67
|
+
"files5",
|
|
68
|
+
"docs5",
|
|
69
|
+
"web6",
|
|
70
|
+
"files6",
|
|
71
|
+
"docs6",
|
|
72
|
+
"web7",
|
|
73
|
+
],
|
|
74
|
+
defaultValues: ["docs", "web", "web2"], // Optional: pre-selected values
|
|
75
|
+
allowEmpty: false,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
settingName: "model",
|
|
79
|
+
iconName: "model", // Must match an SVG key in the theme
|
|
80
|
+
type: "single-select",
|
|
81
|
+
values: ["gpt-4o-mini", "gpt-4o"],
|
|
82
|
+
defaultValues: ["gpt-4o"], // Optional: pre-selected value
|
|
83
|
+
allowEmpty: false,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
*/
|
|
87
|
+
// parentPageContext: { extractSelectors: ["#preview-form"] }
|
|
88
|
+
// enableBackdrop: true,
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
Custom form shown as an option below each bot answer. All labels are translatable
|
|
92
|
+
(defaulting to the first supported language). On submit, the field values plus the
|
|
93
|
+
related question and answer are sent by email to \`receiverEmail\` via the backend.
|
|
94
|
+
*/
|
|
95
|
+
/* answerForm: {
|
|
96
|
+
// receiverEmail must be allow-listed on the LiipGPT backend (customForm.allowedReceivers in the org's *-config.service.ts); otherwise /customform is rejected with ERROR_NOT_ALLOWED.
|
|
97
|
+
receiverEmail: "team@example.com",
|
|
98
|
+
triggerLabel: {
|
|
99
|
+
fr: "Transférer la question à notre équipe",
|
|
100
|
+
en: "Forward the question to our team",
|
|
101
|
+
de: "Frage an unser Team weiterleiten",
|
|
102
|
+
it: "Inoltra la domanda al nostro team",
|
|
103
|
+
},
|
|
104
|
+
caption: {
|
|
105
|
+
fr: "Remplissez ce formulaire et notre équipe vous répondra par e-mail.",
|
|
106
|
+
en: "Fill in this form and our team will get back to you by email.",
|
|
107
|
+
de: "Füllen Sie dieses Formular aus und unser Team meldet sich per E-Mail bei Ihnen.",
|
|
108
|
+
it: "Compila questo modulo e il nostro team ti risponderà via e-mail.",
|
|
109
|
+
},
|
|
110
|
+
submitLabel: {
|
|
111
|
+
fr: "Envoyer",
|
|
112
|
+
en: "Send",
|
|
113
|
+
de: "Senden",
|
|
114
|
+
it: "Invia",
|
|
115
|
+
},
|
|
116
|
+
fields: [
|
|
117
|
+
{
|
|
118
|
+
type: "text",
|
|
119
|
+
name: "fullName",
|
|
120
|
+
required: true,
|
|
121
|
+
label: { fr: "Nom complet", en: "Full name", de: "Vollständiger Name", it: "Nome completo" },
|
|
122
|
+
placeholder: { fr: "Votre nom", en: "Your name", de: "Ihr Name", it: "Il tuo nome" },
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "text",
|
|
126
|
+
name: "email",
|
|
127
|
+
required: true,
|
|
128
|
+
label: { fr: "E-mail", en: "Email", de: "E-Mail", it: "E-mail" },
|
|
129
|
+
placeholder: { fr: "vous@exemple.com", en: "you@example.com", de: "sie@beispiel.com", it: "tu@esempio.com" },
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
type: "select",
|
|
133
|
+
name: "topic",
|
|
134
|
+
label: { fr: "Sujet", en: "Topic", de: "Thema", it: "Argomento" },
|
|
135
|
+
placeholder: { fr: "Choisir…", en: "Choose…", de: "Auswählen…", it: "Scegli…" },
|
|
136
|
+
options: [
|
|
137
|
+
{ value: "billing", label: { fr: "Facturation", en: "Billing", de: "Abrechnung", it: "Fatturazione" } },
|
|
138
|
+
{ value: "technical", label: { fr: "Technique", en: "Technical", de: "Technisch", it: "Tecnico" } },
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
type: "radio",
|
|
143
|
+
name: "urgency",
|
|
144
|
+
required: true,
|
|
145
|
+
label: { fr: "Urgence", en: "Urgency", de: "Dringlichkeit", it: "Urgenza" },
|
|
146
|
+
options: [
|
|
147
|
+
{ value: "low", label: { fr: "Faible", en: "Low", de: "Niedrig", it: "Bassa" } },
|
|
148
|
+
{ value: "high", label: { fr: "Élevée", en: "High", de: "Hoch", it: "Alta" } },
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
type: "checkbox",
|
|
153
|
+
name: "channels",
|
|
154
|
+
label: { fr: "Canaux de contact", en: "Contact channels", de: "Kontaktkanäle", it: "Canali di contatto" },
|
|
155
|
+
options: [
|
|
156
|
+
{ value: "email", label: { fr: "E-mail", en: "Email", de: "E-Mail", it: "E-mail" } },
|
|
157
|
+
{ value: "phone", label: { fr: "Téléphone", en: "Phone", de: "Telefon", it: "Telefono" } },
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
*/
|
|
163
|
+
// This will be needed for the alva confidence experiment
|
|
164
|
+
/*
|
|
165
|
+
contextVersion: 1,
|
|
166
|
+
messageAdditions: {
|
|
167
|
+
init: [
|
|
168
|
+
{
|
|
169
|
+
type: "component",
|
|
170
|
+
componentName: "alva-init",
|
|
171
|
+
hideAvatar: true,
|
|
172
|
+
noSectionPadding: true,
|
|
173
|
+
data: {},
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
|
|
177
|
+
bot: {
|
|
178
|
+
after: [
|
|
179
|
+
{
|
|
180
|
+
type: "component",
|
|
181
|
+
componentName: "alva-score-survey",
|
|
182
|
+
hideAvatar: true,
|
|
183
|
+
noSectionPadding: true,
|
|
184
|
+
data: {},
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
*/
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
193
|
+
`,y=`<div
|
|
194
|
+
style="
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
gap: 8px;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
align-items: center;
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 100%;
|
|
202
|
+
background: linear-gradient(0deg, #1b181e 0%, #2a2440 90%);
|
|
203
|
+
"
|
|
204
|
+
>
|
|
205
|
+
<svg width="48" height="48" stroke="rgba(127, 127, 127, 0.4)" viewBox="0 0 24 24">
|
|
206
|
+
<g>
|
|
207
|
+
<circle cx="12" cy="12" r="9.5" fill="none" stroke-width="1" stroke-linecap="round">
|
|
208
|
+
<animate
|
|
209
|
+
attributeName="stroke-dasharray"
|
|
210
|
+
dur="1.3s"
|
|
211
|
+
calcMode="spline"
|
|
212
|
+
values="0 150;42 150;42 150;42 150"
|
|
213
|
+
keyTimes="0;0.475;0.7;1"
|
|
214
|
+
keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1"
|
|
215
|
+
repeatCount="indefinite"
|
|
216
|
+
/>
|
|
217
|
+
<animate
|
|
218
|
+
attributeName="stroke-dashoffset"
|
|
219
|
+
dur="1.3s"
|
|
220
|
+
calcMode="spline"
|
|
221
|
+
values="0;-2;-59;-59"
|
|
222
|
+
keyTimes="0;0.475;0.98;1"
|
|
223
|
+
keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1"
|
|
224
|
+
repeatCount="indefinite"
|
|
225
|
+
/>
|
|
226
|
+
</circle>
|
|
227
|
+
<animateTransform attributeName="transform" type="rotate" dur="1.6s" values="0 12 12;360 12 12" repeatCount="indefinite" />
|
|
228
|
+
</g>
|
|
229
|
+
</svg>
|
|
230
|
+
</div>
|
|
231
|
+
`,b={"api-org":{type:`string`,values:[],value:`liipgpt`,description:`Select the organization to to get the API URL`},"prod-api":{type:`boolean`,value:!1,description:`Select to use the production API URL`},"api-url":{type:`string`,required:!0,value:d,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"additional-start-parameters":{type:`string`,value:`{"availableTopicIds":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"flyout-style":{type:`string`,value:`width: 400px; height: 600px;`,description:`This is the style attribute of the flyout container. With this the flyout size and position can be customized.`},"flyout-class":{type:`string`,value:`custom-flyout-class`,description:`This is the class attribute of the flyout container. With this the flyout size and position can be customized.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"loader-background":{type:`string`,value:`linear-gradient(0deg, #1B181E 0%, #2A2440 90%)`,description:`This is the background color of the loading spinner.`},"loader-color":{type:`string`,value:`#9C92EE`,description:`This is the color of the loading spinner.`},"custom-loader":{type:`string`,value:y,description:`This is an example how you can provide a custom loading spinner when the chat is loading.`},onclosechat:{type:`string`,value:`document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));`,description:`This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners.`},cdn:{type:`boolean`,value:!0,description:`When set, a fixed CDN URL will be used. Instead of providing the code from the backend.`},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:v,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:f,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`}},x=async e=>{let t=await _(e),n=b;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},S=e({load:()=>E,prerender:()=>!0,ssr:()=>!1}),C=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},w,T=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},E=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await x(t),i=C(n,T(e.searchParams)),a=!!(w&&w[`api-org`].value!==i[`api-org`].value),o=!!(w&&w[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!w||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return w=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function D(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(D,{children:{}},[],[],{mode:`open`});export{D as component,S as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/rEsbAd0y.js";import"../chunks/TZgETsNt.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/CPPDi2Fg.js";import{t as f}from"../chunks/DSTWBVLS.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
|