@gsa-tts/graymatter-ui 0.3.0 → 0.3.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.
Files changed (48) hide show
  1. package/README.md +33 -3
  2. package/assets/images/ai-icons/check-circle.svg +3 -0
  3. package/assets/images/ai-icons/console-icon.svg +6 -6
  4. package/assets/images/ai-icons/pause-button.svg +5 -0
  5. package/assets/images/ai-icons/play-button.svg +4 -0
  6. package/assets/images/api-hero-image.webp +0 -0
  7. package/assets/images/api-icon-w.svg +3 -0
  8. package/assets/images/chat-hero-image-mobile.webp +0 -0
  9. package/assets/images/chat-hero-image.webp +0 -0
  10. package/assets/images/chat-icon-b.svg +4 -0
  11. package/assets/images/console-hero-image.webp +0 -0
  12. package/assets/images/console-icon-w.svg +6 -0
  13. package/assets/images/og-preview.webp +0 -0
  14. package/assets/images/partners/gemini-government-logo.svg +129 -0
  15. package/assets/images/partners/microsoft-logo.svg +14 -0
  16. package/dist/graymatter-ui.js +1943 -1829
  17. package/dist/graymatter-ui.umd.cjs +37 -15
  18. package/package.json +6 -6
  19. package/src/astro-config/index.ts +10 -0
  20. package/src/component-options/componentOptions.ts +27 -13
  21. package/src/components/Button.svelte +168 -6
  22. package/src/components/DesktopSideNav.webcomponent.svelte +2 -0
  23. package/src/components/GoogleTagManager.astro +1 -1
  24. package/src/components/Head.astro +58 -24
  25. package/src/components/MobileSideMenu.svelte +2 -2
  26. package/src/components/MobileSideMenu.webcomponent.svelte +2 -4
  27. package/src/components/MobileTopNav.svelte +9 -2
  28. package/src/components/MobileTopNav.webcomponent.svelte +2 -2
  29. package/src/components/icons/ExclamationIcon.svelte +24 -0
  30. package/src/components/icons/index.ts +1 -0
  31. package/src/helpers/url.ts +13 -4
  32. package/src/layouts/BaseLayout.astro +2 -4
  33. package/src/layouts/GlobalAppLayout.astro +9 -128
  34. package/src/styles/base/theme.css +6 -1
  35. package/src/styles/base/typography.css +8 -1
  36. package/src/utils/getAppUrls.ts +27 -4
  37. package/static/uswds/styles/styles.css +1 -1
  38. package/static/uswds/styles/styles.css.map +1 -1
  39. package/assets/images/api-hero-image.png +0 -0
  40. package/assets/images/chat-hero-image.png +0 -0
  41. package/assets/images/console-hero-image.png +0 -0
  42. package/assets/images/lp-bg-hero-1024.webp +0 -0
  43. package/assets/images/lp-bg-hero-1920.webp +0 -0
  44. package/assets/images/lp-bg-hero-640.webp +0 -0
  45. package/assets/images/lp-bg-hero.png +0 -0
  46. /package/assets/images/{api-icon.svg → api-icon-b.svg} +0 -0
  47. /package/assets/images/{chat-icon.svg → chat-icon-w.svg} +0 -0
  48. /package/assets/images/{console-icon.svg → console-icon-b.svg} +0 -0
@@ -1,5 +1,6 @@
1
- (function(z,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(z=typeof globalThis<"u"?globalThis:z||self,B(z.graymatter={}))})(this,function(z){"use strict";var Cl=Object.defineProperty;var no=z=>{throw TypeError(z)};var xl=(z,B,ae)=>B in z?Cl(z,B,{enumerable:!0,configurable:!0,writable:!0,value:ae}):z[B]=ae;var Ee=(z,B,ae)=>xl(z,typeof B!="symbol"?B+"":B,ae),io=(z,B,ae)=>B.has(z)||no("Cannot "+ae);var me=(z,B,ae)=>(io(z,B,"read from private field"),ae?ae.call(z):B.get(z)),ln=(z,B,ae)=>B.has(z)?no("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(z):B.set(z,ae),un=(z,B,ae,mt)=>(io(z,B,"write to private field"),mt?mt.call(z,ae):B.set(z,ae),ae);var Ri,nt,je;const B="5";typeof window<"u"&&((Ri=window.__svelte??(window.__svelte={})).v??(Ri.v=new Set)).add(B);const ae=1,mt=2,cn=4,oo=8,ao=16,so=1,lo=2,dn=4,uo=8,co=16,fn=1,fo=2,_r="[",yr="[!",kr="]",wt={},be=Symbol(),vo="http://www.w3.org/1999/xhtml",ho="@attach",vn=!1;var Qt=Array.isArray,po=Array.prototype.indexOf,Cr=Array.from,er=Object.keys,Nt=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,hn=Object.getOwnPropertyDescriptors,go=Object.prototype,bo=Array.prototype,xr=Object.getPrototypeOf,pn=Object.isExtensible;function Tt(e){return typeof e=="function"}const Se=()=>{};function mo(e){return e()}function jt(e){for(var t=0;t<e.length;t++)e[t]()}const Ie=2,Er=4,$t=8,Sr=16,We=32,dt=64,Ir=128,we=256,tr=512,_e=1024,Ge=2048,ot=4096,Xe=8192,Mr=16384,gn=32768,At=65536,bn=1<<17,wo=1<<18,mn=1<<19,Lr=1<<20,Nr=1<<21,Re=Symbol("$state"),Tr=Symbol("legacy props"),_o=Symbol(""),wn=new class extends Error{constructor(){super(...arguments);Ee(this,"name","StaleReactionError");Ee(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},_n=3,Ut=8;function yn(e){return e===this.v}function kn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cn(e){return!kn(e,this.v)}function yo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ko(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Co(e){throw new Error("https://svelte.dev/e/effect_orphan")}function xo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Eo(){throw new Error("https://svelte.dev/e/hydration_failed")}function So(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Io(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Lo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let _t=!1,No=!1;function To(){_t=!0}function jo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let Z=null;function xn(e){Z=e}function Q(e,t=!1,r){var n=Z={p:Z,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};_t&&!t&&(Z.l={s:null,u:null,r1:[],r2:Ct(!1)}),ir(()=>{n.d=!0})}function ee(e){const t=Z;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=P,n=D;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];at(o.effect),Ye(o.reaction),Hn(o.fn)}}finally{at(r),Ye(n)}}Z=t.p,t.m=!0}return e||{}}function rr(){return!_t||Z!==null&&Z.l===null}function yt(e){if(typeof e!="object"||e===null||Re in e)return e;const t=xr(e);if(t!==go&&t!==bo)return e;var r=new Map,n=Qt(e),i=he(0),o=D,s=a=>{var l=D;Ye(o);var c=a();return Ye(l),c};return n&&r.set("length",he(e.length)),new Proxy(e,{defineProperty(a,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Io();var f=r.get(l);return f===void 0?f=s(()=>{var d=he(c.value);return r.set(l,d),d}):U(f,c.value,!0),!0},deleteProperty(a,l){var c=r.get(l);if(c===void 0){if(l in a){const u=s(()=>he(be));r.set(l,u),jr(i)}}else{if(n&&typeof l=="string"){var f=r.get("length"),d=Number(l);Number.isInteger(d)&&d<f.v&&U(f,d)}U(c,be),jr(i)}return!0},get(a,l,c){var h;if(l===Re)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||(h=Ke(a,l))!=null&&h.writable)&&(f=s(()=>{var g=yt(d?a[l]:be),k=he(g);return k}),r.set(l,f)),f!==void 0){var u=w(f);return u===be?void 0:u}return Reflect.get(a,l,c)},getOwnPropertyDescriptor(a,l){var c=Reflect.getOwnPropertyDescriptor(a,l);if(c&&"value"in c){var f=r.get(l);f&&(c.value=w(f))}else if(c===void 0){var d=r.get(l),u=d==null?void 0:d.v;if(d!==void 0&&u!==be)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return c},has(a,l){var u;if(l===Re)return!0;var c=r.get(l),f=c!==void 0&&c.v!==be||Reflect.has(a,l);if(c!==void 0||P!==null&&(!f||(u=Ke(a,l))!=null&&u.writable)){c===void 0&&(c=s(()=>{var h=f?yt(a[l]):be,g=he(h);return g}),r.set(l,c));var d=w(c);if(d===be)return!1}return f},set(a,l,c,f){var m;var d=r.get(l),u=l in a;if(n&&l==="length")for(var h=c;h<d.v;h+=1){var g=r.get(h+"");g!==void 0?U(g,be):h in a&&(g=s(()=>he(be)),r.set(h+"",g))}if(d===void 0)(!u||(m=Ke(a,l))!=null&&m.writable)&&(d=s(()=>he(void 0)),U(d,yt(c)),r.set(l,d));else{u=d.v!==be;var k=s(()=>yt(c));U(d,k)}var x=Reflect.getOwnPropertyDescriptor(a,l);if(x!=null&&x.set&&x.set.call(f,c),!u){if(n&&typeof l=="string"){var I=r.get("length"),v=Number(l);Number.isInteger(v)&&v>=I.v&&U(I,v+1)}jr(i)}return!0},ownKeys(a){w(i);var l=Reflect.ownKeys(a).filter(d=>{var u=r.get(d);return u===void 0||u.v!==be});for(var[c,f]of r)f.v!==be&&!(c in a)&&l.push(c);return l},setPrototypeOf(){Mo()}})}function jr(e,t=1){U(e,e.v+t)}function En(e){try{if(e!==null&&typeof e=="object"&&Re in e)return e[Re]}catch{}return e}function $o(e,t){return Object.is(En(e),En(t))}function kt(e){var t=Ie|Ge,r=D!==null&&(D.f&Ie)!==0?D:null;return P===null||r!==null&&(r.f&we)!==0?t|=we:P.f|=mn,{ctx:Z,deps:null,effects:null,equals:yn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??P,ac:null}}function re(e){const t=kt(e);return Jn(t),t}function Sn(e){const t=kt(e);return t.equals=Cn,t}function In(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ye(t[r])}}function Ao(e){for(var t=e.parent;t!==null;){if((t.f&Ie)===0)return t;t=t.parent}return null}function Mn(e){var t,r=P;at(Ao(e));try{In(e),t=Gn(e)}finally{at(r)}return t}function Ln(e){var t=Mn(e);if(e.equals(t)||(e.v=t,e.wv=Kn()),!St){var r=(st||(e.f&we)!==0)&&e.deps!==null?ot:_e;Oe(e,r)}}const zt=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:yn,rv:0,wv:0};return r}function he(e,t){const r=Ct(e);return Jn(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=Cn),_t&&r&&Z!==null&&Z.l!==null&&((i=Z.l).s??(i.s=[])).push(n),n}function Uo(e,t){return U(e,ze(()=>w(e))),t}function U(e,t,r=!1){D!==null&&(!Fe||(D.f&bn)!==0)&&rr()&&(D.f&(Ie|Sr|bn))!==0&&!((ne==null?void 0:ne.reaction)===D&&ne.sources.includes(e))&&Lo();let n=r?yt(t):t;return $r(e,n)}function $r(e,t){if(!e.equals(t)){var r=e.v;St?zt.set(e,t):zt.set(e,r),e.v=t,(e.f&Ie)!==0&&((e.f&Ge)!==0&&Mn(e),Oe(e,(e.f&we)===0?_e:ot)),e.wv=Kn(),Tn(e,Ge),rr()&&P!==null&&(P.f&_e)!==0&&(P.f&(We|dt))===0&&(Ne===null?Jo([e]):Ne.push(e))}return t}function Nn(e,t=1){var r=w(e),n=t===1?r++:r--;return U(e,r),n}function Tn(e,t){var r=e.reactions;if(r!==null)for(var n=rr(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Ge)===0&&(!n&&s===P||(Oe(s,t),(a&(_e|we))!==0&&((a&Ie)!==0?Tn(s,ot):dr(s))))}}function nr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let O=!1;function Ae(e){O=e}let V;function Ue(e){if(e===null)throw nr(),wt;return V=e}function xt(){return Ue(Qe(V))}function E(e){if(O){if(Qe(V)!==null)throw nr(),wt;V=e}}function Be(e=1){if(O){for(var t=e,r=V;t--;)r=Qe(r);V=r}}function Ar(){for(var e=0,t=V;;){if(t.nodeType===Ut){var r=t.data;if(r===kr){if(e===0)return t;e-=1}else(r===_r||r===yr)&&(e+=1)}var n=Qe(t);t.remove(),t=n}}function jn(e){if(!e||e.nodeType!==Ut)throw nr(),wt;return e.data}var $n,An,Un,zn;function Ur(){if($n===void 0){$n=window,An=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Un=Ke(t,"firstChild").get,zn=Ke(t,"nextSibling").get,pn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),pn(r)&&(r.__t=void 0)}}function Et(e=""){return document.createTextNode(e)}function Me(e){return Un.call(e)}function Qe(e){return zn.call(e)}function S(e,t){if(!O)return Me(e);var r=Me(V);if(r===null)r=V.appendChild(Et());else if(t&&r.nodeType!==_n){var n=Et();return r==null||r.before(n),Ue(n),n}return Ue(r),r}function qe(e,t){if(!O){var r=Me(e);return r instanceof Comment&&r.data===""?Qe(r):r}return V}function ce(e,t=1,r=!1){let n=O?V:e;for(var i;t--;)i=n,n=Qe(n);if(!O)return n;if(r&&(n==null?void 0:n.nodeType)!==_n){var o=Et();return n===null?i==null||i.after(o):n.before(o),Ue(o),o}return Ue(n),n}function On(e){e.textContent=""}function Dn(e){P===null&&D===null&&Co(),D!==null&&(D.f&we)!==0&&P===null&&ko(),St&&yo()}function Oo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function et(e,t,r,n=!0){var i=P,o={ctx:Z,deps:null,nodes_start:null,nodes_end:null,f:e|Ge,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{cr(o),o.f|=gn}catch(l){throw ye(o),l}else t!==null&&dr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(mn|Ir))===0;if(!s&&n&&(i!==null&&Oo(o,i),D!==null&&(D.f&Ie)!==0)){var a=D;(a.effects??(a.effects=[])).push(o)}return o}function ir(e){const t=et($t,null,!1);return Oe(t,_e),t.teardown=e,t}function zr(e){Dn();var t=P!==null&&(P.f&We)!==0&&Z!==null&&!Z.m;if(t){var r=Z;(r.e??(r.e=[])).push({fn:e,effect:P,reaction:D})}else return Hn(e)}function Hn(e){return et(Er|Nr,e,!1)}function Do(e){return Dn(),et($t|Nr,e,!0)}function Ho(e){const t=et(dt,e,!0);return()=>{ye(t)}}function Vo(e){const t=et(dt,e,!0);return(r={})=>new Promise(n=>{r.outro?Ot(t,()=>{ye(t),n(void 0)}):(ye(t),n(void 0))})}function Or(e){return et(Er,e,!1)}function Po(e,t){var r=Z,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=or(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),ze(t))})}function Ro(){var e=Z;or(()=>{if(w(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&_e)!==0&&Oe(r,ot),Bt(r)&&cr(r),t.ran=!1}e.l.r2.v=!1}})}function or(e){return et($t,e,!0)}function Le(e,t=[],r=kt){const n=t.map(r);return vt(()=>e(...n.map(w)))}function vt(e,t=0){var r=et($t|Sr|t,e,!0);return r}function tt(e,t=!0){return et($t|We,e,!0,t)}function Vn(e){var t=e.teardown;if(t!==null){const r=St,n=D;Zn(!0),Ye(null);try{t.call(null)}finally{Zn(r),Ye(n)}}}function Pn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(wn);var n=r.next;(r.f&dt)!==0?r.parent=null:ye(r,t),r=n}}function Bo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&We)===0&&ye(t),t=r}}function ye(e,t=!0){var r=!1;(t||(e.f&wo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qo(e.nodes_start,e.nodes_end),r=!0),Pn(e,t&&!r),ur(e,0),Oe(e,Mr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Vn(e);var i=e.parent;i!==null&&i.first!==null&&Rn(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:Qe(e);e.remove(),e=r}}function Rn(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 Ot(e,t){var r=[];Dr(e,r,!0),Bn(r,()=>{ye(e),t&&t()})}function Bn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Dr(e,t,r){if((e.f&Xe)===0){if(e.f^=Xe,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&At)!==0||(n.f&We)!==0;Dr(n,t,o?r:!1),n=i}}}function ar(e){qn(e,!0)}function qn(e,t){if((e.f&Xe)!==0){e.f^=Xe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&At)!==0||(r.f&We)!==0;qn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Dt=[],Hr=[];function Fn(){var e=Dt;Dt=[],jt(e)}function Fo(){var e=Hr;Hr=[],jt(e)}function Ht(e){Dt.length===0&&queueMicrotask(Fn),Dt.push(e)}function Yo(){Dt.length>0&&Fn(),Hr.length>0&&Fo()}function Zo(e){var t=P;if((t.f&gn)===0){if((t.f&Ir)===0)throw e;t.fn(e)}else Yn(e,t)}function Yn(e,t){for(;t!==null;){if((t.f&Ir)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Vt=!1,Pt=null,ht=!1,St=!1;function Zn(e){St=e}let Rt=[],El=[],D=null,Fe=!1;function Ye(e){D=e}let P=null;function at(e){P=e}let ne=null;function Jn(e){D!==null&&D.f&Lr&&(ne===null?ne={reaction:D,sources:[e]}:ne.sources.push(e))}let pe=null,ke=0,Ne=null;function Jo(e){Ne=e}let sr=1,lr=0,st=!1;function Kn(){return++sr}function Bt(e){var d;var t=e.f;if((t&Ge)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&we)!==0;if(r!==null){var i,o,s=(t&tr)!==0,a=n&&P!==null&&!st,l=r.length;if(s||a){var c=e,f=c.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(c)))&&(o.reactions??(o.reactions=[])).push(c);s&&(c.f^=tr),a&&f!==null&&(f.f&we)===0&&(c.f^=we)}for(i=0;i<l;i++)if(o=r[i],Bt(o)&&Ln(o),o.wv>e.wv)return!0}(!n||P!==null&&!st)&&Oe(e,_e)}return!1}function Wn(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(ne==null?void 0:ne.reaction)===D&&ne.sources.includes(e)||((o.f&Ie)!==0?Wn(o,t,!1):t===o&&(r?Oe(o,Ge):(o.f&_e)!==0&&Oe(o,ot),dr(o)))}}function Gn(e){var h;var t=pe,r=ke,n=Ne,i=D,o=st,s=ne,a=Z,l=Fe,c=e.f;pe=null,ke=0,Ne=null,st=(c&we)!==0&&(Fe||!ht||D===null),D=(c&(We|dt))===0?e:null,ne=null,xn(e.ctx),Fe=!1,lr++,e.f|=Lr,e.ac!==null&&(e.ac.abort(wn),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(pe!==null){var u;if(ur(e,ke),d!==null&&ke>0)for(d.length=ke+pe.length,u=0;u<pe.length;u++)d[ke+u]=pe[u];else e.deps=d=pe;if(!st||(c&Ie)!==0&&e.reactions!==null)for(u=ke;u<d.length;u++)((h=d[u]).reactions??(h.reactions=[])).push(e)}else d!==null&&ke<d.length&&(ur(e,ke),d.length=ke);if(rr()&&Ne!==null&&!Fe&&d!==null&&(e.f&(Ie|ot|Ge))===0)for(u=0;u<Ne.length;u++)Wn(Ne[u],e);return i!==null&&i!==e&&(lr++,Ne!==null&&(n===null?n=Ne:n.push(...Ne))),f}catch(g){Zo(g)}finally{pe=t,ke=r,Ne=n,D=i,st=o,ne=s,xn(a),Fe=l,e.f^=Lr}}function Ko(e,t){let r=t.reactions;if(r!==null){var n=po.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&Ie)!==0&&(pe===null||!pe.includes(t))&&(Oe(t,ot),(t.f&(we|tr))===0&&(t.f^=tr),In(t),ur(t,0))}function ur(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ko(e,r[n])}function cr(e){var t=e.f;if((t&Mr)===0){Oe(e,_e);var r=P,n=ht;P=e,ht=!0;try{(t&Sr)!==0?Bo(e):Pn(e),Vn(e);var i=Gn(e);e.teardown=typeof i=="function"?i:null,e.wv=sr;var o;vn&&No&&(e.f&Ge)!==0&&e.deps}finally{ht=n,P=r}}}function Wo(){try{xo()}catch(e){if(Pt!==null)Yn(e,Pt);else throw e}}function Xn(){var e=ht;try{var t=0;for(ht=!0;Rt.length>0;){t++>1e3&&Wo();var r=Rt,n=r.length;Rt=[];for(var i=0;i<n;i++){var o=Xo(r[i]);Go(o)}zt.clear()}}finally{Vt=!1,ht=e,Pt=null}}function Go(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Mr|Xe))===0&&Bt(n)){var i=sr;if(cr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Rn(n):n.fn=null),sr>i&&(n.f&Nr)!==0)break}}for(;r<t;r+=1)dr(e[r])}}function dr(e){Vt||(Vt=!0,queueMicrotask(Xn));for(var t=Pt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(dt|We))!==0){if((r&_e)===0)return;t.f^=_e}}Rt.push(t)}function Xo(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(We|dt))!==0,o=i&&(n&_e)!==0;if(!o&&(n&Xe)===0){(n&Er)!==0?t.push(r):i?r.f^=_e:Bt(r)&&cr(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(Yo(),Rt.length===0)return Vt=!1,Pt=null,t;Vt=!0,Xn()}}function w(e){var t=e.f,r=(t&Ie)!==0;if(D!==null&&!Fe){if((ne==null?void 0:ne.reaction)!==D||!(ne!=null&&ne.sources.includes(e))){var n=D.deps;e.rv<lr&&(e.rv=lr,pe===null&&n!==null&&n[ke]===e?ke++:pe===null?pe=[e]:(!st||!pe.includes(e))&&pe.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&we)===0&&(i.f^=we)}return r&&(i=e,Bt(i)&&Ln(i)),St&&zt.has(e)?zt.get(e):e.v}function ze(e){var t=Fe;try{return Fe=!0,e()}finally{Fe=t}}const Qo=-7169;function Oe(e,t){e.f=e.f&Qo|t}function Qn(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Re in e)Vr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Re in r&&Vr(r)}}}function Vr(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{Vr(e[n],t)}catch{}const r=xr(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=hn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function ea(e,t){if(t){const r=document.body;e.autofocus=!0,Ht(()=>{document.activeElement===r&&e.focus()})}}function ta(e){var t=D,r=P;Ye(null),at(null);try{return e()}finally{Ye(t),at(r)}}const ei=new Set,Pr=new Set;function ti(e,t,r,n={}){function i(o){if(n.capture||Ft.call(t,o),!o.cancelBubble)return ta(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ht(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ve(e,t,r,n,i){var o={capture:n,passive:i},s=ti(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ir(()=>{t.removeEventListener(e,s,o)})}function qt(e){for(var t=0;t<e.length;t++)ei.add(e[t]);for(var r of Pr)r(e)}function Ft(e){var v;var t=this,r=t.ownerDocument,n=e.type,i=((v=e.composedPath)==null?void 0:v.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 c=i.indexOf(t);if(c===-1)return;l<=c&&(s=l)}if(o=i[s]||e.target,o!==t){Nt(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=D,d=P;Ye(null),at(null);try{for(var u,h=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(Qt(k)){var[x,...I]=k;x.apply(o,[e,...I])}else k.call(o,e)}catch(m){u?h.push(m):u=m}if(e.cancelBubble||g===t||g===null)break;o=g}if(u){for(let m of h)queueMicrotask(()=>{throw m});throw u}}finally{e.__root=t,delete e.currentTarget,Ye(f),at(d)}}}function ri(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=P;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function se(e,t){var r=(t&fn)!==0,n=(t&fo)!==0,i,o=!e.startsWith("<!>");return()=>{if(O)return rt(V,null),V;i===void 0&&(i=ri(o?e:"<!>"+e),r||(i=Me(i)));var s=n||An?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Me(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function ra(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&fn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(O)return rt(V,null),V;if(!s){var a=ri(o),l=Me(a);if(i)for(s=document.createDocumentFragment();Me(l);)s.appendChild(Me(l));else s=Me(l)}var c=s.cloneNode(!0);if(i){var f=Me(c),d=c.lastChild;rt(f,d)}else rt(c,c);return c}}function W(e,t){return ra(e,t,"svg")}function pt(){if(O)return rt(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),r=Et();return e.append(t,r),rt(t,r),e}function M(e,t){if(O){P.nodes_end=V,xt();return}e!==null&&e.before(t)}function na(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ia=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function oa(e){return ia.includes(e)}const aa={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 sa(e){return e=e.toLowerCase(),aa[e]??e}const la=["touchstart","touchmove"];function ua(e){return la.includes(e)}function Yt(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 ni(e,t){return ii(e,t)}function ca(e,t){Ur(),t.intro=t.intro??!1;const r=t.target,n=O,i=V;try{for(var o=Me(r);o&&(o.nodeType!==Ut||o.data!==_r);)o=Qe(o);if(!o)throw wt;Ae(!0),Ue(o),xt();const s=ii(e,{...t,anchor:o});if(V===null||V.nodeType!==Ut||V.data!==kr)throw nr(),wt;return Ae(!1),s}catch(s){if(s===wt)return t.recover===!1&&Eo(),Ur(),On(r),Ae(!1),ni(e,t);throw s}finally{Ae(n),Ue(i)}}const It=new Map;function ii(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Ur();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var g=ua(h);t.addEventListener(h,Ft,{passive:g});var k=It.get(h);k===void 0?(document.addEventListener(h,Ft,{passive:g}),It.set(h,1)):It.set(h,k+1)}}};l(Cr(ei)),Pr.add(l);var c=void 0,f=Vo(()=>{var d=r??t.appendChild(Et());return tt(()=>{if(o){Q({});var u=Z;u.c=o}i&&(n.$$events=i),O&&rt(d,null),c=e(d,n)||{},O&&(P.nodes_end=V),o&&ee()}),()=>{var g;for(var u of a){t.removeEventListener(u,Ft);var h=It.get(u);--h===0?(document.removeEventListener(u,Ft),It.delete(u)):It.set(u,h)}Pr.delete(l),d!==r&&((g=d.parentNode)==null||g.removeChild(d))}});return Rr.set(c,f),c}let Rr=new WeakMap;function da(e,t){const r=Rr.get(e);return r?(Rr.delete(e),r(t)):Promise.resolve()}function Br(e,t,...r){var n=e,i=Se,o;vt(()=>{i!==(i=t())&&(o&&(ye(o),o=null),o=tt(()=>i(n,...r)))},At),O&&(n=V)}function Zt(e){Z===null&&jo(),_t&&Z.l!==null?fa(Z).m.push(e):zr(()=>{const t=ze(e);if(typeof t=="function")return t})}function fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function ie(e,t,[r,n]=[0,0]){O&&r===0&&xt();var i=e,o=null,s=null,a=be,l=r>0?At:0,c=!1;const f=(u,h=!0)=>{c=!0,d(h,u)},d=(u,h)=>{if(a===(a=u))return;let g=!1;if(O&&n!==-1){if(r===0){const x=jn(i);x===_r?n=0:x===yr?n=1/0:(n=parseInt(x.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=Ar(),Ue(i),Ae(!1),g=!0,n=-1)}a?(o?ar(o):h&&(o=tt(()=>h(i))),s&&Ot(s,()=>{s=null})):(s?ar(s):h&&(s=tt(()=>h(i,[r+1,n]))),o&&Ot(o,()=>{o=null})),g&&Ae(!0)};vt(()=>{c=!1,t(f),c||d(null,null)},l),O&&(i=V)}function va(e,t){return t}function ha(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Dr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;On(l),l.append(r),n.clear(),lt(e,t[0].prev,t[o-1].next)}Bn(i,()=>{for(var c=0;c<o;c++){var f=t[c];a||(n.delete(f.k),lt(e,f.prev,f.next)),ye(f.e,!a)}})}function oi(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&cn)!==0;if(l){var c=e;s=O?Ue(Me(c)):c.appendChild(Et())}O&&xt();var f=null,d=!1,u=Sn(()=>{var h=r();return Qt(h)?h:h==null?[]:Cr(h)});vt(()=>{var h=w(u),g=h.length;if(d&&g===0)return;d=g===0;let k=!1;if(O){var x=jn(s)===yr;x!==(g===0)&&(s=Ar(),Ue(s),Ae(!1),k=!0)}if(O){for(var I=null,v,m=0;m<g;m++){if(V.nodeType===Ut&&V.data===kr){s=V,k=!0,Ae(!1);break}var p=h[m],b=n(p,m);v=ai(V,a,I,null,p,b,m,i,t,r),a.items.set(b,v),I=v}g>0&&Ue(Ar())}O||pa(h,a,s,i,t,n,r),o!==null&&(g===0?f?ar(f):f=tt(()=>o(s)):f!==null&&Ot(f,()=>{f=null})),k&&Ae(!0),w(u)}),O&&(s=V)}function pa(e,t,r,n,i,o,s){var j,Y,de,fe;var a=(i&oo)!==0,l=(i&(ae|mt))!==0,c=e.length,f=t.items,d=t.first,u=d,h,g=null,k,x=[],I=[],v,m,p,b;if(a)for(b=0;b<c;b+=1)v=e[b],m=o(v,b),p=f.get(m),p!==void 0&&((j=p.a)==null||j.measure(),(k??(k=new Set)).add(p));for(b=0;b<c;b+=1){if(v=e[b],m=o(v,b),p=f.get(m),p===void 0){var L=u?u.e.nodes_start:r;g=ai(L,t,g,g===null?t.first:g.next,v,m,b,n,i,s),f.set(m,g),x=[],I=[],u=g.next;continue}if(l&&ga(p,v,b,i),(p.e.f&Xe)!==0&&(ar(p.e),a&&((Y=p.a)==null||Y.unfix(),(k??(k=new Set)).delete(p))),p!==u){if(h!==void 0&&h.has(p)){if(x.length<I.length){var A=I[0],J;g=A.prev;var T=x[0],R=x[x.length-1];for(J=0;J<x.length;J+=1)si(x[J],A,r);for(J=0;J<I.length;J+=1)h.delete(I[J]);lt(t,T.prev,R.next),lt(t,g,T),lt(t,R,A),u=A,g=R,b-=1,x=[],I=[]}else h.delete(p),si(p,u,r),lt(t,p.prev,p.next),lt(t,p,g===null?t.first:g.next),lt(t,g,p),g=p;continue}for(x=[],I=[];u!==null&&u.k!==m;)(u.e.f&Xe)===0&&(h??(h=new Set)).add(u),I.push(u),u=u.next;if(u===null)continue;p=u}x.push(p),g=p,u=p.next}if(u!==null||h!==void 0){for(var q=h===void 0?[]:Cr(h);u!==null;)(u.e.f&Xe)===0&&q.push(u),u=u.next;var H=q.length;if(H>0){var N=(i&cn)!==0&&c===0?r:null;if(a){for(b=0;b<H;b+=1)(de=q[b].a)==null||de.measure();for(b=0;b<H;b+=1)(fe=q[b].a)==null||fe.fix()}ha(t,q,N,f)}}a&&Ht(()=>{var X;if(k!==void 0)for(p of k)(X=p.a)==null||X.apply()}),P.first=t.first&&t.first.e,P.last=g&&g.e}function ga(e,t,r,n){(n&ae)!==0&&$r(e.v,t),(n&mt)!==0?$r(e.i,r):e.i=r}function ai(e,t,r,n,i,o,s,a,l,c){var f=(l&ae)!==0,d=(l&ao)===0,u=f?d?ft(i,!1,!1):Ct(i):i,h=(l&mt)===0?s:Ct(s),g={i:h,v:u,k:o,a:null,e:null,prev:r,next:n};try{return g.e=tt(()=>a(e,u,h,c),O),g.e.prev=r&&r.e,g.e.next=n&&n.e,r===null?t.first=g:(r.next=g,r.e.next=g.e),n!==null&&(n.prev=g,n.e.prev=g.e),g}finally{}}function si(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=Qe(o);i.before(o),o=s}}function lt(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 fr(e,t,r,n,i){var a;O&&xt();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 ba(e,t,r){O&&xt();var n=e,i,o;vt(()=>{i!==(i=t())&&(o&&(Ot(o),o=null),i&&(o=tt(()=>r(n,i))))},At),O&&(n=V)}function ut(e,t){Ht(()=>{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 ma(e,t){var r=void 0,n;vt(()=>{r!==(r=t())&&(n&&(ye(n),n=null),r&&(n=tt(()=>{Or(()=>r(e))})))})}function li(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=li(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wa(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=li(e))&&(n&&(n+=" "),n+=t);return n}function _a(e){return typeof e=="object"?wa(e):e??""}const ui=[...`
2
- \r\f \v\uFEFF`];function ya(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||ui.includes(n[s-1]))&&(a===n.length||ui.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ci(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 qr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ka(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(qr)),i&&l.push(...Object.keys(i).map(qr));var c=0,f=-1;const k=e.length;for(var d=0;d<k;d++){var u=e[d];if(a?u==="/"&&e[d-1]==="*"&&(a=!1):o?o===u&&(o=!1):u==="/"&&e[d+1]==="*"?a=!0:u==='"'||u==="'"?o=u:u==="("?s++:u===")"&&s--,!a&&o===!1&&s===0){if(u===":"&&f===-1)f=d;else if(u===";"||d===k-1){if(f!==-1){var h=qr(e.substring(c,f).trim());if(!l.includes(h)){u!==";"&&d++;var g=e.substring(c,d).trim();r+=" "+g+";"}}c=d+1,f=-1}}}}return n&&(r+=ci(n)),i&&(r+=ci(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ce(e,t,r,n,i,o){var s=e.__className;if(O||s!==r||s===void 0){var a=ya(r,n,o);(!O||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 c=!!o[l];(i==null||c!==!!i[l])&&e.classList.toggle(l,c)}return o}function Fr(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 Ca(e,t,r,n){var i=e.__style;if(O||i!==t){var o=ka(t,n);(!O||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Fr(e,r==null?void 0:r[0],n[0]),Fr(e,r==null?void 0:r[1],n[1],"important")):Fr(e,r,n));return n}function Yr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Qt(t))return zo();for(var n of e.options)n.selected=t.includes(di(n));return}for(n of e.options){var i=di(n);if($o(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function xa(e){var t=new MutationObserver(()=>{Yr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ir(()=>{t.disconnect()})}function di(e){return"__value"in e?e.__value:e.value}const Mt=Symbol("class"),Jt=Symbol("style"),fi=Symbol("is custom element"),vi=Symbol("is html");function Ea(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function G(e,t,r,n){var i=hi(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[_o]=r),r==null?e.removeAttribute(t):typeof r!="string"&&gi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Sa(e,t,r,n,i=!1){var o=hi(e),s=o[fi],a=!o[vi];let l=O&&s;l&&Ae(!1);var c=t||{},f=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=_a(r.class):(n||r[Mt])&&(r.class=null),r[Jt]&&(r.style??(r.style=null));var u=gi(e);for(const m in r){let p=r[m];if(f&&m==="value"&&p==null){e.value=e.__value="",c[m]=p;continue}if(m==="class"){var h=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ce(e,h,p,n,t==null?void 0:t[Mt],r[Mt]),c[m]=p,c[Mt]=r[Mt];continue}if(m==="style"){Ca(e,p,t==null?void 0:t[Jt],r[Jt]),c[m]=p,c[Jt]=r[Jt];continue}var g=c[m];if(!(p===g&&!(p===void 0&&e.hasAttribute(m)))){c[m]=p;var k=m[0]+m[1];if(k!=="$$")if(k==="on"){const b={},L="$$"+m;let A=m.slice(2);var x=oa(A);if(na(A)&&(A=A.slice(0,-7),b.capture=!0),!x&&g){if(p!=null)continue;e.removeEventListener(A,c[L],b),c[L]=null}if(p!=null)if(x)e[`__${A}`]=p,qt([A]);else{let J=function(T){c[m].call(this,T)};c[L]=ti(A,e,J,b)}else x&&(e[`__${A}`]=void 0)}else if(m==="style")G(e,m,p);else if(m==="autofocus")ea(e,!!p);else if(!s&&(m==="__value"||m==="value"&&p!=null))e.value=e.__value=p;else if(m==="selected"&&f)Ea(e,p);else{var I=m;a||(I=sa(I));var v=I==="defaultValue"||I==="defaultChecked";if(p==null&&!s&&!v)if(o[m]=null,I==="value"||I==="checked"){let b=e;const L=t===void 0;if(I==="value"){let A=b.defaultValue;b.removeAttribute(I),b.defaultValue=A,b.value=b.__value=L?A:null}else{let A=b.defaultChecked;b.removeAttribute(I),b.defaultChecked=A,b.checked=L?A:!1}}else e.removeAttribute(m);else v||u.includes(I)&&(s||typeof p!="string")?e[I]=p:typeof p!="function"&&G(e,I,p)}}}return l&&Ae(!0),c}function Kt(e,t,r=[],n,i=!1,o=kt){const s=r.map(o);var a=void 0,l={},c=e.nodeName==="SELECT",f=!1;if(vt(()=>{var u=t(...s.map(w)),h=Sa(e,a,u,n,i);f&&c&&"value"in u&&Yr(e,u.value);for(let k of Object.getOwnPropertySymbols(l))u[k]||ye(l[k]);for(let k of Object.getOwnPropertySymbols(u)){var g=u[k];k.description===ho&&(!a||g!==a[k])&&(l[k]&&ye(l[k]),l[k]=tt(()=>ma(e,()=>g))),h[k]=g}a=h}),c){var d=e;Or(()=>{Yr(d,a.value,!0),xa(d)})}f=!0}function hi(e){return e.__attributes??(e.__attributes={[fi]:e.nodeName.includes("-"),[vi]:e.namespaceURI===vo})}var pi=new Map;function gi(e){var t=pi.get(e.nodeName);if(t)return t;pi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=hn(n);for(var o in r)r[o].set&&t.push(o);n=xr(n)}return t}function bi(e,t){return e===t||(e==null?void 0:e[Re])===t}function ct(e={},t,r,n){return Or(()=>{var i,o;return or(()=>{i=o,o=(n==null?void 0:n())||[],ze(()=>{e!==r(...o)&&(t(e,...o),i&&bi(r(...i),e)&&t(null,...i))})}),()=>{Ht(()=>{o&&bi(r(...o),e)&&t(null,...o)})}}),e}function Ia(e=!1){const t=Z,r=t.l.u;if(!r)return;let n=()=>Qn(t.s);if(e){let i=0,o={};const s=kt(()=>{let a=!1;const l=t.s;for(const c in l)l[c]!==o[c]&&(o[c]=l[c],a=!0);return a&&i++,i});n=()=>w(s)}r.b.length&&Do(()=>{mi(t,n),jt(r.b)}),zr(()=>{const i=ze(()=>r.m.map(mo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&zr(()=>{mi(t,n),jt(r.a)})}function mi(e,t){if(e.l.s)for(const r of e.l.s)w(r);t()}function Zr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Se;const n=ze(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Lt=[];function Ma(e,t){return{subscribe:vr(e,t).subscribe}}function vr(e,t=Se){let r=null;const n=new Set;function i(a){if(kn(e,a)&&(e=a,r)){const l=!Lt.length;for(const c of n)c[1](),Lt.push(c,e);if(l){for(let c=0;c<Lt.length;c+=2)Lt[c][0](Lt[c+1]);Lt.length=0}}}function o(a){i(a(e))}function s(a,l=Se){const c=[a,l];return n.add(c),n.size===1&&(r=t(i,o)||Se),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function La(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 Ma(r,(s,a)=>{let l=!1;const c=[];let f=0,d=Se;const u=()=>{if(f)return;d();const g=t(n?c[0]:c,s,a);o?s(g):d=typeof g=="function"?g:Se},h=i.map((g,k)=>Zr(g,x=>{c[k]=x,f&=~(1<<k),l&&u()},()=>{f|=1<<k}));return l=!0,u(),function(){jt(h),d(),l=!1}})}function Na(e){let t;return Zr(e,r=>t=r)(),t}let hr=!1,Jr=Symbol();function Te(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:Se});if(n.store!==e&&!(Jr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Se;else{var i=!0;n.unsubscribe=Zr(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&Jr in r?Na(e):w(n.source)}function Wt(){const e={};function t(){ir(()=>{for(var r in e)e[r].unsubscribe();Nt(e,Jr,{enumerable:!1,value:!0})})}return[e,t]}function Ta(e){var t=hr;try{return hr=!1,[e(),hr]}finally{hr=t}}const ja={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 pr(e,t,r){return new Proxy({props:e,exclude:t},ja)}const $a={get(e,t){if(!e.exclude.includes(t))return w(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=y({get[t](){return e.props[t]}},t,dn)),e.special[t](r),Nn(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),Nn(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 wi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},$a)}const Aa={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Tt(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];Tt(i)&&(i=i());const o=Ke(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(Tt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Ke(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Re||t===Tr)return!1;for(let r of e.props)if(Tt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Tt(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 _i(...e){return new Proxy({props:e},Aa)}function Ua(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var I;var i=!_t||(r&lo)!==0,o=(r&uo)!==0,s=(r&co)!==0,a=n,l=!0,c=()=>(l&&(l=!1,a=s?ze(n):n),a),f;if(o){var d=Re in e||Tr in e;f=((I=Ke(e,t))==null?void 0:I.set)??(d&&t in e?v=>e[t]=v:void 0)}var u,h=!1;o?[u,h]=Ta(()=>e[t]):u=e[t],u===void 0&&n!==void 0&&(u=c(),f&&(i&&So(),f(u)));var g;if(i?g=()=>{var v=e[t];return v===void 0?c():(l=!0,v)}:g=()=>{var v=e[t];return v!==void 0&&(a=void 0),v===void 0?a:v},i&&(r&dn)===0)return g;if(f){var k=e.$$legacy;return function(v,m){return arguments.length>0?((!i||!m||k||h)&&f(m?g():v),v):g()}}var x=((r&so)!==0?kt:Sn)(g);return o&&w(x),function(v,m){if(arguments.length>0){const p=m?w(x):i&&o?yt(v):v;return U(x,p),a!==void 0&&(a=p),v}return Ua(x)?x.v:w(x)}}function za(e){return new Oa(e)}class Oa{constructor(t){ln(this,nt);ln(this,je);var o;var r=new Map,n=(s,a)=>{var l=ft(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Tr?!0:(w(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return U(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});un(this,je,(t.hydrate?ca:ni)(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)&&_(),un(this,nt,i.$$events);for(const s of Object.keys(me(this,je)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return me(this,je)[s]},set(a){me(this,je)[s]=a},enumerable:!0});me(this,je).$set=s=>{Object.assign(i,s)},me(this,je).$destroy=()=>{da(me(this,je))}}$set(t){me(this,je).$set(t)}$on(t,r){me(this,nt)[t]=me(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return me(this,nt)[t].push(n),()=>{me(this,nt)[t]=me(this,nt)[t].filter(i=>i!==n)}}$destroy(){me(this,je).$destroy()}}nt=new WeakMap,je=new WeakMap;let yi;typeof HTMLElement=="function"&&(yi=class extends HTMLElement{constructor(t,r,n){super();Ee(this,"$$ctor");Ee(this,"$$s");Ee(this,"$$c");Ee(this,"$$cn",!1);Ee(this,"$$d",{});Ee(this,"$$r",!1);Ee(this,"$$p_d",{});Ee(this,"$$l",{});Ee(this,"$$l_u",new Map);Ee(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),M(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Da(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]=gr(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=za({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ho(()=>{or(()=>{var i;this.$$r=!0;for(const o of er(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=gr(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]=gr(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 er(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function gr(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 Da(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function te(e,t,r,n,i,o){let s=class extends yi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return er(t).map(a=>(t[a].attribute||a).toLowerCase())}};return er(t).forEach(a=>{Nt(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=gr(a,l,t),this.$$d[a]=l;var c=this.$$c;if(c){var f=(d=Ke(c,a))==null?void 0:d.get;f?c[a]=l:c.$set({[a]:l})}}})}),n.forEach(a=>{Nt(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Ha=se("<a><!></a>"),Va=se("<button><!></button>");const Pa={hash:"svelte-1e50suo",code:`:root,
1
+ (function($,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):($=typeof globalThis<"u"?globalThis:$||self,Z($.graymatter={}))})(this,function($){"use strict";var Il=Object.defineProperty;var ao=$=>{throw TypeError($)};var Ml=($,Z,se)=>Z in $?Il($,Z,{enumerable:!0,configurable:!0,writable:!0,value:se}):$[Z]=se;var Le=($,Z,se)=>Ml($,typeof Z!="symbol"?Z+"":Z,se),so=($,Z,se)=>Z.has($)||ao("Cannot "+se);var me=($,Z,se)=>(so($,Z,"read from private field"),se?se.call($):Z.get($)),un=($,Z,se)=>Z.has($)?ao("Cannot add the same private member more than once"):Z instanceof WeakSet?Z.add($):Z.set($,se),cn=($,Z,se,pt)=>(so($,Z,"write to private field"),pt?pt.call($,se):Z.set($,se),se);var Yi,nt,je;typeof window<"u"&&((Yi=window.__svelte??(window.__svelte={})).v??(Yi.v=new Set)).add("5");const se=1,pt=2,dn=4,lo=8,uo=16,co=1,vo=2,vn=4,fo=8,ho=16,fn=1,bo=2,kr="[",xr="[!",Cr="]",mt={},pe=Symbol(),go="http://www.w3.org/1999/xhtml",po="@attach",hn=!1;var er=Array.isArray,mo=Array.prototype.indexOf,Er=Array.from,tr=Object.keys,Nt=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,wo=Object.prototype,_o=Array.prototype,Sr=Object.getPrototypeOf,gn=Object.isExtensible;function jt(e){return typeof e=="function"}const we=()=>{};function yo(e){return e()}function Tt(e){for(var t=0;t<e.length;t++)e[t]()}const ze=2,Lr=4,At=8,zr=16,Ke=32,dt=64,Ir=128,_e=256,rr=512,ye=1024,We=2048,ot=4096,Ge=8192,Mr=16384,pn=32768,Ut=65536,mn=1<<17,ko=1<<18,wn=1<<19,Nr=1<<20,jr=1<<21,Re=Symbol("$state"),Tr=Symbol("legacy props"),xo=Symbol(""),_n=new class extends Error{constructor(){super(...arguments);Le(this,"name","StaleReactionError");Le(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},yn=3,$t=8;function kn(e){return e===this.v}function xn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cn(e){return!xn(e,this.v)}function Co(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Eo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function So(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Io(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Mo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function No(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let wt=!1,To=!1;function Ao(){wt=!0}function Uo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let J=null;function En(e){J=e}function X(e,t=!1,r){var n=J={p:J,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};wt&&!t&&(J.l={s:null,u:null,r1:[],r2:kt(!1)}),or(()=>{n.d=!0})}function Q(e){const t=J;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=V,n=D;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];at(o.effect),Ye(o.reaction),qn(o.fn)}}finally{at(r),Ye(n)}}J=t.p,t.m=!0}return e||{}}function nr(){return!wt||J!==null&&J.l===null}function _t(e){if(typeof e!="object"||e===null||Re in e)return e;const t=Sr(e);if(t!==wo&&t!==_o)return e;var r=new Map,n=er(e),i=he(0),o=D,s=a=>{var u=D;Ye(o);var c=a();return Ye(u),c};return n&&r.set("length",he(e.length)),new Proxy(e,{defineProperty(a,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Mo();var v=r.get(u);return v===void 0?v=s(()=>{var d=he(c.value);return r.set(u,d),d}):U(v,c.value,!0),!0},deleteProperty(a,u){var c=r.get(u);if(c===void 0){if(u in a){const l=s(()=>he(pe));r.set(u,l),Ar(i)}}else{if(n&&typeof u=="string"){var v=r.get("length"),d=Number(u);Number.isInteger(d)&&d<v.v&&U(v,d)}U(c,pe),Ar(i)}return!0},get(a,u,c){var b;if(u===Re)return e;var v=r.get(u),d=u in a;if(v===void 0&&(!d||(b=Je(a,u))!=null&&b.writable)&&(v=s(()=>{var h=_t(d?a[u]:pe),k=he(h);return k}),r.set(u,v)),v!==void 0){var l=m(v);return l===pe?void 0:l}return Reflect.get(a,u,c)},getOwnPropertyDescriptor(a,u){var c=Reflect.getOwnPropertyDescriptor(a,u);if(c&&"value"in c){var v=r.get(u);v&&(c.value=m(v))}else if(c===void 0){var d=r.get(u),l=d==null?void 0:d.v;if(d!==void 0&&l!==pe)return{enumerable:!0,configurable:!0,value:l,writable:!0}}return c},has(a,u){var l;if(u===Re)return!0;var c=r.get(u),v=c!==void 0&&c.v!==pe||Reflect.has(a,u);if(c!==void 0||V!==null&&(!v||(l=Je(a,u))!=null&&l.writable)){c===void 0&&(c=s(()=>{var b=v?_t(a[u]):pe,h=he(b);return h}),r.set(u,c));var d=m(c);if(d===pe)return!1}return v},set(a,u,c,v){var g;var d=r.get(u),l=u in a;if(n&&u==="length")for(var b=c;b<d.v;b+=1){var h=r.get(b+"");h!==void 0?U(h,pe):b in a&&(h=s(()=>he(pe)),r.set(b+"",h))}if(d===void 0)(!l||(g=Je(a,u))!=null&&g.writable)&&(d=s(()=>he(void 0)),U(d,_t(c)),r.set(u,d));else{l=d.v!==pe;var k=s(()=>_t(c));U(d,k)}var C=Reflect.getOwnPropertyDescriptor(a,u);if(C!=null&&C.set&&C.set.call(v,c),!l){if(n&&typeof u=="string"){var z=r.get("length"),p=Number(u);Number.isInteger(p)&&p>=z.v&&U(z,p+1)}Ar(i)}return!0},ownKeys(a){m(i);var u=Reflect.ownKeys(a).filter(d=>{var l=r.get(d);return l===void 0||l.v!==pe});for(var[c,v]of r)v.v!==pe&&!(c in a)&&u.push(c);return u},setPrototypeOf(){No()}})}function Ar(e,t=1){U(e,e.v+t)}function Sn(e){try{if(e!==null&&typeof e=="object"&&Re in e)return e[Re]}catch{}return e}function $o(e,t){return Object.is(Sn(e),Sn(t))}function yt(e){var t=ze|We,r=D!==null&&(D.f&ze)!==0?D:null;return V===null||r!==null&&(r.f&_e)!==0?t|=_e:V.f|=wn,{ctx:J,deps:null,effects:null,equals:kn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??V,ac:null}}function ne(e){const t=yt(e);return Kn(t),t}function Ln(e){const t=yt(e);return t.equals=Cn,t}function zn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)xe(t[r])}}function Oo(e){for(var t=e.parent;t!==null;){if((t.f&ze)===0)return t;t=t.parent}return null}function In(e){var t,r=V;at(Oo(e));try{zn(e),t=Xn(e)}finally{at(r)}return t}function Mn(e){var t=In(e);if(e.equals(t)||(e.v=t,e.wv=Wn()),!Et){var r=(st||(e.f&_e)!==0)&&e.deps!==null?ot:ye;De(e,r)}}const Ot=new Map;function kt(e,t){var r={f:0,v:e,reactions:null,equals:kn,rv:0,wv:0};return r}function he(e,t){const r=kt(e);return Kn(r),r}function vt(e,t=!1,r=!0){var i;const n=kt(e);return t||(n.equals=Cn),wt&&r&&J!==null&&J.l!==null&&((i=J.l).s??(i.s=[])).push(n),n}function Do(e,t){return U(e,Oe(()=>m(e))),t}function U(e,t,r=!1){D!==null&&(!Fe||(D.f&mn)!==0)&&nr()&&(D.f&(ze|zr|mn))!==0&&!((ie==null?void 0:ie.reaction)===D&&ie.sources.includes(e))&&jo();let n=r?_t(t):t;return Ur(e,n)}function Ur(e,t){if(!e.equals(t)){var r=e.v;Et?Ot.set(e,t):Ot.set(e,r),e.v=t,(e.f&ze)!==0&&((e.f&We)!==0&&In(e),De(e,(e.f&_e)===0?ye:ot)),e.wv=Wn(),jn(e,We),nr()&&V!==null&&(V.f&ye)!==0&&(V.f&(Ke|dt))===0&&(Me===null?Go([e]):Me.push(e))}return t}function Nn(e,t=1){var r=m(e),n=t===1?r++:r--;return U(e,r),n}function jn(e,t){var r=e.reactions;if(r!==null)for(var n=nr(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&We)===0&&(!n&&s===V||(De(s,t),(a&(ye|_e))!==0&&((a&ze)!==0?jn(s,ot):vr(s))))}}function ir(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ho(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let O=!1;function Ue(e){O=e}let q;function $e(e){if(e===null)throw ir(),mt;return q=e}function xt(){return $e(Xe(q))}function S(e){if(O){if(Xe(q)!==null)throw ir(),mt;q=e}}function Be(e=1){if(O){for(var t=e,r=q;t--;)r=Xe(r);q=r}}function $r(){for(var e=0,t=q;;){if(t.nodeType===$t){var r=t.data;if(r===Cr){if(e===0)return t;e-=1}else(r===kr||r===xr)&&(e+=1)}var n=Xe(t);t.remove(),t=n}}function Tn(e){if(!e||e.nodeType!==$t)throw ir(),mt;return e.data}var An,Un,$n,On;function Or(){if(An===void 0){An=window,Un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;$n=Je(t,"firstChild").get,On=Je(t,"nextSibling").get,gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gn(r)&&(r.__t=void 0)}}function Ct(e=""){return document.createTextNode(e)}function Ie(e){return $n.call(e)}function Xe(e){return On.call(e)}function L(e,t){if(!O)return Ie(e);var r=Ie(q);if(r===null)r=q.appendChild(Ct());else if(t&&r.nodeType!==yn){var n=Ct();return r==null||r.before(n),$e(n),n}return $e(r),r}function Qe(e,t){if(!O){var r=Ie(e);return r instanceof Comment&&r.data===""?Xe(r):r}return q}function ve(e,t=1,r=!1){let n=O?q:e;for(var i;t--;)i=n,n=Xe(n);if(!O)return n;if(r&&(n==null?void 0:n.nodeType)!==yn){var o=Ct();return n===null?i==null||i.after(o):n.before(o),$e(o),o}return $e(n),n}function Dn(e){e.textContent=""}function Hn(e){V===null&&D===null&&So(),D!==null&&(D.f&_e)!==0&&V===null&&Eo(),Et&&Co()}function qo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function et(e,t,r,n=!0){var i=V,o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|We,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{dr(o),o.f|=pn}catch(u){throw xe(o),u}else t!==null&&vr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(wn|Ir))===0;if(!s&&n&&(i!==null&&qo(o,i),D!==null&&(D.f&ze)!==0)){var a=D;(a.effects??(a.effects=[])).push(o)}return o}function or(e){const t=et(At,null,!1);return De(t,ye),t.teardown=e,t}function Dr(e){Hn();var t=V!==null&&(V.f&Ke)!==0&&J!==null&&!J.m;if(t){var r=J;(r.e??(r.e=[])).push({fn:e,effect:V,reaction:D})}else return qn(e)}function qn(e){return et(Lr|jr,e,!1)}function Vo(e){return Hn(),et(At|jr,e,!0)}function Po(e){const t=et(dt,e,!0);return()=>{xe(t)}}function Ro(e){const t=et(dt,e,!0);return(r={})=>new Promise(n=>{r.outro?Dt(t,()=>{xe(t),n(void 0)}):(xe(t),n(void 0))})}function Hr(e){return et(Lr,e,!1)}function Bo(e,t){var r=J,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=ar(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),Oe(t))})}function Fo(){var e=J;ar(()=>{if(m(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&ye)!==0&&De(r,ot),Bt(r)&&dr(r),t.ran=!1}e.l.r2.v=!1}})}function ar(e){return et(At,e,!0)}function ke(e,t=[],r=yt){const n=t.map(r);return ft(()=>e(...n.map(m)))}function ft(e,t=0){var r=et(At|zr|t,e,!0);return r}function tt(e,t=!0){return et(At|Ke,e,!0,t)}function Vn(e){var t=e.teardown;if(t!==null){const r=Et,n=D;Jn(!0),Ye(null);try{t.call(null)}finally{Jn(r),Ye(n)}}}function Pn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(_n);var n=r.next;(r.f&dt)!==0?r.parent=null:xe(r,t),r=n}}function Yo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ke)===0&&xe(t),t=r}}function xe(e,t=!0){var r=!1;(t||(e.f&ko)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Zo(e.nodes_start,e.nodes_end),r=!0),Pn(e,t&&!r),cr(e,0),De(e,Mr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Vn(e);var i=e.parent;i!==null&&i.first!==null&&Rn(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 r=e===t?null:Xe(e);e.remove(),e=r}}function Rn(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 Dt(e,t){var r=[];qr(e,r,!0),Bn(r,()=>{xe(e),t&&t()})}function Bn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function qr(e,t,r){if((e.f&Ge)===0){if(e.f^=Ge,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&Ut)!==0||(n.f&Ke)!==0;qr(n,t,o?r:!1),n=i}}}function sr(e){Fn(e,!0)}function Fn(e,t){if((e.f&Ge)!==0){e.f^=Ge;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ut)!==0||(r.f&Ke)!==0;Fn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Ht=[],Vr=[];function Yn(){var e=Ht;Ht=[],Tt(e)}function Jo(){var e=Vr;Vr=[],Tt(e)}function qt(e){Ht.length===0&&queueMicrotask(Yn),Ht.push(e)}function Ko(){Ht.length>0&&Yn(),Vr.length>0&&Jo()}function Wo(e){var t=V;if((t.f&pn)===0){if((t.f&Ir)===0)throw e;t.fn(e)}else Zn(e,t)}function Zn(e,t){for(;t!==null;){if((t.f&Ir)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Vt=!1,Pt=null,ht=!1,Et=!1;function Jn(e){Et=e}let Rt=[],Nl=[],D=null,Fe=!1;function Ye(e){D=e}let V=null;function at(e){V=e}let ie=null;function Kn(e){D!==null&&D.f&Nr&&(ie===null?ie={reaction:D,sources:[e]}:ie.sources.push(e))}let be=null,Ce=0,Me=null;function Go(e){Me=e}let lr=1,ur=0,st=!1;function Wn(){return++lr}function Bt(e){var d;var t=e.f;if((t&We)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&_e)!==0;if(r!==null){var i,o,s=(t&rr)!==0,a=n&&V!==null&&!st,u=r.length;if(s||a){var c=e,v=c.parent;for(i=0;i<u;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(c)))&&(o.reactions??(o.reactions=[])).push(c);s&&(c.f^=rr),a&&v!==null&&(v.f&_e)===0&&(c.f^=_e)}for(i=0;i<u;i++)if(o=r[i],Bt(o)&&Mn(o),o.wv>e.wv)return!0}(!n||V!==null&&!st)&&De(e,ye)}return!1}function Gn(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(ie==null?void 0:ie.reaction)===D&&ie.sources.includes(e)||((o.f&ze)!==0?Gn(o,t,!1):t===o&&(r?De(o,We):(o.f&ye)!==0&&De(o,ot),vr(o)))}}function Xn(e){var b;var t=be,r=Ce,n=Me,i=D,o=st,s=ie,a=J,u=Fe,c=e.f;be=null,Ce=0,Me=null,st=(c&_e)!==0&&(Fe||!ht||D===null),D=(c&(Ke|dt))===0?e:null,ie=null,En(e.ctx),Fe=!1,ur++,e.f|=Nr,e.ac!==null&&(e.ac.abort(_n),e.ac=null);try{var v=(0,e.fn)(),d=e.deps;if(be!==null){var l;if(cr(e,Ce),d!==null&&Ce>0)for(d.length=Ce+be.length,l=0;l<be.length;l++)d[Ce+l]=be[l];else e.deps=d=be;if(!st||(c&ze)!==0&&e.reactions!==null)for(l=Ce;l<d.length;l++)((b=d[l]).reactions??(b.reactions=[])).push(e)}else d!==null&&Ce<d.length&&(cr(e,Ce),d.length=Ce);if(nr()&&Me!==null&&!Fe&&d!==null&&(e.f&(ze|ot|We))===0)for(l=0;l<Me.length;l++)Gn(Me[l],e);return i!==null&&i!==e&&(ur++,Me!==null&&(n===null?n=Me:n.push(...Me))),v}catch(h){Wo(h)}finally{be=t,Ce=r,Me=n,D=i,st=o,ie=s,En(a),Fe=u,e.f^=Nr}}function Xo(e,t){let r=t.reactions;if(r!==null){var n=mo.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&ze)!==0&&(be===null||!be.includes(t))&&(De(t,ot),(t.f&(_e|rr))===0&&(t.f^=rr),zn(t),cr(t,0))}function cr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xo(e,r[n])}function dr(e){var t=e.f;if((t&Mr)===0){De(e,ye);var r=V,n=ht;V=e,ht=!0;try{(t&zr)!==0?Yo(e):Pn(e),Vn(e);var i=Xn(e);e.teardown=typeof i=="function"?i:null,e.wv=lr;var o;hn&&To&&(e.f&We)!==0&&e.deps}finally{ht=n,V=r}}}function Qo(){try{Lo()}catch(e){if(Pt!==null)Zn(e,Pt);else throw e}}function Qn(){var e=ht;try{var t=0;for(ht=!0;Rt.length>0;){t++>1e3&&Qo();var r=Rt,n=r.length;Rt=[];for(var i=0;i<n;i++){var o=ta(r[i]);ea(o)}Ot.clear()}}finally{Vt=!1,ht=e,Pt=null}}function ea(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Mr|Ge))===0&&Bt(n)){var i=lr;if(dr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Rn(n):n.fn=null),lr>i&&(n.f&jr)!==0)break}}for(;r<t;r+=1)vr(e[r])}}function vr(e){Vt||(Vt=!0,queueMicrotask(Qn));for(var t=Pt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(dt|Ke))!==0){if((r&ye)===0)return;t.f^=ye}}Rt.push(t)}function ta(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ke|dt))!==0,o=i&&(n&ye)!==0;if(!o&&(n&Ge)===0){(n&Lr)!==0?t.push(r):i?r.f^=ye:Bt(r)&&dr(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(Ko(),Rt.length===0)return Vt=!1,Pt=null,t;Vt=!0,Qn()}}function m(e){var t=e.f,r=(t&ze)!==0;if(D!==null&&!Fe){if((ie==null?void 0:ie.reaction)!==D||!(ie!=null&&ie.sources.includes(e))){var n=D.deps;e.rv<ur&&(e.rv=ur,be===null&&n!==null&&n[Ce]===e?Ce++:be===null?be=[e]:(!st||!be.includes(e))&&be.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&_e)===0&&(i.f^=_e)}return r&&(i=e,Bt(i)&&Mn(i)),Et&&Ot.has(e)?Ot.get(e):e.v}function Oe(e){var t=Fe;try{return Fe=!0,e()}finally{Fe=t}}const ra=-7169;function De(e,t){e.f=e.f&ra|t}function ei(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Re in e)Pr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Re in r&&Pr(r)}}}function Pr(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{Pr(e[n],t)}catch{}const r=Sr(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=bn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function na(e,t){if(t){const r=document.body;e.autofocus=!0,qt(()=>{document.activeElement===r&&e.focus()})}}function ia(e){var t=D,r=V;Ye(null),at(null);try{return e()}finally{Ye(t),at(r)}}const ti=new Set,Rr=new Set;function ri(e,t,r,n={}){function i(o){if(n.capture||Yt.call(t,o),!o.cancelBubble)return ia(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?qt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function fe(e,t,r,n,i){var o={capture:n,passive:i},s=ri(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&or(()=>{t.removeEventListener(e,s,o)})}function Ft(e){for(var t=0;t<e.length;t++)ti.add(e[t]);for(var r of Rr)r(e)}function Yt(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;u<=c&&(s=u)}if(o=i[s]||e.target,o!==t){Nt(e,"currentTarget",{configurable:!0,get(){return o||r}});var v=D,d=V;Ye(null),at(null);try{for(var l,b=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(er(k)){var[C,...z]=k;C.apply(o,[e,...z])}else k.call(o,e)}catch(g){l?b.push(g):l=g}if(e.cancelBubble||h===t||h===null)break;o=h}if(l){for(let g of b)queueMicrotask(()=>{throw g});throw l}}finally{e.__root=t,delete e.currentTarget,Ye(v),at(d)}}}function ni(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=V;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function oe(e,t){var r=(t&fn)!==0,n=(t&bo)!==0,i,o=!e.startsWith("<!>");return()=>{if(O)return rt(q,null),q;i===void 0&&(i=ni(o?e:"<!>"+e),r||(i=Ie(i)));var s=n||Un?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ie(s),u=s.lastChild;rt(a,u)}else rt(s,s);return s}}function oa(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&fn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(O)return rt(q,null),q;if(!s){var a=ni(o),u=Ie(a);if(i)for(s=document.createDocumentFragment();Ie(u);)s.appendChild(Ie(u));else s=Ie(u)}var c=s.cloneNode(!0);if(i){var v=Ie(c),d=c.lastChild;rt(v,d)}else rt(c,c);return c}}function G(e,t){return oa(e,t,"svg")}function St(){if(O)return rt(q,null),q;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ct();return e.append(t,r),rt(t,r),e}function N(e,t){if(O){V.nodes_end=q,xt();return}e!==null&&e.before(t)}function aa(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const sa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function la(e){return sa.includes(e)}const ua={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 ca(e){return e=e.toLowerCase(),ua[e]??e}const da=["touchstart","touchmove"];function va(e){return da.includes(e)}function Zt(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 ii(e,t){return oi(e,t)}function fa(e,t){Or(),t.intro=t.intro??!1;const r=t.target,n=O,i=q;try{for(var o=Ie(r);o&&(o.nodeType!==$t||o.data!==kr);)o=Xe(o);if(!o)throw mt;Ue(!0),$e(o),xt();const s=oi(e,{...t,anchor:o});if(q===null||q.nodeType!==$t||q.data!==Cr)throw ir(),mt;return Ue(!1),s}catch(s){if(s===mt)return t.recover===!1&&zo(),Or(),Dn(r),Ue(!1),ii(e,t);throw s}finally{Ue(n),$e(i)}}const Lt=new Map;function oi(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Or();var a=new Set,u=d=>{for(var l=0;l<d.length;l++){var b=d[l];if(!a.has(b)){a.add(b);var h=va(b);t.addEventListener(b,Yt,{passive:h});var k=Lt.get(b);k===void 0?(document.addEventListener(b,Yt,{passive:h}),Lt.set(b,1)):Lt.set(b,k+1)}}};u(Er(ti)),Rr.add(u);var c=void 0,v=Ro(()=>{var d=r??t.appendChild(Ct());return tt(()=>{if(o){X({});var l=J;l.c=o}i&&(n.$$events=i),O&&rt(d,null),c=e(d,n)||{},O&&(V.nodes_end=q),o&&Q()}),()=>{var h;for(var l of a){t.removeEventListener(l,Yt);var b=Lt.get(l);--b===0?(document.removeEventListener(l,Yt),Lt.delete(l)):Lt.set(l,b)}Rr.delete(u),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return Br.set(c,v),c}let Br=new WeakMap;function ha(e,t){const r=Br.get(e);return r?(Br.delete(e),r(t)):Promise.resolve()}function fr(e,t,...r){var n=e,i=we,o;ft(()=>{i!==(i=t())&&(o&&(xe(o),o=null),o=tt(()=>i(n,...r)))},Ut),O&&(n=q)}function Jt(e){J===null&&Uo(),wt&&J.l!==null?ba(J).m.push(e):Dr(()=>{const t=Oe(e);if(typeof t=="function")return t})}function ba(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function ee(e,t,[r,n]=[0,0]){O&&r===0&&xt();var i=e,o=null,s=null,a=pe,u=r>0?Ut:0,c=!1;const v=(l,b=!0)=>{c=!0,d(b,l)},d=(l,b)=>{if(a===(a=l))return;let h=!1;if(O&&n!==-1){if(r===0){const C=Tn(i);C===kr?n=0:C===xr?n=1/0:(n=parseInt(C.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=$r(),$e(i),Ue(!1),h=!0,n=-1)}a?(o?sr(o):b&&(o=tt(()=>b(i))),s&&Dt(s,()=>{s=null})):(s?sr(s):b&&(s=tt(()=>b(i,[r+1,n]))),o&&Dt(o,()=>{o=null})),h&&Ue(!0)};ft(()=>{c=!1,t(v),c||d(null,null)},u),O&&(i=q)}function ga(e,t){return t}function pa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)qr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var u=r.parentNode;Dn(u),u.append(r),n.clear(),lt(e,t[0].prev,t[o-1].next)}Bn(i,()=>{for(var c=0;c<o;c++){var v=t[c];a||(n.delete(v.k),lt(e,v.prev,v.next)),xe(v.e,!a)}})}function ai(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},u=(t&dn)!==0;if(u){var c=e;s=O?$e(Ie(c)):c.appendChild(Ct())}O&&xt();var v=null,d=!1,l=Ln(()=>{var b=r();return er(b)?b:b==null?[]:Er(b)});ft(()=>{var b=m(l),h=b.length;if(d&&h===0)return;d=h===0;let k=!1;if(O){var C=Tn(s)===xr;C!==(h===0)&&(s=$r(),$e(s),Ue(!1),k=!0)}if(O){for(var z=null,p,g=0;g<h;g++){if(q.nodeType===$t&&q.data===Cr){s=q,k=!0,Ue(!1);break}var f=b[g],w=n(f,g);p=si(q,a,z,null,f,w,g,i,t,r),a.items.set(w,p),z=p}h>0&&$e($r())}O||ma(b,a,s,i,t,n,r),o!==null&&(h===0?v?sr(v):v=tt(()=>o(s)):v!==null&&Dt(v,()=>{v=null})),k&&Ue(!0),m(l)}),O&&(s=q)}function ma(e,t,r,n,i,o,s){var I,R,re,ce;var a=(i&lo)!==0,u=(i&(se|pt))!==0,c=e.length,v=t.items,d=t.first,l=d,b,h=null,k,C=[],z=[],p,g,f,w;if(a)for(w=0;w<c;w+=1)p=e[w],g=o(p,w),f=v.get(g),f!==void 0&&((I=f.a)==null||I.measure(),(k??(k=new Set)).add(f));for(w=0;w<c;w+=1){if(p=e[w],g=o(p,w),f=v.get(g),f===void 0){var E=l?l.e.nodes_start:r;h=si(E,t,h,h===null?t.first:h.next,p,g,w,n,i,s),v.set(g,h),C=[],z=[],l=h.next;continue}if(u&&wa(f,p,w,i),(f.e.f&Ge)!==0&&(sr(f.e),a&&((R=f.a)==null||R.unfix(),(k??(k=new Set)).delete(f))),f!==l){if(b!==void 0&&b.has(f)){if(C.length<z.length){var j=z[0],P;h=j.prev;var M=C[0],A=C[C.length-1];for(P=0;P<C.length;P+=1)li(C[P],j,r);for(P=0;P<z.length;P+=1)b.delete(z[P]);lt(t,M.prev,A.next),lt(t,h,M),lt(t,A,j),l=j,h=A,w-=1,C=[],z=[]}else b.delete(f),li(f,l,r),lt(t,f.prev,f.next),lt(t,f,h===null?t.first:h.next),lt(t,h,f),h=f;continue}for(C=[],z=[];l!==null&&l.k!==g;)(l.e.f&Ge)===0&&(b??(b=new Set)).add(l),z.push(l),l=l.next;if(l===null)continue;f=l}C.push(f),h=f,l=f.next}if(l!==null||b!==void 0){for(var B=b===void 0?[]:Er(b);l!==null;)(l.e.f&Ge)===0&&B.push(l),l=l.next;var H=B.length;if(H>0){var ue=(i&dn)!==0&&c===0?r:null;if(a){for(w=0;w<H;w+=1)(re=B[w].a)==null||re.measure();for(w=0;w<H;w+=1)(ce=B[w].a)==null||ce.fix()}pa(t,B,ue,v)}}a&&qt(()=>{var ae;if(k!==void 0)for(f of k)(ae=f.a)==null||ae.apply()}),V.first=t.first&&t.first.e,V.last=h&&h.e}function wa(e,t,r,n){(n&se)!==0&&Ur(e.v,t),(n&pt)!==0?Ur(e.i,r):e.i=r}function si(e,t,r,n,i,o,s,a,u,c){var v=(u&se)!==0,d=(u&uo)===0,l=v?d?vt(i,!1,!1):kt(i):i,b=(u&pt)===0?s:kt(s),h={i:b,v:l,k:o,a:null,e:null,prev:r,next:n};try{return h.e=tt(()=>a(e,l,b,c),O),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?t.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function li(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=Xe(o);i.before(o),o=s}}function lt(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 ui(e,t,r,n,i){var a;O&&xt();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 _a(e,t,r){O&&xt();var n=e,i,o;ft(()=>{i!==(i=t())&&(o&&(Dt(o),o=null),i&&(o=tt(()=>r(n,i))))},Ut),O&&(n=q)}function ut(e,t){qt(()=>{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 ya(e,t){var r=void 0,n;ft(()=>{r!==(r=t())&&(n&&(xe(n),n=null),r&&(n=tt(()=>{Hr(()=>r(e))})))})}function ci(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=ci(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ka(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ci(e))&&(n&&(n+=" "),n+=t);return n}function xa(e){return typeof e=="object"?ka(e):e??""}const di=[...`
2
+ \r\f \v\uFEFF`];function Ca(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||di.includes(n[s-1]))&&(a===n.length||di.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function vi(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 Fr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ea(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,u=[];n&&u.push(...Object.keys(n).map(Fr)),i&&u.push(...Object.keys(i).map(Fr));var c=0,v=-1;const k=e.length;for(var d=0;d<k;d++){var l=e[d];if(a?l==="/"&&e[d-1]==="*"&&(a=!1):o?o===l&&(o=!1):l==="/"&&e[d+1]==="*"?a=!0:l==='"'||l==="'"?o=l:l==="("?s++:l===")"&&s--,!a&&o===!1&&s===0){if(l===":"&&v===-1)v=d;else if(l===";"||d===k-1){if(v!==-1){var b=Fr(e.substring(c,v).trim());if(!u.includes(b)){l!==";"&&d++;var h=e.substring(c,d).trim();r+=" "+h+";"}}c=d+1,v=-1}}}}return n&&(r+=vi(n)),i&&(r+=vi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ee(e,t,r,n,i,o){var s=e.__className;if(O||s!==r||s===void 0){var a=Ca(r,n,o);(!O||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 u in o){var c=!!o[u];(i==null||c!==!!i[u])&&e.classList.toggle(u,c)}return o}function Yr(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 Sa(e,t,r,n){var i=e.__style;if(O||i!==t){var o=Ea(t,n);(!O||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Yr(e,r==null?void 0:r[0],n[0]),Yr(e,r==null?void 0:r[1],n[1],"important")):Yr(e,r,n));return n}function Zr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!er(t))return Ho();for(var n of e.options)n.selected=t.includes(fi(n));return}for(n of e.options){var i=fi(n);if($o(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function La(e){var t=new MutationObserver(()=>{Zr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),or(()=>{t.disconnect()})}function fi(e){return"__value"in e?e.__value:e.value}const zt=Symbol("class"),Kt=Symbol("style"),hi=Symbol("is custom element"),bi=Symbol("is html");function za(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function K(e,t,r,n){var i=gi(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&mi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ia(e,t,r,n,i=!1){var o=gi(e),s=o[hi],a=!o[bi];let u=O&&s;u&&Ue(!1);var c=t||{},v=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=xa(r.class):(n||r[zt])&&(r.class=null),r[Kt]&&(r.style??(r.style=null));var l=mi(e);for(const g in r){let f=r[g];if(v&&g==="value"&&f==null){e.value=e.__value="",c[g]=f;continue}if(g==="class"){var b=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ee(e,b,f,n,t==null?void 0:t[zt],r[zt]),c[g]=f,c[zt]=r[zt];continue}if(g==="style"){Sa(e,f,t==null?void 0:t[Kt],r[Kt]),c[g]=f,c[Kt]=r[Kt];continue}var h=c[g];if(!(f===h&&!(f===void 0&&e.hasAttribute(g)))){c[g]=f;var k=g[0]+g[1];if(k!=="$$")if(k==="on"){const w={},E="$$"+g;let j=g.slice(2);var C=la(j);if(aa(j)&&(j=j.slice(0,-7),w.capture=!0),!C&&h){if(f!=null)continue;e.removeEventListener(j,c[E],w),c[E]=null}if(f!=null)if(C)e[`__${j}`]=f,Ft([j]);else{let P=function(M){c[g].call(this,M)};c[E]=ri(j,e,P,w)}else C&&(e[`__${j}`]=void 0)}else if(g==="style")K(e,g,f);else if(g==="autofocus")na(e,!!f);else if(!s&&(g==="__value"||g==="value"&&f!=null))e.value=e.__value=f;else if(g==="selected"&&v)za(e,f);else{var z=g;a||(z=ca(z));var p=z==="defaultValue"||z==="defaultChecked";if(f==null&&!s&&!p)if(o[g]=null,z==="value"||z==="checked"){let w=e;const E=t===void 0;if(z==="value"){let j=w.defaultValue;w.removeAttribute(z),w.defaultValue=j,w.value=w.__value=E?j:null}else{let j=w.defaultChecked;w.removeAttribute(z),w.defaultChecked=j,w.checked=E?j:!1}}else e.removeAttribute(g);else p||l.includes(z)&&(s||typeof f!="string")?e[z]=f:typeof f!="function"&&K(e,z,f)}}}return u&&Ue(!0),c}function Wt(e,t,r=[],n,i=!1,o=yt){const s=r.map(o);var a=void 0,u={},c=e.nodeName==="SELECT",v=!1;if(ft(()=>{var l=t(...s.map(m)),b=Ia(e,a,l,n,i);v&&c&&"value"in l&&Zr(e,l.value);for(let k of Object.getOwnPropertySymbols(u))l[k]||xe(u[k]);for(let k of Object.getOwnPropertySymbols(l)){var h=l[k];k.description===po&&(!a||h!==a[k])&&(u[k]&&xe(u[k]),u[k]=tt(()=>ya(e,()=>h))),b[k]=h}a=b}),c){var d=e;Hr(()=>{Zr(d,a.value,!0),La(d)})}v=!0}function gi(e){return e.__attributes??(e.__attributes={[hi]:e.nodeName.includes("-"),[bi]:e.namespaceURI===go})}var pi=new Map;function mi(e){var t=pi.get(e.nodeName);if(t)return t;pi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=bn(n);for(var o in r)r[o].set&&t.push(o);n=Sr(n)}return t}function wi(e,t){return e===t||(e==null?void 0:e[Re])===t}function ct(e={},t,r,n){return Hr(()=>{var i,o;return ar(()=>{i=o,o=(n==null?void 0:n())||[],Oe(()=>{e!==r(...o)&&(t(e,...o),i&&wi(r(...i),e)&&t(null,...i))})}),()=>{qt(()=>{o&&wi(r(...o),e)&&t(null,...o)})}}),e}function Ma(e=!1){const t=J,r=t.l.u;if(!r)return;let n=()=>ei(t.s);if(e){let i=0,o={};const s=yt(()=>{let a=!1;const u=t.s;for(const c in u)u[c]!==o[c]&&(o[c]=u[c],a=!0);return a&&i++,i});n=()=>m(s)}r.b.length&&Vo(()=>{_i(t,n),Tt(r.b)}),Dr(()=>{const i=Oe(()=>r.m.map(yo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Dr(()=>{_i(t,n),Tt(r.a)})}function _i(e,t){if(e.l.s)for(const r of e.l.s)m(r);t()}function Jr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),we;const n=Oe(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const It=[];function Na(e,t){return{subscribe:hr(e,t).subscribe}}function hr(e,t=we){let r=null;const n=new Set;function i(a){if(xn(e,a)&&(e=a,r)){const u=!It.length;for(const c of n)c[1](),It.push(c,e);if(u){for(let c=0;c<It.length;c+=2)It[c][0](It[c+1]);It.length=0}}}function o(a){i(a(e))}function s(a,u=we){const c=[a,u];return n.add(c),n.size===1&&(r=t(i,o)||we),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function ja(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 Na(r,(s,a)=>{let u=!1;const c=[];let v=0,d=we;const l=()=>{if(v)return;d();const h=t(n?c[0]:c,s,a);o?s(h):d=typeof h=="function"?h:we},b=i.map((h,k)=>Jr(h,C=>{c[k]=C,v&=~(1<<k),u&&l()},()=>{v|=1<<k}));return u=!0,l(),function(){Tt(b),d(),u=!1}})}function Ta(e){let t;return Jr(e,r=>t=r)(),t}let br=!1,Kr=Symbol();function Ne(e,t,r){const n=r[t]??(r[t]={store:null,source:vt(void 0),unsubscribe:we});if(n.store!==e&&!(Kr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=we;else{var i=!0;n.unsubscribe=Jr(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&Kr in r?Ta(e):m(n.source)}function Gt(){const e={};function t(){or(()=>{for(var r in e)e[r].unsubscribe();Nt(e,Kr,{enumerable:!1,value:!0})})}return[e,t]}function Aa(e){var t=br;try{return br=!1,[e(),br]}finally{br=t}}const Ua={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 gr(e,t,r){return new Proxy({props:e,exclude:t},Ua)}const $a={get(e,t){if(!e.exclude.includes(t))return m(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=y({get[t](){return e.props[t]}},t,vn)),e.special[t](r),Nn(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),Nn(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 yi(e,t){return new Proxy({props:e,exclude:t,special:{},version:kt(0)},$a)}const Oa={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(jt(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];jt(i)&&(i=i());const o=Je(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(jt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Je(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Re||t===Tr)return!1;for(let r of e.props)if(jt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(jt(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 ki(...e){return new Proxy({props:e},Oa)}function Da(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var z;var i=!wt||(r&vo)!==0,o=(r&fo)!==0,s=(r&ho)!==0,a=n,u=!0,c=()=>(u&&(u=!1,a=s?Oe(n):n),a),v;if(o){var d=Re in e||Tr in e;v=((z=Je(e,t))==null?void 0:z.set)??(d&&t in e?p=>e[t]=p:void 0)}var l,b=!1;o?[l,b]=Aa(()=>e[t]):l=e[t],l===void 0&&n!==void 0&&(l=c(),v&&(i&&Io(),v(l)));var h;if(i?h=()=>{var p=e[t];return p===void 0?c():(u=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(a=void 0),p===void 0?a:p},i&&(r&vn)===0)return h;if(v){var k=e.$$legacy;return function(p,g){return arguments.length>0?((!i||!g||k||b)&&v(g?h():p),p):h()}}var C=((r&co)!==0?yt:Ln)(h);return o&&m(C),function(p,g){if(arguments.length>0){const f=g?m(C):i&&o?_t(p):p;return U(C,f),a!==void 0&&(a=f),p}return Da(C)?C.v:m(C)}}function Ha(e){return new qa(e)}class qa{constructor(t){un(this,nt);un(this,je);var o;var r=new Map,n=(s,a)=>{var u=vt(a,!1,!1);return r.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Tr?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,u){return U(r.get(a)??n(a,u),u),Reflect.set(s,a,u)}});cn(this,je,(t.hydrate?fa:ii)(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)&&_(),cn(this,nt,i.$$events);for(const s of Object.keys(me(this,je)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return me(this,je)[s]},set(a){me(this,je)[s]=a},enumerable:!0});me(this,je).$set=s=>{Object.assign(i,s)},me(this,je).$destroy=()=>{ha(me(this,je))}}$set(t){me(this,je).$set(t)}$on(t,r){me(this,nt)[t]=me(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return me(this,nt)[t].push(n),()=>{me(this,nt)[t]=me(this,nt)[t].filter(i=>i!==n)}}$destroy(){me(this,je).$destroy()}}nt=new WeakMap,je=new WeakMap;let xi;typeof HTMLElement=="function"&&(xi=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),N(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Va(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]=pr(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=Ha({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Po(()=>{ar(()=>{var i;this.$$r=!0;for(const o of tr(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=pr(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]=pr(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 tr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function pr(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 Va(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function te(e,t,r,n,i,o){let s=class extends xi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return tr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return tr(t).forEach(a=>{Nt(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var d;u=pr(a,u,t),this.$$d[a]=u;var c=this.$$c;if(c){var v=(d=Je(c,a))==null?void 0:d.get;v?c[a]=u:c.$set({[a]:u})}}})}),n.forEach(a=>{Nt(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}var Pa=oe("<a><!></a>"),Ra=oe("<button><!></button>");const Ba={hash:"svelte-zsrcxo",code:`
3
+ /*! purgecss start ignore */:root,
3
4
  :host {
4
5
  /* 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;
5
6
 
@@ -13,19 +14,40 @@
13
14
 
14
15
  /* outline inverted button */--ai-button-background-outline-inverted-hover: var(--ai-color-white);--ai-button-text-outline-inverted-rest: var(--ai-color-white);--ai-button-text-outline-inverted-hover: var(--ai-color-black);--ai-button-border-outline-inverted-rest: var(--ai-color-white);--ai-button-border-outline-inverted-hover: var(
15
16
  --ai-button-border-outline-inverted-rest
16
- );}.ai-button.svelte-1e50suo {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-1e50suo:is(:where(.svelte-1e50suo):hover, :where(.svelte-1e50suo):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-1e50suo {--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-1e50suo {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-1e50suo:is(:where(.svelte-1e50suo):hover, :where(.svelte-1e50suo):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow)
17
- var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-1e50suo {background-color:transparent;box-shadow:var(--ai-button-box-shadow)
18
- var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-1e50suo:is(:where(.svelte-1e50suo):hover, :where(.svelte-1e50suo):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow)
19
- var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-1e50suo {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-1e50suo:is(:where(.svelte-1e50suo):hover, :where(.svelte-1e50suo):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-1e50suo {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-1e50suo:is(:where(.svelte-1e50suo):hover, :where(.svelte-1e50suo):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}.ai-menu-buttons.svelte-1e50suo {display:flex;gap:var(--ai-size-16);}
20
-
21
- /* disabled button styles */:is(.disabled.svelte-1e50suo, [disabled].svelte-1e50suo, [aria-disabled='true'].svelte-1e50suo) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-1e50suo:is(.disabled:where(.svelte-1e50suo), [disabled]:where(.svelte-1e50suo), [aria-disabled='true']:where(.svelte-1e50suo)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-1e50suo:is(.disabled:where(.svelte-1e50suo), [disabled]:where(.svelte-1e50suo), [aria-disabled='true']:where(.svelte-1e50suo)) {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-1e50suo:is(
22
- .disabled:where(.svelte-1e50suo),
23
- [disabled]:where(.svelte-1e50suo),
24
- [aria-disabled='true']:where(.svelte-1e50suo)
25
- ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-1e50suo:is(.disabled:where(.svelte-1e50suo), [disabled]:where(.svelte-1e50suo), [aria-disabled='true']:where(.svelte-1e50suo)) {background:none;color:inherit;opacity:0.75;}`};function ki(e,t){Q(t,!0),ut(e,Pa);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"href",7,null),o=y(t,"disabled",7,!1),s=y(t,"onclick",7),a=y(t,"children",7,null),l=y(t,"size",7,"medium"),c=y(t,"type",7,"button"),f=y(t,"class",7,""),d=pr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","onclick","children","size","type","class"]);const u=re(()=>()=>["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(" ")),h=re(()=>()=>`${w(u)()} ${f()}`.trim());var g=pt(),k=qe(g);{var x=v=>{var m=Ha();Kt(m,(b,L)=>({class:b,href:i(),onclick:s(),...d,[Mt]:L}),[()=>w(h)(),()=>({disabled:o()})],"svelte-1e50suo");var p=S(m);Br(p,()=>a()??Se),E(m),M(v,m)},I=v=>{var m=Va();Kt(m,b=>({class:b,type:c(),disabled:o(),onclick:s(),...d}),[()=>w(h)()],"svelte-1e50suo");var p=S(m);Br(p,()=>a()??Se),E(m),M(v,m)};ie(k,v=>{i()?v(x):v(I,!1)})}return M(e,g),ee({get variant(){return r()},set variant(v="primary"){r(v),_()},get theme(){return n()},set theme(v="default"){n(v),_()},get href(){return i()},set href(v=null){i(v),_()},get disabled(){return o()},set disabled(v=!1){o(v),_()},get onclick(){return s()},set onclick(v){s(v),_()},get children(){return a()},set children(v=null){a(v),_()},get size(){return l()},set size(v="medium"){l(v),_()},get type(){return c()},set type(v="button"){c(v),_()},get class(){return f()},set class(v=""){f(v),_()}})}te(ki,{variant:{},theme:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function Ci(e,t){Q(t,!0);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"href",7,null),o=y(t,"disabled",7,!1),s=y(t,"size",7,"medium"),a=y(t,"type",7,"button"),l=y(t,"onclick",7),c=y(t,"children",7,null),f=y(t,"class",7,""),d=pr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return ki(e,_i({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 c()},get class(){return f()}},()=>d,{$$slots:{default:(u,h)=>{var g=pt(),k=qe(g);fr(k,t,"default",{}),M(u,g)}}})),ee({get variant(){return r()},set variant(u="primary"){r(u),_()},get theme(){return n()},set theme(u="default"){n(u),_()},get href(){return i()},set href(u=null){i(u),_()},get disabled(){return o()},set disabled(u=!1){o(u),_()},get size(){return s()},set size(u="medium"){s(u),_()},get type(){return a()},set type(u="button"){a(u),_()},get onclick(){return l()},set onclick(u){l(u),_()},get children(){return c()},set children(u=null){c(u),_()},get class(){return f()},set class(u=""){f(u),_()}})}customElements.define("graymatter-button",te(Ci,{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 Gt=typeof window<"u";function Ra(e,t){if(Gt&&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 xi(e,t){const r=Ra(e,t),n=vr(r);return Gt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}xi("subNav-selectedId",null);const gt=xi("subNav-selectedTitle","");function Ei(e,t){if(Gt&&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 Si(e,t){const r=Ei(e,t),n=vr(r);return Gt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const De=Si("globalSideNav-isExpanded",!1),bt=Si("globalSideNav-selectedItem",null),Kr=La(bt,e=>e==="discover"),He={toggleExpanded:()=>{De.update(e=>!e)},setExpanded:e=>{De.set(e)},setSelectedItem:e=>{bt.set(e),e==="discover"?De.set(!1):Gt&&window.innerWidth>640&&De.set(!0)},handleLayoutTransition:e=>{if(e)De.set(!1);else{const t=Ei("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),De.set(!0)):De.set(!1)}}},br=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:De,isMenuButtonDisabled:Kr,navigationStore:He,selectedItem:bt,selectedSubNavItemTitle:gt},Symbol.toStringTag,{value:"Module"})),Ba=vr(!1);var qa=se('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Fa={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function Ii(e,t){Q(t,!0),ut(e,Fa);const[r,n]=Wt(),i=()=>Te(bt,"$selectedItem",r),o=()=>Te(De,"$isExpanded",r),s=()=>Te(Ba,"$subNavReady",r),a=()=>Te(gt,"$selectedSubNavItemTitle",r),l=y(t,"customHeaderText",7,"");let c=!1;const f=re(()=>()=>i()&&i()!=="discover"&&!o()&&!c&&s()),d=re(()=>()=>l()||a());Zt(()=>{const v=p=>{if(typeof window<"u"&&window.innerWidth<=640)return;let b=null;if(typeof window<"u"&&(b=sessionStorage.getItem("subNav-topLevelTitle"),b))try{b=JSON.parse(b)}catch{}if(typeof b=="string"&&b.trim()!=="")gt.set(b),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(b));else{const L=p;L.detail&&L.detail.title&&(gt.set(L.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))}},m=p=>{const b=p,{isMobile:L}=b.detail;L||(c=!0,setTimeout(()=>{c=!1},300))};return window.addEventListener("sectionVisible",v),window.addEventListener("layoutTransition",m),()=>{window.removeEventListener("sectionVisible",v),window.removeEventListener("layoutTransition",m)}});var u=qa();let h;var g=S(u),k=S(g),x=S(k,!0);E(k),E(g),E(u),Le((v,m)=>{h=Ce(u,1,"global-header svelte-1e8dq3f",null,h,v),Yt(x,m)},[()=>({visible:w(f)()}),()=>w(d)()]),M(e,u);var I=ee({get customHeaderText(){return l()},set customHeaderText(v=""){l(v),_()}});return n(),I}te(Ii,{customHeaderText:{}},[],[],!0);function Mi(e,t){Q(t,!0);let r=y(t,"customHeaderText",7,"");return Ii(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",te(Mi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),To();var Ya=W('<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>'),Za=W('<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>'),Ja=W('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Wr(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ja(),i=S(n);{var o=a=>{var l=Ya();M(a,l)},s=a=>{var l=Za();M(a,l)};ie(i,a=>{r()?a(o):a(s,!1)})}return E(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Wr,{isSelected:{}},[],[],!0);var Ka=W('<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>'),Wa=W('<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>'),Ga=W('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Gr(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ga(),i=S(n);{var o=a=>{var l=Ka();M(a,l)},s=a=>{var l=Wa();M(a,l)};ie(i,a=>{r()?a(o):a(s,!1)})}return E(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Gr,{isSelected:{}},[],[],!0);var Xa=W('<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),Qa=W('<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),es=W('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Xr(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=es(),i=S(n);{var o=a=>{var l=Xa();Be(3),M(a,l)},s=a=>{var l=Qa();Be(3),M(a,l)};ie(i,a=>{r()?a(o):a(s,!1)})}return E(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Xr,{isSelected:{}},[],[],!0);var ts=W('<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),rs=W('<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),ns=W('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Qr(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=ns(),i=S(n);{var o=a=>{var l=ts();Be(2),M(a,l)},s=a=>{var l=rs();Be(2),M(a,l)};ie(i,a=>{r()?a(o):a(s,!1)})}return E(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Qr,{isSelected:{}},[],[],!0);var is=W('<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),os=W('<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),as=W('<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),ss=W('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),ls=W('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),us=W('<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),cs=W("<svg><!></svg>");function en(e,t){const r=wi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=wi(r,["isDisabled","isHovered","isOpen"]);Q(t,!1);let i=y(t,"isDisabled",12,!1),o=y(t,"isHovered",12,!1),s=y(t,"isOpen",12,!1);var a=cs();Kt(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 c=d=>{var u=is(),h=ce(qe(u));Le(()=>G(h,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),M(d,u)},f=(d,u)=>{{var h=k=>{var x=pt(),I=qe(x);{var v=p=>{var b=os();Be(),M(p,b)},m=p=>{var b=as();Be(),M(p,b)};ie(I,p=>{s()?p(v):p(m,!1)})}M(k,x)},g=k=>{var x=us(),I=ce(qe(x));{var v=p=>{var b=ss();M(p,b)},m=p=>{var b=ls();M(p,b)};ie(I,p=>{s()?p(v):p(m,!1)})}M(k,x)};ie(d,k=>{o()?k(h):k(g,!1)},u)}};ie(l,d=>{i()?d(c):d(f,!1)})}return E(a),M(e,a),ee({get isDisabled(){return i()},set isDisabled(d){i(d),_()},get isHovered(){return o()},set isHovered(d){o(d),_()},get isOpen(){return s()},set isOpen(d){s(d),_()}})}te(en,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ds=se('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),fs=se('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),vs=se('<div tabindex="-1" role="menu"></div>'),hs=se('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const ps={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
17
+ );
18
+
19
+ /* square button specific tokens */--ai-button-radius-square: var(--ai-size-4);--ai-button-padding-x-square: var(--ai-size-12);--ai-button-padding-y-square: var(--ai-size-6);--ai-button-height-square: var(--ai-size-40);--ai-button-width-square: 100%;
20
+
21
+ /* small square button tokens */--ai-button-padding-x-square-small: var(--ai-size-8);--ai-button-padding-y-square-small: var(--ai-size-4);--ai-button-height-square-small: var(--ai-size-24);
22
+
23
+ /* square button color tokens */--ai-button-background-square-primary-rest: var(--ai-color-black);--ai-button-background-square-primary-hover: var(--ai-color-neutral-900);--ai-button-background-square-primary-disabled: var(--ai-color-neutral-200);--ai-button-text-square-primary-rest: var(--ai-color-white);--ai-button-text-square-primary-hover: var(--ai-color-white);--ai-button-text-square-primary-disabled: var(--ai-color-neutral-800);--ai-button-background-square-secondary-rest: var(--ai-color-white);--ai-button-background-square-secondary-hover: var(--ai-color-neutral-200);--ai-button-background-square-secondary-disabled: var(
24
+ --ai-color-neutral-500
25
+ );--ai-button-text-square-secondary-rest: var(--ai-color-black);--ai-button-text-square-secondary-hover: var(--ai-color-black);--ai-button-text-square-secondary-disabled: var(--ai-color-neutral-900);--ai-button-border-square-secondary-rest: var(--ai-color-black);--ai-button-border-square-secondary-hover: var(--ai-color-black);}.ai-button.svelte-zsrcxo {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;width:fit-content;}.ai-button--no-gap.svelte-zsrcxo {gap:0;}.ai-button.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-zsrcxo {--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-zsrcxo {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-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow)
26
+ var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-zsrcxo {background-color:transparent;box-shadow:var(--ai-button-box-shadow)
27
+ var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow)
28
+ var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-zsrcxo {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-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}
29
+
30
+ /* Square button styles */.ai-button--square.svelte-zsrcxo {border-radius:var(--ai-button-radius-square);padding-inline:var(--ai-button-padding-x-square);padding-block:var(--ai-button-padding-y-square);height:var(--ai-button-height-square);width:var(--ai-button-width-square);width:100%;display:flex;align-items:center;justify-content:center;border:0.0625rem solid var(--ai-color-neutral-300);box-shadow:0 0.0625rem var(--ai-size-2) 0 rgba(0, 0, 0, 0.1);transition:all var(--ai-transition-ease-fast);}
31
+
32
+ /* Small square button specific adjustments */.ai-button--small.ai-button--square.svelte-zsrcxo {padding-inline:var(--ai-button-padding-x-square-small);padding-block:var(--ai-button-padding-y-square-small);height:var(--ai-button-height-square-small);}.ai-button--square.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {border-color:var(--ai-color-neutral-400);box-shadow:0 var(--ai-size-2) var(--ai-size-4) 0 rgba(0, 0, 0, 0.3);}.ai-button--square.svelte-zsrcxo:focus {outline-offset:var(--ai-size-2);}
33
+
34
+ /* Square button variants */.ai-button--square.ai-button--primary.svelte-zsrcxo {background-color:var(--ai-button-background-square-primary-rest);color:var(--ai-button-text-square-primary-rest);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--primary.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-square-primary-hover);color:var(--ai-button-text-square-primary-hover);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--secondary.svelte-zsrcxo {background-color:var(--ai-button-background-square-secondary-rest);color:var(--ai-button-text-square-secondary-rest);border-color:var(--ai-button-border-square-secondary-rest);}.ai-button--square.ai-button--secondary.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-square-secondary-hover);color:var(--ai-button-text-square-secondary-hover);border-color:var(--ai-button-border-square-secondary-hover);}.ai-button--square.ai-button--outline.svelte-zsrcxo {background-color:var(--ai-color-white);color:var(--ai-color-neutral-800);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-color-neutral-50);color:var(--ai-color-black);border-color:var(--ai-color-neutral-400);}
35
+
36
+ /* Square button inverted themes */.ai-button--square.ai-button--inverted.svelte-zsrcxo {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);border-color:transparent;}.ai-button--square.ai-button--inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border-color:transparent;}.ai-button--square.ai-button--outline-inverted.svelte-zsrcxo {background-color:transparent;color:var(--ai-color-white);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline-inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-color-neutral-900);color:var(--ai-color-white);border-color:var(--ai-color-neutral-400);}.ai-menu-buttons.svelte-zsrcxo {display:flex;gap:var(--ai-size-16);}
37
+
38
+ /* Unstyled button styles */.ai-button--unstyled.svelte-zsrcxo {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-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}
39
+
40
+ /* Unstyled square button - just center the text, reuse existing unstyled styles */.ai-button--unstyled.ai-button--square.svelte-zsrcxo {text-align:center;}
41
+
42
+ /* disabled button styles */:is(.disabled.svelte-zsrcxo, [disabled].svelte-zsrcxo, [aria-disabled='true'].svelte-zsrcxo) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {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-zsrcxo:is(
43
+ .disabled:where(.svelte-zsrcxo),
44
+ [disabled]:where(.svelte-zsrcxo),
45
+ [aria-disabled='true']:where(.svelte-zsrcxo)
46
+ ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:none;color:inherit;opacity:0.75;}
47
+ /*! purgecss end ignore */`};function Ci(e,t){X(t,!0),ut(e,Ba);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"shape",7,"round"),o=y(t,"href",7,void 0),s=y(t,"disabled",7,!1),a=y(t,"onclick",7),u=y(t,"children",7,null),c=y(t,"size",7,"medium"),v=y(t,"type",7,"button"),d=y(t,"class",7,""),l=gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","children","size","type","class"]);const b=ne(()=>()=>["usa-button","ai-button",c()==="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":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),h=ne(()=>()=>`${m(b)()} ${d()}`.trim());var k=St(),C=Qe(k);{var z=g=>{var f=Pa();Wt(f,(E,j)=>({class:E,href:o(),onclick:a(),...l,[zt]:j}),[()=>m(h)(),()=>({disabled:s()})],"svelte-zsrcxo");var w=L(f);fr(w,()=>u()??we),S(f),N(g,f)},p=g=>{var f=Ra();Wt(f,E=>({class:E,type:v(),disabled:s(),onclick:a(),...l}),[()=>m(h)()],"svelte-zsrcxo");var w=L(f);fr(w,()=>u()??we),S(f),N(g,f)};ee(C,g=>{o()?g(z):g(p,!1)})}return N(e,k),Q({get variant(){return r()},set variant(g="primary"){r(g),_()},get theme(){return n()},set theme(g="default"){n(g),_()},get shape(){return i()},set shape(g="round"){i(g),_()},get href(){return o()},set href(g=void 0){o(g),_()},get disabled(){return s()},set disabled(g=!1){s(g),_()},get onclick(){return a()},set onclick(g){a(g),_()},get children(){return u()},set children(g=null){u(g),_()},get size(){return c()},set size(g="medium"){c(g),_()},get type(){return v()},set type(g="button"){v(g),_()},get class(){return d()},set class(g=""){d(g),_()}})}te(Ci,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function Ei(e,t){X(t,!0);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"href",7,null),o=y(t,"disabled",7,!1),s=y(t,"size",7,"medium"),a=y(t,"type",7,"button"),u=y(t,"onclick",7),c=y(t,"children",7,null),v=y(t,"class",7,""),d=gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return Ci(e,ki({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 u()},get children(){return c()},get class(){return v()}},()=>d,{$$slots:{default:(l,b)=>{var h=St(),k=Qe(h);ui(k,t,"default",{}),N(l,h)}}})),Q({get variant(){return r()},set variant(l="primary"){r(l),_()},get theme(){return n()},set theme(l="default"){n(l),_()},get href(){return i()},set href(l=null){i(l),_()},get disabled(){return o()},set disabled(l=!1){o(l),_()},get size(){return s()},set size(l="medium"){s(l),_()},get type(){return a()},set type(l="button"){a(l),_()},get onclick(){return u()},set onclick(l){u(l),_()},get children(){return c()},set children(l=null){c(l),_()},get class(){return v()},set class(l=""){v(l),_()}})}customElements.define("graymatter-button",te(Ei,{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 Xt=typeof window<"u";function Fa(e,t){if(Xt&&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 Si(e,t){const r=Fa(e,t),n=hr(r);return Xt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Si("subNav-selectedId",null);const bt=Si("subNav-selectedTitle","");function Li(e,t){if(Xt&&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 zi(e,t){const r=Li(e,t),n=hr(r);return Xt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const He=zi("globalSideNav-isExpanded",!1),gt=zi("globalSideNav-selectedItem",null),Wr=ja(gt,e=>e==="discover"),qe={toggleExpanded:()=>{He.update(e=>!e)},setExpanded:e=>{He.set(e)},setSelectedItem:e=>{gt.set(e),e==="discover"?He.set(!1):Xt&&window.innerWidth>640&&He.set(!0)},handleLayoutTransition:e=>{if(e)He.set(!1);else{const t=Li("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),He.set(!0)):He.set(!1)}}},mr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:He,isMenuButtonDisabled:Wr,navigationStore:qe,selectedItem:gt,selectedSubNavItemTitle:bt},Symbol.toStringTag,{value:"Module"})),Ya=hr(!1);var Za=oe('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ja={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function Ii(e,t){X(t,!0),ut(e,Ja);const[r,n]=Gt(),i=()=>Ne(gt,"$selectedItem",r),o=()=>Ne(He,"$isExpanded",r),s=()=>Ne(Ya,"$subNavReady",r),a=()=>Ne(bt,"$selectedSubNavItemTitle",r),u=y(t,"customHeaderText",7,"");let c=!1;const v=ne(()=>()=>i()&&i()!=="discover"&&!o()&&!c&&s()),d=ne(()=>()=>u()||a());Jt(()=>{const p=f=>{if(typeof window<"u"&&window.innerWidth<=640)return;let w=null;if(typeof window<"u"&&(w=sessionStorage.getItem("subNav-topLevelTitle"),w))try{w=JSON.parse(w)}catch{}if(typeof w=="string"&&w.trim()!=="")bt.set(w),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w));else{const E=f;E.detail&&E.detail.title&&(bt.set(E.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(E.detail.title)))}},g=f=>{const w=f,{isMobile:E}=w.detail;E||(c=!0,setTimeout(()=>{c=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",g),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",g)}});var l=Za();let b;var h=L(l),k=L(h),C=L(k,!0);S(k),S(h),S(l),ke((p,g)=>{b=Ee(l,1,"global-header svelte-1e8dq3f",null,b,p),Zt(C,g)},[()=>({visible:m(v)()}),()=>m(d)()]),N(e,l);var z=Q({get customHeaderText(){return u()},set customHeaderText(p=""){u(p),_()}});return n(),z}te(Ii,{customHeaderText:{}},[],[],!0);function Mi(e,t){X(t,!0);let r=y(t,"customHeaderText",7,"");return Ii(e,{get customHeaderText(){return r()}}),Q({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",te(Mi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Ao();var Ka=G('<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>'),Wa=G('<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>'),Ga=G('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Gr(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=Ga(),i=L(n);{var o=a=>{var u=Ka();N(a,u)},s=a=>{var u=Wa();N(a,u)};ee(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Gr,{isSelected:{}},[],[],!0);var Xa=G('<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>'),Qa=G('<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>'),es=G('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Xr(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=es(),i=L(n);{var o=a=>{var u=Xa();N(a,u)},s=a=>{var u=Qa();N(a,u)};ee(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Xr,{isSelected:{}},[],[],!0);var ts=G('<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),rs=G('<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),ns=G('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Qr(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=ns(),i=L(n);{var o=a=>{var u=ts();Be(3),N(a,u)},s=a=>{var u=rs();Be(3),N(a,u)};ee(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(Qr,{isSelected:{}},[],[],!0);var is=G('<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),os=G('<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),as=G('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function en(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=as(),i=L(n);{var o=a=>{var u=is();Be(2),N(a,u)},s=a=>{var u=os();Be(2),N(a,u)};ee(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}te(en,{isSelected:{}},[],[],!0);var ss=G('<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),ls=G('<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),us=G('<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),cs=G('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),ds=G('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),vs=G('<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),fs=G("<svg><!></svg>");function tn(e,t){const r=yi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=yi(r,["isDisabled","isHovered","isOpen"]);X(t,!1);let i=y(t,"isDisabled",12,!1),o=y(t,"isHovered",12,!1),s=y(t,"isOpen",12,!1);var a=fs();Wt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var u=L(a);{var c=d=>{var l=ss(),b=ve(Qe(l));ke(()=>K(b,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),N(d,l)},v=(d,l)=>{{var b=k=>{var C=St(),z=Qe(C);{var p=f=>{var w=ls();Be(),N(f,w)},g=f=>{var w=us();Be(),N(f,w)};ee(z,f=>{s()?f(p):f(g,!1)})}N(k,C)},h=k=>{var C=vs(),z=ve(Qe(C));{var p=f=>{var w=cs();N(f,w)},g=f=>{var w=ds();N(f,w)};ee(z,f=>{s()?f(p):f(g,!1)})}N(k,C)};ee(d,k=>{o()?k(b):k(h,!1)},l)}};ee(u,d=>{i()?d(c):d(v,!1)})}return S(a),N(e,a),Q({get isDisabled(){return i()},set isDisabled(d){i(d),_()},get isHovered(){return o()},set isHovered(d){o(d),_()},get isOpen(){return s()},set isOpen(d){s(d),_()}})}te(tn,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var hs=oe('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),bs=oe('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),gs=oe('<div tabindex="-1" role="menu"></div>'),ps=oe('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const ms={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
26
48
  .user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-1ybo61g,
27
49
  .user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-1ybo61g {background:var(--ai-color-blue-800);border-radius:var(--ai-size-4);box-sizing:border-box;height:var(--ai-size-40);padding:var(--ai-size-4);white-space:nowrap;width:var(--ai-size-40);}.user-initials.svelte-1ybo61g {color:var(--ai-color-white);font-size:var(--ai-size-16);font-style:normal;font-weight:400;line-height:1;overflow:hidden;text-align:center;text-overflow:ellipsis;}.user-profile-button.svelte-1ybo61g {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-1ybo61g: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-button.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-1ybo61g {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-1ybo61g {display:flex;width:13.75rem;padding:var(--ai-size-12);flex-direction:column;align-items:flex-start;gap:var(--ai-size-2);border-radius:var(--ai-size-8);border:0.0625rem solid var(--ai-color-steel-200);background:var(--ai-color-white);box-shadow:0 0.1875rem var(--ai-size-6) 0 rgba(50, 54, 61, 0.2);position:absolute;z-index:var(--ai-layer-50);}.profile-context-menu.desktop-align.svelte-1ybo61g {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
28
- /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-1ybo61g:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function tn(e,t){Q(t,!1),ut(e,ps);let r=y(t,"menuItems",28,()=>[]),n=y(t,"userMeta",12),i=y(t,"ariaLabel",12,"Open profile menu"),o=y(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,a=ft(!1);function l(){U(a,!w(a))}function c(){U(a,!1)}function f(T){var R;try{const q=new CustomEvent("profileMenuAction",{detail:{action:T,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((R=document.querySelector(".profile-context-menu"))==null?void 0:R.closest("[data-profile-menu]"))||window).dispatchEvent(q)}catch(q){console.error("Error dispatching profile menu action:",q)}}function d(T){const R=T.relatedTarget;(!R||!R.closest(".profile-context-menu"))&&c()}let u=ft(),h=ft([]),g=ft([]);function k(T,R){var q,H,N;if(T.key==="ArrowDown"){T.preventDefault();const j=(R+1)%r().length;(q=w(h)[j])==null||q.focus()}else if(T.key==="ArrowUp"){T.preventDefault();const j=(R-1+r().length)%r().length;(H=w(h)[j])==null||H.focus()}else T.key==="Escape"&&(c(),(N=w(u))==null||N.focus(),T.stopPropagation())}function x(T){var R;w(a)&&T.key==="Escape"&&(c(),(R=w(u))==null||R.focus(),T.stopPropagation())}Zt(()=>(window.addEventListener("keydown",x,!0),()=>{window.removeEventListener("keydown",x,!0)})),Po(()=>w(g),()=>{U(h,w(g).filter(Boolean))}),Ro(),Ia();var I=hs(),v=S(I),m=S(v),p=S(m),b=S(p),L=S(b,!0);E(b),E(p),E(m),E(v),ct(v,T=>U(u,T),()=>w(u));var A=ce(v,2);{var J=T=>{var R=vs();oi(R,7,r,q=>q.label,(q,H,N)=>{var j=fs(),Y=S(j);{var de=oe=>{var le=ds(),Ze=S(le);E(le),Le(()=>G(Ze,"src",(w(H),ze(()=>w(H).icon)))),M(oe,le)};ie(Y,oe=>{w(H),ze(()=>w(H).icon)&&oe(de)})}var fe=ce(Y,2),X=S(fe,!0);E(fe),E(j),ct(j,(oe,le)=>Uo(g,w(g)[le]=oe),oe=>{var le;return(le=w(g))==null?void 0:le[oe]},()=>[w(N)]),Le(()=>Yt(X,(w(H),ze(()=>w(H).label)))),ve("click",j,()=>{f(w(H).action),c()}),ve("keydown",j,oe=>k(oe,w(N))),M(q,j)}),E(R),Le(()=>{Ce(R,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),G(R,"id",s)}),M(T,R)};ie(A,T=>{w(a)&&T(J)})}return E(I),Le(()=>{G(v,"aria-label",i()),G(v,"aria-expanded",w(a)),G(v,"aria-controls",s),Yt(L,(Qn(n()),ze(()=>{var T;return(T=n())==null?void 0:T.initials})))}),ve("click",v,l),ve("blur",v,d),M(e,I),ee({get menuItems(){return r()},set menuItems(T){r(T),_()},get userMeta(){return n()},set userMeta(T){n(T),_()},get ariaLabel(){return i()},set ariaLabel(T){i(T),_()},get menuAlign(){return o()},set menuAlign(T){o(T),_()}})}te(tn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);const gs={};function rn(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function Li(e){const t=gs,r="#",n=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL,o=t.PUBLIC_API_URL,s=t.PUBLIC_DISCOVER_URL;return rn("chat",n),rn("console",i),rn("api",o),{chat:n||r,console:i||r,api:o||"/api",discover:s||"/discover"}}function bs(e,t,r,n){var i;t()||(He.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var ms=(e,t)=>t("discover"),ws=(e,t,r)=>{t(e,"discover"),r(e,0)},_s=(e,t)=>t("chat"),ys=(e,t,r)=>{t(e,"chat"),r(e,1)},ks=(e,t)=>t("console"),Cs=(e,t,r)=>{t(e,"console"),r(e,2)},xs=(e,t)=>t("api"),Es=(e,t,r)=>{t(e,"api"),r(e,3)},Ss=se('<div class="nav-items svelte-6rrvhj" part="nav-items"><a part="discover-item"><div class="icon-container svelte-6rrvhj" part="discover-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Discover</span></a> <a part="chat-item"><div class="icon-container svelte-6rrvhj" part="chat-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Chat</span></a> <a part="console-item"><div class="icon-container svelte-6rrvhj" part="console-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Console</span></a> <a part="api-item"><div class="icon-container svelte-6rrvhj" part="api-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">API</span></a></div>'),Is=se('<div class="nav-footer svelte-6rrvhj" part="nav-footer"><div class="nav-footer-profile-container svelte-6rrvhj"><!></div></div>'),Ms=se('<div class="drawer-content svelte-6rrvhj" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-6rrvhj"><!></nav></div>'),Ls=se('<div part="side-nav-container"><div class="nav-content svelte-6rrvhj" part="nav-content"><div class="nav-main svelte-6rrvhj" part="nav-main"><div class="menu-section svelte-6rrvhj" part="menu-section"><button><div class="icon-container svelte-6rrvhj" part="icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const Ns={hash:"svelte-6rrvhj",code:`.expanded-content.drawer-anim.svelte-6rrvhj {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-6rrvhj {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-6rrvhj {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-6rrvhj nav:where(.svelte-6rrvhj) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-6rrvhj {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-6rrvhj:disabled,
50
+ /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-1ybo61g:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function rn(e,t){X(t,!1),ut(e,ms);let r=y(t,"menuItems",28,()=>[]),n=y(t,"userMeta",12),i=y(t,"ariaLabel",12,"Open profile menu"),o=y(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,a=vt(!1);function u(){U(a,!m(a))}function c(){U(a,!1)}function v(M){var A;try{const B=new CustomEvent("profileMenuAction",{detail:{action:M,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((A=document.querySelector(".profile-context-menu"))==null?void 0:A.closest("[data-profile-menu]"))||window).dispatchEvent(B)}catch(B){console.error("Error dispatching profile menu action:",B)}}function d(M){const A=M.relatedTarget;(!A||!A.closest(".profile-context-menu"))&&c()}let l=vt(),b=vt([]),h=vt([]);function k(M,A){var B,H,ue;if(M.key==="ArrowDown"){M.preventDefault();const I=(A+1)%r().length;(B=m(b)[I])==null||B.focus()}else if(M.key==="ArrowUp"){M.preventDefault();const I=(A-1+r().length)%r().length;(H=m(b)[I])==null||H.focus()}else M.key==="Escape"&&(c(),(ue=m(l))==null||ue.focus(),M.stopPropagation())}function C(M){var A;m(a)&&M.key==="Escape"&&(c(),(A=m(l))==null||A.focus(),M.stopPropagation())}Jt(()=>(window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0)})),Bo(()=>m(h),()=>{U(b,m(h).filter(Boolean))}),Fo(),Ma();var z=ps(),p=L(z),g=L(p),f=L(g),w=L(f),E=L(w,!0);S(w),S(f),S(g),S(p),ct(p,M=>U(l,M),()=>m(l));var j=ve(p,2);{var P=M=>{var A=gs();ai(A,7,r,B=>B.label,(B,H,ue)=>{var I=bs(),R=L(I);{var re=F=>{var le=hs(),Te=L(le);S(le),ke(()=>K(Te,"src",(m(H),Oe(()=>m(H).icon)))),N(F,le)};ee(R,F=>{m(H),Oe(()=>m(H).icon)&&F(re)})}var ce=ve(R,2),ae=L(ce,!0);S(ce),S(I),ct(I,(F,le)=>Do(h,m(h)[le]=F),F=>{var le;return(le=m(h))==null?void 0:le[F]},()=>[m(ue)]),ke(()=>Zt(ae,(m(H),Oe(()=>m(H).label)))),fe("click",I,()=>{v(m(H).action),c()}),fe("keydown",I,F=>k(F,m(ue))),N(B,I)}),S(A),ke(()=>{Ee(A,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),K(A,"id",s)}),N(M,A)};ee(j,M=>{m(a)&&M(P)})}return S(z),ke(()=>{K(p,"aria-label",i()),K(p,"aria-expanded",m(a)),K(p,"aria-controls",s),Zt(E,(ei(n()),Oe(()=>{var M;return(M=n())==null?void 0:M.initials})))}),fe("click",p,u),fe("blur",p,d),N(e,z),Q({get menuItems(){return r()},set menuItems(M){r(M),_()},get userMeta(){return n()},set userMeta(M){n(M),_()},get ariaLabel(){return i()},set ariaLabel(M){i(M),_()},get menuAlign(){return o()},set menuAlign(M){o(M),_()}})}te(rn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);const Ni=e=>typeof e!="string"||!e?"/":e.replace(/\/+$/,"")+"/",ws=()=>{if(typeof window<"u")return"/";if(typeof process<"u"&&process.env){const{BASEURL:e}=process.env;return e?Ni(e):"/"}return"/"},ji=e=>{const t=Ni(ws());return typeof e!="string"||!e?t:`${t}${e.replace(/^\/+/,"")}`},_s={};function nn(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function ys(e){try{return new URL(e),!0}catch{return!1}}function wr(e,t){return e?ys(e)?e:ji(e):t}function Ti(e){const t=_s,r="#",n=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL,o=t.PUBLIC_API_URL,s=t.PUBLIC_DISCOVER_URL;return nn("chat",n),nn("console",i),nn("api",o),{chat:wr(n,r),console:wr(i,r),api:wr(o,ji("/api/documentation")),discover:wr(s,"#")}}function ks(e,t,r,n){var i;t()||(qe.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var xs=(e,t)=>t("discover"),Cs=(e,t,r)=>{t(e,"discover"),r(e,0)},Es=(e,t)=>t("chat"),Ss=(e,t,r)=>{t(e,"chat"),r(e,1)},Ls=(e,t)=>t("console"),zs=(e,t,r)=>{t(e,"console"),r(e,2)},Is=(e,t)=>t("api"),Ms=(e,t,r)=>{t(e,"api"),r(e,3)},Ns=oe('<div class="nav-items svelte-6rrvhj" part="nav-items"><a part="discover-item"><div class="icon-container svelte-6rrvhj" part="discover-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Discover</span></a> <a part="chat-item"><div class="icon-container svelte-6rrvhj" part="chat-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Chat</span></a> <a part="console-item"><div class="icon-container svelte-6rrvhj" part="console-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">Console</span></a> <a part="api-item"><div class="icon-container svelte-6rrvhj" part="api-icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div> <span class="nav-text svelte-6rrvhj">API</span></a></div>'),js=oe('<div class="nav-footer svelte-6rrvhj" part="nav-footer"><div class="nav-footer-profile-container svelte-6rrvhj"><!></div></div>'),Ts=oe('<div class="drawer-content svelte-6rrvhj" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-6rrvhj"><!></nav></div>'),As=oe('<div part="side-nav-container"><div class="nav-content svelte-6rrvhj" part="nav-content"><div class="nav-main svelte-6rrvhj" part="nav-main"><div class="menu-section svelte-6rrvhj" part="menu-section"><button><div class="icon-container svelte-6rrvhj" part="icon-container"><div class="icon-wrapper svelte-6rrvhj"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const Us={hash:"svelte-6rrvhj",code:`.expanded-content.drawer-anim.svelte-6rrvhj {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-6rrvhj {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-6rrvhj {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-6rrvhj nav:where(.svelte-6rrvhj) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-6rrvhj {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-6rrvhj:disabled,
29
51
  .menu-button.disabled.svelte-6rrvhj {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-6rrvhj {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-6rrvhj {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-6rrvhj {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-6rrvhj .expanded-content:where(.svelte-6rrvhj) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-6rrvhj:not(.expanded) .expanded-content:where(.svelte-6rrvhj) {width:0;opacity:0;}.nav-content.svelte-6rrvhj {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-6rrvhj {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-6rrvhj {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;}.menu-section.svelte-6rrvhj {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-6rrvhj {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-6rrvhj {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-6rrvhj:focus,
30
52
  .nav-item.svelte-6rrvhj:focus {outline:none;}.menu-button.svelte-6rrvhj:focus .icon-container:where(.svelte-6rrvhj),
31
53
  .nav-item.svelte-6rrvhj:focus .icon-container:where(.svelte-6rrvhj) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
@@ -84,8 +106,8 @@
84
106
  display: flex;
85
107
  align-items: center;
86
108
  justify-content: center;
87
- } */`};function Ni(e,t){Q(t,!0),ut(e,Ns);const[r,n]=Wt(),i=()=>Te(bt,"$selectedItem",r),o=()=>Te(De,"$isExpanded",r),s=()=>Te(Kr,"$isMenuButtonDisabled",r),a=Li(),l=y(t,"ssrSelectedItem",7,void 0),c=y(t,"onNavToggle",7,void 0),f=y(t,"onNavItemClick",7,void 0),d=y(t,"children",7),u=y(t,"showAppIcons",7,!0),h=y(t,"profileMenuData",7),g=y(t,"apiUrl",7),k=y(t,"chatUrl",7),x=y(t,"consoleUrl",7),I=y(t,"discoverUrl",7);let v=!1,m,p=he(null),b=he(!1),L=he(!1),A=he(null),J=he(null),T=he(null),R=he(null);function q(C,F){return v?C:F}function H(C){return q(i()===C,l()===C)}function N(C){return w(p)===C}const j=re(()=>()=>q(o(),l()?l()!=="discover":!0)),Y=re(()=>()=>q(s(),l()?l()==="discover":!1)),de=re(()=>()=>q(o(),l()?l()!=="discover":!0)),fe=re(()=>()=>w(L)&&w(b)&&!w(Y)());Zt(()=>{if(v=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),m&&m.classList.add("hydrated"),typeof window<"u"){const C=window.matchMedia("(hover: hover)");U(L,C.matches,!0),C.addEventListener("change",K=>{U(L,K.matches,!0)});const F=K=>{const ue=K,{isMobile:$e}=ue.detail;if($e)He.setExpanded(!1);else{const xe=i();xe&&xe!=="discover"?He.setExpanded(!0):He.setExpanded(!1)}};window.addEventListener("layoutTransition",F);const $=K=>{const ue=document.activeElement;K.key==="Escape"&&o()&&!(ue&&ue.closest(".profile-context-menu"))&&He.setExpanded(!1)};return window.addEventListener("keydown",$),()=>{window.removeEventListener("layoutTransition",F),window.removeEventListener("keydown",$)}}});function X(C){var F;if(C!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),He.setSelectedItem(C),C!=="discover")try{Promise.resolve().then(()=>br).then(({selectedSubNavItemTitle:$})=>{$.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const K=document.getElementById("main-content");if(K){const ue=K.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(ue&&ue.textContent){const $e=ue.textContent.trim();$.set($e),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify($e))}}},200)}).catch($=>{console.log("[DesktopSideNav] Error clearing header state:",$)})}catch($){console.log("[DesktopSideNav] Import failed for clearing state:",$)}else try{Promise.resolve().then(()=>br).then(({selectedSubNavItemTitle:$})=>{$.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch($=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",$)})}catch($){console.log("[DesktopSideNav] Import failed for clearing Discover state:",$)}(F=f())==null||F({item:C,expanded:o()})}function oe(C,F){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),X(F))}function le(C,F){var ue,$e,xe,wr;const $=[w(A),w(J),w(T),w(R)],K=$.length;if(K)if(C.key==="ArrowDown"){C.preventDefault();const ge=(F+1)%K;(ue=$[ge])==null||ue.focus()}else if(C.key==="ArrowUp"){C.preventDefault();const ge=(F-1+K)%K;($e=$[ge])==null||$e.focus()}else C.key==="Home"?(C.preventDefault(),(xe=$[0])==null||xe.focus()):C.key==="End"&&(C.preventDefault(),(wr=$[K-1])==null||wr.focus())}var Ze=Ls();let Bi;var nn=S(Ze),on=S(nn),an=S(on),Ve=S(an);let qi;Ve.__click=[bs,s,c,o];var Fi=S(Ve),Yi=S(Fi),Qs=S(Yi);const el=re(()=>w(fe)()),tl=re(()=>w(Y)()),rl=re(()=>w(de)());en(Qs,{get isHovered(){return w(el)},get isDisabled(){return w(tl)},get isOpen(){return w(rl)}}),E(Yi),E(Fi),E(Ve),E(an);var nl=ce(an,2);{var il=C=>{var F=Ss(),$=S(F);let K;$.__click=[ms,X],$.__keydown=[ws,oe,le];var ue=S($),$e=S(ue),xe=S($e);const wr=re(()=>H("discover"));Wr(xe,{get isSelected(){return w(wr)}}),E($e),E(ue),Be(2),E($),ct($,it=>U(A,it),()=>w(A));var ge=ce($,2);let Ji;ge.__click=[_s,X],ge.__keydown=[ys,oe,le];var Ki=S(ge),Wi=S(Ki),cl=S(Wi);const dl=re(()=>H("chat"));Gr(cl,{get isSelected(){return w(dl)}}),E(Wi),E(Ki),Be(2),E(ge),ct(ge,it=>U(J,it),()=>w(J));var Pe=ce(ge,2);let Gi;Pe.__click=[ks,X],Pe.__keydown=[Cs,oe,le];var Xi=S(Pe),Qi=S(Xi),fl=S(Qi);const vl=re(()=>H("console"));Xr(fl,{get isSelected(){return w(vl)}}),E(Qi),E(Xi),Be(2),E(Pe),ct(Pe,it=>U(T,it),()=>w(T));var Je=ce(Pe,2);let eo;Je.__click=[xs,X],Je.__keydown=[Es,oe,le];var to=S(Je),ro=S(to),hl=S(ro);const pl=re(()=>H("api"));Qr(hl,{get isSelected(){return w(pl)}}),E(ro),E(to),Be(2),E(Je),ct(Je,it=>U(R,it),()=>w(R)),E(F),Le((it,gl,bl,ml,wl,_l,yl,kl)=>{G($,"href",I()||a.discover),K=Ce($,1,"nav-item discover-item svelte-6rrvhj",null,K,it),G($,"aria-current",gl),G(ge,"href",k()||a.chat),Ji=Ce(ge,1,"nav-item chat-item svelte-6rrvhj",null,Ji,bl),G(ge,"aria-current",ml),G(Pe,"href",x()||a.console),Gi=Ce(Pe,1,"nav-item console-item svelte-6rrvhj",null,Gi,wl),G(Pe,"aria-current",_l),G(Je,"href",g()||a.api),eo=Ce(Je,1,"nav-item api-item svelte-6rrvhj",null,eo,yl),G(Je,"aria-current",kl)},[()=>({selected:H("discover"),hovered:N("discover")}),()=>H("discover")?"page":void 0,()=>({selected:H("chat"),hovered:N("chat")}),()=>H("chat")?"page":void 0,()=>({selected:H("console"),hovered:N("console")}),()=>H("console")?"page":void 0,()=>({selected:H("api"),hovered:N("api")}),()=>H("api")?"page":void 0]),ve("mouseenter",$,()=>U(p,"discover")),ve("mouseleave",$,()=>U(p,null)),ve("mouseenter",ge,()=>U(p,"chat")),ve("mouseleave",ge,()=>U(p,null)),ve("mouseenter",Pe,()=>U(p,"console")),ve("mouseleave",Pe,()=>U(p,null)),ve("mouseenter",Je,()=>U(p,"api")),ve("mouseleave",Je,()=>U(p,null)),M(C,F)};ie(nl,C=>{u()&&C(il)})}E(on);var ol=ce(on,2);{var al=C=>{var F=Is(),$=S(F),K=S($);const ue=re(()=>{var xe;return(xe=h())==null?void 0:xe.userMeta}),$e=re(()=>{var xe;return(xe=h())==null?void 0:xe.menuItems});tn(K,{get userMeta(){return w(ue)},get menuItems(){return w($e)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),E($),E(F),M(C,F)};ie(ol,C=>{h()&&C(al)})}E(nn);var sn=ce(nn,2);let Zi;var sl=S(sn);{var ll=C=>{var F=Ms(),$=S(F),K=S($);Br(K,()=>d()??Se),E($),E(F),M(C,F)};ie(sl,C=>{w(j)()&&C(ll)})}E(sn),E(Ze),ct(Ze,C=>m=C,()=>m),Le((C,F,$,K,ue)=>{Bi=Ce(Ze,1,"side-nav-container svelte-6rrvhj",null,Bi,C),qi=Ce(Ve,1,"menu-button svelte-6rrvhj",null,qi,F),Ve.disabled=s(),G(Ve,"aria-label",$),G(Ve,"aria-expanded",K),Zi=Ce(sn,1,"expanded-content drawer-anim svelte-6rrvhj",null,Zi,ue)},[()=>({expanded:w(j)()}),()=>({disabled:s()}),()=>w(j)()?"Close navigation menu":"Open navigation menu",()=>w(j)()?"true":"false",()=>({open:w(j)()})]),ve("mouseenter",Ve,()=>U(b,!0)),ve("mouseleave",Ve,()=>U(b,!1)),ve("focus",Ve,()=>U(b,!0)),ve("blur",Ve,()=>U(b,!1)),M(e,Ze);var ul=ee({get ssrSelectedItem(){return l()},set ssrSelectedItem(C=void 0){l(C),_()},get onNavToggle(){return c()},set onNavToggle(C=void 0){c(C),_()},get onNavItemClick(){return f()},set onNavItemClick(C=void 0){f(C),_()},get children(){return d()},set children(C){d(C),_()},get showAppIcons(){return u()},set showAppIcons(C=!0){u(C),_()},get profileMenuData(){return h()},set profileMenuData(C){h(C),_()},get apiUrl(){return g()},set apiUrl(C){g(C),_()},get chatUrl(){return k()},set chatUrl(C){k(C),_()},get consoleUrl(){return x()},set consoleUrl(C){x(C),_()},get discoverUrl(){return I()},set discoverUrl(C){I(C),_()}});return n(),ul}qt(["click","keydown"]),te(Ni,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},children:{},showAppIcons:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Ti(e,t){Q(t,!0);let r=y(t,"ssrSelectedItem",7),n=y(t,"onNavToggle",7),i=y(t,"onNavItemClick",7),o=y(t,"showAppIcons",7,!0),s=y(t,"profileMenuData",7),a=y(t,"apiUrl",7),l=y(t,"chatUrl",7),c=y(t,"consoleUrl",7),f=y(t,"discoverUrl",7);return Ni(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get profileMenuData(){return s()},get apiUrl(){return a()},get chatUrl(){return l()},get consoleUrl(){return c()},get discoverUrl(){return f()},children:(d,u)=>{var h=pt(),g=qe(h);fr(g,t,"default",{}),M(d,h)},$$slots:{default:!0}}),ee({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 showAppIcons(){return o()},set showAppIcons(d=!0){o(d),_()},get profileMenuData(){return s()},set profileMenuData(d){s(d),_()},get apiUrl(){return a()},set apiUrl(d){a(d),_()},get chatUrl(){return l()},set chatUrl(d){l(d),_()},get consoleUrl(){return c()},set consoleUrl(d){c(d),_()},get discoverUrl(){return f()},set discoverUrl(d){f(d),_()}})}customElements.define("graymatter-desktop-side-nav",te(Ti,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var Ts=W('<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>'),js=W('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const $s={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Xt(e,t){Q(t,!0),ut(e,$s);const r=y(t,"isInverted",7,!1),n=y(t,"width",7,102),i=y(t,"height",7,30),o=y(t,"showServiceMark",7,!1),s=pr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=pt(),c=qe(l);{var f=u=>{var h=Ts();Kt(h,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(u,h)},d=u=>{var h=js();Kt(h,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(u,h)};ie(c,u=>{o()?u(d,!1):u(f)})}return M(e,l),ee({get isInverted(){return r()},set isInverted(u=!1){r(u),_()},get width(){return n()},set width(u=102){n(u),_()},get height(){return i()},set height(u=30){i(u),_()},get showServiceMark(){return o()},set showServiceMark(u=!1){o(u),_()}})}te(Xt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function ji(e,t){Q(t,!0);let r=y(t,"isInverted",7,!1),n=y(t,"width",7,void 0),i=y(t,"height",7,void 0),o=y(t,"showServiceMark",7,!1),s=pr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Xt(e,_i({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),ee({get isInverted(){return r()},set isInverted(a=!1){r(a),_()},get width(){return n()},set width(a=void 0){n(a),_()},get height(){return i()},set height(a=void 0){i(a),_()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),_()}})}customElements.define("graymatter-logo",te(ji,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mr={exports:{}},Us=mr.exports,$i;function zs(){return $i||($i=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",Us,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,c=s.trim===void 0?!0:s.trim,f=o.normalize().split("").reduce(function(d,u){var h=a[u];return h===void 0&&(h=r[u]),h===void 0&&(h=u),h===l&&(h=" "),d+h.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(f=f.replace(/[^A-Za-z0-9\s]/g,"")),c&&(f=f.trim()),f=f.replace(/\s+/g,l),s.lower&&(f=f.toLowerCase()),f}return i.extend=function(o){Object.assign(r,o)},i})}(mr)),mr.exports}var Os=zs();const Ai=As(Os);var Ds=(e,t,r)=>t(w(r).id),Hs=se('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Vs=se('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ps={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {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 var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {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 var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ui(e,t){Q(t,!0),ut(e,Ps);const[r,n]=Wt(),i=()=>Te(bt,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"apiUrl",7),l=y(t,"chatUrl",7),c=y(t,"consoleUrl",7),f=y(t,"discoverUrl",7);const d=Li(),u=[{id:"discover",label:"Discover",icon:Wr,href:f()||d.discover},{id:"chat",label:"Chat",icon:Gr,href:l()||d.chat},{id:"console",label:"Console",icon:Xr,href:c()||d.console},{id:"api",label:"API",icon:Qr,href:a()||d.api}];function h(v){var m;if(v!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),He.setSelectedItem(v),v!=="discover")try{Promise.resolve().then(()=>br).then(({selectedSubNavItemTitle:p})=>{p.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const b=document.getElementById("main-content");if(b){const L=b.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(L&&L.textContent){const A=L.textContent.trim();p.set(A),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A))}}},200)}).catch(p=>{console.log("[MobileBottomNav] Error clearing header state:",p)})}catch(p){console.log("[MobileBottomNav] Import failed for clearing state:",p)}else try{Promise.resolve().then(()=>br).then(({selectedSubNavItemTitle:p})=>{p.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(p=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",p)})}catch(p){console.log("[MobileBottomNav] Import failed for clearing Discover state:",p)}(m=o())==null||m({item:v,expanded:!1})}var g=pt(),k=qe(g);{var x=v=>{var m=Vs();oi(m,21,()=>u,va,(p,b)=>{var L=Hs();let A;L.__click=[Ds,h,b];var J=S(L),T=S(J);const R=re(()=>i()===w(b).id);ba(T,()=>w(b).icon,(N,j)=>{j(N,{get isSelected(){return w(R)}})}),E(J);var q=ce(J,2),H=S(q,!0);E(q),E(L),Le((N,j,Y)=>{G(L,"href",w(b).href),A=Ce(L,1,N,"svelte-gdyha2",A,j),G(L,"part",Y),Yt(H,w(b).label)},[()=>`nav-item ${Ai(w(b).id)}-item`,()=>({active:i()===w(b).id}),()=>`${Ai(w(b).id)}-item`]),M(p,L)}),E(m),M(v,m)};ie(k,v=>{s()&&v(x)})}M(e,g);var I=ee({get onNavItemClick(){return o()},set onNavItemClick(v){o(v),_()},get showAppIcons(){return s()},set showAppIcons(v=!0){s(v),_()},get apiUrl(){return a()},set apiUrl(v){a(v),_()},get chatUrl(){return l()},set chatUrl(v){l(v),_()},get consoleUrl(){return c()},set consoleUrl(v){c(v),_()},get discoverUrl(){return f()},set discoverUrl(v){f(v),_()}});return n(),I}qt(["click"]),te(Ui,{onNavItemClick:{},showAppIcons:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function zi(e,t){Q(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"apiUrl",7),o=y(t,"chatUrl",7),s=y(t,"consoleUrl",7),a=y(t,"discoverUrl",7);return Ui(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get apiUrl(){return i()},get chatUrl(){return o()},get consoleUrl(){return s()},get discoverUrl(){return a()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(l){r(l),_()},get showAppIcons(){return n()},set showAppIcons(l=!0){n(l),_()},get apiUrl(){return i()},set apiUrl(l){i(l),_()},get chatUrl(){return o()},set chatUrl(l){o(l),_()},get consoleUrl(){return s()},set consoleUrl(l){s(l),_()},get discoverUrl(){return a()},set discoverUrl(l){a(l),_()}})}customElements.define("graymatter-mobile-bottom-nav",te(zi,{onNavItemClick:{},showAppIcons:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Rs=W('<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 Oi(e){var t=Rs();M(e,t)}te(Oi,{},[],[],!0);var Bs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},qs=se('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Fs=se('<a part="logo-link" class="logo-link svelte-1hj7mm1"><!></a>'),Ys=se('<div class="subnav-section svelte-1hj7mm1" part="subnav-section"><!></div>'),Zs=se('<div class="no-subnav-message svelte-1hj7mm1" part="no-subnav-message"><p class="svelte-1hj7mm1">Select a section from the bottom navigation</p></div>'),Js=se('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1hj7mm1" part="menu-header"><div class="logo-container svelte-1hj7mm1" part="logo-container"><!></div> <button class="close-button svelte-1hj7mm1" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1hj7mm1" part="menu-content"><!></div></div>',1);const Ks={hash:"svelte-1hj7mm1",code:".no-subnav-message.svelte-1hj7mm1 {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1hj7mm1 p:where(.svelte-1hj7mm1) {margin:0;}.mobile-side-menu.svelte-1hj7mm1 {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);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-1hj7mm1 {transform:translateX(0);}.menu-header.svelte-1hj7mm1 {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-1hj7mm1 .logo-container:where(.svelte-1hj7mm1) {display:flex;}.logo-link.svelte-1hj7mm1 {display:flex;}.close-button.svelte-1hj7mm1 {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 var(--ai-transition-ease-fast);}.close-button.svelte-1hj7mm1:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1hj7mm1 {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1hj7mm1 {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Di(e,t){Q(t,!0),ut(e,Ks);const[r,n]=Wt(),i=()=>Te(De,"$isExpanded",r),o=()=>Te(bt,"$selectedItem",r);let s,a=null,l=y(t,"logoLinkUrl",7),c=y(t,"logoLinkLabel",7);function f(N){if(a=N.detail.hash,d(),a){const Y=document.getElementById(a);if(Y){const de=document.getElementById("main-content-mobile"),fe=de?de.querySelector(`[id="${a}"]`):null;if(fe&&de){const X=fe.getBoundingClientRect(),oe=de.getBoundingClientRect(),le=de.scrollTop+X.top-oe.top;de.scrollTo({top:le,behavior:"auto"}),setTimeout(()=>{var Ze;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Ze=fe.textContent)==null?void 0:Ze.trim(),id:fe.id}}))},100)}else{let X=Y.parentElement;for(;X&&X!==document.body;){const oe=window.getComputedStyle(X);if(oe.overflowY==="auto"||oe.overflowY==="scroll")break;X=X.parentElement}X&&X!==document.body?document.getElementById("main-content")?(Y.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var le;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(le=Y.textContent)==null?void 0:le.trim(),id:Y.id}}))},100)):Y.scrollIntoView({behavior:"auto",block:"start"}):Y.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Zt(()=>{window.addEventListener("mobileAnchorNavigate",f);const N=()=>{d()};window.addEventListener("closeMobileMenu",N);const j=de=>{const fe=de,{isMobile:X}=fe.detail;X&&He.setExpanded(!1)};window.addEventListener("layoutTransition",j);const Y=de=>{const fe=document.activeElement;de.key==="Escape"&&i()&&!(fe&&fe.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",Y),()=>{window.removeEventListener("mobileAnchorNavigate",f),window.removeEventListener("closeMobileMenu",N),window.removeEventListener("layoutTransition",j),window.removeEventListener("keydown",Y)}});function d(){He.setExpanded(!1)}var u=Js(),h=qe(u);{var g=N=>{var j=qs();j.__click=d,j.__keydown=[Bs,d],M(N,j)};ie(h,N=>{i()&&N(g)})}var k=ce(h,2);let x;var I=S(k),v=S(I),m=S(v);{var p=N=>{var j=Fs(),Y=S(j);Xt(Y,{width:75,height:22}),E(j),Le(()=>{G(j,"href",l()),G(j,"aria-label",c())}),M(N,j)},b=N=>{Xt(N,{width:75,height:22})};ie(m,N=>{l()?N(p):N(b,!1)})}E(v);var L=ce(v,2);L.__click=d;var A=S(L);Oi(A),E(L),E(I);var J=ce(I,2),T=S(J);{var R=N=>{var j=Ys(),Y=S(j);fr(Y,t,"default",{}),E(j),M(N,j)},q=N=>{var j=Zs();M(N,j)};ie(T,N=>{o()&&o()!=="discover"?N(R):N(q,!1)})}E(J),E(k),ct(k,N=>s=N,()=>s),Le(N=>x=Ce(k,1,"mobile-side-menu svelte-1hj7mm1",null,x,N),[()=>({open:i()})]),M(e,u);var H=ee({get logoLinkUrl(){return l()},set logoLinkUrl(N){l(N),_()},get logoLinkLabel(){return c()},set logoLinkLabel(N){c(N),_()}});return n(),H}qt(["click","keydown"]),te(Di,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Hi(e,t){Q(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7);return Di(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=pt(),a=qe(s);fr(a,t,"default",{}),M(i,s)},$$slots:{default:!0}}),ee({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),_()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),_()}})}customElements.define("graymatter-mobile-side-menu",te(Hi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Ws(){He.toggleExpanded()}var Gs=se('<nav class="mobile-top-nav svelte-1s2207y" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1s2207y"><!> <span class="brand-text svelte-1s2207y"> </span></div> <!></nav>');const Xs={hash:"svelte-1s2207y",code:`.menu-button.svelte-1s2207y {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1s2207y:disabled,
109
+ } */`};function Ai(e,t){X(t,!0),ut(e,Us);const[r,n]=Gt(),i=()=>Ne(gt,"$selectedItem",r),o=()=>Ne(He,"$isExpanded",r),s=()=>Ne(Wr,"$isMenuButtonDisabled",r),a=Ti(),u=y(t,"ssrSelectedItem",7,void 0),c=y(t,"onNavToggle",7,void 0),v=y(t,"onNavItemClick",7,void 0),d=y(t,"children",7),l=y(t,"showAppIcons",7,!0),b=y(t,"profileMenuData",7),h=y(t,"apiUrl",7),k=y(t,"chatUrl",7),C=y(t,"consoleUrl",7),z=y(t,"discoverUrl",7);let p=!1,g,f=he(null),w=he(!1),E=he(!1),j=he(null),P=he(null),M=he(null),A=he(null);function B(x,Y){return p?x:Y}function H(x){return B(i()===x,u()===x)}function ue(x){return m(f)===x}const I=ne(()=>()=>B(o(),u()?u()!=="discover":!0)),R=ne(()=>()=>B(s(),u()?u()==="discover":!1)),re=ne(()=>()=>B(o(),u()?u()!=="discover":!0)),ce=ne(()=>()=>m(E)&&m(w)&&!m(R)());Jt(()=>{if(p=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),g&&g.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");U(E,x.matches,!0),x.addEventListener("change",W=>{U(E,W.matches,!0)});const Y=W=>{const de=W,{isMobile:Ae}=de.detail;if(Ae)qe.setExpanded(!1);else{const Se=i();Se&&Se!=="discover"?qe.setExpanded(!0):qe.setExpanded(!1)}};window.addEventListener("layoutTransition",Y);const T=W=>{const de=document.activeElement;W.key==="Escape"&&o()&&!(de&&de.closest(".profile-context-menu"))&&qe.setExpanded(!1)};return window.addEventListener("keydown",T),()=>{window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",T)}}});function ae(x){var Y;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),qe.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>mr).then(({selectedSubNavItemTitle:T})=>{T.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const W=document.getElementById("main-content");if(W){const de=W.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(de&&de.textContent){const Ae=de.textContent.trim();T.set(Ae),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Ae))}}},200)}).catch(T=>{console.log("[DesktopSideNav] Error clearing header state:",T)})}catch(T){console.log("[DesktopSideNav] Import failed for clearing state:",T)}else try{Promise.resolve().then(()=>mr).then(({selectedSubNavItemTitle:T})=>{T.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(T=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",T)})}catch(T){console.log("[DesktopSideNav] Import failed for clearing Discover state:",T)}(Y=v())==null||Y({item:x,expanded:o()})}function F(x,Y){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),ae(Y))}function le(x,Y){var de,Ae,Se,yr;const T=[m(j),m(P),m(M),m(A)],W=T.length;if(W)if(x.key==="ArrowDown"){x.preventDefault();const ge=(Y+1)%W;(de=T[ge])==null||de.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const ge=(Y-1+W)%W;(Ae=T[ge])==null||Ae.focus()}else x.key==="Home"?(x.preventDefault(),(Se=T[0])==null||Se.focus()):x.key==="End"&&(x.preventDefault(),(yr=T[W-1])==null||yr.focus())}var Te=As();let Qt;var on=L(Te),an=L(on),sn=L(an),Ve=L(sn);let Zi;Ve.__click=[ks,s,c,o];var Ji=L(Ve),Ki=L(Ji),ol=L(Ki);const al=ne(()=>m(ce)()),sl=ne(()=>m(R)()),ll=ne(()=>m(re)());tn(ol,{get isHovered(){return m(al)},get isDisabled(){return m(sl)},get isOpen(){return m(ll)}}),S(Ki),S(Ji),S(Ve),S(sn);var ul=ve(sn,2);{var cl=x=>{var Y=Ns(),T=L(Y);let W;T.__click=[xs,ae],T.__keydown=[Cs,F,le];var de=L(T),Ae=L(de),Se=L(Ae);const yr=ne(()=>H("discover"));Gr(Se,{get isSelected(){return m(yr)}}),S(Ae),S(de),Be(2),S(T),ct(T,it=>U(j,it),()=>m(j));var ge=ve(T,2);let Gi;ge.__click=[Es,ae],ge.__keydown=[Ss,F,le];var Xi=L(ge),Qi=L(Xi),gl=L(Qi);const pl=ne(()=>H("chat"));Xr(gl,{get isSelected(){return m(pl)}}),S(Qi),S(Xi),Be(2),S(ge),ct(ge,it=>U(P,it),()=>m(P));var Pe=ve(ge,2);let eo;Pe.__click=[Ls,ae],Pe.__keydown=[zs,F,le];var to=L(Pe),ro=L(to),ml=L(ro);const wl=ne(()=>H("console"));Qr(ml,{get isSelected(){return m(wl)}}),S(ro),S(to),Be(2),S(Pe),ct(Pe,it=>U(M,it),()=>m(M));var Ze=ve(Pe,2);let no;Ze.__click=[Is,ae],Ze.__keydown=[Ms,F,le];var io=L(Ze),oo=L(io),_l=L(oo);const yl=ne(()=>H("api"));en(_l,{get isSelected(){return m(yl)}}),S(oo),S(io),Be(2),S(Ze),ct(Ze,it=>U(A,it),()=>m(A)),S(Y),ke((it,kl,xl,Cl,El,Sl,Ll,zl)=>{K(T,"href",z()||a.discover),W=Ee(T,1,"nav-item discover-item svelte-6rrvhj",null,W,it),K(T,"aria-current",kl),K(ge,"href",k()||a.chat),Gi=Ee(ge,1,"nav-item chat-item svelte-6rrvhj",null,Gi,xl),K(ge,"aria-current",Cl),K(Pe,"href",C()||a.console),eo=Ee(Pe,1,"nav-item console-item svelte-6rrvhj",null,eo,El),K(Pe,"aria-current",Sl),K(Ze,"href",h()||a.api),no=Ee(Ze,1,"nav-item api-item svelte-6rrvhj",null,no,Ll),K(Ze,"aria-current",zl)},[()=>({selected:H("discover"),hovered:ue("discover")}),()=>H("discover")?"page":void 0,()=>({selected:H("chat"),hovered:ue("chat")}),()=>H("chat")?"page":void 0,()=>({selected:H("console"),hovered:ue("console")}),()=>H("console")?"page":void 0,()=>({selected:H("api"),hovered:ue("api")}),()=>H("api")?"page":void 0]),fe("mouseenter",T,()=>U(f,"discover")),fe("mouseleave",T,()=>U(f,null)),fe("mouseenter",ge,()=>U(f,"chat")),fe("mouseleave",ge,()=>U(f,null)),fe("mouseenter",Pe,()=>U(f,"console")),fe("mouseleave",Pe,()=>U(f,null)),fe("mouseenter",Ze,()=>U(f,"api")),fe("mouseleave",Ze,()=>U(f,null)),N(x,Y)};ee(ul,x=>{l()&&x(cl)})}S(an);var dl=ve(an,2);{var vl=x=>{var Y=js(),T=L(Y),W=L(T);const de=ne(()=>{var Se;return(Se=b())==null?void 0:Se.userMeta}),Ae=ne(()=>{var Se;return(Se=b())==null?void 0:Se.menuItems});rn(W,{get userMeta(){return m(de)},get menuItems(){return m(Ae)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),S(T),S(Y),N(x,Y)};ee(dl,x=>{b()&&x(vl)})}S(on);var ln=ve(on,2);let Wi;var fl=L(ln);{var hl=x=>{var Y=Ts(),T=L(Y),W=L(T);fr(W,()=>d()??we),S(T),S(Y),N(x,Y)};ee(fl,x=>{m(I)()&&x(hl)})}S(ln),S(Te),ct(Te,x=>g=x,()=>g),ke((x,Y,T,W,de)=>{Qt=Ee(Te,1,"side-nav-container svelte-6rrvhj",null,Qt,x),Zi=Ee(Ve,1,"menu-button svelte-6rrvhj",null,Zi,Y),Ve.disabled=s(),K(Ve,"aria-label",T),K(Ve,"aria-expanded",W),Wi=Ee(ln,1,"expanded-content drawer-anim svelte-6rrvhj",null,Wi,de)},[()=>({expanded:m(I)()}),()=>({disabled:s()}),()=>m(I)()?"Close navigation menu":"Open navigation menu",()=>m(I)()?"true":"false",()=>({open:m(I)()})]),fe("mouseenter",Ve,()=>U(w,!0)),fe("mouseleave",Ve,()=>U(w,!1)),fe("focus",Ve,()=>U(w,!0)),fe("blur",Ve,()=>U(w,!1)),N(e,Te);var bl=Q({get ssrSelectedItem(){return u()},set ssrSelectedItem(x=void 0){u(x),_()},get onNavToggle(){return c()},set onNavToggle(x=void 0){c(x),_()},get onNavItemClick(){return v()},set onNavItemClick(x=void 0){v(x),_()},get children(){return d()},set children(x){d(x),_()},get showAppIcons(){return l()},set showAppIcons(x=!0){l(x),_()},get profileMenuData(){return b()},set profileMenuData(x){b(x),_()},get apiUrl(){return h()},set apiUrl(x){h(x),_()},get chatUrl(){return k()},set chatUrl(x){k(x),_()},get consoleUrl(){return C()},set consoleUrl(x){C(x),_()},get discoverUrl(){return z()},set discoverUrl(x){z(x),_()}});return n(),bl}Ft(["click","keydown"]),te(Ai,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},children:{},showAppIcons:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Ui(e,t){X(t,!0);let r=y(t,"ssrSelectedItem",7),n=y(t,"onNavToggle",7),i=y(t,"onNavItemClick",7),o=y(t,"showAppIcons",7,!0),s=y(t,"profileMenuData",7),a=y(t,"apiUrl",7),u=y(t,"chatUrl",7),c=y(t,"consoleUrl",7),v=y(t,"discoverUrl",7),d=y(t,"children",7);return Ai(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get profileMenuData(){return s()},get apiUrl(){return a()},get chatUrl(){return u()},get consoleUrl(){return c()},get discoverUrl(){return v()},get children(){return d()},$$slots:{default:(l,b)=>{var h=St(),k=Qe(h);ui(k,t,"default",{}),N(l,h)}}}),Q({get ssrSelectedItem(){return r()},set ssrSelectedItem(l){r(l),_()},get onNavToggle(){return n()},set onNavToggle(l){n(l),_()},get onNavItemClick(){return i()},set onNavItemClick(l){i(l),_()},get showAppIcons(){return o()},set showAppIcons(l=!0){o(l),_()},get profileMenuData(){return s()},set profileMenuData(l){s(l),_()},get apiUrl(){return a()},set apiUrl(l){a(l),_()},get chatUrl(){return u()},set chatUrl(l){u(l),_()},get consoleUrl(){return c()},set consoleUrl(l){c(l),_()},get discoverUrl(){return v()},set discoverUrl(l){v(l),_()},get children(){return d()},set children(l){d(l),_()}})}customElements.define("graymatter-desktop-side-nav",te(Ui,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},children:{}},["default"],[],!0));var $s=G('<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>'),Os=G('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Ds={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Mt(e,t){X(t,!0),ut(e,Ds);const r=y(t,"isInverted",7,!1),n=y(t,"width",7,102),i=y(t,"height",7,30),o=y(t,"showServiceMark",7,!1),s=gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var u=St(),c=Qe(u);{var v=l=>{var b=$s();Wt(b,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),N(l,b)},d=l=>{var b=Os();Wt(b,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),N(l,b)};ee(c,l=>{o()?l(d,!1):l(v)})}return N(e,u),Q({get isInverted(){return r()},set isInverted(l=!1){r(l),_()},get width(){return n()},set width(l=102){n(l),_()},get height(){return i()},set height(l=30){i(l),_()},get showServiceMark(){return o()},set showServiceMark(l=!1){o(l),_()}})}te(Mt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function $i(e,t){X(t,!0);let r=y(t,"isInverted",7,!1),n=y(t,"width",7,void 0),i=y(t,"height",7,void 0),o=y(t,"showServiceMark",7,!1),s=gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Mt(e,ki({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),Q({get isInverted(){return r()},set isInverted(a=!1){r(a),_()},get width(){return n()},set width(a=void 0){n(a),_()},get height(){return i()},set height(a=void 0){i(a),_()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),_()}})}customElements.define("graymatter-logo",te($i,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _r={exports:{}},qs=_r.exports,Oi;function Vs(){return Oi||(Oi=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",qs,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]||{},u=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,v=o.normalize().split("").reduce(function(d,l){var b=a[l];return b===void 0&&(b=r[l]),b===void 0&&(b=l),b===u&&(b=" "),d+b.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(v=v.replace(/[^A-Za-z0-9\s]/g,"")),c&&(v=v.trim()),v=v.replace(/\s+/g,u),s.lower&&(v=v.toLowerCase()),v}return i.extend=function(o){Object.assign(r,o)},i})}(_r)),_r.exports}var Ps=Vs();const Di=Hs(Ps);var Rs=(e,t,r)=>t(m(r).id),Bs=oe('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Fs=oe('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ys={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {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 var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {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 var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Hi(e,t){X(t,!0),ut(e,Ys);const[r,n]=Gt(),i=()=>Ne(gt,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"apiUrl",7),u=y(t,"chatUrl",7),c=y(t,"consoleUrl",7),v=y(t,"discoverUrl",7);const d=Ti(),l=[{id:"discover",label:"Discover",icon:Gr,href:v()||d.discover},{id:"chat",label:"Chat",icon:Xr,href:u()||d.chat},{id:"console",label:"Console",icon:Qr,href:c()||d.console},{id:"api",label:"API",icon:en,href:a()||d.api}];function b(p){var g;if(p!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),qe.setSelectedItem(p),p!=="discover")try{Promise.resolve().then(()=>mr).then(({selectedSubNavItemTitle:f})=>{f.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const w=document.getElementById("main-content");if(w){const E=w.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(E&&E.textContent){const j=E.textContent.trim();f.set(j),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(j))}}},200)}).catch(f=>{console.log("[MobileBottomNav] Error clearing header state:",f)})}catch(f){console.log("[MobileBottomNav] Import failed for clearing state:",f)}else try{Promise.resolve().then(()=>mr).then(({selectedSubNavItemTitle:f})=>{f.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(f=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",f)})}catch(f){console.log("[MobileBottomNav] Import failed for clearing Discover state:",f)}(g=o())==null||g({item:p,expanded:!1})}var h=St(),k=Qe(h);{var C=p=>{var g=Fs();ai(g,21,()=>l,ga,(f,w)=>{var E=Bs();let j;E.__click=[Rs,b,w];var P=L(E),M=L(P);const A=ne(()=>i()===m(w).id);_a(M,()=>m(w).icon,(ue,I)=>{I(ue,{get isSelected(){return m(A)}})}),S(P);var B=ve(P,2),H=L(B,!0);S(B),S(E),ke((ue,I,R)=>{K(E,"href",m(w).href),j=Ee(E,1,ue,"svelte-gdyha2",j,I),K(E,"part",R),Zt(H,m(w).label)},[()=>`nav-item ${Di(m(w).id)}-item`,()=>({active:i()===m(w).id}),()=>`${Di(m(w).id)}-item`]),N(f,E)}),S(g),N(p,g)};ee(k,p=>{s()&&p(C)})}N(e,h);var z=Q({get onNavItemClick(){return o()},set onNavItemClick(p){o(p),_()},get showAppIcons(){return s()},set showAppIcons(p=!0){s(p),_()},get apiUrl(){return a()},set apiUrl(p){a(p),_()},get chatUrl(){return u()},set chatUrl(p){u(p),_()},get consoleUrl(){return c()},set consoleUrl(p){c(p),_()},get discoverUrl(){return v()},set discoverUrl(p){v(p),_()}});return n(),z}Ft(["click"]),te(Hi,{onNavItemClick:{},showAppIcons:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function qi(e,t){X(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"apiUrl",7),o=y(t,"chatUrl",7),s=y(t,"consoleUrl",7),a=y(t,"discoverUrl",7);return Hi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get apiUrl(){return i()},get chatUrl(){return o()},get consoleUrl(){return s()},get discoverUrl(){return a()}}),Q({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),_()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),_()},get apiUrl(){return i()},set apiUrl(u){i(u),_()},get chatUrl(){return o()},set chatUrl(u){o(u),_()},get consoleUrl(){return s()},set consoleUrl(u){s(u),_()},get discoverUrl(){return a()},set discoverUrl(u){a(u),_()}})}customElements.define("graymatter-mobile-bottom-nav",te(qi,{onNavItemClick:{},showAppIcons:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Zs=G('<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 Vi(e){var t=Zs();N(e,t)}te(Vi,{},[],[],!0);var Js=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Ks=oe('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Ws=oe('<a part="logo-link" class="logo-link svelte-1hj7mm1"><!></a>'),Gs=oe('<div class="subnav-section svelte-1hj7mm1" part="subnav-section"><!></div>'),Xs=oe('<div class="no-subnav-message svelte-1hj7mm1" part="no-subnav-message"><p class="svelte-1hj7mm1">Select a section from the bottom navigation</p></div>'),Qs=oe('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1hj7mm1" part="menu-header"><div class="logo-container svelte-1hj7mm1" part="logo-container"><!></div> <button class="close-button svelte-1hj7mm1" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1hj7mm1" part="menu-content"><!></div></div>',1);const el={hash:"svelte-1hj7mm1",code:".no-subnav-message.svelte-1hj7mm1 {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1hj7mm1 p:where(.svelte-1hj7mm1) {margin:0;}.mobile-side-menu.svelte-1hj7mm1 {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);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-1hj7mm1 {transform:translateX(0);}.menu-header.svelte-1hj7mm1 {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-1hj7mm1 .logo-container:where(.svelte-1hj7mm1) {display:flex;}.logo-link.svelte-1hj7mm1 {display:flex;}.close-button.svelte-1hj7mm1 {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 var(--ai-transition-ease-fast);}.close-button.svelte-1hj7mm1:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1hj7mm1 {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1hj7mm1 {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Pi(e,t){X(t,!0),ut(e,el);const[r,n]=Gt(),i=()=>Ne(He,"$isExpanded",r),o=()=>Ne(gt,"$selectedItem",r);let s,a=null,u=y(t,"logoLinkUrl",7),c=y(t,"logoLinkLabel",7),v=y(t,"children",7);function d(I){if(a=I.detail.hash,l(),a){const re=document.getElementById(a);if(re){const ce=document.getElementById("main-content-mobile"),ae=ce?ce.querySelector(`[id="${a}"]`):null;if(ae&&ce){const F=ae.getBoundingClientRect(),le=ce.getBoundingClientRect(),Te=ce.scrollTop+F.top-le.top;ce.scrollTo({top:Te,behavior:"auto"}),setTimeout(()=>{var Qt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Qt=ae.textContent)==null?void 0:Qt.trim(),id:ae.id}}))},100)}else{let F=re.parentElement;for(;F&&F!==document.body;){const le=window.getComputedStyle(F);if(le.overflowY==="auto"||le.overflowY==="scroll")break;F=F.parentElement}F&&F!==document.body?document.getElementById("main-content")?(re.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var Te;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Te=re.textContent)==null?void 0:Te.trim(),id:re.id}}))},100)):re.scrollIntoView({behavior:"auto",block:"start"}):re.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Jt(()=>{window.addEventListener("mobileAnchorNavigate",d);const I=()=>{l()};window.addEventListener("closeMobileMenu",I);const R=ce=>{const ae=ce,{isMobile:F}=ae.detail;F&&qe.setExpanded(!1)};window.addEventListener("layoutTransition",R);const re=ce=>{const ae=document.activeElement;ce.key==="Escape"&&i()&&!(ae&&ae.closest(".profile-context-menu"))&&l()};return window.addEventListener("keydown",re),()=>{window.removeEventListener("mobileAnchorNavigate",d),window.removeEventListener("closeMobileMenu",I),window.removeEventListener("layoutTransition",R),window.removeEventListener("keydown",re)}});function l(){qe.setExpanded(!1)}var b=Qs(),h=Qe(b);{var k=I=>{var R=Ks();R.__click=l,R.__keydown=[Js,l],N(I,R)};ee(h,I=>{i()&&I(k)})}var C=ve(h,2);let z;var p=L(C),g=L(p),f=L(g);{var w=I=>{var R=Ws(),re=L(R);Mt(re,{width:75,height:22}),S(R),ke(()=>{K(R,"href",u()),K(R,"aria-label",c())}),N(I,R)},E=I=>{Mt(I,{width:75,height:22})};ee(f,I=>{u()?I(w):I(E,!1)})}S(g);var j=ve(g,2);j.__click=l;var P=L(j);Vi(P),S(j),S(p);var M=ve(p,2),A=L(M);{var B=I=>{var R=Gs(),re=L(R);fr(re,()=>v()??we),S(R),N(I,R)},H=I=>{var R=Xs();N(I,R)};ee(A,I=>{o()&&o()!=="discover"?I(B):I(H,!1)})}S(M),S(C),ct(C,I=>s=I,()=>s),ke(I=>z=Ee(C,1,"mobile-side-menu svelte-1hj7mm1",null,z,I),[()=>({open:i()})]),N(e,b);var ue=Q({get logoLinkUrl(){return u()},set logoLinkUrl(I){u(I),_()},get logoLinkLabel(){return c()},set logoLinkLabel(I){c(I),_()},get children(){return v()},set children(I){v(I),_()}});return n(),ue}Ft(["click","keydown"]),te(Pi,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],!0);function Ri(e,t){X(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7),i=y(t,"children",7);return Pi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),Q({get logoLinkUrl(){return r()},set logoLinkUrl(o){r(o),_()},get logoLinkLabel(){return n()},set logoLinkLabel(o){n(o),_()},get children(){return i()},set children(o){i(o),_()}})}customElements.define("graymatter-mobile-side-menu",te(Ri,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],!0));function tl(){qe.toggleExpanded()}var rl=oe('<a class="display-flex"><!></a>'),nl=oe('<nav class="mobile-top-nav svelte-1s2207y" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1s2207y"><!> <span class="brand-text svelte-1s2207y"> </span></div> <!></nav>');const il={hash:"svelte-1s2207y",code:`.menu-button.svelte-1s2207y {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1s2207y:disabled,
88
110
  .menu-button.disabled.svelte-1s2207y {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-1s2207y .menu-button:where(.svelte-1s2207y) {width:var(--ai-size-40);height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1s2207y:hover {background-color:var(--ai-color-neutral-100);}
89
111
 
90
112
  /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1s2207y .menu-button.disabled:where(.svelte-1s2207y),
91
- .mobile-top-nav.svelte-1s2207y .menu-button:where(.svelte-1s2207y):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1s2207y {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1s2207y {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1s2207y {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1s2207y {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1s2207y:focus {outline:none;}`};function Vi(e,t){Q(t,!0),ut(e,Xs);const[r,n]=Wt(),i=()=>Te(gt,"$selectedSubNavItemTitle",r),o=()=>Te(Kr,"$isMenuButtonDisabled",r);let s=y(t,"profileMenuData",7);Zt(()=>{const v=b=>{if(window.innerWidth<=640)return;const L=b;L.detail&&L.detail.title&&(gt.set(L.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))},m=()=>{if(typeof window>"u")return;const b=document.getElementById("main-content");if(!b)return;const L=b.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(L&&L.textContent){const A=L.textContent.trim();i()||(gt.set(A),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A)))}};window.addEventListener("sectionVisible",v);const p=sessionStorage.getItem("subNav-selectedTitle");return(!p||p==='""'||p==="null")&&setTimeout(()=>{m()},100),()=>{window.removeEventListener("sectionVisible",v)}});var a=Gs(),l=S(a);let c;l.__click=[Ws];var f=S(l);en(f,{}),E(l);var d=ce(l,2),u=S(d);Xt(u,{width:75,height:22});var h=ce(u,2),g=S(h,!0);E(h),E(d);var k=ce(d,2);{var x=v=>{const m=re(()=>{var b;return(b=s())==null?void 0:b.userMeta}),p=re(()=>{var b;return(b=s())==null?void 0:b.menuItems});tn(v,{get userMeta(){return w(m)},get menuItems(){return w(p)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};ie(k,v=>{s()&&v(x)})}E(a),Le(v=>{c=Ce(l,1,"menu-button svelte-1s2207y",null,c,v),l.disabled=o(),Yt(g,i()||"")},[()=>({disabled:o()})]),M(e,a);var I=ee({get profileMenuData(){return s()},set profileMenuData(v){s(v),_()}});return n(),I}qt(["click"]),te(Vi,{profileMenuData:{}},[],[],!0);function Pi(e,t){Q(t,!0);let r=y(t,"profileMenuData",7);return Vi(e,{get profileMenuData(){return r()}}),ee({get profileMenuData(){return r()},set profileMenuData(n){r(n),_()}})}customElements.define("graymatter-mobile-top-nav",te(Pi,{profileMenuData:{}},[],[],!0)),z.Button=Ci,z.DesktopHeader=Mi,z.DesktopSideNav=Ti,z.Logo=ji,z.MobileBottomNav=zi,z.MobileSideMenu=Hi,z.MobileTopNav=Pi,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
113
+ .mobile-top-nav.svelte-1s2207y .menu-button:where(.svelte-1s2207y):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1s2207y {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1s2207y {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1s2207y {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1s2207y {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1s2207y:focus {outline:none;}`};function Bi(e,t){X(t,!0),ut(e,il);const[r,n]=Gt(),i=()=>Ne(bt,"$selectedSubNavItemTitle",r),o=()=>Ne(Wr,"$isMenuButtonDisabled",r);let s=y(t,"profileMenuData",7),a=y(t,"logoLinkUrl",7),u=y(t,"logoLinkLabel",7);Jt(()=>{const E=M=>{if(window.innerWidth<=640)return;const A=M;A.detail&&A.detail.title&&(bt.set(A.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A.detail.title)))},j=()=>{if(typeof window>"u")return;const M=document.getElementById("main-content");if(!M)return;const A=M.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(A&&A.textContent){const B=A.textContent.trim();i()||(bt.set(B),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(B)))}};window.addEventListener("sectionVisible",E);const P=sessionStorage.getItem("subNav-selectedTitle");return(!P||P==='""'||P==="null")&&setTimeout(()=>{j()},100),()=>{window.removeEventListener("sectionVisible",E)}});var c=nl(),v=L(c);let d;v.__click=[tl];var l=L(v);tn(l,{}),S(v);var b=ve(v,2),h=L(b);{var k=E=>{var j=rl(),P=L(j);Mt(P,{width:75,height:22}),S(j),ke(()=>{K(j,"href",a()),K(j,"aria-label",u())}),N(E,j)},C=E=>{Mt(E,{width:75,height:22})};ee(h,E=>{a()?E(k):E(C,!1)})}var z=ve(h,2),p=L(z,!0);S(z),S(b);var g=ve(b,2);{var f=E=>{const j=ne(()=>{var M;return(M=s())==null?void 0:M.userMeta}),P=ne(()=>{var M;return(M=s())==null?void 0:M.menuItems});rn(E,{get userMeta(){return m(j)},get menuItems(){return m(P)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};ee(g,E=>{s()&&E(f)})}S(c),ke(E=>{d=Ee(v,1,"menu-button svelte-1s2207y",null,d,E),v.disabled=o(),Zt(p,i()||"")},[()=>({disabled:o()})]),N(e,c);var w=Q({get profileMenuData(){return s()},set profileMenuData(E){s(E),_()},get logoLinkUrl(){return a()},set logoLinkUrl(E){a(E),_()},get logoLinkLabel(){return u()},set logoLinkLabel(E){u(E),_()}});return n(),w}Ft(["click"]),te(Bi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0);function Fi(e,t){X(t,!0);let r=y(t,"profileMenuData",7),n=y(t,"logoLinkUrl",7),i=y(t,"logoLinkLabel",7);return Bi(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()}}),Q({get profileMenuData(){return r()},set profileMenuData(o){r(o),_()},get logoLinkUrl(){return n()},set logoLinkUrl(o){n(o),_()},get logoLinkLabel(){return i()},set logoLinkLabel(o){i(o),_()}})}customElements.define("graymatter-mobile-top-nav",te(Fi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0)),$.Button=Ei,$.DesktopHeader=Mi,$.DesktopSideNav=Ui,$.Logo=$i,$.MobileBottomNav=qi,$.MobileSideMenu=Ri,$.MobileTopNav=Fi,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});