@gsa-tts/graymatter-ui 0.2.0 → 0.2.2

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.
@@ -1,5 +1,5 @@
1
- (function(T,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(T=typeof globalThis<"u"?globalThis:T||self,D(T.graymatter={}))})(this,function(T){"use strict";var Ra=Object.defineProperty;var Zi=T=>{throw TypeError(T)};var Ba=(T,D,J)=>D in T?Ra(T,D,{enumerable:!0,configurable:!0,writable:!0,value:J}):T[D]=J;var le=(T,D,J)=>Ba(T,typeof D!="symbol"?D+"":D,J),Yi=(T,D,J)=>D.has(T)||Zi("Cannot "+J);var re=(T,D,J)=>(Yi(T,D,"read from private field"),J?J.call(T):D.get(T)),Jn=(T,D,J)=>D.has(T)?Zi("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(T):D.set(T,J),Wn=(T,D,J,Ht)=>(Yi(T,D,"write to private field"),Ht?Ht.call(T,J):D.set(T,J),J);var Ci,De,ge;const D="5";typeof window<"u"&&((Ci=window.__svelte??(window.__svelte={})).v??(Ci.v=new Set)).add(D);const J=1,Ht=2,Ji=16,Wi=1,Ki=2,Kn=4,Gi=8,Xi=16,Gn=1,Qi=2,cn="[",dn="[!",fn="]",st={},ne=Symbol(),eo="http://www.w3.org/1999/xhtml",to="@attach",Xn=!1;var Vt=Array.isArray,no=Array.prototype.indexOf,vn=Array.from,Rt=Object.keys,_t=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Qn=Object.getOwnPropertyDescriptors,ro=Object.prototype,io=Array.prototype,hn=Object.getPrototypeOf,er=Object.isExtensible;function yt(e){return typeof e=="function"}const ue=()=>{};function oo(e){return e()}function kt(e){for(var t=0;t<e.length;t++)e[t]()}const ce=2,bn=4,xt=8,pn=16,Ie=32,Qe=64,gn=128,ie=256,Bt=512,oe=1024,ze=2048,qe=4096,Me=8192,wn=16384,tr=32768,$t=65536,nr=1<<17,so=1<<18,rr=1<<19,mn=1<<20,_n=1<<21,xe=Symbol("$state"),yn=Symbol("legacy props"),ao=Symbol(""),ir=new class extends Error{constructor(){super(...arguments);le(this,"name","StaleReactionError");le(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},or=3,Et=8;function sr(e){return e===this.v}function ar(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function lr(e){return!ar(e,this.v)}function lo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function uo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function co(e){throw new Error("https://svelte.dev/e/effect_orphan")}function fo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vo(){throw new Error("https://svelte.dev/e/hydration_failed")}function ho(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function bo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function po(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function go(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let at=!1,wo=!1;function mo(){at=!0}function _o(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let H=null;function ur(e){H=e}function Z(e,t=!1,n){var r=H={p:H,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};at&&!t&&(H.l={s:null,u:null,r1:[],r2:dt(!1)}),Ut(()=>{r.d=!0})}function Y(e){const t=H;if(t!==null){e!==void 0&&(t.x=e);const a=t.e;if(a!==null){var n=A,r=z;t.e=null;try{for(var i=0;i<a.length;i++){var o=a[i];Ze(o.effect),Ce(o.reaction),$r(o.fn)}}finally{Ze(n),Ce(r)}}H=t.p,t.m=!0}return e||{}}function Ft(){return!at||H!==null&&H.l===null}function lt(e){if(typeof e!="object"||e===null||xe in e)return e;const t=hn(e);if(t!==ro&&t!==io)return e;var n=new Map,r=Vt(e),i=we(0),o=z,a=s=>{var l=z;Ce(o);var u=s();return Ce(l),u};return r&&n.set("length",we(e.length)),new Proxy(e,{defineProperty(s,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&bo();var f=n.get(l);return f===void 0?f=a(()=>{var d=we(u.value);return n.set(l,d),d}):j(f,u.value,!0),!0},deleteProperty(s,l){var u=n.get(l);if(u===void 0){if(l in s){const c=a(()=>we(ne));n.set(l,c),kn(i)}}else{if(r&&typeof l=="string"){var f=n.get("length"),d=Number(l);Number.isInteger(d)&&d<f.v&&j(f,d)}j(u,ne),kn(i)}return!0},get(s,l,u){var v;if(l===xe)return e;var f=n.get(l),d=l in s;if(f===void 0&&(!d||(v=Te(s,l))!=null&&v.writable)&&(f=a(()=>{var h=lt(d?s[l]:ne),g=we(h);return g}),n.set(l,f)),f!==void 0){var c=k(f);return c===ne?void 0:c}return Reflect.get(s,l,u)},getOwnPropertyDescriptor(s,l){var u=Reflect.getOwnPropertyDescriptor(s,l);if(u&&"value"in u){var f=n.get(l);f&&(u.value=k(f))}else if(u===void 0){var d=n.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==ne)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(s,l){var c;if(l===xe)return!0;var u=n.get(l),f=u!==void 0&&u.v!==ne||Reflect.has(s,l);if(u!==void 0||A!==null&&(!f||(c=Te(s,l))!=null&&c.writable)){u===void 0&&(u=a(()=>{var v=f?lt(s[l]):ne,h=we(v);return h}),n.set(l,u));var d=k(u);if(d===ne)return!1}return f},set(s,l,u,f){var p;var d=n.get(l),c=l in s;if(r&&l==="length")for(var v=u;v<d.v;v+=1){var h=n.get(v+"");h!==void 0?j(h,ne):v in s&&(h=a(()=>we(ne)),n.set(v+"",h))}if(d===void 0)(!c||(p=Te(s,l))!=null&&p.writable)&&(d=a(()=>we(void 0)),j(d,lt(u)),n.set(l,d));else{c=d.v!==ne;var g=a(()=>lt(u));j(d,g)}var _=Reflect.getOwnPropertyDescriptor(s,l);if(_!=null&&_.set&&_.set.call(f,u),!c){if(r&&typeof l=="string"){var m=n.get("length"),b=Number(l);Number.isInteger(b)&&b>=m.v&&j(m,b+1)}kn(i)}return!0},ownKeys(s){k(i);var l=Reflect.ownKeys(s).filter(d=>{var c=n.get(d);return c===void 0||c.v!==ne});for(var[u,f]of n)f.v!==ne&&!(u in s)&&l.push(u);return l},setPrototypeOf(){po()}})}function kn(e,t=1){j(e,e.v+t)}function cr(e){try{if(e!==null&&typeof e=="object"&&xe in e)return e[xe]}catch{}return e}function yo(e,t){return Object.is(cr(e),cr(t))}function ut(e){var t=ce|ze,n=z!==null&&(z.f&ce)!==0?z:null;return A===null||n!==null&&(n.f&ie)!==0?t|=ie:A.f|=rr,{ctx:H,deps:null,effects:null,equals:sr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??A,ac:null}}function X(e){const t=ut(e);return Lr(t),t}function ct(e){const t=ut(e);return t.equals=lr,t}function dr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)se(t[n])}}function ko(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return t;t=t.parent}return null}function fr(e){var t,n=A;Ze(ko(e));try{dr(e),t=Pr(e)}finally{Ze(n)}return t}function vr(e){var t=fr(e);if(e.equals(t)||(e.v=t,e.wv=Ar()),!bt){var n=(Ye||(e.f&ie)!==0)&&e.deps!==null?qe:oe;ye(e,n)}}const Ct=new Map;function dt(e,t){var n={f:0,v:e,reactions:null,equals:sr,rv:0,wv:0};return n}function we(e,t){const n=dt(e);return Lr(n),n}function St(e,t=!1,n=!0){var i;const r=dt(e);return t||(r.equals=lr),at&&n&&H!==null&&H.l!==null&&((i=H.l).s??(i.s=[])).push(r),r}function j(e,t,n=!1){z!==null&&(!Ee||(z.f&nr)!==0)&&Ft()&&(z.f&(ce|pn|nr))!==0&&!((q==null?void 0:q.reaction)===z&&q.sources.includes(e))&&go();let r=n?lt(t):t;return hr(e,r)}function hr(e,t){if(!e.equals(t)){var n=e.v;bt?Ct.set(e,t):Ct.set(e,n),e.v=t,(e.f&ce)!==0&&((e.f&ze)!==0&&fr(e),ye(e,(e.f&ie)===0?oe:qe)),e.wv=Ar(),pr(e,ze),Ft()&&A!==null&&(A.f&oe)!==0&&(A.f&(Ie|Qe))===0&&(fe===null?Oo([e]):fe.push(e))}return t}function br(e,t=1){var n=k(e),r=t===1?n++:n--;return j(e,n),r}function pr(e,t){var n=e.reactions;if(n!==null)for(var r=Ft(),i=n.length,o=0;o<i;o++){var a=n[o],s=a.f;(s&ze)===0&&(!r&&a===A||(ye(a,t),(s&(oe|ie))!==0&&((s&ce)!==0?pr(a,qe):Qt(a))))}}function qt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let I=!1;function me(e){I=e}let L;function _e(e){if(e===null)throw qt(),st;return L=e}function ft(){return _e(Le(L))}function x(e){if(I){if(Le(L)!==null)throw qt(),st;L=e}}function $e(e=1){if(I){for(var t=e,n=L;t--;)n=Le(n);L=n}}function xn(){for(var e=0,t=L;;){if(t.nodeType===Et){var n=t.data;if(n===fn){if(e===0)return t;e-=1}else(n===cn||n===dn)&&(e+=1)}var r=Le(t);t.remove(),t=r}}function gr(e){if(!e||e.nodeType!==Et)throw qt(),st;return e.data}var wr,mr,_r,yr;function $n(){if(wr===void 0){wr=window,mr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;_r=Te(t,"firstChild").get,yr=Te(t,"nextSibling").get,er(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),er(n)&&(n.__t=void 0)}}function vt(e=""){return document.createTextNode(e)}function de(e){return _r.call(e)}function Le(e){return yr.call(e)}function $(e,t){if(!I)return de(e);var n=de(L);if(n===null)n=L.appendChild(vt());else if(t&&n.nodeType!==or){var r=vt();return n==null||n.before(r),_e(r),r}return _e(n),n}function Ue(e,t){if(!I){var n=de(e);return n instanceof Comment&&n.data===""?Le(n):n}return L}function W(e,t=1,n=!1){let r=I?L:e;for(var i;t--;)i=r,r=Le(r);if(!I)return r;if(n&&(r==null?void 0:r.nodeType)!==or){var o=vt();return r===null?i==null||i.after(o):r.before(o),_e(o),o}return _e(r),r}function kr(e){e.textContent=""}function xr(e){A===null&&z===null&&co(),z!==null&&(z.f&ie)!==0&&A===null&&uo(),bt&&lo()}function $o(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ae(e,t,n,r=!0){var i=A,o={ctx:H,deps:null,nodes_start:null,nodes_end:null,f:e|ze,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Xt(o),o.f|=tr}catch(l){throw se(o),l}else t!==null&&Qt(o);var a=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(rr|gn))===0;if(!a&&r&&(i!==null&&$o(o,i),z!==null&&(z.f&ce)!==0)){var s=z;(s.effects??(s.effects=[])).push(o)}return o}function Ut(e){const t=Ae(xt,null,!1);return ye(t,oe),t.teardown=e,t}function En(e){xr();var t=A!==null&&(A.f&Ie)!==0&&H!==null&&!H.m;if(t){var n=H;(n.e??(n.e=[])).push({fn:e,effect:A,reaction:z})}else return $r(e)}function $r(e){return Ae(bn|_n,e,!1)}function Eo(e){return xr(),Ae(xt|_n,e,!0)}function Co(e){const t=Ae(Qe,e,!0);return()=>{se(t)}}function So(e){const t=Ae(Qe,e,!0);return(n={})=>new Promise(r=>{n.outro?Nt(t,()=>{se(t),r(void 0)}):(se(t),r(void 0))})}function Cn(e){return Ae(bn,e,!1)}function No(e,t){var n=H,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=Zt(()=>{e(),!r.ran&&(r.ran=!0,j(n.l.r2,!0),Pe(t))})}function To(){var e=H;Zt(()=>{if(k(e.l.r2)){for(var t of e.l.r1){var n=t.effect;(n.f&oe)!==0&&ye(n,qe),Lt(n)&&Xt(n),t.ran=!1}e.l.r2.v=!1}})}function Zt(e){return Ae(xt,e,!0)}function ht(e,t=[],n=ut){const r=t.map(n);return et(()=>e(...r.map(k)))}function et(e,t=0){var n=Ae(xt|pn|t,e,!0);return n}function Oe(e,t=!0){return Ae(xt|Ie,e,!0,t)}function Er(e){var t=e.teardown;if(t!==null){const n=bt,r=z;Mr(!0),Ce(null);try{t.call(null)}finally{Mr(n),Ce(r)}}}function Cr(e,t=!1){var i;var n=e.first;for(e.first=e.last=null;n!==null;){(i=n.ac)==null||i.abort(ir);var r=n.next;(n.f&Qe)!==0?n.parent=null:se(n,t),n=r}}function Io(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Ie)===0&&se(t),t=n}}function se(e,t=!0){var n=!1;(t||(e.f&so)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(zo(e.nodes_start,e.nodes_end),n=!0),Cr(e,t&&!n),Gt(e,0),ye(e,wn);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Er(e);var i=e.parent;i!==null&&i.first!==null&&Sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function zo(e,t){for(;e!==null;){var n=e===t?null:Le(e);e.remove(),e=n}}function Sr(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 Nt(e,t){var n=[];Sn(e,n,!0),Nr(n,()=>{se(e),t&&t()})}function Nr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Sn(e,t,n){if((e.f&Me)===0){if(e.f^=Me,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&$t)!==0||(r.f&Ie)!==0;Sn(r,t,o?n:!1),r=i}}}function Yt(e){Tr(e,!0)}function Tr(e,t){if((e.f&Me)!==0){e.f^=Me;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&$t)!==0||(n.f&Ie)!==0;Tr(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Tt=[],Nn=[];function Ir(){var e=Tt;Tt=[],kt(e)}function Mo(){var e=Nn;Nn=[],kt(e)}function Jt(e){Tt.length===0&&queueMicrotask(Ir),Tt.push(e)}function Lo(){Tt.length>0&&Ir(),Nn.length>0&&Mo()}function Ao(e){var t=A;if((t.f&tr)===0){if((t.f&gn)===0)throw e;t.fn(e)}else zr(e,t)}function zr(e,t){for(;t!==null;){if((t.f&gn)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let It=!1,zt=null,tt=!1,bt=!1;function Mr(e){bt=e}let Mt=[],Fa=[],z=null,Ee=!1;function Ce(e){z=e}let A=null;function Ze(e){A=e}let q=null;function Lr(e){z!==null&&z.f&mn&&(q===null?q={reaction:z,sources:[e]}:q.sources.push(e))}let Q=null,ae=0,fe=null;function Oo(e){fe=e}let Wt=1,Kt=0,Ye=!1;function Ar(){return++Wt}function Lt(e){var d;var t=e.f;if((t&ze)!==0)return!0;if((t&qe)!==0){var n=e.deps,r=(t&ie)!==0;if(n!==null){var i,o,a=(t&Bt)!==0,s=r&&A!==null&&!Ye,l=n.length;if(a||s){var u=e,f=u.parent;for(i=0;i<l;i++)o=n[i],(a||!((d=o==null?void 0:o.reactions)!=null&&d.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);a&&(u.f^=Bt),s&&f!==null&&(f.f&ie)===0&&(u.f^=ie)}for(i=0;i<l;i++)if(o=n[i],Lt(o)&&vr(o),o.wv>e.wv)return!0}(!r||A!==null&&!Ye)&&ye(e,oe)}return!1}function Or(e,t,n=!0){var r=e.reactions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];(q==null?void 0:q.reaction)===z&&q.sources.includes(e)||((o.f&ce)!==0?Or(o,t,!1):t===o&&(n?ye(o,ze):(o.f&oe)!==0&&ye(o,qe),Qt(o)))}}function Pr(e){var v;var t=Q,n=ae,r=fe,i=z,o=Ye,a=q,s=H,l=Ee,u=e.f;Q=null,ae=0,fe=null,Ye=(u&ie)!==0&&(Ee||!tt||z===null),z=(u&(Ie|Qe))===0?e:null,q=null,ur(e.ctx),Ee=!1,Kt++,e.f|=mn,e.ac!==null&&(e.ac.abort(ir),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(Q!==null){var c;if(Gt(e,ae),d!==null&&ae>0)for(d.length=ae+Q.length,c=0;c<Q.length;c++)d[ae+c]=Q[c];else e.deps=d=Q;if(!Ye||(u&ce)!==0&&e.reactions!==null)for(c=ae;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&ae<d.length&&(Gt(e,ae),d.length=ae);if(Ft()&&fe!==null&&!Ee&&d!==null&&(e.f&(ce|qe|ze))===0)for(c=0;c<fe.length;c++)Or(fe[c],e);return i!==null&&i!==e&&(Kt++,fe!==null&&(r===null?r=fe:r.push(...fe))),f}catch(h){Ao(h)}finally{Q=t,ae=n,fe=r,z=i,Ye=o,q=a,ur(s),Ee=l,e.f^=mn}}function Po(e,t){let n=t.reactions;if(n!==null){var r=no.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&ce)!==0&&(Q===null||!Q.includes(t))&&(ye(t,qe),(t.f&(ie|Bt))===0&&(t.f^=Bt),dr(t),Gt(t,0))}function Gt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Po(e,n[r])}function Xt(e){var t=e.f;if((t&wn)===0){ye(e,oe);var n=A,r=tt;A=e,tt=!0;try{(t&pn)!==0?Io(e):Cr(e),Er(e);var i=Pr(e);e.teardown=typeof i=="function"?i:null,e.wv=Wt;var o;Xn&&wo&&(e.f&ze)!==0&&e.deps}finally{tt=r,A=n}}}function jo(){try{fo()}catch(e){if(zt!==null)zr(e,zt);else throw e}}function jr(){var e=tt;try{var t=0;for(tt=!0;Mt.length>0;){t++>1e3&&jo();var n=Mt,r=n.length;Mt=[];for(var i=0;i<r;i++){var o=Ho(n[i]);Do(o)}Ct.clear()}}finally{It=!1,tt=e,zt=null}}function Do(e){var t=e.length;if(t!==0){for(var n=0;n<t;n++){var r=e[n];if((r.f&(wn|Me))===0&&Lt(r)){var i=Wt;if(Xt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?Sr(r):r.fn=null),Wt>i&&(r.f&_n)!==0)break}}for(;n<t;n+=1)Qt(e[n])}}function Qt(e){It||(It=!0,queueMicrotask(jr));for(var t=zt=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(Qe|Ie))!==0){if((n&oe)===0)return;t.f^=oe}}Mt.push(t)}function Ho(e){for(var t=[],n=e;n!==null;){var r=n.f,i=(r&(Ie|Qe))!==0,o=i&&(r&oe)!==0;if(!o&&(r&Me)===0){(r&bn)!==0?t.push(n):i?n.f^=oe:Lt(n)&&Xt(n);var a=n.first;if(a!==null){n=a;continue}}var s=n.parent;for(n=n.next;n===null&&s!==null;)n=s.next,s=s.parent}return t}function E(e){for(var t;;){if(Lo(),Mt.length===0)return It=!1,zt=null,t;It=!0,jr()}}function k(e){var t=e.f,n=(t&ce)!==0;if(z!==null&&!Ee){if((q==null?void 0:q.reaction)!==z||!(q!=null&&q.sources.includes(e))){var r=z.deps;e.rv<Kt&&(e.rv=Kt,Q===null&&r!==null&&r[ae]===e?ae++:Q===null?Q=[e]:(!Ye||!Q.includes(e))&&Q.push(e))}}else if(n&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ie)===0&&(i.f^=ie)}return n&&(i=e,Lt(i)&&vr(i)),bt&&Ct.has(e)?Ct.get(e):e.v}function Pe(e){var t=Ee;try{return Ee=!0,e()}finally{Ee=t}}const Vo=-7169;function ye(e,t){e.f=e.f&Vo|t}function Dr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xe in e)Tn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&xe in n&&Tn(n)}}}function Tn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Tn(e[r],t)}catch{}const n=hn(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Qn(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}function Ro(e,t){if(t){const n=document.body;e.autofocus=!0,Jt(()=>{document.activeElement===n&&e.focus()})}}function Bo(e){var t=z,n=A;Ce(null),Ze(null);try{return e()}finally{Ce(t),Ze(n)}}const Hr=new Set,In=new Set;function Vr(e,t,n,r={}){function i(o){if(r.capture||At.call(t,o),!o.cancelBubble)return Bo(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Jt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function K(e,t,n,r,i){var o={capture:r,passive:i},a=Vr(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ut(()=>{t.removeEventListener(e,a,o)})}function Rr(e){for(var t=0;t<e.length;t++)Hr.add(e[t]);for(var n of In)n(e)}function At(e){var b;var t=this,n=t.ownerDocument,r=e.type,i=((b=e.composedPath)==null?void 0:b.call(e))||[],o=i[0]||e.target,a=0,s=e.__root;if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(o=i[a]||e.target,o!==t){_t(e,"currentTarget",{configurable:!0,get(){return o||n}});var f=z,d=A;Ce(null),Ze(null);try{for(var c,v=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+r];if(g!=null&&(!o.disabled||e.target===o))if(Vt(g)){var[_,...m]=g;_.apply(o,[e,...m])}else g.call(o,e)}catch(p){c?v.push(p):c=p}if(e.cancelBubble||h===t||h===null)break;o=h}if(c){for(let p of v)queueMicrotask(()=>{throw p});throw c}}finally{e.__root=t,delete e.currentTarget,Ce(f),Ze(d)}}}function Br(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function je(e,t){var n=A;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ve(e,t){var n=(t&Gn)!==0,r=(t&Qi)!==0,i,o=!e.startsWith("<!>");return()=>{if(I)return je(L,null),L;i===void 0&&(i=Br(o?e:"<!>"+e),n||(i=de(i)));var a=r||mr?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=de(a),l=a.lastChild;je(s,l)}else je(a,a);return a}}function Fo(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&Gn)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,a;return()=>{if(I)return je(L,null),L;if(!a){var s=Br(o),l=de(s);if(i)for(a=document.createDocumentFragment();de(l);)a.appendChild(de(l));else a=de(l)}var u=a.cloneNode(!0);if(i){var f=de(u),d=u.lastChild;je(f,d)}else je(u,u);return u}}function B(e,t){return Fo(e,t,"svg")}function Ot(){if(I)return je(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),n=vt();return e.append(t,n),je(t,n),e}function S(e,t){if(I){A.nodes_end=L,ft();return}e!==null&&e.before(t)}function qo(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Uo=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Zo(e){return Uo.includes(e)}const Yo={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 Jo(e){return e=e.toLowerCase(),Yo[e]??e}const Wo=["touchstart","touchmove"];function Ko(e){return Wo.includes(e)}function zn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Fr(e,t){return qr(e,t)}function Go(e,t){$n(),t.intro=t.intro??!1;const n=t.target,r=I,i=L;try{for(var o=de(n);o&&(o.nodeType!==Et||o.data!==cn);)o=Le(o);if(!o)throw st;me(!0),_e(o),ft();const a=qr(e,{...t,anchor:o});if(L===null||L.nodeType!==Et||L.data!==fn)throw qt(),st;return me(!1),a}catch(a){if(a===st)return t.recover===!1&&vo(),$n(),kr(n),me(!1),Fr(e,t);throw a}finally{me(r),_e(i)}}const pt=new Map;function qr(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){$n();var s=new Set,l=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!s.has(v)){s.add(v);var h=Ko(v);t.addEventListener(v,At,{passive:h});var g=pt.get(v);g===void 0?(document.addEventListener(v,At,{passive:h}),pt.set(v,1)):pt.set(v,g+1)}}};l(vn(Hr)),In.add(l);var u=void 0,f=So(()=>{var d=n??t.appendChild(vt());return Oe(()=>{if(o){Z({});var c=H;c.c=o}i&&(r.$$events=i),I&&je(d,null),u=e(d,r)||{},I&&(A.nodes_end=L),o&&Y()}),()=>{var h;for(var c of s){t.removeEventListener(c,At);var v=pt.get(c);--v===0?(document.removeEventListener(c,At),pt.delete(c)):pt.set(c,v)}In.delete(l),d!==n&&((h=d.parentNode)==null||h.removeChild(d))}});return Mn.set(u,f),u}let Mn=new WeakMap;function Xo(e,t){const n=Mn.get(e);return n?(Mn.delete(e),n(t)):Promise.resolve()}function Ln(e,t,...n){var r=e,i=ue,o;et(()=>{i!==(i=t())&&(o&&(se(o),o=null),o=Oe(()=>i(r,...n)))},$t),I&&(r=L)}function en(e){H===null&&_o(),at&&H.l!==null?Qo(H).m.push(e):En(()=>{const t=Pe(e);if(typeof t=="function")return t})}function Qo(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function he(e,t,[n,r]=[0,0]){I&&n===0&&ft();var i=e,o=null,a=null,s=ne,l=n>0?$t:0,u=!1;const f=(c,v=!0)=>{u=!0,d(v,c)},d=(c,v)=>{if(s===(s=c))return;let h=!1;if(I&&r!==-1){if(n===0){const _=gr(i);_===cn?r=0:_===dn?r=1/0:(r=parseInt(_.substring(1)),r!==r&&(r=s?1/0:-1))}const g=r>n;!!s===g&&(i=xn(),_e(i),me(!1),h=!0,r=-1)}s?(o?Yt(o):v&&(o=Oe(()=>v(i))),a&&Nt(a,()=>{a=null})):(a?Yt(a):v&&(a=Oe(()=>v(i,[n+1,r]))),o&&Nt(o,()=>{o=null})),h&&me(!0)};et(()=>{u=!1,t(f),u||d(null,null)},l),I&&(i=L)}function es(e,t){return t}function ts(e,t,n,r){for(var i=[],o=t.length,a=0;a<o;a++)Sn(t[a].e,i,!0);var s=o>0&&i.length===0&&n!==null;if(s){var l=n.parentNode;kr(l),l.append(n),r.clear(),Je(e,t[0].prev,t[o-1].next)}Nr(i,()=>{for(var u=0;u<o;u++){var f=t[u];s||(r.delete(f.k),Je(e,f.prev,f.next)),se(f.e,!s)}})}function ns(e,t,n,r,i,o=null){var a=e,s={flags:t,items:new Map,first:null};{var l=e;a=I?_e(de(l)):l.appendChild(vt())}I&&ft();var u=null,f=!1,d=ct(()=>{var c=n();return Vt(c)?c:c==null?[]:vn(c)});et(()=>{var c=k(d),v=c.length;if(f&&v===0)return;f=v===0;let h=!1;if(I){var g=gr(a)===dn;g!==(v===0)&&(a=xn(),_e(a),me(!1),h=!0)}if(I){for(var _=null,m,b=0;b<v;b++){if(L.nodeType===Et&&L.data===fn){a=L,h=!0,me(!1);break}var p=c[b],w=r(p,b);m=Ur(L,s,_,null,p,w,b,i,t,n),s.items.set(w,m),_=m}v>0&&_e(xn())}I||rs(c,s,a,i,t,r,n),o!==null&&(v===0?u?Yt(u):u=Oe(()=>o(a)):u!==null&&Nt(u,()=>{u=null})),h&&me(!0),k(d)}),I&&(a=L)}function rs(e,t,n,r,i,o,a){var s=e.length,l=t.items,u=t.first,f=u,d,c=null,v=[],h=[],g,_,m,b;for(b=0;b<s;b+=1){if(g=e[b],_=o(g,b),m=l.get(_),m===void 0){var p=f?f.e.nodes_start:n;c=Ur(p,t,c,c===null?t.first:c.next,g,_,b,r,i,a),l.set(_,c),v=[],h=[],f=c.next;continue}if(is(m,g,b),(m.e.f&Me)!==0&&Yt(m.e),m!==f){if(d!==void 0&&d.has(m)){if(v.length<h.length){var w=h[0],y;c=w.prev;var P=v[0],M=v[v.length-1];for(y=0;y<v.length;y+=1)Zr(v[y],w,n);for(y=0;y<h.length;y+=1)d.delete(h[y]);Je(t,P.prev,M.next),Je(t,c,P),Je(t,M,w),f=w,c=M,b-=1,v=[],h=[]}else d.delete(m),Zr(m,f,n),Je(t,m.prev,m.next),Je(t,m,c===null?t.first:c.next),Je(t,c,m),c=m;continue}for(v=[],h=[];f!==null&&f.k!==_;)(f.e.f&Me)===0&&(d??(d=new Set)).add(f),h.push(f),f=f.next;if(f===null)continue;m=f}v.push(m),c=m,f=m.next}if(f!==null||d!==void 0){for(var O=d===void 0?[]:vn(d);f!==null;)(f.e.f&Me)===0&&O.push(f),f=f.next;var V=O.length;if(V>0){var R=s===0?n:null;ts(t,O,R,l)}}A.first=t.first&&t.first.e,A.last=c&&c.e}function is(e,t,n,r){hr(e.v,t),e.i=n}function Ur(e,t,n,r,i,o,a,s,l,u){var f=(l&J)!==0,d=(l&Ji)===0,c=f?d?St(i,!1,!1):dt(i):i,v=(l&Ht)===0?a:dt(a),h={i:v,v:c,k:o,a:null,e:null,prev:n,next:r};try{return h.e=Oe(()=>s(e,c,v,u),I),h.e.prev=n&&n.e,h.e.next=r&&r.e,n===null?t.first=h:(n.next=h,n.e.next=h.e),r!==null&&(r.prev=h,r.e.prev=h.e),h}finally{}}function Zr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==r;){var a=Le(o);i.before(o),o=a}}function Je(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function tn(e,t,n,r,i){var s;I&&ft();var o=(s=t.$$slots)==null?void 0:s[n],a=!1;o===!0&&(o=t.children,a=!0),o===void 0||o(e,a?()=>r:r)}function os(e,t,n){I&&ft();var r=e,i,o;et(()=>{i!==(i=t())&&(o&&(Nt(o),o=null),i&&(o=Oe(()=>n(r,i))))},$t),I&&(r=L)}function gt(e,t){Jt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ss(e,t){var n=void 0,r;et(()=>{n!==(n=t())&&(r&&(se(r),r=null),n&&(r=Oe(()=>{Cn(()=>n(e))})))})}function Yr(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=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function as(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}function ls(e){return typeof e=="object"?as(e):e??""}const Jr=[...`
2
- \r\f \v\uFEFF`];function us(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var s=a+o;(a===0||Jr.includes(r[a-1]))&&(s===r.length||Jr.includes(r[s]))?r=(a===0?"":r.substring(0,a))+r.substring(s+1):a=s}}return r===""?null:r}function Wr(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function An(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function cs(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 o=!1,a=0,s=!1,l=[];r&&l.push(...Object.keys(r).map(An)),i&&l.push(...Object.keys(i).map(An));var u=0,f=-1;const g=e.length;for(var d=0;d<g;d++){var c=e[d];if(s?c==="/"&&e[d-1]==="*"&&(s=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?s=!0:c==='"'||c==="'"?o=c:c==="("?a++:c===")"&&a--,!s&&o===!1&&a===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===g-1){if(f!==-1){var v=An(e.substring(u,f).trim());if(!l.includes(v)){c!==";"&&d++;var h=e.substring(u,d).trim();n+=" "+h+";"}}u=d+1,f=-1}}}}return r&&(n+=Wr(r)),i&&(n+=Wr(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function be(e,t,n,r,i,o){var a=e.__className;if(I||a!==n||a===void 0){var s=us(n,r,o);(!I||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=n}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function On(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function ds(e,t,n,r){var i=e.__style;if(I||i!==t){var o=cs(t,r);(!I||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else r&&(Array.isArray(r)?(On(e,n==null?void 0:n[0],r[0]),On(e,n==null?void 0:n[1],r[1],"important")):On(e,n,r));return r}function Pn(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Vt(t))return xo();for(var r of e.options)r.selected=t.includes(Kr(r));return}for(r of e.options){var i=Kr(r);if(yo(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function fs(e){var t=new MutationObserver(()=>{Pn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ut(()=>{t.disconnect()})}function Kr(e){return"__value"in e?e.__value:e.value}const wt=Symbol("class"),Pt=Symbol("style"),Gr=Symbol("is custom element"),Xr=Symbol("is html");function vs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function We(e,t,n,r){var i=Qr(e);I&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ao]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ti(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function hs(e,t,n,r,i=!1){var o=Qr(e),a=o[Gr],s=!o[Xr];let l=I&&a;l&&me(!1);var u=t||{},f=e.tagName==="OPTION";for(var d in t)d in n||(n[d]=null);n.class?n.class=ls(n.class):(r||n[wt])&&(n.class=null),n[Pt]&&(n.style??(n.style=null));var c=ti(e);for(const p in n){let w=n[p];if(f&&p==="value"&&w==null){e.value=e.__value="",u[p]=w;continue}if(p==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";be(e,v,w,r,t==null?void 0:t[wt],n[wt]),u[p]=w,u[wt]=n[wt];continue}if(p==="style"){ds(e,w,t==null?void 0:t[Pt],n[Pt]),u[p]=w,u[Pt]=n[Pt];continue}var h=u[p];if(!(w===h&&!(w===void 0&&e.hasAttribute(p)))){u[p]=w;var g=p[0]+p[1];if(g!=="$$")if(g==="on"){const y={},P="$$"+p;let M=p.slice(2);var _=Zo(M);if(qo(M)&&(M=M.slice(0,-7),y.capture=!0),!_&&h){if(w!=null)continue;e.removeEventListener(M,u[P],y),u[P]=null}if(w!=null)if(_)e[`__${M}`]=w,Rr([M]);else{let O=function(V){u[p].call(this,V)};u[P]=Vr(M,e,O,y)}else _&&(e[`__${M}`]=void 0)}else if(p==="style")We(e,p,w);else if(p==="autofocus")Ro(e,!!w);else if(!a&&(p==="__value"||p==="value"&&w!=null))e.value=e.__value=w;else if(p==="selected"&&f)vs(e,w);else{var m=p;s||(m=Jo(m));var b=m==="defaultValue"||m==="defaultChecked";if(w==null&&!a&&!b)if(o[p]=null,m==="value"||m==="checked"){let y=e;const P=t===void 0;if(m==="value"){let M=y.defaultValue;y.removeAttribute(m),y.defaultValue=M,y.value=y.__value=P?M:null}else{let M=y.defaultChecked;y.removeAttribute(m),y.defaultChecked=M,y.checked=P?M:!1}}else e.removeAttribute(p);else b||c.includes(m)&&(a||typeof w!="string")?e[m]=w:typeof w!="function"&&We(e,m,w)}}}return l&&me(!0),u}function nn(e,t,n=[],r,i=!1,o=ut){const a=n.map(o);var s=void 0,l={},u=e.nodeName==="SELECT",f=!1;if(et(()=>{var c=t(...a.map(k)),v=hs(e,s,c,r,i);f&&u&&"value"in c&&Pn(e,c.value);for(let g of Object.getOwnPropertySymbols(l))c[g]||se(l[g]);for(let g of Object.getOwnPropertySymbols(c)){var h=c[g];g.description===to&&(!s||h!==s[g])&&(l[g]&&se(l[g]),l[g]=Oe(()=>ss(e,()=>h))),v[g]=h}s=v}),u){var d=e;Cn(()=>{Pn(d,s.value,!0),fs(d)})}f=!0}function Qr(e){return e.__attributes??(e.__attributes={[Gr]:e.nodeName.includes("-"),[Xr]:e.namespaceURI===eo})}var ei=new Map;function ti(e){var t=ei.get(e.nodeName);if(t)return t;ei.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=Qn(r);for(var o in n)n[o].set&&t.push(o);r=hn(r)}return t}function ni(e,t){return e===t||(e==null?void 0:e[xe])===t}function ri(e={},t,n,r){return Cn(()=>{var i,o;return Zt(()=>{i=o,o=[],Pe(()=>{e!==n(...o)&&(t(e,...o),i&&ni(n(...i),e)&&t(null,...i))})}),()=>{Jt(()=>{o&&ni(n(...o),e)&&t(null,...o)})}}),e}function jn(e=!1){const t=H,n=t.l.u;if(!n)return;let r=()=>Dr(t.s);if(e){let i=0,o={};const a=ut(()=>{let s=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],s=!0);return s&&i++,i});r=()=>k(a)}n.b.length&&Eo(()=>{ii(t,r),kt(n.b)}),En(()=>{const i=Pe(()=>n.m.map(oo));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&En(()=>{ii(t,r),kt(n.a)})}function ii(e,t){if(e.l.s)for(const n of e.l.s)k(n);t()}function Dn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),ue;const r=Pe(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const mt=[];function bs(e,t){return{subscribe:rn(e,t).subscribe}}function rn(e,t=ue){let n=null;const r=new Set;function i(s){if(ar(e,s)&&(e=s,n)){const l=!mt.length;for(const u of r)u[1](),mt.push(u,e);if(l){for(let u=0;u<mt.length;u+=2)mt[u][0](mt[u+1]);mt.length=0}}}function o(s){i(s(e))}function a(s,l=ue){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,o)||ue),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:a}}function ps(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return bs(n,(a,s)=>{let l=!1;const u=[];let f=0,d=ue;const c=()=>{if(f)return;d();const h=t(r?u[0]:u,a,s);o?a(h):d=typeof h=="function"?h:ue},v=i.map((h,g)=>Dn(h,_=>{u[g]=_,f&=~(1<<g),l&&c()},()=>{f|=1<<g}));return l=!0,c(),function(){kt(v),d(),l=!1}})}function gs(e){let t;return Dn(e,n=>t=n)(),t}let on=!1,Hn=Symbol();function pe(e,t,n){const r=n[t]??(n[t]={store:null,source:St(void 0),unsubscribe:ue});if(r.store!==e&&!(Hn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=ue;else{var i=!0;r.unsubscribe=Dn(e,o=>{i?r.source.v=o:j(r.source,o)}),i=!1}return e&&Hn in n?gs(e):k(r.source)}function jt(){const e={};function t(){Ut(()=>{for(var n in e)e[n].unsubscribe();_t(e,Hn,{enumerable:!1,value:!0})})}return[e,t]}function ws(e){var t=on;try{return on=!1,[e(),on]}finally{on=t}}const ms={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 Vn(e,t,n){return new Proxy({props:e,exclude:t},ms)}const _s={get(e,t){if(!e.exclude.includes(t))return k(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){return t in e.special||(e.special[t]=C({get[t](){return e.props[t]}},t,Kn)),e.special[t](n),br(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),br(e.version)),!0},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 sn(e,t){return new Proxy({props:e,exclude:t,special:{},version:dt(0)},_s)}const ys={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(yt(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];yt(i)&&(i=i());const o=Te(i,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(yt(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const i=Te(r,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===xe||t===yn)return!1;for(let n of e.props)if(yt(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(yt(n)&&(n=n()),!!n){for(const r in n)t.includes(r)||t.push(r);for(const r of Object.getOwnPropertySymbols(n))t.includes(r)||t.push(r)}return t}};function oi(...e){return new Proxy({props:e},ys)}function ks(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function C(e,t,n,r){var m;var i=!at||(n&Ki)!==0,o=(n&Gi)!==0,a=(n&Xi)!==0,s=r,l=!0,u=()=>(l&&(l=!1,s=a?Pe(r):r),s),f;if(o){var d=xe in e||yn in e;f=((m=Te(e,t))==null?void 0:m.set)??(d&&t in e?b=>e[t]=b:void 0)}var c,v=!1;o?[c,v]=ws(()=>e[t]):c=e[t],c===void 0&&r!==void 0&&(c=u(),f&&(i&&ho(),f(c)));var h;if(i?h=()=>{var b=e[t];return b===void 0?u():(l=!0,b)}:h=()=>{var b=e[t];return b!==void 0&&(s=void 0),b===void 0?s:b},i&&(n&Kn)===0)return h;if(f){var g=e.$$legacy;return function(b,p){return arguments.length>0?((!i||!p||g||v)&&f(p?h():b),b):h()}}var _=((n&Wi)!==0?ut:ct)(h);return o&&k(_),function(b,p){if(arguments.length>0){const w=p?k(_):i&&o?lt(b):b;return j(_,w),s!==void 0&&(s=w),b}return ks(_)?_.v:k(_)}}function xs(e){return new $s(e)}class $s{constructor(t){Jn(this,De);Jn(this,ge);var o;var n=new Map,r=(a,s)=>{var l=St(s,!1,!1);return n.set(a,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(a,s){return k(n.get(s)??r(s,Reflect.get(a,s)))},has(a,s){return s===yn?!0:(k(n.get(s)??r(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return j(n.get(s)??r(s,l),l),Reflect.set(a,s,l)}});Wn(this,ge,(t.hydrate?Go:Fr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&E(),Wn(this,De,i.$$events);for(const a of Object.keys(re(this,ge)))a==="$set"||a==="$destroy"||a==="$on"||_t(this,a,{get(){return re(this,ge)[a]},set(s){re(this,ge)[a]=s},enumerable:!0});re(this,ge).$set=a=>{Object.assign(i,a)},re(this,ge).$destroy=()=>{Xo(re(this,ge))}}$set(t){re(this,ge).$set(t)}$on(t,n){re(this,De)[t]=re(this,De)[t]||[];const r=(...i)=>n.call(this,...i);return re(this,De)[t].push(r),()=>{re(this,De)[t]=re(this,De)[t].filter(i=>i!==r)}}$destroy(){re(this,ge).$destroy()}}De=new WeakMap,ge=new WeakMap;let si;typeof HTMLElement=="function"&&(si=class extends HTMLElement{constructor(t,n,r){super();le(this,"$$ctor");le(this,"$$s");le(this,"$$c");le(this,"$$cn",!1);le(this,"$$d",{});le(this,"$$r",!1);le(this,"$$p_d",{});le(this,"$$l",{});le(this,"$$l_u",new Map);le(this,"$$me");this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),S(o,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Es(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),n.default=!0):n[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=an(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=xs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=Co(()=>{Zt(()=>{var i;this.$$r=!0;for(const o of Rt(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const a=an(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const a=this.$$c.$on(i,o);this.$$l_u.set(o,a)}this.$$l={}}}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=an(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Rt(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function an(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.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 Es(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function U(e,t,n,r,i,o){let a=class extends si{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Rt(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Rt(t).forEach(s=>{_t(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var d;l=an(s,l,t),this.$$d[s]=l;var u=this.$$c;if(u){var f=(d=Te(u,s))==null?void 0:d.get;f?u[s]=l:u.$set({[s]:l})}}})}),r.forEach(s=>{_t(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}var Cs=ve("<a><!></a>"),Ss=ve("<button><!></button>");const Ns={hash:"svelte-zftwkm",code:`:root, :host {
1
+ (function(z,j){typeof exports=="object"&&typeof module<"u"?j(exports):typeof define=="function"&&define.amd?define(["exports"],j):(z=typeof globalThis<"u"?globalThis:z||self,j(z.graymatter={}))})(this,function(z){"use strict";var ol=Object.defineProperty;var Xi=z=>{throw TypeError(z)};var al=(z,j,J)=>j in z?ol(z,j,{enumerable:!0,configurable:!0,writable:!0,value:J}):z[j]=J;var le=(z,j,J)=>al(z,typeof j!="symbol"?j+"":j,J),Qi=(z,j,J)=>j.has(z)||Xi("Cannot "+J);var ne=(z,j,J)=>(Qi(z,j,"read from private field"),J?J.call(z):j.get(z)),Qr=(z,j,J)=>j.has(z)?Xi("Cannot add the same private member more than once"):j instanceof WeakSet?j.add(z):j.set(z,J),en=(z,j,J,jt)=>(Qi(z,j,"write to private field"),jt?jt.call(z,J):j.set(z,J),J);var Mi,Re,ge;const j="5";typeof window<"u"&&((Mi=window.__svelte??(window.__svelte={})).v??(Mi.v=new Set)).add(j);const J=1,jt=2,eo=16,to=1,ro=2,tn=4,no=8,io=16,rn=1,oo=2,dr="[",fr="[!",vr="]",ot={},re=Symbol(),ao="http://www.w3.org/1999/xhtml",so="@attach",nn=!1;var Dt=Array.isArray,lo=Array.prototype.indexOf,hr=Array.from,Ht=Object.keys,wt=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,on=Object.getOwnPropertyDescriptors,uo=Object.prototype,co=Array.prototype,br=Object.getPrototypeOf,an=Object.isExtensible;function _t(e){return typeof e=="function"}const ue=()=>{};function fo(e){return e()}function kt(e){for(var t=0;t<e.length;t++)e[t]()}const ce=2,pr=4,yt=8,gr=16,Oe=32,Xe=64,mr=128,ie=256,Vt=512,oe=1024,qe=2048,Fe=4096,Pe=8192,wr=16384,sn=32768,xt=65536,ln=1<<17,vo=1<<18,un=1<<19,_r=1<<20,kr=1<<21,Ce=Symbol("$state"),yr=Symbol("legacy props"),ho=Symbol(""),cn=new class extends Error{constructor(){super(...arguments);le(this,"name","StaleReactionError");le(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},dn=3,Et=8;function fn(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function hn(e){return!vn(e,this.v)}function bo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function go(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wo(){throw new Error("https://svelte.dev/e/hydration_failed")}function _o(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ko(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function yo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let at=!1,Eo=!1;function Co(){at=!0}function So(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let D=null;function bn(e){D=e}function Y(e,t=!1,r){var n=D={p:D,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};at&&!t&&(D.l={s:null,u:null,r1:[],r2:ut(!1)}),Yt(()=>{n.d=!0})}function Z(e){const t=D;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=O,n=U;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];Ze(o.effect),Ne(o.reaction),Tn(o.fn)}}finally{Ze(r),Ne(n)}}D=t.p,t.m=!0}return e||{}}function Rt(){return!at||D!==null&&D.l===null}function st(e){if(typeof e!="object"||e===null||Ce in e)return e;const t=br(e);if(t!==uo&&t!==co)return e;var r=new Map,n=Dt(e),i=we(0),o=U,s=a=>{var l=U;Ne(o);var u=a();return Ne(l),u};return n&&r.set("length",we(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ko();var d=r.get(l);return d===void 0?d=s(()=>{var f=we(u.value);return r.set(l,f),f}):q(d,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>we(re));r.set(l,c),xr(i)}}else{if(n&&typeof l=="string"){var d=r.get("length"),f=Number(l);Number.isInteger(f)&&f<d.v&&q(d,f)}q(u,re),xr(i)}return!0},get(a,l,u){var v;if(l===Ce)return e;var d=r.get(l),f=l in a;if(d===void 0&&(!f||(v=Ae(a,l))!=null&&v.writable)&&(d=s(()=>{var b=st(f?a[l]:re),g=we(b);return g}),r.set(l,d)),d!==void 0){var c=E(d);return c===re?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var d=r.get(l);d&&(u.value=E(d))}else if(u===void 0){var f=r.get(l),c=f==null?void 0:f.v;if(f!==void 0&&c!==re)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===Ce)return!0;var u=r.get(l),d=u!==void 0&&u.v!==re||Reflect.has(a,l);if(u!==void 0||O!==null&&(!d||(c=Ae(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=d?st(a[l]):re,b=we(v);return b}),r.set(l,u));var f=E(u);if(f===re)return!1}return d},set(a,l,u,d){var p;var f=r.get(l),c=l in a;if(n&&l==="length")for(var v=u;v<f.v;v+=1){var b=r.get(v+"");b!==void 0?q(b,re):v in a&&(b=s(()=>we(re)),r.set(v+"",b))}if(f===void 0)(!c||(p=Ae(a,l))!=null&&p.writable)&&(f=s(()=>we(void 0)),q(f,st(u)),r.set(l,f));else{c=f.v!==re;var g=s(()=>st(u));q(f,g)}var y=Reflect.getOwnPropertyDescriptor(a,l);if(y!=null&&y.set&&y.set.call(d,u),!c){if(n&&typeof l=="string"){var m=r.get("length"),h=Number(l);Number.isInteger(h)&&h>=m.v&&q(m,h+1)}xr(i)}return!0},ownKeys(a){E(i);var l=Reflect.ownKeys(a).filter(f=>{var c=r.get(f);return c===void 0||c.v!==re});for(var[u,d]of r)d.v!==re&&!(u in a)&&l.push(u);return l},setPrototypeOf(){yo()}})}function xr(e,t=1){q(e,e.v+t)}function pn(e){try{if(e!==null&&typeof e=="object"&&Ce in e)return e[Ce]}catch{}return e}function $o(e,t){return Object.is(pn(e),pn(t))}function lt(e){var t=ce|qe,r=U!==null&&(U.f&ce)!==0?U:null;return O===null||r!==null&&(r.f&ie)!==0?t|=ie:O.f|=un,{ctx:D,deps:null,effects:null,equals:fn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??O,ac:null}}function G(e){const t=lt(e);return jn(t),t}function Bt(e){const t=lt(e);return t.equals=hn,t}function gn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ae(t[r])}}function No(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return t;t=t.parent}return null}function mn(e){var t,r=O;Ze(No(e));try{gn(e),t=Vn(e)}finally{Ze(r)}return t}function wn(e){var t=mn(e);if(e.equals(t)||(e.v=t,e.wv=Dn()),!vt){var r=(Je||(e.f&ie)!==0)&&e.deps!==null?Fe:oe;ye(e,r)}}const Ct=new Map;function ut(e,t){var r={f:0,v:e,reactions:null,equals:fn,rv:0,wv:0};return r}function we(e,t){const r=ut(e);return jn(r),r}function St(e,t=!1,r=!0){var i;const n=ut(e);return t||(n.equals=hn),at&&r&&D!==null&&D.l!==null&&((i=D.l).s??(i.s=[])).push(n),n}function q(e,t,r=!1){U!==null&&(!$e||(U.f&ln)!==0)&&Rt()&&(U.f&(ce|gr|ln))!==0&&!((R==null?void 0:R.reaction)===U&&R.sources.includes(e))&&xo();let n=r?st(t):t;return _n(e,n)}function _n(e,t){if(!e.equals(t)){var r=e.v;vt?Ct.set(e,t):Ct.set(e,r),e.v=t,(e.f&ce)!==0&&((e.f&qe)!==0&&mn(e),ye(e,(e.f&ie)===0?oe:Fe)),e.wv=Dn(),yn(e,qe),Rt()&&O!==null&&(O.f&oe)!==0&&(O.f&(Oe|Xe))===0&&(fe===null?Ho([e]):fe.push(e))}return t}function kn(e,t=1){var r=E(e),n=t===1?r++:r--;return q(e,r),n}function yn(e,t){var r=e.reactions;if(r!==null)for(var n=Rt(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&qe)===0&&(!n&&s===O||(ye(s,t),(a&(oe|ie))!==0&&((a&ce)!==0?yn(s,Fe):er(s))))}}function Ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Io(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let M=!1;function _e(e){M=e}let A;function ke(e){if(e===null)throw Ft(),ot;return A=e}function ct(){return ke(je(A))}function C(e){if(M){if(je(A)!==null)throw Ft(),ot;A=e}}function Se(e=1){if(M){for(var t=e,r=A;t--;)r=je(r);A=r}}function Er(){for(var e=0,t=A;;){if(t.nodeType===Et){var r=t.data;if(r===vr){if(e===0)return t;e-=1}else(r===dr||r===fr)&&(e+=1)}var n=je(t);t.remove(),t=n}}function xn(e){if(!e||e.nodeType!==Et)throw Ft(),ot;return e.data}var En,Cn,Sn,$n;function Cr(){if(En===void 0){En=window,Cn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Sn=Ae(t,"firstChild").get,$n=Ae(t,"nextSibling").get,an(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),an(r)&&(r.__t=void 0)}}function dt(e=""){return document.createTextNode(e)}function de(e){return Sn.call(e)}function je(e){return $n.call(e)}function S(e,t){if(!M)return de(e);var r=de(A);if(r===null)r=A.appendChild(dt());else if(t&&r.nodeType!==dn){var n=dt();return r==null||r.before(n),ke(n),n}return ke(r),r}function Ye(e,t){if(!M){var r=de(e);return r instanceof Comment&&r.data===""?je(r):r}return A}function X(e,t=1,r=!1){let n=M?A:e;for(var i;t--;)i=n,n=je(n);if(!M)return n;if(r&&(n==null?void 0:n.nodeType)!==dn){var o=dt();return n===null?i==null||i.after(o):n.before(o),ke(o),o}return ke(n),n}function Nn(e){e.textContent=""}function In(e){O===null&&U===null&&go(),U!==null&&(U.f&ie)!==0&&O===null&&po(),vt&&bo()}function To(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function De(e,t,r,n=!0){var i=O,o={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|qe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Qt(o),o.f|=sn}catch(l){throw ae(o),l}else t!==null&&er(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(un|mr))===0;if(!s&&n&&(i!==null&&To(o,i),U!==null&&(U.f&ce)!==0)){var a=U;(a.effects??(a.effects=[])).push(o)}return o}function Yt(e){const t=De(yt,null,!1);return ye(t,oe),t.teardown=e,t}function Sr(e){In();var t=O!==null&&(O.f&Oe)!==0&&D!==null&&!D.m;if(t){var r=D;(r.e??(r.e=[])).push({fn:e,effect:O,reaction:U})}else return Tn(e)}function Tn(e){return De(pr|kr,e,!1)}function zo(e){return In(),De(yt|kr,e,!0)}function Mo(e){const t=De(Xe,e,!0);return()=>{ae(t)}}function Lo(e){const t=De(Xe,e,!0);return(r={})=>new Promise(n=>{r.outro?$t(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function $r(e){return De(pr,e,!1)}function Uo(e,t){var r=D,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=Zt(()=>{e(),!n.ran&&(n.ran=!0,q(r.l.r2,!0),ht(t))})}function Ao(){var e=D;Zt(()=>{if(E(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&oe)!==0&&ye(r,Fe),Mt(r)&&Qt(r),t.ran=!1}e.l.r2.v=!1}})}function Zt(e){return De(yt,e,!0)}function ft(e,t=[],r=lt){const n=t.map(r);return Qe(()=>e(...n.map(E)))}function Qe(e,t=0){var r=De(yt|gr|t,e,!0);return r}function He(e,t=!0){return De(yt|Oe,e,!0,t)}function zn(e){var t=e.teardown;if(t!==null){const r=vt,n=U;Pn(!0),Ne(null);try{t.call(null)}finally{Pn(r),Ne(n)}}}function Mn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(cn);var n=r.next;(r.f&Xe)!==0?r.parent=null:ae(r,t),r=n}}function Oo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Oe)===0&&ae(t),t=r}}function ae(e,t=!0){var r=!1;(t||(e.f&vo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qo(e.nodes_start,e.nodes_end),r=!0),Mn(e,t&&!r),Xt(e,0),ye(e,wr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();zn(e);var i=e.parent;i!==null&&i.first!==null&&Ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qo(e,t){for(;e!==null;){var r=e===t?null:je(e);e.remove(),e=r}}function Ln(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function $t(e,t){var r=[];Nr(e,r,!0),Un(r,()=>{ae(e),t&&t()})}function Un(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Nr(e,t,r){if((e.f&Pe)===0){if(e.f^=Pe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&xt)!==0||(n.f&Oe)!==0;Nr(n,t,o?r:!1),n=i}}}function Jt(e){An(e,!0)}function An(e,t){if((e.f&Pe)!==0){e.f^=Pe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&xt)!==0||(r.f&Oe)!==0;An(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Nt=[],Ir=[];function On(){var e=Nt;Nt=[],kt(e)}function Po(){var e=Ir;Ir=[],kt(e)}function Wt(e){Nt.length===0&&queueMicrotask(On),Nt.push(e)}function jo(){Nt.length>0&&On(),Ir.length>0&&Po()}function Do(e){var t=O;if((t.f&sn)===0){if((t.f&mr)===0)throw e;t.fn(e)}else qn(e,t)}function qn(e,t){for(;t!==null;){if((t.f&mr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let It=!1,Tt=null,et=!1,vt=!1;function Pn(e){vt=e}let zt=[],sl=[],U=null,$e=!1;function Ne(e){U=e}let O=null;function Ze(e){O=e}let R=null;function jn(e){U!==null&&U.f&_r&&(R===null?R={reaction:U,sources:[e]}:R.sources.push(e))}let Q=null,se=0,fe=null;function Ho(e){fe=e}let Kt=1,Gt=0,Je=!1;function Dn(){return++Kt}function Mt(e){var f;var t=e.f;if((t&qe)!==0)return!0;if((t&Fe)!==0){var r=e.deps,n=(t&ie)!==0;if(r!==null){var i,o,s=(t&Vt)!==0,a=n&&O!==null&&!Je,l=r.length;if(s||a){var u=e,d=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((f=o==null?void 0:o.reactions)!=null&&f.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=Vt),a&&d!==null&&(d.f&ie)===0&&(u.f^=ie)}for(i=0;i<l;i++)if(o=r[i],Mt(o)&&wn(o),o.wv>e.wv)return!0}(!n||O!==null&&!Je)&&ye(e,oe)}return!1}function Hn(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(R==null?void 0:R.reaction)===U&&R.sources.includes(e)||((o.f&ce)!==0?Hn(o,t,!1):t===o&&(r?ye(o,qe):(o.f&oe)!==0&&ye(o,Fe),er(o)))}}function Vn(e){var v;var t=Q,r=se,n=fe,i=U,o=Je,s=R,a=D,l=$e,u=e.f;Q=null,se=0,fe=null,Je=(u&ie)!==0&&($e||!et||U===null),U=(u&(Oe|Xe))===0?e:null,R=null,bn(e.ctx),$e=!1,Gt++,e.f|=_r,e.ac!==null&&(e.ac.abort(cn),e.ac=null);try{var d=(0,e.fn)(),f=e.deps;if(Q!==null){var c;if(Xt(e,se),f!==null&&se>0)for(f.length=se+Q.length,c=0;c<Q.length;c++)f[se+c]=Q[c];else e.deps=f=Q;if(!Je||(u&ce)!==0&&e.reactions!==null)for(c=se;c<f.length;c++)((v=f[c]).reactions??(v.reactions=[])).push(e)}else f!==null&&se<f.length&&(Xt(e,se),f.length=se);if(Rt()&&fe!==null&&!$e&&f!==null&&(e.f&(ce|Fe|qe))===0)for(c=0;c<fe.length;c++)Hn(fe[c],e);return i!==null&&i!==e&&(Gt++,fe!==null&&(n===null?n=fe:n.push(...fe))),d}catch(b){Do(b)}finally{Q=t,se=r,fe=n,U=i,Je=o,R=s,bn(a),$e=l,e.f^=_r}}function Vo(e,t){let r=t.reactions;if(r!==null){var n=lo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&ce)!==0&&(Q===null||!Q.includes(t))&&(ye(t,Fe),(t.f&(ie|Vt))===0&&(t.f^=Vt),gn(t),Xt(t,0))}function Xt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Vo(e,r[n])}function Qt(e){var t=e.f;if((t&wr)===0){ye(e,oe);var r=O,n=et;O=e,et=!0;try{(t&gr)!==0?Oo(e):Mn(e),zn(e);var i=Vn(e);e.teardown=typeof i=="function"?i:null,e.wv=Kt;var o;nn&&Eo&&(e.f&qe)!==0&&e.deps}finally{et=n,O=r}}}function Ro(){try{mo()}catch(e){if(Tt!==null)qn(e,Tt);else throw e}}function Rn(){var e=et;try{var t=0;for(et=!0;zt.length>0;){t++>1e3&&Ro();var r=zt,n=r.length;zt=[];for(var i=0;i<n;i++){var o=Fo(r[i]);Bo(o)}Ct.clear()}}finally{It=!1,et=e,Tt=null}}function Bo(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(wr|Pe))===0&&Mt(n)){var i=Kt;if(Qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Ln(n):n.fn=null),Kt>i&&(n.f&kr)!==0)break}}for(;r<t;r+=1)er(e[r])}}function er(e){It||(It=!0,queueMicrotask(Rn));for(var t=Tt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(Xe|Oe))!==0){if((r&oe)===0)return;t.f^=oe}}zt.push(t)}function Fo(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Oe|Xe))!==0,o=i&&(n&oe)!==0;if(!o&&(n&Pe)===0){(n&pr)!==0?t.push(r):i?r.f^=oe:Mt(r)&&Qt(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function _(e){for(var t;;){if(jo(),zt.length===0)return It=!1,Tt=null,t;It=!0,Rn()}}function E(e){var t=e.f,r=(t&ce)!==0;if(U!==null&&!$e){if((R==null?void 0:R.reaction)!==U||!(R!=null&&R.sources.includes(e))){var n=U.deps;e.rv<Gt&&(e.rv=Gt,Q===null&&n!==null&&n[se]===e?se++:Q===null?Q=[e]:(!Je||!Q.includes(e))&&Q.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ie)===0&&(i.f^=ie)}return r&&(i=e,Mt(i)&&wn(i)),vt&&Ct.has(e)?Ct.get(e):e.v}function ht(e){var t=$e;try{return $e=!0,e()}finally{$e=t}}const Yo=-7169;function ye(e,t){e.f=e.f&Yo|t}function Bn(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Ce in e)Tr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Ce in r&&Tr(r)}}}function Tr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Tr(e[n],t)}catch{}const r=br(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=on(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function Zo(e,t){if(t){const r=document.body;e.autofocus=!0,Wt(()=>{document.activeElement===r&&e.focus()})}}function Jo(e){var t=U,r=O;Ne(null),Ze(null);try{return e()}finally{Ne(t),Ze(r)}}const Fn=new Set,zr=new Set;function Yn(e,t,r,n={}){function i(o){if(n.capture||Lt.call(t,o),!o.cancelBubble)return Jo(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function W(e,t,r,n,i){var o={capture:n,passive:i},s=Yn(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yt(()=>{t.removeEventListener(e,s,o)})}function Mr(e){for(var t=0;t<e.length;t++)Fn.add(e[t]);for(var r of zr)r(e)}function Lt(e){var h;var t=this,r=t.ownerDocument,n=e.type,i=((h=e.composedPath)==null?void 0:h.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){wt(e,"currentTarget",{configurable:!0,get(){return o||r}});var d=U,f=O;Ne(null),Ze(null);try{for(var c,v=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+n];if(g!=null&&(!o.disabled||e.target===o))if(Dt(g)){var[y,...m]=g;y.apply(o,[e,...m])}else g.call(o,e)}catch(p){c?v.push(p):c=p}if(e.cancelBubble||b===t||b===null)break;o=b}if(c){for(let p of v)queueMicrotask(()=>{throw p});throw c}}finally{e.__root=t,delete e.currentTarget,Ne(d),Ze(f)}}}function Zn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ve(e,t){var r=O;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ve(e,t){var r=(t&rn)!==0,n=(t&oo)!==0,i,o=!e.startsWith("<!>");return()=>{if(M)return Ve(A,null),A;i===void 0&&(i=Zn(o?e:"<!>"+e),r||(i=de(i)));var s=n||Cn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=de(s),l=s.lastChild;Ve(a,l)}else Ve(s,s);return s}}function Wo(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&rn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(M)return Ve(A,null),A;if(!s){var a=Zn(o),l=de(a);if(i)for(s=document.createDocumentFragment();de(l);)s.appendChild(de(l));else s=de(l)}var u=s.cloneNode(!0);if(i){var d=de(u),f=u.lastChild;Ve(d,f)}else Ve(u,u);return u}}function H(e,t){return Wo(e,t,"svg")}function Ut(){if(M)return Ve(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=dt();return e.append(t,r),Ve(t,r),e}function I(e,t){if(M){O.nodes_end=A,ct();return}e!==null&&e.before(t)}function Ko(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Go=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xo(e){return Go.includes(e)}const Qo={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 ea(e){return e=e.toLowerCase(),Qo[e]??e}const ta=["touchstart","touchmove"];function ra(e){return ta.includes(e)}function Lr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Jn(e,t){return Wn(e,t)}function na(e,t){Cr(),t.intro=t.intro??!1;const r=t.target,n=M,i=A;try{for(var o=de(r);o&&(o.nodeType!==Et||o.data!==dr);)o=je(o);if(!o)throw ot;_e(!0),ke(o),ct();const s=Wn(e,{...t,anchor:o});if(A===null||A.nodeType!==Et||A.data!==vr)throw Ft(),ot;return _e(!1),s}catch(s){if(s===ot)return t.recover===!1&&wo(),Cr(),Nn(r),_e(!1),Jn(e,t);throw s}finally{_e(n),ke(i)}}const bt=new Map;function Wn(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Cr();var a=new Set,l=f=>{for(var c=0;c<f.length;c++){var v=f[c];if(!a.has(v)){a.add(v);var b=ra(v);t.addEventListener(v,Lt,{passive:b});var g=bt.get(v);g===void 0?(document.addEventListener(v,Lt,{passive:b}),bt.set(v,1)):bt.set(v,g+1)}}};l(hr(Fn)),zr.add(l);var u=void 0,d=Lo(()=>{var f=r??t.appendChild(dt());return He(()=>{if(o){Y({});var c=D;c.c=o}i&&(n.$$events=i),M&&Ve(f,null),u=e(f,n)||{},M&&(O.nodes_end=A),o&&Z()}),()=>{var b;for(var c of a){t.removeEventListener(c,Lt);var v=bt.get(c);--v===0?(document.removeEventListener(c,Lt),bt.delete(c)):bt.set(c,v)}zr.delete(l),f!==r&&((b=f.parentNode)==null||b.removeChild(f))}});return Ur.set(u,d),u}let Ur=new WeakMap;function ia(e,t){const r=Ur.get(e);return r?(Ur.delete(e),r(t)):Promise.resolve()}function Ar(e,t,...r){var n=e,i=ue,o;Qe(()=>{i!==(i=t())&&(o&&(ae(o),o=null),o=He(()=>i(n,...r)))},xt),M&&(n=A)}function tr(e){D===null&&So(),at&&D.l!==null?oa(D).m.push(e):Sr(()=>{const t=ht(e);if(typeof t=="function")return t})}function oa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function he(e,t,[r,n]=[0,0]){M&&r===0&&ct();var i=e,o=null,s=null,a=re,l=r>0?xt:0,u=!1;const d=(c,v=!0)=>{u=!0,f(v,c)},f=(c,v)=>{if(a===(a=c))return;let b=!1;if(M&&n!==-1){if(r===0){const y=xn(i);y===dr?n=0:y===fr?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=a?1/0:-1))}const g=n>r;!!a===g&&(i=Er(),ke(i),_e(!1),b=!0,n=-1)}a?(o?Jt(o):v&&(o=He(()=>v(i))),s&&$t(s,()=>{s=null})):(s?Jt(s):v&&(s=He(()=>v(i,[r+1,n]))),o&&$t(o,()=>{o=null})),b&&_e(!0)};Qe(()=>{u=!1,t(d),u||f(null,null)},l),M&&(i=A)}function aa(e,t){return t}function sa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Nr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Nn(l),l.append(r),n.clear(),We(e,t[0].prev,t[o-1].next)}Un(i,()=>{for(var u=0;u<o;u++){var d=t[u];a||(n.delete(d.k),We(e,d.prev,d.next)),ae(d.e,!a)}})}function la(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null};{var l=e;s=M?ke(de(l)):l.appendChild(dt())}M&&ct();var u=null,d=!1,f=Bt(()=>{var c=r();return Dt(c)?c:c==null?[]:hr(c)});Qe(()=>{var c=E(f),v=c.length;if(d&&v===0)return;d=v===0;let b=!1;if(M){var g=xn(s)===fr;g!==(v===0)&&(s=Er(),ke(s),_e(!1),b=!0)}if(M){for(var y=null,m,h=0;h<v;h++){if(A.nodeType===Et&&A.data===vr){s=A,b=!0,_e(!1);break}var p=c[h],w=n(p,h);m=Kn(A,a,y,null,p,w,h,i,t,r),a.items.set(w,m),y=m}v>0&&ke(Er())}M||ua(c,a,s,i,t,n,r),o!==null&&(v===0?u?Jt(u):u=He(()=>o(s)):u!==null&&$t(u,()=>{u=null})),b&&_e(!0),E(f)}),M&&(s=A)}function ua(e,t,r,n,i,o,s){var a=e.length,l=t.items,u=t.first,d=u,f,c=null,v=[],b=[],g,y,m,h;for(h=0;h<a;h+=1){if(g=e[h],y=o(g,h),m=l.get(y),m===void 0){var p=d?d.e.nodes_start:r;c=Kn(p,t,c,c===null?t.first:c.next,g,y,h,n,i,s),l.set(y,c),v=[],b=[],d=c.next;continue}if(ca(m,g,h),(m.e.f&Pe)!==0&&Jt(m.e),m!==d){if(f!==void 0&&f.has(m)){if(v.length<b.length){var w=b[0],x;c=w.prev;var L=v[0],$=v[v.length-1];for(x=0;x<v.length;x+=1)Gn(v[x],w,r);for(x=0;x<b.length;x+=1)f.delete(b[x]);We(t,L.prev,$.next),We(t,c,L),We(t,$,w),d=w,c=$,h-=1,v=[],b=[]}else f.delete(m),Gn(m,d,r),We(t,m.prev,m.next),We(t,m,c===null?t.first:c.next),We(t,c,m),c=m;continue}for(v=[],b=[];d!==null&&d.k!==y;)(d.e.f&Pe)===0&&(f??(f=new Set)).add(d),b.push(d),d=d.next;if(d===null)continue;m=d}v.push(m),c=m,d=m.next}if(d!==null||f!==void 0){for(var T=f===void 0?[]:hr(f);d!==null;)(d.e.f&Pe)===0&&T.push(d),d=d.next;var P=T.length;if(P>0){var F=a===0?r:null;sa(t,T,F,l)}}O.first=t.first&&t.first.e,O.last=c&&c.e}function ca(e,t,r,n){_n(e.v,t),e.i=r}function Kn(e,t,r,n,i,o,s,a,l,u){var d=(l&J)!==0,f=(l&eo)===0,c=d?f?St(i,!1,!1):ut(i):i,v=(l&jt)===0?s:ut(s),b={i:v,v:c,k:o,a:null,e:null,prev:r,next:n};try{return b.e=He(()=>a(e,c,v,u),M),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?t.first=b:(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function Gn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=je(o);i.before(o),o=s}}function We(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function rr(e,t,r,n,i){var a;M&&ct();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function da(e,t,r){M&&ct();var n=e,i,o;Qe(()=>{i!==(i=t())&&(o&&($t(o),o=null),i&&(o=He(()=>r(n,i))))},xt),M&&(n=A)}function pt(e,t){Wt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function fa(e,t){var r=void 0,n;Qe(()=>{r!==(r=t())&&(n&&(ae(n),n=null),r&&(n=He(()=>{$r(()=>r(e))})))})}function Xn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Xn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function va(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Xn(e))&&(n&&(n+=" "),n+=t);return n}function ha(e){return typeof e=="object"?va(e):e??""}const Qn=[...`
2
+ \r\f \v\uFEFF`];function ba(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var a=s+o;(s===0||Qn.includes(n[s-1]))&&(a===n.length||Qn.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ei(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Or(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function pa(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Or)),i&&l.push(...Object.keys(i).map(Or));var u=0,d=-1;const g=e.length;for(var f=0;f<g;f++){var c=e[f];if(a?c==="/"&&e[f-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[f+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&d===-1)d=f;else if(c===";"||f===g-1){if(d!==-1){var v=Or(e.substring(u,d).trim());if(!l.includes(v)){c!==";"&&f++;var b=e.substring(u,f).trim();r+=" "+b+";"}}u=f+1,d=-1}}}}return n&&(r+=ei(n)),i&&(r+=ei(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function be(e,t,r,n,i,o){var s=e.__className;if(M||s!==r||s===void 0){var a=ba(r,n,o);(!M||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function qr(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function ga(e,t,r,n){var i=e.__style;if(M||i!==t){var o=pa(t,n);(!M||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(qr(e,r==null?void 0:r[0],n[0]),qr(e,r==null?void 0:r[1],n[1],"important")):qr(e,r,n));return n}function Pr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Dt(t))return Io();for(var n of e.options)n.selected=t.includes(ti(n));return}for(n of e.options){var i=ti(n);if($o(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ma(e){var t=new MutationObserver(()=>{Pr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Yt(()=>{t.disconnect()})}function ti(e){return"__value"in e?e.__value:e.value}const gt=Symbol("class"),At=Symbol("style"),ri=Symbol("is custom element"),ni=Symbol("is html");function wa(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ee(e,t,r,n){var i=ii(e);M&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ho]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ai(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function _a(e,t,r,n,i=!1){var o=ii(e),s=o[ri],a=!o[ni];let l=M&&s;l&&_e(!1);var u=t||{},d=e.tagName==="OPTION";for(var f in t)f in r||(r[f]=null);r.class?r.class=ha(r.class):(n||r[gt])&&(r.class=null),r[At]&&(r.style??(r.style=null));var c=ai(e);for(const p in r){let w=r[p];if(d&&p==="value"&&w==null){e.value=e.__value="",u[p]=w;continue}if(p==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";be(e,v,w,n,t==null?void 0:t[gt],r[gt]),u[p]=w,u[gt]=r[gt];continue}if(p==="style"){ga(e,w,t==null?void 0:t[At],r[At]),u[p]=w,u[At]=r[At];continue}var b=u[p];if(!(w===b&&!(w===void 0&&e.hasAttribute(p)))){u[p]=w;var g=p[0]+p[1];if(g!=="$$")if(g==="on"){const x={},L="$$"+p;let $=p.slice(2);var y=Xo($);if(Ko($)&&($=$.slice(0,-7),x.capture=!0),!y&&b){if(w!=null)continue;e.removeEventListener($,u[L],x),u[L]=null}if(w!=null)if(y)e[`__${$}`]=w,Mr([$]);else{let T=function(P){u[p].call(this,P)};u[L]=Yn($,e,T,x)}else y&&(e[`__${$}`]=void 0)}else if(p==="style")ee(e,p,w);else if(p==="autofocus")Zo(e,!!w);else if(!s&&(p==="__value"||p==="value"&&w!=null))e.value=e.__value=w;else if(p==="selected"&&d)wa(e,w);else{var m=p;a||(m=ea(m));var h=m==="defaultValue"||m==="defaultChecked";if(w==null&&!s&&!h)if(o[p]=null,m==="value"||m==="checked"){let x=e;const L=t===void 0;if(m==="value"){let $=x.defaultValue;x.removeAttribute(m),x.defaultValue=$,x.value=x.__value=L?$:null}else{let $=x.defaultChecked;x.removeAttribute(m),x.defaultChecked=$,x.checked=L?$:!1}}else e.removeAttribute(p);else h||c.includes(m)&&(s||typeof w!="string")?e[m]=w:typeof w!="function"&&ee(e,m,w)}}}return l&&_e(!0),u}function nr(e,t,r=[],n,i=!1,o=lt){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",d=!1;if(Qe(()=>{var c=t(...s.map(E)),v=_a(e,a,c,n,i);d&&u&&"value"in c&&Pr(e,c.value);for(let g of Object.getOwnPropertySymbols(l))c[g]||ae(l[g]);for(let g of Object.getOwnPropertySymbols(c)){var b=c[g];g.description===so&&(!a||b!==a[g])&&(l[g]&&ae(l[g]),l[g]=He(()=>fa(e,()=>b))),v[g]=b}a=v}),u){var f=e;$r(()=>{Pr(f,a.value,!0),ma(f)})}d=!0}function ii(e){return e.__attributes??(e.__attributes={[ri]:e.nodeName.includes("-"),[ni]:e.namespaceURI===ao})}var oi=new Map;function ai(e){var t=oi.get(e.nodeName);if(t)return t;oi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=on(n);for(var o in r)r[o].set&&t.push(o);n=br(n)}return t}function si(e,t){return e===t||(e==null?void 0:e[Ce])===t}function li(e={},t,r,n){return $r(()=>{var i,o;return Zt(()=>{i=o,o=[],ht(()=>{e!==r(...o)&&(t(e,...o),i&&si(r(...i),e)&&t(null,...i))})}),()=>{Wt(()=>{o&&si(r(...o),e)&&t(null,...o)})}}),e}function ui(e=!1){const t=D,r=t.l.u;if(!r)return;let n=()=>Bn(t.s);if(e){let i=0,o={};const s=lt(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});n=()=>E(s)}r.b.length&&zo(()=>{ci(t,n),kt(r.b)}),Sr(()=>{const i=ht(()=>r.m.map(fo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Sr(()=>{ci(t,n),kt(r.a)})}function ci(e,t){if(e.l.s)for(const r of e.l.s)E(r);t()}function jr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ue;const n=ht(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const mt=[];function ka(e,t){return{subscribe:ir(e,t).subscribe}}function ir(e,t=ue){let r=null;const n=new Set;function i(a){if(vn(e,a)&&(e=a,r)){const l=!mt.length;for(const u of n)u[1](),mt.push(u,e);if(l){for(let u=0;u<mt.length;u+=2)mt[u][0](mt[u+1]);mt.length=0}}}function o(a){i(a(e))}function s(a,l=ue){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||ue),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function ya(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ka(r,(s,a)=>{let l=!1;const u=[];let d=0,f=ue;const c=()=>{if(d)return;f();const b=t(n?u[0]:u,s,a);o?s(b):f=typeof b=="function"?b:ue},v=i.map((b,g)=>jr(b,y=>{u[g]=y,d&=~(1<<g),l&&c()},()=>{d|=1<<g}));return l=!0,c(),function(){kt(v),f(),l=!1}})}function xa(e){let t;return jr(e,r=>t=r)(),t}let or=!1,Dr=Symbol();function pe(e,t,r){const n=r[t]??(r[t]={store:null,source:St(void 0),unsubscribe:ue});if(n.store!==e&&!(Dr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ue;else{var i=!0;n.unsubscribe=jr(e,o=>{i?n.source.v=o:q(n.source,o)}),i=!1}return e&&Dr in r?xa(e):E(n.source)}function Ot(){const e={};function t(){Yt(()=>{for(var r in e)e[r].unsubscribe();wt(e,Dr,{enumerable:!1,value:!0})})}return[e,t]}function Ea(e){var t=or;try{return or=!1,[e(),or]}finally{or=t}}const Ca={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 Hr(e,t,r){return new Proxy({props:e,exclude:t},Ca)}const Sa={get(e,t){if(!e.exclude.includes(t))return E(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=k({get[t](){return e.props[t]}},t,tn)),e.special[t](r),kn(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),kn(e.version)),!0},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 ar(e,t){return new Proxy({props:e,exclude:t,special:{},version:ut(0)},Sa)}const $a={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(_t(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];_t(i)&&(i=i());const o=Ae(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(_t(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Ae(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Ce||t===yr)return!1;for(let r of e.props)if(_t(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(_t(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function di(...e){return new Proxy({props:e},$a)}function Na(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function k(e,t,r,n){var m;var i=!at||(r&ro)!==0,o=(r&no)!==0,s=(r&io)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?ht(n):n),a),d;if(o){var f=Ce in e||yr in e;d=((m=Ae(e,t))==null?void 0:m.set)??(f&&t in e?h=>e[t]=h:void 0)}var c,v=!1;o?[c,v]=Ea(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),d&&(i&&_o(),d(c)));var b;if(i?b=()=>{var h=e[t];return h===void 0?u():(l=!0,h)}:b=()=>{var h=e[t];return h!==void 0&&(a=void 0),h===void 0?a:h},i&&(r&tn)===0)return b;if(d){var g=e.$$legacy;return function(h,p){return arguments.length>0?((!i||!p||g||v)&&d(p?b():h),h):b()}}var y=((r&to)!==0?lt:Bt)(b);return o&&E(y),function(h,p){if(arguments.length>0){const w=p?E(y):i&&o?st(h):h;return q(y,w),a!==void 0&&(a=w),h}return Na(y)?y.v:E(y)}}function Ia(e){return new Ta(e)}class Ta{constructor(t){Qr(this,Re);Qr(this,ge);var o;var r=new Map,n=(s,a)=>{var l=St(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return E(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===yr?!0:(E(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return q(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});en(this,ge,(t.hydrate?na:Jn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&_(),en(this,Re,i.$$events);for(const s of Object.keys(ne(this,ge)))s==="$set"||s==="$destroy"||s==="$on"||wt(this,s,{get(){return ne(this,ge)[s]},set(a){ne(this,ge)[s]=a},enumerable:!0});ne(this,ge).$set=s=>{Object.assign(i,s)},ne(this,ge).$destroy=()=>{ia(ne(this,ge))}}$set(t){ne(this,ge).$set(t)}$on(t,r){ne(this,Re)[t]=ne(this,Re)[t]||[];const n=(...i)=>r.call(this,...i);return ne(this,Re)[t].push(n),()=>{ne(this,Re)[t]=ne(this,Re)[t].filter(i=>i!==n)}}$destroy(){ne(this,ge).$destroy()}}Re=new WeakMap,ge=new WeakMap;let fi;typeof HTMLElement=="function"&&(fi=class extends HTMLElement{constructor(t,r,n){super();le(this,"$$ctor");le(this,"$$s");le(this,"$$c");le(this,"$$cn",!1);le(this,"$$d",{});le(this,"$$r",!1);le(this,"$$p_d",{});le(this,"$$l",{});le(this,"$$l_u",new Map);le(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),I(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=za(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=sr(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Ia({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Mo(()=>{Zt(()=>{var i;this.$$r=!0;for(const o of Ht(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=sr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=sr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ht(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function sr(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 za(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function B(e,t,r,n,i,o){let s=class extends fi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ht(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ht(t).forEach(a=>{wt(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var f;l=sr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var d=(f=Ae(u,a))==null?void 0:f.get;d?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{wt(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Ma=ve("<a><!></a>"),La=ve("<button><!></button>");const Ua={hash:"svelte-zftwkm",code:`:root, :host {
3
3
  /* global button */--ai-button-radius: var(--ai-radius-round);--ai-button-padding-x: 2rem;--ai-button-padding-y: 0.75rem;--ai-button-height: 2.5rem;--ai-button-box-shadow: inset 0 0 0 1px;
4
4
 
5
5
  /* primary button */--ai-button-background-primary-rest: var(--ai-color-black);--ai-button-background-primary-hover: var(
@@ -18,23 +18,23 @@
18
18
  --ai-button-border-outline-inverted-rest
19
19
  );}.ai-button.svelte-zftwkm {background-color:var(--ai-button-background-primary-rest);border-radius:var(--ai-button-radius);color:var(--ai-button-text-primary-rest);font-weight:var(--ai-font-weight-medium);padding-inline:var(--ai-button-padding-x);padding-block:var(--ai-button-padding-y);margin:0;}.ai-button.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-zftwkm {--ai-button-padding-x: var(--ai-size-24);--ai-button-padding-y: var(--ai-size-8);font-size:var(--ai-size-12);}.ai-button--outline.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-rest);color:var(--ai-button-text-outline-rest);}.ai-button--outline.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-zftwkm {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);box-shadow:none;border:var(--ai-button-border-inverted-rest);}.ai-button--inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}.ai-button--unstyled.svelte-zftwkm {background:none;color:inherit;border:none;box-shadow:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:var(--ai-font-underline-offset);}.ai-button--unstyled.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}.ai-menu-buttons.svelte-zftwkm {display:flex;gap:var(--ai-size-16);}
20
20
 
21
- /* disabled button styles */:is(.disabled.svelte-zftwkm, [disabled].svelte-zftwkm, [aria-disabled=true].svelte-zftwkm) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:none;color:inherit;opacity:0.75;}`};function ai(e,t){Z(t,!0),gt(e,Ns);let n=C(t,"variant",7,"primary"),r=C(t,"theme",7,"default"),i=C(t,"href",7,null),o=C(t,"disabled",7,!1),a=C(t,"onclick",7),s=C(t,"children",7,null),l=C(t,"size",7,"medium"),u=C(t,"type",7,"button"),f=C(t,"class",7,""),d=Vn(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","onclick","children","size","type","class"]);const c=X(()=>()=>["usa-button","ai-button",l()==="small"?"ai-button--small":"",r()==="inverted"&&n()==="primary"?"ai-button--inverted":"",r()==="inverted"&&n()==="secondary"?"ai-button--outline-inverted":"",n()==="primary"?"usa-button--primary":"",n()==="secondary"?"usa-button--outline ai-button--outline":"",n()==="unstyled"?"ai-button--unstyled":""].filter(Boolean).join(" ")),v=X(()=>()=>`${k(c)()} ${f()}`.trim());var h=Ot(),g=Ue(h);{var _=b=>{var p=Cs();nn(p,(y,P)=>({class:y,href:i(),onclick:a(),...d,[wt]:P}),[()=>k(v)(),()=>({disabled:o()})],"svelte-zftwkm");var w=$(p);Ln(w,()=>s()??ue),x(p),S(b,p)},m=b=>{var p=Ss();nn(p,y=>({class:y,type:u(),disabled:o(),onclick:a(),...d}),[()=>k(v)()],"svelte-zftwkm");var w=$(p);Ln(w,()=>s()??ue),x(p),S(b,p)};he(g,b=>{i()?b(_):b(m,!1)})}return S(e,h),Y({get variant(){return n()},set variant(b="primary"){n(b),E()},get theme(){return r()},set theme(b="default"){r(b),E()},get href(){return i()},set href(b=null){i(b),E()},get disabled(){return o()},set disabled(b=!1){o(b),E()},get onclick(){return a()},set onclick(b){a(b),E()},get children(){return s()},set children(b=null){s(b),E()},get size(){return l()},set size(b="medium"){l(b),E()},get type(){return u()},set type(b="button"){u(b),E()},get class(){return f()},set class(b=""){f(b),E()}})}U(ai,{variant:{},theme:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function li(e,t){Z(t,!0);let n=C(t,"variant",7,"primary"),r=C(t,"theme",7,"default"),i=C(t,"href",7,null),o=C(t,"disabled",7,!1),a=C(t,"size",7,"medium"),s=C(t,"type",7,"button"),l=C(t,"onclick",7),u=C(t,"children",7,null),f=C(t,"class",7,""),d=Vn(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return ai(e,oi({get variant(){return n()},get theme(){return r()},get href(){return i()},get disabled(){return o()},get size(){return a()},get type(){return s()},get onclick(){return l()},get children(){return u()},get class(){return f()}},()=>d,{$$slots:{default:(c,v)=>{var h=Ot(),g=Ue(h);tn(g,t,"default",{}),S(c,h)}}})),Y({get variant(){return n()},set variant(c="primary"){n(c),E()},get theme(){return r()},set theme(c="default"){r(c),E()},get href(){return i()},set href(c=null){i(c),E()},get disabled(){return o()},set disabled(c=!1){o(c),E()},get size(){return a()},set size(c="medium"){a(c),E()},get type(){return s()},set type(c="button"){s(c),E()},get onclick(){return l()},set onclick(c){l(c),E()},get children(){return u()},set children(c=null){u(c),E()},get class(){return f()},set class(c=""){f(c),E()}})}customElements.define("graymatter-button",U(li,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},children:{},class:{}},["default"],[],!0));const Dt=typeof window<"u";function Ts(e,t){if(Dt&&typeof sessionStorage<"u"){const n=sessionStorage.getItem(e);if(n!==null)try{return JSON.parse(n)}catch(r){return console.warn(`Failed to parse stored value for ${e}:`,r),t}}return t}function ui(e,t){const n=Ts(e,t),r=rn(n);return Dt&&r.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),r}ui("subNav-selectedId",null);const nt=ui("subNav-selectedTitle","");function ci(e,t){if(Dt&&typeof localStorage<"u"){const n=localStorage.getItem(e);if(n!==null)try{return JSON.parse(n)}catch(r){return console.warn(`Failed to parse stored value for ${e}:`,r),t}}return t}function di(e,t){const n=ci(e,t),r=rn(n);return Dt&&r.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),r}const ke=di("globalSideNav-isExpanded",!1),rt=di("globalSideNav-selectedItem",null),Rn=ps(rt,e=>e==="discover"),Se={toggleExpanded:()=>{ke.update(e=>!e)},setExpanded:e=>{ke.set(e)},setSelectedItem:e=>{rt.set(e),e==="discover"?ke.set(!1):Dt&&window.innerWidth>640&&ke.set(!0)},handleLayoutTransition:e=>{if(e)ke.set(!1);else{const t=ci("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),ke.set(!0)):ke.set(!1)}}},ln=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:ke,isMenuButtonDisabled:Rn,navigationStore:Se,selectedItem:rt,selectedSubNavItemTitle:nt},Symbol.toStringTag,{value:"Module"})),Is=rn(!1);var zs=ve('<div part="global-header"><div class="header-content svelte-1p8bjnn" part="header-content"><span class="header-text svelte-1p8bjnn"> </span></div></div>');const Ms={hash:"svelte-1p8bjnn",code:".global-header.svelte-1p8bjnn {opacity:0;transition:opacity 0.2s;}.global-header.visible.svelte-1p8bjnn {opacity:1;transition:opacity 0.2s;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1p8bjnn {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function fi(e,t){Z(t,!0),gt(e,Ms);const[n,r]=jt(),i=()=>pe(rt,"$selectedItem",n),o=()=>pe(ke,"$isExpanded",n),a=()=>pe(Is,"$subNavReady",n),s=()=>pe(nt,"$selectedSubNavItemTitle",n),l=C(t,"customHeaderText",7,"");let u=!1;const f=X(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&a()),d=X(()=>()=>l()||s());en(()=>{const b=w=>{if(typeof window<"u"&&window.innerWidth<=640)return;let y=null;if(typeof window<"u"&&(y=sessionStorage.getItem("subNav-topLevelTitle"),y))try{y=JSON.parse(y)}catch{}if(typeof y=="string"&&y.trim()!=="")nt.set(y),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y));else{const P=w;P.detail&&P.detail.title&&(nt.set(P.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(P.detail.title)))}},p=w=>{const y=w,{isMobile:P}=y.detail;P||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",b),window.addEventListener("layoutTransition",p),()=>{window.removeEventListener("sectionVisible",b),window.removeEventListener("layoutTransition",p)}});var c=zs();let v;var h=$(c),g=$(h),_=$(g,!0);x(g),x(h),x(c),ht((b,p)=>{v=be(c,1,"global-header svelte-1p8bjnn",null,v,b),zn(_,p)},[()=>({visible:k(f)()}),()=>k(d)()]),S(e,c);var m=Y({get customHeaderText(){return l()},set customHeaderText(b=""){l(b),E()}});return r(),m}U(fi,{customHeaderText:{}},[],[],!0);function vi(e,t){Z(t,!0);let n=C(t,"customHeaderText",7,"");return fi(e,{get customHeaderText(){return n()}}),Y({get customHeaderText(){return n()},set customHeaderText(r=""){n(r),E()}})}customElements.define("graymatter-desktop-header",U(vi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),mo();var Ls=B('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),As=B('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Os=B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Bn(e,t){Z(t,!1);let n=C(t,"isSelected",12,!1);var r=Os(),i=$(r);{var o=s=>{var l=Ls();S(s,l)},a=s=>{var l=As();S(s,l)};he(i,s=>{n()?s(o):s(a,!1)})}return x(r),S(e,r),Y({get isSelected(){return n()},set isSelected(s){n(s),E()}})}U(Bn,{isSelected:{}},[],[],!0);var Ps=B('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),js=B('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Ds=B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Fn(e,t){Z(t,!1);let n=C(t,"isSelected",12,!1);var r=Ds(),i=$(r);{var o=s=>{var l=Ps();S(s,l)},a=s=>{var l=js();S(s,l)};he(i,s=>{n()?s(o):s(a,!1)})}return x(r),S(e,r),Y({get isSelected(){return n()},set isSelected(s){n(s),E()}})}U(Fn,{isSelected:{}},[],[],!0);var Hs=B('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Vs=B('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Rs=B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function qn(e,t){Z(t,!1);let n=C(t,"isSelected",12,!1);var r=Rs(),i=$(r);{var o=s=>{var l=Hs();$e(3),S(s,l)},a=s=>{var l=Vs();$e(3),S(s,l)};he(i,s=>{n()?s(o):s(a,!1)})}return x(r),S(e,r),Y({get isSelected(){return n()},set isSelected(s){n(s),E()}})}U(qn,{isSelected:{}},[],[],!0);var Bs=B('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),Fs=B('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),qs=B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Un(e,t){Z(t,!1);let n=C(t,"isSelected",12,!1);var r=qs(),i=$(r);{var o=s=>{var l=Bs();$e(2),S(s,l)},a=s=>{var l=Fs();$e(2),S(s,l)};he(i,s=>{n()?s(o):s(a,!1)})}return x(r),S(e,r),Y({get isSelected(){return n()},set isSelected(s){n(s),E()}})}U(Un,{isSelected:{}},[],[],!0);var Us=B('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),Zs=B('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),Ys=B('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),Js=B('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),Ws=B('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),Ks=B('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),Gs=B("<svg><!></svg>");function Zn(e,t){const n=sn(t,["children","$$slots","$$events","$$legacy","$$host"]),r=sn(n,["isDisabled","isHovered","isOpen"]);Z(t,!1);let i=C(t,"isDisabled",12,!1),o=C(t,"isHovered",12,!1),a=C(t,"isOpen",12,!1);var s=Gs();nn(s,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...r}));var l=$(s);{var u=d=>{var c=Us(),v=W(Ue(c));ht(()=>We(v,"d",`M${a()?"8.18018":"9.18018"} ${a()?"5.45068":"3.27222"}V${a()?"18.5208":"20.9203"}`)),S(d,c)},f=(d,c)=>{{var v=g=>{var _=Ot(),m=Ue(_);{var b=w=>{var y=Zs();$e(),S(w,y)},p=w=>{var y=Ys();$e(),S(w,y)};he(m,w=>{a()?w(b):w(p,!1)})}S(g,_)},h=g=>{var _=Ks(),m=W(Ue(_));{var b=w=>{var y=Js();S(w,y)},p=w=>{var y=Ws();S(w,y)};he(m,w=>{a()?w(b):w(p,!1)})}S(g,_)};he(d,g=>{o()?g(v):g(h,!1)},c)}};he(l,d=>{i()?d(u):d(f,!1)})}return x(s),S(e,s),Y({get isDisabled(){return i()},set isDisabled(d){i(d),E()},get isHovered(){return o()},set isHovered(d){o(d),E()},get isOpen(){return a()},set isOpen(d){a(d),E()}})}U(Zn,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);const Xs={};function hi(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function bi(e){const t=Xs,n="#",r=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL;return hi("chat",r),hi("console",i),{chat:r||n,console:i||n,api:"/api",discover:"/discover"}}function Qs(e,t,n,r){var i;t()||(Se.toggleExpanded(),(i=n())==null||i({expanded:r()}))}var ea=(e,t)=>t("discover"),ta=(e,t)=>t(e,"discover"),na=(e,t)=>t("chat"),ra=(e,t)=>t(e,"chat"),ia=(e,t)=>t("console"),oa=(e,t)=>t(e,"console"),sa=(e,t)=>t("api"),aa=(e,t)=>t(e,"api"),la=(e,t)=>{var n;return(n=t())==null?void 0:n()},ua=(e,t)=>{var n;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),(n=t())==null||n())},ca=ve('<div class="drawer-content svelte-1wy1xh4" part="drawer-content"><div class="logo-placeholder svelte-1wy1xh4"></div> <nav aria-label="Sub navigation"><!></nav></div>'),da=ve('<div part="side-nav-container"><div class="nav-content svelte-1wy1xh4"><div class="nav-main svelte-1wy1xh4" part="nav-main"><div class="menu-section svelte-1wy1xh4"><button aria-label="Open navigation menu"><span class="sr-only svelte-1wy1xh4">Open navigation menu</span> <div class="icon-container svelte-1wy1xh4"><div class="icon-wrapper svelte-1wy1xh4"><!></div></div></button></div> <div class="nav-items svelte-1wy1xh4" part="nav-items"><a role="button" tabindex="0"><div class="icon-container svelte-1wy1xh4"><div class="icon-wrapper svelte-1wy1xh4"><!></div></div> <span class="nav-text svelte-1wy1xh4">Discover</span></a> <a role="button" tabindex="0"><div class="icon-container svelte-1wy1xh4"><div class="icon-wrapper svelte-1wy1xh4"><!></div></div> <span class="nav-text svelte-1wy1xh4">Chat</span></a> <a role="button" tabindex="0"><div class="icon-container svelte-1wy1xh4"><div class="icon-wrapper svelte-1wy1xh4"><!></div></div> <span class="nav-text svelte-1wy1xh4">Console</span></a> <a role="button" tabindex="0"><div class="icon-container svelte-1wy1xh4"><div class="icon-wrapper svelte-1wy1xh4"><!></div></div> <span class="nav-text svelte-1wy1xh4">API</span></a></div></div> <div class="nav-footer svelte-1wy1xh4" part="nav-footer"><button class="user-profile-button svelte-1wy1xh4" tabindex="0"><div class="user-profile-container svelte-1wy1xh4"><div class="user-profile-icon svelte-1wy1xh4" part="user-profile-icon"><span class="user-initials svelte-1wy1xh4">ZW</span></div></div></button></div></div> <div part="expanded-content"><!></div></div>');const fa={hash:"svelte-1wy1xh4",code:`.expanded-content.drawer-anim.svelte-1wy1xh4 {max-width:0;overflow:hidden;pointer-events:none;transition:max-width 0.2s cubic-bezier(.4, 0, .2, 1);}.expanded-content.drawer-anim.open.svelte-1wy1xh4 {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-1wy1xh4 {width:12.5rem;height:100%;}.logo-placeholder.svelte-1wy1xh4 {height:var(--ai-size-72);}.sr-only.svelte-1wy1xh4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;white-space:nowrap;}.user-profile-container.svelte-1wy1xh4,
22
- .user-profile-icon.svelte-1wy1xh4 {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-1wy1xh4 {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-1wy1xh4:disabled,
23
- .menu-button.disabled.svelte-1wy1xh4 {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-1wy1xh4 {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-1wy1xh4 {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.side-nav-container.svelte-1wy1xh4 {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-1wy1xh4 {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-1wy1xh4 {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-1wy1xh4 .expanded-content:where(.svelte-1wy1xh4) {width:12.5rem;opacity:1;overflow-y:auto;}.side-nav-container.svelte-1wy1xh4:not(.expanded) .expanded-content:where(.svelte-1wy1xh4) {width:0;opacity:0;}.nav-content.svelte-1wy1xh4 {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-200);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-1wy1xh4 {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-1wy1xh4 {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.user-profile-button.svelte-1wy1xh4 {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-1wy1xh4:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-container.svelte-1wy1xh4 {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-1wy1xh4 {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-1wy1xh4 {font-size:var(--ai-size-16);font-style:normal;}.menu-section.svelte-1wy1xh4 {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-1wy1xh4 {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-1wy1xh4 {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1wy1xh4:focus,
24
- .nav-item.svelte-1wy1xh4:focus {outline:none;}.menu-button.svelte-1wy1xh4:focus .icon-container:where(.svelte-1wy1xh4),
25
- .nav-item.svelte-1wy1xh4:focus .icon-container:where(.svelte-1wy1xh4) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.nav-items.svelte-1wy1xh4 {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-1wy1xh4 {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-1wy1xh4 {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color 0.3s ease,
26
- border-radius 0.3s ease;}.icon-wrapper.svelte-1wy1xh4 {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform 0.3s ease;}.icon-wrapper.svelte-1wy1xh4 svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all 0.3s ease;}.icon-wrapper.svelte-1wy1xh4 svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke 0.3s ease,
21
+ /* disabled button styles */:is(.disabled.svelte-zftwkm, [disabled].svelte-zftwkm, [aria-disabled=true].svelte-zftwkm) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:none;color:inherit;opacity:0.75;}`};function vi(e,t){Y(t,!0),pt(e,Ua);let r=k(t,"variant",7,"primary"),n=k(t,"theme",7,"default"),i=k(t,"href",7,null),o=k(t,"disabled",7,!1),s=k(t,"onclick",7),a=k(t,"children",7,null),l=k(t,"size",7,"medium"),u=k(t,"type",7,"button"),d=k(t,"class",7,""),f=Hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","onclick","children","size","type","class"]);const c=G(()=>()=>["usa-button","ai-button",l()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":""].filter(Boolean).join(" ")),v=G(()=>()=>`${E(c)()} ${d()}`.trim());var b=Ut(),g=Ye(b);{var y=h=>{var p=Ma();nr(p,(x,L)=>({class:x,href:i(),onclick:s(),...f,[gt]:L}),[()=>E(v)(),()=>({disabled:o()})],"svelte-zftwkm");var w=S(p);Ar(w,()=>a()??ue),C(p),I(h,p)},m=h=>{var p=La();nr(p,x=>({class:x,type:u(),disabled:o(),onclick:s(),...f}),[()=>E(v)()],"svelte-zftwkm");var w=S(p);Ar(w,()=>a()??ue),C(p),I(h,p)};he(g,h=>{i()?h(y):h(m,!1)})}return I(e,b),Z({get variant(){return r()},set variant(h="primary"){r(h),_()},get theme(){return n()},set theme(h="default"){n(h),_()},get href(){return i()},set href(h=null){i(h),_()},get disabled(){return o()},set disabled(h=!1){o(h),_()},get onclick(){return s()},set onclick(h){s(h),_()},get children(){return a()},set children(h=null){a(h),_()},get size(){return l()},set size(h="medium"){l(h),_()},get type(){return u()},set type(h="button"){u(h),_()},get class(){return d()},set class(h=""){d(h),_()}})}B(vi,{variant:{},theme:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function hi(e,t){Y(t,!0);let r=k(t,"variant",7,"primary"),n=k(t,"theme",7,"default"),i=k(t,"href",7,null),o=k(t,"disabled",7,!1),s=k(t,"size",7,"medium"),a=k(t,"type",7,"button"),l=k(t,"onclick",7),u=k(t,"children",7,null),d=k(t,"class",7,""),f=Hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return vi(e,di({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return a()},get onclick(){return l()},get children(){return u()},get class(){return d()}},()=>f,{$$slots:{default:(c,v)=>{var b=Ut(),g=Ye(b);rr(g,t,"default",{}),I(c,b)}}})),Z({get variant(){return r()},set variant(c="primary"){r(c),_()},get theme(){return n()},set theme(c="default"){n(c),_()},get href(){return i()},set href(c=null){i(c),_()},get disabled(){return o()},set disabled(c=!1){o(c),_()},get size(){return s()},set size(c="medium"){s(c),_()},get type(){return a()},set type(c="button"){a(c),_()},get onclick(){return l()},set onclick(c){l(c),_()},get children(){return u()},set children(c=null){u(c),_()},get class(){return d()},set class(c=""){d(c),_()}})}customElements.define("graymatter-button",B(hi,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},children:{},class:{}},["default"],[],!0));const qt=typeof window<"u";function Aa(e,t){if(qt&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function bi(e,t){const r=Aa(e,t),n=ir(r);return qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}bi("subNav-selectedId",null);const tt=bi("subNav-selectedTitle","");function pi(e,t){if(qt&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function gi(e,t){const r=pi(e,t),n=ir(r);return qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const xe=gi("globalSideNav-isExpanded",!1),rt=gi("globalSideNav-selectedItem",null),Vr=ya(rt,e=>e==="discover"),Ie={toggleExpanded:()=>{xe.update(e=>!e)},setExpanded:e=>{xe.set(e)},setSelectedItem:e=>{rt.set(e),e==="discover"?xe.set(!1):qt&&window.innerWidth>640&&xe.set(!0)},handleLayoutTransition:e=>{if(e)xe.set(!1);else{const t=pi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),xe.set(!0)):xe.set(!1)}}},lr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:xe,isMenuButtonDisabled:Vr,navigationStore:Ie,selectedItem:rt,selectedSubNavItemTitle:tt},Symbol.toStringTag,{value:"Module"})),Oa=ir(!1);var qa=ve('<div part="global-header"><div class="header-content svelte-1p8bjnn" part="header-content"><span class="header-text svelte-1p8bjnn"> </span></div></div>');const Pa={hash:"svelte-1p8bjnn",code:".global-header.svelte-1p8bjnn {opacity:0;transition:opacity 0.2s;}.global-header.visible.svelte-1p8bjnn {opacity:1;transition:opacity 0.2s;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1p8bjnn {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function mi(e,t){Y(t,!0),pt(e,Pa);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r),o=()=>pe(xe,"$isExpanded",r),s=()=>pe(Oa,"$subNavReady",r),a=()=>pe(tt,"$selectedSubNavItemTitle",r),l=k(t,"customHeaderText",7,"");let u=!1;const d=G(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),f=G(()=>()=>l()||a());tr(()=>{const h=w=>{if(typeof window<"u"&&window.innerWidth<=640)return;let x=null;if(typeof window<"u"&&(x=sessionStorage.getItem("subNav-topLevelTitle"),x))try{x=JSON.parse(x)}catch{}if(typeof x=="string"&&x.trim()!=="")tt.set(x),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(x));else{const L=w;L.detail&&L.detail.title&&(tt.set(L.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))}},p=w=>{const x=w,{isMobile:L}=x.detail;L||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",h),window.addEventListener("layoutTransition",p),()=>{window.removeEventListener("sectionVisible",h),window.removeEventListener("layoutTransition",p)}});var c=qa();let v;var b=S(c),g=S(b),y=S(g,!0);C(g),C(b),C(c),ft((h,p)=>{v=be(c,1,"global-header svelte-1p8bjnn",null,v,h),Lr(y,p)},[()=>({visible:E(d)()}),()=>E(f)()]),I(e,c);var m=Z({get customHeaderText(){return l()},set customHeaderText(h=""){l(h),_()}});return n(),m}B(mi,{customHeaderText:{}},[],[],!0);function wi(e,t){Y(t,!0);let r=k(t,"customHeaderText",7,"");return mi(e,{get customHeaderText(){return r()}}),Z({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",B(wi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Co();var ja=H('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Da=H('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Ha=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Rr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ha(),i=S(n);{var o=a=>{var l=ja();I(a,l)},s=a=>{var l=Da();I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Rr,{isSelected:{}},[],[],!0);var Va=H('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Ra=H('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Ba=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Br(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ba(),i=S(n);{var o=a=>{var l=Va();I(a,l)},s=a=>{var l=Ra();I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Br,{isSelected:{}},[],[],!0);var Fa=H('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Ya=H('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Za=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Fr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Za(),i=S(n);{var o=a=>{var l=Fa();Se(3),I(a,l)},s=a=>{var l=Ya();Se(3),I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Fr,{isSelected:{}},[],[],!0);var Ja=H('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),Wa=H('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),Ka=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Yr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ka(),i=S(n);{var o=a=>{var l=Ja();Se(2),I(a,l)},s=a=>{var l=Wa();Se(2),I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Yr,{isSelected:{}},[],[],!0);var Ga=H('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),Xa=H('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),Qa=H('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),es=H('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),ts=H('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),rs=H('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),ns=H("<svg><!></svg>");function Zr(e,t){const r=ar(t,["children","$$slots","$$events","$$legacy","$$host"]),n=ar(r,["isDisabled","isHovered","isOpen"]);Y(t,!1);let i=k(t,"isDisabled",12,!1),o=k(t,"isHovered",12,!1),s=k(t,"isOpen",12,!1);var a=ns();nr(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=S(a);{var u=f=>{var c=Ga(),v=X(Ye(c));ft(()=>ee(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),I(f,c)},d=(f,c)=>{{var v=g=>{var y=Ut(),m=Ye(y);{var h=w=>{var x=Xa();Se(),I(w,x)},p=w=>{var x=Qa();Se(),I(w,x)};he(m,w=>{s()?w(h):w(p,!1)})}I(g,y)},b=g=>{var y=rs(),m=X(Ye(y));{var h=w=>{var x=es();I(w,x)},p=w=>{var x=ts();I(w,x)};he(m,w=>{s()?w(h):w(p,!1)})}I(g,y)};he(f,g=>{o()?g(v):g(b,!1)},c)}};he(l,f=>{i()?f(u):f(d,!1)})}return C(a),I(e,a),Z({get isDisabled(){return i()},set isDisabled(f){i(f),_()},get isHovered(){return o()},set isHovered(f){o(f),_()},get isOpen(){return s()},set isOpen(f){s(f),_()}})}B(Zr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);const is={};function Jr(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function _i(e){const t=is,r="#",n=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL,o=t.PUBLIC_API_URL,s=t.PUBLIC_DISCOVER_URL;return Jr("chat",n),Jr("console",i),Jr("api",o),{chat:n||r,console:i||r,api:o||"/api",discover:s||"/discover"}}function os(e,t,r,n){var i;t()||(Ie.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var as=(e,t)=>t("discover"),ss=(e,t)=>t(e,"discover"),ls=(e,t)=>t("chat"),us=(e,t)=>t(e,"chat"),cs=(e,t)=>t("console"),ds=(e,t)=>t(e,"console"),fs=(e,t)=>t("api"),vs=(e,t)=>t(e,"api"),hs=(e,t)=>{var r;return(r=t())==null?void 0:r()},bs=(e,t)=>{var r;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),(r=t())==null||r())},ps=ve('<div class="drawer-content svelte-14q02bh" part="drawer-content"><div class="logo-placeholder svelte-14q02bh" part="logo-placeholder"></div> <nav aria-label="Sub navigation" part="sub-navigation"><!></nav></div>'),gs=ve('<div part="side-nav-container"><div class="nav-content svelte-14q02bh" part="nav-content"><div class="nav-main svelte-14q02bh" part="nav-main"><div class="menu-section svelte-14q02bh" part="menu-section"><button><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div></button></div> <div class="nav-items svelte-14q02bh" part="nav-items"><a part="discover-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Discover</span></a> <a part="chat-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Chat</span></a> <a part="console-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Console</span></a> <a part="api-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">API</span></a></div></div> <div class="nav-footer svelte-14q02bh" part="nav-footer"><button class="user-profile-button svelte-14q02bh" tabindex="0"><div class="user-profile-container svelte-14q02bh"><div class="user-profile-icon svelte-14q02bh" part="user-profile-icon"><span class="user-initials svelte-14q02bh">ZW</span></div></div></button></div></div> <div part="expanded-content"><!></div></div>');const ms={hash:"svelte-14q02bh",code:`.expanded-content.drawer-anim.svelte-14q02bh {max-width:0;overflow:hidden;pointer-events:none;transition:max-width 0.2s cubic-bezier(.4, 0, .2, 1);}.expanded-content.drawer-anim.open.svelte-14q02bh {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-14q02bh {width:12.5rem;height:100%;}.logo-placeholder.svelte-14q02bh {height:var(--ai-size-72);}.user-profile-container.svelte-14q02bh,
22
+ .user-profile-icon.svelte-14q02bh {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-14q02bh {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-14q02bh:disabled,
23
+ .menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-14q02bh {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-14q02bh {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.side-nav-container.svelte-14q02bh {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-14q02bh {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-14q02bh {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-14q02bh .expanded-content:where(.svelte-14q02bh) {width:12.5rem;opacity:1;overflow-y:auto;}.side-nav-container.svelte-14q02bh:not(.expanded) .expanded-content:where(.svelte-14q02bh) {width:0;opacity:0;}.nav-content.svelte-14q02bh {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-200);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-14q02bh {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-14q02bh {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.user-profile-button.svelte-14q02bh {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-14q02bh:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-container.svelte-14q02bh {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-14q02bh {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-14q02bh {font-size:var(--ai-size-16);font-style:normal;}.menu-section.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-14q02bh:focus,
24
+ .nav-item.svelte-14q02bh:focus {outline:none;}.menu-button.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh),
25
+ .nav-item.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.nav-items.svelte-14q02bh {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-14q02bh {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-14q02bh {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color 0.3s ease,
26
+ border-radius 0.3s ease;}.icon-wrapper.svelte-14q02bh {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform 0.3s ease;}.icon-wrapper.svelte-14q02bh svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all 0.3s ease;}.icon-wrapper.svelte-14q02bh svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke 0.3s ease,
27
27
  fill 0.3s ease,
28
- stroke-width 0.3s ease;}.nav-text.svelte-1wy1xh4 {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-1wy1xh4:hover .icon-container:where(.svelte-1wy1xh4),
29
- .menu-button.svelte-1wy1xh4:disabled:hover .icon-container:where(.svelte-1wy1xh4) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-1wy1xh4 .icon-container:where(.svelte-1wy1xh4),
30
- .nav-item.svelte-1wy1xh4:active .icon-container:where(.svelte-1wy1xh4),
31
- .nav-item.selected.svelte-1wy1xh4 .icon-container:where(.svelte-1wy1xh4),
32
- .nav-item.selected.hovered.svelte-1wy1xh4 .icon-container:where(.svelte-1wy1xh4),
33
- .menu-button.svelte-1wy1xh4:hover .icon-container:where(.svelte-1wy1xh4),
34
- .menu-button.svelte-1wy1xh4:active .icon-container:where(.svelte-1wy1xh4) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1wy1xh4 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.svelte-1wy1xh4:hover {color:var(--ai-color-neutral-700);}`};function pi(e,t){Z(t,!0),gt(e,fa);const[n,r]=jt(),i=()=>pe(rt,"$selectedItem",n),o=()=>pe(ke,"$isExpanded",n),a=()=>pe(Rn,"$isMenuButtonDisabled",n),s=bi(),l=C(t,"ssrSelectedItem",7,void 0),u=C(t,"onNavToggle",7,void 0),f=C(t,"onNavItemClick",7,void 0),d=C(t,"onProfileClick",7,void 0),c=C(t,"children",7);let v=!1,h,g=we(null),_=we(!1),m=we(!1);function b(N,te){return v?N:te}function p(N){return b(i()===N,l()===N)}function w(N){return k(g)===N}const y=X(()=>()=>b(o(),l()?l()!=="discover":!0)),P=X(()=>()=>b(a(),l()?l()==="discover":!1)),M=X(()=>()=>b(o(),l()?l()!=="discover":!0)),O=X(()=>()=>k(m)&&k(_)&&!k(P)());en(()=>{if(v=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),h&&h.classList.add("hydrated"),typeof window<"u"){const N=window.matchMedia("(hover: hover)");j(m,N.matches,!0),N.addEventListener("change",F=>{j(m,F.matches,!0)});const te=F=>{const Xe=F,{isMobile:it}=Xe.detail;if(it)Se.setExpanded(!1);else{const ot=i();ot&&ot!=="discover"?Se.setExpanded(!0):Se.setExpanded(!1)}};return window.addEventListener("layoutTransition",te),()=>{window.removeEventListener("layoutTransition",te)}}});function V(N){var te;if(N!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Se.setSelectedItem(N),N!=="discover")try{Promise.resolve().then(()=>ln).then(({selectedSubNavItemTitle:F})=>{F.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const Xe=document.getElementById("main-content");if(Xe){const it=Xe.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(it&&it.textContent){const ot=it.textContent.trim();F.set(ot),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ot))}}},200)}).catch(F=>{console.log("[DesktopSideNav] Error clearing header state:",F)})}catch(F){console.log("[DesktopSideNav] Import failed for clearing state:",F)}else try{Promise.resolve().then(()=>ln).then(({selectedSubNavItemTitle:F})=>{F.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(F=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",F)})}catch(F){console.log("[DesktopSideNav] Import failed for clearing Discover state:",F)}(te=f())==null||te({item:N,expanded:o()})}function R(N,te){(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),V(te))}var G=da();let He;var ee=$(G),Ve=$(ee),Ke=$(Ve),Ne=$(Ke);let Si;Ne.__click=[Qs,a,u,o];var Ni=W($(Ne),2),Ti=$(Ni),Ea=$(Ti);const Ca=X(()=>k(O)()),Sa=X(()=>k(P)()),Na=X(()=>k(M)());Zn(Ea,{get isHovered(){return k(Ca)},get isDisabled(){return k(Sa)},get isOpen(){return k(Na)}}),x(Ti),x(Ni),x(Ne),x(Ke);var Ii=W(Ke,2),Re=$(Ii);let zi;Re.__click=[ea,V],Re.__keydown=[ta,R];var Mi=$(Re),Li=$(Mi),Ta=$(Li);const Ia=X(()=>p("discover"));Bn(Ta,{get isSelected(){return k(Ia)}}),x(Li),x(Mi),$e(2),x(Re);var Be=W(Re,2);let Ai;Be.__click=[na,V],Be.__keydown=[ra,R];var Oi=$(Be),Pi=$(Oi),za=$(Pi);const Ma=X(()=>p("chat"));Fn(za,{get isSelected(){return k(Ma)}}),x(Pi),x(Oi),$e(2),x(Be);var Fe=W(Be,2);let ji;Fe.__click=[ia,V],Fe.__keydown=[oa,R];var Di=$(Fe),Hi=$(Di),La=$(Hi);const Aa=X(()=>p("console"));qn(La,{get isSelected(){return k(Aa)}}),x(Hi),x(Di),$e(2),x(Fe);var Ge=W(Fe,2);let Vi;Ge.__click=[sa,V],Ge.__keydown=[aa,R];var Ri=$(Ge),Bi=$(Ri),Oa=$(Bi);const Pa=X(()=>p("api"));Un(Oa,{get isSelected(){return k(Pa)}}),x(Bi),x(Ri),$e(2),x(Ge),x(Ii),x(Ve);var Fi=W(Ve,2),qi=$(Fi);qi.__click=[la,d],qi.__keydown=[ua,d],x(Fi),x(ee);var Yn=W(ee,2);let Ui;var ja=$(Yn);{var Da=N=>{var te=ca(),F=W($(te),2),Xe=$(F);Ln(Xe,()=>c()??ue),x(F),x(te),S(N,te)};he(ja,N=>{k(y)()&&N(Da)})}x(Yn),x(G),ri(G,N=>h=N,()=>h),ht((N,te,F,Xe,it,ot,Va)=>{He=be(G,1,"side-nav-container svelte-1wy1xh4",null,He,N),Si=be(Ne,1,"menu-button svelte-1wy1xh4",null,Si,te),Ne.disabled=a(),We(Re,"href",s.discover),zi=be(Re,1,"nav-item discover-item svelte-1wy1xh4",null,zi,F),We(Be,"href",s.chat),Ai=be(Be,1,"nav-item chat-item svelte-1wy1xh4",null,Ai,Xe),We(Fe,"href",s.console),ji=be(Fe,1,"nav-item console-item svelte-1wy1xh4",null,ji,it),We(Ge,"href",s.api),Vi=be(Ge,1,"nav-item api-item svelte-1wy1xh4",null,Vi,ot),Ui=be(Yn,1,"expanded-content drawer-anim svelte-1wy1xh4",null,Ui,Va)},[()=>({expanded:k(y)()}),()=>({disabled:a()}),()=>({selected:p("discover"),hovered:w("discover")}),()=>({selected:p("chat"),hovered:w("chat")}),()=>({selected:p("console"),hovered:w("console")}),()=>({selected:p("api"),hovered:w("api")}),()=>({open:k(y)()})]),K("mouseenter",Ne,()=>j(_,!0)),K("mouseleave",Ne,()=>j(_,!1)),K("mouseenter",Re,()=>j(g,"discover")),K("mouseleave",Re,()=>j(g,null)),K("mouseenter",Be,()=>j(g,"chat")),K("mouseleave",Be,()=>j(g,null)),K("mouseenter",Fe,()=>j(g,"console")),K("mouseleave",Fe,()=>j(g,null)),K("mouseenter",Ge,()=>j(g,"api")),K("mouseleave",Ge,()=>j(g,null)),S(e,G);var Ha=Y({get ssrSelectedItem(){return l()},set ssrSelectedItem(N=void 0){l(N),E()},get onNavToggle(){return u()},set onNavToggle(N=void 0){u(N),E()},get onNavItemClick(){return f()},set onNavItemClick(N=void 0){f(N),E()},get onProfileClick(){return d()},set onProfileClick(N=void 0){d(N),E()},get children(){return c()},set children(N){c(N),E()}});return r(),Ha}Rr(["click","keydown"]),U(pi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{},children:{}},[],[],!0);function gi(e,t){Z(t,!0);let n=C(t,"ssrSelectedItem",7),r=C(t,"onNavToggle",7),i=C(t,"onNavItemClick",7),o=C(t,"onProfileClick",7);return pi(e,{get ssrSelectedItem(){return n()},get onNavToggle(){return r()},get onNavItemClick(){return i()},get onProfileClick(){return o()},children:(a,s)=>{var l=Ot(),u=Ue(l);tn(u,t,"default",{}),S(a,l)},$$slots:{default:!0}}),Y({get ssrSelectedItem(){return n()},set ssrSelectedItem(a){n(a),E()},get onNavToggle(){return r()},set onNavToggle(a){r(a),E()},get onNavItemClick(){return i()},set onNavItemClick(a){i(a),E()},get onProfileClick(){return o()},set onProfileClick(a){o(a),E()}})}customElements.define("graymatter-desktop-side-nav",U(gi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{}},["default"],[],!0));var va=B('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>');function un(e,t){const n=sn(t,["children","$$slots","$$events","$$legacy","$$host"]),r=sn(n,["isInverted","width","height"]);Z(t,!1);const i=St();let o=C(t,"isInverted",12,!1),a=C(t,"width",12),s=C(t,"height",12);const l=102,u=30;a(a()||l),s(s()||u),No(()=>Dr(o()),()=>{j(i,o()?"var(--ai-color-white)":"var(--ai-color-black)")}),To();var f=va();return nn(f,()=>({width:a(),height:s(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${k(i)??""};`,...r})),S(e,f),Y({get isInverted(){return o()},set isInverted(d){o(d),E()},get width(){return a()},set width(d){a(d),E()},get height(){return s()},set height(d){s(d),E()}})}U(un,{isInverted:{},width:{},height:{}},[],[],!0);function wi(e,t){Z(t,!0);let n=C(t,"isInverted",7,!1),r=C(t,"width",7,void 0),i=C(t,"height",7,void 0),o=Vn(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height"]);return un(e,oi({get isInverted(){return n()},get width(){return r()},get height(){return i()}},()=>o)),Y({get isInverted(){return n()},set isInverted(a=!1){n(a),E()},get width(){return r()},set width(a=void 0){r(a),E()},get height(){return i()},set height(a=void 0){i(a),E()}})}customElements.define("graymatter-logo",U(wi,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"}},[],[],!0));var ha=ve('<a part="nav-item"><div class="icon svelte-cugc62"><!></div> <span class="label svelte-cugc62"> </span></a>'),ba=ve('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const pa={hash:"svelte-cugc62",code:".nav-item.svelte-cugc62 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.active.svelte-cugc62 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-cugc62 .icon:where(.svelte-cugc62) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-cugc62:hover {color:var(--ai-color-neutral-700);}.icon.svelte-cugc62 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color 0.2s ease;}.label.svelte-cugc62 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function mi(e,t){Z(t,!1),gt(e,pa);const[n,r]=jt(),i=()=>pe(rt,"$selectedItem",n);let o=C(t,"onNavItemClick",12,void 0);const a=bi(),s=[{id:"discover",label:"Discover",icon:Bn,href:a.discover},{id:"chat",label:"Chat",icon:Fn,href:a.chat},{id:"console",label:"Console",icon:qn,href:a.console},{id:"api",label:"API",icon:Un,href:a.api}];function l(d){var c;if(d!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Se.setSelectedItem(d),d!=="discover")try{Promise.resolve().then(()=>ln).then(({selectedSubNavItemTitle:v})=>{v.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const h=document.getElementById("main-content");if(h){const g=h.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(g&&g.textContent){const _=g.textContent.trim();v.set(_),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(_))}}},200)}).catch(v=>{console.log("[MobileBottomNav] Error clearing header state:",v)})}catch(v){console.log("[MobileBottomNav] Import failed for clearing state:",v)}else try{Promise.resolve().then(()=>ln).then(({selectedSubNavItemTitle:v})=>{v.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(v=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",v)})}catch(v){console.log("[MobileBottomNav] Import failed for clearing Discover state:",v)}(c=o())==null||c({item:d,expanded:!1})}jn();var u=ba();ns(u,5,()=>s,es,(d,c)=>{var v=ha();let h;var g=$(v),_=$(g);const m=ct(()=>(i(),k(c),Pe(()=>i()===k(c).id)));os(_,()=>k(c).icon,(w,y)=>{y(w,{get isSelected(){return k(m)}})}),x(g);var b=W(g,2),p=$(b,!0);x(b),x(v),ht(w=>{We(v,"href",(k(c),Pe(()=>k(c).href))),h=be(v,1,"nav-item svelte-cugc62",null,h,w),zn(p,(k(c),Pe(()=>k(c).label)))},[()=>({active:i()===k(c).id})],ct),K("click",v,()=>l(k(c).id)),S(d,v)}),x(u),S(e,u);var f=Y({get onNavItemClick(){return o()},set onNavItemClick(d){o(d),E()}});return r(),f}U(mi,{onNavItemClick:{}},[],[],!0);function _i(e,t){Z(t,!0);let n=C(t,"onNavItemClick",7);return mi(e,{get onNavItemClick(){return n()}}),Y({get onNavItemClick(){return n()},set onNavItemClick(r){n(r),E()}})}customElements.define("graymatter-mobile-bottom-nav",U(_i,{onNavItemClick:{}},[],[],!0));var ga=B('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 18L18 6M6 6L18 18" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function yi(e){var t=ga();S(e,t)}U(yi,{},[],[],!0);var wa=ve('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),ma=ve('<div class="subnav-section svelte-1xj1twt" part="subnav-section"><!></div>'),_a=ve('<div class="no-subnav-message svelte-1xj1twt" part="no-subnav-message"><p class="svelte-1xj1twt">Select a section from the bottom navigation</p></div>'),ya=ve('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1xj1twt" part="menu-header"><div class="logo-container svelte-1xj1twt" part="logo-container"><!></div> <button class="close-button svelte-1xj1twt" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1xj1twt" part="menu-content"><!></div></div>',1);const ka={hash:"svelte-1xj1twt",code:".no-subnav-message.svelte-1xj1twt {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1xj1twt p:where(.svelte-1xj1twt) {margin:0;}.mobile-side-menu.svelte-1xj1twt {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform 0.3s ease;z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1xj1twt {transform:translateX(0);}.menu-header.svelte-1xj1twt {display:flex;align-items:center;justify-content:space-between;padding:var(--ai-size-16) var(--ai-size-20);border-bottom:0.0625rem solid var(--ai-color-neutral-200);}.mobile-side-menu.svelte-1xj1twt .logo-container:where(.svelte-1xj1twt) {display:flex;}.close-button.svelte-1xj1twt {display:flex;align-items:center;justify-content:center;width:var(--ai-size-32);height:var(--ai-size-32);border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-6);transition:background-color 0.2s ease;}.close-button.svelte-1xj1twt:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1xj1twt {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1xj1twt {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function ki(e,t){Z(t,!1),gt(e,ka);const[n,r]=jt(),i=()=>pe(ke,"$isExpanded",n),o=()=>pe(rt,"$selectedItem",n);let a=St(),s=null;function l(O){if(s=O.detail.hash,u(),s){const R=document.getElementById(s);if(R){const G=document.getElementById("main-content-mobile"),He=G?G.querySelector(`[id="${s}"]`):null;if(He&&G){const ee=He.getBoundingClientRect(),Ve=G.getBoundingClientRect(),Ke=G.scrollTop+ee.top-Ve.top;G.scrollTo({top:Ke,behavior:"auto"}),setTimeout(()=>{var Ne;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Ne=He.textContent)==null?void 0:Ne.trim(),id:He.id}}))},100)}else{let ee=R.parentElement;for(;ee&&ee!==document.body;){const Ve=window.getComputedStyle(ee);if(Ve.overflowY==="auto"||Ve.overflowY==="scroll")break;ee=ee.parentElement}ee&&ee!==document.body?document.getElementById("main-content")?(R.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var Ke;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Ke=R.textContent)==null?void 0:Ke.trim(),id:R.id}}))},100)):R.scrollIntoView({behavior:"auto",block:"start"}):R.scrollIntoView({behavior:"auto",block:"start"})}}s=null}}en(()=>{window.addEventListener("mobileAnchorNavigate",l);const O=()=>{u()};window.addEventListener("closeMobileMenu",O);const V=G=>{const He=G,{isMobile:ee}=He.detail;ee&&Se.setExpanded(!1)};window.addEventListener("layoutTransition",V);const R=G=>{G.key==="Escape"&&i()&&u()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("mobileAnchorNavigate",l),window.removeEventListener("closeMobileMenu",O),window.removeEventListener("layoutTransition",V),window.removeEventListener("keydown",R)}});function u(){Se.setExpanded(!1)}jn();var f=ya(),d=Ue(f);{var c=O=>{var V=wa();K("click",V,u),K("keydown",V,R=>{(R.key==="Enter"||R.key===" ")&&u()}),S(O,V)};he(d,O=>{i()&&O(c)})}var v=W(d,2);let h;var g=$(v),_=$(g),m=$(_);un(m,{width:75,height:22}),x(_);var b=W(_,2),p=$(b);yi(p),x(b),x(g);var w=W(g,2),y=$(w);{var P=O=>{var V=ma(),R=$(V);tn(R,t,"default",{}),x(V),S(O,V)},M=O=>{var V=_a();S(O,V)};he(y,O=>{o()&&o()!=="discover"?O(P):O(M,!1)})}x(w),x(v),ri(v,O=>j(a,O),()=>k(a)),ht(O=>h=be(v,1,"mobile-side-menu svelte-1xj1twt",null,h,O),[()=>({open:i()})],ct),K("click",b,u),S(e,f),Y(),r()}U(ki,{},["default"],[],!0);function xi(e,t){ki(e,{children:(n,r)=>{var i=Ot(),o=Ue(i);tn(o,t,"default",{}),S(n,i)},$$slots:{default:!0}})}customElements.define("graymatter-mobile-side-menu",U(xi,{},["default"],[],!0));var xa=ve('<nav class="mobile-top-nav svelte-1u5nbcr" part="mobile-top-nav"><button aria-label="Toggle navigation menu" part="menu-button"><!></button> <div class="brand svelte-1u5nbcr"><!> <span class="brand-text svelte-1u5nbcr"> </span></div> <button class="profile-button svelte-1u5nbcr" aria-label="Open profile menu" part="profile-button"><div class="user-profile-container svelte-1u5nbcr"><div class="user-profile-icon svelte-1u5nbcr" part="user-profile-icon"><span class="user-initials svelte-1u5nbcr">ZW</span></div></div></button></nav>');const $a={hash:"svelte-1u5nbcr",code:`.user-profile-container.svelte-1u5nbcr,
28
+ stroke-width 0.3s ease;}.nav-text.svelte-14q02bh {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
29
+ .menu-button.svelte-14q02bh:disabled:hover .icon-container:where(.svelte-14q02bh) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
30
+ .nav-item.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh),
31
+ .nav-item.selected.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
32
+ .nav-item.selected.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
33
+ .menu-button.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
34
+ .menu-button.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-14q02bh {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.svelte-14q02bh:hover {color:var(--ai-color-neutral-700);}`};function ki(e,t){Y(t,!0),pt(e,ms);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r),o=()=>pe(xe,"$isExpanded",r),s=()=>pe(Vr,"$isMenuButtonDisabled",r),a=_i(),l=k(t,"ssrSelectedItem",7,void 0),u=k(t,"onNavToggle",7,void 0),d=k(t,"onNavItemClick",7,void 0),f=k(t,"onProfileClick",7,void 0),c=k(t,"children",7),v=k(t,"apiUrl",7),b=k(t,"chatUrl",7),g=k(t,"consoleUrl",7),y=k(t,"discoverUrl",7);let m=!1,h,p=we(null),w=we(!1),x=we(!1);function L(N,te){return m?N:te}function $(N){return L(i()===N,l()===N)}function T(N){return E(p)===N}const P=G(()=>()=>L(o(),l()?l()!=="discover":!0)),F=G(()=>()=>L(s(),l()?l()==="discover":!1)),me=G(()=>()=>L(o(),l()?l()!=="discover":!0)),Ke=G(()=>()=>E(x)&&E(w)&&!E(F)());tr(()=>{if(m=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),h&&h.classList.add("hydrated"),typeof window<"u"){const N=window.matchMedia("(hover: hover)");q(x,N.matches,!0),N.addEventListener("change",V=>{q(x,V.matches,!0)});const te=V=>{const Ge=V,{isMobile:nt}=Ge.detail;if(nt)Ie.setExpanded(!1);else{const it=i();it&&it!=="discover"?Ie.setExpanded(!0):Ie.setExpanded(!1)}};return window.addEventListener("layoutTransition",te),()=>{window.removeEventListener("layoutTransition",te)}}});function K(N){var te;if(N!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Ie.setSelectedItem(N),N!=="discover")try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const Ge=document.getElementById("main-content");if(Ge){const nt=Ge.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(nt&&nt.textContent){const it=nt.textContent.trim();V.set(it),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(it))}}},200)}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing state:",V)}else try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing Discover state:",V)}(te=d())==null||te({item:N,expanded:o()})}function Te(N,te){(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),K(te))}var ze=gs();let Pt;var Wr=S(ze),Kr=S(Wr),Gr=S(Kr),Ee=S(Gr);let Li;Ee.__click=[os,s,u,o];var Ui=S(Ee),Ai=S(Ui),qs=S(Ai);const Ps=G(()=>E(Ke)()),js=G(()=>E(F)()),Ds=G(()=>E(me)());Zr(qs,{get isHovered(){return E(Ps)},get isDisabled(){return E(js)},get isOpen(){return E(Ds)}}),C(Ai),C(Ui),C(Ee),C(Gr);var Oi=X(Gr,2),Me=S(Oi);let qi;Me.__click=[as,K],Me.__keydown=[ss,Te];var Pi=S(Me),ji=S(Pi),Hs=S(ji);const Vs=G(()=>$("discover"));Rr(Hs,{get isSelected(){return E(Vs)}}),C(ji),C(Pi),Se(2),C(Me);var Le=X(Me,2);let Di;Le.__click=[ls,K],Le.__keydown=[us,Te];var Hi=S(Le),Vi=S(Hi),Rs=S(Vi);const Bs=G(()=>$("chat"));Br(Rs,{get isSelected(){return E(Bs)}}),C(Vi),C(Hi),Se(2),C(Le);var Ue=X(Le,2);let Ri;Ue.__click=[cs,K],Ue.__keydown=[ds,Te];var Bi=S(Ue),Fi=S(Bi),Fs=S(Fi);const Ys=G(()=>$("console"));Fr(Fs,{get isSelected(){return E(Ys)}}),C(Fi),C(Bi),Se(2),C(Ue);var Be=X(Ue,2);let Yi;Be.__click=[fs,K],Be.__keydown=[vs,Te];var Zi=S(Be),Ji=S(Zi),Zs=S(Ji);const Js=G(()=>$("api"));Yr(Zs,{get isSelected(){return E(Js)}}),C(Ji),C(Zi),Se(2),C(Be),C(Oi),C(Kr);var Wi=X(Kr,2),Ki=S(Wi);Ki.__click=[hs,f],Ki.__keydown=[bs,f],C(Wi),C(Wr);var Xr=X(Wr,2);let Gi;var Ws=S(Xr);{var Ks=N=>{var te=ps(),V=X(S(te),2),Ge=S(V);Ar(Ge,()=>c()??ue),C(V),C(te),I(N,te)};he(Ws,N=>{E(P)()&&N(Ks)})}C(Xr),C(ze),li(ze,N=>h=N,()=>h),ft((N,te,V,Ge,nt,it,Xs,Qs,el,tl,rl,nl,il)=>{Pt=be(ze,1,"side-nav-container svelte-14q02bh",null,Pt,N),Li=be(Ee,1,"menu-button svelte-14q02bh",null,Li,te),Ee.disabled=s(),ee(Ee,"aria-label",V),ee(Ee,"aria-expanded",Ge),ee(Me,"href",y()||a.discover),qi=be(Me,1,"nav-item discover-item svelte-14q02bh",null,qi,nt),ee(Me,"aria-current",it),ee(Le,"href",b()||a.chat),Di=be(Le,1,"nav-item chat-item svelte-14q02bh",null,Di,Xs),ee(Le,"aria-current",Qs),ee(Ue,"href",g()||a.console),Ri=be(Ue,1,"nav-item console-item svelte-14q02bh",null,Ri,el),ee(Ue,"aria-current",tl),ee(Be,"href",v()||a.api),Yi=be(Be,1,"nav-item api-item svelte-14q02bh",null,Yi,rl),ee(Be,"aria-current",nl),Gi=be(Xr,1,"expanded-content drawer-anim svelte-14q02bh",null,Gi,il)},[()=>({expanded:E(P)()}),()=>({disabled:s()}),()=>E(P)()?"Close navigation menu":"Open navigation menu",()=>E(P)()?"true":"false",()=>({selected:$("discover"),hovered:T("discover")}),()=>$("discover")?"page":void 0,()=>({selected:$("chat"),hovered:T("chat")}),()=>$("chat")?"page":void 0,()=>({selected:$("console"),hovered:T("console")}),()=>$("console")?"page":void 0,()=>({selected:$("api"),hovered:T("api")}),()=>$("api")?"page":void 0,()=>({open:E(P)()})]),W("mouseenter",Ee,()=>q(w,!0)),W("mouseleave",Ee,()=>q(w,!1)),W("focus",Ee,()=>q(w,!0)),W("blur",Ee,()=>q(w,!1)),W("mouseenter",Me,()=>q(p,"discover")),W("mouseleave",Me,()=>q(p,null)),W("mouseenter",Le,()=>q(p,"chat")),W("mouseleave",Le,()=>q(p,null)),W("mouseenter",Ue,()=>q(p,"console")),W("mouseleave",Ue,()=>q(p,null)),W("mouseenter",Be,()=>q(p,"api")),W("mouseleave",Be,()=>q(p,null)),I(e,ze);var Gs=Z({get ssrSelectedItem(){return l()},set ssrSelectedItem(N=void 0){l(N),_()},get onNavToggle(){return u()},set onNavToggle(N=void 0){u(N),_()},get onNavItemClick(){return d()},set onNavItemClick(N=void 0){d(N),_()},get onProfileClick(){return f()},set onProfileClick(N=void 0){f(N),_()},get children(){return c()},set children(N){c(N),_()},get apiUrl(){return v()},set apiUrl(N){v(N),_()},get chatUrl(){return b()},set chatUrl(N){b(N),_()},get consoleUrl(){return g()},set consoleUrl(N){g(N),_()},get discoverUrl(){return y()},set discoverUrl(N){y(N),_()}});return n(),Gs}Mr(["click","keydown"]),B(ki,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{},children:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function yi(e,t){Y(t,!0);let r=k(t,"ssrSelectedItem",7),n=k(t,"onNavToggle",7),i=k(t,"onNavItemClick",7),o=k(t,"onProfileClick",7),s=k(t,"apiUrl",7),a=k(t,"chatUrl",7),l=k(t,"consoleUrl",7),u=k(t,"discoverUrl",7);return ki(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get onProfileClick(){return o()},get apiUrl(){return s()},get chatUrl(){return a()},get consoleUrl(){return l()},get discoverUrl(){return u()},children:(d,f)=>{var c=Ut(),v=Ye(c);rr(v,t,"default",{}),I(d,c)},$$slots:{default:!0}}),Z({get ssrSelectedItem(){return r()},set ssrSelectedItem(d){r(d),_()},get onNavToggle(){return n()},set onNavToggle(d){n(d),_()},get onNavItemClick(){return i()},set onNavItemClick(d){i(d),_()},get onProfileClick(){return o()},set onProfileClick(d){o(d),_()},get apiUrl(){return s()},set apiUrl(d){s(d),_()},get chatUrl(){return a()},set chatUrl(d){a(d),_()},get consoleUrl(){return l()},set consoleUrl(d){l(d),_()},get discoverUrl(){return u()},set discoverUrl(d){u(d),_()}})}customElements.define("graymatter-desktop-side-nav",B(yi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var ws=H('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>');function ur(e,t){const r=ar(t,["children","$$slots","$$events","$$legacy","$$host"]),n=ar(r,["isInverted","width","height"]);Y(t,!1);const i=St();let o=k(t,"isInverted",12,!1),s=k(t,"width",12),a=k(t,"height",12);const l=102,u=30;s(s()||l),a(a()||u),Uo(()=>Bn(o()),()=>{q(i,o()?"var(--ai-color-white)":"var(--ai-color-black)")}),Ao();var d=ws();return nr(d,()=>({width:s(),height:a(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${E(i)??""};`,...n})),I(e,d),Z({get isInverted(){return o()},set isInverted(f){o(f),_()},get width(){return s()},set width(f){s(f),_()},get height(){return a()},set height(f){a(f),_()}})}B(ur,{isInverted:{},width:{},height:{}},[],[],!0);function xi(e,t){Y(t,!0);let r=k(t,"isInverted",7,!1),n=k(t,"width",7,void 0),i=k(t,"height",7,void 0),o=Hr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height"]);return ur(e,di({get isInverted(){return r()},get width(){return n()},get height(){return i()}},()=>o)),Z({get isInverted(){return r()},set isInverted(s=!1){r(s),_()},get width(){return n()},set width(s=void 0){n(s),_()},get height(){return i()},set height(s=void 0){i(s),_()}})}customElements.define("graymatter-logo",B(xi,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"}},[],[],!0));function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cr={exports:{}},ks=cr.exports,Ei;function ys(){return Ei||(Ei=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",ks,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=n[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,u=s.trim===void 0?!0:s.trim,d=o.normalize().split("").reduce(function(f,c){var v=a[c];return v===void 0&&(v=r[c]),v===void 0&&(v=c),v===l&&(v=" "),f+v.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,l),s.lower&&(d=d.toLowerCase()),d}return i.extend=function(o){Object.assign(r,o)},i})}(cr)),cr.exports}var xs=ys();const Es=_s(xs);var Cs=(e,t,r)=>t(E(r).id),Ss=ve('<a><div class="icon svelte-cugc62"><!></div> <span class="label svelte-cugc62"> </span></a>'),$s=ve('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ns={hash:"svelte-cugc62",code:".nav-item.svelte-cugc62 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.active.svelte-cugc62 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-cugc62 .icon:where(.svelte-cugc62) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-cugc62:hover {color:var(--ai-color-neutral-700);}.icon.svelte-cugc62 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color 0.2s ease;}.label.svelte-cugc62 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ci(e,t){Y(t,!0),pt(e,Ns);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r);let o=k(t,"onNavItemClick",7),s=k(t,"apiUrl",7),a=k(t,"chatUrl",7),l=k(t,"consoleUrl",7),u=k(t,"discoverUrl",7);const d=_i(),f=[{id:"discover",label:"Discover",icon:Rr,href:u()||d.discover},{id:"chat",label:"Chat",icon:Br,href:a()||d.chat},{id:"console",label:"Console",icon:Fr,href:l()||d.console},{id:"api",label:"API",icon:Yr,href:s()||d.api}];function c(g){var y;if(g!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Ie.setSelectedItem(g),g!=="discover")try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const h=document.getElementById("main-content");if(h){const p=h.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(p&&p.textContent){const w=p.textContent.trim();m.set(w),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w))}}},200)}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing state:",m)}else try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing Discover state:",m)}(y=o())==null||y({item:g,expanded:!1})}var v=$s();la(v,21,()=>f,aa,(g,y)=>{var m=Ss();let h;m.__click=[Cs,c,y];var p=S(m),w=S(p);const x=G(()=>i()===E(y).id);da(w,()=>E(y).icon,(T,P)=>{P(T,{get isSelected(){return E(x)}})}),C(p);var L=X(p,2),$=S(L,!0);C(L),C(m),ft((T,P)=>{ee(m,"href",E(y).href),h=be(m,1,"nav-item svelte-cugc62",null,h,T),ee(m,"part",P),Lr($,E(y).label)},[()=>({active:i()===E(y).id}),()=>`${Es(E(y).id)}-item`]),I(g,m)}),C(v),I(e,v);var b=Z({get onNavItemClick(){return o()},set onNavItemClick(g){o(g),_()},get apiUrl(){return s()},set apiUrl(g){s(g),_()},get chatUrl(){return a()},set chatUrl(g){a(g),_()},get consoleUrl(){return l()},set consoleUrl(g){l(g),_()},get discoverUrl(){return u()},set discoverUrl(g){u(g),_()}});return n(),b}Mr(["click"]),B(Ci,{onNavItemClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Si(e,t){Y(t,!0);let r=k(t,"onNavItemClick",7),n=k(t,"apiUrl",7),i=k(t,"chatUrl",7),o=k(t,"consoleUrl",7),s=k(t,"discoverUrl",7);return Ci(e,{get onNavItemClick(){return r()},get apiUrl(){return n()},get chatUrl(){return i()},get consoleUrl(){return o()},get discoverUrl(){return s()}}),Z({get onNavItemClick(){return r()},set onNavItemClick(a){r(a),_()},get apiUrl(){return n()},set apiUrl(a){n(a),_()},get chatUrl(){return i()},set chatUrl(a){i(a),_()},get consoleUrl(){return o()},set consoleUrl(a){o(a),_()},get discoverUrl(){return s()},set discoverUrl(a){s(a),_()}})}customElements.define("graymatter-mobile-bottom-nav",B(Si,{onNavItemClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Is=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 18L18 6M6 6L18 18" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function $i(e){var t=Is();I(e,t)}B($i,{},[],[],!0);var Ts=ve('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),zs=ve('<div class="subnav-section svelte-1xj1twt" part="subnav-section"><!></div>'),Ms=ve('<div class="no-subnav-message svelte-1xj1twt" part="no-subnav-message"><p class="svelte-1xj1twt">Select a section from the bottom navigation</p></div>'),Ls=ve('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1xj1twt" part="menu-header"><div class="logo-container svelte-1xj1twt" part="logo-container"><!></div> <button class="close-button svelte-1xj1twt" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1xj1twt" part="menu-content"><!></div></div>',1);const Us={hash:"svelte-1xj1twt",code:".no-subnav-message.svelte-1xj1twt {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1xj1twt p:where(.svelte-1xj1twt) {margin:0;}.mobile-side-menu.svelte-1xj1twt {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform 0.3s ease;z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1xj1twt {transform:translateX(0);}.menu-header.svelte-1xj1twt {display:flex;align-items:center;justify-content:space-between;padding:var(--ai-size-16) var(--ai-size-20);border-bottom:0.0625rem solid var(--ai-color-neutral-200);}.mobile-side-menu.svelte-1xj1twt .logo-container:where(.svelte-1xj1twt) {display:flex;}.close-button.svelte-1xj1twt {display:flex;align-items:center;justify-content:center;width:var(--ai-size-32);height:var(--ai-size-32);border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-6);transition:background-color 0.2s ease;}.close-button.svelte-1xj1twt:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1xj1twt {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1xj1twt {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Ni(e,t){Y(t,!1),pt(e,Us);const[r,n]=Ot(),i=()=>pe(xe,"$isExpanded",r),o=()=>pe(rt,"$selectedItem",r);let s=St(),a=null;function l(T){if(a=T.detail.hash,u(),a){const F=document.getElementById(a);if(F){const me=document.getElementById("main-content-mobile"),Ke=me?me.querySelector(`[id="${a}"]`):null;if(Ke&&me){const K=Ke.getBoundingClientRect(),Te=me.getBoundingClientRect(),ze=me.scrollTop+K.top-Te.top;me.scrollTo({top:ze,behavior:"auto"}),setTimeout(()=>{var Pt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Pt=Ke.textContent)==null?void 0:Pt.trim(),id:Ke.id}}))},100)}else{let K=F.parentElement;for(;K&&K!==document.body;){const Te=window.getComputedStyle(K);if(Te.overflowY==="auto"||Te.overflowY==="scroll")break;K=K.parentElement}K&&K!==document.body?document.getElementById("main-content")?(F.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ze;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ze=F.textContent)==null?void 0:ze.trim(),id:F.id}}))},100)):F.scrollIntoView({behavior:"auto",block:"start"}):F.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}tr(()=>{window.addEventListener("mobileAnchorNavigate",l);const T=()=>{u()};window.addEventListener("closeMobileMenu",T);const P=me=>{const Ke=me,{isMobile:K}=Ke.detail;K&&Ie.setExpanded(!1)};window.addEventListener("layoutTransition",P);const F=me=>{me.key==="Escape"&&i()&&u()};return window.addEventListener("keydown",F),()=>{window.removeEventListener("mobileAnchorNavigate",l),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",P),window.removeEventListener("keydown",F)}});function u(){Ie.setExpanded(!1)}ui();var d=Ls(),f=Ye(d);{var c=T=>{var P=Ts();W("click",P,u),W("keydown",P,F=>{(F.key==="Enter"||F.key===" ")&&u()}),I(T,P)};he(f,T=>{i()&&T(c)})}var v=X(f,2);let b;var g=S(v),y=S(g),m=S(y);ur(m,{width:75,height:22}),C(y);var h=X(y,2),p=S(h);$i(p),C(h),C(g);var w=X(g,2),x=S(w);{var L=T=>{var P=zs(),F=S(P);rr(F,t,"default",{}),C(P),I(T,P)},$=T=>{var P=Ms();I(T,P)};he(x,T=>{o()&&o()!=="discover"?T(L):T($,!1)})}C(w),C(v),li(v,T=>q(s,T),()=>E(s)),ft(T=>b=be(v,1,"mobile-side-menu svelte-1xj1twt",null,b,T),[()=>({open:i()})],Bt),W("click",h,u),I(e,d),Z(),n()}B(Ni,{},["default"],[],!0);function Ii(e,t){Ni(e,{children:(r,n)=>{var i=Ut(),o=Ye(i);rr(o,t,"default",{}),I(r,i)},$$slots:{default:!0}})}customElements.define("graymatter-mobile-side-menu",B(Ii,{},["default"],[],!0));var As=ve('<nav class="mobile-top-nav svelte-1u5nbcr" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1u5nbcr"><!> <span class="brand-text svelte-1u5nbcr"> </span></div> <button class="profile-button svelte-1u5nbcr" aria-label="Open profile menu" part="profile-button"><div class="user-profile-container svelte-1u5nbcr"><div class="user-profile-icon svelte-1u5nbcr" part="user-profile-icon"><span class="user-initials svelte-1u5nbcr">ZW</span></div></div></button></nav>');const Os={hash:"svelte-1u5nbcr",code:`.user-profile-container.svelte-1u5nbcr,
35
35
  .user-profile-icon.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-1u5nbcr,
36
36
  .profile-button.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-1u5nbcr:disabled,
37
37
  .menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-1u5nbcr {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-1u5nbcr {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr) {width:var(--ai-size-40);height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}
38
38
 
39
39
  /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1u5nbcr .menu-button.disabled:where(.svelte-1u5nbcr),
40
- .mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1u5nbcr {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1u5nbcr {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.profile-button.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);}.profile-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}.mobile-top-nav.svelte-1u5nbcr .user-profile-icon:where(.svelte-1u5nbcr) {width:var(--ai-size-32);height:var(--ai-size-32);border-radius:0.3125rem;}.mobile-top-nav.svelte-1u5nbcr .user-initials:where(.svelte-1u5nbcr) {font-size:var(--ai-size-14);line-height:1;}.user-profile-container.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-1u5nbcr {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-1u5nbcr {font-size:var(--ai-size-16);font-style:normal;}.menu-button.svelte-1u5nbcr {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1u5nbcr:focus {outline:none;}`};function $i(e,t){Z(t,!1),gt(e,$a);const[n,r]=jt(),i=()=>pe(nt,"$selectedSubNavItemTitle",n),o=()=>pe(Rn,"$isMenuButtonDisabled",n);let a=C(t,"onProfileClick",12,void 0);en(()=>{const p=P=>{if(window.innerWidth<=640)return;const M=P;M.detail&&M.detail.title&&(nt.set(M.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(M.detail.title)))},w=()=>{if(typeof window>"u")return;const P=document.getElementById("main-content");if(!P)return;const M=P.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(M&&M.textContent){const O=M.textContent.trim();i()||(nt.set(O),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(O)))}};window.addEventListener("sectionVisible",p);const y=sessionStorage.getItem("subNav-selectedTitle");return(!y||y==='""'||y==="null")&&setTimeout(()=>{w()},100),()=>{window.removeEventListener("sectionVisible",p)}});function s(){Se.toggleExpanded()}function l(){var p;(p=a())==null||p()}jn();var u=xa(),f=$(u);let d;var c=$(f);Zn(c,{}),x(f);var v=W(f,2),h=$(v);un(h,{width:75,height:22});var g=W(h,2),_=$(g,!0);x(g),x(v);var m=W(v,2);x(u),ht(p=>{d=be(f,1,"menu-button svelte-1u5nbcr",null,d,p),f.disabled=o(),zn(_,i()||"")},[()=>({disabled:o()})],ct),K("click",f,s),K("click",m,l),S(e,u);var b=Y({get onProfileClick(){return a()},set onProfileClick(p){a(p),E()}});return r(),b}U($i,{onProfileClick:{}},[],[],!0);function Ei(e,t){Z(t,!0);let n=C(t,"onMenuToggle",7);return $i(e,{get onMenuToggle(){return n()}}),Y({get onMenuToggle(){return n()},set onMenuToggle(r){n(r),E()}})}customElements.define("graymatter-mobile-top-nav",U(Ei,{onMenuToggle:{}},[],[],!0)),T.Button=li,T.DesktopHeader=vi,T.DesktopSideNav=gi,T.Logo=wi,T.MobileBottomNav=_i,T.MobileSideMenu=xi,T.MobileTopNav=Ei,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
40
+ .mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1u5nbcr {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1u5nbcr {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.profile-button.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);}.profile-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}.mobile-top-nav.svelte-1u5nbcr .user-profile-icon:where(.svelte-1u5nbcr) {width:var(--ai-size-32);height:var(--ai-size-32);border-radius:0.3125rem;}.mobile-top-nav.svelte-1u5nbcr .user-initials:where(.svelte-1u5nbcr) {font-size:var(--ai-size-14);line-height:1;}.user-profile-container.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-1u5nbcr {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-1u5nbcr {font-size:var(--ai-size-16);font-style:normal;}.menu-button.svelte-1u5nbcr {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1u5nbcr:focus {outline:none;}`};function Ti(e,t){Y(t,!1),pt(e,Os);const[r,n]=Ot(),i=()=>pe(tt,"$selectedSubNavItemTitle",r),o=()=>pe(Vr,"$isMenuButtonDisabled",r);let s=k(t,"onProfileClick",12,void 0);tr(()=>{const p=L=>{if(window.innerWidth<=640)return;const $=L;$.detail&&$.detail.title&&(tt.set($.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify($.detail.title)))},w=()=>{if(typeof window>"u")return;const L=document.getElementById("main-content");if(!L)return;const $=L.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if($&&$.textContent){const T=$.textContent.trim();i()||(tt.set(T),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(T)))}};window.addEventListener("sectionVisible",p);const x=sessionStorage.getItem("subNav-selectedTitle");return(!x||x==='""'||x==="null")&&setTimeout(()=>{w()},100),()=>{window.removeEventListener("sectionVisible",p)}});function a(){Ie.toggleExpanded()}function l(){var p;(p=s())==null||p()}ui();var u=As(),d=S(u);let f;var c=S(d);Zr(c,{}),C(d);var v=X(d,2),b=S(v);ur(b,{width:75,height:22});var g=X(b,2),y=S(g,!0);C(g),C(v);var m=X(v,2);C(u),ft(p=>{f=be(d,1,"menu-button svelte-1u5nbcr",null,f,p),d.disabled=o(),Lr(y,i()||"")},[()=>({disabled:o()})],Bt),W("click",d,a),W("click",m,l),I(e,u);var h=Z({get onProfileClick(){return s()},set onProfileClick(p){s(p),_()}});return n(),h}B(Ti,{onProfileClick:{}},[],[],!0);function zi(e,t){Y(t,!0);let r=k(t,"onMenuToggle",7);return Ti(e,{get onMenuToggle(){return r()}}),Z({get onMenuToggle(){return r()},set onMenuToggle(n){r(n),_()}})}customElements.define("graymatter-mobile-top-nav",B(zi,{onMenuToggle:{}},[],[],!0)),z.Button=hi,z.DesktopHeader=wi,z.DesktopSideNav=yi,z.Logo=xi,z.MobileBottomNav=Si,z.MobileSideMenu=Ii,z.MobileTopNav=zi,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});