@gsa-tts/graymatter-ui 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(D,Y){typeof exports=="object"&&typeof module<"u"?Y(exports):typeof define=="function"&&define.amd?define(["exports"],Y):(D=typeof globalThis<"u"?globalThis:D||self,Y(D.graymatter={}))})(this,function(D){"use strict";var hl=Object.defineProperty;var eo=D=>{throw TypeError(D)};var gl=(D,Y,se)=>Y in D?hl(D,Y,{enumerable:!0,configurable:!0,writable:!0,value:se}):D[Y]=se;var ze=(D,Y,se)=>gl(D,typeof Y!="symbol"?Y+"":Y,se),to=(D,Y,se)=>Y.has(D)||eo("Cannot "+se);var ye=(D,Y,se)=>(to(D,Y,"read from private field"),se?se.call(D):Y.get(D)),vn=(D,Y,se)=>Y.has(D)?eo("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(D):Y.set(D,se),fn=(D,Y,se,wt)=>(to(D,Y,"write to private field"),wt?wt.call(D,se):Y.set(D,se),se);var Ri,nt,$e;typeof window<"u"&&((Ri=window.__svelte??(window.__svelte={})).v??(Ri.v=new Set)).add("5");const se=1,wt=2,hn=4,ro=8,no=16,io=1,oo=2,gn=4,ao=8,so=16,bn=1,lo=2,Er="[",Sr="[!",zr="]",_t={},we=Symbol(),uo="http://www.w3.org/1999/xhtml",co="@attach",pn=!1;var rr=Array.isArray,vo=Array.prototype.indexOf,Lr=Array.from,nr=Object.keys,$t=Object.defineProperty,We=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,fo=Object.prototype,ho=Array.prototype,Ir=Object.getPrototypeOf,wn=Object.isExtensible;function Dt(e){return typeof e=="function"}const it=()=>{};function go(e){return e()}function At(e){for(var t=0;t<e.length;t++)e[t]()}const Le=2,Mr=4,Ut=8,Nr=16,Ge=32,vt=64,Tr=128,ke=256,ir=512,xe=1024,Xe=2048,ot=4096,Qe=8192,$r=16384,_n=32768,or=65536,yn=1<<17,bo=1<<18,kn=1<<19,Dr=1<<20,Ar=1<<21,Be=Symbol("$state"),Ur=Symbol("legacy props"),po=Symbol(""),xn=new class extends Error{constructor(){super(...arguments);ze(this,"name","StaleReactionError");ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Cn=3,Ht=8;function En(e){return e===this.v}function Sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zn(e){return!Sn(e,this.v)}function mo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _o(e){throw new Error("https://svelte.dev/e/effect_orphan")}function yo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ko(){throw new Error("https://svelte.dev/e/hydration_failed")}function xo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Co(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Eo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function So(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,zo=!1;function Lo(){yt=!0}function Io(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let J=null;function Ln(e){J=e}function Q(e,t=!1,r){var n=J={p:J,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(J.l={s:null,u:null,r1:[],r2:Ct(!1)}),lr(()=>{n.d=!0})}function ee(e){const t=J;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=B,n=V;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];st(o.effect),Ye(o.reaction),Bn(o.fn)}}finally{st(r),Ye(n)}}J=t.p,t.m=!0}return e||{}}function ar(){return!yt||J!==null&&J.l===null}function kt(e){if(typeof e!="object"||e===null||Be in e)return e;const t=Ir(e);if(t!==fo&&t!==ho)return e;var r=new Map,n=rr(e),i=be(0),o=V,s=a=>{var l=V;Ye(o);var u=a();return Ye(l),u};return n&&r.set("length",be(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Co();var v=r.get(l);return v===void 0?v=s(()=>{var d=be(u.value);return r.set(l,d),d}):U(v,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>be(we));r.set(l,c),Hr(i)}}else{if(n&&typeof l=="string"){var v=r.get("length"),d=Number(l);Number.isInteger(d)&&d<v.v&&U(v,d)}U(u,we),Hr(i)}return!0},get(a,l,u){var g;if(l===Be)return e;var v=r.get(l),d=l in a;if(v===void 0&&(!d||(g=We(a,l))!=null&&g.writable)&&(v=s(()=>{var h=kt(d?a[l]:we),k=be(h);return k}),r.set(l,v)),v!==void 0){var c=m(v);return c===we?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var v=r.get(l);v&&(u.value=m(v))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==we)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===Be)return!0;var u=r.get(l),v=u!==void 0&&u.v!==we||Reflect.has(a,l);if(u!==void 0||B!==null&&(!v||(c=We(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var g=v?kt(a[l]):we,h=be(g);return h}),r.set(l,u));var d=m(u);if(d===we)return!1}return v},set(a,l,u,v){var f;var d=r.get(l),c=l in a;if(n&&l==="length")for(var g=u;g<d.v;g+=1){var h=r.get(g+"");h!==void 0?U(h,we):g in a&&(h=s(()=>be(we)),r.set(g+"",h))}if(d===void 0)(!c||(f=We(a,l))!=null&&f.writable)&&(d=s(()=>be(void 0)),U(d,kt(u)),r.set(l,d));else{c=d.v!==we;var k=s(()=>kt(u));U(d,k)}var E=Reflect.getOwnPropertyDescriptor(a,l);if(E!=null&&E.set&&E.set.call(v,u),!c){if(n&&typeof l=="string"){var L=r.get("length"),p=Number(l);Number.isInteger(p)&&p>=L.v&&U(L,p+1)}Hr(i)}return!0},ownKeys(a){m(i);var l=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==we});for(var[u,v]of r)v.v!==we&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Eo()}})}function Hr(e,t=1){U(e,e.v+t)}function In(e){try{if(e!==null&&typeof e=="object"&&Be in e)return e[Be]}catch{}return e}function Mo(e,t){return Object.is(In(e),In(t))}function xt(e){var t=Le|Xe,r=V!==null&&(V.f&Le)!==0?V:null;return B===null||r!==null&&(r.f&ke)!==0?t|=ke:B.f|=kn,{ctx:J,deps:null,effects:null,equals:En,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??B,ac:null}}function ne(e){const t=xt(e);return Xn(t),t}function Mn(e){const t=xt(e);return t.equals=zn,t}function Nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Me(t[r])}}function No(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return t;t=t.parent}return null}function Tn(e){var t,r=B;st(No(e));try{Nn(e),t=ti(e)}finally{st(r)}return t}function $n(e){var t=Tn(e);if(e.equals(t)||(e.v=t,e.wv=Qn()),!Lt){var r=(lt||(e.f&ke)!==0)&&e.deps!==null?ot:xe;He(e,r)}}const Ot=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:En,rv:0,wv:0};return r}function be(e,t){const r=Ct(e);return Xn(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=zn),yt&&r&&J!==null&&J.l!==null&&((i=J.l).s??(i.s=[])).push(n),n}function To(e,t){return U(e,Ue(()=>m(e))),t}function U(e,t,r=!1){V!==null&&(!Ze||(V.f&yn)!==0)&&ar()&&(V.f&(Le|Nr|yn))!==0&&!((ie==null?void 0:ie.reaction)===V&&ie.sources.includes(e))&&So();let n=r?kt(t):t;return Or(e,n)}function Or(e,t){if(!e.equals(t)){var r=e.v;Lt?Ot.set(e,t):Ot.set(e,r),e.v=t,(e.f&Le)!==0&&((e.f&Xe)!==0&&Tn(e),He(e,(e.f&ke)===0?xe:ot)),e.wv=Qn(),An(e,Xe),ar()&&B!==null&&(B.f&xe)!==0&&(B.f&(Ge|vt))===0&&(Ne===null?Fo([e]):Ne.push(e))}return t}function Dn(e,t=1){var r=m(e),n=t===1?r++:r--;return U(e,r),n}function An(e,t){var r=e.reactions;if(r!==null)for(var n=ar(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===B||(He(s,t),(a&(xe|ke))!==0&&((a&Le)!==0?An(s,ot):gr(s))))}}function sr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $o(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function De(e){H=e}let R;function Ae(e){if(e===null)throw sr(),_t;return R=e}function Et(){return Ae(et(R))}function C(e){if(H){if(et(R)!==null)throw sr(),_t;R=e}}function je(e=1){if(H){for(var t=e,r=R;t--;)r=et(r);R=r}}function qr(){for(var e=0,t=R;;){if(t.nodeType===Ht){var r=t.data;if(r===zr){if(e===0)return t;e-=1}else(r===Er||r===Sr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function Un(e){if(!e||e.nodeType!==Ht)throw sr(),_t;return e.data}var Hn,On,qn,Vn;function Vr(){if(Hn===void 0){Hn=window,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qn=We(t,"firstChild").get,Vn=We(t,"nextSibling").get,wn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wn(r)&&(r.__t=void 0)}}function St(e=""){return document.createTextNode(e)}function Ie(e){return qn.call(e)}function et(e){return Vn.call(e)}function z(e,t){if(!H)return Ie(e);var r=Ie(R);if(r===null)r=R.appendChild(St());else if(t&&r.nodeType!==Cn){var n=St();return r==null||r.before(n),Ae(n),n}return Ae(r),r}function Fe(e,t){if(!H){var r=Ie(e);return r instanceof Comment&&r.data===""?et(r):r}return R}function de(e,t=1,r=!1){let n=H?R:e;for(var i;t--;)i=n,n=et(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==Cn){var o=St();return n===null?i==null||i.after(o):n.before(o),Ae(o),o}return Ae(n),n}function Pn(e){e.textContent=""}function Rn(e){B===null&&V===null&&_o(),V!==null&&(V.f&ke)!==0&&B===null&&wo(),Lt&&mo()}function Do(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=B,o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,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{hr(o),o.f|=_n}catch(l){throw Me(o),l}else t!==null&&gr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(kn|Tr))===0;if(!s&&n&&(i!==null&&Do(o,i),V!==null&&(V.f&Le)!==0)){var a=V;(a.effects??(a.effects=[])).push(o)}return o}function lr(e){const t=tt(Ut,null,!1);return He(t,xe),t.teardown=e,t}function Pr(e){Rn();var t=B!==null&&(B.f&Ge)!==0&&J!==null&&!J.m;if(t){var r=J;(r.e??(r.e=[])).push({fn:e,effect:B,reaction:V})}else return Bn(e)}function Bn(e){return tt(Mr|Ar,e,!1)}function Ao(e){return Rn(),tt(Ut|Ar,e,!0)}function Uo(e){const t=tt(vt,e,!0);return()=>{Me(t)}}function Ho(e){const t=tt(vt,e,!0);return(r={})=>new Promise(n=>{r.outro?qt(t,()=>{Me(t),n(void 0)}):(Me(t),n(void 0))})}function Rr(e){return tt(Mr,e,!1)}function Oo(e,t){var r=J,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=ur(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),Ue(t))})}function qo(){var e=J;ur(()=>{if(m(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&xe)!==0&&He(r,ot),Ft(r)&&hr(r),t.ran=!1}e.l.r2.v=!1}})}function ur(e){return tt(Ut,e,!0)}function _e(e,t=[],r=xt){const n=t.map(r);return zt(()=>e(...n.map(m)))}function zt(e,t=0){var r=tt(Ut|Nr|t,e,!0);return r}function at(e,t=!0){return tt(Ut|Ge,e,!0,t)}function jn(e){var t=e.teardown;if(t!==null){const r=Lt,n=V;Gn(!0),Ye(null);try{t.call(null)}finally{Gn(r),Ye(n)}}}function Fn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(xn);var n=r.next;(r.f&vt)!==0?r.parent=null:Me(r,t),r=n}}function Vo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&Me(t),t=r}}function Me(e,t=!0){var r=!1;(t||(e.f&bo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Po(e.nodes_start,e.nodes_end),r=!0),Fn(e,t&&!r),fr(e,0),He(e,$r);var n=e.transitions;if(n!==null)for(const o of n)o.stop();jn(e);var i=e.parent;i!==null&&i.first!==null&&Zn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Po(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function Zn(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 qt(e,t){var r=[];Br(e,r,!0),Yn(r,()=>{Me(e),t&&t()})}function Yn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Br(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,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&or)!==0||(n.f&Ge)!==0;Br(n,t,o?r:!1),n=i}}}function cr(e){Kn(e,!0)}function Kn(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Ge)!==0;Kn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Vt=[],jr=[];function Jn(){var e=Vt;Vt=[],At(e)}function Ro(){var e=jr;jr=[],At(e)}function Pt(e){Vt.length===0&&queueMicrotask(Jn),Vt.push(e)}function Bo(){Vt.length>0&&Jn(),jr.length>0&&Ro()}function jo(e){var t=B;if((t.f&_n)===0){if((t.f&Tr)===0)throw e;t.fn(e)}else Wn(e,t)}function Wn(e,t){for(;t!==null;){if((t.f&Tr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Rt=!1,Bt=null,ht=!1,Lt=!1;function Gn(e){Lt=e}let jt=[],bl=[],V=null,Ze=!1;function Ye(e){V=e}let B=null;function st(e){B=e}let ie=null;function Xn(e){V!==null&&V.f&Dr&&(ie===null?ie={reaction:V,sources:[e]}:ie.sources.push(e))}let pe=null,Ce=0,Ne=null;function Fo(e){Ne=e}let dr=1,vr=0,lt=!1;function Qn(){return++dr}function Ft(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&ke)!==0;if(r!==null){var i,o,s=(t&ir)!==0,a=n&&B!==null&&!lt,l=r.length;if(s||a){var u=e,v=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=ir),a&&v!==null&&(v.f&ke)===0&&(u.f^=ke)}for(i=0;i<l;i++)if(o=r[i],Ft(o)&&$n(o),o.wv>e.wv)return!0}(!n||B!==null&&!lt)&&He(e,xe)}return!1}function ei(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)===V&&ie.sources.includes(e)||((o.f&Le)!==0?ei(o,t,!1):t===o&&(r?He(o,Xe):(o.f&xe)!==0&&He(o,ot),gr(o)))}}function ti(e){var g;var t=pe,r=Ce,n=Ne,i=V,o=lt,s=ie,a=J,l=Ze,u=e.f;pe=null,Ce=0,Ne=null,lt=(u&ke)!==0&&(Ze||!ht||V===null),V=(u&(Ge|vt))===0?e:null,ie=null,Ln(e.ctx),Ze=!1,vr++,e.f|=Dr,e.ac!==null&&(e.ac.abort(xn),e.ac=null);try{var v=(0,e.fn)(),d=e.deps;if(pe!==null){var c;if(fr(e,Ce),d!==null&&Ce>0)for(d.length=Ce+pe.length,c=0;c<pe.length;c++)d[Ce+c]=pe[c];else e.deps=d=pe;if(!lt||(u&Le)!==0&&e.reactions!==null)for(c=Ce;c<d.length;c++)((g=d[c]).reactions??(g.reactions=[])).push(e)}else d!==null&&Ce<d.length&&(fr(e,Ce),d.length=Ce);if(ar()&&Ne!==null&&!Ze&&d!==null&&(e.f&(Le|ot|Xe))===0)for(c=0;c<Ne.length;c++)ei(Ne[c],e);return i!==null&&i!==e&&(vr++,Ne!==null&&(n===null?n=Ne:n.push(...Ne))),v}catch(h){jo(h)}finally{pe=t,Ce=r,Ne=n,V=i,lt=o,ie=s,Ln(a),Ze=l,e.f^=Dr}}function Zo(e,t){let r=t.reactions;if(r!==null){var n=vo.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&Le)!==0&&(pe===null||!pe.includes(t))&&(He(t,ot),(t.f&(ke|ir))===0&&(t.f^=ir),Nn(t),fr(t,0))}function fr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zo(e,r[n])}function hr(e){var t=e.f;if((t&$r)===0){He(e,xe);var r=B,n=ht;B=e,ht=!0;try{(t&Nr)!==0?Vo(e):Fn(e),jn(e);var i=ti(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var o;pn&&zo&&(e.f&Xe)!==0&&e.deps}finally{ht=n,B=r}}}function Yo(){try{yo()}catch(e){if(Bt!==null)Wn(e,Bt);else throw e}}function ri(){var e=ht;try{var t=0;for(ht=!0;jt.length>0;){t++>1e3&&Yo();var r=jt,n=r.length;jt=[];for(var i=0;i<n;i++){var o=Jo(r[i]);Ko(o)}Ot.clear()}}finally{Rt=!1,ht=e,Bt=null}}function Ko(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&($r|Qe))===0&&Ft(n)){var i=dr;if(hr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Zn(n):n.fn=null),dr>i&&(n.f&Ar)!==0)break}}for(;r<t;r+=1)gr(e[r])}}function gr(e){Rt||(Rt=!0,queueMicrotask(ri));for(var t=Bt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(vt|Ge))!==0){if((r&xe)===0)return;t.f^=xe}}jt.push(t)}function Jo(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|vt))!==0,o=i&&(n&xe)!==0;if(!o&&(n&Qe)===0){(n&Mr)!==0?t.push(r):i?r.f^=xe:Ft(r)&&hr(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(Bo(),jt.length===0)return Rt=!1,Bt=null,t;Rt=!0,ri()}}function m(e){var t=e.f,r=(t&Le)!==0;if(V!==null&&!Ze){if((ie==null?void 0:ie.reaction)!==V||!(ie!=null&&ie.sources.includes(e))){var n=V.deps;e.rv<vr&&(e.rv=vr,pe===null&&n!==null&&n[Ce]===e?Ce++:pe===null?pe=[e]:(!lt||!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&ke)===0&&(i.f^=ke)}return r&&(i=e,Ft(i)&&$n(i)),Lt&&Ot.has(e)?Ot.get(e):e.v}function Ue(e){var t=Ze;try{return Ze=!0,e()}finally{Ze=t}}const Wo=-7169;function He(e,t){e.f=e.f&Wo|t}function ni(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Be in e)Fr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Be in r&&Fr(r)}}}function Fr(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{Fr(e[n],t)}catch{}const r=Ir(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=mn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function Go(e,t){if(t){const r=document.body;e.autofocus=!0,Pt(()=>{document.activeElement===r&&e.focus()})}}function Xo(e){var t=V,r=B;Ye(null),st(null);try{return e()}finally{Ye(t),st(r)}}const ii=new Set,Zr=new Set;function oi(e,t,r,n={}){function i(o){if(n.capture||Yt.call(t,o),!o.cancelBubble)return Xo(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var o={capture:n,passive:i},s=oi(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&lr(()=>{t.removeEventListener(e,s,o)})}function Zt(e){for(var t=0;t<e.length;t++)ii.add(e[t]);for(var r of Zr)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 l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){$t(e,"currentTarget",{configurable:!0,get(){return o||r}});var v=V,d=B;Ye(null),st(null);try{for(var c,g=[];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(rr(k)){var[E,...L]=k;E.apply(o,[e,...L])}else k.call(o,e)}catch(f){c?g.push(f):c=f}if(e.cancelBubble||h===t||h===null)break;o=h}if(c){for(let f of g)queueMicrotask(()=>{throw f});throw c}}finally{e.__root=t,delete e.currentTarget,Ye(v),st(d)}}}function ai(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=B;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function te(e,t){var r=(t&bn)!==0,n=(t&lo)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return rt(R,null),R;i===void 0&&(i=ai(o?e:"<!>"+e),r||(i=Ie(i)));var s=n||On?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ie(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function Qo(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&bn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return rt(R,null),R;if(!s){var a=ai(o),l=Ie(a);if(i)for(s=document.createDocumentFragment();Ie(l);)s.appendChild(Ie(l));else s=Ie(l)}var u=s.cloneNode(!0);if(i){var v=Ie(u),d=u.lastChild;rt(v,d)}else rt(u,u);return u}}function re(e,t){return Qo(e,t,"svg")}function gt(){if(H)return rt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=St();return e.append(t,r),rt(t,r),e}function M(e,t){if(H){B.nodes_end=R,Et();return}e!==null&&e.before(t)}function ea(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ta=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ra(e){return ta.includes(e)}const na={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 ia(e){return e=e.toLowerCase(),na[e]??e}const oa=["touchstart","touchmove"];function aa(e){return oa.includes(e)}function Kt(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 si(e,t){return li(e,t)}function sa(e,t){Vr(),t.intro=t.intro??!1;const r=t.target,n=H,i=R;try{for(var o=Ie(r);o&&(o.nodeType!==Ht||o.data!==Er);)o=et(o);if(!o)throw _t;De(!0),Ae(o),Et();const s=li(e,{...t,anchor:o});if(R===null||R.nodeType!==Ht||R.data!==zr)throw sr(),_t;return De(!1),s}catch(s){if(s===_t)return t.recover===!1&&ko(),Vr(),Pn(r),De(!1),si(e,t);throw s}finally{De(n),Ae(i)}}const It=new Map;function li(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Vr();var a=new Set,l=d=>{for(var c=0;c<d.length;c++){var g=d[c];if(!a.has(g)){a.add(g);var h=aa(g);t.addEventListener(g,Yt,{passive:h});var k=It.get(g);k===void 0?(document.addEventListener(g,Yt,{passive:h}),It.set(g,1)):It.set(g,k+1)}}};l(Lr(ii)),Zr.add(l);var u=void 0,v=Ho(()=>{var d=r??t.appendChild(St());return at(()=>{if(o){Q({});var c=J;c.c=o}i&&(n.$$events=i),H&&rt(d,null),u=e(d,n)||{},H&&(B.nodes_end=R),o&&ee()}),()=>{var h;for(var c of a){t.removeEventListener(c,Yt);var g=It.get(c);--g===0?(document.removeEventListener(c,Yt),It.delete(c)):It.set(c,g)}Zr.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return Yr.set(u,v),u}let Yr=new WeakMap;function la(e,t){const r=Yr.get(e);return r?(Yr.delete(e),r(t)):Promise.resolve()}function Jt(e){J===null&&Io(),yt&&J.l!==null?ua(J).m.push(e):Pr(()=>{const t=Ue(e);if(typeof t=="function")return t})}function ua(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){H&&r===0&&Et();var i=e,o=null,s=null,a=we,l=r>0?or:0,u=!1;const v=(c,g=!0)=>{u=!0,d(g,c)},d=(c,g)=>{if(a===(a=c))return;let h=!1;if(H&&n!==-1){if(r===0){const E=Un(i);E===Er?n=0:E===Sr?n=1/0:(n=parseInt(E.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=qr(),Ae(i),De(!1),h=!0,n=-1)}a?(o?cr(o):g&&(o=at(()=>g(i))),s&&qt(s,()=>{s=null})):(s?cr(s):g&&(s=at(()=>g(i,[r+1,n]))),o&&qt(o,()=>{o=null})),h&&De(!0)};zt(()=>{u=!1,t(v),u||d(null,null)},l),H&&(i=R)}function ca(e,t){return t}function da(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Br(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Pn(l),l.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}Yn(i,()=>{for(var u=0;u<o;u++){var v=t[u];a||(n.delete(v.k),ut(e,v.prev,v.next)),Me(v.e,!a)}})}function ui(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&hn)!==0;if(l){var u=e;s=H?Ae(Ie(u)):u.appendChild(St())}H&&Et();var v=null,d=!1,c=Mn(()=>{var g=r();return rr(g)?g:g==null?[]:Lr(g)});zt(()=>{var g=m(c),h=g.length;if(d&&h===0)return;d=h===0;let k=!1;if(H){var E=Un(s)===Sr;E!==(h===0)&&(s=qr(),Ae(s),De(!1),k=!0)}if(H){for(var L=null,p,f=0;f<h;f++){if(R.nodeType===Ht&&R.data===zr){s=R,k=!0,De(!1);break}var b=g[f],w=n(b,f);p=ci(R,a,L,null,b,w,f,i,t,r),a.items.set(w,p),L=p}h>0&&Ae(qr())}H||va(g,a,s,i,t,n,r),o!==null&&(h===0?v?cr(v):v=at(()=>o(s)):v!==null&&qt(v,()=>{v=null})),k&&De(!0),m(c)}),H&&(s=R)}function va(e,t,r,n,i,o,s){var $,K,ve,fe;var a=(i&ro)!==0,l=(i&(se|wt))!==0,u=e.length,v=t.items,d=t.first,c=d,g,h=null,k,E=[],L=[],p,f,b,w;if(a)for(w=0;w<u;w+=1)p=e[w],f=o(p,w),b=v.get(f),b!==void 0&&(($=b.a)==null||$.measure(),(k??(k=new Set)).add(b));for(w=0;w<u;w+=1){if(p=e[w],f=o(p,w),b=v.get(f),b===void 0){var S=c?c.e.nodes_start:r;h=ci(S,t,h,h===null?t.first:h.next,p,f,w,n,i,s),v.set(f,h),E=[],L=[],c=h.next;continue}if(l&&fa(b,p,w,i),(b.e.f&Qe)!==0&&(cr(b.e),a&&((K=b.a)==null||K.unfix(),(k??(k=new Set)).delete(b))),b!==c){if(g!==void 0&&g.has(b)){if(E.length<L.length){var N=L[0],O;h=N.prev;var I=E[0],A=E[E.length-1];for(O=0;O<E.length;O+=1)di(E[O],N,r);for(O=0;O<L.length;O+=1)g.delete(L[O]);ut(t,I.prev,A.next),ut(t,h,I),ut(t,A,N),c=N,h=A,w-=1,E=[],L=[]}else g.delete(b),di(b,c,r),ut(t,b.prev,b.next),ut(t,b,h===null?t.first:h.next),ut(t,h,b),h=b;continue}for(E=[],L=[];c!==null&&c.k!==f;)(c.e.f&Qe)===0&&(g??(g=new Set)).add(c),L.push(c),c=c.next;if(c===null)continue;b=c}E.push(b),h=b,c=b.next}if(c!==null||g!==void 0){for(var F=g===void 0?[]:Lr(g);c!==null;)(c.e.f&Qe)===0&&F.push(c),c=c.next;var q=F.length;if(q>0){var T=(i&hn)!==0&&u===0?r:null;if(a){for(w=0;w<q;w+=1)(ve=F[w].a)==null||ve.measure();for(w=0;w<q;w+=1)(fe=F[w].a)==null||fe.fix()}da(t,F,T,v)}}a&&Pt(()=>{var X;if(k!==void 0)for(b of k)(X=b.a)==null||X.apply()}),B.first=t.first&&t.first.e,B.last=h&&h.e}function fa(e,t,r,n){(n&se)!==0&&Or(e.v,t),(n&wt)!==0?Or(e.i,r):e.i=r}function ci(e,t,r,n,i,o,s,a,l,u){var v=(l&se)!==0,d=(l&no)===0,c=v?d?ft(i,!1,!1):Ct(i):i,g=(l&wt)===0?s:Ct(s),h={i:g,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=at(()=>a(e,c,g,u),H),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 di(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=et(o);i.before(o),o=s}}function ut(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 bt(e,t,r,n,i){var a;H&&Et();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 ha(e,t,r){H&&Et();var n=e,i,o;zt(()=>{i!==(i=t())&&(o&&(qt(o),o=null),i&&(o=at(()=>r(n,i))))},or),H&&(n=R)}function ct(e,t){Pt(()=>{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 ga(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&(Me(n),n=null),r&&(n=at(()=>{Rr(()=>r(e))})))})}function vi(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=vi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ba(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=vi(e))&&(n&&(n+=" "),n+=t);return n}function pa(e){return typeof e=="object"?ba(e):e??""}const fi=[...`
2
- \r\f \v\uFEFF`];function ma(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||fi.includes(n[s-1]))&&(a===n.length||fi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function hi(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 Kr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function wa(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(Kr)),i&&l.push(...Object.keys(i).map(Kr));var u=0,v=-1;const k=e.length;for(var d=0;d<k;d++){var c=e[d];if(a?c==="/"&&e[d-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&v===-1)v=d;else if(c===";"||d===k-1){if(v!==-1){var g=Kr(e.substring(u,v).trim());if(!l.includes(g)){c!==";"&&d++;var h=e.substring(u,d).trim();r+=" "+h+";"}}u=d+1,v=-1}}}}return n&&(r+=hi(n)),i&&(r+=hi(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(H||s!==r||s===void 0){var a=ma(r,n,o);(!H||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function Jr(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 _a(e,t,r,n){var i=e.__style;if(H||i!==t){var o=wa(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Jr(e,r==null?void 0:r[0],n[0]),Jr(e,r==null?void 0:r[1],n[1],"important")):Jr(e,r,n));return n}function Wr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!rr(t))return $o();for(var n of e.options)n.selected=t.includes(gi(n));return}for(n of e.options){var i=gi(n);if(Mo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ya(e){var t=new MutationObserver(()=>{Wr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),lr(()=>{t.disconnect()})}function gi(e){return"__value"in e?e.__value:e.value}const Mt=Symbol("class"),Wt=Symbol("style"),bi=Symbol("is custom element"),pi=Symbol("is html");function ka(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function W(e,t,r,n){var i=mi(e);H&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[po]=r),r==null?e.removeAttribute(t):typeof r!="string"&&_i(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function xa(e,t,r,n,i=!1){var o=mi(e),s=o[bi],a=!o[pi];let l=H&&s;l&&De(!1);var u=t||{},v=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=pa(r.class):(n||r[Mt])&&(r.class=null),r[Wt]&&(r.style??(r.style=null));var c=_i(e);for(const f in r){let b=r[f];if(v&&f==="value"&&b==null){e.value=e.__value="",u[f]=b;continue}if(f==="class"){var g=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ee(e,g,b,n,t==null?void 0:t[Mt],r[Mt]),u[f]=b,u[Mt]=r[Mt];continue}if(f==="style"){_a(e,b,t==null?void 0:t[Wt],r[Wt]),u[f]=b,u[Wt]=r[Wt];continue}var h=u[f];if(!(b===h&&!(b===void 0&&e.hasAttribute(f)))){u[f]=b;var k=f[0]+f[1];if(k!=="$$")if(k==="on"){const w={},S="$$"+f;let N=f.slice(2);var E=ra(N);if(ea(N)&&(N=N.slice(0,-7),w.capture=!0),!E&&h){if(b!=null)continue;e.removeEventListener(N,u[S],w),u[S]=null}if(b!=null)if(E)e[`__${N}`]=b,Zt([N]);else{let O=function(I){u[f].call(this,I)};u[S]=oi(N,e,O,w)}else E&&(e[`__${N}`]=void 0)}else if(f==="style")W(e,f,b);else if(f==="autofocus")Go(e,!!b);else if(!s&&(f==="__value"||f==="value"&&b!=null))e.value=e.__value=b;else if(f==="selected"&&v)ka(e,b);else{var L=f;a||(L=ia(L));var p=L==="defaultValue"||L==="defaultChecked";if(b==null&&!s&&!p)if(o[f]=null,L==="value"||L==="checked"){let w=e;const S=t===void 0;if(L==="value"){let N=w.defaultValue;w.removeAttribute(L),w.defaultValue=N,w.value=w.__value=S?N:null}else{let N=w.defaultChecked;w.removeAttribute(L),w.defaultChecked=N,w.checked=S?N:!1}}else e.removeAttribute(f);else p||c.includes(L)&&(s||typeof b!="string")?e[L]=b:typeof b!="function"&&W(e,L,b)}}}return l&&De(!0),u}function Gt(e,t,r=[],n,i=!1,o=xt){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",v=!1;if(zt(()=>{var c=t(...s.map(m)),g=xa(e,a,c,n,i);v&&u&&"value"in c&&Wr(e,c.value);for(let k of Object.getOwnPropertySymbols(l))c[k]||Me(l[k]);for(let k of Object.getOwnPropertySymbols(c)){var h=c[k];k.description===co&&(!a||h!==a[k])&&(l[k]&&Me(l[k]),l[k]=at(()=>ga(e,()=>h))),g[k]=h}a=g}),u){var d=e;Rr(()=>{Wr(d,a.value,!0),ya(d)})}v=!0}function mi(e){return e.__attributes??(e.__attributes={[bi]:e.nodeName.includes("-"),[pi]:e.namespaceURI===uo})}var wi=new Map;function _i(e){var t=wi.get(e.nodeName);if(t)return t;wi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=mn(n);for(var o in r)r[o].set&&t.push(o);n=Ir(n)}return t}function yi(e,t){return e===t||(e==null?void 0:e[Be])===t}function dt(e={},t,r,n){return Rr(()=>{var i,o;return ur(()=>{i=o,o=(n==null?void 0:n())||[],Ue(()=>{e!==r(...o)&&(t(e,...o),i&&yi(r(...i),e)&&t(null,...i))})}),()=>{Pt(()=>{o&&yi(r(...o),e)&&t(null,...o)})}}),e}function Ca(e=!1){const t=J,r=t.l.u;if(!r)return;let n=()=>ni(t.s);if(e){let i=0,o={};const s=xt(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});n=()=>m(s)}r.b.length&&Ao(()=>{ki(t,n),At(r.b)}),Pr(()=>{const i=Ue(()=>r.m.map(go));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Pr(()=>{ki(t,n),At(r.a)})}function ki(e,t){if(e.l.s)for(const r of e.l.s)m(r);t()}function Gr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),it;const n=Ue(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Nt=[];function Ea(e,t){return{subscribe:br(e,t).subscribe}}function br(e,t=it){let r=null;const n=new Set;function i(a){if(Sn(e,a)&&(e=a,r)){const l=!Nt.length;for(const u of n)u[1](),Nt.push(u,e);if(l){for(let u=0;u<Nt.length;u+=2)Nt[u][0](Nt[u+1]);Nt.length=0}}}function o(a){i(a(e))}function s(a,l=it){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||it),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Sa(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 Ea(r,(s,a)=>{let l=!1;const u=[];let v=0,d=it;const c=()=>{if(v)return;d();const h=t(n?u[0]:u,s,a);o?s(h):d=typeof h=="function"?h:it},g=i.map((h,k)=>Gr(h,E=>{u[k]=E,v&=~(1<<k),l&&c()},()=>{v|=1<<k}));return l=!0,c(),function(){At(g),d(),l=!1}})}function za(e){let t;return Gr(e,r=>t=r)(),t}let pr=!1,Xr=Symbol();function Te(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:it});if(n.store!==e&&!(Xr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=it;else{var i=!0;n.unsubscribe=Gr(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&Xr in r?za(e):m(n.source)}function Xt(){const e={};function t(){lr(()=>{for(var r in e)e[r].unsubscribe();$t(e,Xr,{enumerable:!1,value:!0})})}return[e,t]}function La(e){var t=pr;try{return pr=!1,[e(),pr]}finally{pr=t}}const Ia={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 mr(e,t,r){return new Proxy({props:e,exclude:t},Ia)}const Ma={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,gn)),e.special[t](r),Dn(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),Dn(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 xi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},Ma)}const Na={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Dt(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];Dt(i)&&(i=i());const o=We(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(Dt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Be||t===Ur)return!1;for(let r of e.props)if(Dt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Dt(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 Ci(...e){return new Proxy({props:e},Na)}function Ta(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var L;var i=!yt||(r&oo)!==0,o=(r&ao)!==0,s=(r&so)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?Ue(n):n),a),v;if(o){var d=Be in e||Ur in e;v=((L=We(e,t))==null?void 0:L.set)??(d&&t in e?p=>e[t]=p:void 0)}var c,g=!1;o?[c,g]=La(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),v&&(i&&xo(),v(c)));var h;if(i?h=()=>{var p=e[t];return p===void 0?u():(l=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(a=void 0),p===void 0?a:p},i&&(r&gn)===0)return h;if(v){var k=e.$$legacy;return function(p,f){return arguments.length>0?((!i||!f||k||g)&&v(f?h():p),p):h()}}var E=((r&io)!==0?xt:Mn)(h);return o&&m(E),function(p,f){if(arguments.length>0){const b=f?m(E):i&&o?kt(p):p;return U(E,b),a!==void 0&&(a=b),p}return Ta(E)?E.v:m(E)}}function $a(e){return new Da(e)}class Da{constructor(t){vn(this,nt);vn(this,$e);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 m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Ur?!0:(m(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)}});fn(this,$e,(t.hydrate?sa:si)(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)&&_(),fn(this,nt,i.$$events);for(const s of Object.keys(ye(this,$e)))s==="$set"||s==="$destroy"||s==="$on"||$t(this,s,{get(){return ye(this,$e)[s]},set(a){ye(this,$e)[s]=a},enumerable:!0});ye(this,$e).$set=s=>{Object.assign(i,s)},ye(this,$e).$destroy=()=>{la(ye(this,$e))}}$set(t){ye(this,$e).$set(t)}$on(t,r){ye(this,nt)[t]=ye(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return ye(this,nt)[t].push(n),()=>{ye(this,nt)[t]=ye(this,nt)[t].filter(i=>i!==n)}}$destroy(){ye(this,$e).$destroy()}}nt=new WeakMap,$e=new WeakMap;let Ei;typeof HTMLElement=="function"&&(Ei=class extends HTMLElement{constructor(t,r,n){super();ze(this,"$$ctor");ze(this,"$$s");ze(this,"$$c");ze(this,"$$cn",!1);ze(this,"$$d",{});ze(this,"$$r",!1);ze(this,"$$p_d",{});ze(this,"$$l",{});ze(this,"$$l_u",new Map);ze(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=Aa(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]=wr(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=$a({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Uo(()=>{ur(()=>{var i;this.$$r=!0;for(const o of nr(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=wr(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]=wr(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 nr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function wr(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 Aa(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function oe(e,t,r,n,i,o){let s=class extends Ei{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return nr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return nr(t).forEach(a=>{$t(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=wr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var v=(d=We(u,a))==null?void 0:d.get;v?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{$t(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Ua=te("<a><!></a>"),Ha=te("<button><!></button>");const Oa={hash:"svelte-zsrcxo",code:`
1
+ (function($,K){typeof exports=="object"&&typeof module<"u"?K(exports):typeof define=="function"&&define.amd?define(["exports"],K):($=typeof globalThis<"u"?globalThis:$||self,K($.graymatter={}))})(this,function($){"use strict";var wl=Object.defineProperty;var ao=$=>{throw TypeError($)};var _l=($,K,se)=>K in $?wl($,K,{enumerable:!0,configurable:!0,writable:!0,value:se}):$[K]=se;var Ie=($,K,se)=>_l($,typeof K!="symbol"?K+"":K,se),so=($,K,se)=>K.has($)||ao("Cannot "+se);var Ce=($,K,se)=>(so($,K,"read from private field"),se?se.call($):K.get($)),_n=($,K,se)=>K.has($)?ao("Cannot add the same private member more than once"):K instanceof WeakSet?K.add($):K.set($,se),yn=($,K,se,yt)=>(so($,K,"write to private field"),yt?yt.call($,se):K.set($,se),se);var Gi,nt,Ue;typeof window<"u"&&((Gi=window.__svelte??(window.__svelte={})).v??(Gi.v=new Set)).add("5");const se=1,yt=2,kn=4,lo=8,uo=16,co=1,vo=2,xn=4,fo=8,ho=16,Cn=1,bo=2,Ir="[",Nr="[!",Tr="]",kt={},ye=Symbol(),go="http://www.w3.org/1999/xhtml",po="@attach",En=!1;var or=Array.isArray,mo=Array.prototype.indexOf,Dr=Array.from,ar=Object.keys,At=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyDescriptors,wo=Object.prototype,_o=Array.prototype,$r=Object.getPrototypeOf,Ln=Object.isExtensible;function Ut(e){return typeof e=="function"}const ot=()=>{};function yo(e){return e()}function Ht(e){for(var t=0;t<e.length;t++)e[t]()}const Ne=2,Ar=4,Ot=8,Ur=16,Ge=32,ht=64,Hr=128,Ee=256,sr=512,Se=1024,Xe=2048,at=4096,Qe=8192,Or=16384,zn=32768,lr=65536,Mn=1<<17,ko=1<<18,In=1<<19,qr=1<<20,Vr=1<<21,je=Symbol("$state"),Pr=Symbol("legacy props"),xo=Symbol(""),Nn=new class extends Error{constructor(){super(...arguments);Ie(this,"name","StaleReactionError");Ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Tn=3,qt=8;function Dn(e){return e===this.v}function $n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function An(e){return!$n(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 Mo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Io(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function No(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function To(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xt=!1,Do=!1;function $o(){xt=!0}function Ao(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let W=null;function Un(e){W=e}function X(e,t=!1,r){var n=W={p:W,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};xt&&!t&&(W.l={s:null,u:null,r1:[],r2:St(!1)}),dr(()=>{n.d=!0})}function Q(e){const t=W;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=B,n=q;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];lt(o.effect),Ke(o.reaction),Gn(o.fn)}}finally{lt(r),Ke(n)}}W=t.p,t.m=!0}return e||{}}function ur(){return!xt||W!==null&&W.l===null}function Ct(e){if(typeof e!="object"||e===null||je in e)return e;const t=$r(e);if(t!==wo&&t!==_o)return e;var r=new Map,n=or(e),i=pe(0),o=q,s=a=>{var l=q;Ke(o);var u=a();return Ke(l),u};return n&&r.set("length",pe(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Io();var f=r.get(l);return f===void 0?f=s(()=>{var d=pe(u.value);return r.set(l,d),d}):U(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>pe(ye));r.set(l,c),Rr(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(u,ye),Rr(i)}return!0},get(a,l,u){var v;if(l===je)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||(v=We(a,l))!=null&&v.writable)&&(f=s(()=>{var h=Ct(d?a[l]:ye),k=pe(h);return k}),r.set(l,f)),f!==void 0){var c=w(f);return c===ye?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=w(f))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==ye)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===je)return!0;var u=r.get(l),f=u!==void 0&&u.v!==ye||Reflect.has(a,l);if(u!==void 0||B!==null&&(!f||(c=We(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=f?Ct(a[l]):ye,h=pe(v);return h}),r.set(l,u));var d=w(u);if(d===ye)return!1}return f},set(a,l,u,f){var b;var d=r.get(l),c=l in a;if(n&&l==="length")for(var v=u;v<d.v;v+=1){var h=r.get(v+"");h!==void 0?U(h,ye):v in a&&(h=s(()=>pe(ye)),r.set(v+"",h))}if(d===void 0)(!c||(b=We(a,l))!=null&&b.writable)&&(d=s(()=>pe(void 0)),U(d,Ct(u)),r.set(l,d));else{c=d.v!==ye;var k=s(()=>Ct(u));U(d,k)}var E=Reflect.getOwnPropertyDescriptor(a,l);if(E!=null&&E.set&&E.set.call(f,u),!c){if(n&&typeof l=="string"){var z=r.get("length"),p=Number(l);Number.isInteger(p)&&p>=z.v&&U(z,p+1)}Rr(i)}return!0},ownKeys(a){w(i);var l=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==ye});for(var[u,f]of r)f.v!==ye&&!(u in a)&&l.push(u);return l},setPrototypeOf(){No()}})}function Rr(e,t=1){U(e,e.v+t)}function Hn(e){try{if(e!==null&&typeof e=="object"&&je in e)return e[je]}catch{}return e}function Uo(e,t){return Object.is(Hn(e),Hn(t))}function Et(e){var t=Ne|Xe,r=q!==null&&(q.f&Ne)!==0?q:null;return B===null||r!==null&&(r.f&Ee)!==0?t|=Ee:B.f|=In,{ctx:W,deps:null,effects:null,equals:Dn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??B,ac:null}}function ie(e){const t=Et(e);return ai(t),t}function On(e){const t=Et(e);return t.equals=An,t}function qn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)De(t[r])}}function Ho(e){for(var t=e.parent;t!==null;){if((t.f&Ne)===0)return t;t=t.parent}return null}function Vn(e){var t,r=B;lt(Ho(e));try{qn(e),t=ui(e)}finally{lt(r)}return t}function Pn(e){var t=Vn(e);if(e.equals(t)||(e.v=t,e.wv=si()),!It){var r=(ut||(e.f&Ee)!==0)&&e.deps!==null?at:Se;Ve(e,r)}}const Vt=new Map;function St(e,t){var r={f:0,v:e,reactions:null,equals:Dn,rv:0,wv:0};return r}function pe(e,t){const r=St(e);return ai(r),r}function bt(e,t=!1,r=!0){var i;const n=St(e);return t||(n.equals=An),xt&&r&&W!==null&&W.l!==null&&((i=W.l).s??(i.s=[])).push(n),n}function Oo(e,t){return U(e,qe(()=>w(e))),t}function U(e,t,r=!1){q!==null&&(!Ye||(q.f&Mn)!==0)&&ur()&&(q.f&(Ne|Ur|Mn))!==0&&!((oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e))&&To();let n=r?Ct(t):t;return Br(e,n)}function Br(e,t){if(!e.equals(t)){var r=e.v;It?Vt.set(e,t):Vt.set(e,r),e.v=t,(e.f&Ne)!==0&&((e.f&Xe)!==0&&Vn(e),Ve(e,(e.f&Ee)===0?Se:at)),e.wv=si(),Bn(e,Xe),ur()&&B!==null&&(B.f&Se)!==0&&(B.f&(Ge|ht))===0&&($e===null?Go([e]):$e.push(e))}return t}function Rn(e,t=1){var r=w(e),n=t===1?r++:r--;return U(e,r),n}function Bn(e,t){var r=e.reactions;if(r!==null)for(var n=ur(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===B||(Ve(s,t),(a&(Se|Ee))!==0&&((a&Ne)!==0?Bn(s,at):mr(s))))}}function cr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function He(e){H=e}let R;function Oe(e){if(e===null)throw cr(),kt;return R=e}function Lt(){return Oe(et(R))}function C(e){if(H){if(et(R)!==null)throw cr(),kt;R=e}}function Fe(e=1){if(H){for(var t=e,r=R;t--;)r=et(r);R=r}}function jr(){for(var e=0,t=R;;){if(t.nodeType===qt){var r=t.data;if(r===Tr){if(e===0)return t;e-=1}else(r===Ir||r===Nr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function jn(e){if(!e||e.nodeType!==qt)throw cr(),kt;return e.data}var Fn,Zn,Yn,Kn;function Fr(){if(Fn===void 0){Fn=window,Zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Yn=We(t,"firstChild").get,Kn=We(t,"nextSibling").get,Ln(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ln(r)&&(r.__t=void 0)}}function zt(e=""){return document.createTextNode(e)}function Te(e){return Yn.call(e)}function et(e){return Kn.call(e)}function S(e,t){if(!H)return Te(e);var r=Te(R);if(r===null)r=R.appendChild(zt());else if(t&&r.nodeType!==Tn){var n=zt();return r==null||r.before(n),Oe(n),n}return Oe(r),r}function Ze(e,t){if(!H){var r=Te(e);return r instanceof Comment&&r.data===""?et(r):r}return R}function ue(e,t=1,r=!1){let n=H?R:e;for(var i;t--;)i=n,n=et(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==Tn){var o=zt();return n===null?i==null||i.after(o):n.before(o),Oe(o),o}return Oe(n),n}function Jn(e){e.textContent=""}function Wn(e){B===null&&q===null&&So(),q!==null&&(q.f&Ee)!==0&&B===null&&Eo(),It&&Co()}function Vo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=B,o={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,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{pr(o),o.f|=zn}catch(l){throw De(o),l}else t!==null&&mr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(In|Hr))===0;if(!s&&n&&(i!==null&&Vo(o,i),q!==null&&(q.f&Ne)!==0)){var a=q;(a.effects??(a.effects=[])).push(o)}return o}function dr(e){const t=tt(Ot,null,!1);return Ve(t,Se),t.teardown=e,t}function Zr(e){Wn();var t=B!==null&&(B.f&Ge)!==0&&W!==null&&!W.m;if(t){var r=W;(r.e??(r.e=[])).push({fn:e,effect:B,reaction:q})}else return Gn(e)}function Gn(e){return tt(Ar|Vr,e,!1)}function Po(e){return Wn(),tt(Ot|Vr,e,!0)}function Ro(e){const t=tt(ht,e,!0);return()=>{De(t)}}function Bo(e){const t=tt(ht,e,!0);return(r={})=>new Promise(n=>{r.outro?Pt(t,()=>{De(t),n(void 0)}):(De(t),n(void 0))})}function Yr(e){return tt(Ar,e,!1)}function jo(e,t){var r=W,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=vr(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),qe(t))})}function Fo(){var e=W;vr(()=>{if(w(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&Se)!==0&&Ve(r,at),Yt(r)&&pr(r),t.ran=!1}e.l.r2.v=!1}})}function vr(e){return tt(Ot,e,!0)}function be(e,t=[],r=Et){const n=t.map(r);return Mt(()=>e(...n.map(w)))}function Mt(e,t=0){var r=tt(Ot|Ur|t,e,!0);return r}function st(e,t=!0){return tt(Ot|Ge,e,!0,t)}function Xn(e){var t=e.teardown;if(t!==null){const r=It,n=q;oi(!0),Ke(null);try{t.call(null)}finally{oi(r),Ke(n)}}}function Qn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(Nn);var n=r.next;(r.f&ht)!==0?r.parent=null:De(r,t),r=n}}function Zo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&De(t),t=r}}function De(e,t=!0){var r=!1;(t||(e.f&ko)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yo(e.nodes_start,e.nodes_end),r=!0),Qn(e,t&&!r),gr(e,0),Ve(e,Or);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Xn(e);var i=e.parent;i!==null&&i.first!==null&&ei(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yo(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function ei(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 Pt(e,t){var r=[];Kr(e,r,!0),ti(r,()=>{De(e),t&&t()})}function ti(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kr(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,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&lr)!==0||(n.f&Ge)!==0;Kr(n,t,o?r:!1),n=i}}}function fr(e){ri(e,!0)}function ri(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&lr)!==0||(r.f&Ge)!==0;ri(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Rt=[],Jr=[];function ni(){var e=Rt;Rt=[],Ht(e)}function Ko(){var e=Jr;Jr=[],Ht(e)}function Bt(e){Rt.length===0&&queueMicrotask(ni),Rt.push(e)}function Jo(){Rt.length>0&&ni(),Jr.length>0&&Ko()}function Wo(e){var t=B;if((t.f&zn)===0){if((t.f&Hr)===0)throw e;t.fn(e)}else ii(e,t)}function ii(e,t){for(;t!==null;){if((t.f&Hr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let jt=!1,Ft=null,gt=!1,It=!1;function oi(e){It=e}let Zt=[],yl=[],q=null,Ye=!1;function Ke(e){q=e}let B=null;function lt(e){B=e}let oe=null;function ai(e){q!==null&&q.f&qr&&(oe===null?oe={reaction:q,sources:[e]}:oe.sources.push(e))}let me=null,Le=0,$e=null;function Go(e){$e=e}let hr=1,br=0,ut=!1;function si(){return++hr}function Yt(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&at)!==0){var r=e.deps,n=(t&Ee)!==0;if(r!==null){var i,o,s=(t&sr)!==0,a=n&&B!==null&&!ut,l=r.length;if(s||a){var u=e,f=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=sr),a&&f!==null&&(f.f&Ee)===0&&(u.f^=Ee)}for(i=0;i<l;i++)if(o=r[i],Yt(o)&&Pn(o),o.wv>e.wv)return!0}(!n||B!==null&&!ut)&&Ve(e,Se)}return!1}function li(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e)||((o.f&Ne)!==0?li(o,t,!1):t===o&&(r?Ve(o,Xe):(o.f&Se)!==0&&Ve(o,at),mr(o)))}}function ui(e){var v;var t=me,r=Le,n=$e,i=q,o=ut,s=oe,a=W,l=Ye,u=e.f;me=null,Le=0,$e=null,ut=(u&Ee)!==0&&(Ye||!gt||q===null),q=(u&(Ge|ht))===0?e:null,oe=null,Un(e.ctx),Ye=!1,br++,e.f|=qr,e.ac!==null&&(e.ac.abort(Nn),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(me!==null){var c;if(gr(e,Le),d!==null&&Le>0)for(d.length=Le+me.length,c=0;c<me.length;c++)d[Le+c]=me[c];else e.deps=d=me;if(!ut||(u&Ne)!==0&&e.reactions!==null)for(c=Le;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&Le<d.length&&(gr(e,Le),d.length=Le);if(ur()&&$e!==null&&!Ye&&d!==null&&(e.f&(Ne|at|Xe))===0)for(c=0;c<$e.length;c++)li($e[c],e);return i!==null&&i!==e&&(br++,$e!==null&&(n===null?n=$e:n.push(...$e))),f}catch(h){Wo(h)}finally{me=t,Le=r,$e=n,q=i,ut=o,oe=s,Un(a),Ye=l,e.f^=qr}}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&Ne)!==0&&(me===null||!me.includes(t))&&(Ve(t,at),(t.f&(Ee|sr))===0&&(t.f^=sr),qn(t),gr(t,0))}function gr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xo(e,r[n])}function pr(e){var t=e.f;if((t&Or)===0){Ve(e,Se);var r=B,n=gt;B=e,gt=!0;try{(t&Ur)!==0?Zo(e):Qn(e),Xn(e);var i=ui(e);e.teardown=typeof i=="function"?i:null,e.wv=hr;var o;En&&Do&&(e.f&Xe)!==0&&e.deps}finally{gt=n,B=r}}}function Qo(){try{Lo()}catch(e){if(Ft!==null)ii(e,Ft);else throw e}}function ci(){var e=gt;try{var t=0;for(gt=!0;Zt.length>0;){t++>1e3&&Qo();var r=Zt,n=r.length;Zt=[];for(var i=0;i<n;i++){var o=ta(r[i]);ea(o)}Vt.clear()}}finally{jt=!1,gt=e,Ft=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&(Or|Qe))===0&&Yt(n)){var i=hr;if(pr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ei(n):n.fn=null),hr>i&&(n.f&Vr)!==0)break}}for(;r<t;r+=1)mr(e[r])}}function mr(e){jt||(jt=!0,queueMicrotask(ci));for(var t=Ft=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(ht|Ge))!==0){if((r&Se)===0)return;t.f^=Se}}Zt.push(t)}function ta(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|ht))!==0,o=i&&(n&Se)!==0;if(!o&&(n&Qe)===0){(n&Ar)!==0?t.push(r):i?r.f^=Se:Yt(r)&&pr(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function _(e){for(var t;;){if(Jo(),Zt.length===0)return jt=!1,Ft=null,t;jt=!0,ci()}}function w(e){var t=e.f,r=(t&Ne)!==0;if(q!==null&&!Ye){if((oe==null?void 0:oe.reaction)!==q||!(oe!=null&&oe.sources.includes(e))){var n=q.deps;e.rv<br&&(e.rv=br,me===null&&n!==null&&n[Le]===e?Le++:me===null?me=[e]:(!ut||!me.includes(e))&&me.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&Ee)===0&&(i.f^=Ee)}return r&&(i=e,Yt(i)&&Pn(i)),It&&Vt.has(e)?Vt.get(e):e.v}function qe(e){var t=Ye;try{return Ye=!0,e()}finally{Ye=t}}const ra=-7169;function Ve(e,t){e.f=e.f&ra|t}function di(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(je in e)Wr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&je in r&&Wr(r)}}}function Wr(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{Wr(e[n],t)}catch{}const r=$r(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Sn(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,Bt(()=>{document.activeElement===r&&e.focus()})}}function ia(e){var t=q,r=B;Ke(null),lt(null);try{return e()}finally{Ke(t),lt(r)}}const vi=new Set,Gr=new Set;function fi(e,t,r,n={}){function i(o){if(n.capture||Jt.call(t,o),!o.cancelBubble)return ia(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Bt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var o={capture:n,passive:i},s=fi(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,s,o)})}function Kt(e){for(var t=0;t<e.length;t++)vi.add(e[t]);for(var r of Gr)r(e)}function Jt(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 l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){At(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=q,d=B;Ke(null),lt(null);try{for(var c,v=[];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(or(k)){var[E,...z]=k;E.apply(o,[e,...z])}else k.call(o,e)}catch(b){c?v.push(b):c=b}if(e.cancelBubble||h===t||h===null)break;o=h}if(c){for(let b of v)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,Ke(f),lt(d)}}}function hi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=B;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ee(e,t){var r=(t&Cn)!==0,n=(t&bo)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return rt(R,null),R;i===void 0&&(i=hi(o?e:"<!>"+e),r||(i=Te(i)));var s=n||Zn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Te(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function oa(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Cn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return rt(R,null),R;if(!s){var a=hi(o),l=Te(a);if(i)for(s=document.createDocumentFragment();Te(l);)s.appendChild(Te(l));else s=Te(l)}var u=s.cloneNode(!0);if(i){var f=Te(u),d=u.lastChild;rt(f,d)}else rt(u,u);return u}}function te(e,t){return oa(e,t,"svg")}function pt(){if(H)return rt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=zt();return e.append(t,r),rt(t,r),e}function N(e,t){if(H){B.nodes_end=R,Lt();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 Wt(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 bi(e,t){return gi(e,t)}function fa(e,t){Fr(),t.intro=t.intro??!1;const r=t.target,n=H,i=R;try{for(var o=Te(r);o&&(o.nodeType!==qt||o.data!==Ir);)o=et(o);if(!o)throw kt;He(!0),Oe(o),Lt();const s=gi(e,{...t,anchor:o});if(R===null||R.nodeType!==qt||R.data!==Tr)throw cr(),kt;return He(!1),s}catch(s){if(s===kt)return t.recover===!1&&zo(),Fr(),Jn(r),He(!1),bi(e,t);throw s}finally{He(n),Oe(i)}}const Nt=new Map;function gi(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Fr();var a=new Set,l=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!a.has(v)){a.add(v);var h=va(v);t.addEventListener(v,Jt,{passive:h});var k=Nt.get(v);k===void 0?(document.addEventListener(v,Jt,{passive:h}),Nt.set(v,1)):Nt.set(v,k+1)}}};l(Dr(vi)),Gr.add(l);var u=void 0,f=Bo(()=>{var d=r??t.appendChild(zt());return st(()=>{if(o){X({});var c=W;c.c=o}i&&(n.$$events=i),H&&rt(d,null),u=e(d,n)||{},H&&(B.nodes_end=R),o&&Q()}),()=>{var h;for(var c of a){t.removeEventListener(c,Jt);var v=Nt.get(c);--v===0?(document.removeEventListener(c,Jt),Nt.delete(c)):Nt.set(c,v)}Gr.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return Xr.set(u,f),u}let Xr=new WeakMap;function ha(e,t){const r=Xr.get(e);return r?(Xr.delete(e),r(t)):Promise.resolve()}function Gt(e){W===null&&Ao(),xt&&W.l!==null?ba(W).m.push(e):Zr(()=>{const t=qe(e);if(typeof t=="function")return t})}function ba(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){H&&r===0&&Lt();var i=e,o=null,s=null,a=ye,l=r>0?lr:0,u=!1;const f=(c,v=!0)=>{u=!0,d(v,c)},d=(c,v)=>{if(a===(a=c))return;let h=!1;if(H&&n!==-1){if(r===0){const E=jn(i);E===Ir?n=0:E===Nr?n=1/0:(n=parseInt(E.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=jr(),Oe(i),He(!1),h=!0,n=-1)}a?(o?fr(o):v&&(o=st(()=>v(i))),s&&Pt(s,()=>{s=null})):(s?fr(s):v&&(s=st(()=>v(i,[r+1,n]))),o&&Pt(o,()=>{o=null})),h&&He(!0)};Mt(()=>{u=!1,t(f),u||d(null,null)},l),H&&(i=R)}function ga(e,t){return t}function pa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Kr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Jn(l),l.append(r),n.clear(),ct(e,t[0].prev,t[o-1].next)}ti(i,()=>{for(var u=0;u<o;u++){var f=t[u];a||(n.delete(f.k),ct(e,f.prev,f.next)),De(f.e,!a)}})}function pi(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&kn)!==0;if(l){var u=e;s=H?Oe(Te(u)):u.appendChild(zt())}H&&Lt();var f=null,d=!1,c=On(()=>{var v=r();return or(v)?v:v==null?[]:Dr(v)});Mt(()=>{var v=w(c),h=v.length;if(d&&h===0)return;d=h===0;let k=!1;if(H){var E=jn(s)===Nr;E!==(h===0)&&(s=jr(),Oe(s),He(!1),k=!0)}if(H){for(var z=null,p,b=0;b<h;b++){if(R.nodeType===qt&&R.data===Tr){s=R,k=!0,He(!1);break}var g=v[b],m=n(g,b);p=mi(R,a,z,null,g,m,b,i,t,r),a.items.set(m,p),z=p}h>0&&Oe(jr())}H||ma(v,a,s,i,t,n,r),o!==null&&(h===0?f?fr(f):f=st(()=>o(s)):f!==null&&Pt(f,()=>{f=null})),k&&He(!0),w(c)}),H&&(s=R)}function ma(e,t,r,n,i,o,s){var D,j,ce,fe;var a=(i&lo)!==0,l=(i&(se|yt))!==0,u=e.length,f=t.items,d=t.first,c=d,v,h=null,k,E=[],z=[],p,b,g,m;if(a)for(m=0;m<u;m+=1)p=e[m],b=o(p,m),g=f.get(b),g!==void 0&&((D=g.a)==null||D.measure(),(k??(k=new Set)).add(g));for(m=0;m<u;m+=1){if(p=e[m],b=o(p,m),g=f.get(b),g===void 0){var L=c?c.e.nodes_start:r;h=mi(L,t,h,h===null?t.first:h.next,p,b,m,n,i,s),f.set(b,h),E=[],z=[],c=h.next;continue}if(l&&wa(g,p,m,i),(g.e.f&Qe)!==0&&(fr(g.e),a&&((j=g.a)==null||j.unfix(),(k??(k=new Set)).delete(g))),g!==c){if(v!==void 0&&v.has(g)){if(E.length<z.length){var T=z[0],O;h=T.prev;var M=E[0],A=E[E.length-1];for(O=0;O<E.length;O+=1)wi(E[O],T,r);for(O=0;O<z.length;O+=1)v.delete(z[O]);ct(t,M.prev,A.next),ct(t,h,M),ct(t,A,T),c=T,h=A,m-=1,E=[],z=[]}else v.delete(g),wi(g,c,r),ct(t,g.prev,g.next),ct(t,g,h===null?t.first:h.next),ct(t,h,g),h=g;continue}for(E=[],z=[];c!==null&&c.k!==b;)(c.e.f&Qe)===0&&(v??(v=new Set)).add(c),z.push(c),c=c.next;if(c===null)continue;g=c}E.push(g),h=g,c=g.next}if(c!==null||v!==void 0){for(var Z=v===void 0?[]:Dr(v);c!==null;)(c.e.f&Qe)===0&&Z.push(c),c=c.next;var J=Z.length;if(J>0){var I=(i&kn)!==0&&u===0?r:null;if(a){for(m=0;m<J;m+=1)(ce=Z[m].a)==null||ce.measure();for(m=0;m<J;m+=1)(fe=Z[m].a)==null||fe.fix()}pa(t,Z,I,f)}}a&&Bt(()=>{var de;if(k!==void 0)for(g of k)(de=g.a)==null||de.apply()}),B.first=t.first&&t.first.e,B.last=h&&h.e}function wa(e,t,r,n){(n&se)!==0&&Br(e.v,t),(n&yt)!==0?Br(e.i,r):e.i=r}function mi(e,t,r,n,i,o,s,a,l,u){var f=(l&se)!==0,d=(l&uo)===0,c=f?d?bt(i,!1,!1):St(i):i,v=(l&yt)===0?s:St(s),h={i:v,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=st(()=>a(e,c,v,u),H),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 wi(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=et(o);i.before(o),o=s}}function ct(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 mt(e,t,r,n,i){var a;H&&Lt();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){H&&Lt();var n=e,i,o;Mt(()=>{i!==(i=t())&&(o&&(Pt(o),o=null),i&&(o=st(()=>r(n,i))))},lr),H&&(n=R)}function dt(e,t){Bt(()=>{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;Mt(()=>{r!==(r=t())&&(n&&(De(n),n=null),r&&(n=st(()=>{Yr(()=>r(e))})))})}function _i(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=_i(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=_i(e))&&(n&&(n+=" "),n+=t);return n}function xa(e){return typeof e=="object"?ka(e):e??""}const yi=[...`
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||yi.includes(n[s-1]))&&(a===n.length||yi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ki(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 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,l=[];n&&l.push(...Object.keys(n).map(Qr)),i&&l.push(...Object.keys(i).map(Qr));var u=0,f=-1;const k=e.length;for(var d=0;d<k;d++){var c=e[d];if(a?c==="/"&&e[d-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===k-1){if(f!==-1){var v=Qr(e.substring(u,f).trim());if(!l.includes(v)){c!==";"&&d++;var h=e.substring(u,d).trim();r+=" "+h+";"}}u=d+1,f=-1}}}}return n&&(r+=ki(n)),i&&(r+=ki(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ke(e,t,r,n,i,o){var s=e.__className;if(H||s!==r||s===void 0){var a=Ca(r,n,o);(!H||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function en(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(H||i!==t){var o=Ea(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(en(e,r==null?void 0:r[0],n[0]),en(e,r==null?void 0:r[1],n[1],"important")):en(e,r,n));return n}function tn(e,t,r=!1){if(e.multiple){if(t==null)return;if(!or(t))return qo();for(var n of e.options)n.selected=t.includes(xi(n));return}for(n of e.options){var i=xi(n);if(Uo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function La(e){var t=new MutationObserver(()=>{tn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),dr(()=>{t.disconnect()})}function xi(e){return"__value"in e?e.__value:e.value}const Tt=Symbol("class"),Xt=Symbol("style"),Ci=Symbol("is custom element"),Ei=Symbol("is html");function za(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function F(e,t,r,n){var i=Si(e);H&&(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"&&zi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ma(e,t,r,n,i=!1){var o=Si(e),s=o[Ci],a=!o[Ei];let l=H&&s;l&&He(!1);var u=t||{},f=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=xa(r.class):(n||r[Tt])&&(r.class=null),r[Xt]&&(r.style??(r.style=null));var c=zi(e);for(const b in r){let g=r[b];if(f&&b==="value"&&g==null){e.value=e.__value="",u[b]=g;continue}if(b==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";ke(e,v,g,n,t==null?void 0:t[Tt],r[Tt]),u[b]=g,u[Tt]=r[Tt];continue}if(b==="style"){Sa(e,g,t==null?void 0:t[Xt],r[Xt]),u[b]=g,u[Xt]=r[Xt];continue}var h=u[b];if(!(g===h&&!(g===void 0&&e.hasAttribute(b)))){u[b]=g;var k=b[0]+b[1];if(k!=="$$")if(k==="on"){const m={},L="$$"+b;let T=b.slice(2);var E=la(T);if(aa(T)&&(T=T.slice(0,-7),m.capture=!0),!E&&h){if(g!=null)continue;e.removeEventListener(T,u[L],m),u[L]=null}if(g!=null)if(E)e[`__${T}`]=g,Kt([T]);else{let O=function(M){u[b].call(this,M)};u[L]=fi(T,e,O,m)}else E&&(e[`__${T}`]=void 0)}else if(b==="style")F(e,b,g);else if(b==="autofocus")na(e,!!g);else if(!s&&(b==="__value"||b==="value"&&g!=null))e.value=e.__value=g;else if(b==="selected"&&f)za(e,g);else{var z=b;a||(z=ca(z));var p=z==="defaultValue"||z==="defaultChecked";if(g==null&&!s&&!p)if(o[b]=null,z==="value"||z==="checked"){let m=e;const L=t===void 0;if(z==="value"){let T=m.defaultValue;m.removeAttribute(z),m.defaultValue=T,m.value=m.__value=L?T:null}else{let T=m.defaultChecked;m.removeAttribute(z),m.defaultChecked=T,m.checked=L?T:!1}}else e.removeAttribute(b);else p||c.includes(z)&&(s||typeof g!="string")?e[z]=g:typeof g!="function"&&F(e,z,g)}}}return l&&He(!0),u}function Qt(e,t,r=[],n,i=!1,o=Et){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",f=!1;if(Mt(()=>{var c=t(...s.map(w)),v=Ma(e,a,c,n,i);f&&u&&"value"in c&&tn(e,c.value);for(let k of Object.getOwnPropertySymbols(l))c[k]||De(l[k]);for(let k of Object.getOwnPropertySymbols(c)){var h=c[k];k.description===po&&(!a||h!==a[k])&&(l[k]&&De(l[k]),l[k]=st(()=>ya(e,()=>h))),v[k]=h}a=v}),u){var d=e;Yr(()=>{tn(d,a.value,!0),La(d)})}f=!0}function Si(e){return e.__attributes??(e.__attributes={[Ci]:e.nodeName.includes("-"),[Ei]:e.namespaceURI===go})}var Li=new Map;function zi(e){var t=Li.get(e.nodeName);if(t)return t;Li.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Sn(n);for(var o in r)r[o].set&&t.push(o);n=$r(n)}return t}function Mi(e,t){return e===t||(e==null?void 0:e[je])===t}function vt(e={},t,r,n){return Yr(()=>{var i,o;return vr(()=>{i=o,o=(n==null?void 0:n())||[],qe(()=>{e!==r(...o)&&(t(e,...o),i&&Mi(r(...i),e)&&t(null,...i))})}),()=>{Bt(()=>{o&&Mi(r(...o),e)&&t(null,...o)})}}),e}function Ia(e=!1){const t=W,r=t.l.u;if(!r)return;let n=()=>di(t.s);if(e){let i=0,o={};const s=Et(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});n=()=>w(s)}r.b.length&&Po(()=>{Ii(t,n),Ht(r.b)}),Zr(()=>{const i=qe(()=>r.m.map(yo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Zr(()=>{Ii(t,n),Ht(r.a)})}function Ii(e,t){if(e.l.s)for(const r of e.l.s)w(r);t()}function rn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=qe(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Dt=[];function Na(e,t){return{subscribe:wr(e,t).subscribe}}function wr(e,t=ot){let r=null;const n=new Set;function i(a){if($n(e,a)&&(e=a,r)){const l=!Dt.length;for(const u of n)u[1](),Dt.push(u,e);if(l){for(let u=0;u<Dt.length;u+=2)Dt[u][0](Dt[u+1]);Dt.length=0}}}function o(a){i(a(e))}function s(a,l=ot){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||ot),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Ta(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 l=!1;const u=[];let f=0,d=ot;const c=()=>{if(f)return;d();const h=t(n?u[0]:u,s,a);o?s(h):d=typeof h=="function"?h:ot},v=i.map((h,k)=>rn(h,E=>{u[k]=E,f&=~(1<<k),l&&c()},()=>{f|=1<<k}));return l=!0,c(),function(){Ht(v),d(),l=!1}})}function nn(e){let t;return rn(e,r=>t=r)(),t}let _r=!1,on=Symbol();function Ae(e,t,r){const n=r[t]??(r[t]={store:null,source:bt(void 0),unsubscribe:ot});if(n.store!==e&&!(on in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ot;else{var i=!0;n.unsubscribe=rn(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&on in r?nn(e):w(n.source)}function er(){const e={};function t(){dr(()=>{for(var r in e)e[r].unsubscribe();At(e,on,{enumerable:!1,value:!0})})}return[e,t]}function Da(e){var t=_r;try{return _r=!1,[e(),_r]}finally{_r=t}}const $a={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 yr(e,t,r){return new Proxy({props:e,exclude:t},$a)}const Aa={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,xn)),e.special[t](r),Rn(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),Rn(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 Ni(e,t){return new Proxy({props:e,exclude:t,special:{},version:St(0)},Aa)}const Ua={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ut(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];Ut(i)&&(i=i());const o=We(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(Ut(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===je||t===Pr)return!1;for(let r of e.props)if(Ut(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ut(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 Ti(...e){return new Proxy({props:e},Ua)}function Ha(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var z;var i=!xt||(r&vo)!==0,o=(r&fo)!==0,s=(r&ho)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?qe(n):n),a),f;if(o){var d=je in e||Pr in e;f=((z=We(e,t))==null?void 0:z.set)??(d&&t in e?p=>e[t]=p:void 0)}var c,v=!1;o?[c,v]=Da(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),f&&(i&&Mo(),f(c)));var h;if(i?h=()=>{var p=e[t];return p===void 0?u():(l=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(a=void 0),p===void 0?a:p},i&&(r&xn)===0)return h;if(f){var k=e.$$legacy;return function(p,b){return arguments.length>0?((!i||!b||k||v)&&f(b?h():p),p):h()}}var E=((r&co)!==0?Et:On)(h);return o&&w(E),function(p,b){if(arguments.length>0){const g=b?w(E):i&&o?Ct(p):p;return U(E,g),a!==void 0&&(a=g),p}return Ha(E)?E.v:w(E)}}function Oa(e){return new qa(e)}class qa{constructor(t){_n(this,nt);_n(this,Ue);var o;var r=new Map,n=(s,a)=>{var l=bt(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===Pr?!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)}});yn(this,Ue,(t.hydrate?fa:bi)(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)&&_(),yn(this,nt,i.$$events);for(const s of Object.keys(Ce(this,Ue)))s==="$set"||s==="$destroy"||s==="$on"||At(this,s,{get(){return Ce(this,Ue)[s]},set(a){Ce(this,Ue)[s]=a},enumerable:!0});Ce(this,Ue).$set=s=>{Object.assign(i,s)},Ce(this,Ue).$destroy=()=>{ha(Ce(this,Ue))}}$set(t){Ce(this,Ue).$set(t)}$on(t,r){Ce(this,nt)[t]=Ce(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return Ce(this,nt)[t].push(n),()=>{Ce(this,nt)[t]=Ce(this,nt)[t].filter(i=>i!==n)}}$destroy(){Ce(this,Ue).$destroy()}}nt=new WeakMap,Ue=new WeakMap;let Di;typeof HTMLElement=="function"&&(Di=class extends HTMLElement{constructor(t,r,n){super();Ie(this,"$$ctor");Ie(this,"$$s");Ie(this,"$$c");Ie(this,"$$cn",!1);Ie(this,"$$d",{});Ie(this,"$$r",!1);Ie(this,"$$p_d",{});Ie(this,"$$l",{});Ie(this,"$$l_u",new Map);Ie(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]=kr(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=Oa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ro(()=>{vr(()=>{var i;this.$$r=!0;for(const o of ar(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=kr(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]=kr(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 ar(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function kr(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 re(e,t,r,n,i,o){let s=class extends Di{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ar(t).map(a=>(t[a].attribute||a).toLowerCase())}};return ar(t).forEach(a=>{At(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=kr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=(d=We(u,a))==null?void 0:d.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{At(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Pa=ee("<a><!></a>"),Ra=ee("<button><!></button>");const Ba={hash:"svelte-zsrcxo",code:`
3
3
  /*! purgecss start ignore */:root,
4
4
  :host {
5
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;
@@ -44,70 +44,26 @@
44
44
  [disabled]:where(.svelte-zsrcxo),
45
45
  [aria-disabled='true']:where(.svelte-zsrcxo)
46
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 Si(e,t){Q(t,!0),ct(e,Oa);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),l=y(t,"size",7,"medium"),u=y(t,"type",7,"button"),v=y(t,"class",7,""),d=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=ne(()=>()=>["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":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),g=ne(()=>()=>`${m(c)()} ${v()}`.trim());var h=gt(),k=Fe(h);{var E=p=>{var f=Ua();Gt(f,(w,S)=>({class:w,href:o(),onclick:a(),...d,[Mt]:S}),[()=>m(g)(),()=>({disabled:s()})],"svelte-zsrcxo");var b=z(f);bt(b,t,"default",{}),C(f),M(p,f)},L=p=>{var f=Ha();Gt(f,w=>({class:w,type:u(),disabled:s(),onclick:a(),...d}),[()=>m(g)()],"svelte-zsrcxo");var b=z(f);bt(b,t,"default",{}),C(f),M(p,f)};G(k,p=>{o()?p(E):p(L,!1)})}return M(e,h),ee({get variant(){return r()},set variant(p="primary"){r(p),_()},get theme(){return n()},set theme(p="default"){n(p),_()},get shape(){return i()},set shape(p="round"){i(p),_()},get href(){return o()},set href(p=void 0){o(p),_()},get disabled(){return s()},set disabled(p=!1){s(p),_()},get onclick(){return a()},set onclick(p){a(p),_()},get size(){return l()},set size(p="medium"){l(p),_()},get type(){return u()},set type(p="button"){u(p),_()},get class(){return v()},set class(p=""){v(p),_()}})}oe(Si,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function zi(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),u=y(t,"class",7,""),v=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Si(e,Ci({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 class(){return u()}},()=>v,{children:(d,c)=>{var g=gt(),h=Fe(g);bt(h,t,"default",{}),M(d,g)},$$slots:{default:!0}})),ee({get variant(){return r()},set variant(d="primary"){r(d),_()},get theme(){return n()},set theme(d="default"){n(d),_()},get href(){return i()},set href(d=null){i(d),_()},get disabled(){return o()},set disabled(d=!1){o(d),_()},get size(){return s()},set size(d="medium"){s(d),_()},get type(){return a()},set type(d="button"){a(d),_()},get onclick(){return l()},set onclick(d){l(d),_()},get class(){return u()},set class(d=""){u(d),_()}})}customElements.define("graymatter-button",oe(zi,{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:{},class:{}},["default"],[],!0));const Qt=typeof window<"u";function qa(e,t){if(Qt&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Li(e,t){const r=qa(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Li("subNav-selectedId",null);const pt=Li("subNav-selectedTitle","");function Ii(e,t){if(Qt&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Mi(e,t){const r=Ii(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Oe=Mi("globalSideNav-isExpanded",!1),mt=Mi("globalSideNav-selectedItem",null),Qr=Sa(mt,e=>e==="discover"),me={toggleExpanded:()=>{Oe.update(e=>!e)},setExpanded:e=>{Oe.set(e)},setSelectedItem:e=>{mt.set(e),e==="discover"?Oe.set(!1):Qt&&window.innerWidth>640&&Oe.set(!0)},handleLayoutTransition:e=>{if(e)Oe.set(!1);else{const t=Ii("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Oe.set(!0)):Oe.set(!1)}}},_r=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Oe,isMenuButtonDisabled:Qr,navigationStore:me,selectedItem:mt,selectedSubNavItemTitle:pt},Symbol.toStringTag,{value:"Module"})),Va=br(!1);var Pa=te('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ra={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 Ni(e,t){Q(t,!0),ct(e,Ra);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(Va,"$subNavReady",r),a=()=>Te(pt,"$selectedSubNavItemTitle",r),l=y(t,"customHeaderText",7,"");let u=!1;const v=ne(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),d=ne(()=>()=>l()||a());Jt(()=>{const p=b=>{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()!=="")pt.set(w),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w));else{const S=b;S.detail&&S.detail.title&&(pt.set(S.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(S.detail.title)))}},f=b=>{const w=b,{isMobile:S}=w.detail;S||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",f),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",f)}});var c=Pa();let g;var h=z(c),k=z(h),E=z(k,!0);C(k),C(h),C(c),_e((p,f)=>{g=Ee(c,1,"global-header svelte-1e8dq3f",null,g,p),Kt(E,f)},[()=>({visible:m(v)()}),()=>m(d)()]),M(e,c);var L=ee({get customHeaderText(){return l()},set customHeaderText(p=""){l(p),_()}});return n(),L}oe(Ni,{customHeaderText:{}},[],[],!0);function Ti(e,t){Q(t,!0);let r=y(t,"customHeaderText",7,"");return Ni(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",oe(Ti,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Lo();var Ba=re('<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>'),ja=re('<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>'),Fa=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function en(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Fa(),i=z(n);{var o=a=>{var l=Ba();M(a,l)},s=a=>{var l=ja();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(en,{isSelected:{}},[],[],!0);var Za=re('<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>'),Ya=re('<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>'),Ka=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function tn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ka(),i=z(n);{var o=a=>{var l=Za();M(a,l)},s=a=>{var l=Ya();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(tn,{isSelected:{}},[],[],!0);var Ja=re('<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),Wa=re('<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),Ga=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function rn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ga(),i=z(n);{var o=a=>{var l=Ja();je(3),M(a,l)},s=a=>{var l=Wa();je(3),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(rn,{isSelected:{}},[],[],!0);var Xa=re('<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),Qa=re('<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),es=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function nn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=es(),i=z(n);{var o=a=>{var l=Xa();je(2),M(a,l)},s=a=>{var l=Qa();je(2),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(nn,{isSelected:{}},[],[],!0);var ts=re('<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),rs=re('<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),ns=re('<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),is=re('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),os=re('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),as=re('<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),ss=re("<svg><!></svg>");function yr(e,t){const r=xi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=xi(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=ss();Gt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=z(a);{var u=d=>{var c=ts(),g=de(Fe(c));_e(()=>W(g,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),M(d,c)},v=(d,c)=>{{var g=k=>{var E=gt(),L=Fe(E);{var p=b=>{var w=rs();je(),M(b,w)},f=b=>{var w=ns();je(),M(b,w)};G(L,b=>{s()?b(p):b(f,!1)})}M(k,E)},h=k=>{var E=as(),L=de(Fe(E));{var p=b=>{var w=is();M(b,w)},f=b=>{var w=os();M(b,w)};G(L,b=>{s()?b(p):b(f,!1)})}M(k,E)};G(d,k=>{o()?k(g):k(h,!1)},c)}};G(l,d=>{i()?d(u):d(v,!1)})}return C(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),_()}})}oe(yr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ls=te('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),us=te('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),cs=te('<div tabindex="-1" role="menu"></div>'),ds=te('<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 vs={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
47
+ /*! purgecss end ignore */`};function $i(e,t){X(t,!0),dt(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),l=y(t,"size",7,"medium"),u=y(t,"type",7,"button"),f=y(t,"class",7,""),d=yr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=ie(()=>()=>["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":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),v=ie(()=>()=>`${w(c)()} ${f()}`.trim());var h=pt(),k=Ze(h);{var E=p=>{var b=Pa();Qt(b,(m,L)=>({class:m,href:o(),onclick:a(),...d,[Tt]:L}),[()=>w(v)(),()=>({disabled:s()})],"svelte-zsrcxo");var g=S(b);mt(g,t,"default",{}),C(b),N(p,b)},z=p=>{var b=Ra();Qt(b,m=>({class:m,type:u(),disabled:s(),onclick:a(),...d}),[()=>w(v)()],"svelte-zsrcxo");var g=S(b);mt(g,t,"default",{}),C(b),N(p,b)};G(k,p=>{o()?p(E):p(z,!1)})}return N(e,h),Q({get variant(){return r()},set variant(p="primary"){r(p),_()},get theme(){return n()},set theme(p="default"){n(p),_()},get shape(){return i()},set shape(p="round"){i(p),_()},get href(){return o()},set href(p=void 0){o(p),_()},get disabled(){return s()},set disabled(p=!1){s(p),_()},get onclick(){return a()},set onclick(p){a(p),_()},get size(){return l()},set size(p="medium"){l(p),_()},get type(){return u()},set type(p="button"){u(p),_()},get class(){return f()},set class(p=""){f(p),_()}})}re($i,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Ai(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"),l=y(t,"onclick",7),u=y(t,"class",7,""),f=yr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return $i(e,Ti({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 class(){return u()}},()=>f,{children:(d,c)=>{var v=pt(),h=Ze(v);mt(h,t,"default",{}),N(d,v)},$$slots:{default:!0}})),Q({get variant(){return r()},set variant(d="primary"){r(d),_()},get theme(){return n()},set theme(d="default"){n(d),_()},get href(){return i()},set href(d=null){i(d),_()},get disabled(){return o()},set disabled(d=!1){o(d),_()},get size(){return s()},set size(d="medium"){s(d),_()},get type(){return a()},set type(d="button"){a(d),_()},get onclick(){return l()},set onclick(d){l(d),_()},get class(){return u()},set class(d=""){u(d),_()}})}customElements.define("graymatter-button",re(Ai,{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:{},class:{}},["default"],[],!0));const tr=typeof window<"u";function ja(e,t){if(tr&&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 Ui(e,t){const r=ja(e,t),n=wr(r);return tr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const an=Ui("subNav-selectedId",null),wt=Ui("subNav-selectedTitle","");function Hi(e,t){if(tr&&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 Oi(e,t){const r=Hi(e,t),n=wr(r);return tr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Pe=Oi("globalSideNav-isExpanded",!1),_t=Oi("globalSideNav-selectedItem",null),sn=Ta(_t,e=>e==="discover"),we={toggleExpanded:()=>{Pe.update(e=>!e)},setExpanded:e=>{Pe.set(e)},setSelectedItem:e=>{_t.set(e),e==="discover"?Pe.set(!1):tr&&window.innerWidth>640&&Pe.set(!0)},handleLayoutTransition:e=>{if(e)Pe.set(!1);else{const t=Hi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Pe.set(!0)):Pe.set(!1)}}},xr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Pe,isMenuButtonDisabled:sn,navigationStore:we,selectedItem:_t,selectedSubNavItemId:an,selectedSubNavItemTitle:wt},Symbol.toStringTag,{value:"Module"})),Fa=wr(!1);var Za=ee('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ya={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 qi(e,t){X(t,!0),dt(e,Ya);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r),o=()=>Ae(Pe,"$isExpanded",r),s=()=>Ae(Fa,"$subNavReady",r),a=()=>Ae(wt,"$selectedSubNavItemTitle",r),l=y(t,"customHeaderText",7,"");let u=!1;const f=ie(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),d=ie(()=>()=>l()||a());Gt(()=>{const p=g=>{if(typeof window<"u"&&window.innerWidth<=640)return;let m=null;if(typeof window<"u"&&(m=sessionStorage.getItem("subNav-topLevelTitle"),m))try{m=JSON.parse(m)}catch{}if(typeof m=="string"&&m.trim()!=="")wt.set(m),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(m));else{const L=g;L.detail&&L.detail.title&&(wt.set(L.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))}},b=g=>{const m=g,{isMobile:L}=m.detail;L||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",b),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",b)}});var c=Za();let v;var h=S(c),k=S(h),E=S(k,!0);C(k),C(h),C(c),be((p,b)=>{v=ke(c,1,"global-header svelte-1e8dq3f",null,v,p),Wt(E,b)},[()=>({visible:w(f)()}),()=>w(d)()]),N(e,c);var z=Q({get customHeaderText(){return l()},set customHeaderText(p=""){l(p),_()}});return n(),z}re(qi,{customHeaderText:{}},[],[],!0);function Vi(e,t){X(t,!0);let r=y(t,"customHeaderText",7,"");return qi(e,{get customHeaderText(){return r()}}),Q({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",re(Vi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),$o();var Ka=te('<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>'),Ja=te('<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>'),Wa=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function ln(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=Wa(),i=S(n);{var o=a=>{var l=Ka();N(a,l)},s=a=>{var l=Ja();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(ln,{isSelected:{}},[],[],!0);var Ga=te('<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>'),Xa=te('<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>'),Qa=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function un(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=Qa(),i=S(n);{var o=a=>{var l=Ga();N(a,l)},s=a=>{var l=Xa();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(un,{isSelected:{}},[],[],!0);var es=te('<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),ts=te('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),rs=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function cn(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=rs(),i=S(n);{var o=a=>{var l=es();Fe(3),N(a,l)},s=a=>{var l=ts();Fe(3),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(cn,{isSelected:{}},[],[],!0);var ns=te('<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),is=te('<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),os=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function dn(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=os(),i=S(n);{var o=a=>{var l=ns();Fe(2),N(a,l)},s=a=>{var l=is();Fe(2),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(dn,{isSelected:{}},[],[],!0);var as=te('<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),ss=te('<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),ls=te('<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),us=te('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),cs=te('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ds=te('<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),vs=te("<svg><!></svg>");function Cr(e,t){const r=Ni(t,["children","$$slots","$$events","$$legacy","$$host"]),n=Ni(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=vs();Qt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=S(a);{var u=d=>{var c=as(),v=ue(Ze(c));be(()=>F(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),N(d,c)},f=(d,c)=>{{var v=k=>{var E=pt(),z=Ze(E);{var p=g=>{var m=ss();Fe(),N(g,m)},b=g=>{var m=ls();Fe(),N(g,m)};G(z,g=>{s()?g(p):g(b,!1)})}N(k,E)},h=k=>{var E=ds(),z=ue(Ze(E));{var p=g=>{var m=us();N(g,m)},b=g=>{var m=cs();N(g,m)};G(z,g=>{s()?g(p):g(b,!1)})}N(k,E)};G(d,k=>{o()?k(v):k(h,!1)},c)}};G(l,d=>{i()?d(u):d(f,!1)})}return C(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),_()}})}re(Cr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var fs=ee('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),hs=ee('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),bs=ee('<div tabindex="-1" role="menu"></div>'),gs=ee('<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,
48
48
  .user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-1ybo61g,
49
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);
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 on(e,t){Q(t,!1),ct(e,vs);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,!m(a))}function u(){U(a,!1)}function v(I){var A;try{const F=new CustomEvent("profileMenuAction",{detail:{action:I,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(F)}catch(F){console.error("Error dispatching profile menu action:",F)}}function d(I){const A=I.relatedTarget;(!A||!A.closest(".profile-context-menu"))&&u()}let c=ft(),g=ft([]),h=ft([]);function k(I,A){var F,q,T;if(I.key==="ArrowDown"){I.preventDefault();const $=(A+1)%r().length;(F=m(g)[$])==null||F.focus()}else if(I.key==="ArrowUp"){I.preventDefault();const $=(A-1+r().length)%r().length;(q=m(g)[$])==null||q.focus()}else I.key==="Escape"&&(u(),(T=m(c))==null||T.focus(),I.stopPropagation())}function E(I){var A;m(a)&&I.key==="Escape"&&(u(),(A=m(c))==null||A.focus(),I.stopPropagation())}Jt(()=>(window.addEventListener("keydown",E,!0),()=>{window.removeEventListener("keydown",E,!0)})),Oo(()=>m(h),()=>{U(g,m(h).filter(Boolean))}),qo(),Ca();var L=ds(),p=z(L),f=z(p),b=z(f),w=z(b),S=z(w,!0);C(w),C(b),C(f),C(p),dt(p,I=>U(c,I),()=>m(c));var N=de(p,2);{var O=I=>{var A=cs();ui(A,7,r,F=>F.label,(F,q,T)=>{var $=us(),K=z($);{var ve=ae=>{var ue=ls(),Ke=z(ue);C(ue),_e(()=>W(Ke,"src",(m(q),Ue(()=>m(q).icon)))),M(ae,ue)};G(K,ae=>{m(q),Ue(()=>m(q).icon)&&ae(ve)})}var fe=de(K,2),X=z(fe,!0);C(fe),C($),dt($,(ae,ue)=>To(h,m(h)[ue]=ae),ae=>{var ue;return(ue=m(h))==null?void 0:ue[ae]},()=>[m(T)]),_e(()=>Kt(X,(m(q),Ue(()=>m(q).label)))),ge("click",$,()=>{v(m(q).action),u()}),ge("keydown",$,ae=>k(ae,m(T))),M(F,$)}),C(A),_e(()=>{Ee(A,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),W(A,"id",s)}),M(I,A)};G(N,I=>{m(a)&&I(O)})}return C(L),_e(()=>{W(p,"aria-label",i()),W(p,"aria-expanded",m(a)),W(p,"aria-controls",s),Kt(S,(ni(n()),Ue(()=>{var I;return(I=n())==null?void 0:I.initials})))}),ge("click",p,l),ge("blur",p,d),M(e,L),ee({get menuItems(){return r()},set menuItems(I){r(I),_()},get userMeta(){return n()},set userMeta(I){n(I),_()},get ariaLabel(){return i()},set ariaLabel(I){i(I),_()},get menuAlign(){return o()},set menuAlign(I){o(I),_()}})}oe(on,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);function fs(e,t,r,n){var i;t()||(me.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var hs=(e,t)=>t("discover"),gs=(e,t,r)=>{t(e,"discover"),r(e,0)},bs=te('<a part="discover-item"><div class="icon-container svelte-g0sh1c" part="discover-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Discover</span></a>'),ps=(e,t)=>t("chat"),ms=(e,t,r)=>{t(e,"chat"),r(e,1)},ws=(e,t)=>t("console"),_s=(e,t,r)=>{t(e,"console"),r(e,2)},ys=(e,t)=>t("api"),ks=(e,t,r)=>{t(e,"api"),r(e,3)},xs=te('<div class="nav-items svelte-g0sh1c" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-g0sh1c" part="chat-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Chat</span></a> <a part="console-item"><div class="icon-container svelte-g0sh1c" part="console-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Console</span></a> <a part="api-item"><div class="icon-container svelte-g0sh1c" part="api-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">API</span></a></div>'),Cs=te('<div class="nav-footer svelte-g0sh1c" part="nav-footer"><div class="nav-footer-profile-container svelte-g0sh1c"><!></div></div>'),Es=te('<div class="drawer-content svelte-g0sh1c" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-g0sh1c"><!></nav></div>'),Ss=te('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-g0sh1c" part="nav-content"><div class="nav-main svelte-g0sh1c" part="nav-main"><div class="menu-section svelte-g0sh1c" part="menu-section"><button><div class="icon-container svelte-g0sh1c" part="icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const zs={hash:"svelte-g0sh1c",code:`.expanded-content.drawer-anim.svelte-g0sh1c {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-g0sh1c {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-g0sh1c {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-g0sh1c nav:where(.svelte-g0sh1c) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-g0sh1c {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-g0sh1c:disabled,
51
- .menu-button.disabled.svelte-g0sh1c {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-g0sh1c {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-g0sh1c {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-g0sh1c {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-g0sh1c .expanded-content:where(.svelte-g0sh1c) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-g0sh1c:not(.expanded) .expanded-content:where(.svelte-g0sh1c) {width:0;opacity:0;}.nav-content.svelte-g0sh1c {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-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-g0sh1c {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-g0sh1c {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-g0sh1c {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-g0sh1c {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-g0sh1c {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g0sh1c:focus,
52
- .nav-item.svelte-g0sh1c:focus {outline:none;}.menu-button.svelte-g0sh1c:focus .icon-container:where(.svelte-g0sh1c),
53
- .nav-item.svelte-g0sh1c:focus .icon-container:where(.svelte-g0sh1c) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
54
-
55
- /* Hide focus outline on click */.menu-button.svelte-g0sh1c:focus:not(:focus-visible) .icon-container:where(.svelte-g0sh1c),
56
- .nav-item.svelte-g0sh1c:focus:not(:focus-visible) .icon-container:where(.svelte-g0sh1c) {outline:none;}.nav-items.svelte-g0sh1c {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-g0sh1c {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-g0sh1c {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color var(--ai-transition-ease-medium),
57
- border-radius var(--ai-transition-ease-medium);}.icon-wrapper.svelte-g0sh1c {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform var(--ai-transition-ease-medium);}.icon-wrapper.svelte-g0sh1c svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all var(--ai-transition-ease-medium);}.icon-wrapper.svelte-g0sh1c svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke var(--ai-transition-ease-medium),
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 vn(e,t){X(t,!1),dt(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=bt(!1);function l(){U(a,!w(a))}function u(){U(a,!1)}function f(M){var A;try{const Z=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(Z)}catch(Z){console.error("Error dispatching profile menu action:",Z)}}function d(M){const A=M.relatedTarget;(!A||!A.closest(".profile-context-menu"))&&u()}let c=bt(),v=bt([]),h=bt([]);function k(M,A){var Z,J,I;if(M.key==="ArrowDown"){M.preventDefault();const D=(A+1)%r().length;(Z=w(v)[D])==null||Z.focus()}else if(M.key==="ArrowUp"){M.preventDefault();const D=(A-1+r().length)%r().length;(J=w(v)[D])==null||J.focus()}else M.key==="Escape"&&(u(),(I=w(c))==null||I.focus(),M.stopPropagation())}function E(M){var A;w(a)&&M.key==="Escape"&&(u(),(A=w(c))==null||A.focus(),M.stopPropagation())}Gt(()=>(window.addEventListener("keydown",E,!0),()=>{window.removeEventListener("keydown",E,!0)})),jo(()=>w(h),()=>{U(v,w(h).filter(Boolean))}),Fo(),Ia();var z=gs(),p=S(z),b=S(p),g=S(b),m=S(g),L=S(m,!0);C(m),C(g),C(b),C(p),vt(p,M=>U(c,M),()=>w(c));var T=ue(p,2);{var O=M=>{var A=bs();pi(A,7,r,Z=>Z.label,(Z,J,I)=>{var D=hs(),j=S(D);{var ce=ne=>{var ve=fs(),it=S(ve);C(ve),be(()=>F(it,"src",(w(J),qe(()=>w(J).icon)))),N(ne,ve)};G(j,ne=>{w(J),qe(()=>w(J).icon)&&ne(ce)})}var fe=ue(j,2),de=S(fe,!0);C(fe),C(D),vt(D,(ne,ve)=>Oo(h,w(h)[ve]=ne),ne=>{var ve;return(ve=w(h))==null?void 0:ve[ne]},()=>[w(I)]),be(()=>Wt(de,(w(J),qe(()=>w(J).label)))),ge("click",D,()=>{f(w(J).action),u()}),ge("keydown",D,ne=>k(ne,w(I))),N(Z,D)}),C(A),be(()=>{ke(A,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),F(A,"id",s)}),N(M,A)};G(T,M=>{w(a)&&M(O)})}return C(z),be(()=>{F(p,"aria-label",i()),F(p,"aria-expanded",w(a)),F(p,"aria-controls",s),Wt(L,(di(n()),qe(()=>{var M;return(M=n())==null?void 0:M.initials})))}),ge("click",p,l),ge("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),_()}})}re(vn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);var ms=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Pi(e,t){X(t,!1);let r=y(t,"isHovered",12,!1);var n=ms(),i=S(n);return C(n),be(()=>F(i,"stroke",r()?"#000":"#585C63")),N(e,n),Q({get isHovered(){return r()},set isHovered(o){r(o),_()}})}re(Pi,{isHovered:{}},[],[],!0);function ws(e,t,r,n){var i;t()||(we.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var _s=(e,t)=>t("discover"),ys=(e,t,r)=>{t(e,"discover"),r(e,0)},ks=ee('<a part="discover-item"><div class="icon-container svelte-1d4ucr3" part="discover-icon-container"><div class="icon-wrapper svelte-1d4ucr3"><!></div></div> <span class="nav-text svelte-1d4ucr3">Discover</span></a>'),xs=(e,t)=>t("chat"),Cs=(e,t,r)=>{t(e,"chat"),r(e,1)},Es=(e,t)=>t("console"),Ss=(e,t,r)=>{t(e,"console"),r(e,2)},Ls=(e,t)=>t("api"),zs=(e,t,r)=>{t(e,"api"),r(e,3)},Ms=ee('<div class="nav-items svelte-1d4ucr3" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1d4ucr3" part="chat-icon-container"><div class="icon-wrapper svelte-1d4ucr3"><!></div></div> <span class="nav-text svelte-1d4ucr3">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1d4ucr3" part="console-icon-container"><div class="icon-wrapper svelte-1d4ucr3"><!></div></div> <span class="nav-text svelte-1d4ucr3">Console</span></a> <a part="api-item"><div class="icon-container svelte-1d4ucr3" part="api-icon-container"><div class="icon-wrapper svelte-1d4ucr3"><!></div></div> <span class="nav-text svelte-1d4ucr3">API</span></a></div>'),Is=ee('<div class="nav-footer-icon-container svelte-1d4ucr3" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><!></a></div>'),Ns=ee('<div class="nav-footer svelte-1d4ucr3" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1d4ucr3"><!></div></div>'),Ts=ee('<div class="drawer-content svelte-1d4ucr3" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-1d4ucr3"><!></nav></div>'),Ds=ee('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1d4ucr3" part="nav-content"><div class="nav-main svelte-1d4ucr3" part="nav-main"><div class="menu-section svelte-1d4ucr3" part="menu-section"><button><div class="icon-container svelte-1d4ucr3" part="icon-container"><div class="icon-wrapper svelte-1d4ucr3"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const $s={hash:"svelte-1d4ucr3",code:`.expanded-content.drawer-anim.svelte-1d4ucr3 {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-1d4ucr3 {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-1d4ucr3 {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1d4ucr3 nav:where(.svelte-1d4ucr3) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1d4ucr3 {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-1d4ucr3:disabled,
51
+ .menu-button.disabled.svelte-1d4ucr3 {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-1d4ucr3 {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-1d4ucr3 {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-1d4ucr3 {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-1d4ucr3 .expanded-content:where(.svelte-1d4ucr3) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-1d4ucr3:not(.expanded) .expanded-content:where(.svelte-1d4ucr3) {width:0;opacity:0;}.nav-content.svelte-1d4ucr3 {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-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-1d4ucr3 {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-1d4ucr3 {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-1d4ucr3 {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-1d4ucr3 {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-1d4ucr3 {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1d4ucr3:focus,
52
+ .nav-item.svelte-1d4ucr3:focus {outline:none;}.menu-button.svelte-1d4ucr3:focus .icon-container:where(.svelte-1d4ucr3),
53
+ .nav-item.svelte-1d4ucr3:focus .icon-container:where(.svelte-1d4ucr3) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
54
+
55
+ /* Hide focus outline on click */.menu-button.svelte-1d4ucr3:focus:not(:focus-visible) .icon-container:where(.svelte-1d4ucr3),
56
+ .nav-item.svelte-1d4ucr3:focus:not(:focus-visible) .icon-container:where(.svelte-1d4ucr3) {outline:none;}.nav-items.svelte-1d4ucr3 {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-1d4ucr3 {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-1d4ucr3 {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color var(--ai-transition-ease-medium),
57
+ border-radius var(--ai-transition-ease-medium);}.icon-wrapper.svelte-1d4ucr3 {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform var(--ai-transition-ease-medium);}.icon-wrapper.svelte-1d4ucr3 svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all var(--ai-transition-ease-medium);}.icon-wrapper.svelte-1d4ucr3 svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke var(--ai-transition-ease-medium),
58
58
  fill var(--ai-transition-ease-medium),
59
- stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-g0sh1c {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-g0sh1c:hover .icon-container:where(.svelte-g0sh1c),
60
- .menu-button.svelte-g0sh1c:disabled:hover .icon-container:where(.svelte-g0sh1c) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-g0sh1c .icon-container:where(.svelte-g0sh1c),
61
- .nav-item.svelte-g0sh1c:active .icon-container:where(.svelte-g0sh1c),
62
- .nav-item.selected.svelte-g0sh1c .icon-container:where(.svelte-g0sh1c),
63
- .nav-item.selected.hovered.svelte-g0sh1c .icon-container:where(.svelte-g0sh1c),
64
- .menu-button.svelte-g0sh1c:hover .icon-container:where(.svelte-g0sh1c),
65
- .menu-button.svelte-g0sh1c:active .icon-container:where(.svelte-g0sh1c) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-g0sh1c {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.svelte-g0sh1c:hover {color:var(--ai-color-neutral-700);}
66
-
67
- /* .nav-footer-icon-container {
68
- display: flex;
69
- padding: 0 var(--ai-size-4);
70
- flex-direction: column;
71
- justify-content: center;
72
- align-items: center;
73
- gap: var(--ai-size-4);
74
- align-self: stretch;
75
- } */.nav-footer-profile-container.svelte-g0sh1c {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;}
76
- /* .nav-footer-icon-inner {
77
- display: flex;
78
- width: var(--ai-size-40);
79
- height: var(--ai-size-40);
80
- padding: var(--ai-size-8);
81
- justify-content: center;
82
- align-items: center;
83
- border-radius: var(--ai-size-4);
84
- background: none;
85
- border: none;
86
- cursor: pointer;
87
- transition: background-color var(--ai-transition-ease-medium), border-radius var(--ai-transition-ease-medium);
88
- } */
89
- /* .nav-footer-icon-inner:hover,
90
- .nav-footer-icon-inner:focus {
91
- background-color: var(--ai-color-steel-300);
92
- border-radius: var(--ai-size-4);
93
- }
94
- .nav-footer-icon-inner:focus {
95
- outline: none;
96
- }
97
- .nav-footer-icon-inner:focus-visible {
98
- outline: var(--ai-size-2) solid var(--ai-color-blue-600);
99
- outline-offset: var(--ai-size-2);
100
- border-radius: var(--ai-size-4);
101
- }
102
- .nav-footer-icon-svg-wrapper {
103
- width: var(--ai-size-24);
104
- height: var(--ai-size-24);
105
- flex-shrink: 0;
106
- display: flex;
107
- align-items: center;
108
- justify-content: center;
109
- } */`};function $i(e,t){Q(t,!0),ct(e,zs);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(Qr,"$isMenuButtonDisabled",r),a=y(t,"ssrSelectedItem",7,void 0),l=y(t,"onNavToggle",7,void 0),u=y(t,"onNavItemClick",7,void 0),v=y(t,"showAppIcons",7,!0),d=y(t,"hideDiscover",7,!0),c=y(t,"profileMenuData",7),g=y(t,"apiUrl",7),h=y(t,"chatUrl",7),k=y(t,"consoleUrl",7),E=y(t,"discoverUrl",7);let L=!1,p,f=be(null),b=be(!1),w=be(!1),S=be(null),N=be(null),O=be(null),I=be(null),A=null;function F(x,Z){return L?x:Z}function q(x){return F(i()===x,a()===x)}function T(x){return m(f)===x}const $=ne(()=>()=>F(o(),a()?a()!=="discover":!0)),K=ne(()=>()=>F(s(),a()?a()==="discover":!1)),ve=ne(()=>()=>F(o(),a()?a()!=="discover":!0)),fe=ne(()=>()=>m(w)&&m(b)&&!m(K)());Jt(()=>{if(L=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),p&&p.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");U(w,x.matches,!0),x.addEventListener("change",j=>{U(w,j.matches,!0)});const Z=j=>{const he=j,{isMobile:ce}=he.detail;if(ce)me.setExpanded(!1);else{const Ve=i();Ve&&Ve!=="discover"?me.setExpanded(!0):me.setExpanded(!1)}};window.addEventListener("layoutTransition",Z);const P=j=>{const he=document.activeElement;j.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&me.setExpanded(!1)};window.addEventListener("keydown",P);const le=j=>{const he=j,{action:ce,isOpen:Ve}=he.detail;ce==="toggle"?me.toggleExpanded():ce==="open"?me.setExpanded(!0):ce==="close"?me.setExpanded(!1):ce==="set"&&typeof Ve=="boolean"&&me.setExpanded(Ve)};return window.addEventListener("graymatter-desktop-nav-control",le),A=()=>{window.removeEventListener("graymatter-desktop-nav-control",le)},()=>{window.removeEventListener("layoutTransition",Z),window.removeEventListener("keydown",P),A&&A()}}});function X(x){var Z;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const le=document.getElementById("main-content");if(le){const j=le.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(j&&j.textContent){const he=j.textContent.trim();P.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing state:",P)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing Discover state:",P)}(Z=u())==null||Z({item:x,expanded:o()})}function ae(x,Z){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),X(Z))}function ue(x,Z){var j,he,ce,Ve;const P=[m(S),m(N),m(O),m(I)],le=P.length;if(le)if(x.key==="ArrowDown"){x.preventDefault();const tr=(Z+1)%le;(j=P[tr])==null||j.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const tr=(Z-1+le)%le;(he=P[tr])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(ce=P[0])==null||ce.focus()):x.key==="End"&&(x.preventDefault(),(Ve=P[le-1])==null||Ve.focus())}var Ke=Ss();let Bi;var an=z(Ke),sn=z(an),ln=z(sn),qe=z(ln);let ji;qe.__click=[fs,s,l,o];var Fi=z(qe),Zi=z(Fi),Ws=z(Zi);const Gs=ne(()=>m(fe)()),Xs=ne(()=>m(K)()),Qs=ne(()=>m(ve)());yr(Ws,{get isHovered(){return m(Gs)},get isDisabled(){return m(Xs)},get isOpen(){return m(Qs)}}),C(Zi),C(Fi),C(qe),C(ln);var el=de(ln,2);{var tl=x=>{var Z=xs(),P=z(Z);{var le=Re=>{var Se=bs();let kr;Se.__click=[hs,X],Se.__keydown=[gs,ae,ue];var xr=z(Se),Cr=z(xr),cn=z(Cr);const vl=ne(()=>q("discover"));en(cn,{get isSelected(){return m(vl)}}),C(Cr),C(xr),je(2),C(Se),dt(Se,dn=>U(S,dn),()=>m(S)),_e((dn,fl)=>{W(Se,"href",E()||"#"),kr=Ee(Se,1,"nav-item discover-item svelte-g0sh1c",null,kr,dn),W(Se,"aria-current",fl)},[()=>({selected:q("discover"),hovered:T("discover")}),()=>q("discover")?"page":void 0]),ge("mouseenter",Se,()=>U(f,"discover")),ge("mouseleave",Se,()=>U(f,null)),M(Re,Se)};G(P,Re=>{d()||Re(le)})}var j=de(P,2);let he;j.__click=[ps,X],j.__keydown=[ms,ae,ue];var ce=z(j),Ve=z(ce),tr=z(Ve);const sl=ne(()=>q("chat"));tn(tr,{get isSelected(){return m(sl)}}),C(Ve),C(ce),je(2),C(j),dt(j,Re=>U(N,Re),()=>m(N));var Pe=de(j,2);let Ki;Pe.__click=[ws,X],Pe.__keydown=[_s,ae,ue];var Ji=z(Pe),Wi=z(Ji),ll=z(Wi);const ul=ne(()=>q("console"));rn(ll,{get isSelected(){return m(ul)}}),C(Wi),C(Ji),je(2),C(Pe),dt(Pe,Re=>U(O,Re),()=>m(O));var Je=de(Pe,2);let Gi;Je.__click=[ys,X],Je.__keydown=[ks,ae,ue];var Xi=z(Je),Qi=z(Xi),cl=z(Qi);const dl=ne(()=>q("api"));nn(cl,{get isSelected(){return m(dl)}}),C(Qi),C(Xi),je(2),C(Je),dt(Je,Re=>U(I,Re),()=>m(I)),C(Z),_e((Re,Se,kr,xr,Cr,cn)=>{W(j,"href",h()||"#"),he=Ee(j,1,"nav-item chat-item svelte-g0sh1c",null,he,Re),W(j,"aria-current",Se),W(Pe,"href",k()||"#"),Ki=Ee(Pe,1,"nav-item console-item svelte-g0sh1c",null,Ki,kr),W(Pe,"aria-current",xr),W(Je,"href",g()||"#"),Gi=Ee(Je,1,"nav-item api-item svelte-g0sh1c",null,Gi,Cr),W(Je,"aria-current",cn)},[()=>({selected:q("chat"),hovered:T("chat")}),()=>q("chat")?"page":void 0,()=>({selected:q("console"),hovered:T("console")}),()=>q("console")?"page":void 0,()=>({selected:q("api"),hovered:T("api")}),()=>q("api")?"page":void 0]),ge("mouseenter",j,()=>U(f,"chat")),ge("mouseleave",j,()=>U(f,null)),ge("mouseenter",Pe,()=>U(f,"console")),ge("mouseleave",Pe,()=>U(f,null)),ge("mouseenter",Je,()=>U(f,"api")),ge("mouseleave",Je,()=>U(f,null)),M(x,Z)};G(el,x=>{v()&&x(tl)})}C(sn);var rl=de(sn,2);{var nl=x=>{var Z=Cs(),P=z(Z),le=z(P);const j=ne(()=>{var ce;return(ce=c())==null?void 0:ce.userMeta}),he=ne(()=>{var ce;return(ce=c())==null?void 0:ce.menuItems});on(le,{get userMeta(){return m(j)},get menuItems(){return m(he)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),C(P),C(Z),M(x,Z)};G(rl,x=>{c()&&x(nl)})}C(an);var un=de(an,2);let Yi;var il=z(un);{var ol=x=>{var Z=Es(),P=z(Z),le=z(P);bt(le,t,"default",{}),C(P),C(Z),M(x,Z)};G(il,x=>{m($)()&&x(ol)})}C(un),C(Ke),dt(Ke,x=>p=x,()=>p),_e((x,Z,P,le,j)=>{Bi=Ee(Ke,1,"side-nav-container svelte-g0sh1c",null,Bi,x),ji=Ee(qe,1,"menu-button svelte-g0sh1c",null,ji,Z),qe.disabled=s(),W(qe,"aria-label",P),W(qe,"aria-expanded",le),Yi=Ee(un,1,"expanded-content drawer-anim svelte-g0sh1c",null,Yi,j)},[()=>({expanded:m($)()}),()=>({disabled:s()}),()=>m($)()?"Close navigation menu":"Open navigation menu",()=>m($)()?"true":"false",()=>({open:m($)()})]),ge("mouseenter",qe,()=>U(b,!0)),ge("mouseleave",qe,()=>U(b,!1)),ge("focus",qe,()=>U(b,!0)),ge("blur",qe,()=>U(b,!1)),M(e,Ke);var al=ee({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),_()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),_()},get onNavItemClick(){return u()},set onNavItemClick(x=void 0){u(x),_()},get showAppIcons(){return v()},set showAppIcons(x=!0){v(x),_()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),_()},get profileMenuData(){return c()},set profileMenuData(x){c(x),_()},get apiUrl(){return g()},set apiUrl(x){g(x),_()},get chatUrl(){return h()},set chatUrl(x){h(x),_()},get consoleUrl(){return k()},set consoleUrl(x){k(x),_()},get discoverUrl(){return E()},set discoverUrl(x){E(x),_()}});return n(),al}Zt(["click","keydown"]),oe($i,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0);function Di(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,"hideDiscover",7,!0),a=y(t,"profileMenuData",7),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),v=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);return $i(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return l()},get chatUrl(){return u()},get consoleUrl(){return v()},get discoverUrl(){return d()},children:(c,g)=>{var h=gt(),k=Fe(h);bt(k,t,"default",{}),M(c,h)},$$slots:{default:!0}}),ee({get ssrSelectedItem(){return r()},set ssrSelectedItem(c){r(c),_()},get onNavToggle(){return n()},set onNavToggle(c){n(c),_()},get onNavItemClick(){return i()},set onNavItemClick(c){i(c),_()},get showAppIcons(){return o()},set showAppIcons(c=!0){o(c),_()},get hideDiscover(){return s()},set hideDiscover(c=!0){s(c),_()},get profileMenuData(){return a()},set profileMenuData(c){a(c),_()},get apiUrl(){return l()},set apiUrl(c){l(c),_()},get chatUrl(){return u()},set chatUrl(c){u(c),_()},get consoleUrl(){return v()},set consoleUrl(c){v(c),_()},get discoverUrl(){return d()},set discoverUrl(c){d(c),_()}})}customElements.define("graymatter-desktop-side-nav",oe(Di,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var Ls=re('<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>'),Is=re('<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 Ms={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Tt(e,t){Q(t,!0),ct(e,Ms);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=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=gt(),u=Fe(l);{var v=c=>{var g=Ls();Gt(g,()=>({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(c,g)},d=c=>{var g=Is();Gt(g,()=>({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(c,g)};G(u,c=>{o()?c(d,!1):c(v)})}return M(e,l),ee({get isInverted(){return r()},set isInverted(c=!1){r(c),_()},get width(){return n()},set width(c=102){n(c),_()},get height(){return i()},set height(c=30){i(c),_()},get showServiceMark(){return o()},set showServiceMark(c=!1){o(c),_()}})}oe(Tt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Ai(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=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Tt(e,Ci({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",oe(Ai,{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));var Ns=(e,t,r)=>t(m(r).id),Ts=te('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),$s=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ds={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),ct(e,Ds);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"hideDiscover",7,!0),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),v=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:en,href:d()||"#"},{id:"chat",label:"Chat",icon:tn,href:u()||"#"},{id:"console",label:"Console",icon:rn,href:v()||"#"},{id:"api",label:"API",icon:nn,href:l()||"#"}],g=a()?c.filter(f=>f.id!=="discover"):c;function h(f){var b;if(f!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(f),f!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const S=document.getElementById("main-content");if(S){const N=S.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(N&&N.textContent){const O=N.textContent.trim();w.set(O),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(O))}}},200)}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing state:",w)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing Discover state:",w)}(b=o())==null||b({item:f,expanded:!1})}var k=gt(),E=Fe(k);{var L=f=>{var b=$s();ui(b,21,()=>g,ca,(w,S)=>{var N=Ts();let O;N.__click=[Ns,h,S];var I=z(N),A=z(I);const F=ne(()=>i()===m(S).id);ha(A,()=>m(S).icon,($,K)=>{K($,{get isSelected(){return m(F)}})}),C(I);var q=de(I,2),T=z(q,!0);C(q),C(N),_e($=>{W(N,"href",m(S).href),O=Ee(N,1,`nav-item ${m(S).id}-item`,"svelte-gdyha2",O,$),W(N,"part",`${m(S).id}-item`),Kt(T,m(S).label)},[()=>({active:i()===m(S).id})]),M(w,N)}),C(b),M(f,b)};G(E,f=>{s()&&f(L)})}M(e,k);var p=ee({get onNavItemClick(){return o()},set onNavItemClick(f){o(f),_()},get showAppIcons(){return s()},set showAppIcons(f=!0){s(f),_()},get hideDiscover(){return a()},set hideDiscover(f=!0){a(f),_()},get apiUrl(){return l()},set apiUrl(f){l(f),_()},get chatUrl(){return u()},set chatUrl(f){u(f),_()},get consoleUrl(){return v()},set consoleUrl(f){v(f),_()},get discoverUrl(){return d()},set discoverUrl(f){d(f),_()}});return n(),p}Zt(["click"]),oe(Ui,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Hi(e,t){Q(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"hideDiscover",7,!0),o=y(t,"apiUrl",7),s=y(t,"chatUrl",7),a=y(t,"consoleUrl",7),l=y(t,"discoverUrl",7);return Ui(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),_()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),_()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),_()},get apiUrl(){return o()},set apiUrl(u){o(u),_()},get chatUrl(){return s()},set chatUrl(u){s(u),_()},get consoleUrl(){return a()},set consoleUrl(u){a(u),_()},get discoverUrl(){return l()},set discoverUrl(u){l(u),_()}})}customElements.define("graymatter-mobile-bottom-nav",oe(Hi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var As=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Us=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Hs=te('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Os=te('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),qs=te('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),Vs=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const Ps={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);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-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Oi(e,t){Q(t,!0),ct(e,Ps);const[r,n]=Xt(),i=()=>Te(Oe,"$isExpanded",r),o=()=>Te(mt,"$selectedItem",r);let s,a=null,l=y(t,"logoLinkUrl",7),u=y(t,"logoLinkLabel",7);function v(T){if(a=T.detail.hash,d(),a){const K=document.getElementById(a);if(K){const ve=document.getElementById("main-content-mobile"),fe=ve?ve.querySelector(`[id="${a}"]`):null;if(fe&&ve){const X=fe.getBoundingClientRect(),ae=ve.getBoundingClientRect(),ue=ve.scrollTop+X.top-ae.top;ve.scrollTo({top:ue,behavior:"auto"}),setTimeout(()=>{var Ke;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Ke=fe.textContent)==null?void 0:Ke.trim(),id:fe.id}}))},100)}else{let X=K.parentElement;for(;X&&X!==document.body;){const ae=window.getComputedStyle(X);if(ae.overflowY==="auto"||ae.overflowY==="scroll")break;X=X.parentElement}X&&X!==document.body?document.getElementById("main-content")?(K.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ue;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ue=K.textContent)==null?void 0:ue.trim(),id:K.id}}))},100)):K.scrollIntoView({behavior:"auto",block:"start"}):K.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Jt(()=>{window.addEventListener("mobileAnchorNavigate",v);const T=()=>{d()};window.addEventListener("closeMobileMenu",T);const $=ve=>{const fe=ve,{isMobile:X}=fe.detail;X&&me.setExpanded(!1)};window.addEventListener("layoutTransition",$);const K=ve=>{const fe=document.activeElement;ve.key==="Escape"&&i()&&!(fe&&fe.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",K),()=>{window.removeEventListener("mobileAnchorNavigate",v),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",$),window.removeEventListener("keydown",K)}});function d(){me.setExpanded(!1)}var c=Vs(),g=Fe(c);{var h=T=>{var $=Us();$.__click=d,$.__keydown=[As,d],M(T,$)};G(g,T=>{i()&&T(h)})}var k=de(g,2);let E;var L=z(k),p=z(L);p.__click=d;var f=z(p);yr(f,{isOpen:!0}),C(p);var b=de(p,2),w=z(b);{var S=T=>{var $=Hs(),K=z($);Tt(K,{width:75,height:22}),C($),_e(()=>{W($,"href",l()),W($,"aria-label",u())}),M(T,$)},N=T=>{Tt(T,{width:75,height:22})};G(w,T=>{l()?T(S):T(N,!1)})}C(b),C(L);var O=de(L,2),I=z(O);{var A=T=>{var $=Os(),K=z($);bt(K,t,"default",{}),C($),M(T,$)},F=T=>{var $=qs();M(T,$)};G(I,T=>{o()&&o()!=="discover"?T(A):T(F,!1)})}C(O),C(k),dt(k,T=>s=T,()=>s),_e(T=>E=Ee(k,1,"mobile-side-menu svelte-1anbrit",null,E,T),[()=>({open:i()})]),M(e,c);var q=ee({get logoLinkUrl(){return l()},set logoLinkUrl(T){l(T),_()},get logoLinkLabel(){return u()},set logoLinkLabel(T){u(T),_()}});return n(),q}Zt(["click","keydown"]),oe(Oi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function qi(e,t){Q(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7);return Oi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=gt(),a=Fe(s);bt(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",oe(qi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Rs(){me.toggleExpanded()}var Bs=te('<a class="display-flex"><!></a>'),js=te('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const Fs={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {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-g1zhvs:disabled,
59
+ stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-1d4ucr3 {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-1d4ucr3:hover .icon-container:where(.svelte-1d4ucr3),
60
+ .menu-button.svelte-1d4ucr3:disabled:hover .icon-container:where(.svelte-1d4ucr3) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-1d4ucr3 .icon-container:where(.svelte-1d4ucr3),
61
+ .nav-item.svelte-1d4ucr3:active .icon-container:where(.svelte-1d4ucr3),
62
+ .nav-item.selected.svelte-1d4ucr3 .icon-container:where(.svelte-1d4ucr3),
63
+ .nav-item.selected.hovered.svelte-1d4ucr3 .icon-container:where(.svelte-1d4ucr3),
64
+ .menu-button.svelte-1d4ucr3:hover .icon-container:where(.svelte-1d4ucr3),
65
+ .menu-button.svelte-1d4ucr3:active .icon-container:where(.svelte-1d4ucr3) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1d4ucr3 {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.svelte-1d4ucr3:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1d4ucr3 {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1d4ucr3 {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;}.help-link.svelte-1d4ucr3 {border-radius:var(--ai-size-4);padding:var(--ai-size-4);transition:background-color var(--ai-transition-ease-medium);}.help-link.svelte-1d4ucr3 svg {display:block;}.help-link.svelte-1d4ucr3:hover {background:var(--ai-color-steel-300);}.help-link.svelte-1d4ucr3:is(.selected:where(.svelte-1d4ucr3)) {background-color:var(--ai-color-steel-300);}`};function Ri(e,t){X(t,!0),dt(e,$s);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r),o=()=>Ae(Pe,"$isExpanded",r),s=()=>Ae(sn,"$isMenuButtonDisabled",r),a=y(t,"ssrSelectedItem",7,void 0),l=y(t,"onNavToggle",7,void 0),u=y(t,"onNavItemClick",7,void 0),f=y(t,"showAppIcons",7,!0),d=y(t,"hideDiscover",7,!0),c=y(t,"profileMenuData",7),v=y(t,"apiUrl",7),h=y(t,"chatUrl",7),k=y(t,"consoleUrl",7),E=y(t,"discoverUrl",7),z=y(t,"supplementalMenuData",7);let p=!1,b,g=pe(null),m=pe(!1),L=pe(!1),T=pe(null),O=pe(null),M=pe(null),A=pe(null),Z=null;function J(x,Y){return p?x:Y}function I(x){return J(i()===x,a()===x)}function D(x){return w(g)===x}const j=ie(()=>()=>J(o(),a()?a()!=="discover":!0)),ce=ie(()=>()=>J(s(),a()?a()==="discover":!1)),fe=ie(()=>()=>J(o(),a()?a()!=="discover":!0)),de=ie(()=>()=>w(L)&&w(m)&&!w(ce)());Gt(()=>{if(p=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),b&&b.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");U(L,x.matches,!0),x.addEventListener("change",P=>{U(L,P.matches,!0)});const Y=P=>{const he=P,{isMobile:xe}=he.detail;if(xe)we.setExpanded(!1);else{const ze=i();ze&&ze!=="discover"?we.setExpanded(!0):we.setExpanded(!1)}};window.addEventListener("layoutTransition",Y);const V=P=>{const he=document.activeElement;P.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&we.setExpanded(!1)};window.addEventListener("keydown",V);const le=P=>{const he=P,{action:xe,isOpen:ze}=he.detail;xe==="toggle"?we.toggleExpanded():xe==="open"?we.setExpanded(!0):xe==="close"?we.setExpanded(!1):xe==="set"&&typeof ze=="boolean"&&we.setExpanded(ze)};return window.addEventListener("graymatter-desktop-nav-control",le),Z=()=>{window.removeEventListener("graymatter-desktop-nav-control",le)},()=>{window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",V),Z&&Z()}}});function ne(x){var Y;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),we.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const le=document.getElementById("main-content");if(le){const P=le.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(P&&P.textContent){const he=P.textContent.trim();V.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing state:",V)}else try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing Discover state:",V)}(Y=u())==null||Y({item:x,expanded:o()})}function ve(x,Y){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),ne(Y))}function it(x,Y){var P,he,xe,ze;const V=[w(T),w(O),w(M),w(A)],le=V.length;if(le)if(x.key==="ArrowDown"){x.preventDefault();const _e=(Y+1)%le;(P=V[_e])==null||P.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const _e=(Y-1+le)%le;(he=V[_e])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(xe=V[0])==null||xe.focus()):x.key==="End"&&(x.preventDefault(),(ze=V[le-1])==null||ze.focus())}var nr=Ds();let Xi;var fn=S(nr),hn=S(fn),bn=S(hn),Re=S(bn);let Qi;Re.__click=[ws,s,l,o];var eo=S(Re),to=S(eo),nl=S(to);const il=ie(()=>w(de)()),ol=ie(()=>w(ce)()),al=ie(()=>w(fe)());Cr(nl,{get isHovered(){return w(il)},get isDisabled(){return w(ol)},get isOpen(){return w(al)}}),C(to),C(eo),C(Re),C(bn);var sl=ue(bn,2);{var ll=x=>{var Y=Ms(),V=S(Y);{var le=Be=>{var Me=ks();let Lr;Me.__click=[_s,ne],Me.__keydown=[ys,ve,it];var zr=S(Me),Mr=S(zr),mn=S(Mr);const pl=ie(()=>I("discover"));ln(mn,{get isSelected(){return w(pl)}}),C(Mr),C(zr),Fe(2),C(Me),vt(Me,wn=>U(T,wn),()=>w(T)),be((wn,ml)=>{F(Me,"href",E()||"#"),Lr=ke(Me,1,"nav-item discover-item svelte-1d4ucr3",null,Lr,wn),F(Me,"aria-current",ml)},[()=>({selected:I("discover"),hovered:D("discover")}),()=>I("discover")?"page":void 0]),ge("mouseenter",Me,()=>U(g,"discover")),ge("mouseleave",Me,()=>U(g,null)),N(Be,Me)};G(V,Be=>{d()||Be(le)})}var P=ue(V,2);let he;P.__click=[xs,ne],P.__keydown=[Cs,ve,it];var xe=S(P),ze=S(xe),_e=S(ze);const ft=ie(()=>I("chat"));un(_e,{get isSelected(){return w(ft)}}),C(ze),C(xe),Fe(2),C(P),vt(P,Be=>U(O,Be),()=>w(O));var ae=ue(P,2);let ir;ae.__click=[Es,ne],ae.__keydown=[Ss,ve,it];var Er=S(ae),Sr=S(Er),pn=S(Sr);const hl=ie(()=>I("console"));cn(pn,{get isSelected(){return w(hl)}}),C(Sr),C(Er),Fe(2),C(ae),vt(ae,Be=>U(M,Be),()=>w(M));var Je=ue(ae,2);let no;Je.__click=[Ls,ne],Je.__keydown=[zs,ve,it];var io=S(Je),oo=S(io),bl=S(oo);const gl=ie(()=>I("api"));dn(bl,{get isSelected(){return w(gl)}}),C(oo),C(io),Fe(2),C(Je),vt(Je,Be=>U(A,Be),()=>w(A)),C(Y),be((Be,Me,Lr,zr,Mr,mn)=>{F(P,"href",h()||"#"),he=ke(P,1,"nav-item chat-item svelte-1d4ucr3",null,he,Be),F(P,"aria-current",Me),F(ae,"href",k()||"#"),ir=ke(ae,1,"nav-item console-item svelte-1d4ucr3",null,ir,Lr),F(ae,"aria-current",zr),F(Je,"href",v()||"#"),no=ke(Je,1,"nav-item api-item svelte-1d4ucr3",null,no,Mr),F(Je,"aria-current",mn)},[()=>({selected:I("chat"),hovered:D("chat")}),()=>I("chat")?"page":void 0,()=>({selected:I("console"),hovered:D("console")}),()=>I("console")?"page":void 0,()=>({selected:I("api"),hovered:D("api")}),()=>I("api")?"page":void 0]),ge("mouseenter",P,()=>U(g,"chat")),ge("mouseleave",P,()=>U(g,null)),ge("mouseenter",ae,()=>U(g,"console")),ge("mouseleave",ae,()=>U(g,null)),ge("mouseenter",Je,()=>U(g,"api")),ge("mouseleave",Je,()=>U(g,null)),N(x,Y)};G(sl,x=>{f()&&x(ll)})}C(hn);var ul=ue(hn,2);{var cl=x=>{var Y=Ns(),V=S(Y);{var le=_e=>{var ft=Is(),ae=S(ft);let ir;var Er=S(ae);Pi(Er,{}),C(ae),C(ft),be((Sr,pn)=>{ir=ke(ae,1,"help-link svelte-1d4ucr3",null,ir,Sr),F(ae,"aria-current",pn),F(ae,"href",z().help.url)},[()=>({selected:nn(an)==="help"}),()=>nn(an)==="help"]),N(_e,ft)};G(V,_e=>{var ft,ae;(ae=(ft=z())==null?void 0:ft.help)!=null&&ae.url&&_e(le)})}var P=ue(V,2),he=S(P);const xe=ie(()=>{var _e;return(_e=c())==null?void 0:_e.userMeta}),ze=ie(()=>{var _e;return(_e=c())==null?void 0:_e.menuItems});vn(he,{get userMeta(){return w(xe)},get menuItems(){return w(ze)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),C(P),C(Y),N(x,Y)};G(ul,x=>{c()&&x(cl)})}C(fn);var gn=ue(fn,2);let ro;var dl=S(gn);{var vl=x=>{var Y=Ts(),V=S(Y),le=S(V);mt(le,t,"default",{}),C(V),C(Y),N(x,Y)};G(dl,x=>{w(j)()&&x(vl)})}C(gn),C(nr),vt(nr,x=>b=x,()=>b),be((x,Y,V,le,P)=>{Xi=ke(nr,1,"side-nav-container svelte-1d4ucr3",null,Xi,x),Qi=ke(Re,1,"menu-button svelte-1d4ucr3",null,Qi,Y),Re.disabled=s(),F(Re,"aria-label",V),F(Re,"aria-expanded",le),ro=ke(gn,1,"expanded-content drawer-anim svelte-1d4ucr3",null,ro,P)},[()=>({expanded:w(j)()}),()=>({disabled:s()}),()=>w(j)()?"Close navigation menu":"Open navigation menu",()=>w(j)()?"true":"false",()=>({open:w(j)()})]),ge("mouseenter",Re,()=>U(m,!0)),ge("mouseleave",Re,()=>U(m,!1)),ge("focus",Re,()=>U(m,!0)),ge("blur",Re,()=>U(m,!1)),N(e,nr);var fl=Q({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),_()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),_()},get onNavItemClick(){return u()},set onNavItemClick(x=void 0){u(x),_()},get showAppIcons(){return f()},set showAppIcons(x=!0){f(x),_()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),_()},get profileMenuData(){return c()},set profileMenuData(x){c(x),_()},get apiUrl(){return v()},set apiUrl(x){v(x),_()},get chatUrl(){return h()},set chatUrl(x){h(x),_()},get consoleUrl(){return k()},set consoleUrl(x){k(x),_()},get discoverUrl(){return E()},set discoverUrl(x){E(x),_()},get supplementalMenuData(){return z()},set supplementalMenuData(x){z(x),_()}});return n(),fl}Kt(["click","keydown"]),re(Ri,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0);function Bi(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,"hideDiscover",7,!0),a=y(t,"profileMenuData",7),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),f=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7),c=y(t,"supplementalMenuData",7);return Ri(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return l()},get chatUrl(){return u()},get consoleUrl(){return f()},get discoverUrl(){return d()},get supplementalMenuData(){return c()},children:(v,h)=>{var k=pt(),E=Ze(k);mt(E,t,"default",{}),N(v,k)},$$slots:{default:!0}}),Q({get ssrSelectedItem(){return r()},set ssrSelectedItem(v){r(v),_()},get onNavToggle(){return n()},set onNavToggle(v){n(v),_()},get onNavItemClick(){return i()},set onNavItemClick(v){i(v),_()},get showAppIcons(){return o()},set showAppIcons(v=!0){o(v),_()},get hideDiscover(){return s()},set hideDiscover(v=!0){s(v),_()},get profileMenuData(){return a()},set profileMenuData(v){a(v),_()},get apiUrl(){return l()},set apiUrl(v){l(v),_()},get chatUrl(){return u()},set chatUrl(v){u(v),_()},get consoleUrl(){return f()},set consoleUrl(v){f(v),_()},get discoverUrl(){return d()},set discoverUrl(v){d(v),_()},get supplementalMenuData(){return c()},set supplementalMenuData(v){c(v),_()}})}customElements.define("graymatter-desktop-side-nav",re(Bi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0));var As=te('<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>'),Us=te('<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 Hs={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function $t(e,t){X(t,!0),dt(e,Hs);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=yr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=pt(),u=Ze(l);{var f=c=>{var v=As();Qt(v,()=>({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(c,v)},d=c=>{var v=Us();Qt(v,()=>({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(c,v)};G(u,c=>{o()?c(d,!1):c(f)})}return N(e,l),Q({get isInverted(){return r()},set isInverted(c=!1){r(c),_()},get width(){return n()},set width(c=102){n(c),_()},get height(){return i()},set height(c=30){i(c),_()},get showServiceMark(){return o()},set showServiceMark(c=!1){o(c),_()}})}re($t,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function ji(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=yr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return $t(e,Ti({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",re(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));var Os=(e,t,r)=>t(w(r).id),qs=ee('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Vs=ee('<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 Fi(e,t){X(t,!0),dt(e,Ps);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"hideDiscover",7,!0),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),f=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:ln,href:d()||"#"},{id:"chat",label:"Chat",icon:un,href:u()||"#"},{id:"console",label:"Console",icon:cn,href:f()||"#"},{id:"api",label:"API",icon:dn,href:l()||"#"}],v=a()?c.filter(b=>b.id!=="discover"):c;function h(b){var g;if(b!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),we.setSelectedItem(b),b!=="discover")try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const L=document.getElementById("main-content");if(L){const T=L.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(T&&T.textContent){const O=T.textContent.trim();m.set(O),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(O))}}},200)}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing state:",m)}else try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing Discover state:",m)}(g=o())==null||g({item:b,expanded:!1})}var k=pt(),E=Ze(k);{var z=b=>{var g=Vs();pi(g,21,()=>v,ga,(m,L)=>{var T=qs();let O;T.__click=[Os,h,L];var M=S(T),A=S(M);const Z=ie(()=>i()===w(L).id);_a(A,()=>w(L).icon,(D,j)=>{j(D,{get isSelected(){return w(Z)}})}),C(M);var J=ue(M,2),I=S(J,!0);C(J),C(T),be(D=>{F(T,"href",w(L).href),O=ke(T,1,`nav-item ${w(L).id}-item`,"svelte-gdyha2",O,D),F(T,"part",`${w(L).id}-item`),Wt(I,w(L).label)},[()=>({active:i()===w(L).id})]),N(m,T)}),C(g),N(b,g)};G(E,b=>{s()&&b(z)})}N(e,k);var p=Q({get onNavItemClick(){return o()},set onNavItemClick(b){o(b),_()},get showAppIcons(){return s()},set showAppIcons(b=!0){s(b),_()},get hideDiscover(){return a()},set hideDiscover(b=!0){a(b),_()},get apiUrl(){return l()},set apiUrl(b){l(b),_()},get chatUrl(){return u()},set chatUrl(b){u(b),_()},get consoleUrl(){return f()},set consoleUrl(b){f(b),_()},get discoverUrl(){return d()},set discoverUrl(b){d(b),_()}});return n(),p}Kt(["click"]),re(Fi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Zi(e,t){X(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"hideDiscover",7,!0),o=y(t,"apiUrl",7),s=y(t,"chatUrl",7),a=y(t,"consoleUrl",7),l=y(t,"discoverUrl",7);return Fi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),Q({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),_()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),_()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),_()},get apiUrl(){return o()},set apiUrl(u){o(u),_()},get chatUrl(){return s()},set chatUrl(u){s(u),_()},get consoleUrl(){return a()},set consoleUrl(u){a(u),_()},get discoverUrl(){return l()},set discoverUrl(u){l(u),_()}})}customElements.define("graymatter-mobile-bottom-nav",re(Zi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Rs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Bs=ee('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),js=ee('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Fs=ee('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),Zs=ee('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),Ys=ee('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const Ks={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);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-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Yi(e,t){X(t,!0),dt(e,Ks);const[r,n]=er(),i=()=>Ae(Pe,"$isExpanded",r),o=()=>Ae(_t,"$selectedItem",r);let s,a=null,l=y(t,"logoLinkUrl",7),u=y(t,"logoLinkLabel",7);function f(I){if(a=I.detail.hash,d(),a){const j=document.getElementById(a);if(j){const ce=document.getElementById("main-content-mobile"),fe=ce?ce.querySelector(`[id="${a}"]`):null;if(fe&&ce){const de=fe.getBoundingClientRect(),ne=ce.getBoundingClientRect(),ve=ce.scrollTop+de.top-ne.top;ce.scrollTo({top:ve,behavior:"auto"}),setTimeout(()=>{var it;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(it=fe.textContent)==null?void 0:it.trim(),id:fe.id}}))},100)}else{let de=j.parentElement;for(;de&&de!==document.body;){const ne=window.getComputedStyle(de);if(ne.overflowY==="auto"||ne.overflowY==="scroll")break;de=de.parentElement}de&&de!==document.body?document.getElementById("main-content")?(j.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ve;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ve=j.textContent)==null?void 0:ve.trim(),id:j.id}}))},100)):j.scrollIntoView({behavior:"auto",block:"start"}):j.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Gt(()=>{window.addEventListener("mobileAnchorNavigate",f);const I=()=>{d()};window.addEventListener("closeMobileMenu",I);const D=ce=>{const fe=ce,{isMobile:de}=fe.detail;de&&we.setExpanded(!1)};window.addEventListener("layoutTransition",D);const j=ce=>{const fe=document.activeElement;ce.key==="Escape"&&i()&&!(fe&&fe.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",j),()=>{window.removeEventListener("mobileAnchorNavigate",f),window.removeEventListener("closeMobileMenu",I),window.removeEventListener("layoutTransition",D),window.removeEventListener("keydown",j)}});function d(){we.setExpanded(!1)}var c=Ys(),v=Ze(c);{var h=I=>{var D=Bs();D.__click=d,D.__keydown=[Rs,d],N(I,D)};G(v,I=>{i()&&I(h)})}var k=ue(v,2);let E;var z=S(k),p=S(z);p.__click=d;var b=S(p);Cr(b,{isOpen:!0}),C(p);var g=ue(p,2),m=S(g);{var L=I=>{var D=js(),j=S(D);$t(j,{width:75,height:22}),C(D),be(()=>{F(D,"href",l()),F(D,"aria-label",u())}),N(I,D)},T=I=>{$t(I,{width:75,height:22})};G(m,I=>{l()?I(L):I(T,!1)})}C(g),C(z);var O=ue(z,2),M=S(O);{var A=I=>{var D=Fs(),j=S(D);mt(j,t,"default",{}),C(D),N(I,D)},Z=I=>{var D=Zs();N(I,D)};G(M,I=>{o()&&o()!=="discover"?I(A):I(Z,!1)})}C(O),C(k),vt(k,I=>s=I,()=>s),be(I=>E=ke(k,1,"mobile-side-menu svelte-1anbrit",null,E,I),[()=>({open:i()})]),N(e,c);var J=Q({get logoLinkUrl(){return l()},set logoLinkUrl(I){l(I),_()},get logoLinkLabel(){return u()},set logoLinkLabel(I){u(I),_()}});return n(),J}Kt(["click","keydown"]),re(Yi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Ki(e,t){X(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7);return Yi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=pt(),a=Ze(s);mt(a,t,"default",{}),N(i,s)},$$slots:{default:!0}}),Q({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),_()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),_()}})}customElements.define("graymatter-mobile-side-menu",re(Ki,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Js(){we.toggleExpanded()}var Ws=ee('<a class="display-flex"><!></a>'),Gs=ee('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const Xs={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {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-g1zhvs:disabled,
110
66
  .menu-button.disabled.svelte-g1zhvs {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-g1zhvs:hover {background-color:var(--ai-color-neutral-100);}
111
67
 
112
68
  /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-g1zhvs .menu-button.disabled:where(.svelte-g1zhvs),
113
- .mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {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-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function Vi(e,t){Q(t,!0),ct(e,Fs);const[r,n]=Xt(),i=()=>Te(pt,"$selectedSubNavItemTitle",r),o=()=>Te(Qr,"$isMenuButtonDisabled",r);let s=y(t,"profileMenuData",7),a=y(t,"logoLinkUrl",7),l=y(t,"logoLinkLabel",7);Jt(()=>{const S=I=>{if(window.innerWidth<=640)return;const A=I;A.detail&&A.detail.title&&(pt.set(A.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A.detail.title)))},N=()=>{if(typeof window>"u")return;const I=document.getElementById("main-content");if(!I)return;const A=I.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(A&&A.textContent){const F=A.textContent.trim();i()||(pt.set(F),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(F)))}};window.addEventListener("sectionVisible",S);const O=sessionStorage.getItem("subNav-selectedTitle");return(!O||O==='""'||O==="null")&&setTimeout(()=>{N()},100),()=>{window.removeEventListener("sectionVisible",S)}});var u=js(),v=z(u);let d;v.__click=[Rs];var c=z(v);yr(c,{}),C(v);var g=de(v,2),h=z(g);{var k=S=>{var N=Bs(),O=z(N);Tt(O,{width:75,height:22}),C(N),_e(()=>{W(N,"href",a()),W(N,"aria-label",l())}),M(S,N)},E=S=>{Tt(S,{width:75,height:22})};G(h,S=>{a()?S(k):S(E,!1)})}var L=de(h,2),p=z(L,!0);C(L),C(g);var f=de(g,2);{var b=S=>{const N=ne(()=>{var I;return(I=s())==null?void 0:I.userMeta}),O=ne(()=>{var I;return(I=s())==null?void 0:I.menuItems});on(S,{get userMeta(){return m(N)},get menuItems(){return m(O)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};G(f,S=>{s()&&S(b)})}C(u),_e(S=>{d=Ee(v,1,"menu-button svelte-g1zhvs",null,d,S),v.disabled=o(),Kt(p,i()||"")},[()=>({disabled:o()})]),M(e,u);var w=ee({get profileMenuData(){return s()},set profileMenuData(S){s(S),_()},get logoLinkUrl(){return a()},set logoLinkUrl(S){a(S),_()},get logoLinkLabel(){return l()},set logoLinkLabel(S){l(S),_()}});return n(),w}Zt(["click"]),oe(Vi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0);function Pi(e,t){Q(t,!0);let r=y(t,"profileMenuData",7),n=y(t,"logoLinkUrl",7),i=y(t,"logoLinkLabel",7);return Vi(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()}}),ee({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",oe(Pi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0));function er(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Zs(){er("toggle")}function Ys(){er("open")}function Ks(){er("close")}function Js(e){er("set",e)}D.Button=zi,D.DesktopHeader=Ti,D.DesktopSideNav=Di,D.Logo=Ai,D.MobileBottomNav=Hi,D.MobileSideMenu=qi,D.MobileTopNav=Pi,D.closeNavigation=Ks,D.controlDesktopNavigation=er,D.openNavigation=Ys,D.setNavigationState=Js,D.toggleNavigation=Zs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
69
+ .mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {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-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function Ji(e,t){X(t,!0),dt(e,Xs);const[r,n]=er(),i=()=>Ae(wt,"$selectedSubNavItemTitle",r),o=()=>Ae(sn,"$isMenuButtonDisabled",r);let s=y(t,"profileMenuData",7),a=y(t,"logoLinkUrl",7),l=y(t,"logoLinkLabel",7);Gt(()=>{const L=M=>{if(window.innerWidth<=640)return;const A=M;A.detail&&A.detail.title&&(wt.set(A.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A.detail.title)))},T=()=>{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 Z=A.textContent.trim();i()||(wt.set(Z),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Z)))}};window.addEventListener("sectionVisible",L);const O=sessionStorage.getItem("subNav-selectedTitle");return(!O||O==='""'||O==="null")&&setTimeout(()=>{T()},100),()=>{window.removeEventListener("sectionVisible",L)}});var u=Gs(),f=S(u);let d;f.__click=[Js];var c=S(f);Cr(c,{}),C(f);var v=ue(f,2),h=S(v);{var k=L=>{var T=Ws(),O=S(T);$t(O,{width:75,height:22}),C(T),be(()=>{F(T,"href",a()),F(T,"aria-label",l())}),N(L,T)},E=L=>{$t(L,{width:75,height:22})};G(h,L=>{a()?L(k):L(E,!1)})}var z=ue(h,2),p=S(z,!0);C(z),C(v);var b=ue(v,2);{var g=L=>{const T=ie(()=>{var M;return(M=s())==null?void 0:M.userMeta}),O=ie(()=>{var M;return(M=s())==null?void 0:M.menuItems});vn(L,{get userMeta(){return w(T)},get menuItems(){return w(O)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};G(b,L=>{s()&&L(g)})}C(u),be(L=>{d=ke(f,1,"menu-button svelte-g1zhvs",null,d,L),f.disabled=o(),Wt(p,i()||"")},[()=>({disabled:o()})]),N(e,u);var m=Q({get profileMenuData(){return s()},set profileMenuData(L){s(L),_()},get logoLinkUrl(){return a()},set logoLinkUrl(L){a(L),_()},get logoLinkLabel(){return l()},set logoLinkLabel(L){l(L),_()}});return n(),m}Kt(["click"]),re(Ji,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0);function Wi(e,t){X(t,!0);let r=y(t,"profileMenuData",7),n=y(t,"logoLinkUrl",7),i=y(t,"logoLinkLabel",7);return Ji(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",re(Wi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0));function rr(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Qs(){rr("toggle")}function el(){rr("open")}function tl(){rr("close")}function rl(e){rr("set",e)}$.Button=Ai,$.DesktopHeader=Vi,$.DesktopSideNav=Bi,$.Logo=ji,$.MobileBottomNav=Zi,$.MobileSideMenu=Ki,$.MobileTopNav=Wi,$.closeNavigation=tl,$.controlDesktopNavigation=rr,$.openNavigation=el,$.setNavigationState=rl,$.toggleNavigation=Qs,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});