@gsa-tts/graymatter-ui 0.4.17 → 0.5.0

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,6 @@
1
- (function(q,Q){typeof exports=="object"&&typeof module<"u"?Q(exports):typeof define=="function"&&define.amd?define(["exports"],Q):(q=typeof globalThis<"u"?globalThis:q||self,Q(q.graymatter={}))})(this,function(q){"use strict";var Ll=Object.defineProperty;var fo=q=>{throw TypeError(q)};var zl=(q,Q,de)=>Q in q?Ll(q,Q,{enumerable:!0,configurable:!0,writable:!0,value:de}):q[Q]=de;var Ne=(q,Q,de)=>zl(q,typeof Q!="symbol"?Q+"":Q,de),ho=(q,Q,de)=>Q.has(q)||fo("Cannot "+de);var Se=(q,Q,de)=>(ho(q,Q,"read from private field"),de?de.call(q):Q.get(q)),Cn=(q,Q,de)=>Q.has(q)?fo("Cannot add the same private member more than once"):Q instanceof WeakSet?Q.add(q):Q.set(q,de),En=(q,Q,de,_t)=>(ho(q,Q,"write to private field"),_t?_t.call(q,de):Q.set(q,de),de);var eo,it,Ae;typeof window<"u"&&((eo=window.__svelte??(window.__svelte={})).v??(eo.v=new Set)).add("5");const de=1,_t=2,Sn=4,bo=8,po=16,go=1,mo=2,Ln=4,wo=8,_o=16,zn=1,ko=2,Dr="[",$r="[!",qr="]",kt={},xe=Symbol(),yo="http://www.w3.org/1999/xhtml",xo="@attach",Mn=!1;var lr=Array.isArray,Co=Array.prototype.indexOf,Ar=Array.from,ur=Object.keys,$t=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,In=Object.getOwnPropertyDescriptors,Eo=Object.prototype,So=Array.prototype,Ur=Object.getPrototypeOf,Nn=Object.isExtensible;function qt(e){return typeof e=="function"}const ot=()=>{};function Lo(e){return e()}function At(e){for(var t=0;t<e.length;t++)e[t]()}const Te=2,Hr=4,Ut=8,Or=16,Xe=32,ft=64,Vr=128,Le=256,cr=512,ze=1024,Qe=2048,at=4096,et=8192,Pr=16384,Tn=32768,dr=65536,Dn=1<<17,zo=1<<18,$n=1<<19,Rr=1<<20,Br=1<<21,Fe=Symbol("$state"),jr=Symbol("legacy props"),Mo=Symbol(""),qn=new class extends Error{constructor(){super(...arguments);Ne(this,"name","StaleReactionError");Ne(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},An=3,Ht=8;function Un(e){return e===this.v}function Hn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function On(e){return!Hn(e,this.v)}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function No(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function To(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Do(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $o(){throw new Error("https://svelte.dev/e/hydration_failed")}function qo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ao(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,Oo=!1;function Vo(){yt=!0}function Po(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let ee=null;function Vn(e){ee=e}function ie(e,t=!1,r){var n=ee={p:ee,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(ee.l={s:null,u:null,r1:[],r2:Et(!1)}),hr(()=>{n.d=!0})}function oe(e){const t=ee;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=Y,n=V;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];lt(o.effect),Je(o.reaction),ti(o.fn)}}finally{lt(r),Je(n)}}ee=t.p,t.m=!0}return e||{}}function vr(){return!yt||ee!==null&&ee.l===null}function xt(e){if(typeof e!="object"||e===null||Fe in e)return e;const t=Ur(e);if(t!==Eo&&t!==So)return e;var r=new Map,n=lr(e),i=we(0),o=V,s=a=>{var l=V;Je(o);var u=a();return Je(l),u};return n&&r.set("length",we(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ao();var f=r.get(l);return f===void 0?f=s(()=>{var d=we(u.value);return r.set(l,d),d}):A(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>we(xe));r.set(l,c),Fr(i)}}else{if(n&&typeof l=="string"){var f=r.get("length"),d=Number(l);Number.isInteger(d)&&d<f.v&&A(f,d)}A(u,xe),Fr(i)}return!0},get(a,l,u){var v;if(l===Fe)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||(v=Ge(a,l))!=null&&v.writable)&&(f=s(()=>{var h=xt(d?a[l]:xe),y=we(h);return y}),r.set(l,f)),f!==void 0){var c=m(f);return c===xe?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=m(f))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==xe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===Fe)return!0;var u=r.get(l),f=u!==void 0&&u.v!==xe||Reflect.has(a,l);if(u!==void 0||Y!==null&&(!f||(c=Ge(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=f?xt(a[l]):xe,h=we(v);return h}),r.set(l,u));var d=m(u);if(d===xe)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?A(h,xe):v in a&&(h=s(()=>we(xe)),r.set(v+"",h))}if(d===void 0)(!c||(b=Ge(a,l))!=null&&b.writable)&&(d=s(()=>we(void 0)),A(d,xt(u)),r.set(l,d));else{c=d.v!==xe;var y=s(()=>xt(u));A(d,y)}var S=Reflect.getOwnPropertyDescriptor(a,l);if(S!=null&&S.set&&S.set.call(f,u),!c){if(n&&typeof l=="string"){var L=r.get("length"),g=Number(l);Number.isInteger(g)&&g>=L.v&&A(L,g+1)}Fr(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!==xe});for(var[u,f]of r)f.v!==xe&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Uo()}})}function Fr(e,t=1){A(e,e.v+t)}function Pn(e){try{if(e!==null&&typeof e=="object"&&Fe in e)return e[Fe]}catch{}return e}function Ro(e,t){return Object.is(Pn(e),Pn(t))}function Ct(e){var t=Te|Qe,r=V!==null&&(V.f&Te)!==0?V:null;return Y===null||r!==null&&(r.f&Le)!==0?t|=Le:Y.f|=$n,{ctx:ee,deps:null,effects:null,equals:Un,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??Y,ac:null}}function ae(e){const t=Ct(e);return ci(t),t}function Rn(e){const t=Ct(e);return t.equals=On,t}function Bn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)$e(t[r])}}function Bo(e){for(var t=e.parent;t!==null;){if((t.f&Te)===0)return t;t=t.parent}return null}function jn(e){var t,r=Y;lt(Bo(e));try{Bn(e),t=fi(e)}finally{lt(r)}return t}function Fn(e){var t=jn(e);if(e.equals(t)||(e.v=t,e.wv=di()),!Mt){var r=(ut||(e.f&Le)!==0)&&e.deps!==null?at:ze;Ve(e,r)}}const Ot=new Map;function Et(e,t){var r={f:0,v:e,reactions:null,equals:Un,rv:0,wv:0};return r}function we(e,t){const r=Et(e);return ci(r),r}function ht(e,t=!1,r=!0){var i;const n=Et(e);return t||(n.equals=On),yt&&r&&ee!==null&&ee.l!==null&&((i=ee.l).s??(i.s=[])).push(n),n}function jo(e,t){return A(e,Oe(()=>m(e))),t}function A(e,t,r=!1){V!==null&&(!Ke||(V.f&Dn)!==0)&&vr()&&(V.f&(Te|Or|Dn))!==0&&!((ce==null?void 0:ce.reaction)===V&&ce.sources.includes(e))&&Ho();let n=r?xt(t):t;return Zr(e,n)}function Zr(e,t){if(!e.equals(t)){var r=e.v;Mt?Ot.set(e,t):Ot.set(e,r),e.v=t,(e.f&Te)!==0&&((e.f&Qe)!==0&&jn(e),Ve(e,(e.f&Le)===0?ze:at)),e.wv=di(),Yn(e,Qe),vr()&&Y!==null&&(Y.f&ze)!==0&&(Y.f&(Xe|ft))===0&&(qe===null?na([e]):qe.push(e))}return t}function Zn(e,t=1){var r=m(e),n=t===1?r++:r--;return A(e,r),n}function Yn(e,t){var r=e.reactions;if(r!==null)for(var n=vr(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Qe)===0&&(!n&&s===Y||(Ve(s,t),(a&(ze|Le))!==0&&((a&Te)!==0?Yn(s,at):kr(s))))}}function fr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Fo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function Ue(e){H=e}let Z;function He(e){if(e===null)throw fr(),kt;return Z=e}function St(){return He(tt(Z))}function C(e){if(H){if(tt(Z)!==null)throw fr(),kt;Z=e}}function Ze(e=1){if(H){for(var t=e,r=Z;t--;)r=tt(r);Z=r}}function Yr(){for(var e=0,t=Z;;){if(t.nodeType===Ht){var r=t.data;if(r===qr){if(e===0)return t;e-=1}else(r===Dr||r===$r)&&(e+=1)}var n=tt(t);t.remove(),t=n}}function Kn(e){if(!e||e.nodeType!==Ht)throw fr(),kt;return e.data}var Jn,Wn,Gn,Xn;function Kr(){if(Jn===void 0){Jn=window,Wn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Gn=Ge(t,"firstChild").get,Xn=Ge(t,"nextSibling").get,Nn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Nn(r)&&(r.__t=void 0)}}function Lt(e=""){return document.createTextNode(e)}function De(e){return Gn.call(e)}function tt(e){return Xn.call(e)}function E(e,t){if(!H)return De(e);var r=De(Z);if(r===null)r=Z.appendChild(Lt());else if(t&&r.nodeType!==An){var n=Lt();return r==null||r.before(n),He(n),n}return He(r),r}function Ye(e,t){if(!H){var r=De(e);return r instanceof Comment&&r.data===""?tt(r):r}return Z}function ve(e,t=1,r=!1){let n=H?Z:e;for(var i;t--;)i=n,n=tt(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==An){var o=Lt();return n===null?i==null||i.after(o):n.before(o),He(o),o}return He(n),n}function Qn(e){e.textContent=""}function ei(e){Y===null&&V===null&&To(),V!==null&&(V.f&Le)!==0&&Y===null&&No(),Mt&&Io()}function Zo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function rt(e,t,r,n=!0){var i=Y,o={ctx:ee,deps:null,nodes_start:null,nodes_end:null,f:e|Qe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{_r(o),o.f|=Tn}catch(l){throw $e(o),l}else t!==null&&kr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&($n|Vr))===0;if(!s&&n&&(i!==null&&Zo(o,i),V!==null&&(V.f&Te)!==0)){var a=V;(a.effects??(a.effects=[])).push(o)}return o}function hr(e){const t=rt(Ut,null,!1);return Ve(t,ze),t.teardown=e,t}function Jr(e){ei();var t=Y!==null&&(Y.f&Xe)!==0&&ee!==null&&!ee.m;if(t){var r=ee;(r.e??(r.e=[])).push({fn:e,effect:Y,reaction:V})}else return ti(e)}function ti(e){return rt(Hr|Br,e,!1)}function Yo(e){return ei(),rt(Ut|Br,e,!0)}function Ko(e){const t=rt(ft,e,!0);return()=>{$e(t)}}function Jo(e){const t=rt(ft,e,!0);return(r={})=>new Promise(n=>{r.outro?Vt(t,()=>{$e(t),n(void 0)}):($e(t),n(void 0))})}function Wr(e){return rt(Hr,e,!1)}function Wo(e,t){var r=ee,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=br(()=>{e(),!n.ran&&(n.ran=!0,A(r.l.r2,!0),Oe(t))})}function Go(){var e=ee;br(()=>{if(m(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&ze)!==0&&Ve(r,at),Zt(r)&&_r(r),t.ran=!1}e.l.r2.v=!1}})}function br(e){return rt(Ut,e,!0)}function pe(e,t=[],r=Ct){const n=t.map(r);return zt(()=>e(...n.map(m)))}function zt(e,t=0){var r=rt(Ut|Or|t,e,!0);return r}function st(e,t=!0){return rt(Ut|Xe,e,!0,t)}function ri(e){var t=e.teardown;if(t!==null){const r=Mt,n=V;ui(!0),Je(null);try{t.call(null)}finally{ui(r),Je(n)}}}function ni(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(qn);var n=r.next;(r.f&ft)!==0?r.parent=null:$e(r,t),r=n}}function Xo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Xe)===0&&$e(t),t=r}}function $e(e,t=!0){var r=!1;(t||(e.f&zo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Qo(e.nodes_start,e.nodes_end),r=!0),ni(e,t&&!r),wr(e,0),Ve(e,Pr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();ri(e);var i=e.parent;i!==null&&i.first!==null&&ii(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Qo(e,t){for(;e!==null;){var r=e===t?null:tt(e);e.remove(),e=r}}function ii(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 Vt(e,t){var r=[];Gr(e,r,!0),oi(r,()=>{$e(e),t&&t()})}function oi(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Gr(e,t,r){if((e.f&et)===0){if(e.f^=et,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&dr)!==0||(n.f&Xe)!==0;Gr(n,t,o?r:!1),n=i}}}function pr(e){ai(e,!0)}function ai(e,t){if((e.f&et)!==0){e.f^=et;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&dr)!==0||(r.f&Xe)!==0;ai(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Pt=[],Xr=[];function si(){var e=Pt;Pt=[],At(e)}function ea(){var e=Xr;Xr=[],At(e)}function Rt(e){Pt.length===0&&queueMicrotask(si),Pt.push(e)}function ta(){Pt.length>0&&si(),Xr.length>0&&ea()}function ra(e){var t=Y;if((t.f&Tn)===0){if((t.f&Vr)===0)throw e;t.fn(e)}else li(e,t)}function li(e,t){for(;t!==null;){if((t.f&Vr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Bt=!1,jt=null,bt=!1,Mt=!1;function ui(e){Mt=e}let Ft=[],Ml=[],V=null,Ke=!1;function Je(e){V=e}let Y=null;function lt(e){Y=e}let ce=null;function ci(e){V!==null&&V.f&Rr&&(ce===null?ce={reaction:V,sources:[e]}:ce.sources.push(e))}let _e=null,Me=0,qe=null;function na(e){qe=e}let gr=1,mr=0,ut=!1;function di(){return++gr}function Zt(e){var d;var t=e.f;if((t&Qe)!==0)return!0;if((t&at)!==0){var r=e.deps,n=(t&Le)!==0;if(r!==null){var i,o,s=(t&cr)!==0,a=n&&Y!==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^=cr),a&&f!==null&&(f.f&Le)===0&&(u.f^=Le)}for(i=0;i<l;i++)if(o=r[i],Zt(o)&&Fn(o),o.wv>e.wv)return!0}(!n||Y!==null&&!ut)&&Ve(e,ze)}return!1}function vi(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(ce==null?void 0:ce.reaction)===V&&ce.sources.includes(e)||((o.f&Te)!==0?vi(o,t,!1):t===o&&(r?Ve(o,Qe):(o.f&ze)!==0&&Ve(o,at),kr(o)))}}function fi(e){var v;var t=_e,r=Me,n=qe,i=V,o=ut,s=ce,a=ee,l=Ke,u=e.f;_e=null,Me=0,qe=null,ut=(u&Le)!==0&&(Ke||!bt||V===null),V=(u&(Xe|ft))===0?e:null,ce=null,Vn(e.ctx),Ke=!1,mr++,e.f|=Rr,e.ac!==null&&(e.ac.abort(qn),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(_e!==null){var c;if(wr(e,Me),d!==null&&Me>0)for(d.length=Me+_e.length,c=0;c<_e.length;c++)d[Me+c]=_e[c];else e.deps=d=_e;if(!ut||(u&Te)!==0&&e.reactions!==null)for(c=Me;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&Me<d.length&&(wr(e,Me),d.length=Me);if(vr()&&qe!==null&&!Ke&&d!==null&&(e.f&(Te|at|Qe))===0)for(c=0;c<qe.length;c++)vi(qe[c],e);return i!==null&&i!==e&&(mr++,qe!==null&&(n===null?n=qe:n.push(...qe))),f}catch(h){ra(h)}finally{_e=t,Me=r,qe=n,V=i,ut=o,ce=s,Vn(a),Ke=l,e.f^=Rr}}function ia(e,t){let r=t.reactions;if(r!==null){var n=Co.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&Te)!==0&&(_e===null||!_e.includes(t))&&(Ve(t,at),(t.f&(Le|cr))===0&&(t.f^=cr),Bn(t),wr(t,0))}function wr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ia(e,r[n])}function _r(e){var t=e.f;if((t&Pr)===0){Ve(e,ze);var r=Y,n=bt;Y=e,bt=!0;try{(t&Or)!==0?Xo(e):ni(e),ri(e);var i=fi(e);e.teardown=typeof i=="function"?i:null,e.wv=gr;var o;Mn&&Oo&&(e.f&Qe)!==0&&e.deps}finally{bt=n,Y=r}}}function oa(){try{Do()}catch(e){if(jt!==null)li(e,jt);else throw e}}function hi(){var e=bt;try{var t=0;for(bt=!0;Ft.length>0;){t++>1e3&&oa();var r=Ft,n=r.length;Ft=[];for(var i=0;i<n;i++){var o=sa(r[i]);aa(o)}Ot.clear()}}finally{Bt=!1,bt=e,jt=null}}function aa(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Pr|et))===0&&Zt(n)){var i=gr;if(_r(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ii(n):n.fn=null),gr>i&&(n.f&Br)!==0)break}}for(;r<t;r+=1)kr(e[r])}}function kr(e){Bt||(Bt=!0,queueMicrotask(hi));for(var t=jt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(ft|Xe))!==0){if((r&ze)===0)return;t.f^=ze}}Ft.push(t)}function sa(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Xe|ft))!==0,o=i&&(n&ze)!==0;if(!o&&(n&et)===0){(n&Hr)!==0?t.push(r):i?r.f^=ze:Zt(r)&&_r(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 w(e){for(var t;;){if(ta(),Ft.length===0)return Bt=!1,jt=null,t;Bt=!0,hi()}}function m(e){var t=e.f,r=(t&Te)!==0;if(V!==null&&!Ke){if((ce==null?void 0:ce.reaction)!==V||!(ce!=null&&ce.sources.includes(e))){var n=V.deps;e.rv<mr&&(e.rv=mr,_e===null&&n!==null&&n[Me]===e?Me++:_e===null?_e=[e]:(!ut||!_e.includes(e))&&_e.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&Le)===0&&(i.f^=Le)}return r&&(i=e,Zt(i)&&Fn(i)),Mt&&Ot.has(e)?Ot.get(e):e.v}function Oe(e){var t=Ke;try{return Ke=!0,e()}finally{Ke=t}}const la=-7169;function Ve(e,t){e.f=e.f&la|t}function bi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fe in e)Qr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Fe in r&&Qr(r)}}}function Qr(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{Qr(e[n],t)}catch{}const r=Ur(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=In(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function ua(e,t){if(t){const r=document.body;e.autofocus=!0,Rt(()=>{document.activeElement===r&&e.focus()})}}function ca(e){var t=V,r=Y;Je(null),lt(null);try{return e()}finally{Je(t),lt(r)}}const pi=new Set,en=new Set;function gi(e,t,r,n={}){function i(o){if(n.capture||Kt.call(t,o),!o.cancelBubble)return ca(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Rt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function me(e,t,r,n,i){var o={capture:n,passive:i},s=gi(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&hr(()=>{t.removeEventListener(e,s,o)})}function Yt(e){for(var t=0;t<e.length;t++)pi.add(e[t]);for(var r of en)r(e)}function Kt(e){var g;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.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 f=V,d=Y;Je(null),lt(null);try{for(var c,v=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var y=o["__"+n];if(y!=null&&(!o.disabled||e.target===o))if(lr(y)){var[S,...L]=y;S.apply(o,[e,...L])}else y.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,Je(f),lt(d)}}}function mi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function nt(e,t){var r=Y;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function re(e,t){var r=(t&zn)!==0,n=(t&ko)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return nt(Z,null),Z;i===void 0&&(i=mi(o?e:"<!>"+e),r||(i=De(i)));var s=n||Wn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=De(s),l=s.lastChild;nt(a,l)}else nt(s,s);return s}}function da(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&zn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return nt(Z,null),Z;if(!s){var a=mi(o),l=De(a);if(i)for(s=document.createDocumentFragment();De(l);)s.appendChild(De(l));else s=De(l)}var u=s.cloneNode(!0);if(i){var f=De(u),d=u.lastChild;nt(f,d)}else nt(u,u);return u}}function se(e,t){return da(e,t,"svg")}function pt(){if(H)return nt(Z,null),Z;var e=document.createDocumentFragment(),t=document.createComment(""),r=Lt();return e.append(t,r),nt(t,r),e}function M(e,t){if(H){Y.nodes_end=Z,St();return}e!==null&&e.before(t)}function va(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const fa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ha(e){return fa.includes(e)}const ba={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 pa(e){return e=e.toLowerCase(),ba[e]??e}const ga=["touchstart","touchmove"];function ma(e){return ga.includes(e)}function Jt(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 wi(e,t){return _i(e,t)}function wa(e,t){Kr(),t.intro=t.intro??!1;const r=t.target,n=H,i=Z;try{for(var o=De(r);o&&(o.nodeType!==Ht||o.data!==Dr);)o=tt(o);if(!o)throw kt;Ue(!0),He(o),St();const s=_i(e,{...t,anchor:o});if(Z===null||Z.nodeType!==Ht||Z.data!==qr)throw fr(),kt;return Ue(!1),s}catch(s){if(s===kt)return t.recover===!1&&$o(),Kr(),Qn(r),Ue(!1),wi(e,t);throw s}finally{Ue(n),He(i)}}const It=new Map;function _i(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Kr();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=ma(v);t.addEventListener(v,Kt,{passive:h});var y=It.get(v);y===void 0?(document.addEventListener(v,Kt,{passive:h}),It.set(v,1)):It.set(v,y+1)}}};l(Ar(pi)),en.add(l);var u=void 0,f=Jo(()=>{var d=r??t.appendChild(Lt());return st(()=>{if(o){ie({});var c=ee;c.c=o}i&&(n.$$events=i),H&&nt(d,null),u=e(d,n)||{},H&&(Y.nodes_end=Z),o&&oe()}),()=>{var h;for(var c of a){t.removeEventListener(c,Kt);var v=It.get(c);--v===0?(document.removeEventListener(c,Kt),It.delete(c)):It.set(c,v)}en.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return tn.set(u,f),u}let tn=new WeakMap;function _a(e,t){const r=tn.get(e);return r?(tn.delete(e),r(t)):Promise.resolve()}function Wt(e){ee===null&&Po(),yt&&ee.l!==null?ka(ee).m.push(e):Jr(()=>{const t=Oe(e);if(typeof t=="function")return t})}function ka(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function te(e,t,[r,n]=[0,0]){H&&r===0&&St();var i=e,o=null,s=null,a=xe,l=r>0?dr: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 S=Kn(i);S===Dr?n=0:S===$r?n=1/0:(n=parseInt(S.substring(1)),n!==n&&(n=a?1/0:-1))}const y=n>r;!!a===y&&(i=Yr(),He(i),Ue(!1),h=!0,n=-1)}a?(o?pr(o):v&&(o=st(()=>v(i))),s&&Vt(s,()=>{s=null})):(s?pr(s):v&&(s=st(()=>v(i,[r+1,n]))),o&&Vt(o,()=>{o=null})),h&&Ue(!0)};zt(()=>{u=!1,t(f),u||d(null,null)},l),H&&(i=Z)}function ya(e,t){return t}function xa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Gr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Qn(l),l.append(r),n.clear(),ct(e,t[0].prev,t[o-1].next)}oi(i,()=>{for(var u=0;u<o;u++){var f=t[u];a||(n.delete(f.k),ct(e,f.prev,f.next)),$e(f.e,!a)}})}function ki(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&Sn)!==0;if(l){var u=e;s=H?He(De(u)):u.appendChild(Lt())}H&&St();var f=null,d=!1,c=Rn(()=>{var v=r();return lr(v)?v:v==null?[]:Ar(v)});zt(()=>{var v=m(c),h=v.length;if(d&&h===0)return;d=h===0;let y=!1;if(H){var S=Kn(s)===$r;S!==(h===0)&&(s=Yr(),He(s),Ue(!1),y=!0)}if(H){for(var L=null,g,b=0;b<h;b++){if(Z.nodeType===Ht&&Z.data===qr){s=Z,y=!0,Ue(!1);break}var p=v[b],k=n(p,b);g=yi(Z,a,L,null,p,k,b,i,t,r),a.items.set(k,g),L=g}h>0&&He(Yr())}H||Ca(v,a,s,i,t,n,r),o!==null&&(h===0?f?pr(f):f=st(()=>o(s)):f!==null&&Vt(f,()=>{f=null})),y&&Ue(!0),m(c)}),H&&(s=Z)}function Ca(e,t,r,n,i,o,s){var D,J,z,I;var a=(i&bo)!==0,l=(i&(de|_t))!==0,u=e.length,f=t.items,d=t.first,c=d,v,h=null,y,S=[],L=[],g,b,p,k;if(a)for(k=0;k<u;k+=1)g=e[k],b=o(g,k),p=f.get(b),p!==void 0&&((D=p.a)==null||D.measure(),(y??(y=new Set)).add(p));for(k=0;k<u;k+=1){if(g=e[k],b=o(g,k),p=f.get(b),p===void 0){var P=c?c.e.nodes_start:r;h=yi(P,t,h,h===null?t.first:h.next,g,b,k,n,i,s),f.set(b,h),S=[],L=[],c=h.next;continue}if(l&&Ea(p,g,k,i),(p.e.f&et)!==0&&(pr(p.e),a&&((J=p.a)==null||J.unfix(),(y??(y=new Set)).delete(p))),p!==c){if(v!==void 0&&v.has(p)){if(S.length<L.length){var $=L[0],U;h=$.prev;var N=S[0],j=S[S.length-1];for(U=0;U<S.length;U+=1)xi(S[U],$,r);for(U=0;U<L.length;U+=1)v.delete(L[U]);ct(t,N.prev,j.next),ct(t,h,N),ct(t,j,$),c=$,h=j,k-=1,S=[],L=[]}else v.delete(p),xi(p,c,r),ct(t,p.prev,p.next),ct(t,p,h===null?t.first:h.next),ct(t,h,p),h=p;continue}for(S=[],L=[];c!==null&&c.k!==b;)(c.e.f&et)===0&&(v??(v=new Set)).add(c),L.push(c),c=c.next;if(c===null)continue;p=c}S.push(p),h=p,c=p.next}if(c!==null||v!==void 0){for(var W=v===void 0?[]:Ar(v);c!==null;)(c.e.f&et)===0&&W.push(c),c=c.next;var G=W.length;if(G>0){var T=(i&Sn)!==0&&u===0?r:null;if(a){for(k=0;k<G;k+=1)(z=W[k].a)==null||z.measure();for(k=0;k<G;k+=1)(I=W[k].a)==null||I.fix()}xa(t,W,T,f)}}a&&Rt(()=>{var R;if(y!==void 0)for(p of y)(R=p.a)==null||R.apply()}),Y.first=t.first&&t.first.e,Y.last=h&&h.e}function Ea(e,t,r,n){(n&de)!==0&&Zr(e.v,t),(n&_t)!==0?Zr(e.i,r):e.i=r}function yi(e,t,r,n,i,o,s,a,l,u){var f=(l&de)!==0,d=(l&po)===0,c=f?d?ht(i,!1,!1):Et(i):i,v=(l&_t)===0?s:Et(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 xi(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=tt(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 gt(e,t,r,n,i){var a;H&&St();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 Sa(e,t,r){H&&St();var n=e,i,o;zt(()=>{i!==(i=t())&&(o&&(Vt(o),o=null),i&&(o=st(()=>r(n,i))))},dr),H&&(n=Z)}function dt(e,t){Rt(()=>{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 La(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&($e(n),n=null),r&&(n=st(()=>{Wr(()=>r(e))})))})}function Ci(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Ci(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function za(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Ci(e))&&(n&&(n+=" "),n+=t);return n}function Ma(e){return typeof e=="object"?za(e):e??""}const Ei=[...`
2
- \r\f \v\uFEFF`];function Ia(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||Ei.includes(n[s-1]))&&(a===n.length||Ei.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function Si(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 rn(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Na(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(rn)),i&&l.push(...Object.keys(i).map(rn));var u=0,f=-1;const y=e.length;for(var d=0;d<y;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===y-1){if(f!==-1){var v=rn(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+=Si(n)),i&&(r+=Si(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=Ia(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 nn(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 Ta(e,t,r,n){var i=e.__style;if(H||i!==t){var o=Na(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(nn(e,r==null?void 0:r[0],n[0]),nn(e,r==null?void 0:r[1],n[1],"important")):nn(e,r,n));return n}function on(e,t,r=!1){if(e.multiple){if(t==null)return;if(!lr(t))return Fo();for(var n of e.options)n.selected=t.includes(Li(n));return}for(n of e.options){var i=Li(n);if(Ro(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Da(e){var t=new MutationObserver(()=>{on(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),hr(()=>{t.disconnect()})}function Li(e){return"__value"in e?e.__value:e.value}const Nt=Symbol("class"),Gt=Symbol("style"),zi=Symbol("is custom element"),Mi=Symbol("is html");function $a(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function K(e,t,r,n){var i=Ii(e);H&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Mo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ti(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function qa(e,t,r,n,i=!1){var o=Ii(e),s=o[zi],a=!o[Mi];let l=H&&s;l&&Ue(!1);var u=t||{},f=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=Ma(r.class):(n||r[Nt])&&(r.class=null),r[Gt]&&(r.style??(r.style=null));var c=Ti(e);for(const b in r){let p=r[b];if(f&&b==="value"&&p==null){e.value=e.__value="",u[b]=p;continue}if(b==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";ke(e,v,p,n,t==null?void 0:t[Nt],r[Nt]),u[b]=p,u[Nt]=r[Nt];continue}if(b==="style"){Ta(e,p,t==null?void 0:t[Gt],r[Gt]),u[b]=p,u[Gt]=r[Gt];continue}var h=u[b];if(!(p===h&&!(p===void 0&&e.hasAttribute(b)))){u[b]=p;var y=b[0]+b[1];if(y!=="$$")if(y==="on"){const k={},P="$$"+b;let $=b.slice(2);var S=ha($);if(va($)&&($=$.slice(0,-7),k.capture=!0),!S&&h){if(p!=null)continue;e.removeEventListener($,u[P],k),u[P]=null}if(p!=null)if(S)e[`__${$}`]=p,Yt([$]);else{let U=function(N){u[b].call(this,N)};u[P]=gi($,e,U,k)}else S&&(e[`__${$}`]=void 0)}else if(b==="style")K(e,b,p);else if(b==="autofocus")ua(e,!!p);else if(!s&&(b==="__value"||b==="value"&&p!=null))e.value=e.__value=p;else if(b==="selected"&&f)$a(e,p);else{var L=b;a||(L=pa(L));var g=L==="defaultValue"||L==="defaultChecked";if(p==null&&!s&&!g)if(o[b]=null,L==="value"||L==="checked"){let k=e;const P=t===void 0;if(L==="value"){let $=k.defaultValue;k.removeAttribute(L),k.defaultValue=$,k.value=k.__value=P?$:null}else{let $=k.defaultChecked;k.removeAttribute(L),k.defaultChecked=$,k.checked=P?$:!1}}else e.removeAttribute(b);else g||c.includes(L)&&(s||typeof p!="string")?e[L]=p:typeof p!="function"&&K(e,L,p)}}}return l&&Ue(!0),u}function Xt(e,t,r=[],n,i=!1,o=Ct){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",f=!1;if(zt(()=>{var c=t(...s.map(m)),v=qa(e,a,c,n,i);f&&u&&"value"in c&&on(e,c.value);for(let y of Object.getOwnPropertySymbols(l))c[y]||$e(l[y]);for(let y of Object.getOwnPropertySymbols(c)){var h=c[y];y.description===xo&&(!a||h!==a[y])&&(l[y]&&$e(l[y]),l[y]=st(()=>La(e,()=>h))),v[y]=h}a=v}),u){var d=e;Wr(()=>{on(d,a.value,!0),Da(d)})}f=!0}function Ii(e){return e.__attributes??(e.__attributes={[zi]:e.nodeName.includes("-"),[Mi]:e.namespaceURI===yo})}var Ni=new Map;function Ti(e){var t=Ni.get(e.nodeName);if(t)return t;Ni.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=In(n);for(var o in r)r[o].set&&t.push(o);n=Ur(n)}return t}function Di(e,t){return e===t||(e==null?void 0:e[Fe])===t}function vt(e={},t,r,n){return Wr(()=>{var i,o;return br(()=>{i=o,o=(n==null?void 0:n())||[],Oe(()=>{e!==r(...o)&&(t(e,...o),i&&Di(r(...i),e)&&t(null,...i))})}),()=>{Rt(()=>{o&&Di(r(...o),e)&&t(null,...o)})}}),e}function Aa(e=!1){const t=ee,r=t.l.u;if(!r)return;let n=()=>bi(t.s);if(e){let i=0,o={};const s=Ct(()=>{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&&Yo(()=>{$i(t,n),At(r.b)}),Jr(()=>{const i=Oe(()=>r.m.map(Lo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Jr(()=>{$i(t,n),At(r.a)})}function $i(e,t){if(e.l.s)for(const r of e.l.s)m(r);t()}function an(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=Oe(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Tt=[];function Ua(e,t){return{subscribe:sn(e,t).subscribe}}function sn(e,t=ot){let r=null;const n=new Set;function i(a){if(Hn(e,a)&&(e=a,r)){const l=!Tt.length;for(const u of n)u[1](),Tt.push(u,e);if(l){for(let u=0;u<Tt.length;u+=2)Tt[u][0](Tt[u+1]);Tt.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 Ha(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 Ua(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,y)=>an(h,S=>{u[y]=S,f&=~(1<<y),l&&c()},()=>{f|=1<<y}));return l=!0,c(),function(){At(v),d(),l=!1}})}function Oa(e){let t;return an(e,r=>t=r)(),t}let yr=!1,ln=Symbol();function Pe(e,t,r){const n=r[t]??(r[t]={store:null,source:ht(void 0),unsubscribe:ot});if(n.store!==e&&!(ln 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=an(e,o=>{i?n.source.v=o:A(n.source,o)}),i=!1}return e&&ln in r?Oa(e):m(n.source)}function Qt(){const e={};function t(){hr(()=>{for(var r in e)e[r].unsubscribe();$t(e,ln,{enumerable:!1,value:!0})})}return[e,t]}function Va(e){var t=yr;try{return yr=!1,[e(),yr]}finally{yr=t}}const Pa={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 xr(e,t,r){return new Proxy({props:e,exclude:t},Pa)}const Ra={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]=_({get[t](){return e.props[t]}},t,Ln)),e.special[t](r),Zn(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),Zn(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 qi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Et(0)},Ra)}const Ba={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(qt(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];qt(i)&&(i=i());const o=Ge(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(qt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Ge(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Fe||t===jr)return!1;for(let r of e.props)if(qt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(qt(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 Ai(...e){return new Proxy({props:e},Ba)}function ja(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function _(e,t,r,n){var L;var i=!yt||(r&mo)!==0,o=(r&wo)!==0,s=(r&_o)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?Oe(n):n),a),f;if(o){var d=Fe in e||jr in e;f=((L=Ge(e,t))==null?void 0:L.set)??(d&&t in e?g=>e[t]=g:void 0)}var c,v=!1;o?[c,v]=Va(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),f&&(i&&qo(),f(c)));var h;if(i?h=()=>{var g=e[t];return g===void 0?u():(l=!0,g)}:h=()=>{var g=e[t];return g!==void 0&&(a=void 0),g===void 0?a:g},i&&(r&Ln)===0)return h;if(f){var y=e.$$legacy;return function(g,b){return arguments.length>0?((!i||!b||y||v)&&f(b?h():g),g):h()}}var S=((r&go)!==0?Ct:Rn)(h);return o&&m(S),function(g,b){if(arguments.length>0){const p=b?m(S):i&&o?xt(g):g;return A(S,p),a!==void 0&&(a=p),g}return ja(S)?S.v:m(S)}}function Fa(e){return new Za(e)}class Za{constructor(t){Cn(this,it);Cn(this,Ae);var o;var r=new Map,n=(s,a)=>{var l=ht(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===jr?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return A(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});En(this,Ae,(t.hydrate?wa:wi)(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)&&w(),En(this,it,i.$$events);for(const s of Object.keys(Se(this,Ae)))s==="$set"||s==="$destroy"||s==="$on"||$t(this,s,{get(){return Se(this,Ae)[s]},set(a){Se(this,Ae)[s]=a},enumerable:!0});Se(this,Ae).$set=s=>{Object.assign(i,s)},Se(this,Ae).$destroy=()=>{_a(Se(this,Ae))}}$set(t){Se(this,Ae).$set(t)}$on(t,r){Se(this,it)[t]=Se(this,it)[t]||[];const n=(...i)=>r.call(this,...i);return Se(this,it)[t].push(n),()=>{Se(this,it)[t]=Se(this,it)[t].filter(i=>i!==n)}}$destroy(){Se(this,Ae).$destroy()}}it=new WeakMap,Ae=new WeakMap;let Ui;typeof HTMLElement=="function"&&(Ui=class extends HTMLElement{constructor(t,r,n){super();Ne(this,"$$ctor");Ne(this,"$$s");Ne(this,"$$c");Ne(this,"$$cn",!1);Ne(this,"$$d",{});Ne(this,"$$r",!1);Ne(this,"$$p_d",{});Ne(this,"$$l",{});Ne(this,"$$l_u",new Map);Ne(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=Ya(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]=Cr(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=Fa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ko(()=>{br(()=>{var i;this.$$r=!0;for(const o of ur(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=Cr(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]=Cr(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 ur(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Cr(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 Ya(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function le(e,t,r,n,i,o){let s=class extends Ui{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ur(t).map(a=>(t[a].attribute||a).toLowerCase())}};return ur(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=Cr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=(d=Ge(u,a))==null?void 0:d.get;f?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 Ka=re("<a><!></a>"),Ja=re("<button><!></button>");const Wa={hash:"svelte-zsrcxo",code:`
1
+ (function(V,ne){typeof exports=="object"&&typeof module<"u"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(V=typeof globalThis<"u"?globalThis:V||self,ne(V.graymatter={}))})(this,function(V){"use strict";var ac=Object.defineProperty;var Ra=V=>{throw TypeError(V)};var sc=(V,ne,Ce)=>ne in V?ac(V,ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):V[ne]=Ce;var be=(V,ne,Ce)=>sc(V,typeof ne!="symbol"?ne+"":ne,Ce),Yi=(V,ne,Ce)=>ne.has(V)||Ra("Cannot "+Ce);var f=(V,ne,Ce)=>(Yi(V,ne,"read from private field"),Ce?Ce.call(V):ne.get(V)),F=(V,ne,Ce)=>ne.has(V)?Ra("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(V):ne.set(V,Ce),Z=(V,ne,Ce,vn)=>(Yi(V,ne,"write to private field"),vn?vn.call(V,Ce):ne.set(V,Ce),Ce),ae=(V,ne,Ce)=>(Yi(V,ne,"access private method"),Ce);var Da,Aa,zr,Nr,$t,St,en,Ge,vr,Dt,Et,Tr,hr,ye,Bn,Ba,Fn,Wi,Ji,Fa,Xe,tn,Mt,pr,je,It,Qe,bt,At,gr,er,$r,rn,nn,Ut,Dn,ge,Za,Ya,Wa,Ki,Zn,Yn,Gi,Ua,mt,Lt,et,br,on,an,An,Ht,ut;typeof window<"u"&&((Da=window.__svelte??(window.__svelte={})).v??(Da.v=new Set)).add("5");const Ce=1,vn=2,Xi=4,Ja=8,Ka=16,Ga=1,Xa=4,Qa=8,es=16,Qi=1,ts=2,Wn="[",Jn="[!",eo="[?",Kn="]",mr={},Ie=Symbol(),to="http://www.w3.org/1999/xhtml",rs="@attach",ns=!1;var Gn=Array.isArray,is=Array.prototype.indexOf,wr=Array.prototype.includes,hn=Array.from,pn=Object.keys,Dr=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyDescriptors,as=Object.prototype,ss=Array.prototype,ro=Object.getPrototypeOf,no=Object.isExtensible;function Ar(e){return typeof e=="function"}const Ze=()=>{};function io(e){for(var t=0;t<e.length;t++)e[t]()}function oo(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Le=2,_r=4,gn=8,Xn=1<<24,Ot=16,ct=32,Vt=64,Qn=128,rt=512,Se=1024,De=2048,_t=4096,Ye=8192,nt=16384,Pt=32768,ei=1<<25,jt=65536,ao=1<<17,ls=1<<18,rr=1<<19,us=1<<20,kt=1<<25,nr=65536,ti=1<<21,ri=1<<22,Rt=1<<23,Bt=Symbol("$state"),ni=Symbol("legacy props"),cs=Symbol(""),Nt=new class extends Error{constructor(){super(...arguments);be(this,"name","StaleReactionError");be(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},bn=!!((Aa=globalThis.document)!=null&&Aa.contentType)&&globalThis.document.contentType.includes("xml"),mn=3,Ur=8;function ds(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function fs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vs(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function hs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ps(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function bs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ms(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Cs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ss(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function We(e){G=e}let j;function Ue(e){if(e===null)throw wn(),mr;return j=e}function Hr(){return Ue(xt(j))}function M(e){if(G){if(xt(j)!==null)throw wn(),mr;j=e}}function dt(e=1){if(G){for(var t=e,r=j;t--;)r=xt(r);j=r}}function qr(e=!0){for(var t=0,r=j;;){if(r.nodeType===Ur){var n=r.data;if(n===Kn){if(t===0)return r;t-=1}else(n===Wn||n===Jn||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=xt(r);e&&r.remove(),r=i}}function ii(e){if(!e||e.nodeType!==Ur)throw wn(),mr;return e.data}function so(e){return e===this.v}function lo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function uo(e){return!lo(e,this.v)}let Es=!1,Oe=null;function kr(e){Oe=e}function ve(e,t=!1,r){Oe={p:Oe,i:!1,c:null,e:null,s:e,x:null,r:Q,l:null}}function he(e){var t=Oe,r=t.e;if(r!==null){t.e=null;for(var n of r)Ho(n)}return e!==void 0&&(t.x=e),t.i=!0,Oe=t.p,e??{}}function co(){return!0}let ir=[];function fo(){var e=ir;ir=[],io(e)}function yt(e){if(ir.length===0&&!Vr){var t=ir;queueMicrotask(()=>{t===ir&&fo()})}ir.push(e)}function Ms(){for(;ir.length>0;)fo()}function vo(e){var t=Q;if(t===null)return J.f|=Rt,e;if((t.f&Pt)===0&&(t.f&_r)===0)throw e;Ft(e,t)}function Ft(e,t){for(;t!==null;){if((t.f&Qn)!==0){if((t.f&Pt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Is=-7169;function _e(e,t){e.f=e.f&Is|t}function oi(e){(e.f&rt)!==0||e.deps===null?_e(e,Se):_e(e,_t)}function ho(e){if(e!==null)for(const t of e)(t.f&Le)===0||(t.f&nr)===0||(t.f^=nr,ho(t.deps))}function po(e,t,r){(e.f&De)!==0?t.add(e):(e.f&_t)!==0&&r.add(e),ho(e.deps),_e(e,Se)}function ai(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ze;const n=Fr(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const yr=[];function Ls(e,t){return{subscribe:si(e,t).subscribe}}function si(e,t=Ze){let r=null;const n=new Set;function i(l){if(lo(e,l)&&(e=l,r)){const a=!yr.length;for(const u of n)u[1](),yr.push(u,e);if(a){for(let u=0;u<yr.length;u+=2)yr[u][0](yr[u+1]);yr.length=0}}}function o(l){i(l(e))}function s(l,a=Ze){const u=[l,a];return n.add(u),n.size===1&&(r=t(i,o)||Ze),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function zs(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 Ls(r,(s,l)=>{let a=!1;const u=[];let d=0,h=Ze;const c=()=>{if(d)return;h();const b=t(n?u[0]:u,s,l);o?s(b):h=typeof b=="function"?b:Ze},v=i.map((b,C)=>ai(b,p=>{u[C]=p,d&=~(1<<C),a&&c()},()=>{d|=1<<C}));return a=!0,c(),function(){io(v),h(),a=!1}})}function Ns(e){let t;return ai(e,r=>t=r)(),t}let _n=!1,li=Symbol();function ft(e,t,r){const n=r[t]??(r[t]={store:null,source:hi(void 0),unsubscribe:Ze});if(n.store!==e&&!(li in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ze;else{var i=!0;n.unsubscribe=ai(e,o=>{i?n.source.v=o:W(n.source,o)}),i=!1}return e&&li in r?Ns(e):g(n.source)}function Or(){const e={};function t(){Cn(()=>{for(var r in e)e[r].unsubscribe();Dr(e,li,{enumerable:!1,value:!0})})}return[e,t]}function Ts(e){var t=_n;try{return _n=!1,[e(),_n]}finally{_n=t}}const Zt=new Set;let X=null,Te=null,ui=null,Vr=!1,ci=!1,xr=null,kn=null;var go=0;let $s=1;const $n=class $n{constructor(){F(this,ye);be(this,"id",$s++);be(this,"current",new Map);be(this,"previous",new Map);F(this,zr,new Set);F(this,Nr,new Set);F(this,$t,new Map);F(this,St,new Map);F(this,en,null);F(this,Ge,[]);F(this,vr,new Set);F(this,Dt,new Set);F(this,Et,new Map);be(this,"is_fork",!1);F(this,Tr,!1);F(this,hr,new Set)}skip_effect(t){f(this,Et).has(t)||f(this,Et).set(t,{d:[],m:[]})}unskip_effect(t){var r=f(this,Et).get(t);if(r){f(this,Et).delete(t);for(var n of r.d)_e(n,De),this.schedule(n);for(n of r.m)_e(n,_t),this.schedule(n)}}capture(t,r,n=!1){r!==Ie&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Rt)===0&&(this.current.set(t,[t.v,n]),Te==null||Te.set(t,t.v))}activate(){X=this}deactivate(){X=null,Te=null}flush(){try{ci=!0,X=this,ae(this,ye,Fn).call(this)}finally{go=0,ui=null,xr=null,kn=null,ci=!1,X=null,Te=null,Wt.clear()}}discard(){for(const t of f(this,Nr))t(this);f(this,Nr).clear(),Zt.delete(this)}increment(t,r){let n=f(this,$t).get(r)??0;if(f(this,$t).set(r,n+1),t){let i=f(this,St).get(r)??0;f(this,St).set(r,i+1)}}decrement(t,r,n){let i=f(this,$t).get(r)??0;if(i===1?f(this,$t).delete(r):f(this,$t).set(r,i-1),t){let o=f(this,St).get(r)??0;o===1?f(this,St).delete(r):f(this,St).set(r,o-1)}f(this,Tr)||n||(Z(this,Tr,!0),yt(()=>{Z(this,Tr,!1),this.flush()}))}transfer_effects(t,r){for(const n of t)f(this,vr).add(n);for(const n of r)f(this,Dt).add(n);t.clear(),r.clear()}oncommit(t){f(this,zr).add(t)}ondiscard(t){f(this,Nr).add(t)}settled(){return(f(this,en)??Z(this,en,oo())).promise}static ensure(){if(X===null){const t=X=new $n;ci||(Zt.add(X),Vr||yt(()=>{X===t&&t.flush()}))}return X}apply(){{Te=null;return}}schedule(t){var i;if(ui=t,(i=t.b)!=null&&i.is_pending&&(t.f&(_r|gn|Xn))!==0&&(t.f&Pt)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(xr!==null&&r===Q&&(J===null||(J.f&Le)===0))return;if((n&(Vt|ct))!==0){if((n&Se)===0)return;r.f^=Se}}f(this,Ge).push(r)}};zr=new WeakMap,Nr=new WeakMap,$t=new WeakMap,St=new WeakMap,en=new WeakMap,Ge=new WeakMap,vr=new WeakMap,Dt=new WeakMap,Et=new WeakMap,Tr=new WeakMap,hr=new WeakMap,ye=new WeakSet,Bn=function(){return this.is_fork||f(this,St).size>0},Ba=function(){for(const n of f(this,hr))for(const i of f(n,St).keys()){for(var t=!1,r=i;r.parent!==null;){if(f(this,Et).has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1},Fn=function(){var l,a;if(go++>1e3&&(Zt.delete(this),Ds()),!ae(this,ye,Bn).call(this)){for(const u of f(this,vr))f(this,Dt).delete(u),_e(u,De),this.schedule(u);for(const u of f(this,Dt))_e(u,_t),this.schedule(u)}const t=f(this,Ge);Z(this,Ge,[]),this.apply();var r=xr=[],n=[],i=kn=[];for(const u of t)try{ae(this,ye,Wi).call(this,u,r,n)}catch(d){throw ko(u),d}if(X=null,i.length>0){var o=$n.ensure();for(const u of i)o.schedule(u)}if(xr=null,kn=null,ae(this,ye,Bn).call(this)||ae(this,ye,Ba).call(this)){ae(this,ye,Ji).call(this,n),ae(this,ye,Ji).call(this,r);for(const[u,d]of f(this,Et))_o(u,d)}else{f(this,$t).size===0&&Zt.delete(this),f(this,vr).clear(),f(this,Dt).clear();for(const u of f(this,zr))u(this);f(this,zr).clear(),bo(n),bo(r),(l=f(this,en))==null||l.resolve()}var s=X;if(f(this,Ge).length>0){const u=s??(s=this);f(u,Ge).push(...f(this,Ge).filter(d=>!f(u,Ge).includes(d)))}s!==null&&(Zt.add(s),ae(a=s,ye,Fn).call(a)),Zt.has(this)||ae(this,ye,Fa).call(this)},Wi=function(t,r,n){t.f^=Se;for(var i=t.first;i!==null;){var o=i.f,s=(o&(ct|Vt))!==0,l=s&&(o&Se)!==0,a=l||(o&Ye)!==0||f(this,Et).has(i);if(!a&&i.fn!==null){s?i.f^=Se:(o&_r)!==0?r.push(i):Rr(i)&&((o&Ot)!==0&&f(this,Dt).add(i),Er(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var d=i.next;if(d!==null){i=d;break}i=i.parent}}},Ji=function(t){for(var r=0;r<t.length;r+=1)po(t[r],f(this,vr),f(this,Dt))},Fa=function(){var u,d,h;for(const c of Zt){var t=c.id<this.id,r=[];for(const[v,[b,C]]of this.current){if(c.current.has(v)){var n=c.current.get(v)[0];if(t&&b!==n)c.current.set(v,[b,C]);else continue}r.push(v)}var i=[...c.current.keys()].filter(v=>!this.current.has(v));if(i.length===0)t&&c.discard();else if(r.length>0){c.activate();var o=new Set,s=new Map;for(var l of r)mo(l,i,o,s);if(f(c,Ge).length>0){c.apply();for(var a of f(c,Ge))ae(u=c,ye,Wi).call(u,a,[],[]);Z(c,Ge,[])}c.deactivate()}}for(const c of Zt)f(c,hr).has(this)&&(f(c,hr).delete(this),f(c,hr).size===0&&!ae(d=c,ye,Bn).call(d)&&(c.activate(),ae(h=c,ye,Fn).call(h)))};let Yt=$n;function m(e){var t=Vr;Vr=!0;try{for(var r;;){if(Ms(),X===null)return r;X.flush()}}finally{Vr=t}}function Ds(){try{bs()}catch(e){Ft(e,ui)}}let vt=null;function bo(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(nt|Ye))===0&&Rr(n)&&(vt=new Set,Er(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Vo(n),(vt==null?void 0:vt.size)>0)){Wt.clear();for(const i of vt){if((i.f&(nt|Ye))!==0)continue;const o=[i];let s=i.parent;for(;s!==null;)vt.has(s)&&(vt.delete(s),o.push(s)),s=s.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(nt|Ye))===0&&Er(a)}}vt.clear()}}vt=null}}function mo(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&Le)!==0?mo(i,t,r,n):(o&(ri|Ot))!==0&&(o&De)===0&&wo(i,t,n)&&(_e(i,De),di(i))}}function wo(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(wr.call(t,i))return!0;if((i.f&Le)!==0&&wo(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function di(e){X.schedule(e)}function _o(e,t){if(!((e.f&ct)!==0&&(e.f&Se)!==0)){(e.f&De)!==0?t.d.push(e):(e.f&_t)!==0&&t.m.push(e),_e(e,Se);for(var r=e.first;r!==null;)_o(r,t),r=r.next}}function ko(e){_e(e,Se);for(var t=e.first;t!==null;)ko(t),t=t.next}function As(e){let t=0,r=or(0),n;return()=>{wi()&&(g(r),_i(()=>(t===0&&(n=Fr(()=>e(()=>Pr(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Pr(r))})})))}}var Us=jt|rr;function Hs(e,t,r,n){new qs(e,t,r,n)}class qs{constructor(t,r,n,i){F(this,ge);be(this,"parent");be(this,"is_pending",!1);be(this,"transform_error");F(this,Xe);F(this,tn,G?j:null);F(this,Mt);F(this,pr);F(this,je);F(this,It,null);F(this,Qe,null);F(this,bt,null);F(this,At,null);F(this,gr,0);F(this,er,0);F(this,$r,!1);F(this,rn,new Set);F(this,nn,new Set);F(this,Ut,null);F(this,Dn,As(()=>(Z(this,Ut,or(f(this,gr))),()=>{Z(this,Ut,null)})));var o;Z(this,Xe,t),Z(this,Mt,r),Z(this,pr,s=>{var l=Q;l.b=this,l.f|=Qn,n(s)}),this.parent=Q.b,this.transform_error=i??((o=this.parent)==null?void 0:o.transform_error)??(s=>s),Z(this,je,jr(()=>{if(G){const s=f(this,tn);Hr();const l=s.data===Jn;if(s.data.startsWith(eo)){const u=JSON.parse(s.data.slice(eo.length));ae(this,ge,Ya).call(this,u)}else l?ae(this,ge,Wa).call(this):ae(this,ge,Za).call(this)}else ae(this,ge,Ki).call(this)},Us)),G&&Z(this,Xe,j)}defer_effect(t){po(t,f(this,rn),f(this,nn))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!f(this,Mt).pending}update_pending_count(t,r){ae(this,ge,Gi).call(this,t,r),Z(this,gr,f(this,gr)+t),!(!f(this,Ut)||f(this,$r))&&(Z(this,$r,!0),yt(()=>{Z(this,$r,!1),f(this,Ut)&&Cr(f(this,Ut),f(this,gr))}))}get_effect_pending(){return f(this,Dn).call(this),g(f(this,Ut))}error(t){var r=f(this,Mt).onerror;let n=f(this,Mt).failed;if(!r&&!n)throw t;f(this,It)&&(ze(f(this,It)),Z(this,It,null)),f(this,Qe)&&(ze(f(this,Qe)),Z(this,Qe,null)),f(this,bt)&&(ze(f(this,bt)),Z(this,bt,null)),G&&(Ue(f(this,tn)),dt(),Ue(qr()));var i=!1,o=!1;const s=()=>{if(i){Ss();return}i=!0,o&&xs(),f(this,bt)!==null&&sr(f(this,bt),()=>{Z(this,bt,null)}),ae(this,ge,Yn).call(this,()=>{ae(this,ge,Ki).call(this)})},l=a=>{try{o=!0,r==null||r(a,s),o=!1}catch(u){Ft(u,f(this,je)&&f(this,je).parent)}n&&Z(this,bt,ae(this,ge,Yn).call(this,()=>{try{return Ve(()=>{var u=Q;u.b=this,u.f|=Qn,n(f(this,Xe),()=>a,()=>s)})}catch(u){return Ft(u,f(this,je).parent),null}}))};yt(()=>{var a;try{a=this.transform_error(t)}catch(u){Ft(u,f(this,je)&&f(this,je).parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,u=>Ft(u,f(this,je)&&f(this,je).parent)):l(a)})}}Xe=new WeakMap,tn=new WeakMap,Mt=new WeakMap,pr=new WeakMap,je=new WeakMap,It=new WeakMap,Qe=new WeakMap,bt=new WeakMap,At=new WeakMap,gr=new WeakMap,er=new WeakMap,$r=new WeakMap,rn=new WeakMap,nn=new WeakMap,Ut=new WeakMap,Dn=new WeakMap,ge=new WeakSet,Za=function(){try{Z(this,It,Ve(()=>f(this,pr).call(this,f(this,Xe))))}catch(t){this.error(t)}},Ya=function(t){const r=f(this,Mt).failed;r&&Z(this,bt,Ve(()=>{r(f(this,Xe),()=>t,()=>()=>{})}))},Wa=function(){const t=f(this,Mt).pending;t&&(this.is_pending=!0,Z(this,Qe,Ve(()=>t(f(this,Xe)))),yt(()=>{var r=Z(this,At,document.createDocumentFragment()),n=it();r.append(n),Z(this,It,ae(this,ge,Yn).call(this,()=>Ve(()=>f(this,pr).call(this,n)))),f(this,er)===0&&(f(this,Xe).before(r),Z(this,At,null),sr(f(this,Qe),()=>{Z(this,Qe,null)}),ae(this,ge,Zn).call(this,X))}))},Ki=function(){try{if(this.is_pending=this.has_pending_snippet(),Z(this,er,0),Z(this,gr,0),Z(this,It,Ve(()=>{f(this,pr).call(this,f(this,Xe))})),f(this,er)>0){var t=Z(this,At,document.createDocumentFragment());xi(f(this,It),t);const r=f(this,Mt).pending;Z(this,Qe,Ve(()=>r(f(this,Xe))))}else ae(this,ge,Zn).call(this,X)}catch(r){this.error(r)}},Zn=function(t){this.is_pending=!1,t.transfer_effects(f(this,rn),f(this,nn))},Yn=function(t){var r=Q,n=J,i=Oe;Ct(f(this,je)),at(f(this,je)),kr(f(this,je).ctx);try{return Yt.ensure(),t()}catch(o){return vo(o),null}finally{Ct(r),at(n),kr(i)}},Gi=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&ae(n=this.parent,ge,Gi).call(n,t,r);return}Z(this,er,f(this,er)+t),f(this,er)===0&&(ae(this,ge,Zn).call(this,r),f(this,Qe)&&sr(f(this,Qe),()=>{Z(this,Qe,null)}),f(this,At)&&(f(this,Xe).before(f(this,At)),Z(this,At,null)))};function yo(e,t,r,n){const i=xn;var o=e.filter(c=>!c.settled);if(r.length===0&&o.length===0){n(t.map(i));return}var s=Q,l=Os(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(c=>c.promise)):null;function u(c){l();try{n(c)}catch(v){(s.f&nt)===0&&Ft(v,s)}yn()}if(r.length===0){a.then(()=>u(t.map(i)));return}var d=xo();function h(){Promise.all(r.map(c=>Vs(c))).then(c=>u([...t.map(i),...c])).catch(c=>Ft(c,s)).finally(()=>d())}a?a.then(()=>{l(),h(),yn()}):h()}function Os(){var e=Q,t=J,r=Oe,n=X;return function(o=!0){Ct(e),at(t),kr(r),o&&(e.f&nt)===0&&(n==null||n.activate(),n==null||n.apply())}}function yn(e=!0){Ct(null),at(null),kr(null),e&&(X==null||X.deactivate())}function xo(){var e=Q,t=e.b,r=X,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function xn(e){var t=Le|De,r=J!==null&&(J.f&Le)!==0?J:null;return Q!==null&&(Q.f|=rr),{ctx:Oe,deps:null,effects:null,equals:so,f:t,fn:e,reactions:null,rv:0,v:Ie,wv:0,parent:r??Q,ac:null}}function Vs(e,t,r){let n=Q;n===null&&fs();var i=void 0,o=or(Ie),s=!J,l=new Map;return Xs(()=>{var v;var a=Q,u=oo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(yn)}catch(b){u.reject(b),yn()}var d=X;if(s){if((a.f&Pt)!==0)var h=xo();if(n.b.is_rendered())(v=l.get(d))==null||v.reject(Nt),l.delete(d);else{for(const b of l.values())b.reject(Nt);l.clear()}l.set(d,u)}const c=(b,C=void 0)=>{if(h){var p=C===Nt;h(p)}if(!(C===Nt||(a.f&nt)!==0)){if(d.activate(),C)o.f|=Rt,Cr(o,C);else{(o.f&Rt)!==0&&(o.f^=Rt),Cr(o,b);for(const[_,I]of l){if(l.delete(_),_===d)break;I.reject(Nt)}}d.deactivate()}};u.promise.then(c,b=>c(null,b||"unknown"))}),Cn(()=>{for(const a of l.values())a.reject(Nt)}),new Promise(a=>{function u(d){function h(){d===i?a(o):u(i)}d.then(h,h)}u(i)})}function Y(e){const t=xn(e);return Bo(t),t}function Co(e){const t=xn(e);return t.equals=uo,t}function Ps(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ze(t[r])}}function js(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return(t.f&nt)===0?t:null;t=t.parent}return null}function fi(e){var t,r=Q;Ct(js(e));try{e.f&=~nr,Ps(e),t=Jo(e)}finally{Ct(r)}return t}function So(e){var t=e.v,r=fi(e);if(!e.equals(r)&&(e.wv=Yo(),(!(X!=null&&X.is_fork)||e.deps===null)&&(e.v=r,X==null||X.capture(e,t,!0),e.deps===null))){_e(e,Se);return}Kt||(Te!==null?(wi()||X!=null&&X.is_fork)&&Te.set(e,r):oi(e))}function Rs(e){var t,r;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),(r=n.ac)==null||r.abort(Nt),n.teardown=Ze,n.ac=null,Br(n,0),ki(n))}function Eo(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Er(t)}let vi=new Set;const Wt=new Map;let Mo=!1;function or(e,t){var r={f:0,v:e,reactions:null,equals:so,rv:0,wv:0};return r}function se(e,t){const r=or(e);return Bo(r),r}function hi(e,t=!1,r=!0){const n=or(e);return t||(n.equals=uo),n}function W(e,t,r=!1){J!==null&&(!pt||(J.f&ao)!==0)&&co()&&(J.f&(Le|Ot|ri|ao))!==0&&(st===null||!wr.call(st,e))&&ys();let n=r?Jt(t):t;return Cr(e,n,kn)}function Cr(e,t,r=null){if(!e.equals(t)){var n=e.v;Kt?Wt.set(e,t):Wt.set(e,n),e.v=t;var i=Yt.ensure();if(i.capture(e,n),(e.f&Le)!==0){const o=e;(e.f&De)!==0&&fi(o),Te===null&&oi(o)}e.wv=Yo(),Io(e,De,r),Q!==null&&(Q.f&Se)!==0&&(Q.f&(ct|Vt))===0&&(lt===null?tl([e]):lt.push(e)),!i.is_fork&&vi.size>0&&!Mo&&Bs()}return t}function Bs(){Mo=!1;for(const e of vi)(e.f&Se)!==0&&_e(e,_t),Rr(e)&&Er(e);vi.clear()}function Pr(e){W(e,e.v+1)}function Io(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,o=0;o<i;o++){var s=n[o],l=s.f,a=(l&De)===0;if(a&&_e(s,t),(l&Le)!==0){var u=s;Te==null||Te.delete(u),(l&nr)===0&&(l&rt&&(s.f|=nr),Io(u,_t,r))}else if(a){var d=s;(l&Ot)!==0&&vt!==null&&vt.add(d),r!==null?r.push(d):di(d)}}}function Jt(e){if(typeof e!="object"||e===null||Bt in e)return e;const t=ro(e);if(t!==as&&t!==ss)return e;var r=new Map,n=Gn(e),i=se(0),o=ur,s=l=>{if(ur===o)return l();var a=J,u=ur;at(null),Zo(o);var d=l();return at(a),Zo(u),d};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_s();var d=r.get(a);return d===void 0?s(()=>{var h=se(u.value);return r.set(a,h),h}):W(d,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const d=s(()=>se(Ie));r.set(a,d),Pr(i)}}else W(u,Ie),Pr(i);return!0},get(l,a,u){var v;if(a===Bt)return e;var d=r.get(a),h=a in l;if(d===void 0&&(!h||(v=zt(l,a))!=null&&v.writable)&&(d=s(()=>{var b=Jt(h?l[a]:Ie),C=se(b);return C}),r.set(a,d)),d!==void 0){var c=g(d);return c===Ie?void 0:c}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var d=r.get(a);d&&(u.value=g(d))}else if(u===void 0){var h=r.get(a),c=h==null?void 0:h.v;if(h!==void 0&&c!==Ie)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,a){var c;if(a===Bt)return!0;var u=r.get(a),d=u!==void 0&&u.v!==Ie||Reflect.has(l,a);if(u!==void 0||Q!==null&&(!d||(c=zt(l,a))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=d?Jt(l[a]):Ie,b=se(v);return b}),r.set(a,u));var h=g(u);if(h===Ie)return!1}return d},set(l,a,u,d){var E;var h=r.get(a),c=a in l;if(n&&a==="length")for(var v=u;v<h.v;v+=1){var b=r.get(v+"");b!==void 0?W(b,Ie):v in l&&(b=s(()=>se(Ie)),r.set(v+"",b))}if(h===void 0)(!c||(E=zt(l,a))!=null&&E.writable)&&(h=s(()=>se(void 0)),W(h,Jt(u)),r.set(a,h));else{c=h.v!==Ie;var C=s(()=>Jt(u));W(h,C)}var p=Reflect.getOwnPropertyDescriptor(l,a);if(p!=null&&p.set&&p.set.call(d,u),!c){if(n&&typeof a=="string"){var _=r.get("length"),I=Number(a);Number.isInteger(I)&&I>=_.v&&W(_,I+1)}Pr(i)}return!0},ownKeys(l){g(i);var a=Reflect.ownKeys(l).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Ie});for(var[u,d]of r)d.v!==Ie&&!(u in l)&&a.push(u);return a},setPrototypeOf(){ks()}})}function Lo(e){try{if(e!==null&&typeof e=="object"&&Bt in e)return e[Bt]}catch{}return e}function Fs(e,t){return Object.is(Lo(e),Lo(t))}var zo,No,To,$o;function pi(){if(zo===void 0){zo=window,No=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;To=zt(t,"firstChild").get,$o=zt(t,"nextSibling").get,no(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),no(r)&&(r.__t=void 0)}}function it(e=""){return document.createTextNode(e)}function ot(e){return To.call(e)}function xt(e){return $o.call(e)}function z(e,t){if(!G)return ot(e);var r=ot(j);if(r===null)r=j.appendChild(it());else if(t&&r.nodeType!==mn){var n=it();return r==null||r.before(n),Ue(n),n}return t&&bi(r),Ue(r),r}function ar(e,t=!1){if(!G){var r=ot(e);return r instanceof Comment&&r.data===""?xt(r):r}if(t){if((j==null?void 0:j.nodeType)!==mn){var n=it();return j==null||j.before(n),Ue(n),n}bi(j)}return j}function Ee(e,t=1,r=!1){let n=G?j:e;for(var i;t--;)i=n,n=xt(n);if(!G)return n;if(r){if((n==null?void 0:n.nodeType)!==mn){var o=it();return n===null?i==null||i.after(o):n.before(o),Ue(o),o}bi(n)}return Ue(n),n}function Do(e){e.textContent=""}function Ao(){return!1}function gi(e,t,r){return document.createElementNS(to,e,void 0)}function bi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===mn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Zs(e,t){if(t){const r=document.body;e.autofocus=!0,yt(()=>{document.activeElement===r&&e.focus()})}}let Uo=!1;function Ys(){Uo||(Uo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function mi(e){var t=J,r=Q;at(null),Ct(null);try{return e()}finally{at(t),Ct(r)}}function Ws(e){Q===null&&(J===null&&gs(),ps()),Kt&&hs()}function Js(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ht(e,t){var r=Q;r!==null&&(r.f&Ye)!==0&&(e|=Ye);var n={ctx:Oe,deps:null,nodes:null,f:e|De|rt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&_r)!==0)xr!==null?xr.push(n):Yt.ensure().schedule(n);else if(t!==null){try{Er(n)}catch(s){throw ze(n),s}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&rr)===0&&(i=i.first,(e&Ot)!==0&&(e&jt)!==0&&i!==null&&(i.f|=jt))}if(i!==null&&(i.parent=r,r!==null&&Js(i,r),J!==null&&(J.f&Le)!==0&&(e&Vt)===0)){var o=J;(o.effects??(o.effects=[])).push(i)}return n}function wi(){return J!==null&&!pt}function Cn(e){const t=ht(gn,null);return _e(t,Se),t.teardown=e,t}function Sr(e){Ws();var t=Q.f,r=!J&&(t&ct)!==0&&(t&Pt)===0;if(r){var n=Oe;(n.e??(n.e=[])).push(e)}else return Ho(e)}function Ho(e){return ht(_r|us,e)}function Ks(e){Yt.ensure();const t=ht(Vt|rr,e);return()=>{ze(t)}}function Gs(e){Yt.ensure();const t=ht(Vt|rr,e);return(r={})=>new Promise(n=>{r.outro?sr(t,()=>{ze(t),n(void 0)}):(ze(t),n(void 0))})}function Sn(e){return ht(_r,e)}function Xs(e){return ht(ri|rr,e)}function _i(e,t=0){return ht(gn|t,e)}function $e(e,t=[],r=[],n=[]){yo(n,t,r,i=>{ht(gn,()=>e(...i.map(g)))})}function jr(e,t=0){var r=ht(Ot|t,e);return r}function qo(e,t=0){var r=ht(Xn|t,e);return r}function Ve(e){return ht(ct|rr,e)}function Oo(e){var t=e.teardown;if(t!==null){const r=Kt,n=J;Ro(!0),at(null);try{t.call(null)}finally{Ro(r),at(n)}}}function ki(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&mi(()=>{i.abort(Nt)});var n=r.next;(r.f&Vt)!==0?r.parent=null:ze(r,t),r=n}}function Qs(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ct)===0&&ze(t),t=r}}function ze(e,t=!0){var r=!1;(t||(e.f&ls)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(el(e.nodes.start,e.nodes.end),r=!0),_e(e,ei),ki(e,t&&!r),Br(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)o.stop();Oo(e),e.f^=ei,e.f|=nt;var i=e.parent;i!==null&&i.first!==null&&Vo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function el(e,t){for(;e!==null;){var r=e===t?null:xt(e);e.remove(),e=r}}function Vo(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 sr(e,t,r=!0){var n=[];Po(e,n,!0);var i=()=>{r&&ze(e),t&&t()},o=n.length;if(o>0){var s=()=>--o||i();for(var l of n)l.out(s)}else i()}function Po(e,t,r){if((e.f&Ye)===0){e.f^=Ye;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var o=i.next,s=(i.f&jt)!==0||(i.f&ct)!==0&&(e.f&Ot)!==0;Po(i,t,s?r:!1),i=o}}}function yi(e){jo(e,!0)}function jo(e,t){if((e.f&Ye)!==0){e.f^=Ye,(e.f&Se)===0&&(_e(e,De),Yt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&jt)!==0||(r.f&ct)!==0;jo(r,i?t:!1),r=n}var o=e.nodes&&e.nodes.t;if(o!==null)for(const s of o)(s.is_global||t)&&s.in()}}function xi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:xt(r);t.append(r),r=i}}let En=!1,Kt=!1;function Ro(e){Kt=e}let J=null,pt=!1;function at(e){J=e}let Q=null;function Ct(e){Q=e}let st=null;function Bo(e){J!==null&&(st===null?st=[e]:st.push(e))}let Pe=null,Je=0,lt=null;function tl(e){lt=e}let Fo=1,lr=0,ur=lr;function Zo(e){ur=e}function Yo(){return++Fo}function Rr(e){var t=e.f;if((t&De)!==0)return!0;if(t&Le&&(e.f&=~nr),(t&_t)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(Rr(o)&&So(o),o.wv>e.wv)return!0}(t&rt)!==0&&Te===null&&_e(e,Se)}return!1}function Wo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(st!==null&&wr.call(st,e)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&Le)!==0?Wo(o,t,!1):t===o&&(r?_e(o,De):(o.f&Se)!==0&&_e(o,_t),di(o))}}function Jo(e){var C;var t=Pe,r=Je,n=lt,i=J,o=st,s=Oe,l=pt,a=ur,u=e.f;Pe=null,Je=0,lt=null,J=(u&(ct|Vt))===0?e:null,st=null,kr(e.ctx),pt=!1,ur=++lr,e.ac!==null&&(mi(()=>{e.ac.abort(Nt)}),e.ac=null);try{e.f|=ti;var d=e.fn,h=d();e.f|=Pt;var c=e.deps,v=X==null?void 0:X.is_fork;if(Pe!==null){var b;if(v||Br(e,Je),c!==null&&Je>0)for(c.length=Je+Pe.length,b=0;b<Pe.length;b++)c[Je+b]=Pe[b];else e.deps=c=Pe;if(wi()&&(e.f&rt)!==0)for(b=Je;b<c.length;b++)((C=c[b]).reactions??(C.reactions=[])).push(e)}else!v&&c!==null&&Je<c.length&&(Br(e,Je),c.length=Je);if(co()&&lt!==null&&!pt&&c!==null&&(e.f&(Le|_t|De))===0)for(b=0;b<lt.length;b++)Wo(lt[b],e);if(i!==null&&i!==e){if(lr++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=lr;if(t!==null)for(const p of t)p.rv=lr;lt!==null&&(n===null?n=lt:n.push(...lt))}return(e.f&Rt)!==0&&(e.f^=Rt),h}catch(p){return vo(p)}finally{e.f^=ti,Pe=t,Je=r,lt=n,J=i,st=o,kr(s),pt=l,ur=a}}function rl(e,t){let r=t.reactions;if(r!==null){var n=is.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&Le)!==0&&(Pe===null||!wr.call(Pe,t))){var o=t;(o.f&rt)!==0&&(o.f^=rt,o.f&=~nr),oi(o),Rs(o),Br(o,0)}}function Br(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)rl(e,r[n])}function Er(e){var t=e.f;if((t&nt)===0){_e(e,Se);var r=Q,n=En;Q=e,En=!0;try{(t&(Ot|Xn))!==0?Qs(e):ki(e),Oo(e);var i=Jo(e);e.teardown=typeof i=="function"?i:null,e.wv=Fo;var o;ns&&Es&&(e.f&De)!==0&&e.deps}finally{En=n,Q=r}}}function g(e){var t=e.f,r=(t&Le)!==0;if(J!==null&&!pt){var n=Q!==null&&(Q.f&nt)!==0;if(!n&&(st===null||!wr.call(st,e))){var i=J.deps;if((J.f&ti)!==0)e.rv<lr&&(e.rv=lr,Pe===null&&i!==null&&i[Je]===e?Je++:Pe===null?Pe=[e]:Pe.push(e));else{(J.deps??(J.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[J]:wr.call(o,J)||o.push(J)}}}if(Kt&&Wt.has(e))return Wt.get(e);if(r){var s=e;if(Kt){var l=s.v;return((s.f&Se)===0&&s.reactions!==null||Go(s))&&(l=fi(s)),Wt.set(s,l),l}var a=(s.f&rt)===0&&!pt&&J!==null&&(En||(J.f&rt)!==0),u=(s.f&Pt)===0;Rr(s)&&(a&&(s.f|=rt),So(s)),a&&!u&&(Eo(s),Ko(s))}if(Te!=null&&Te.has(e))return Te.get(e);if((e.f&Rt)!==0)throw e.v;return e.v}function Ko(e){if(e.f|=rt,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&Le)!==0&&(t.f&rt)===0&&(Eo(t),Ko(t))}function Go(e){if(e.v===Ie)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Wt.has(t)||(t.f&Le)!==0&&Go(t))return!0;return!1}function Fr(e){var t=pt;try{return pt=!0,e()}finally{pt=t}}const cr=Symbol("events"),Xo=new Set,Ci=new Set;function Qo(e,t,r,n={}){function i(o){if(n.capture||Si.call(t,o),!o.cancelBubble)return mi(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?yt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Ke(e,t,r,n,i){var o={capture:n,passive:i},s=Qo(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Cn(()=>{t.removeEventListener(e,s,o)})}function ke(e,t,r){(t[cr]??(t[cr]={}))[e]=r}function Mr(e){for(var t=0;t<e.length;t++)Xo.add(e[t]);for(var r of Ci)r(e)}let ea=null;function Si(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;ea=e;var s=0,l=ea===e&&e[cr];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[cr]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(s=a)}if(o=i[s]||e.target,o!==t){Dr(e,"currentTarget",{configurable:!0,get(){return o||r}});var d=J,h=Q;at(null),Ct(null);try{for(var c,v=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var C=(_=o[cr])==null?void 0:_[n];C!=null&&(!o.disabled||e.target===o)&&C.call(o,e)}catch(I){c?v.push(I):c=I}if(e.cancelBubble||b===t||b===null)break;o=b}if(c){for(let I of v)queueMicrotask(()=>{throw I});throw c}}finally{e[cr]=t,delete e.currentTarget,at(d),Ct(h)}}}const Ei=((Ua=globalThis==null?void 0:globalThis.window)==null?void 0:Ua.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function nl(e){return(Ei==null?void 0:Ei.createHTML(e))??e}function ta(e){var t=gi("template");return t.innerHTML=nl(e.replaceAll("<!>","<!---->")),t.content}function Tt(e,t){var r=Q;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function le(e,t){var r=(t&Qi)!==0,n=(t&ts)!==0,i,o=!e.startsWith("<!>");return()=>{if(G)return Tt(j,null),j;i===void 0&&(i=ta(o?e:"<!>"+e),r||(i=ot(i)));var s=n||No?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=ot(s),a=s.lastChild;Tt(l,a)}else Tt(s,s);return s}}function il(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Qi)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(G)return Tt(j,null),j;if(!s){var l=ta(o),a=ot(l);if(i)for(s=document.createDocumentFragment();ot(a);)s.appendChild(ot(a));else s=ot(a)}var u=s.cloneNode(!0);if(i){var d=ot(u),h=u.lastChild;Tt(d,h)}else Tt(u,u);return u}}function pe(e,t){return il(e,t,"svg")}function Mn(){if(G)return Tt(j,null),j;var e=document.createDocumentFragment(),t=document.createComment(""),r=it();return e.append(t,r),Tt(t,r),e}function D(e,t){if(G){var r=Q;((r.f&Pt)===0||r.nodes.end===null)&&(r.nodes.end=j),Hr();return}e!==null&&e.before(t)}function ol(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const al=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function sl(e){return al.includes(e)}const ll={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 ul(e){return e=e.toLowerCase(),ll[e]??e}const cl=["touchstart","touchmove"];function dl(e){return cl.includes(e)}function Zr(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 ra(e,t){return na(e,t)}function fl(e,t){pi(),t.intro=t.intro??!1;const r=t.target,n=G,i=j;try{for(var o=ot(r);o&&(o.nodeType!==Ur||o.data!==Wn);)o=xt(o);if(!o)throw mr;We(!0),Ue(o);const s=na(e,{...t,anchor:o});return We(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==mr&&console.warn("Failed to hydrate: ",s),t.recover===!1&&ms(),pi(),Do(r),We(!1),ra(e,t)}finally{We(n),Ue(i)}}const In=new Map;function na(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0,transformError:l}){pi();var a=void 0,u=Gs(()=>{var d=r??t.appendChild(it());Hs(d,{pending:()=>{}},v=>{ve({});var b=Oe;if(o&&(b.c=o),i&&(n.$$events=i),G&&Tt(v,null),a=e(v,n)||{},G&&(Q.nodes.end=j,j===null||j.nodeType!==Ur||j.data!==Kn))throw wn(),mr;he()},l);var h=new Set,c=v=>{for(var b=0;b<v.length;b++){var C=v[b];if(!h.has(C)){h.add(C);var p=dl(C);for(const E of[t,document]){var _=In.get(E);_===void 0&&(_=new Map,In.set(E,_));var I=_.get(C);I===void 0?(E.addEventListener(C,Si,{passive:p}),_.set(C,1)):_.set(C,I+1)}}}};return c(hn(Xo)),Ci.add(c),()=>{var p;for(var v of h)for(const _ of[t,document]){var b=In.get(_),C=b.get(v);--C==0?(_.removeEventListener(v,Si),b.delete(v),b.size===0&&In.delete(_)):b.set(v,C)}Ci.delete(c),d!==r&&((p=d.parentNode)==null||p.removeChild(d))}});return Mi.set(a,u),a}let Mi=new WeakMap;function vl(e,t){const r=Mi.get(e);return r?(Mi.delete(e),r(t)):Promise.resolve()}class Ii{constructor(t,r=!0){be(this,"anchor");F(this,mt,new Map);F(this,Lt,new Map);F(this,et,new Map);F(this,br,new Set);F(this,on,!0);F(this,an,t=>{if(f(this,mt).has(t)){var r=f(this,mt).get(t),n=f(this,Lt).get(r);if(n)yi(n),f(this,br).delete(r);else{var i=f(this,et).get(r);i&&(f(this,Lt).set(r,i.effect),f(this,et).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,s]of f(this,mt)){if(f(this,mt).delete(o),o===t)break;const l=f(this,et).get(s);l&&(ze(l.effect),f(this,et).delete(s))}for(const[o,s]of f(this,Lt)){if(o===r||f(this,br).has(o))continue;const l=()=>{if(Array.from(f(this,mt).values()).includes(o)){var u=document.createDocumentFragment();xi(s,u),u.append(it()),f(this,et).set(o,{effect:s,fragment:u})}else ze(s);f(this,br).delete(o),f(this,Lt).delete(o)};f(this,on)||!n?(f(this,br).add(o),sr(s,l,!1)):l()}}});F(this,An,t=>{f(this,mt).delete(t);const r=Array.from(f(this,mt).values());for(const[n,i]of f(this,et))r.includes(n)||(ze(i.effect),f(this,et).delete(n))});this.anchor=t,Z(this,on,r)}ensure(t,r){var n=X,i=Ao();if(r&&!f(this,Lt).has(t)&&!f(this,et).has(t))if(i){var o=document.createDocumentFragment(),s=it();o.append(s),f(this,et).set(t,{effect:Ve(()=>r(s)),fragment:o})}else f(this,Lt).set(t,Ve(()=>r(this.anchor)));if(f(this,mt).set(n,t),i){for(const[l,a]of f(this,Lt))l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of f(this,et))l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(f(this,an)),n.ondiscard(f(this,An))}else G&&(this.anchor=j),f(this,an).call(this,n)}}mt=new WeakMap,Lt=new WeakMap,et=new WeakMap,br=new WeakMap,on=new WeakMap,an=new WeakMap,An=new WeakMap;function Ln(e,t,...r){var n=new Ii(e);jr(()=>{const i=t()??null;n.ensure(i,i&&(o=>i(o,...r)))},jt)}function hl(e){Oe===null&&ds(),Sr(()=>{const t=Fr(e);if(typeof t=="function")return t})}function ue(e,t,r=!1){var n;G&&(n=j,Hr());var i=new Ii(e),o=r?jt:0;function s(l,a){if(G){var u=ii(n);if(l!==parseInt(u.substring(1))){var d=qr();Ue(d),i.anchor=d,We(!1),i.ensure(l,a),We(!0);return}}i.ensure(l,a)}jr(()=>{var l=!1;t((a,u=0)=>{l=!0,s(u,a)}),l||s(-1,null)},o)}function pl(e,t){return t}function gl(e,t,r){for(var n=[],i=t.length,o,s=t.length,l=0;l<i;l++){let h=t[l];sr(h,()=>{if(o){if(o.pending.delete(h),o.done.add(h),o.pending.size===0){var c=e.outrogroups;Li(e,hn(o.done)),c.delete(o),c.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var a=n.length===0&&r!==null;if(a){var u=r,d=u.parentNode;Do(d),d.append(u),e.items.clear()}Li(e,t,!a)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Li(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n!=null&&n.has(o)){o.f|=kt;const s=document.createDocumentFragment();xi(o,s)}else ze(t[i],r)}}var ia;function oa(e,t,r,n,i,o=null){var s=e,l=new Map,a=(t&Xi)!==0;if(a){var u=e;s=G?Ue(ot(u)):u.appendChild(it())}G&&Hr();var d=null,h=Co(()=>{var E=r();return Gn(E)?E:E==null?[]:hn(E)}),c,v=new Map,b=!0;function C(E){(I.effect.f&nt)===0&&(I.pending.delete(E),I.fallback=d,bl(I,c,s,t,n),d!==null&&(c.length===0?(d.f&kt)===0?yi(d):(d.f^=kt,Wr(d,null,s)):sr(d,()=>{d=null})))}function p(E){I.pending.delete(E)}var _=jr(()=>{c=g(h);var E=c.length;let x=!1;if(G){var U=ii(s)===Jn;U!==(E===0)&&(s=qr(),Ue(s),We(!1),x=!0)}for(var y=new Set,N=X,H=Ao(),R=0;R<E;R+=1){G&&j.nodeType===Ur&&j.data===Kn&&(s=j,x=!0,We(!1));var S=c[R],q=n(S,R),K=b?null:l.get(q);K?(K.v&&Cr(K.v,S),K.i&&Cr(K.i,R),H&&N.unskip_effect(K.e)):(K=ml(l,b?s:ia??(ia=it()),S,q,R,i,t,r),b||(K.e.f|=kt),l.set(q,K)),y.add(q)}if(E===0&&o&&!d&&(b?d=Ve(()=>o(s)):(d=Ve(()=>o(ia??(ia=it()))),d.f|=kt)),E>y.size&&vs(),G&&E>0&&Ue(qr()),!b)if(v.set(N,y),H){for(const[ce,we]of l)y.has(ce)||N.skip_effect(we.e);N.oncommit(C),N.ondiscard(p)}else C(N);x&&We(!0),g(h)}),I={effect:_,items:l,pending:v,outrogroups:null,fallback:d};b=!1,G&&(s=j)}function Yr(e){for(;e!==null&&(e.f&ct)===0;)e=e.next;return e}function bl(e,t,r,n,i){var S,q,K,ce,we,$,ee,L,T;var o=(n&Ja)!==0,s=t.length,l=e.items,a=Yr(e.effect.first),u,d=null,h,c=[],v=[],b,C,p,_;if(o)for(_=0;_<s;_+=1)b=t[_],C=i(b,_),p=l.get(C).e,(p.f&kt)===0&&((q=(S=p.nodes)==null?void 0:S.a)==null||q.measure(),(h??(h=new Set)).add(p));for(_=0;_<s;_+=1){if(b=t[_],C=i(b,_),p=l.get(C).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(p),O.done.delete(p);if((p.f&Ye)!==0&&(yi(p),o&&((ce=(K=p.nodes)==null?void 0:K.a)==null||ce.unfix(),(h??(h=new Set)).delete(p))),(p.f&kt)!==0)if(p.f^=kt,p===a)Wr(p,null,r);else{var I=d?d.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Gt(e,d,p),Gt(e,p,I),Wr(p,I,r),d=p,c=[],v=[],a=Yr(d.next);continue}if(p!==a){if(u!==void 0&&u.has(p)){if(c.length<v.length){var E=v[0],x;d=E.prev;var U=c[0],y=c[c.length-1];for(x=0;x<c.length;x+=1)Wr(c[x],E,r);for(x=0;x<v.length;x+=1)u.delete(v[x]);Gt(e,U.prev,y.next),Gt(e,d,U),Gt(e,y,E),a=E,d=y,_-=1,c=[],v=[]}else u.delete(p),Wr(p,a,r),Gt(e,p.prev,p.next),Gt(e,p,d===null?e.effect.first:d.next),Gt(e,d,p),d=p;continue}for(c=[],v=[];a!==null&&a!==p;)(u??(u=new Set)).add(a),v.push(a),a=Yr(a.next);if(a===null)continue}(p.f&kt)===0&&c.push(p),d=p,a=Yr(p.next)}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(Li(e,hn(O.done)),(we=e.outrogroups)==null||we.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||u!==void 0){var N=[];if(u!==void 0)for(p of u)(p.f&Ye)===0&&N.push(p);for(;a!==null;)(a.f&Ye)===0&&a!==e.fallback&&N.push(a),a=Yr(a.next);var H=N.length;if(H>0){var R=(n&Xi)!==0&&s===0?r:null;if(o){for(_=0;_<H;_+=1)(ee=($=N[_].nodes)==null?void 0:$.a)==null||ee.measure();for(_=0;_<H;_+=1)(T=(L=N[_].nodes)==null?void 0:L.a)==null||T.fix()}gl(e,N,R)}}o&&yt(()=>{var O,B;if(h!==void 0)for(p of h)(B=(O=p.nodes)==null?void 0:O.a)==null||B.apply()})}function ml(e,t,r,n,i,o,s,l){var a=(s&Ce)!==0?(s&Ka)===0?hi(r,!1,!1):or(r):null,u=(s&vn)!==0?or(i):null;return{v:a,i:u,e:Ve(()=>(o(t,a??r,u??i,l),()=>{e.delete(n)}))}}function Wr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,o=t&&(t.f&kt)===0?t.nodes.start:r;n!==null;){var s=xt(n);if(o.before(n),n===i)return;n=s}}function Gt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function wl(e,t,r){var n;G&&(n=j,Hr());var i=new Ii(e);jr(()=>{var o=t()??null;if(G){var s=ii(n),l=s===Wn,a=o!==null;if(l!==a){var u=qr();Ue(u),i.anchor=u,We(!1),i.ensure(o,o&&(d=>r(d,o))),We(!0);return}}i.ensure(o,o&&(d=>r(d,o)))},jt)}function Xt(e,t){Sn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=gi("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function _l(e,t){var r=void 0,n;qo(()=>{r!==(r=t())&&(n&&(ze(n),n=null),r&&(n=Ve(()=>{Sn(()=>r(e))})))})}function aa(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=aa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kl(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aa(e))&&(n&&(n+=" "),n+=t);return n}function yl(e){return typeof e=="object"?kl(e):e??""}const sa=[...`
3
+ \r\f \v\uFEFF`];function xl(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(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 l=s+o;(s===0||sa.includes(n[s-1]))&&(l===n.length||sa.includes(n[l]))?n=(s===0?"":n.substring(0,s))+n.substring(l+1):s=l}}return n===""?null:n}function la(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function zi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Cl(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,l=!1,a=[];n&&a.push(...Object.keys(n).map(zi)),i&&a.push(...Object.keys(i).map(zi));var u=0,d=-1;const C=e.length;for(var h=0;h<C;h++){var c=e[h];if(l?c==="/"&&e[h-1]==="*"&&(l=!1):o?o===c&&(o=!1):c==="/"&&e[h+1]==="*"?l=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!l&&o===!1&&s===0){if(c===":"&&d===-1)d=h;else if(c===";"||h===C-1){if(d!==-1){var v=zi(e.substring(u,d).trim());if(!a.includes(v)){c!==";"&&h++;var b=e.substring(u,h).trim();r+=" "+b+";"}}u=h+1,d=-1}}}}return n&&(r+=la(n)),i&&(r+=la(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function He(e,t,r,n,i,o){var s=e.__className;if(G||s!==r||s===void 0){var l=xl(r,n,o);(!G||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(o&&i!==o)for(var a in o){var u=!!o[a];(i==null||u!==!!i[a])&&e.classList.toggle(a,u)}return o}function Ni(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 Sl(e,t,r,n){var i=e.__style;if(G||i!==t){var o=Cl(t,n);(!G||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Ni(e,r==null?void 0:r[0],n[0]),Ni(e,r==null?void 0:r[1],n[1],"important")):Ni(e,r,n));return n}function Ti(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Gn(t))return Cs();for(var n of e.options)n.selected=t.includes(ua(n));return}for(n of e.options){var i=ua(n);if(Fs(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function El(e){var t=new MutationObserver(()=>{Ti(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Cn(()=>{t.disconnect()})}function ua(e){return"__value"in e?e.__value:e.value}const Ir=Symbol("class"),Jr=Symbol("style"),ca=Symbol("is custom element"),da=Symbol("is html"),Ml=bn?"link":"LINK",Il=bn?"input":"INPUT",Ll=bn?"option":"OPTION",zl=bn?"select":"SELECT";function Nl(e){if(G){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;te(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;te(e,"checked",null),e.checked=i}}};e.__on_r=r,yt(r),Ys()}}function Tl(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function te(e,t,r,n){var i=fa(e);G&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ml)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[cs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ha(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function $l(e,t,r,n,i=!1,o=!1){if(G&&i&&e.nodeName===Il){var s=e,l=s.type==="checkbox"?"defaultChecked":"defaultValue";l in r||Nl(s)}var a=fa(e),u=a[ca],d=!a[da];let h=G&&u;h&&We(!1);var c=t||{},v=e.nodeName===Ll;for(var b in t)b in r||(r[b]=null);r.class?r.class=yl(r.class):(n||r[Ir])&&(r.class=null),r[Jr]&&(r.style??(r.style=null));var C=ha(e);for(const y in r){let N=r[y];if(v&&y==="value"&&N==null){e.value=e.__value="",c[y]=N;continue}if(y==="class"){var p=e.namespaceURI==="http://www.w3.org/1999/xhtml";He(e,p,N,n,t==null?void 0:t[Ir],r[Ir]),c[y]=N,c[Ir]=r[Ir];continue}if(y==="style"){Sl(e,N,t==null?void 0:t[Jr],r[Jr]),c[y]=N,c[Jr]=r[Jr];continue}var _=c[y];if(!(N===_&&!(N===void 0&&e.hasAttribute(y)))){c[y]=N;var I=y[0]+y[1];if(I!=="$$")if(I==="on"){const H={},R="$$"+y;let S=y.slice(2);var E=sl(S);if(ol(S)&&(S=S.slice(0,-7),H.capture=!0),!E&&_){if(N!=null)continue;e.removeEventListener(S,c[R],H),c[R]=null}if(E)ke(S,e,N),Mr([S]);else if(N!=null){let q=function(K){c[y].call(this,K)};c[R]=Qo(S,e,q,H)}}else if(y==="style")te(e,y,N);else if(y==="autofocus")Zs(e,!!N);else if(!u&&(y==="__value"||y==="value"&&N!=null))e.value=e.__value=N;else if(y==="selected"&&v)Tl(e,N);else{var x=y;d||(x=ul(x));var U=x==="defaultValue"||x==="defaultChecked";if(N==null&&!u&&!U)if(a[y]=null,x==="value"||x==="checked"){let H=e;const R=t===void 0;if(x==="value"){let S=H.defaultValue;H.removeAttribute(x),H.defaultValue=S,H.value=H.__value=R?S:null}else{let S=H.defaultChecked;H.removeAttribute(x),H.defaultChecked=S,H.checked=R?S:!1}}else e.removeAttribute(y);else U||C.includes(x)&&(u||typeof N!="string")?(e[x]=N,x in a&&(a[x]=Ie)):typeof N!="function"&&te(e,x,N)}}}return h&&We(!0),c}function Kr(e,t,r=[],n=[],i=[],o,s=!1,l=!1){yo(i,r,n,a=>{var u=void 0,d={},h=e.nodeName===zl,c=!1;if(qo(()=>{var b=t(...a.map(g)),C=$l(e,u,b,o,s,l);c&&h&&"value"in b&&Ti(e,b.value);for(let _ of Object.getOwnPropertySymbols(d))b[_]||ze(d[_]);for(let _ of Object.getOwnPropertySymbols(b)){var p=b[_];_.description===rs&&(!u||p!==u[_])&&(d[_]&&ze(d[_]),d[_]=Ve(()=>_l(e,()=>p))),C[_]=p}u=C}),h){var v=e;Sn(()=>{Ti(v,u.value,!0),El(v)})}c=!0})}function fa(e){return e.__attributes??(e.__attributes={[ca]:e.nodeName.includes("-"),[da]:e.namespaceURI===to})}var va=new Map;function ha(e){var t=e.getAttribute("is")||e.nodeName,r=va.get(t);if(r)return r;va.set(t,r=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=os(i);for(var s in n)n[s].set&&r.push(s);i=ro(i)}return r}function pa(e,t){return e===t||(e==null?void 0:e[Bt])===t}function Qt(e={},t,r,n){var i=Oe.r,o=Q;return Sn(()=>{var s,l;return _i(()=>{s=l,l=(n==null?void 0:n())||[],Fr(()=>{e!==r(...l)&&(t(e,...l),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{let a=o;for(;a!==i&&a.parent!==null&&a.parent.f&ei;)a=a.parent;const u=()=>{l&&pa(r(...l),e)&&t(null,...l)},d=a.teardown;a.teardown=()=>{u(),d==null||d()}}}),e}const Dl={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Gr(e,t,r){return new Proxy({props:e,exclude:t},Dl)}const Al={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ar(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];Ar(i)&&(i=i());const o=zt(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(Ar(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=zt(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Bt||t===ni)return!1;for(let r of e.props)if(Ar(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ar(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 ga(...e){return new Proxy({props:e},Al)}function w(e,t,r,n){var I;var i=(r&Qa)!==0,o=(r&es)!==0,s=n,l=!0,a=()=>(l&&(l=!1,s=o?Fr(n):n),s);let u;if(i){var d=Bt in e||ni in e;u=((I=zt(e,t))==null?void 0:I.set)??(d&&t in e?E=>e[t]=E:void 0)}var h,c=!1;i?[h,c]=Ts(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=a(),u&&(ws(),u(h)));var v;if(v=()=>{var E=e[t];return E===void 0?a():(l=!0,E)},(r&Xa)===0)return v;if(u){var b=e.$$legacy;return function(E,x){return arguments.length>0?((!x||b||c)&&u(x?v():E),E):v()}}var C=!1,p=((r&Ga)!==0?xn:Co)(()=>(C=!1,v()));i&&g(p);var _=Q;return function(E,x){if(arguments.length>0){const U=x?g(p):i?Jt(E):E;return W(p,U),C=!0,s!==void 0&&(s=U),E}return Kt&&C||(_.f&nt)!==0?p.v:g(p)}}function Ul(e){return new Hl(e)}class Hl{constructor(t){F(this,Ht);F(this,ut);var o;var r=new Map,n=(s,l)=>{var a=hi(l,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return g(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===ni?!0:(g(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return W(r.get(l)??n(l,a),a),Reflect.set(s,l,a)}});Z(this,ut,(t.hydrate?fl:ra)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&m(),Z(this,Ht,i.$$events);for(const s of Object.keys(f(this,ut)))s==="$set"||s==="$destroy"||s==="$on"||Dr(this,s,{get(){return f(this,ut)[s]},set(l){f(this,ut)[s]=l},enumerable:!0});f(this,ut).$set=s=>{Object.assign(i,s)},f(this,ut).$destroy=()=>{vl(f(this,ut))}}$set(t){f(this,ut).$set(t)}$on(t,r){f(this,Ht)[t]=f(this,Ht)[t]||[];const n=(...i)=>r.call(this,...i);return f(this,Ht)[t].push(n),()=>{f(this,Ht)[t]=f(this,Ht)[t].filter(i=>i!==n)}}$destroy(){f(this,ut).$destroy()}}Ht=new WeakMap,ut=new WeakMap;let ba;typeof HTMLElement=="function"&&(ba=class extends HTMLElement{constructor(t,r,n){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);be(this,"$$me");be(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}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=gi("slot");i!=="default"&&(s.name=i),D(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ql(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]=zn(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=Ul({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ks(()=>{_i(()=>{var i;this.$$r=!0;for(const o of pn(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=zn(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]=zn(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 pn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function zn(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 ql(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function me(e,t,r,n,i,o){let s=class extends ba{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return pn(t).map(l=>(t[l].attribute||l).toLowerCase())}};return pn(t).forEach(l=>{Dr(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){var h;a=zn(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var d=(h=zt(u,l))==null?void 0:h.get;d?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{Dr(s.prototype,l,{get(){var a;return(a=this.$$c)==null?void 0:a[l]}})}),e.element=s,s}var Ol=le("<a><!></a>"),Vl=le("<button><!></button>");const Pl={hash:"svelte-1klcfz0",code:`
3
4
  /*! purgecss start ignore */:root,
4
5
  :host {
5
6
  /* 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;
@@ -22,54 +23,54 @@
22
23
 
23
24
  /* square button color tokens */--ai-button-background-square-primary-rest: var(--ai-color-black);--ai-button-background-square-primary-hover: var(--ai-color-neutral-900);--ai-button-background-square-primary-disabled: var(--ai-color-neutral-200);--ai-button-text-square-primary-rest: var(--ai-color-white);--ai-button-text-square-primary-hover: var(--ai-color-white);--ai-button-text-square-primary-disabled: var(--ai-color-neutral-800);--ai-button-background-square-secondary-rest: var(--ai-color-white);--ai-button-background-square-secondary-hover: var(--ai-color-neutral-200);--ai-button-background-square-secondary-disabled: var(
24
25
  --ai-color-neutral-500
25
- );--ai-button-text-square-secondary-rest: var(--ai-color-black);--ai-button-text-square-secondary-hover: var(--ai-color-black);--ai-button-text-square-secondary-disabled: var(--ai-color-neutral-900);--ai-button-border-square-secondary-rest: var(--ai-color-black);--ai-button-border-square-secondary-hover: var(--ai-color-black);}.ai-button.svelte-zsrcxo {background-color:var(--ai-button-background-primary-rest);border-radius:var(--ai-button-radius);color:var(--ai-button-text-primary-rest);font-weight:var(--ai-font-weight-medium);padding-inline:var(--ai-button-padding-x);padding-block:var(--ai-button-padding-y);margin:0;width:fit-content;}.ai-button--no-gap.svelte-zsrcxo {gap:0;}.ai-button.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-zsrcxo {--ai-button-padding-x: var(--ai-size-24);--ai-button-padding-y: var(--ai-size-8);font-size:var(--ai-size-12);}.ai-button--outline.svelte-zsrcxo {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-rest);color:var(--ai-button-text-outline-rest);}.ai-button--outline.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow)
26
- var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-zsrcxo {background-color:transparent;box-shadow:var(--ai-button-box-shadow)
27
- var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow)
28
- var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-zsrcxo {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);box-shadow:none;border:var(--ai-button-border-inverted-rest);}.ai-button--inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}
29
-
30
- /* Square button styles */.ai-button--square.svelte-zsrcxo {border-radius:var(--ai-button-radius-square);padding-inline:var(--ai-button-padding-x-square);padding-block:var(--ai-button-padding-y-square);height:var(--ai-button-height-square);width:var(--ai-button-width-square);width:100%;display:flex;align-items:center;justify-content:center;border:0.0625rem solid var(--ai-color-neutral-300);box-shadow:0 0.0625rem var(--ai-size-2) 0 rgba(0, 0, 0, 0.1);transition:all var(--ai-transition-ease-fast);}
31
-
32
- /* Small square button specific adjustments */.ai-button--small.ai-button--square.svelte-zsrcxo {padding-inline:var(--ai-button-padding-x-square-small);padding-block:var(--ai-button-padding-y-square-small);height:var(--ai-button-height-square-small);}.ai-button--square.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {border-color:var(--ai-color-neutral-400);box-shadow:0 var(--ai-size-2) var(--ai-size-4) 0 rgba(0, 0, 0, 0.3);}.ai-button--square.svelte-zsrcxo:focus {outline-offset:var(--ai-size-2);}
33
-
34
- /* Square button variants */.ai-button--square.ai-button--primary.svelte-zsrcxo {background-color:var(--ai-button-background-square-primary-rest);color:var(--ai-button-text-square-primary-rest);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--primary.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-square-primary-hover);color:var(--ai-button-text-square-primary-hover);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--secondary.svelte-zsrcxo {background-color:var(--ai-button-background-square-secondary-rest);color:var(--ai-button-text-square-secondary-rest);border-color:var(--ai-button-border-square-secondary-rest);}.ai-button--square.ai-button--secondary.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-square-secondary-hover);color:var(--ai-button-text-square-secondary-hover);border-color:var(--ai-button-border-square-secondary-hover);}.ai-button--square.ai-button--outline.svelte-zsrcxo {background-color:var(--ai-color-white);color:var(--ai-color-neutral-800);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-color-neutral-50);color:var(--ai-color-black);border-color:var(--ai-color-neutral-400);}
35
-
36
- /* Square button inverted themes */.ai-button--square.ai-button--inverted.svelte-zsrcxo {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);border-color:transparent;}.ai-button--square.ai-button--inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border-color:transparent;}.ai-button--square.ai-button--outline-inverted.svelte-zsrcxo {background-color:transparent;color:var(--ai-color-white);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline-inverted.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background-color:var(--ai-color-neutral-900);color:var(--ai-color-white);border-color:var(--ai-color-neutral-400);}.ai-menu-buttons.svelte-zsrcxo {display:flex;gap:var(--ai-size-16);}
37
-
38
- /* Unstyled button styles */.ai-button--unstyled.svelte-zsrcxo {background:none;color:inherit;border:none;box-shadow:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:var(--ai-font-underline-offset);}.ai-button--unstyled.svelte-zsrcxo:is(:where(.svelte-zsrcxo):hover, :where(.svelte-zsrcxo):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}
39
-
40
- /* Unstyled square button - just center the text, reuse existing unstyled styles */.ai-button--unstyled.ai-button--square.svelte-zsrcxo {text-align:center;}
41
-
42
- /* disabled button styles */:is(.disabled.svelte-zsrcxo, [disabled].svelte-zsrcxo, [aria-disabled='true'].svelte-zsrcxo) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-zsrcxo:is(
43
- .disabled:where(.svelte-zsrcxo),
44
- [disabled]:where(.svelte-zsrcxo),
45
- [aria-disabled='true']:where(.svelte-zsrcxo)
46
- ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:none;color:inherit;opacity:0.75;}
47
- /*! purgecss end ignore */`};function Hi(e,t){ie(t,!0),dt(e,Wa);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"shape",7,"round"),o=_(t,"href",7,void 0),s=_(t,"disabled",7,!1),a=_(t,"onclick",7),l=_(t,"size",7,"medium"),u=_(t,"type",7,"button"),f=_(t,"class",7,""),d=xr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=ae(()=>()=>["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=ae(()=>()=>`${m(c)()} ${f()}`.trim());var h=pt(),y=Ye(h);{var S=g=>{var b=Ka();Xt(b,(k,P)=>({class:k,href:o(),onclick:a(),...d,[Nt]:P}),[()=>m(v)(),()=>({disabled:s()})],"svelte-zsrcxo");var p=E(b);gt(p,t,"default",{}),C(b),M(g,b)},L=g=>{var b=Ja();Xt(b,k=>({class:k,type:u(),disabled:s(),onclick:a(),...d}),[()=>m(v)()],"svelte-zsrcxo");var p=E(b);gt(p,t,"default",{}),C(b),M(g,b)};te(y,g=>{o()?g(S):g(L,!1)})}return M(e,h),oe({get variant(){return r()},set variant(g="primary"){r(g),w()},get theme(){return n()},set theme(g="default"){n(g),w()},get shape(){return i()},set shape(g="round"){i(g),w()},get href(){return o()},set href(g=void 0){o(g),w()},get disabled(){return s()},set disabled(g=!1){s(g),w()},get onclick(){return a()},set onclick(g){a(g),w()},get size(){return l()},set size(g="medium"){l(g),w()},get type(){return u()},set type(g="button"){u(g),w()},get class(){return f()},set class(g=""){f(g),w()}})}le(Hi,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Oi(e,t){ie(t,!0);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"href",7,null),o=_(t,"disabled",7,!1),s=_(t,"size",7,"medium"),a=_(t,"type",7,"button"),l=_(t,"onclick",7),u=_(t,"class",7,""),f=xr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Hi(e,Ai({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=Ye(v);gt(h,t,"default",{}),M(d,v)},$$slots:{default:!0}})),oe({get variant(){return r()},set variant(d="primary"){r(d),w()},get theme(){return n()},set theme(d="default"){n(d),w()},get href(){return i()},set href(d=null){i(d),w()},get disabled(){return o()},set disabled(d=!1){o(d),w()},get size(){return s()},set size(d="medium"){s(d),w()},get type(){return a()},set type(d="button"){a(d),w()},get onclick(){return l()},set onclick(d){l(d),w()},get class(){return u()},set class(d=""){u(d),w()}})}customElements.define("graymatter-button",le(Oi,{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 er=typeof window<"u";function Ga(e,t){if(er&&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 Vi(e,t){const r=Ga(e,t),n=sn(r);return er&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Vi("subNav-selectedId",null);const mt=Vi("subNav-selectedTitle","");function Pi(e,t){if(er&&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 Ri(e,t){const r=Pi(e,t),n=sn(r);return er&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Re=Ri("globalSideNav-isExpanded",!1),wt=Ri("globalSideNav-selectedItem",null),un=Ha(wt,e=>e==="discover"),ye={toggleExpanded:()=>{Re.update(e=>!e)},setExpanded:e=>{Re.set(e)},setSelectedItem:e=>{wt.set(e),e==="discover"?Re.set(!1):er&&window.innerWidth>640&&Re.set(!0)},handleLayoutTransition:e=>{if(e)Re.set(!1);else{const t=Pi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Re.set(!0)):Re.set(!1)}}},Er=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Re,isMenuButtonDisabled:un,navigationStore:ye,selectedItem:wt,selectedSubNavItemTitle:mt},Symbol.toStringTag,{value:"Module"}));var Xa=re('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Qa={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 Bi(e,t){ie(t,!0),dt(e,Qa);const[r,n]=Qt(),i=()=>Pe(wt,"$selectedItem",r),o=()=>Pe(Re,"$isExpanded",r),s=()=>Pe(mt,"$selectedSubNavItemTitle",r),a=_(t,"customHeaderText",7,"");let l=!1;const u=ae(()=>()=>i()&&i()!=="discover"&&!o()&&!l),f=ae(()=>()=>a()||s());Wt(()=>{const L=b=>{if(typeof window<"u"&&window.innerWidth<=640)return;let p=null;if(typeof window<"u"&&(p=sessionStorage.getItem("subNav-topLevelTitle"),p))try{p=JSON.parse(p)}catch{}if(typeof p=="string"&&p.trim()!=="")mt.set(p),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(p));else{const k=b;k.detail&&k.detail.title&&(mt.set(k.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(k.detail.title)))}},g=b=>{const p=b,{isMobile:k}=p.detail;k||(l=!0,setTimeout(()=>{l=!1},300))};return window.addEventListener("sectionVisible",L),window.addEventListener("layoutTransition",g),()=>{window.removeEventListener("sectionVisible",L),window.removeEventListener("layoutTransition",g)}});var d=Xa();let c;var v=E(d),h=E(v),y=E(h,!0);C(h),C(v),C(d),pe((L,g)=>{c=ke(d,1,"global-header svelte-1e8dq3f",null,c,L),Jt(y,g)},[()=>({visible:m(u)()}),()=>m(f)()]),M(e,d);var S=oe({get customHeaderText(){return a()},set customHeaderText(L=""){a(L),w()}});return n(),S}le(Bi,{customHeaderText:{}},[],[],!0);function ji(e,t){ie(t,!0);let r=_(t,"customHeaderText",7,"");return Bi(e,{get customHeaderText(){return r()}}),oe({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),w()}})}customElements.define("graymatter-desktop-header",le(ji,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Vo();var es=se('<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>'),ts=se('<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>'),rs=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function cn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=rs(),i=E(n);{var o=a=>{var l=es();M(a,l)},s=a=>{var l=ts();M(a,l)};te(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),oe({get isSelected(){return r()},set isSelected(a){r(a),w()}})}le(cn,{isSelected:{}},[],[],!0);var ns=se('<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>'),is=se('<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>'),os=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function dn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=os(),i=E(n);{var o=a=>{var l=ns();M(a,l)},s=a=>{var l=is();M(a,l)};te(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),oe({get isSelected(){return r()},set isSelected(a){r(a),w()}})}le(dn,{isSelected:{}},[],[],!0);var as=se('<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),ss=se('<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),ls=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function vn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=ls(),i=E(n);{var o=a=>{var l=as();Ze(3),M(a,l)},s=a=>{var l=ss();Ze(3),M(a,l)};te(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),oe({get isSelected(){return r()},set isSelected(a){r(a),w()}})}le(vn,{isSelected:{}},[],[],!0);var us=se('<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),cs=se('<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),ds=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function fn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=ds(),i=E(n);{var o=a=>{var l=us();Ze(2),M(a,l)},s=a=>{var l=cs();Ze(2),M(a,l)};te(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),oe({get isSelected(){return r()},set isSelected(a){r(a),w()}})}le(fn,{isSelected:{}},[],[],!0);var vs=se('<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),fs=se('<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),hs=se('<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),bs=se('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),ps=se('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),gs=se('<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),ms=se("<svg><!></svg>");function Sr(e,t){const r=qi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=qi(r,["isDisabled","isHovered","isOpen"]);ie(t,!1);let i=_(t,"isDisabled",12,!1),o=_(t,"isHovered",12,!1),s=_(t,"isOpen",12,!1);var a=ms();Xt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=E(a);{var u=d=>{var c=vs(),v=ve(Ye(c));pe(()=>K(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),M(d,c)},f=(d,c)=>{{var v=y=>{var S=pt(),L=Ye(S);{var g=p=>{var k=fs();Ze(),M(p,k)},b=p=>{var k=hs();Ze(),M(p,k)};te(L,p=>{s()?p(g):p(b,!1)})}M(y,S)},h=y=>{var S=gs(),L=ve(Ye(S));{var g=p=>{var k=bs();M(p,k)},b=p=>{var k=ps();M(p,k)};te(L,p=>{s()?p(g):p(b,!1)})}M(y,S)};te(d,y=>{o()?y(v):y(h,!1)},c)}};te(l,d=>{i()?d(u):d(f,!1)})}return C(a),M(e,a),oe({get isDisabled(){return i()},set isDisabled(d){i(d),w()},get isHovered(){return o()},set isHovered(d){o(d),w()},get isOpen(){return s()},set isOpen(d){s(d),w()}})}le(Sr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ws=re('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),_s=re('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),ks=re('<div tabindex="-1" role="menu"></div>'),ys=re('<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 xs={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
48
- .user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-1ybo61g,
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 hn(e,t){ie(t,!1),dt(e,xs);let r=_(t,"menuItems",28,()=>[]),n=_(t,"userMeta",12),i=_(t,"ariaLabel",12,"Open profile menu"),o=_(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,a=ht(!1);function l(){A(a,!m(a))}function u(){A(a,!1)}function f(N){var j;try{const W=new CustomEvent("profileMenuAction",{detail:{action:N,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((j=document.querySelector(".profile-context-menu"))==null?void 0:j.closest("[data-profile-menu]"))||window).dispatchEvent(W)}catch(W){console.error("Error dispatching profile menu action:",W)}}function d(N){const j=N.relatedTarget;(!j||!j.closest(".profile-context-menu"))&&u()}let c=ht(),v=ht([]),h=ht([]);function y(N,j){var W,G,T;if(N.key==="ArrowDown"){N.preventDefault();const D=(j+1)%r().length;(W=m(v)[D])==null||W.focus()}else if(N.key==="ArrowUp"){N.preventDefault();const D=(j-1+r().length)%r().length;(G=m(v)[D])==null||G.focus()}else N.key==="Escape"&&(u(),(T=m(c))==null||T.focus(),N.stopPropagation())}function S(N){var j;m(a)&&N.key==="Escape"&&(u(),(j=m(c))==null||j.focus(),N.stopPropagation())}Wt(()=>(window.addEventListener("keydown",S,!0),()=>{window.removeEventListener("keydown",S,!0)})),Wo(()=>m(h),()=>{A(v,m(h).filter(Boolean))}),Go(),Aa();var L=ys(),g=E(L),b=E(g),p=E(b),k=E(p),P=E(k,!0);C(k),C(p),C(b),C(g),vt(g,N=>A(c,N),()=>m(c));var $=ve(g,2);{var U=N=>{var j=ks();ki(j,7,r,W=>W.label,(W,G,T)=>{var D=_s(),J=E(D);{var z=O=>{var ne=ws(),ge=E(ne);C(ne),pe(()=>K(ge,"src",(m(G),Oe(()=>m(G).icon)))),M(O,ne)};te(J,O=>{m(G),Oe(()=>m(G).icon)&&O(z)})}var I=ve(J,2),R=E(I,!0);C(I),C(D),vt(D,(O,ne)=>jo(h,m(h)[ne]=O),O=>{var ne;return(ne=m(h))==null?void 0:ne[O]},()=>[m(T)]),pe(()=>Jt(R,(m(G),Oe(()=>m(G).label)))),me("click",D,()=>{f(m(G).action),u()}),me("keydown",D,O=>y(O,m(T))),M(W,D)}),C(j),pe(()=>{ke(j,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),K(j,"id",s)}),M(N,j)};te($,N=>{m(a)&&N(U)})}return C(L),pe(()=>{K(g,"aria-label",i()),K(g,"aria-expanded",m(a)),K(g,"aria-controls",s),Jt(P,(bi(n()),Oe(()=>{var N;return(N=n())==null?void 0:N.initials})))}),me("click",g,l),me("blur",g,d),M(e,L),oe({get menuItems(){return r()},set menuItems(N){r(N),w()},get userMeta(){return n()},set userMeta(N){n(N),w()},get ariaLabel(){return i()},set ariaLabel(N){i(N),w()},get menuAlign(){return o()},set menuAlign(N){o(N),w()}})}le(hn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);var Cs=se('<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 bn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=Cs(),i=E(n);return C(n),pe(()=>K(i,"stroke",r()?"#000":"#585C63")),M(e,n),oe({get isSelected(){return r()},set isSelected(o){r(o),w()}})}le(bn,{isSelected:{}},[],[],!0);function Es(e,t){(t==="#"||t!=null&&t.startsWith("#"))&&e.preventDefault()}function Ss(e,t,r,n){var i;t()||(ye.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var Ls=(e,t)=>t("discover"),zs=(e,t,r)=>{t(e,"discover"),r(e,0)},Ms=re('<a part="discover-item"><div class="icon-container svelte-8c4c8n" part="discover-icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div> <span class="nav-text svelte-8c4c8n">Discover</span></a>'),Is=(e,t)=>t("chat"),Ns=(e,t,r)=>{t(e,"chat"),r(e,1)},Ts=(e,t)=>t("console"),Ds=(e,t,r)=>{t(e,"console"),r(e,2)},$s=(e,t)=>t("api"),qs=(e,t,r)=>{t(e,"api"),r(e,3)},As=re('<div class="nav-items svelte-8c4c8n" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-8c4c8n" part="chat-icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div> <span class="nav-text svelte-8c4c8n">Chat</span></a> <a part="console-item"><div class="icon-container svelte-8c4c8n" part="console-icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div> <span class="nav-text svelte-8c4c8n">Console</span></a> <a part="api-item"><div class="icon-container svelte-8c4c8n" part="api-icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div> <span class="nav-text svelte-8c4c8n">API</span></a></div>'),Us=re('<div class="nav-footer-icon-container svelte-8c4c8n" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-8c4c8n" part="help-icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div></a></div>'),Hs=re('<div class="nav-footer svelte-8c4c8n" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-8c4c8n"><!></div></div>'),Os=re('<div class="drawer-content svelte-8c4c8n" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-8c4c8n"><!></nav></div>'),Vs=re('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-8c4c8n" part="nav-content"><div class="nav-main svelte-8c4c8n" part="nav-main"><div class="menu-section svelte-8c4c8n" part="menu-section"><button><div class="icon-container svelte-8c4c8n" part="icon-container"><div class="icon-wrapper svelte-8c4c8n"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const Ps={hash:"svelte-8c4c8n",code:`.expanded-content.drawer-anim.svelte-8c4c8n {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-8c4c8n {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-8c4c8n {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-8c4c8n nav:where(.svelte-8c4c8n) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-8c4c8n {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-8c4c8n:disabled,
51
- .menu-button.disabled.svelte-8c4c8n {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-8c4c8n {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-8c4c8n {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-8c4c8n {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-8c4c8n .expanded-content:where(.svelte-8c4c8n) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-8c4c8n:not(.expanded) .expanded-content:where(.svelte-8c4c8n) {width:0;opacity:0;}.nav-content.svelte-8c4c8n {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-8c4c8n {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-8c4c8n {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-8c4c8n {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-8c4c8n {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-8c4c8n {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-8c4c8n:focus,
52
- .nav-item.svelte-8c4c8n:focus,
53
- .help-link.svelte-8c4c8n:focus {outline:none;}.menu-button.svelte-8c4c8n:focus .icon-container:where(.svelte-8c4c8n),
54
- .nav-item.svelte-8c4c8n:focus .icon-container:where(.svelte-8c4c8n),
55
- .help-link.svelte-8c4c8n:focus .icon-container:where(.svelte-8c4c8n) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
56
-
57
- /* Hide focus outline on click */.menu-button.svelte-8c4c8n:focus:not(:focus-visible) .icon-container:where(.svelte-8c4c8n),
58
- .nav-item.svelte-8c4c8n:focus:not(:focus-visible) .icon-container:where(.svelte-8c4c8n),
59
- .help-link.svelte-8c4c8n:focus:not(:focus-visible) .icon-container:where(.svelte-8c4c8n) {outline:none;}.nav-items.svelte-8c4c8n {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-8c4c8n {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-8c4c8n {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color var(--ai-transition-ease-medium),
60
- border-radius var(--ai-transition-ease-medium);}.icon-wrapper.svelte-8c4c8n {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-8c4c8n 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-8c4c8n svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke var(--ai-transition-ease-medium),
26
+ );--ai-button-text-square-secondary-rest: var(--ai-color-black);--ai-button-text-square-secondary-hover: var(--ai-color-black);--ai-button-text-square-secondary-disabled: var(--ai-color-neutral-900);--ai-button-border-square-secondary-rest: var(--ai-color-black);--ai-button-border-square-secondary-hover: var(--ai-color-black);}.ai-button.svelte-1klcfz0 {background-color:var(--ai-button-background-primary-rest);border-radius:var(--ai-button-radius);color:var(--ai-button-text-primary-rest);font-weight:var(--ai-font-weight-medium);padding-inline:var(--ai-button-padding-x);padding-block:var(--ai-button-padding-y);margin:0;width:fit-content;}.ai-button--no-gap.svelte-1klcfz0 {gap:0;}.ai-button.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-1klcfz0 {--ai-button-padding-x: var(--ai-size-24);--ai-button-padding-y: var(--ai-size-8);font-size:var(--ai-size-12);}.ai-button--outline.svelte-1klcfz0 {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-rest);color:var(--ai-button-text-outline-rest);}.ai-button--outline.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow)
27
+ var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-1klcfz0 {background-color:transparent;box-shadow:var(--ai-button-box-shadow)
28
+ var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow)
29
+ var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-1klcfz0 {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);box-shadow:none;border:var(--ai-button-border-inverted-rest);}.ai-button--inverted.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}
30
+
31
+ /* Square button styles */.ai-button--square.svelte-1klcfz0 {border-radius:var(--ai-button-radius-square);padding-inline:var(--ai-button-padding-x-square);padding-block:var(--ai-button-padding-y-square);height:var(--ai-button-height-square);width:var(--ai-button-width-square);width:100%;display:flex;align-items:center;justify-content:center;border:0.0625rem solid var(--ai-color-neutral-300);box-shadow:0 0.0625rem var(--ai-size-2) 0 rgba(0, 0, 0, 0.1);transition:all var(--ai-transition-ease-fast);}
32
+
33
+ /* Small square button specific adjustments */.ai-button--small.ai-button--square.svelte-1klcfz0 {padding-inline:var(--ai-button-padding-x-square-small);padding-block:var(--ai-button-padding-y-square-small);height:var(--ai-button-height-square-small);}.ai-button--square.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {border-color:var(--ai-color-neutral-400);box-shadow:0 var(--ai-size-2) var(--ai-size-4) 0 rgba(0, 0, 0, 0.3);}.ai-button--square.svelte-1klcfz0:focus {outline-offset:var(--ai-size-2);}
34
+
35
+ /* Square button variants */.ai-button--square.ai-button--primary.svelte-1klcfz0 {background-color:var(--ai-button-background-square-primary-rest);color:var(--ai-button-text-square-primary-rest);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--primary.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-square-primary-hover);color:var(--ai-button-text-square-primary-hover);border-color:transparent;box-shadow:none;}.ai-button--square.ai-button--secondary.svelte-1klcfz0 {background-color:var(--ai-button-background-square-secondary-rest);color:var(--ai-button-text-square-secondary-rest);border-color:var(--ai-button-border-square-secondary-rest);}.ai-button--square.ai-button--secondary.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-square-secondary-hover);color:var(--ai-button-text-square-secondary-hover);border-color:var(--ai-button-border-square-secondary-hover);}.ai-button--square.ai-button--outline.svelte-1klcfz0 {background-color:var(--ai-color-white);color:var(--ai-color-neutral-800);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-color-neutral-50);color:var(--ai-color-black);border-color:var(--ai-color-neutral-400);}
36
+
37
+ /* Square button inverted themes */.ai-button--square.ai-button--inverted.svelte-1klcfz0 {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);border-color:transparent;}.ai-button--square.ai-button--inverted.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border-color:transparent;}.ai-button--square.ai-button--outline-inverted.svelte-1klcfz0 {background-color:transparent;color:var(--ai-color-white);border-color:var(--ai-color-neutral-300);}.ai-button--square.ai-button--outline-inverted.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background-color:var(--ai-color-neutral-900);color:var(--ai-color-white);border-color:var(--ai-color-neutral-400);}.ai-menu-buttons.svelte-1klcfz0 {display:flex;gap:var(--ai-size-16);}
38
+
39
+ /* Unstyled button styles */.ai-button--unstyled.svelte-1klcfz0 {background:none;color:inherit;border:none;box-shadow:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:var(--ai-font-underline-offset);}.ai-button--unstyled.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}
40
+
41
+ /* Unstyled square button - just center the text, reuse existing unstyled styles */.ai-button--unstyled.ai-button--square.svelte-1klcfz0 {text-align:center;}
42
+
43
+ /* disabled button styles */:is(.disabled.svelte-1klcfz0, [disabled].svelte-1klcfz0, [aria-disabled='true'].svelte-1klcfz0) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-1klcfz0:is(.disabled:where(.svelte-1klcfz0), [disabled]:where(.svelte-1klcfz0), [aria-disabled='true']:where(.svelte-1klcfz0)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-1klcfz0:is(.disabled:where(.svelte-1klcfz0), [disabled]:where(.svelte-1klcfz0), [aria-disabled='true']:where(.svelte-1klcfz0)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-1klcfz0:is(
44
+ .disabled:where(.svelte-1klcfz0),
45
+ [disabled]:where(.svelte-1klcfz0),
46
+ [aria-disabled='true']:where(.svelte-1klcfz0)
47
+ ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-1klcfz0:is(.disabled:where(.svelte-1klcfz0), [disabled]:where(.svelte-1klcfz0), [aria-disabled='true']:where(.svelte-1klcfz0)) {background:none;color:inherit;opacity:0.75;}
48
+ /*! purgecss end ignore */`};function ma(e,t){ve(t,!0),Xt(e,Pl);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"shape",7,"round"),o=w(t,"href",7,void 0),s=w(t,"disabled",7,!1),l=w(t,"onclick",7),a=w(t,"size",7,"medium"),u=w(t,"type",7,"button"),d=w(t,"class",7,""),h=w(t,"children",7),c=Gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class","children"]);const v=Y(()=>()=>["usa-button","ai-button",a()==="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(" ")),b=Y(()=>()=>`${g(v)()} ${d()}`.trim());var C={get variant(){return r()},set variant(x="primary"){r(x),m()},get theme(){return n()},set theme(x="default"){n(x),m()},get shape(){return i()},set shape(x="round"){i(x),m()},get href(){return o()},set href(x=void 0){o(x),m()},get disabled(){return s()},set disabled(x=!1){s(x),m()},get onclick(){return l()},set onclick(x){l(x),m()},get size(){return a()},set size(x="medium"){a(x),m()},get type(){return u()},set type(x="button"){u(x),m()},get class(){return d()},set class(x=""){d(x),m()},get children(){return h()},set children(x){h(x),m()}},p=Mn(),_=ar(p);{var I=x=>{var U=Ol();Kr(U,N=>({class:N,href:o(),onclick:l(),...c,[Ir]:{disabled:s()}}),[()=>g(b)()],void 0,void 0,"svelte-1klcfz0");var y=z(U);Ln(y,()=>h()??Ze),M(U),D(x,U)},E=x=>{var U=Vl();Kr(U,N=>({class:N,type:u(),disabled:s(),onclick:l(),...c}),[()=>g(b)()],void 0,void 0,"svelte-1klcfz0");var y=z(U);Ln(y,()=>h()??Ze),M(U),D(x,U)};ue(_,x=>{o()?x(I):x(E,-1)})}return D(e,p),he(C)}me(ma,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{},children:{}},[],[],{mode:"open"});function wa(e,t){ve(t,!0);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"href",7,void 0),o=w(t,"disabled",7,!1),s=w(t,"size",7,"medium"),l=w(t,"type",7,"button"),a=w(t,"onclick",7),u=w(t,"class",7,""),d=w(t,"children",7),h=Gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class","children"]);var c={get variant(){return r()},set variant(v="primary"){r(v),m()},get theme(){return n()},set theme(v="default"){n(v),m()},get href(){return i()},set href(v=void 0){i(v),m()},get disabled(){return o()},set disabled(v=!1){o(v),m()},get size(){return s()},set size(v="medium"){s(v),m()},get type(){return l()},set type(v="button"){l(v),m()},get onclick(){return a()},set onclick(v){a(v),m()},get class(){return u()},set class(v=""){u(v),m()},get children(){return d()},set children(v){d(v),m()}};return ma(e,ga({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return l()},get onclick(){return a()},get children(){return d()},get class(){return u()}},()=>h)),he(c)}customElements.define("graymatter-button",me(wa,{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:{},children:{}},[],[],{mode:"open"}));const Xr=typeof window<"u";function jl(e,t){if(Xr&&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 _a(e,t){const r=jl(e,t),n=si(r);return Xr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const Rl=_a("subNav-selectedId",null),dr=_a("subNav-selectedTitle","");function ka(e,t){if(Xr&&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 ya(e,t){const r=ka(e,t),n=si(r);return Xr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const gt=ya("globalSideNav-isExpanded",!1),fr=ya("globalSideNav-selectedItem",null),$i=zs(fr,e=>e==="discover"),Ae={toggleExpanded:()=>{gt.update(e=>!e)},setExpanded:e=>{gt.set(e)},setSelectedItem:e=>{fr.set(e),e==="discover"?gt.set(!1):Xr&&window.innerWidth>640&&gt.set(!0)},handleLayoutTransition:e=>{if(e)gt.set(!1);else{const t=ka("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),gt.set(!0)):gt.set(!1)}}},Nn=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:gt,isMenuButtonDisabled:$i,navigationStore:Ae,selectedItem:fr,selectedSubNavItemId:Rl,selectedSubNavItemTitle:dr},Symbol.toStringTag,{value:"Module"}));var Bl=le('<div part="global-header"><div class="header-content svelte-k73g25" part="header-content"><span class="header-text svelte-k73g25"> </span></div></div>');const Fl={hash:"svelte-k73g25",code:".global-header.svelte-k73g25 {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-k73g25 {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-k73g25 {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-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-k73g25 {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function xa(e,t){ve(t,!0),Xt(e,Fl);const r=()=>ft(fr,"$selectedItem",o),n=()=>ft(gt,"$isExpanded",o),i=()=>ft(dr,"$selectedSubNavItemTitle",o),[o,s]=Or();let l=w(t,"customHeaderText",7,""),a=se(!1);const u=Y(()=>()=>r()&&r()!=="discover"&&!n()&&!g(a)),d=Y(()=>()=>l()||i());Sr(()=>{if(typeof window>"u")return;const I=x=>{if(window.innerWidth<=640)return;let U=null;if(U=sessionStorage.getItem("subNav-topLevelTitle"),U)try{U=JSON.parse(U)}catch{}if(typeof U=="string"&&U.trim()!=="")dr.set(U),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(U));else{const y=x;y.detail&&y.detail.title&&(dr.set(y.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y.detail.title)))}},E=x=>{const U=x,{isMobile:y}=U.detail;y||(W(a,!0),setTimeout(()=>{W(a,!1)},300))};return window.addEventListener("sectionVisible",I),window.addEventListener("layoutTransition",E),()=>{window.removeEventListener("sectionVisible",I),window.removeEventListener("layoutTransition",E)}});var h={get customHeaderText(){return l()},set customHeaderText(I=""){l(I),m()}},c=Bl();let v;var b=z(c),C=z(b),p=z(C,!0);M(C),M(b),M(c),$e((I,E)=>{v=He(c,1,"global-header svelte-k73g25",null,v,I),Zr(p,E)},[()=>({visible:g(u)()}),()=>g(d)()]),D(e,c);var _=he(h);return s(),_}me(xa,{customHeaderText:{}},[],[],{mode:"open"});function Ca(e,t){ve(t,!0);let r=w(t,"customHeaderText",7,"");var n={get customHeaderText(){return r()},set customHeaderText(i=""){r(i),m()}};return xa(e,{get customHeaderText(){return r()}}),he(n)}customElements.define("graymatter-desktop-header",me(Ca,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],{mode:"open"}));var Zl=pe('<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>'),Yl=pe('<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>'),Wl=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Di(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Wl(),o=z(i);{var s=a=>{var u=Zl();D(a,u)},l=a=>{var u=Yl();D(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return M(i),D(e,i),he(n)}me(Di,{isSelected:{}},[],[],{mode:"open"});var Jl=pe('<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>'),Kl=pe('<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>'),Gl=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Ai(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Gl(),o=z(i);{var s=a=>{var u=Jl();D(a,u)},l=a=>{var u=Kl();D(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return M(i),D(e,i),he(n)}me(Ai,{isSelected:{}},[],[],{mode:"open"});var Xl=pe('<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),Ql=pe('<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),eu=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Ui(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=eu(),o=z(i);{var s=a=>{var u=Xl();dt(3),D(a,u)},l=a=>{var u=Ql();dt(3),D(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return M(i),D(e,i),he(n)}me(Ui,{isSelected:{}},[],[],{mode:"open"});var tu=pe('<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),ru=pe('<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),nu=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Hi(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=nu(),o=z(i);{var s=a=>{var u=tu();dt(2),D(a,u)},l=a=>{var u=ru();dt(2),D(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return M(i),D(e,i),he(n)}me(Hi,{isSelected:{}},[],[],{mode:"open"});var iu=pe('<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),ou=pe('<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),au=pe('<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),su=pe('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),lu=pe('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),uu=pe('<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),cu=pe("<svg><!></svg>");function Tn(e,t){ve(t,!0);let r=w(t,"isDisabled",7,!1),n=w(t,"isHovered",7,!1),i=w(t,"isOpen",7,!1),o=Gr(t,["$$slots","$$events","$$legacy","$$host","isDisabled","isHovered","isOpen"]);var s={get isDisabled(){return r()},set isDisabled(c=!1){r(c),m()},get isHovered(){return n()},set isHovered(c=!1){n(c),m()},get isOpen(){return i()},set isOpen(c=!1){i(c),m()}},l=cu();Kr(l,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...o}));var a=z(l);{var u=c=>{var v=iu(),b=Ee(ar(v));$e(()=>te(b,"d",`M${i()?"8.18018":"9.18018"} ${i()?"5.45068":"3.27222"}V${i()?"18.5208":"20.9203"}`)),D(c,v)},d=c=>{var v=Mn(),b=ar(v);{var C=_=>{var I=ou();dt(),D(_,I)},p=_=>{var I=au();dt(),D(_,I)};ue(b,_=>{i()?_(C):_(p,-1)})}D(c,v)},h=c=>{var v=uu(),b=Ee(ar(v));{var C=_=>{var I=su();D(_,I)},p=_=>{var I=lu();D(_,I)};ue(b,_=>{i()?_(C):_(p,-1)})}D(c,v)};ue(a,c=>{r()?c(u):n()?c(d,1):c(h,-1)})}return M(l),D(e,l),he(s)}me(Tn,{isDisabled:{},isHovered:{},isOpen:{}},[],[],{mode:"open"});var du=le('<span class="icon svelte-4ebv1u"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),fu=le('<button type="button" class="menu-item svelte-4ebv1u" role="menuitem"><!> <div class="menu-text svelte-4ebv1u"> </div></button>'),vu=le('<div tabindex="-1" role="menu"></div>'),hu=le('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-4ebv1u" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-4ebv1u"><div class="user-profile-icon svelte-4ebv1u" part="user-profile-icon"><span class="user-initials svelte-4ebv1u"> </span></div></div></button> <!></div>');const pu={hash:"svelte-4ebv1u",code:`.user-profile-container.svelte-4ebv1u,
49
+ .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-4ebv1u,
50
+ .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-4ebv1u {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-4ebv1u {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-4ebv1u {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-4ebv1u: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-4ebv1u:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-4ebv1u {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-4ebv1u {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-4ebv1u {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
51
+ /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-4ebv1u {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-4ebv1u {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-4ebv1u: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-4ebv1u:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-4ebv1u:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-4ebv1u {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-4ebv1u {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function qi(e,t){ve(t,!0),Xt(e,pu);let r=w(t,"menuItems",23,()=>[]),n=w(t,"userMeta",7),i=w(t,"ariaLabel",7,"Open profile menu"),o=w(t,"menuAlign",7,"desktop");const s=`profile-menu-${Math.random().toString(36).slice(2,10)}`;let l=se(!1);function a(){W(l,!g(l))}function u(){W(l,!1)}function d(S){var q;try{const K=new CustomEvent("profileMenuAction",{detail:{action:S,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((q=document.querySelector(".profile-context-menu"))==null?void 0:q.closest("[data-profile-menu]"))||window).dispatchEvent(K)}catch(K){console.error("Error dispatching profile menu action:",K)}}function h(S){const q=S.relatedTarget;(!q||!q.closest(".profile-context-menu"))&&u()}let c=se(null),v=se(Jt([])),b=se(Jt([]));Sr(()=>{W(v,g(b).filter(Boolean),!0)});function C(S,q){var K,ce,we;if(S.key==="ArrowDown"){S.preventDefault();const $=(q+1)%r().length;(K=g(v)[$])==null||K.focus()}else if(S.key==="ArrowUp"){S.preventDefault();const $=(q-1+r().length)%r().length;(ce=g(v)[$])==null||ce.focus()}else S.key==="Escape"&&(u(),(we=g(c))==null||we.focus(),S.stopPropagation())}function p(S){var q;g(l)&&S.key==="Escape"&&(u(),(q=g(c))==null||q.focus(),S.stopPropagation())}Sr(()=>{if(!(typeof window>"u"))return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}});var _={get menuItems(){return r()},set menuItems(S=[]){r(S),m()},get userMeta(){return n()},set userMeta(S){n(S),m()},get ariaLabel(){return i()},set ariaLabel(S="Open profile menu"){i(S),m()},get menuAlign(){return o()},set menuAlign(S="desktop"){o(S),m()}},I=hu(),E=z(I),x=z(E),U=z(x),y=z(U),N=z(y,!0);M(y),M(U),M(x),M(E),Qt(E,S=>W(c,S),()=>g(c));var H=Ee(E,2);{var R=S=>{var q=vu();oa(q,23,r,K=>K.label,(K,ce,we)=>{var $=fu(),ee=z($);{var L=B=>{var ie=du(),de=z(ie);M(ie),$e(()=>te(de,"src",g(ce).icon)),D(B,ie)};ue(ee,B=>{g(ce).icon&&B(L)})}var T=Ee(ee,2),O=z(T,!0);M(T),M($),Qt($,(B,ie)=>g(b)[ie]=B,B=>{var ie;return(ie=g(b))==null?void 0:ie[B]},()=>[g(we)]),$e(()=>Zr(O,g(ce).label)),ke("click",$,()=>{d(g(ce).action),u()}),ke("keydown",$,B=>C(B,g(we))),D(K,$)}),M(q),$e(()=>{He(q,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-4ebv1u"),te(q,"id",s)}),D(S,q)};ue(H,S=>{g(l)&&S(R)})}return M(I),$e(()=>{var S;te(E,"aria-label",i()),te(E,"aria-expanded",g(l)),te(E,"aria-controls",s),Zr(N,(S=n())==null?void 0:S.initials)}),ke("click",E,a),Ke("blur",E,h),D(e,I),he(_)}Mr(["click","keydown"]),me(qi,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],{mode:"open"});var gu=pe('<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 Oi(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(s=!1){r(s),m()}},i=gu(),o=z(i);return M(i),$e(()=>te(o,"stroke",r()?"#000":"#585C63")),D(e,i),he(n)}me(Oi,{isSelected:{}},[],[],{mode:"open"});var bu=le('<a part="discover-item"><div class="icon-container svelte-1cca2eg" part="discover-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Discover</span></a>'),mu=le('<div class="nav-items svelte-1cca2eg" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1cca2eg" part="chat-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1cca2eg" part="console-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Console</span></a> <a part="api-item"><div class="icon-container svelte-1cca2eg" part="api-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">API</span></a></div>'),wu=le('<div class="nav-footer-icon-container svelte-1cca2eg" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-1cca2eg" part="help-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></a></div>'),_u=le('<div class="nav-footer svelte-1cca2eg" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1cca2eg"><!></div></div>'),ku=le('<div class="drawer-content svelte-1cca2eg" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-1cca2eg"><!></nav></div>'),yu=le('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1cca2eg" part="nav-content"><div class="nav-main svelte-1cca2eg" part="nav-main"><div class="menu-section svelte-1cca2eg" part="menu-section"><button><div class="icon-container svelte-1cca2eg" part="icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const xu={hash:"svelte-1cca2eg",code:`.expanded-content.drawer-anim.svelte-1cca2eg {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-1cca2eg {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-1cca2eg {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1cca2eg nav:where(.svelte-1cca2eg) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1cca2eg {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-1cca2eg:disabled,
52
+ .menu-button.disabled.svelte-1cca2eg {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-1cca2eg {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-1cca2eg {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-1cca2eg {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-1cca2eg .expanded-content:where(.svelte-1cca2eg) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-1cca2eg:not(.expanded) .expanded-content:where(.svelte-1cca2eg) {width:0;opacity:0;}.nav-content.svelte-1cca2eg {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-1cca2eg {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-1cca2eg {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-1cca2eg {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-1cca2eg {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-1cca2eg {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1cca2eg:focus,
53
+ .nav-item.svelte-1cca2eg:focus,
54
+ .help-link.svelte-1cca2eg:focus {outline:none;}.menu-button.svelte-1cca2eg:focus .icon-container:where(.svelte-1cca2eg),
55
+ .nav-item.svelte-1cca2eg:focus .icon-container:where(.svelte-1cca2eg),
56
+ .help-link.svelte-1cca2eg:focus .icon-container:where(.svelte-1cca2eg) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
57
+
58
+ /* Hide focus outline on click */.menu-button.svelte-1cca2eg:focus:not(:focus-visible) .icon-container:where(.svelte-1cca2eg),
59
+ .nav-item.svelte-1cca2eg:focus:not(:focus-visible) .icon-container:where(.svelte-1cca2eg),
60
+ .help-link.svelte-1cca2eg:focus:not(:focus-visible) .icon-container:where(.svelte-1cca2eg) {outline:none;}.nav-items.svelte-1cca2eg {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-1cca2eg {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-1cca2eg {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color var(--ai-transition-ease-medium),
61
+ border-radius var(--ai-transition-ease-medium);}.icon-wrapper.svelte-1cca2eg {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-1cca2eg 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-1cca2eg svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke var(--ai-transition-ease-medium),
61
62
  fill var(--ai-transition-ease-medium),
62
- stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-8c4c8n {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-8c4c8n:hover .icon-container:where(.svelte-8c4c8n),
63
- .menu-button.svelte-8c4c8n:disabled:hover .icon-container:where(.svelte-8c4c8n) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-8c4c8n .icon-container:where(.svelte-8c4c8n),
64
- .nav-item.svelte-8c4c8n:active .icon-container:where(.svelte-8c4c8n),
65
- .nav-item.selected.svelte-8c4c8n .icon-container:where(.svelte-8c4c8n),
66
- .nav-item.selected.hovered.svelte-8c4c8n .icon-container:where(.svelte-8c4c8n),
67
- .menu-button.svelte-8c4c8n:hover .icon-container:where(.svelte-8c4c8n),
68
- .menu-button.svelte-8c4c8n:active .icon-container:where(.svelte-8c4c8n),
69
- .help-link.svelte-8c4c8n:hover .icon-container:where(.svelte-8c4c8n),
70
- .help-link.selected.svelte-8c4c8n .icon-container:where(.svelte-8c4c8n) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-8c4c8n {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-8c4c8n:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-8c4c8n {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-8c4c8n {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-8c4c8n {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-8c4c8n svg {display:block;}`};function Fi(e,t){var ao,so,lo;ie(t,!0),dt(e,Ps);const[r,n]=Qt(),i=()=>Pe(wt,"$selectedItem",r),o=()=>Pe(Re,"$isExpanded",r),s=()=>Pe(un,"$isMenuButtonDisabled",r),a=_(t,"ssrSelectedItem",7,void 0),l=_(t,"onNavToggle",7,void 0),u=_(t,"onNavItemClick",7,void 0),f=_(t,"showAppIcons",7,!0),d=_(t,"hideDiscover",7,!0),c=_(t,"profileMenuData",7),v=_(t,"apiUrl",7),h=_(t,"chatUrl",7),y=_(t,"consoleUrl",7),S=_(t,"discoverUrl",7),L=_(t,"supplementalMenuData",7),g=(lo=(so=(ao=L())==null?void 0:ao.help)==null?void 0:so.url)==null?void 0:lo.trim();function b(x,F){try{return new URL(x,F).pathname}catch{return null}}function p(){if(!g||g==="#"||g.startsWith("#"))return!1;const x=globalThis.location;if(x!=null&&x.origin&&(x!=null&&x.pathname)){const F=b(g,x.origin);return F!==null&&x.pathname===F}return!1}const k=ae(p);let P=!1,$,U=we(null),N=we(!1),j=we(!1),W=we(null),G=we(null),T=we(null),D=we(null),J=null;function z(x,F){return P?x:F}function I(x){return z(i()===x,a()===x)}function R(x){return m(U)===x}const O=ae(()=>()=>z(o(),a()?a()!=="discover":!0)),ne=ae(()=>()=>z(s(),a()?a()==="discover":!1)),ge=ae(()=>()=>z(o(),a()?a()!=="discover":!0)),Lr=ae(()=>()=>m(j)&&m(N)&&!m(ne)());Wt(()=>{if(P=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),$&&$.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");A(j,x.matches,!0),x.addEventListener("change",he=>{A(j,he.matches,!0)});const F=he=>{const Ce=he,{isMobile:Ee}=Ce.detail;if(Ee)ye.setExpanded(!1);else{const ue=i();ue&&ue!=="discover"?ye.setExpanded(!0):ye.setExpanded(!1)}};window.addEventListener("layoutTransition",F);const B=he=>{const Ce=document.activeElement;he.key==="Escape"&&o()&&!(Ce&&Ce.closest(".profile-context-menu"))&&ye.setExpanded(!1)};window.addEventListener("keydown",B);const fe=he=>{const Ce=he,{action:Ee,isOpen:ue}=Ce.detail;Ee==="toggle"?ye.toggleExpanded():Ee==="open"?ye.setExpanded(!0):Ee==="close"?ye.setExpanded(!1):Ee==="set"&&typeof ue=="boolean"&&ye.setExpanded(ue)};window.addEventListener("graymatter-desktop-nav-control",fe),J=()=>{window.removeEventListener("graymatter-desktop-nav-control",fe)};const X=()=>{m(k)};return window.addEventListener("popstate",X),()=>{window.removeEventListener("layoutTransition",F),window.removeEventListener("keydown",B),window.removeEventListener("popstate",X),J&&J()}}});function rr(x){var F;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),ye.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>Er).then(({selectedSubNavItemTitle:B})=>{B.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const fe=document.getElementById("main-content");if(fe){const X=fe.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(X&&X.textContent){const he=X.textContent.trim();B.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(B=>{console.log("[DesktopSideNav] Error clearing header state:",B)})}catch(B){console.log("[DesktopSideNav] Import failed for clearing state:",B)}else try{Promise.resolve().then(()=>Er).then(({selectedSubNavItemTitle:B})=>{B.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(B=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",B)})}catch(B){console.log("[DesktopSideNav] Import failed for clearing Discover state:",B)}(F=u())==null||F({item:x,expanded:o()})}function zr(x,F){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),rr(F))}function Mr(x,F){var X,he,Ce,Ee;const B=[m(W),m(G),m(T),m(D)],fe=B.length;if(fe)if(x.key==="ArrowDown"){x.preventDefault();const ue=(F+1)%fe;(X=B[ue])==null||X.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const ue=(F-1+fe)%fe;(he=B[ue])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(Ce=B[0])==null||Ce.focus()):x.key==="End"&&(x.preventDefault(),(Ee=B[fe-1])==null||Ee.focus())}var nr=Vs();let to;var pn=E(nr),gn=E(pn),mn=E(gn),Be=E(mn);let ro;Be.__click=[Ss,s,l,o];var no=E(Be),io=E(no),vl=E(io);const fl=ae(()=>m(Lr)()),hl=ae(()=>m(ne)()),bl=ae(()=>m(ge)());Sr(vl,{get isHovered(){return m(fl)},get isDisabled(){return m(hl)},get isOpen(){return m(bl)}}),C(io),C(no),C(Be),C(mn);var pl=ve(mn,2);{var gl=x=>{var F=As(),B=E(F);{var fe=je=>{var Ie=Ms();let Ir;Ie.__click=[Ls,rr],Ie.__keydown=[zs,zr,Mr];var Nr=E(Ie),Tr=E(Nr),yn=E(Tr);const El=ae(()=>I("discover"));cn(yn,{get isSelected(){return m(El)}}),C(Tr),C(Nr),Ze(2),C(Ie),vt(Ie,xn=>A(W,xn),()=>m(W)),pe((xn,Sl)=>{K(Ie,"href",S()||"#"),Ir=ke(Ie,1,"nav-item discover-item svelte-8c4c8n",null,Ir,xn),K(Ie,"aria-current",Sl)},[()=>({selected:I("discover"),hovered:R("discover")}),()=>I("discover")?"page":void 0]),me("mouseenter",Ie,()=>A(U,"discover")),me("mouseleave",Ie,()=>A(U,null)),M(je,Ie)};te(B,je=>{d()||je(fe)})}var X=ve(B,2);let he;X.__click=[Is,rr],X.__keydown=[Ns,zr,Mr];var Ce=E(X),Ee=E(Ce),ue=E(Ee);const ir=ae(()=>I("chat"));dn(ue,{get isSelected(){return m(ir)}}),C(Ee),C(Ce),Ze(2),C(X),vt(X,je=>A(G,je),()=>m(G));var be=ve(X,2);let or;be.__click=[Ts,rr],be.__keydown=[Ds,zr,Mr];var ar=E(be),sr=E(ar),_n=E(sr);const kn=ae(()=>I("console"));vn(_n,{get isSelected(){return m(kn)}}),C(sr),C(ar),Ze(2),C(be),vt(be,je=>A(T,je),()=>m(T));var We=ve(be,2);let uo;We.__click=[$s,rr],We.__keydown=[qs,zr,Mr];var co=E(We),vo=E(co),xl=E(vo);const Cl=ae(()=>I("api"));fn(xl,{get isSelected(){return m(Cl)}}),C(vo),C(co),Ze(2),C(We),vt(We,je=>A(D,je),()=>m(D)),C(F),pe((je,Ie,Ir,Nr,Tr,yn)=>{K(X,"href",h()||"#"),he=ke(X,1,"nav-item chat-item svelte-8c4c8n",null,he,je),K(X,"aria-current",Ie),K(be,"href",y()||"#"),or=ke(be,1,"nav-item console-item svelte-8c4c8n",null,or,Ir),K(be,"aria-current",Nr),K(We,"href",v()||"#"),uo=ke(We,1,"nav-item api-item svelte-8c4c8n",null,uo,Tr),K(We,"aria-current",yn)},[()=>({selected:I("chat"),hovered:R("chat")}),()=>I("chat")?"page":void 0,()=>({selected:I("console"),hovered:R("console")}),()=>I("console")?"page":void 0,()=>({selected:I("api"),hovered:R("api")}),()=>I("api")?"page":void 0]),me("mouseenter",X,()=>A(U,"chat")),me("mouseleave",X,()=>A(U,null)),me("mouseenter",be,()=>A(U,"console")),me("mouseleave",be,()=>A(U,null)),me("mouseenter",We,()=>A(U,"api")),me("mouseleave",We,()=>A(U,null)),M(x,F)};te(pl,x=>{f()&&x(gl)})}C(gn);var ml=ve(gn,2);{var wl=x=>{var F=Hs(),B=E(F);{var fe=ue=>{var ir=Us(),be=E(ir);let or;be.__click=[Es,g];var ar=E(be),sr=E(ar),_n=E(sr);bn(_n,{get isSelected(){return m(k)}}),C(sr),C(ar),C(be),C(ir),pe(kn=>{or=ke(be,1,"help-link svelte-8c4c8n",null,or,kn),K(be,"aria-current",m(k)?"page":void 0),K(be,"href",g)},[()=>({selected:m(k)})]),M(ue,ir)};te(B,ue=>{g&&ue(fe)})}var X=ve(B,2),he=E(X);const Ce=ae(()=>{var ue;return(ue=c())==null?void 0:ue.userMeta}),Ee=ae(()=>{var ue;return(ue=c())==null?void 0:ue.menuItems});hn(he,{get userMeta(){return m(Ce)},get menuItems(){return m(Ee)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),C(X),C(F),M(x,F)};te(ml,x=>{c()&&x(wl)})}C(pn);var wn=ve(pn,2);let oo;var _l=E(wn);{var kl=x=>{var F=Os(),B=E(F),fe=E(B);gt(fe,t,"default",{}),C(B),C(F),M(x,F)};te(_l,x=>{m(O)()&&x(kl)})}C(wn),C(nr),vt(nr,x=>$=x,()=>$),pe((x,F,B,fe,X)=>{to=ke(nr,1,"side-nav-container svelte-8c4c8n",null,to,x),ro=ke(Be,1,"menu-button svelte-8c4c8n",null,ro,F),Be.disabled=s(),K(Be,"aria-label",B),K(Be,"aria-expanded",fe),oo=ke(wn,1,"expanded-content drawer-anim svelte-8c4c8n",null,oo,X)},[()=>({expanded:m(O)()}),()=>({disabled:s()}),()=>m(O)()?"Close navigation menu":"Open navigation menu",()=>m(O)()?"true":"false",()=>({open:m(O)()})]),me("mouseenter",Be,()=>A(N,!0)),me("mouseleave",Be,()=>A(N,!1)),me("focus",Be,()=>A(N,!0)),me("blur",Be,()=>A(N,!1)),M(e,nr);var yl=oe({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),w()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),w()},get onNavItemClick(){return u()},set onNavItemClick(x=void 0){u(x),w()},get showAppIcons(){return f()},set showAppIcons(x=!0){f(x),w()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),w()},get profileMenuData(){return c()},set profileMenuData(x){c(x),w()},get apiUrl(){return v()},set apiUrl(x){v(x),w()},get chatUrl(){return h()},set chatUrl(x){h(x),w()},get consoleUrl(){return y()},set consoleUrl(x){y(x),w()},get discoverUrl(){return S()},set discoverUrl(x){S(x),w()},get supplementalMenuData(){return L()},set supplementalMenuData(x){L(x),w()}});return n(),yl}Yt(["click","keydown"]),le(Fi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0);function Zi(e,t){ie(t,!0);let r=_(t,"ssrSelectedItem",7),n=_(t,"onNavToggle",7),i=_(t,"onNavItemClick",7),o=_(t,"showAppIcons",7,!0),s=_(t,"hideDiscover",7,!0),a=_(t,"profileMenuData",7),l=_(t,"apiUrl",7),u=_(t,"chatUrl",7),f=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7),c=_(t,"supplementalMenuData",7);return Fi(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 y=pt(),S=Ye(y);gt(S,t,"default",{}),M(v,y)},$$slots:{default:!0}}),oe({get ssrSelectedItem(){return r()},set ssrSelectedItem(v){r(v),w()},get onNavToggle(){return n()},set onNavToggle(v){n(v),w()},get onNavItemClick(){return i()},set onNavItemClick(v){i(v),w()},get showAppIcons(){return o()},set showAppIcons(v=!0){o(v),w()},get hideDiscover(){return s()},set hideDiscover(v=!0){s(v),w()},get profileMenuData(){return a()},set profileMenuData(v){a(v),w()},get apiUrl(){return l()},set apiUrl(v){l(v),w()},get chatUrl(){return u()},set chatUrl(v){u(v),w()},get consoleUrl(){return f()},set consoleUrl(v){f(v),w()},get discoverUrl(){return d()},set discoverUrl(v){d(v),w()},get supplementalMenuData(){return c()},set supplementalMenuData(v){c(v),w()}})}customElements.define("graymatter-desktop-side-nav",le(Zi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0));var Rs=se('<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>'),Bs=se('<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 js={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Dt(e,t){ie(t,!0),dt(e,js);const r=_(t,"isInverted",7,!1),n=_(t,"width",7,102),i=_(t,"height",7,30),o=_(t,"showServiceMark",7,!1),s=xr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=pt(),u=Ye(l);{var f=c=>{var v=Rs();Xt(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"),M(c,v)},d=c=>{var v=Bs();Xt(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"),M(c,v)};te(u,c=>{o()?c(d,!1):c(f)})}return M(e,l),oe({get isInverted(){return r()},set isInverted(c=!1){r(c),w()},get width(){return n()},set width(c=102){n(c),w()},get height(){return i()},set height(c=30){i(c),w()},get showServiceMark(){return o()},set showServiceMark(c=!1){o(c),w()}})}le(Dt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Yi(e,t){ie(t,!0);let r=_(t,"isInverted",7,!1),n=_(t,"width",7,void 0),i=_(t,"height",7,void 0),o=_(t,"showServiceMark",7,!1),s=xr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Dt(e,Ai({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),oe({get isInverted(){return r()},set isInverted(a=!1){r(a),w()},get width(){return n()},set width(a=void 0){n(a),w()},get height(){return i()},set height(a=void 0){i(a),w()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),w()}})}customElements.define("graymatter-logo",le(Yi,{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 Fs=(e,t,r)=>t(m(r).id),Zs=re('<a><div class="icon svelte-znogzv"><!></div> <span class="label svelte-znogzv"> </span></a>'),Ys=re('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ks={hash:"svelte-znogzv",code:".nav-item.svelte-znogzv {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-znogzv {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-znogzv .icon:where(.svelte-znogzv) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-znogzv:hover {color:var(--ai-color-neutral-700);}.icon.svelte-znogzv {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-znogzv {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ki(e,t){ie(t,!0),dt(e,Ks);const[r,n]=Qt(),i=()=>Pe(wt,"$selectedItem",r);let o=_(t,"onNavItemClick",7),s=_(t,"showAppIcons",7,!0),a=_(t,"hideDiscover",7,!0),l=_(t,"apiUrl",7),u=_(t,"chatUrl",7),f=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:cn,href:d()||"#"},{id:"chat",label:"Chat",icon:dn,href:u()||"#"},{id:"console",label:"Console",icon:vn,href:f()||"#"},{id:"api",label:"API",icon:fn,href:l()||"#"}],v=a()?c.filter(b=>b.id!=="discover"):c;function h(b){var p;if(b!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),ye.setSelectedItem(b),b!=="discover")try{Promise.resolve().then(()=>Er).then(({selectedSubNavItemTitle:k})=>{k.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const P=document.getElementById("main-content");if(P){const $=P.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if($&&$.textContent){const U=$.textContent.trim();k.set(U),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(U))}}},200)}).catch(k=>{console.log("[MobileBottomNav] Error clearing header state:",k)})}catch(k){console.log("[MobileBottomNav] Import failed for clearing state:",k)}else try{Promise.resolve().then(()=>Er).then(({selectedSubNavItemTitle:k})=>{k.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(k=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",k)})}catch(k){console.log("[MobileBottomNav] Import failed for clearing Discover state:",k)}(p=o())==null||p({item:b,expanded:!1})}var y=pt(),S=Ye(y);{var L=b=>{var p=Ys();ki(p,21,()=>v,ya,(k,P)=>{var $=Zs();let U;$.__click=[Fs,h,P];var N=E($),j=E(N);const W=ae(()=>i()===m(P).id);Sa(j,()=>m(P).icon,(D,J)=>{J(D,{get isSelected(){return m(W)}})}),C(N);var G=ve(N,2),T=E(G,!0);C(G),C($),pe(D=>{K($,"href",m(P).href),U=ke($,1,`nav-item ${m(P).id}-item`,"svelte-znogzv",U,D),K($,"part",`${m(P).id}-item`),Jt(T,m(P).label)},[()=>({active:i()===m(P).id})]),M(k,$)}),C(p),M(b,p)};te(S,b=>{s()&&b(L)})}M(e,y);var g=oe({get onNavItemClick(){return o()},set onNavItemClick(b){o(b),w()},get showAppIcons(){return s()},set showAppIcons(b=!0){s(b),w()},get hideDiscover(){return a()},set hideDiscover(b=!0){a(b),w()},get apiUrl(){return l()},set apiUrl(b){l(b),w()},get chatUrl(){return u()},set chatUrl(b){u(b),w()},get consoleUrl(){return f()},set consoleUrl(b){f(b),w()},get discoverUrl(){return d()},set discoverUrl(b){d(b),w()}});return n(),g}Yt(["click"]),le(Ki,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Ji(e,t){ie(t,!0);let r=_(t,"onNavItemClick",7),n=_(t,"showAppIcons",7,!0),i=_(t,"hideDiscover",7,!0),o=_(t,"apiUrl",7),s=_(t,"chatUrl",7),a=_(t,"consoleUrl",7),l=_(t,"discoverUrl",7);return Ki(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()}}),oe({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),w()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),w()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),w()},get apiUrl(){return o()},set apiUrl(u){o(u),w()},get chatUrl(){return s()},set chatUrl(u){s(u),w()},get consoleUrl(){return a()},set consoleUrl(u){a(u),w()},get discoverUrl(){return l()},set discoverUrl(u){l(u),w()}})}customElements.define("graymatter-mobile-bottom-nav",le(Ji,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Js=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Ws=re('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Gs=re('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Xs=re('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),Qs=re('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),el=re('<!> <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 tl={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 Wi(e,t){ie(t,!0),dt(e,tl);const[r,n]=Qt(),i=()=>Pe(Re,"$isExpanded",r),o=()=>Pe(wt,"$selectedItem",r);let s,a=null,l=_(t,"logoLinkUrl",7),u=_(t,"logoLinkLabel",7);function f(T){if(a=T.detail.hash,d(),a){const J=document.getElementById(a);if(J){const z=document.getElementById("main-content-mobile"),I=z?z.querySelector(`[id="${a}"]`):null;if(I&&z){const R=I.getBoundingClientRect(),O=z.getBoundingClientRect(),ne=z.scrollTop+R.top-O.top;z.scrollTo({top:ne,behavior:"auto"}),setTimeout(()=>{var ge;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ge=I.textContent)==null?void 0:ge.trim(),id:I.id}}))},100)}else{let R=J.parentElement;for(;R&&R!==document.body;){const O=window.getComputedStyle(R);if(O.overflowY==="auto"||O.overflowY==="scroll")break;R=R.parentElement}R&&R!==document.body?document.getElementById("main-content")?(J.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ne;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ne=J.textContent)==null?void 0:ne.trim(),id:J.id}}))},100)):J.scrollIntoView({behavior:"auto",block:"start"}):J.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Wt(()=>{window.addEventListener("mobileAnchorNavigate",f);const T=()=>{d()};window.addEventListener("closeMobileMenu",T);const D=z=>{const I=z,{isMobile:R}=I.detail;R&&ye.setExpanded(!1)};window.addEventListener("layoutTransition",D);const J=z=>{const I=document.activeElement;z.key==="Escape"&&i()&&!(I&&I.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",J),()=>{window.removeEventListener("mobileAnchorNavigate",f),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",D),window.removeEventListener("keydown",J)}});function d(){ye.setExpanded(!1)}var c=el(),v=Ye(c);{var h=T=>{var D=Ws();D.__click=d,D.__keydown=[Js,d],M(T,D)};te(v,T=>{i()&&T(h)})}var y=ve(v,2);let S;var L=E(y),g=E(L);g.__click=d;var b=E(g);Sr(b,{isOpen:!0}),C(g);var p=ve(g,2),k=E(p);{var P=T=>{var D=Gs(),J=E(D);Dt(J,{width:75,height:22}),C(D),pe(()=>{K(D,"href",l()),K(D,"aria-label",u())}),M(T,D)},$=T=>{Dt(T,{width:75,height:22})};te(k,T=>{l()?T(P):T($,!1)})}C(p),C(L);var U=ve(L,2),N=E(U);{var j=T=>{var D=Xs(),J=E(D);gt(J,t,"default",{}),C(D),M(T,D)},W=T=>{var D=Qs();M(T,D)};te(N,T=>{o()&&o()!=="discover"?T(j):T(W,!1)})}C(U),C(y),vt(y,T=>s=T,()=>s),pe(T=>S=ke(y,1,"mobile-side-menu svelte-1anbrit",null,S,T),[()=>({open:i()})]),M(e,c);var G=oe({get logoLinkUrl(){return l()},set logoLinkUrl(T){l(T),w()},get logoLinkLabel(){return u()},set logoLinkLabel(T){u(T),w()}});return n(),G}Yt(["click","keydown"]),le(Wi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Gi(e,t){ie(t,!0);let r=_(t,"logoLinkUrl",7),n=_(t,"logoLinkLabel",7);return Wi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=pt(),a=Ye(s);gt(a,t,"default",{}),M(i,s)},$$slots:{default:!0}}),oe({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),w()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),w()}})}customElements.define("graymatter-mobile-side-menu",le(Gi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function rl(){ye.toggleExpanded()}function nl(e,t){(t==="#"||t!=null&&t.startsWith("#"))&&e.preventDefault()}var il=re('<a class="display-flex"><!></a>'),ol=re('<a title="Help" aria-label="Help"><span class="icon-container svelte-1lqlek0"><!></span></a>'),al=re('<nav class="mobile-top-nav svelte-1lqlek0" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1lqlek0"><!> <span class="brand-text svelte-1lqlek0"> </span></div> <!> <!></nav>');const sl={hash:"svelte-1lqlek0",code:`.menu-button.svelte-1lqlek0 {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-1lqlek0:disabled,
71
- .menu-button.disabled.svelte-1lqlek0 {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-1lqlek0 .menu-button:where(.svelte-1lqlek0) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1lqlek0:hover {background-color:var(--ai-color-neutral-100);}
72
-
73
- /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1lqlek0 .menu-button.disabled:where(.svelte-1lqlek0),
74
- .mobile-top-nav.svelte-1lqlek0 .menu-button:where(.svelte-1lqlek0):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1lqlek0 {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1lqlek0 {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1lqlek0 {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-1lqlek0 {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1lqlek0:focus {outline:none;}.help-button.svelte-1lqlek0:focus {outline:none;}.help-button.svelte-1lqlek0:focus .icon-container:where(.svelte-1lqlek0) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.help-button.svelte-1lqlek0:focus:not(:focus-visible) .icon-container:where(.svelte-1lqlek0) {outline:none;}.help-button.svelte-1lqlek0 {display:flex;align-items:center;justify-content:center;margin-right:var(--ai-size-4);text-decoration:none;color:inherit;}.help-button.svelte-1lqlek0 .icon-container:where(.svelte-1lqlek0) {display:flex;align-items:center;justify-content:center;width:var(--ai-size-40);height:var(--ai-size-40);border-radius:var(--ai-size-4);transition:background-color var(--ai-transition-ease-fast);}.help-button.svelte-1lqlek0:hover .icon-container:where(.svelte-1lqlek0),
75
- .help-button.selected.svelte-1lqlek0 .icon-container:where(.svelte-1lqlek0) {background-color:var(--ai-color-steel-300);}`};function Xi(e,t){var T,D,J;ie(t,!0),dt(e,sl);const[r,n]=Qt(),i=()=>Pe(mt,"$selectedSubNavItemTitle",r),o=()=>Pe(un,"$isMenuButtonDisabled",r);let s=_(t,"profileMenuData",7),a=_(t,"logoLinkUrl",7),l=_(t,"logoLinkLabel",7),u=_(t,"supplementalMenuData",7);const f=(J=(D=(T=u())==null?void 0:T.help)==null?void 0:D.url)==null?void 0:J.trim();function d(z,I){try{return new URL(z,I).pathname}catch{return null}}function c(){if(!f||f==="#"||f.startsWith("#"))return!1;const z=globalThis.location;if(z!=null&&z.origin&&(z!=null&&z.pathname)){const I=d(f,z.origin);return I!==null&&z.pathname===I}return!1}const v=ae(c);Wt(()=>{const z=ne=>{const ge=ne;ge.detail&&ge.detail.title&&(mt.set(ge.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ge.detail.title)))},I=()=>{if(typeof window>"u")return;const ne=document.getElementById("main-content");if(!ne)return;const ge=ne.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(ge&&ge.textContent){const Lr=ge.textContent.trim();i()||(mt.set(Lr),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Lr)))}};window.addEventListener("sectionVisible",z);const R=sessionStorage.getItem("subNav-selectedTitle");(!R||R==='""'||R==="null")&&setTimeout(()=>{I()},100);const O=()=>{m(v)};return window.addEventListener("popstate",O),()=>{window.removeEventListener("sectionVisible",z),window.removeEventListener("popstate",O)}});var h=al(),y=E(h);let S;y.__click=[rl];var L=E(y);Sr(L,{}),C(y);var g=ve(y,2),b=E(g);{var p=z=>{var I=il(),R=E(I);Dt(R,{width:75,height:22}),C(I),pe(()=>{K(I,"href",a()),K(I,"aria-label",l())}),M(z,I)},k=z=>{Dt(z,{width:75,height:22})};te(b,z=>{a()?z(p):z(k,!1)})}var P=ve(b,2),$=E(P,!0);C(P),C(g);var U=ve(g,2);{var N=z=>{var I=ol();let R;I.__click=[nl,f];var O=E(I),ne=E(O);bn(ne,{get isSelected(){return m(v)}}),C(O),C(I),pe(ge=>{R=ke(I,1,"help-button svelte-1lqlek0",null,R,ge),K(I,"aria-current",m(v)?"page":void 0),K(I,"href",f)},[()=>({selected:m(v)})]),M(z,I)};te(U,z=>{f&&z(N)})}var j=ve(U,2);{var W=z=>{const I=ae(()=>{var O;return(O=s())==null?void 0:O.userMeta}),R=ae(()=>{var O;return(O=s())==null?void 0:O.menuItems});hn(z,{get userMeta(){return m(I)},get menuItems(){return m(R)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};te(j,z=>{s()&&z(W)})}C(h),pe(z=>{S=ke(y,1,"menu-button svelte-1lqlek0",null,S,z),y.disabled=o(),Jt($,i()||"")},[()=>({disabled:o()})]),M(e,h);var G=oe({get profileMenuData(){return s()},set profileMenuData(z){s(z),w()},get logoLinkUrl(){return a()},set logoLinkUrl(z){a(z),w()},get logoLinkLabel(){return l()},set logoLinkLabel(z){l(z),w()},get supplementalMenuData(){return u()},set supplementalMenuData(z){u(z),w()}});return n(),G}Yt(["click"]),le(Xi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],!0);function Qi(e,t){ie(t,!0);let r=_(t,"profileMenuData",7),n=_(t,"logoLinkUrl",7),i=_(t,"logoLinkLabel",7),o=_(t,"supplementalMenuData",7);return Xi(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return o()}}),oe({get profileMenuData(){return r()},set profileMenuData(s){r(s),w()},get logoLinkUrl(){return n()},set logoLinkUrl(s){n(s),w()},get logoLinkLabel(){return i()},set logoLinkLabel(s){i(s),w()},get supplementalMenuData(){return o()},set supplementalMenuData(s){o(s),w()}})}customElements.define("graymatter-mobile-top-nav",le(Qi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],!0));function tr(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 ll(){tr("toggle")}function ul(){tr("open")}function cl(){tr("close")}function dl(e){tr("set",e)}q.Button=Oi,q.DesktopHeader=ji,q.DesktopSideNav=Zi,q.Logo=Yi,q.MobileBottomNav=Ji,q.MobileSideMenu=Gi,q.MobileTopNav=Qi,q.closeNavigation=cl,q.controlDesktopNavigation=tr,q.openNavigation=ul,q.setNavigationState=dl,q.toggleNavigation=ll,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
63
+ stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-1cca2eg {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
64
+ .menu-button.svelte-1cca2eg:disabled:hover .icon-container:where(.svelte-1cca2eg) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg),
65
+ .nav-item.svelte-1cca2eg:active .icon-container:where(.svelte-1cca2eg),
66
+ .nav-item.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg),
67
+ .nav-item.selected.hovered.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg),
68
+ .menu-button.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
69
+ .menu-button.svelte-1cca2eg:active .icon-container:where(.svelte-1cca2eg),
70
+ .help-link.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
71
+ .help-link.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1cca2eg {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-1cca2eg:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1cca2eg {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1cca2eg {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-1cca2eg {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-1cca2eg svg {display:block;}`};function Sa(e,t){ve(t,!0),Xt(e,xu);const r=()=>ft(fr,"$selectedItem",o),n=()=>ft(gt,"$isExpanded",o),i=()=>ft($i,"$isMenuButtonDisabled",o),[o,s]=Or();let l=w(t,"ssrSelectedItem",7,void 0),a=w(t,"controlledSelectedItem",7,void 0),u=w(t,"onNavToggle",7,void 0),d=w(t,"onNavItemClick",7,void 0),h=w(t,"showAppIcons",7,!0),c=w(t,"hideDiscover",7,!0),v=w(t,"profileMenuData",7),b=w(t,"apiUrl",7),C=w(t,"chatUrl",7),p=w(t,"consoleUrl",7),_=w(t,"discoverUrl",7),I=w(t,"supplementalMenuData",7),E=w(t,"children",7);const x=Y(()=>()=>{var k,A,P;return(P=(A=(k=I())==null?void 0:k.help)==null?void 0:A.url)==null?void 0:P.trim()});function U(k,A){try{return new URL(k,A).pathname}catch{return null}}function y(){const k=g(x)();if(!k||k==="#"||k.startsWith("#"))return!1;const A=globalThis.location;if(A!=null&&A.origin&&(A!=null&&A.pathname)){const P=U(k,A.origin);return P!==null&&A.pathname===P}return!1}const N=Y(()=>()=>y());let H=se(!1),R=se(null),S=se(null),q=se(!1),K=se(!1),ce=se(null),we=se(null),$=se(null),ee=se(null),L=null;function T(k,A){return g(H)?k:A}const O=Y(()=>()=>a()??r()),B=Y(()=>()=>a()??l()),ie=Y(()=>()=>g(B)()),de=Y(()=>()=>g(ie)()==="discover"),qt=Y(()=>()=>g(O)()==="discover");function Re(k){return T(g(O)()===k,g(B)()===k)}function Un(k){return g(S)===k}const sn=Y(()=>()=>T(n(),g(ie)()?!g(de)():!0)),Vi=Y(()=>()=>T(g(qt)(),g(ie)()?g(de)():!1)),Bu=Y(()=>()=>T(n(),g(ie)()?!g(de)():!0)),Fu=Y(()=>()=>g(K)&&g(q)&&!g(Vi)());hl(()=>{if(typeof window>"u")return;W(H,!0),a()===void 0&&l()&&r()===null&&Ae.setSelectedItem(l()),document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),g(R)&&g(R).classList.add("hydrated");const k=typeof window.matchMedia=="function"?window.matchMedia("(hover: hover)"):null,A=qe=>{W(K,qe.matches,!0)};k?(W(K,k.matches,!0),k.addEventListener("change",A)):W(K,!1);const P=qe=>{const Ne=qe,{isMobile:xe}=Ne.detail;if(xe)Ae.setExpanded(!1);else{const re=g(O)();re&&re!=="discover"?Ae.setExpanded(!0):Ae.setExpanded(!1)}};window.addEventListener("layoutTransition",P);const Me=qe=>{const Ne=document.activeElement,xe=!!document.querySelector(".profile-context-menu");qe.key==="Escape"&&n()&&!xe&&!(Ne&&Ne.closest(".profile-context-menu"))&&Ae.setExpanded(!1)};window.addEventListener("keydown",Me);const fe=qe=>{const Ne=qe,{action:xe,isOpen:re}=Ne.detail;xe==="toggle"?Ae.toggleExpanded():xe==="open"?Ae.setExpanded(!0):xe==="close"?Ae.setExpanded(!1):xe==="set"&&typeof re=="boolean"&&Ae.setExpanded(re)};window.addEventListener("graymatter-desktop-nav-control",fe),L=()=>{window.removeEventListener("graymatter-desktop-nav-control",fe)};const Be=()=>{g(N)()};return window.addEventListener("popstate",Be),()=>{window.removeEventListener("layoutTransition",P),window.removeEventListener("keydown",Me),window.removeEventListener("popstate",Be),k&&k.removeEventListener("change",A),L&&L()}});function Zu(k){const A=g(x)();(A==="#"||A!=null&&A.startsWith("#"))&&k.preventDefault()}function Yu(){var k;g(Vi)()||(Ae.toggleExpanded(),(k=u())==null||k({expanded:n()}))}function ln(k){var A;if(k!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),a()===void 0&&Ae.setSelectedItem(k),k!=="discover")try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const Me=document.getElementById("main-content");if(Me){const fe=Me.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(fe&&fe.textContent){const Be=fe.textContent.trim();P.set(Be),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Be))}}}},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(()=>Nn).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)}(A=d())==null||A({item:k,expanded:n()})}function Hn(k,A){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),ln(A))}function qn(k,A){var fe,Be,qe,Ne;const P=[g(ce),g(we),g($),g(ee)],Me=P.length;if(Me)if(k.key==="ArrowDown"){k.preventDefault();const xe=(A+1)%Me;(fe=P[xe])==null||fe.focus()}else if(k.key==="ArrowUp"){k.preventDefault();const xe=(A-1+Me)%Me;(Be=P[xe])==null||Be.focus()}else k.key==="Home"?(k.preventDefault(),(qe=P[0])==null||qe.focus()):k.key==="End"&&(k.preventDefault(),(Ne=P[Me-1])==null||Ne.focus())}var Wu={get ssrSelectedItem(){return l()},set ssrSelectedItem(k=void 0){l(k),m()},get controlledSelectedItem(){return a()},set controlledSelectedItem(k=void 0){a(k),m()},get onNavToggle(){return u()},set onNavToggle(k=void 0){u(k),m()},get onNavItemClick(){return d()},set onNavItemClick(k=void 0){d(k),m()},get showAppIcons(){return h()},set showAppIcons(k=!0){h(k),m()},get hideDiscover(){return c()},set hideDiscover(k=!0){c(k),m()},get profileMenuData(){return v()},set profileMenuData(k){v(k),m()},get apiUrl(){return b()},set apiUrl(k){b(k),m()},get chatUrl(){return C()},set chatUrl(k){C(k),m()},get consoleUrl(){return p()},set consoleUrl(k){p(k),m()},get discoverUrl(){return _()},set discoverUrl(k){_(k),m()},get supplementalMenuData(){return I()},set supplementalMenuData(k){I(k),m()},get children(){return E()},set children(k){E(k),m()}},un=yu();let Ha;var Pi=z(un),ji=z(Pi),Ri=z(ji),wt=z(Ri);let qa;var Oa=z(wt),Va=z(Oa),Ju=z(Va);{let k=Y(()=>g(Fu)()),A=Y(()=>g(Vi)()),P=Y(()=>g(Bu)());Tn(Ju,{get isHovered(){return g(k)},get isDisabled(){return g(A)},get isOpen(){return g(P)}})}M(Va),M(Oa),M(wt),M(Ri);var Ku=Ee(Ri,2);{var Gu=k=>{var A=mu(),P=z(A);{var Me=oe=>{var tt=bu();let Pn;var jn=z(tt),Rn=z(jn),Zi=z(Rn);{let tr=Y(()=>Re("discover"));Di(Zi,{get isSelected(){return g(tr)}})}M(Rn),M(jn),dt(2),M(tt),Qt(tt,tr=>W(ce,tr),()=>g(ce)),$e((tr,oc)=>{te(tt,"href",_()||"#"),Pn=He(tt,1,"nav-item discover-item svelte-1cca2eg",null,Pn,tr),te(tt,"aria-current",oc)},[()=>({selected:Re("discover"),hovered:Un("discover")}),()=>Re("discover")?"page":void 0]),ke("click",tt,()=>ln("discover")),ke("keydown",tt,tr=>{Hn(tr,"discover"),qn(tr,0)}),Ke("mouseenter",tt,()=>W(S,"discover")),Ke("mouseleave",tt,()=>W(S,null)),D(oe,tt)};ue(P,oe=>{c()||oe(Me)})}var fe=Ee(P,2);let Be;var qe=z(fe),Ne=z(qe),xe=z(Ne);{let oe=Y(()=>Re("chat"));Ai(xe,{get isSelected(){return g(oe)}})}M(Ne),M(qe),dt(2),M(fe),Qt(fe,oe=>W(we,oe),()=>g(we));var re=Ee(fe,2);let cn;var dn=z(re),fn=z(dn),Fi=z(fn);{let oe=Y(()=>Re("console"));Ui(Fi,{get isSelected(){return g(oe)}})}M(fn),M(dn),dt(2),M(re),Qt(re,oe=>W($,oe),()=>g($));var Fe=Ee(re,2);let On;var Vn=z(Fe),ja=z(Vn),ic=z(ja);{let oe=Y(()=>Re("api"));Hi(ic,{get isSelected(){return g(oe)}})}M(ja),M(Vn),dt(2),M(Fe),Qt(Fe,oe=>W(ee,oe),()=>g(ee)),M(A),$e((oe,tt,Pn,jn,Rn,Zi)=>{te(fe,"href",C()||"#"),Be=He(fe,1,"nav-item chat-item svelte-1cca2eg",null,Be,oe),te(fe,"aria-current",tt),te(re,"href",p()||"#"),cn=He(re,1,"nav-item console-item svelte-1cca2eg",null,cn,Pn),te(re,"aria-current",jn),te(Fe,"href",b()||"#"),On=He(Fe,1,"nav-item api-item svelte-1cca2eg",null,On,Rn),te(Fe,"aria-current",Zi)},[()=>({selected:Re("chat"),hovered:Un("chat")}),()=>Re("chat")?"page":void 0,()=>({selected:Re("console"),hovered:Un("console")}),()=>Re("console")?"page":void 0,()=>({selected:Re("api"),hovered:Un("api")}),()=>Re("api")?"page":void 0]),ke("click",fe,()=>ln("chat")),ke("keydown",fe,oe=>{Hn(oe,"chat"),qn(oe,1)}),Ke("mouseenter",fe,()=>W(S,"chat")),Ke("mouseleave",fe,()=>W(S,null)),ke("click",re,()=>ln("console")),ke("keydown",re,oe=>{Hn(oe,"console"),qn(oe,2)}),Ke("mouseenter",re,()=>W(S,"console")),Ke("mouseleave",re,()=>W(S,null)),ke("click",Fe,()=>ln("api")),ke("keydown",Fe,oe=>{Hn(oe,"api"),qn(oe,3)}),Ke("mouseenter",Fe,()=>W(S,"api")),Ke("mouseleave",Fe,()=>W(S,null)),D(k,A)};ue(Ku,k=>{h()&&k(Gu)})}M(ji);var Xu=Ee(ji,2);{var Qu=k=>{var A=_u(),P=z(A);{var Me=Ne=>{var xe=wu(),re=z(xe);let cn;var dn=z(re),fn=z(dn),Fi=z(fn);{let Fe=Y(()=>g(N)());Oi(Fi,{get isSelected(){return g(Fe)}})}M(fn),M(dn),M(re),M(xe),$e((Fe,On,Vn)=>{cn=He(re,1,"help-link svelte-1cca2eg",null,cn,Fe),te(re,"aria-current",On),te(re,"href",Vn)},[()=>({selected:g(N)()}),()=>g(N)()?"page":void 0,()=>g(x)()]),ke("click",re,Zu),D(Ne,xe)},fe=Y(()=>g(x)());ue(P,Ne=>{g(fe)&&Ne(Me)})}var Be=Ee(P,2),qe=z(Be);{let Ne=Y(()=>{var re;return(re=v())==null?void 0:re.userMeta}),xe=Y(()=>{var re;return(re=v())==null?void 0:re.menuItems});qi(qe,{get userMeta(){return g(Ne)},get menuItems(){return g(xe)},ariaLabel:"Open profile menu",menuAlign:"desktop"})}M(Be),M(A),D(k,A)};ue(Xu,k=>{v()&&k(Qu)})}M(Pi);var Bi=Ee(Pi,2);let Pa;var ec=z(Bi);{var tc=k=>{var A=ku(),P=z(A),Me=z(P);Ln(Me,()=>E()??Ze),M(P),M(A),D(k,A)},rc=Y(()=>g(sn)());ue(ec,k=>{g(rc)&&k(tc)})}M(Bi),M(un),Qt(un,k=>W(R,k),()=>g(R)),$e((k,A,P,Me)=>{Ha=He(un,1,"side-nav-container svelte-1cca2eg",null,Ha,k),qa=He(wt,1,"menu-button svelte-1cca2eg",null,qa,{disabled:i()}),wt.disabled=i(),te(wt,"aria-label",A),te(wt,"aria-expanded",P),Pa=He(Bi,1,"expanded-content drawer-anim svelte-1cca2eg",null,Pa,Me)},[()=>({expanded:g(sn)()}),()=>g(sn)()?"Close navigation menu":"Open navigation menu",()=>g(sn)()?"true":"false",()=>({open:g(sn)()})]),ke("click",wt,Yu),Ke("mouseenter",wt,()=>W(q,!0)),Ke("mouseleave",wt,()=>W(q,!1)),Ke("focus",wt,()=>W(q,!0)),Ke("blur",wt,()=>W(q,!1)),D(e,un);var nc=he(Wu);return s(),nc}Mr(["click","keydown"]),me(Sa,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"});function Ea(e,t){ve(t,!0);let r=w(t,"ssrSelectedItem",7),n=w(t,"controlledSelectedItem",7),i=w(t,"onNavToggle",7),o=w(t,"onNavItemClick",7),s=w(t,"showAppIcons",7,!0),l=w(t,"hideDiscover",7,!0),a=w(t,"profileMenuData",7),u=w(t,"apiUrl",7),d=w(t,"chatUrl",7),h=w(t,"consoleUrl",7),c=w(t,"discoverUrl",7),v=w(t,"supplementalMenuData",7),b=w(t,"children",7);var C={get ssrSelectedItem(){return r()},set ssrSelectedItem(p){r(p),m()},get controlledSelectedItem(){return n()},set controlledSelectedItem(p){n(p),m()},get onNavToggle(){return i()},set onNavToggle(p){i(p),m()},get onNavItemClick(){return o()},set onNavItemClick(p){o(p),m()},get showAppIcons(){return s()},set showAppIcons(p=!0){s(p),m()},get hideDiscover(){return l()},set hideDiscover(p=!0){l(p),m()},get profileMenuData(){return a()},set profileMenuData(p){a(p),m()},get apiUrl(){return u()},set apiUrl(p){u(p),m()},get chatUrl(){return d()},set chatUrl(p){d(p),m()},get consoleUrl(){return h()},set consoleUrl(p){h(p),m()},get discoverUrl(){return c()},set discoverUrl(p){c(p),m()},get supplementalMenuData(){return v()},set supplementalMenuData(p){v(p),m()},get children(){return b()},set children(p){b(p),m()}};return Sa(e,{get ssrSelectedItem(){return r()},get controlledSelectedItem(){return n()},get onNavToggle(){return i()},get onNavItemClick(){return o()},get showAppIcons(){return s()},get hideDiscover(){return l()},get profileMenuData(){return a()},get apiUrl(){return u()},get chatUrl(){return d()},get consoleUrl(){return h()},get discoverUrl(){return c()},get supplementalMenuData(){return v()},get children(){return b()}}),he(C)}customElements.define("graymatter-desktop-side-nav",me(Ea,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"}));var Cu=pe('<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>'),Su=pe('<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 Eu={hash:"svelte-tssf2h",code:"svg.svelte-tssf2h {display:block;}"};function Lr(e,t){ve(t,!0),Xt(e,Eu);const r=w(t,"isInverted",7,!1),n=w(t,"width",7,102),i=w(t,"height",7,30),o=w(t,"showServiceMark",7,!1),s=Gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),l=Y(()=>()=>r()?"var(--ai-color-white)":"var(--ai-color-black)");var a={get isInverted(){return r()},set isInverted(v=!1){r(v),m()},get width(){return n()},set width(v=102){n(v),m()},get height(){return i()},set height(v=30){i(v),m()},get showServiceMark(){return o()},set showServiceMark(v=!1){o(v),m()}},u=Mn(),d=ar(u);{var h=v=>{var b=Cu();Kr(b,C=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${C??""};`,...s}),[()=>g(l)()],void 0,void 0,"svelte-tssf2h"),D(v,b)},c=v=>{var b=Su();Kr(b,C=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${C??""};`,...s}),[()=>g(l)()],void 0,void 0,"svelte-tssf2h"),D(v,b)};ue(d,v=>{o()?v(c,-1):v(h)})}return D(e,u),he(a)}me(Lr,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],{mode:"open"});function Ma(e,t){ve(t,!0);let r=w(t,"isInverted",7,!1),n=w(t,"width",7,void 0),i=w(t,"height",7,void 0),o=w(t,"showServiceMark",7,!1),s=Gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);var l={get isInverted(){return r()},set isInverted(a=!1){r(a),m()},get width(){return n()},set width(a=void 0){n(a),m()},get height(){return i()},set height(a=void 0){i(a),m()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),m()}};return Lr(e,ga({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),he(l)}customElements.define("graymatter-logo",me(Ma,{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"}},[],[],{mode:"open"}));var Mu=le('<a><div class="icon svelte-1ya5jgu"><!></div> <span class="label svelte-1ya5jgu"> </span></a>'),Iu=le('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Lu={hash:"svelte-1ya5jgu",code:".nav-item.svelte-1ya5jgu {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-1ya5jgu {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-1ya5jgu .icon:where(.svelte-1ya5jgu) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-1ya5jgu:hover {color:var(--ai-color-neutral-700);}.icon.svelte-1ya5jgu {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-1ya5jgu {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ia(e,t){ve(t,!0),Xt(e,Lu);const r=()=>ft(fr,"$selectedItem",n),[n,i]=Or();let o=w(t,"onNavItemClick",7),s=w(t,"showAppIcons",7,!0),l=w(t,"hideDiscover",7,!0),a=w(t,"apiUrl",7),u=w(t,"chatUrl",7),d=w(t,"consoleUrl",7),h=w(t,"discoverUrl",7),c=w(t,"controlledSelectedItem",7,void 0);const v=Y(()=>()=>c()??r()),b=Y(()=>()=>[{id:"discover",label:"Discover",icon:Di,href:h()||"#"},{id:"chat",label:"Chat",icon:Ai,href:u()||"#"},{id:"console",label:"Console",icon:Ui,href:d()||"#"},{id:"api",label:"API",icon:Hi,href:a()||"#"}]),C=Y(()=>()=>l()?g(b)().filter(y=>y.id!=="discover"):g(b)());function p(y){var N;if(y!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),c()===void 0&&Ae.setSelectedItem(y),y!=="discover")try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:H})=>{H.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const R=document.getElementById("main-content");if(R){const S=R.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(S&&S.textContent){const q=S.textContent.trim();H.set(q),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(q))}}},200)}).catch(H=>{console.log("[MobileBottomNav] Error clearing header state:",H)})}catch(H){console.log("[MobileBottomNav] Import failed for clearing state:",H)}else try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:H})=>{H.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(H=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",H)})}catch(H){console.log("[MobileBottomNav] Import failed for clearing Discover state:",H)}(N=o())==null||N({item:y,expanded:!1})}var _={get onNavItemClick(){return o()},set onNavItemClick(y){o(y),m()},get showAppIcons(){return s()},set showAppIcons(y=!0){s(y),m()},get hideDiscover(){return l()},set hideDiscover(y=!0){l(y),m()},get apiUrl(){return a()},set apiUrl(y){a(y),m()},get chatUrl(){return u()},set chatUrl(y){u(y),m()},get consoleUrl(){return d()},set consoleUrl(y){d(y),m()},get discoverUrl(){return h()},set discoverUrl(y){h(y),m()},get controlledSelectedItem(){return c()},set controlledSelectedItem(y=void 0){c(y),m()}},I=Mn(),E=ar(I);{var x=y=>{var N=Iu();oa(N,21,()=>g(C)(),pl,(H,R)=>{var S=Mu();let q;var K=z(S),ce=z(K);{let ee=Y(()=>g(v)()===g(R).id);wl(ce,()=>g(R).icon,(L,T)=>{T(L,{get isSelected(){return g(ee)}})})}M(K);var we=Ee(K,2),$=z(we,!0);M(we),M(S),$e(ee=>{te(S,"href",g(R).href),q=He(S,1,`nav-item ${g(R).id}-item`,"svelte-1ya5jgu",q,ee),te(S,"part",`${g(R).id}-item`),Zr($,g(R).label)},[()=>({active:g(v)()===g(R).id})]),ke("click",S,()=>p(g(R).id)),D(H,S)}),M(N),D(y,N)};ue(E,y=>{s()&&y(x)})}D(e,I);var U=he(_);return i(),U}Mr(["click"]),me(Ia,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"});function La(e,t){ve(t,!0);let r=w(t,"onNavItemClick",7),n=w(t,"showAppIcons",7,!0),i=w(t,"hideDiscover",7,!0),o=w(t,"apiUrl",7),s=w(t,"chatUrl",7),l=w(t,"consoleUrl",7),a=w(t,"discoverUrl",7),u=w(t,"controlledSelectedItem",7);var d={get onNavItemClick(){return r()},set onNavItemClick(h){r(h),m()},get showAppIcons(){return n()},set showAppIcons(h=!0){n(h),m()},get hideDiscover(){return i()},set hideDiscover(h=!0){i(h),m()},get apiUrl(){return o()},set apiUrl(h){o(h),m()},get chatUrl(){return s()},set chatUrl(h){s(h),m()},get consoleUrl(){return l()},set consoleUrl(h){l(h),m()},get discoverUrl(){return a()},set discoverUrl(h){a(h),m()},get controlledSelectedItem(){return u()},set controlledSelectedItem(h){u(h),m()}};return Ia(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return l()},get discoverUrl(){return a()},get controlledSelectedItem(){return u()}}),he(d)}customElements.define("graymatter-mobile-bottom-nav",me(La,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"}));var zu=le('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Nu=le('<a part="logo-link" class="logo-link svelte-otdehu"><!></a>'),Tu=le('<div class="subnav-section svelte-otdehu" part="subnav-section"><!></div>'),$u=le('<div class="no-subnav-message svelte-otdehu" part="no-subnav-message"><p class="svelte-otdehu">Select a section from the bottom navigation</p></div>'),Du=le('<!> <div part="mobile-side-menu"><div class="menu-header svelte-otdehu" part="menu-header"><button class="close-button svelte-otdehu" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-otdehu" part="logo-container"><!></div></div> <div class="menu-content svelte-otdehu" part="menu-content"><!></div></div>',1);const Au={hash:"svelte-otdehu",code:".no-subnav-message.svelte-otdehu {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-otdehu p:where(.svelte-otdehu) {margin:0;}.mobile-side-menu.svelte-otdehu {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-otdehu {transform:translateX(0);}.menu-header.svelte-otdehu {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-otdehu .logo-container:where(.svelte-otdehu) {display:flex;}.logo-link.svelte-otdehu {display:flex;}.close-button.svelte-otdehu {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-otdehu:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-otdehu {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-otdehu {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function za(e,t){ve(t,!0),Xt(e,Au);const r=()=>ft(gt,"$isExpanded",i),n=()=>ft(fr,"$selectedItem",i),[i,o]=Or();let s=se(null),l=null,a=w(t,"logoLinkUrl",7),u=w(t,"logoLinkLabel",7),d=w(t,"children",7);function h($){if(l=$.detail.hash,c(),l){const L=document.getElementById(l);if(L){const T=document.getElementById("main-content-mobile"),O=T?T.querySelector(`[id="${l}"]`):null;if(O&&T){const B=O.getBoundingClientRect(),ie=T.getBoundingClientRect(),de=T.scrollTop+B.top-ie.top;T.scrollTo({top:de,behavior:"auto"}),setTimeout(()=>{var qt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(qt=O.textContent)==null?void 0:qt.trim(),id:O.id}}))},100)}else{let B=L.parentElement;for(;B&&B!==document.body;){const ie=window.getComputedStyle(B);if(ie.overflowY==="auto"||ie.overflowY==="scroll")break;B=B.parentElement}B&&B!==document.body?document.getElementById("main-content")?(L.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var de;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(de=L.textContent)==null?void 0:de.trim(),id:L.id}}))},100)):L.scrollIntoView({behavior:"auto",block:"start"}):L.scrollIntoView({behavior:"auto",block:"start"})}}l=null}}Sr(()=>{if(typeof window>"u")return;window.addEventListener("mobileAnchorNavigate",h);const $=()=>{c()};window.addEventListener("closeMobileMenu",$);const ee=T=>{const O=T,{isMobile:B}=O.detail;B&&Ae.setExpanded(!1)};window.addEventListener("layoutTransition",ee);const L=T=>{const O=document.activeElement;T.key==="Escape"&&r()&&!(O&&O.closest(".profile-context-menu"))&&c()};return window.addEventListener("keydown",L),()=>{window.removeEventListener("mobileAnchorNavigate",h),window.removeEventListener("closeMobileMenu",$),window.removeEventListener("layoutTransition",ee),window.removeEventListener("keydown",L)}});function c(){Ae.setExpanded(!1)}var v={get logoLinkUrl(){return a()},set logoLinkUrl($){a($),m()},get logoLinkLabel(){return u()},set logoLinkLabel($){u($),m()},get children(){return d()},set children($){d($),m()}},b=Du(),C=ar(b);{var p=$=>{var ee=zu();ke("click",ee,c),ke("keydown",ee,L=>{(L.key==="Enter"||L.key===" ")&&c()}),D($,ee)};ue(C,$=>{r()&&$(p)})}var _=Ee(C,2);let I;var E=z(_),x=z(E),U=z(x);Tn(U,{isOpen:!0}),M(x);var y=Ee(x,2),N=z(y);{var H=$=>{var ee=Nu(),L=z(ee);Lr(L,{width:75,height:22}),M(ee),$e(()=>{te(ee,"href",a()),te(ee,"aria-label",u())}),D($,ee)},R=$=>{Lr($,{width:75,height:22})};ue(N,$=>{a()?$(H):$(R,-1)})}M(y),M(E);var S=Ee(E,2),q=z(S);{var K=$=>{var ee=Tu(),L=z(ee);Ln(L,()=>d()??Ze),M(ee),D($,ee)},ce=$=>{var ee=$u();D($,ee)};ue(q,$=>{n()&&n()!=="discover"?$(K):$(ce,-1)})}M(S),M(_),Qt(_,$=>W(s,$),()=>g(s)),$e(()=>I=He(_,1,"mobile-side-menu svelte-otdehu",null,I,{open:r()})),ke("click",x,c),D(e,b);var we=he(v);return o(),we}Mr(["click","keydown"]),me(za,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"});function Na(e,t){ve(t,!0);let r=w(t,"logoLinkUrl",7),n=w(t,"logoLinkLabel",7),i=w(t,"children",7);var o={get logoLinkUrl(){return r()},set logoLinkUrl(s){r(s),m()},get logoLinkLabel(){return n()},set logoLinkLabel(s){n(s),m()},get children(){return i()},set children(s){i(s),m()}};return za(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),he(o)}customElements.define("graymatter-mobile-side-menu",me(Na,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"}));var Uu=le('<a class="display-flex"><!></a>'),Hu=le('<a title="Help" aria-label="Help"><span class="icon-container svelte-1iraudq"><!></span></a>'),qu=le('<nav class="mobile-top-nav svelte-1iraudq" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1iraudq"><!> <span class="brand-text svelte-1iraudq"> </span></div> <!> <!></nav>');const Ou={hash:"svelte-1iraudq",code:`.menu-button.svelte-1iraudq {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-1iraudq:disabled,
72
+ .menu-button.disabled.svelte-1iraudq {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1iraudq:hover {background-color:var(--ai-color-neutral-100);}
73
+
74
+ /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1iraudq .menu-button.disabled:where(.svelte-1iraudq),
75
+ .mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1iraudq {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1iraudq {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1iraudq {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-1iraudq {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus .icon-container:where(.svelte-1iraudq) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.help-button.svelte-1iraudq:focus:not(:focus-visible) .icon-container:where(.svelte-1iraudq) {outline:none;}.help-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;margin-right:var(--ai-size-4);text-decoration:none;color:inherit;}.help-button.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {display:flex;align-items:center;justify-content:center;width:var(--ai-size-40);height:var(--ai-size-40);border-radius:var(--ai-size-4);transition:background-color var(--ai-transition-ease-fast);}.help-button.svelte-1iraudq:hover .icon-container:where(.svelte-1iraudq),
76
+ .help-button.selected.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {background-color:var(--ai-color-steel-300);}`};function Ta(e,t){ve(t,!0),Xt(e,Ou);const r=()=>ft(dr,"$selectedSubNavItemTitle",i),n=()=>ft($i,"$isMenuButtonDisabled",i),[i,o]=Or();let s=w(t,"profileMenuData",7),l=w(t,"logoLinkUrl",7),a=w(t,"logoLinkLabel",7),u=w(t,"supplementalMenuData",7);const d=Y(()=>()=>{var L,T,O;return(O=(T=(L=u())==null?void 0:L.help)==null?void 0:T.url)==null?void 0:O.trim()});function h(L,T){try{return new URL(L,T).pathname}catch{return null}}function c(){const L=g(d)();if(!L||L==="#"||L.startsWith("#"))return!1;const T=globalThis.location;if(T!=null&&T.origin&&(T!=null&&T.pathname)){const O=h(L,T.origin);return O!==null&&T.pathname===O}return!1}const v=Y(()=>()=>c());Sr(()=>{if(typeof window>"u")return;const L=ie=>{const de=ie;de.detail&&de.detail.title&&(dr.set(de.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(de.detail.title)))},T=()=>{const ie=document.getElementById("main-content");if(!ie)return;const de=ie.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(de&&de.textContent){const qt=de.textContent.trim();r()||(dr.set(qt),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(qt)))}};window.addEventListener("sectionVisible",L);const O=sessionStorage.getItem("subNav-selectedTitle");(!O||O==='""'||O==="null")&&setTimeout(()=>{T()},100);const B=()=>{g(v)()};return window.addEventListener("popstate",B),()=>{window.removeEventListener("sectionVisible",L),window.removeEventListener("popstate",B)}});function b(){Ae.toggleExpanded()}function C(L){var T;(g(d)()==="#"||(T=g(d)())!=null&&T.startsWith("#"))&&L.preventDefault()}var p={get profileMenuData(){return s()},set profileMenuData(L){s(L),m()},get logoLinkUrl(){return l()},set logoLinkUrl(L){l(L),m()},get logoLinkLabel(){return a()},set logoLinkLabel(L){a(L),m()},get supplementalMenuData(){return u()},set supplementalMenuData(L){u(L),m()}},_=qu(),I=z(_);let E;var x=z(I);Tn(x,{}),M(I);var U=Ee(I,2),y=z(U);{var N=L=>{var T=Uu(),O=z(T);Lr(O,{width:75,height:22}),M(T),$e(()=>{te(T,"href",l()),te(T,"aria-label",a())}),D(L,T)},H=L=>{Lr(L,{width:75,height:22})};ue(y,L=>{l()?L(N):L(H,-1)})}var R=Ee(y,2),S=z(R,!0);M(R),M(U);var q=Ee(U,2);{var K=L=>{var T=Hu();let O;var B=z(T),ie=z(B);{let de=Y(()=>g(v)());Oi(ie,{get isSelected(){return g(de)}})}M(B),M(T),$e((de,qt,Re)=>{O=He(T,1,"help-button svelte-1iraudq",null,O,de),te(T,"aria-current",qt),te(T,"href",Re)},[()=>({selected:g(v)()}),()=>g(v)()?"page":void 0,()=>g(d)()]),ke("click",T,C),D(L,T)},ce=Y(()=>g(d)());ue(q,L=>{g(ce)&&L(K)})}var we=Ee(q,2);{var $=L=>{{let T=Y(()=>{var B;return(B=s())==null?void 0:B.userMeta}),O=Y(()=>{var B;return(B=s())==null?void 0:B.menuItems});qi(L,{get userMeta(){return g(T)},get menuItems(){return g(O)},ariaLabel:"Open profile menu",menuAlign:"mobile"})}};ue(we,L=>{s()&&L($)})}M(_),$e(()=>{E=He(I,1,"menu-button svelte-1iraudq",null,E,{disabled:n()}),I.disabled=n(),Zr(S,r()||"")}),ke("click",I,b),D(e,_);var ee=he(p);return o(),ee}Mr(["click"]),me(Ta,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"});function $a(e,t){ve(t,!0);let r=w(t,"profileMenuData",7),n=w(t,"logoLinkUrl",7),i=w(t,"logoLinkLabel",7),o=w(t,"supplementalMenuData",7);var s={get profileMenuData(){return r()},set profileMenuData(l){r(l),m()},get logoLinkUrl(){return n()},set logoLinkUrl(l){n(l),m()},get logoLinkLabel(){return i()},set logoLinkLabel(l){i(l),m()},get supplementalMenuData(){return o()},set supplementalMenuData(l){o(l),m()}};return Ta(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return o()}}),he(s)}customElements.define("graymatter-mobile-top-nav",me($a,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"}));function Qr(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 Vu(){Qr("toggle")}function Pu(){Qr("open")}function ju(){Qr("close")}function Ru(e){Qr("set",e)}V.Button=wa,V.DesktopHeader=Ca,V.DesktopSideNav=Ea,V.Logo=Ma,V.MobileBottomNav=La,V.MobileSideMenu=Na,V.MobileTopNav=$a,V.closeNavigation=ju,V.controlDesktopNavigation=Qr,V.openNavigation=Pu,V.setNavigationState=Ru,V.toggleNavigation=Vu,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});