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