@gsa-tts/graymatter-ui 0.4.3 → 0.4.4
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 +1631 -1683
- package/dist/graymatter-ui.umd.cjs +6 -6
- package/package.json +1 -2
- package/src/components/MobileBottomNav.svelte +2 -4
- package/src/utils/setupMocks.ts +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(D,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(D=typeof globalThis<"u"?globalThis:D||self,Z(D.graymatter={}))})(this,function(D){"use strict";var xl=Object.defineProperty;var oo=D=>{throw TypeError(D)};var Cl=(D,Z,ve)=>Z in D?xl(D,Z,{enumerable:!0,configurable:!0,writable:!0,value:ve}):D[Z]=ve;var ze=(D,Z,ve)=>Cl(D,typeof Z!="symbol"?Z+"":Z,ve),ao=(D,Z,ve)=>Z.has(D)||oo("Cannot "+ve);var ye=(D,Z,ve)=>(ao(D,Z,"read from private field"),ve?ve.call(D):Z.get(D)),hn=(D,Z,ve)=>Z.has(D)?oo("Cannot add the same private member more than once"):Z instanceof WeakSet?Z.add(D):Z.set(D,ve),gn=(D,Z,ve,wt)=>(ao(D,Z,"write to private field"),wt?wt.call(D,ve):Z.set(D,ve),ve);var Zi,nt,Ae;function Z(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const ve="5";typeof window<"u"&&((Zi=window.__svelte??(window.__svelte={})).v??(Zi.v=new Set)).add(ve);const wt=1,Sr=2,bn=4,so=8,lo=16,uo=1,co=2,pn=4,vo=8,fo=16,mn=1,ho=2,zr="[",Lr="[!",Ir="]",_t={},we=Symbol(),go="http://www.w3.org/1999/xhtml",bo="@attach",wn=!1;var rr=Array.isArray,po=Array.prototype.indexOf,Nr=Array.from,nr=Object.keys,At=Object.defineProperty,We=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyDescriptors,mo=Object.prototype,wo=Array.prototype,Mr=Object.getPrototypeOf,yn=Object.isExtensible;function $t(e){return typeof e=="function"}const it=()=>{};function _o(e){return e()}function Dt(e){for(var t=0;t<e.length;t++)e[t]()}const Le=2,Tr=4,Ut=8,Ar=16,Ge=32,vt=64,$r=128,ke=256,ir=512,xe=1024,Xe=2048,ot=4096,Qe=8192,Dr=16384,kn=32768,or=65536,xn=1<<17,yo=1<<18,Cn=1<<19,Ur=1<<20,Or=1<<21,Re=Symbol("$state"),Hr=Symbol("legacy props"),ko=Symbol(""),En=new class extends Error{constructor(){super(...arguments);ze(this,"name","StaleReactionError");ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Sn=3,Ot=8;function zn(e){return e===this.v}function Ln(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function In(e){return!Ln(e,this.v)}function xo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Co(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Eo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function So(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Lo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Io(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function No(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,To=!1;function Ao(){yt=!0}function $o(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let K=null;function Nn(e){K=e}function Q(e,t=!1,r){var n=K={p:K,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(K.l={s:null,u:null,r1:[],r2:Ct(!1)}),lr(()=>{n.d=!0})}function ee(e){const t=K;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=R,n=q;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];st(o.effect),Ze(o.reaction),Fn(o.fn)}}finally{st(r),Ze(n)}}K=t.p,t.m=!0}return e||{}}function ar(){return!yt||K!==null&&K.l===null}function kt(e){if(typeof e!="object"||e===null||Re in e)return e;const t=Mr(e);if(t!==mo&&t!==wo)return e;var r=new Map,n=rr(e),i=be(0),o=q,s=a=>{var l=q;Ze(o);var c=a();return Ze(l),c};return n&&r.set("length",be(e.length)),new Proxy(e,{defineProperty(a,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Io();var v=r.get(l);return v===void 0?v=s(()=>{var d=be(c.value);return r.set(l,d),d}):O(v,c.value,!0),!0},deleteProperty(a,l){var c=r.get(l);if(c===void 0){if(l in a){const u=s(()=>be(we));r.set(l,u),qr(i)}}else{if(n&&typeof l=="string"){var v=r.get("length"),d=Number(l);Number.isInteger(d)&&d<v.v&&O(v,d)}O(c,we),qr(i)}return!0},get(a,l,c){var h;if(l===Re)return e;var v=r.get(l),d=l in a;if(v===void 0&&(!d||(h=We(a,l))!=null&&h.writable)&&(v=s(()=>{var g=kt(d?a[l]:we),k=be(g);return k}),r.set(l,v)),v!==void 0){var u=m(v);return u===we?void 0:u}return Reflect.get(a,l,c)},getOwnPropertyDescriptor(a,l){var c=Reflect.getOwnPropertyDescriptor(a,l);if(c&&"value"in c){var v=r.get(l);v&&(c.value=m(v))}else if(c===void 0){var d=r.get(l),u=d==null?void 0:d.v;if(d!==void 0&&u!==we)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return c},has(a,l){var u;if(l===Re)return!0;var c=r.get(l),v=c!==void 0&&c.v!==we||Reflect.has(a,l);if(c!==void 0||R!==null&&(!v||(u=We(a,l))!=null&&u.writable)){c===void 0&&(c=s(()=>{var h=v?kt(a[l]):we,g=be(h);return g}),r.set(l,c));var d=m(c);if(d===we)return!1}return v},set(a,l,c,v){var p;var d=r.get(l),u=l in a;if(n&&l==="length")for(var h=c;h<d.v;h+=1){var g=r.get(h+"");g!==void 0?O(g,we):h in a&&(g=s(()=>be(we)),r.set(h+"",g))}if(d===void 0)(!u||(p=We(a,l))!=null&&p.writable)&&(d=s(()=>be(void 0)),O(d,kt(c)),r.set(l,d));else{u=d.v!==we;var k=s(()=>kt(c));O(d,k)}var E=Reflect.getOwnPropertyDescriptor(a,l);if(E!=null&&E.set&&E.set.call(v,c),!u){if(n&&typeof l=="string"){var I=r.get("length"),b=Number(l);Number.isInteger(b)&&b>=I.v&&O(I,b+1)}qr(i)}return!0},ownKeys(a){m(i);var l=Reflect.ownKeys(a).filter(d=>{var u=r.get(d);return u===void 0||u.v!==we});for(var[c,v]of r)v.v!==we&&!(c in a)&&l.push(c);return l},setPrototypeOf(){No()}})}function qr(e,t=1){O(e,e.v+t)}function Mn(e){try{if(e!==null&&typeof e=="object"&&Re in e)return e[Re]}catch{}return e}function Do(e,t){return Object.is(Mn(e),Mn(t))}function xt(e){var t=Le|Xe,r=q!==null&&(q.f&Le)!==0?q:null;return R===null||r!==null&&(r.f&ke)!==0?t|=ke:R.f|=Cn,{ctx:K,deps:null,effects:null,equals:zn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??R,ac:null}}function ie(e){const t=xt(e);return ei(t),t}function Tn(e){const t=xt(e);return t.equals=In,t}function An(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ne(t[r])}}function Uo(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return t;t=t.parent}return null}function $n(e){var t,r=R;st(Uo(e));try{An(e),t=ni(e)}finally{st(r)}return t}function Dn(e){var t=$n(e);if(e.equals(t)||(e.v=t,e.wv=ti()),!Lt){var r=(lt||(e.f&ke)!==0)&&e.deps!==null?ot:xe;Oe(e,r)}}const Ht=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:zn,rv:0,wv:0};return r}function be(e,t){const r=Ct(e);return ei(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=In),yt&&r&&K!==null&&K.l!==null&&((i=K.l).s??(i.s=[])).push(n),n}function Oo(e,t){return O(e,Ue(()=>m(e))),t}function O(e,t,r=!1){q!==null&&(!Ye||(q.f&xn)!==0)&&ar()&&(q.f&(Le|Ar|xn))!==0&&!((oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e))&&Mo();let n=r?kt(t):t;return Vr(e,n)}function Vr(e,t){if(!e.equals(t)){var r=e.v;Lt?Ht.set(e,t):Ht.set(e,r),e.v=t,(e.f&Le)!==0&&((e.f&Xe)!==0&&$n(e),Oe(e,(e.f&ke)===0?xe:ot)),e.wv=ti(),On(e,Xe),ar()&&R!==null&&(R.f&xe)!==0&&(R.f&(Ge|vt))===0&&(Me===null?Wo([e]):Me.push(e))}return t}function Un(e,t=1){var r=m(e),n=t===1?r++:r--;return O(e,r),n}function On(e,t){var r=e.reactions;if(r!==null)for(var n=ar(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===R||(Oe(s,t),(a&(xe|ke))!==0&&((a&Le)!==0?On(s,ot):gr(s))))}}function sr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ho(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function $e(e){H=e}let j;function De(e){if(e===null)throw sr(),_t;return j=e}function Et(){return De(et(j))}function S(e){if(H){if(et(j)!==null)throw sr(),_t;j=e}}function Be(e=1){if(H){for(var t=e,r=j;t--;)r=et(r);j=r}}function Pr(){for(var e=0,t=j;;){if(t.nodeType===Ot){var r=t.data;if(r===Ir){if(e===0)return t;e-=1}else(r===zr||r===Lr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function Hn(e){if(!e||e.nodeType!==Ot)throw sr(),_t;return e.data}var qn,Vn,Pn,jn;function jr(){if(qn===void 0){qn=window,Vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Pn=We(t,"firstChild").get,jn=We(t,"nextSibling").get,yn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yn(r)&&(r.__t=void 0)}}function St(e=""){return document.createTextNode(e)}function Ie(e){return Pn.call(e)}function et(e){return jn.call(e)}function z(e,t){if(!H)return Ie(e);var r=Ie(j);if(r===null)r=j.appendChild(St());else if(t&&r.nodeType!==Sn){var n=St();return r==null||r.before(n),De(n),n}return De(r),r}function Fe(e,t){if(!H){var r=Ie(e);return r instanceof Comment&&r.data===""?et(r):r}return j}function fe(e,t=1,r=!1){let n=H?j:e;for(var i;t--;)i=n,n=et(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==Sn){var o=St();return n===null?i==null||i.after(o):n.before(o),De(o),o}return De(n),n}function Rn(e){e.textContent=""}function Bn(e){R===null&&q===null&&Eo(),q!==null&&(q.f&ke)!==0&&R===null&&Co(),Lt&&xo()}function qo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=R,o={ctx:K,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{hr(o),o.f|=kn}catch(l){throw Ne(o),l}else t!==null&&gr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(Cn|$r))===0;if(!s&&n&&(i!==null&&qo(o,i),q!==null&&(q.f&Le)!==0)){var a=q;(a.effects??(a.effects=[])).push(o)}return o}function lr(e){const t=tt(Ut,null,!1);return Oe(t,xe),t.teardown=e,t}function Rr(e){Bn();var t=R!==null&&(R.f&Ge)!==0&&K!==null&&!K.m;if(t){var r=K;(r.e??(r.e=[])).push({fn:e,effect:R,reaction:q})}else return Fn(e)}function Fn(e){return tt(Tr|Or,e,!1)}function Vo(e){return Bn(),tt(Ut|Or,e,!0)}function Po(e){const t=tt(vt,e,!0);return()=>{Ne(t)}}function jo(e){const t=tt(vt,e,!0);return(r={})=>new Promise(n=>{r.outro?qt(t,()=>{Ne(t),n(void 0)}):(Ne(t),n(void 0))})}function Br(e){return tt(Tr,e,!1)}function Ro(e,t){var r=K,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=ur(()=>{e(),!n.ran&&(n.ran=!0,O(r.l.r2,!0),Ue(t))})}function Bo(){var e=K;ur(()=>{if(m(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&xe)!==0&&Oe(r,ot),Ft(r)&&hr(r),t.ran=!1}e.l.r2.v=!1}})}function ur(e){return tt(Ut,e,!0)}function _e(e,t=[],r=xt){const n=t.map(r);return zt(()=>e(...n.map(m)))}function zt(e,t=0){var r=tt(Ut|Ar|t,e,!0);return r}function at(e,t=!0){return tt(Ut|Ge,e,!0,t)}function Yn(e){var t=e.teardown;if(t!==null){const r=Lt,n=q;Qn(!0),Ze(null);try{t.call(null)}finally{Qn(r),Ze(n)}}}function Zn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(En);var n=r.next;(r.f&vt)!==0?r.parent=null:Ne(r,t),r=n}}function Fo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&Ne(t),t=r}}function Ne(e,t=!0){var r=!1;(t||(e.f&yo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yo(e.nodes_start,e.nodes_end),r=!0),Zn(e,t&&!r),fr(e,0),Oe(e,Dr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Yn(e);var i=e.parent;i!==null&&i.first!==null&&Jn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yo(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function Jn(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function qt(e,t){var r=[];Fr(e,r,!0),Kn(r,()=>{Ne(e),t&&t()})}function Kn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Fr(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&or)!==0||(n.f&Ge)!==0;Fr(n,t,o?r:!1),n=i}}}function cr(e){Wn(e,!0)}function Wn(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Ge)!==0;Wn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Vt=[],Yr=[];function Gn(){var e=Vt;Vt=[],Dt(e)}function Zo(){var e=Yr;Yr=[],Dt(e)}function Pt(e){Vt.length===0&&queueMicrotask(Gn),Vt.push(e)}function Jo(){Vt.length>0&&Gn(),Yr.length>0&&Zo()}function Ko(e){var t=R;if((t.f&kn)===0){if((t.f&$r)===0)throw e;t.fn(e)}else Xn(e,t)}function Xn(e,t){for(;t!==null;){if((t.f&$r)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let jt=!1,Rt=null,ht=!1,Lt=!1;function Qn(e){Lt=e}let Bt=[],El=[],q=null,Ye=!1;function Ze(e){q=e}let R=null;function st(e){R=e}let oe=null;function ei(e){q!==null&&q.f&Ur&&(oe===null?oe={reaction:q,sources:[e]}:oe.sources.push(e))}let pe=null,Ce=0,Me=null;function Wo(e){Me=e}let dr=1,vr=0,lt=!1;function ti(){return++dr}function Ft(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&ke)!==0;if(r!==null){var i,o,s=(t&ir)!==0,a=n&&R!==null&&!lt,l=r.length;if(s||a){var c=e,v=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^=ir),a&&v!==null&&(v.f&ke)===0&&(c.f^=ke)}for(i=0;i<l;i++)if(o=r[i],Ft(o)&&Dn(o),o.wv>e.wv)return!0}(!n||R!==null&&!lt)&&Oe(e,xe)}return!1}function ri(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e)||((o.f&Le)!==0?ri(o,t,!1):t===o&&(r?Oe(o,Xe):(o.f&xe)!==0&&Oe(o,ot),gr(o)))}}function ni(e){var h;var t=pe,r=Ce,n=Me,i=q,o=lt,s=oe,a=K,l=Ye,c=e.f;pe=null,Ce=0,Me=null,lt=(c&ke)!==0&&(Ye||!ht||q===null),q=(c&(Ge|vt))===0?e:null,oe=null,Nn(e.ctx),Ye=!1,vr++,e.f|=Ur,e.ac!==null&&(e.ac.abort(En),e.ac=null);try{var v=(0,e.fn)(),d=e.deps;if(pe!==null){var u;if(fr(e,Ce),d!==null&&Ce>0)for(d.length=Ce+pe.length,u=0;u<pe.length;u++)d[Ce+u]=pe[u];else e.deps=d=pe;if(!lt||(c&Le)!==0&&e.reactions!==null)for(u=Ce;u<d.length;u++)((h=d[u]).reactions??(h.reactions=[])).push(e)}else d!==null&&Ce<d.length&&(fr(e,Ce),d.length=Ce);if(ar()&&Me!==null&&!Ye&&d!==null&&(e.f&(Le|ot|Xe))===0)for(u=0;u<Me.length;u++)ri(Me[u],e);return i!==null&&i!==e&&(vr++,Me!==null&&(n===null?n=Me:n.push(...Me))),v}catch(g){Ko(g)}finally{pe=t,Ce=r,Me=n,q=i,lt=o,oe=s,Nn(a),Ye=l,e.f^=Ur}}function Go(e,t){let r=t.reactions;if(r!==null){var n=po.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Le)!==0&&(pe===null||!pe.includes(t))&&(Oe(t,ot),(t.f&(ke|ir))===0&&(t.f^=ir),An(t),fr(t,0))}function fr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Go(e,r[n])}function hr(e){var t=e.f;if((t&Dr)===0){Oe(e,xe);var r=R,n=ht;R=e,ht=!0;try{(t&Ar)!==0?Fo(e):Zn(e),Yn(e);var i=ni(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var o;wn&&To&&(e.f&Xe)!==0&&e.deps}finally{ht=n,R=r}}}function Xo(){try{So()}catch(e){if(Rt!==null)Xn(e,Rt);else throw e}}function ii(){var e=ht;try{var t=0;for(ht=!0;Bt.length>0;){t++>1e3&&Xo();var r=Bt,n=r.length;Bt=[];for(var i=0;i<n;i++){var o=ea(r[i]);Qo(o)}Ht.clear()}}finally{jt=!1,ht=e,Rt=null}}function Qo(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Dr|Qe))===0&&Ft(n)){var i=dr;if(hr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Jn(n):n.fn=null),dr>i&&(n.f&Or)!==0)break}}for(;r<t;r+=1)gr(e[r])}}function gr(e){jt||(jt=!0,queueMicrotask(ii));for(var t=Rt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(vt|Ge))!==0){if((r&xe)===0)return;t.f^=xe}}Bt.push(t)}function ea(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|vt))!==0,o=i&&(n&xe)!==0;if(!o&&(n&Qe)===0){(n&Tr)!==0?t.push(r):i?r.f^=xe:Ft(r)&&hr(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function w(e){for(var t;;){if(Jo(),Bt.length===0)return jt=!1,Rt=null,t;jt=!0,ii()}}function m(e){var t=e.f,r=(t&Le)!==0;if(q!==null&&!Ye){if((oe==null?void 0:oe.reaction)!==q||!(oe!=null&&oe.sources.includes(e))){var n=q.deps;e.rv<vr&&(e.rv=vr,pe===null&&n!==null&&n[Ce]===e?Ce++:pe===null?pe=[e]:(!lt||!pe.includes(e))&&pe.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ke)===0&&(i.f^=ke)}return r&&(i=e,Ft(i)&&Dn(i)),Lt&&Ht.has(e)?Ht.get(e):e.v}function Ue(e){var t=Ye;try{return Ye=!0,e()}finally{Ye=t}}const ta=-7169;function Oe(e,t){e.f=e.f&ta|t}function oi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Re in e)Zr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Re in r&&Zr(r)}}}function Zr(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{Zr(e[n],t)}catch{}const r=Mr(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 ra(e,t){if(t){const r=document.body;e.autofocus=!0,Pt(()=>{document.activeElement===r&&e.focus()})}}function na(e){var t=q,r=R;Ze(null),st(null);try{return e()}finally{Ze(t),st(r)}}const ai=new Set,Jr=new Set;function si(e,t,r,n={}){function i(o){if(n.capture||Zt.call(t,o),!o.cancelBubble)return na(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var o={capture:n,passive:i},s=si(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&lr(()=>{t.removeEventListener(e,s,o)})}function Yt(e){for(var t=0;t<e.length;t++)ai.add(e[t]);for(var r of Jr)r(e)}function Zt(e){var b;var t=this,r=t.ownerDocument,n=e.type,i=((b=e.composedPath)==null?void 0:b.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){At(e,"currentTarget",{configurable:!0,get(){return o||r}});var v=q,d=R;Ze(null),st(null);try{for(var u,h=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(rr(k)){var[E,...I]=k;E.apply(o,[e,...I])}else k.call(o,e)}catch(p){u?h.push(p):u=p}if(e.cancelBubble||g===t||g===null)break;o=g}if(u){for(let p of h)queueMicrotask(()=>{throw p});throw u}}finally{e.__root=t,delete e.currentTarget,Ze(v),st(d)}}}function li(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=R;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function te(e,t){var r=(t&mn)!==0,n=(t&ho)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return rt(j,null),j;i===void 0&&(i=li(o?e:"<!>"+e),r||(i=Ie(i)));var s=n||Vn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ie(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function ia(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&mn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return rt(j,null),j;if(!s){var a=li(o),l=Ie(a);if(i)for(s=document.createDocumentFragment();Ie(l);)s.appendChild(Ie(l));else s=Ie(l)}var c=s.cloneNode(!0);if(i){var v=Ie(c),d=c.lastChild;rt(v,d)}else rt(c,c);return c}}function re(e,t){return ia(e,t,"svg")}function gt(){if(H)return rt(j,null),j;var e=document.createDocumentFragment(),t=document.createComment(""),r=St();return e.append(t,r),rt(t,r),e}function N(e,t){if(H){R.nodes_end=j,Et();return}e!==null&&e.before(t)}function oa(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const aa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function sa(e){return aa.includes(e)}const la={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 ua(e){return e=e.toLowerCase(),la[e]??e}const ca=["touchstart","touchmove"];function da(e){return ca.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 ui(e,t){return ci(e,t)}function va(e,t){jr(),t.intro=t.intro??!1;const r=t.target,n=H,i=j;try{for(var o=Ie(r);o&&(o.nodeType!==Ot||o.data!==zr);)o=et(o);if(!o)throw _t;$e(!0),De(o),Et();const s=ci(e,{...t,anchor:o});if(j===null||j.nodeType!==Ot||j.data!==Ir)throw sr(),_t;return $e(!1),s}catch(s){if(s===_t)return t.recover===!1&&zo(),jr(),Rn(r),$e(!1),ui(e,t);throw s}finally{$e(n),De(i)}}const It=new Map;function ci(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){jr();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var g=da(h);t.addEventListener(h,Zt,{passive:g});var k=It.get(h);k===void 0?(document.addEventListener(h,Zt,{passive:g}),It.set(h,1)):It.set(h,k+1)}}};l(Nr(ai)),Jr.add(l);var c=void 0,v=jo(()=>{var d=r??t.appendChild(St());return at(()=>{if(o){Q({});var u=K;u.c=o}i&&(n.$$events=i),H&&rt(d,null),c=e(d,n)||{},H&&(R.nodes_end=j),o&&ee()}),()=>{var g;for(var u of a){t.removeEventListener(u,Zt);var h=It.get(u);--h===0?(document.removeEventListener(u,Zt),It.delete(u)):It.set(u,h)}Jr.delete(l),d!==r&&((g=d.parentNode)==null||g.removeChild(d))}});return Kr.set(c,v),c}let Kr=new WeakMap;function fa(e,t){const r=Kr.get(e);return r?(Kr.delete(e),r(t)):Promise.resolve()}function Kt(e){K===null&&$o(),yt&&K.l!==null?ha(K).m.push(e):Rr(()=>{const t=Ue(e);if(typeof t=="function")return t})}function ha(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){H&&r===0&&Et();var i=e,o=null,s=null,a=we,l=r>0?or:0,c=!1;const v=(u,h=!0)=>{c=!0,d(h,u)},d=(u,h)=>{if(a===(a=u))return;let g=!1;if(H&&n!==-1){if(r===0){const E=Hn(i);E===zr?n=0:E===Lr?n=1/0:(n=parseInt(E.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=Pr(),De(i),$e(!1),g=!0,n=-1)}a?(o?cr(o):h&&(o=at(()=>h(i))),s&&qt(s,()=>{s=null})):(s?cr(s):h&&(s=at(()=>h(i,[r+1,n]))),o&&qt(o,()=>{o=null})),g&&$e(!0)};zt(()=>{c=!1,t(v),c||d(null,null)},l),H&&(i=j)}function ga(e,t){return t}function ba(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Fr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Rn(l),l.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}Kn(i,()=>{for(var c=0;c<o;c++){var v=t[c];a||(n.delete(v.k),ut(e,v.prev,v.next)),Ne(v.e,!a)}})}function di(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&bn)!==0;if(l){var c=e;s=H?De(Ie(c)):c.appendChild(St())}H&&Et();var v=null,d=!1,u=Tn(()=>{var h=r();return rr(h)?h:h==null?[]:Nr(h)});zt(()=>{var h=m(u),g=h.length;if(d&&g===0)return;d=g===0;let k=!1;if(H){var E=Hn(s)===Lr;E!==(g===0)&&(s=Pr(),De(s),$e(!1),k=!0)}if(H){for(var I=null,b,p=0;p<g;p++){if(j.nodeType===Ot&&j.data===Ir){s=j,k=!0,$e(!1);break}var f=h[p],y=n(f,p);b=vi(j,a,I,null,f,y,p,i,t,r),a.items.set(y,b),I=b}g>0&&De(Pr())}H||pa(h,a,s,i,t,n,r),o!==null&&(g===0?v?cr(v):v=at(()=>o(s)):v!==null&&qt(v,()=>{v=null})),k&&$e(!0),m(u)}),H&&(s=j)}function pa(e,t,r,n,i,o,s){var A,Y,ne,le;var a=(i&so)!==0,l=(i&(wt|Sr))!==0,c=e.length,v=t.items,d=t.first,u=d,h,g=null,k,E=[],I=[],b,p,f,y;if(a)for(y=0;y<c;y+=1)b=e[y],p=o(b,y),f=v.get(p),f!==void 0&&((A=f.a)==null||A.measure(),(k??(k=new Set)).add(f));for(y=0;y<c;y+=1){if(b=e[y],p=o(b,y),f=v.get(p),f===void 0){var C=u?u.e.nodes_start:r;g=vi(C,t,g,g===null?t.first:g.next,b,p,y,n,i,s),v.set(p,g),E=[],I=[],u=g.next;continue}if(l&&ma(f,b,y,i),(f.e.f&Qe)!==0&&(cr(f.e),a&&((Y=f.a)==null||Y.unfix(),(k??(k=new Set)).delete(f))),f!==u){if(h!==void 0&&h.has(f)){if(E.length<I.length){var M=I[0],U;g=M.prev;var L=E[0],$=E[E.length-1];for(U=0;U<E.length;U+=1)fi(E[U],M,r);for(U=0;U<I.length;U+=1)h.delete(I[U]);ut(t,L.prev,$.next),ut(t,g,L),ut(t,$,M),u=M,g=$,y-=1,E=[],I=[]}else h.delete(f),fi(f,u,r),ut(t,f.prev,f.next),ut(t,f,g===null?t.first:g.next),ut(t,g,f),g=f;continue}for(E=[],I=[];u!==null&&u.k!==p;)(u.e.f&Qe)===0&&(h??(h=new Set)).add(u),I.push(u),u=u.next;if(u===null)continue;f=u}E.push(f),g=f,u=f.next}if(u!==null||h!==void 0){for(var F=h===void 0?[]:Nr(h);u!==null;)(u.e.f&Qe)===0&&F.push(u),u=u.next;var V=F.length;if(V>0){var T=(i&bn)!==0&&c===0?r:null;if(a){for(y=0;y<V;y+=1)(ne=F[y].a)==null||ne.measure();for(y=0;y<V;y+=1)(le=F[y].a)==null||le.fix()}ba(t,F,T,v)}}a&&Pt(()=>{var X;if(k!==void 0)for(f of k)(X=f.a)==null||X.apply()}),R.first=t.first&&t.first.e,R.last=g&&g.e}function ma(e,t,r,n){(n&wt)!==0&&Vr(e.v,t),(n&Sr)!==0?Vr(e.i,r):e.i=r}function vi(e,t,r,n,i,o,s,a,l,c){var v=(l&wt)!==0,d=(l&lo)===0,u=v?d?ft(i,!1,!1):Ct(i):i,h=(l&Sr)===0?s:Ct(s),g={i:h,v:u,k:o,a:null,e:null,prev:r,next:n};try{return g.e=at(()=>a(e,u,h,c),H),g.e.prev=r&&r.e,g.e.next=n&&n.e,r===null?t.first=g:(r.next=g,r.e.next=g.e),n!==null&&(n.prev=g,n.e.prev=g.e),g}finally{}}function fi(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=et(o);i.before(o),o=s}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function bt(e,t,r,n,i){var a;H&&Et();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function wa(e,t,r){H&&Et();var n=e,i,o;zt(()=>{i!==(i=t())&&(o&&(qt(o),o=null),i&&(o=at(()=>r(n,i))))},or),H&&(n=j)}function ct(e,t){Pt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function _a(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&(Ne(n),n=null),r&&(n=at(()=>{Br(()=>r(e))})))})}function hi(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=hi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ya(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=hi(e))&&(n&&(n+=" "),n+=t);return n}function ka(e){return typeof e=="object"?ya(e):e??""}const gi=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function xa(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||gi.includes(n[s-1]))&&(a===n.length||gi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function bi(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 Wr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ca(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(Wr)),i&&l.push(...Object.keys(i).map(Wr));var c=0,v=-1;const k=e.length;for(var d=0;d<k;d++){var u=e[d];if(a?u==="/"&&e[d-1]==="*"&&(a=!1):o?o===u&&(o=!1):u==="/"&&e[d+1]==="*"?a=!0:u==='"'||u==="'"?o=u:u==="("?s++:u===")"&&s--,!a&&o===!1&&s===0){if(u===":"&&v===-1)v=d;else if(u===";"||d===k-1){if(v!==-1){var h=Wr(e.substring(c,v).trim());if(!l.includes(h)){u!==";"&&d++;var g=e.substring(c,d).trim();r+=" "+g+";"}}c=d+1,v=-1}}}}return n&&(r+=bi(n)),i&&(r+=bi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ee(e,t,r,n,i,o){var s=e.__className;if(H||s!==r||s===void 0){var a=xa(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 c=!!o[l];(i==null||c!==!!i[l])&&e.classList.toggle(l,c)}return o}function Gr(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 Ea(e,t,r,n){var i=e.__style;if(H||i!==t){var o=Ca(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Gr(e,r==null?void 0:r[0],n[0]),Gr(e,r==null?void 0:r[1],n[1],"important")):Gr(e,r,n));return n}function Xr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!rr(t))return Ho();for(var n of e.options)n.selected=t.includes(pi(n));return}for(n of e.options){var i=pi(n);if(Do(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Sa(e){var t=new MutationObserver(()=>{Xr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),lr(()=>{t.disconnect()})}function pi(e){return"__value"in e?e.__value:e.value}const Nt=Symbol("class"),Wt=Symbol("style"),mi=Symbol("is custom element"),wi=Symbol("is html");function za(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function W(e,t,r,n){var i=_i(e);H&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ko]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ki(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function La(e,t,r,n,i=!1){var o=_i(e),s=o[mi],a=!o[wi];let l=H&&s;l&&$e(!1);var c=t||{},v=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=ka(r.class):(n||r[Nt])&&(r.class=null),r[Wt]&&(r.style??(r.style=null));var u=ki(e);for(const p in r){let f=r[p];if(v&&p==="value"&&f==null){e.value=e.__value="",c[p]=f;continue}if(p==="class"){var h=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ee(e,h,f,n,t==null?void 0:t[Nt],r[Nt]),c[p]=f,c[Nt]=r[Nt];continue}if(p==="style"){Ea(e,f,t==null?void 0:t[Wt],r[Wt]),c[p]=f,c[Wt]=r[Wt];continue}var g=c[p];if(!(f===g&&!(f===void 0&&e.hasAttribute(p)))){c[p]=f;var k=p[0]+p[1];if(k!=="$$")if(k==="on"){const y={},C="$$"+p;let M=p.slice(2);var E=sa(M);if(oa(M)&&(M=M.slice(0,-7),y.capture=!0),!E&&g){if(f!=null)continue;e.removeEventListener(M,c[C],y),c[C]=null}if(f!=null)if(E)e[`__${M}`]=f,Yt([M]);else{let U=function(L){c[p].call(this,L)};c[C]=si(M,e,U,y)}else E&&(e[`__${M}`]=void 0)}else if(p==="style")W(e,p,f);else if(p==="autofocus")ra(e,!!f);else if(!s&&(p==="__value"||p==="value"&&f!=null))e.value=e.__value=f;else if(p==="selected"&&v)za(e,f);else{var I=p;a||(I=ua(I));var b=I==="defaultValue"||I==="defaultChecked";if(f==null&&!s&&!b)if(o[p]=null,I==="value"||I==="checked"){let y=e;const C=t===void 0;if(I==="value"){let M=y.defaultValue;y.removeAttribute(I),y.defaultValue=M,y.value=y.__value=C?M:null}else{let M=y.defaultChecked;y.removeAttribute(I),y.defaultChecked=M,y.checked=C?M:!1}}else e.removeAttribute(p);else b||u.includes(I)&&(s||typeof f!="string")?e[I]=f:typeof f!="function"&&W(e,I,f)}}}return l&&$e(!0),c}function Gt(e,t,r=[],n,i=!1,o=xt){const s=r.map(o);var a=void 0,l={},c=e.nodeName==="SELECT",v=!1;if(zt(()=>{var u=t(...s.map(m)),h=La(e,a,u,n,i);v&&c&&"value"in u&&Xr(e,u.value);for(let k of Object.getOwnPropertySymbols(l))u[k]||Ne(l[k]);for(let k of Object.getOwnPropertySymbols(u)){var g=u[k];k.description===bo&&(!a||g!==a[k])&&(l[k]&&Ne(l[k]),l[k]=at(()=>_a(e,()=>g))),h[k]=g}a=h}),c){var d=e;Br(()=>{Xr(d,a.value,!0),Sa(d)})}v=!0}function _i(e){return e.__attributes??(e.__attributes={[mi]:e.nodeName.includes("-"),[wi]:e.namespaceURI===go})}var yi=new Map;function ki(e){var t=yi.get(e.nodeName);if(t)return t;yi.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=Mr(n)}return t}function xi(e,t){return e===t||(e==null?void 0:e[Re])===t}function dt(e={},t,r,n){return Br(()=>{var i,o;return ur(()=>{i=o,o=(n==null?void 0:n())||[],Ue(()=>{e!==r(...o)&&(t(e,...o),i&&xi(r(...i),e)&&t(null,...i))})}),()=>{Pt(()=>{o&&xi(r(...o),e)&&t(null,...o)})}}),e}function Ia(e=!1){const t=K,r=t.l.u;if(!r)return;let n=()=>oi(t.s);if(e){let i=0,o={};const s=xt(()=>{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=()=>m(s)}r.b.length&&Vo(()=>{Ci(t,n),Dt(r.b)}),Rr(()=>{const i=Ue(()=>r.m.map(_o));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Rr(()=>{Ci(t,n),Dt(r.a)})}function Ci(e,t){if(e.l.s)for(const r of e.l.s)m(r);t()}function Qr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),it;const n=Ue(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Mt=[];function Na(e,t){return{subscribe:br(e,t).subscribe}}function br(e,t=it){let r=null;const n=new Set;function i(a){if(Ln(e,a)&&(e=a,r)){const l=!Mt.length;for(const c of n)c[1](),Mt.push(c,e);if(l){for(let c=0;c<Mt.length;c+=2)Mt[c][0](Mt[c+1]);Mt.length=0}}}function o(a){i(a(e))}function s(a,l=it){const c=[a,l];return n.add(c),n.size===1&&(r=t(i,o)||it),a(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Ma(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Na(r,(s,a)=>{let l=!1;const c=[];let v=0,d=it;const u=()=>{if(v)return;d();const g=t(n?c[0]:c,s,a);o?s(g):d=typeof g=="function"?g:it},h=i.map((g,k)=>Qr(g,E=>{c[k]=E,v&=~(1<<k),l&&u()},()=>{v|=1<<k}));return l=!0,u(),function(){Dt(h),d(),l=!1}})}function Ta(e){let t;return Qr(e,r=>t=r)(),t}let pr=!1,en=Symbol();function Te(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:it});if(n.store!==e&&!(en in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=it;else{var i=!0;n.unsubscribe=Qr(e,o=>{i?n.source.v=o:O(n.source,o)}),i=!1}return e&&en in r?Ta(e):m(n.source)}function Xt(){const e={};function t(){lr(()=>{for(var r in e)e[r].unsubscribe();At(e,en,{enumerable:!1,value:!0})})}return[e,t]}function Aa(e){var t=pr;try{return pr=!1,[e(),pr]}finally{pr=t}}const $a={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function mr(e,t,r){return new Proxy({props:e,exclude:t},$a)}const Da={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,pn)),e.special[t](r),Un(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),Un(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 Ei(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},Da)}const Ua={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if($t(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];$t(i)&&(i=i());const o=We(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if($t(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Re||t===Hr)return!1;for(let r of e.props)if($t(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if($t(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function Si(...e){return new Proxy({props:e},Ua)}function Oa(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function _(e,t,r,n){var I;var i=!yt||(r&co)!==0,o=(r&vo)!==0,s=(r&fo)!==0,a=n,l=!0,c=()=>(l&&(l=!1,a=s?Ue(n):n),a),v;if(o){var d=Re in e||Hr in e;v=((I=We(e,t))==null?void 0:I.set)??(d&&t in e?b=>e[t]=b:void 0)}var u,h=!1;o?[u,h]=Aa(()=>e[t]):u=e[t],u===void 0&&n!==void 0&&(u=c(),v&&(i&&Lo(),v(u)));var g;if(i?g=()=>{var b=e[t];return b===void 0?c():(l=!0,b)}:g=()=>{var b=e[t];return b!==void 0&&(a=void 0),b===void 0?a:b},i&&(r&pn)===0)return g;if(v){var k=e.$$legacy;return function(b,p){return arguments.length>0?((!i||!p||k||h)&&v(p?g():b),b):g()}}var E=((r&uo)!==0?xt:Tn)(g);return o&&m(E),function(b,p){if(arguments.length>0){const f=p?m(E):i&&o?kt(b):b;return O(E,f),a!==void 0&&(a=f),b}return Oa(E)?E.v:m(E)}}function Ha(e){return new qa(e)}class qa{constructor(t){hn(this,nt);hn(this,Ae);var o;var r=new Map,n=(s,a)=>{var l=ft(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Hr?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return O(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});gn(this,Ae,(t.hydrate?va:ui)(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(),gn(this,nt,i.$$events);for(const s of Object.keys(ye(this,Ae)))s==="$set"||s==="$destroy"||s==="$on"||At(this,s,{get(){return ye(this,Ae)[s]},set(a){ye(this,Ae)[s]=a},enumerable:!0});ye(this,Ae).$set=s=>{Object.assign(i,s)},ye(this,Ae).$destroy=()=>{fa(ye(this,Ae))}}$set(t){ye(this,Ae).$set(t)}$on(t,r){ye(this,nt)[t]=ye(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return ye(this,nt)[t].push(n),()=>{ye(this,nt)[t]=ye(this,nt)[t].filter(i=>i!==n)}}$destroy(){ye(this,Ae).$destroy()}}nt=new WeakMap,Ae=new WeakMap;let zi;typeof HTMLElement=="function"&&(zi=class extends HTMLElement{constructor(t,r,n){super();ze(this,"$$ctor");ze(this,"$$s");ze(this,"$$c");ze(this,"$$cn",!1);ze(this,"$$d",{});ze(this,"$$r",!1);ze(this,"$$p_d",{});ze(this,"$$l",{});ze(this,"$$l_u",new Map);ze(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),N(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Va(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=wr(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Ha({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Po(()=>{ur(()=>{var i;this.$$r=!0;for(const o of nr(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=wr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=wr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function wr(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Va(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ae(e,t,r,n,i,o){let s=class extends zi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return nr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return nr(t).forEach(a=>{At(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=wr(a,l,t),this.$$d[a]=l;var c=this.$$c;if(c){var v=(d=We(c,a))==null?void 0:d.get;v?c[a]=l:c.$set({[a]:l})}}})}),n.forEach(a=>{At(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Pa=te("<a><!></a>"),ja=te("<button><!></button>");const Ra={hash:"svelte-zsrcxo",code:`
|
|
1
|
+
(function(D,Y){typeof exports=="object"&&typeof module<"u"?Y(exports):typeof define=="function"&&define.amd?define(["exports"],Y):(D=typeof globalThis<"u"?globalThis:D||self,Y(D.graymatter={}))})(this,function(D){"use strict";var hl=Object.defineProperty;var eo=D=>{throw TypeError(D)};var gl=(D,Y,se)=>Y in D?hl(D,Y,{enumerable:!0,configurable:!0,writable:!0,value:se}):D[Y]=se;var ze=(D,Y,se)=>gl(D,typeof Y!="symbol"?Y+"":Y,se),to=(D,Y,se)=>Y.has(D)||eo("Cannot "+se);var ye=(D,Y,se)=>(to(D,Y,"read from private field"),se?se.call(D):Y.get(D)),vn=(D,Y,se)=>Y.has(D)?eo("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(D):Y.set(D,se),fn=(D,Y,se,wt)=>(to(D,Y,"write to private field"),wt?wt.call(D,se):Y.set(D,se),se);var Ri,nt,$e;typeof window<"u"&&((Ri=window.__svelte??(window.__svelte={})).v??(Ri.v=new Set)).add("5");const se=1,wt=2,hn=4,ro=8,no=16,io=1,oo=2,gn=4,ao=8,so=16,bn=1,lo=2,Er="[",Sr="[!",zr="]",_t={},we=Symbol(),uo="http://www.w3.org/1999/xhtml",co="@attach",pn=!1;var rr=Array.isArray,vo=Array.prototype.indexOf,Lr=Array.from,nr=Object.keys,$t=Object.defineProperty,We=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,fo=Object.prototype,ho=Array.prototype,Ir=Object.getPrototypeOf,wn=Object.isExtensible;function Dt(e){return typeof e=="function"}const it=()=>{};function go(e){return e()}function At(e){for(var t=0;t<e.length;t++)e[t]()}const Le=2,Mr=4,Ut=8,Nr=16,Ge=32,vt=64,Tr=128,ke=256,ir=512,xe=1024,Xe=2048,ot=4096,Qe=8192,$r=16384,_n=32768,or=65536,yn=1<<17,bo=1<<18,kn=1<<19,Dr=1<<20,Ar=1<<21,Be=Symbol("$state"),Ur=Symbol("legacy props"),po=Symbol(""),xn=new class extends Error{constructor(){super(...arguments);ze(this,"name","StaleReactionError");ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Cn=3,Ht=8;function En(e){return e===this.v}function Sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zn(e){return!Sn(e,this.v)}function mo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _o(e){throw new Error("https://svelte.dev/e/effect_orphan")}function yo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ko(){throw new Error("https://svelte.dev/e/hydration_failed")}function xo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Co(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Eo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function So(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let yt=!1,zo=!1;function Lo(){yt=!0}function Io(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let J=null;function Ln(e){J=e}function Q(e,t=!1,r){var n=J={p:J,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};yt&&!t&&(J.l={s:null,u:null,r1:[],r2:Ct(!1)}),lr(()=>{n.d=!0})}function ee(e){const t=J;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=B,n=V;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];st(o.effect),Ye(o.reaction),Bn(o.fn)}}finally{st(r),Ye(n)}}J=t.p,t.m=!0}return e||{}}function ar(){return!yt||J!==null&&J.l===null}function kt(e){if(typeof e!="object"||e===null||Be in e)return e;const t=Ir(e);if(t!==fo&&t!==ho)return e;var r=new Map,n=rr(e),i=be(0),o=V,s=a=>{var l=V;Ye(o);var u=a();return Ye(l),u};return n&&r.set("length",be(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Co();var v=r.get(l);return v===void 0?v=s(()=>{var d=be(u.value);return r.set(l,d),d}):U(v,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>be(we));r.set(l,c),Hr(i)}}else{if(n&&typeof l=="string"){var v=r.get("length"),d=Number(l);Number.isInteger(d)&&d<v.v&&U(v,d)}U(u,we),Hr(i)}return!0},get(a,l,u){var g;if(l===Be)return e;var v=r.get(l),d=l in a;if(v===void 0&&(!d||(g=We(a,l))!=null&&g.writable)&&(v=s(()=>{var h=kt(d?a[l]:we),k=be(h);return k}),r.set(l,v)),v!==void 0){var c=m(v);return c===we?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var v=r.get(l);v&&(u.value=m(v))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==we)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===Be)return!0;var u=r.get(l),v=u!==void 0&&u.v!==we||Reflect.has(a,l);if(u!==void 0||B!==null&&(!v||(c=We(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var g=v?kt(a[l]):we,h=be(g);return h}),r.set(l,u));var d=m(u);if(d===we)return!1}return v},set(a,l,u,v){var f;var d=r.get(l),c=l in a;if(n&&l==="length")for(var g=u;g<d.v;g+=1){var h=r.get(g+"");h!==void 0?U(h,we):g in a&&(h=s(()=>be(we)),r.set(g+"",h))}if(d===void 0)(!c||(f=We(a,l))!=null&&f.writable)&&(d=s(()=>be(void 0)),U(d,kt(u)),r.set(l,d));else{c=d.v!==we;var k=s(()=>kt(u));U(d,k)}var E=Reflect.getOwnPropertyDescriptor(a,l);if(E!=null&&E.set&&E.set.call(v,u),!c){if(n&&typeof l=="string"){var L=r.get("length"),p=Number(l);Number.isInteger(p)&&p>=L.v&&U(L,p+1)}Hr(i)}return!0},ownKeys(a){m(i);var l=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==we});for(var[u,v]of r)v.v!==we&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Eo()}})}function Hr(e,t=1){U(e,e.v+t)}function In(e){try{if(e!==null&&typeof e=="object"&&Be in e)return e[Be]}catch{}return e}function Mo(e,t){return Object.is(In(e),In(t))}function xt(e){var t=Le|Xe,r=V!==null&&(V.f&Le)!==0?V:null;return B===null||r!==null&&(r.f&ke)!==0?t|=ke:B.f|=kn,{ctx:J,deps:null,effects:null,equals:En,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??B,ac:null}}function ne(e){const t=xt(e);return Xn(t),t}function Mn(e){const t=xt(e);return t.equals=zn,t}function Nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Me(t[r])}}function No(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return t;t=t.parent}return null}function Tn(e){var t,r=B;st(No(e));try{Nn(e),t=ti(e)}finally{st(r)}return t}function $n(e){var t=Tn(e);if(e.equals(t)||(e.v=t,e.wv=Qn()),!Lt){var r=(lt||(e.f&ke)!==0)&&e.deps!==null?ot:xe;He(e,r)}}const Ot=new Map;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:En,rv:0,wv:0};return r}function be(e,t){const r=Ct(e);return Xn(r),r}function ft(e,t=!1,r=!0){var i;const n=Ct(e);return t||(n.equals=zn),yt&&r&&J!==null&&J.l!==null&&((i=J.l).s??(i.s=[])).push(n),n}function To(e,t){return U(e,Ue(()=>m(e))),t}function U(e,t,r=!1){V!==null&&(!Ze||(V.f&yn)!==0)&&ar()&&(V.f&(Le|Nr|yn))!==0&&!((ie==null?void 0:ie.reaction)===V&&ie.sources.includes(e))&&So();let n=r?kt(t):t;return Or(e,n)}function Or(e,t){if(!e.equals(t)){var r=e.v;Lt?Ot.set(e,t):Ot.set(e,r),e.v=t,(e.f&Le)!==0&&((e.f&Xe)!==0&&Tn(e),He(e,(e.f&ke)===0?xe:ot)),e.wv=Qn(),An(e,Xe),ar()&&B!==null&&(B.f&xe)!==0&&(B.f&(Ge|vt))===0&&(Ne===null?Fo([e]):Ne.push(e))}return t}function Dn(e,t=1){var r=m(e),n=t===1?r++:r--;return U(e,r),n}function An(e,t){var r=e.reactions;if(r!==null)for(var n=ar(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===B||(He(s,t),(a&(xe|ke))!==0&&((a&Le)!==0?An(s,ot):gr(s))))}}function sr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function $o(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function De(e){H=e}let R;function Ae(e){if(e===null)throw sr(),_t;return R=e}function Et(){return Ae(et(R))}function C(e){if(H){if(et(R)!==null)throw sr(),_t;R=e}}function je(e=1){if(H){for(var t=e,r=R;t--;)r=et(r);R=r}}function qr(){for(var e=0,t=R;;){if(t.nodeType===Ht){var r=t.data;if(r===zr){if(e===0)return t;e-=1}else(r===Er||r===Sr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function Un(e){if(!e||e.nodeType!==Ht)throw sr(),_t;return e.data}var Hn,On,qn,Vn;function Vr(){if(Hn===void 0){Hn=window,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qn=We(t,"firstChild").get,Vn=We(t,"nextSibling").get,wn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wn(r)&&(r.__t=void 0)}}function St(e=""){return document.createTextNode(e)}function Ie(e){return qn.call(e)}function et(e){return Vn.call(e)}function z(e,t){if(!H)return Ie(e);var r=Ie(R);if(r===null)r=R.appendChild(St());else if(t&&r.nodeType!==Cn){var n=St();return r==null||r.before(n),Ae(n),n}return Ae(r),r}function Fe(e,t){if(!H){var r=Ie(e);return r instanceof Comment&&r.data===""?et(r):r}return R}function de(e,t=1,r=!1){let n=H?R:e;for(var i;t--;)i=n,n=et(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==Cn){var o=St();return n===null?i==null||i.after(o):n.before(o),Ae(o),o}return Ae(n),n}function Pn(e){e.textContent=""}function Rn(e){B===null&&V===null&&_o(),V!==null&&(V.f&ke)!==0&&B===null&&wo(),Lt&&mo()}function Do(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=B,o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{hr(o),o.f|=_n}catch(l){throw Me(o),l}else t!==null&&gr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(kn|Tr))===0;if(!s&&n&&(i!==null&&Do(o,i),V!==null&&(V.f&Le)!==0)){var a=V;(a.effects??(a.effects=[])).push(o)}return o}function lr(e){const t=tt(Ut,null,!1);return He(t,xe),t.teardown=e,t}function Pr(e){Rn();var t=B!==null&&(B.f&Ge)!==0&&J!==null&&!J.m;if(t){var r=J;(r.e??(r.e=[])).push({fn:e,effect:B,reaction:V})}else return Bn(e)}function Bn(e){return tt(Mr|Ar,e,!1)}function Ao(e){return Rn(),tt(Ut|Ar,e,!0)}function Uo(e){const t=tt(vt,e,!0);return()=>{Me(t)}}function Ho(e){const t=tt(vt,e,!0);return(r={})=>new Promise(n=>{r.outro?qt(t,()=>{Me(t),n(void 0)}):(Me(t),n(void 0))})}function Rr(e){return tt(Mr,e,!1)}function Oo(e,t){var r=J,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=ur(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),Ue(t))})}function qo(){var e=J;ur(()=>{if(m(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&xe)!==0&&He(r,ot),Ft(r)&&hr(r),t.ran=!1}e.l.r2.v=!1}})}function ur(e){return tt(Ut,e,!0)}function _e(e,t=[],r=xt){const n=t.map(r);return zt(()=>e(...n.map(m)))}function zt(e,t=0){var r=tt(Ut|Nr|t,e,!0);return r}function at(e,t=!0){return tt(Ut|Ge,e,!0,t)}function jn(e){var t=e.teardown;if(t!==null){const r=Lt,n=V;Gn(!0),Ye(null);try{t.call(null)}finally{Gn(r),Ye(n)}}}function Fn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(xn);var n=r.next;(r.f&vt)!==0?r.parent=null:Me(r,t),r=n}}function Vo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&Me(t),t=r}}function Me(e,t=!0){var r=!1;(t||(e.f&bo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Po(e.nodes_start,e.nodes_end),r=!0),Fn(e,t&&!r),fr(e,0),He(e,$r);var n=e.transitions;if(n!==null)for(const o of n)o.stop();jn(e);var i=e.parent;i!==null&&i.first!==null&&Zn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Po(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function Zn(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function qt(e,t){var r=[];Br(e,r,!0),Yn(r,()=>{Me(e),t&&t()})}function Yn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Br(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&or)!==0||(n.f&Ge)!==0;Br(n,t,o?r:!1),n=i}}}function cr(e){Kn(e,!0)}function Kn(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Ge)!==0;Kn(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Vt=[],jr=[];function Jn(){var e=Vt;Vt=[],At(e)}function Ro(){var e=jr;jr=[],At(e)}function Pt(e){Vt.length===0&&queueMicrotask(Jn),Vt.push(e)}function Bo(){Vt.length>0&&Jn(),jr.length>0&&Ro()}function jo(e){var t=B;if((t.f&_n)===0){if((t.f&Tr)===0)throw e;t.fn(e)}else Wn(e,t)}function Wn(e,t){for(;t!==null;){if((t.f&Tr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Rt=!1,Bt=null,ht=!1,Lt=!1;function Gn(e){Lt=e}let jt=[],bl=[],V=null,Ze=!1;function Ye(e){V=e}let B=null;function st(e){B=e}let ie=null;function Xn(e){V!==null&&V.f&Dr&&(ie===null?ie={reaction:V,sources:[e]}:ie.sources.push(e))}let pe=null,Ce=0,Ne=null;function Fo(e){Ne=e}let dr=1,vr=0,lt=!1;function Qn(){return++dr}function Ft(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&ot)!==0){var r=e.deps,n=(t&ke)!==0;if(r!==null){var i,o,s=(t&ir)!==0,a=n&&B!==null&&!lt,l=r.length;if(s||a){var u=e,v=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=ir),a&&v!==null&&(v.f&ke)===0&&(u.f^=ke)}for(i=0;i<l;i++)if(o=r[i],Ft(o)&&$n(o),o.wv>e.wv)return!0}(!n||B!==null&&!lt)&&He(e,xe)}return!1}function ei(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(ie==null?void 0:ie.reaction)===V&&ie.sources.includes(e)||((o.f&Le)!==0?ei(o,t,!1):t===o&&(r?He(o,Xe):(o.f&xe)!==0&&He(o,ot),gr(o)))}}function ti(e){var g;var t=pe,r=Ce,n=Ne,i=V,o=lt,s=ie,a=J,l=Ze,u=e.f;pe=null,Ce=0,Ne=null,lt=(u&ke)!==0&&(Ze||!ht||V===null),V=(u&(Ge|vt))===0?e:null,ie=null,Ln(e.ctx),Ze=!1,vr++,e.f|=Dr,e.ac!==null&&(e.ac.abort(xn),e.ac=null);try{var v=(0,e.fn)(),d=e.deps;if(pe!==null){var c;if(fr(e,Ce),d!==null&&Ce>0)for(d.length=Ce+pe.length,c=0;c<pe.length;c++)d[Ce+c]=pe[c];else e.deps=d=pe;if(!lt||(u&Le)!==0&&e.reactions!==null)for(c=Ce;c<d.length;c++)((g=d[c]).reactions??(g.reactions=[])).push(e)}else d!==null&&Ce<d.length&&(fr(e,Ce),d.length=Ce);if(ar()&&Ne!==null&&!Ze&&d!==null&&(e.f&(Le|ot|Xe))===0)for(c=0;c<Ne.length;c++)ei(Ne[c],e);return i!==null&&i!==e&&(vr++,Ne!==null&&(n===null?n=Ne:n.push(...Ne))),v}catch(h){jo(h)}finally{pe=t,Ce=r,Ne=n,V=i,lt=o,ie=s,Ln(a),Ze=l,e.f^=Dr}}function Zo(e,t){let r=t.reactions;if(r!==null){var n=vo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Le)!==0&&(pe===null||!pe.includes(t))&&(He(t,ot),(t.f&(ke|ir))===0&&(t.f^=ir),Nn(t),fr(t,0))}function fr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zo(e,r[n])}function hr(e){var t=e.f;if((t&$r)===0){He(e,xe);var r=B,n=ht;B=e,ht=!0;try{(t&Nr)!==0?Vo(e):Fn(e),jn(e);var i=ti(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var o;pn&&zo&&(e.f&Xe)!==0&&e.deps}finally{ht=n,B=r}}}function Yo(){try{yo()}catch(e){if(Bt!==null)Wn(e,Bt);else throw e}}function ri(){var e=ht;try{var t=0;for(ht=!0;jt.length>0;){t++>1e3&&Yo();var r=jt,n=r.length;jt=[];for(var i=0;i<n;i++){var o=Jo(r[i]);Ko(o)}Ot.clear()}}finally{Rt=!1,ht=e,Bt=null}}function Ko(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&($r|Qe))===0&&Ft(n)){var i=dr;if(hr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Zn(n):n.fn=null),dr>i&&(n.f&Ar)!==0)break}}for(;r<t;r+=1)gr(e[r])}}function gr(e){Rt||(Rt=!0,queueMicrotask(ri));for(var t=Bt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(vt|Ge))!==0){if((r&xe)===0)return;t.f^=xe}}jt.push(t)}function Jo(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|vt))!==0,o=i&&(n&xe)!==0;if(!o&&(n&Qe)===0){(n&Mr)!==0?t.push(r):i?r.f^=xe:Ft(r)&&hr(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function _(e){for(var t;;){if(Bo(),jt.length===0)return Rt=!1,Bt=null,t;Rt=!0,ri()}}function m(e){var t=e.f,r=(t&Le)!==0;if(V!==null&&!Ze){if((ie==null?void 0:ie.reaction)!==V||!(ie!=null&&ie.sources.includes(e))){var n=V.deps;e.rv<vr&&(e.rv=vr,pe===null&&n!==null&&n[Ce]===e?Ce++:pe===null?pe=[e]:(!lt||!pe.includes(e))&&pe.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ke)===0&&(i.f^=ke)}return r&&(i=e,Ft(i)&&$n(i)),Lt&&Ot.has(e)?Ot.get(e):e.v}function Ue(e){var t=Ze;try{return Ze=!0,e()}finally{Ze=t}}const Wo=-7169;function He(e,t){e.f=e.f&Wo|t}function ni(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Be in e)Fr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Be in r&&Fr(r)}}}function Fr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Fr(e[n],t)}catch{}const r=Ir(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=mn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function Go(e,t){if(t){const r=document.body;e.autofocus=!0,Pt(()=>{document.activeElement===r&&e.focus()})}}function Xo(e){var t=V,r=B;Ye(null),st(null);try{return e()}finally{Ye(t),st(r)}}const ii=new Set,Zr=new Set;function oi(e,t,r,n={}){function i(o){if(n.capture||Yt.call(t,o),!o.cancelBubble)return Xo(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var o={capture:n,passive:i},s=oi(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&lr(()=>{t.removeEventListener(e,s,o)})}function Zt(e){for(var t=0;t<e.length;t++)ii.add(e[t]);for(var r of Zr)r(e)}function Yt(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){$t(e,"currentTarget",{configurable:!0,get(){return o||r}});var v=V,d=B;Ye(null),st(null);try{for(var c,g=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(rr(k)){var[E,...L]=k;E.apply(o,[e,...L])}else k.call(o,e)}catch(f){c?g.push(f):c=f}if(e.cancelBubble||h===t||h===null)break;o=h}if(c){for(let f of g)queueMicrotask(()=>{throw f});throw c}}finally{e.__root=t,delete e.currentTarget,Ye(v),st(d)}}}function ai(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=B;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function te(e,t){var r=(t&bn)!==0,n=(t&lo)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return rt(R,null),R;i===void 0&&(i=ai(o?e:"<!>"+e),r||(i=Ie(i)));var s=n||On?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ie(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function Qo(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&bn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return rt(R,null),R;if(!s){var a=ai(o),l=Ie(a);if(i)for(s=document.createDocumentFragment();Ie(l);)s.appendChild(Ie(l));else s=Ie(l)}var u=s.cloneNode(!0);if(i){var v=Ie(u),d=u.lastChild;rt(v,d)}else rt(u,u);return u}}function re(e,t){return Qo(e,t,"svg")}function gt(){if(H)return rt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=St();return e.append(t,r),rt(t,r),e}function M(e,t){if(H){B.nodes_end=R,Et();return}e!==null&&e.before(t)}function ea(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ta=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ra(e){return ta.includes(e)}const na={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ia(e){return e=e.toLowerCase(),na[e]??e}const oa=["touchstart","touchmove"];function aa(e){return oa.includes(e)}function Kt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function si(e,t){return li(e,t)}function sa(e,t){Vr(),t.intro=t.intro??!1;const r=t.target,n=H,i=R;try{for(var o=Ie(r);o&&(o.nodeType!==Ht||o.data!==Er);)o=et(o);if(!o)throw _t;De(!0),Ae(o),Et();const s=li(e,{...t,anchor:o});if(R===null||R.nodeType!==Ht||R.data!==zr)throw sr(),_t;return De(!1),s}catch(s){if(s===_t)return t.recover===!1&&ko(),Vr(),Pn(r),De(!1),si(e,t);throw s}finally{De(n),Ae(i)}}const It=new Map;function li(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Vr();var a=new Set,l=d=>{for(var c=0;c<d.length;c++){var g=d[c];if(!a.has(g)){a.add(g);var h=aa(g);t.addEventListener(g,Yt,{passive:h});var k=It.get(g);k===void 0?(document.addEventListener(g,Yt,{passive:h}),It.set(g,1)):It.set(g,k+1)}}};l(Lr(ii)),Zr.add(l);var u=void 0,v=Ho(()=>{var d=r??t.appendChild(St());return at(()=>{if(o){Q({});var c=J;c.c=o}i&&(n.$$events=i),H&&rt(d,null),u=e(d,n)||{},H&&(B.nodes_end=R),o&&ee()}),()=>{var h;for(var c of a){t.removeEventListener(c,Yt);var g=It.get(c);--g===0?(document.removeEventListener(c,Yt),It.delete(c)):It.set(c,g)}Zr.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return Yr.set(u,v),u}let Yr=new WeakMap;function la(e,t){const r=Yr.get(e);return r?(Yr.delete(e),r(t)):Promise.resolve()}function Jt(e){J===null&&Io(),yt&&J.l!==null?ua(J).m.push(e):Pr(()=>{const t=Ue(e);if(typeof t=="function")return t})}function ua(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){H&&r===0&&Et();var i=e,o=null,s=null,a=we,l=r>0?or:0,u=!1;const v=(c,g=!0)=>{u=!0,d(g,c)},d=(c,g)=>{if(a===(a=c))return;let h=!1;if(H&&n!==-1){if(r===0){const E=Un(i);E===Er?n=0:E===Sr?n=1/0:(n=parseInt(E.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=qr(),Ae(i),De(!1),h=!0,n=-1)}a?(o?cr(o):g&&(o=at(()=>g(i))),s&&qt(s,()=>{s=null})):(s?cr(s):g&&(s=at(()=>g(i,[r+1,n]))),o&&qt(o,()=>{o=null})),h&&De(!0)};zt(()=>{u=!1,t(v),u||d(null,null)},l),H&&(i=R)}function ca(e,t){return t}function da(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Br(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Pn(l),l.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}Yn(i,()=>{for(var u=0;u<o;u++){var v=t[u];a||(n.delete(v.k),ut(e,v.prev,v.next)),Me(v.e,!a)}})}function ui(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&hn)!==0;if(l){var u=e;s=H?Ae(Ie(u)):u.appendChild(St())}H&&Et();var v=null,d=!1,c=Mn(()=>{var g=r();return rr(g)?g:g==null?[]:Lr(g)});zt(()=>{var g=m(c),h=g.length;if(d&&h===0)return;d=h===0;let k=!1;if(H){var E=Un(s)===Sr;E!==(h===0)&&(s=qr(),Ae(s),De(!1),k=!0)}if(H){for(var L=null,p,f=0;f<h;f++){if(R.nodeType===Ht&&R.data===zr){s=R,k=!0,De(!1);break}var b=g[f],w=n(b,f);p=ci(R,a,L,null,b,w,f,i,t,r),a.items.set(w,p),L=p}h>0&&Ae(qr())}H||va(g,a,s,i,t,n,r),o!==null&&(h===0?v?cr(v):v=at(()=>o(s)):v!==null&&qt(v,()=>{v=null})),k&&De(!0),m(c)}),H&&(s=R)}function va(e,t,r,n,i,o,s){var $,K,ve,fe;var a=(i&ro)!==0,l=(i&(se|wt))!==0,u=e.length,v=t.items,d=t.first,c=d,g,h=null,k,E=[],L=[],p,f,b,w;if(a)for(w=0;w<u;w+=1)p=e[w],f=o(p,w),b=v.get(f),b!==void 0&&(($=b.a)==null||$.measure(),(k??(k=new Set)).add(b));for(w=0;w<u;w+=1){if(p=e[w],f=o(p,w),b=v.get(f),b===void 0){var S=c?c.e.nodes_start:r;h=ci(S,t,h,h===null?t.first:h.next,p,f,w,n,i,s),v.set(f,h),E=[],L=[],c=h.next;continue}if(l&&fa(b,p,w,i),(b.e.f&Qe)!==0&&(cr(b.e),a&&((K=b.a)==null||K.unfix(),(k??(k=new Set)).delete(b))),b!==c){if(g!==void 0&&g.has(b)){if(E.length<L.length){var N=L[0],O;h=N.prev;var I=E[0],A=E[E.length-1];for(O=0;O<E.length;O+=1)di(E[O],N,r);for(O=0;O<L.length;O+=1)g.delete(L[O]);ut(t,I.prev,A.next),ut(t,h,I),ut(t,A,N),c=N,h=A,w-=1,E=[],L=[]}else g.delete(b),di(b,c,r),ut(t,b.prev,b.next),ut(t,b,h===null?t.first:h.next),ut(t,h,b),h=b;continue}for(E=[],L=[];c!==null&&c.k!==f;)(c.e.f&Qe)===0&&(g??(g=new Set)).add(c),L.push(c),c=c.next;if(c===null)continue;b=c}E.push(b),h=b,c=b.next}if(c!==null||g!==void 0){for(var F=g===void 0?[]:Lr(g);c!==null;)(c.e.f&Qe)===0&&F.push(c),c=c.next;var q=F.length;if(q>0){var T=(i&hn)!==0&&u===0?r:null;if(a){for(w=0;w<q;w+=1)(ve=F[w].a)==null||ve.measure();for(w=0;w<q;w+=1)(fe=F[w].a)==null||fe.fix()}da(t,F,T,v)}}a&&Pt(()=>{var X;if(k!==void 0)for(b of k)(X=b.a)==null||X.apply()}),B.first=t.first&&t.first.e,B.last=h&&h.e}function fa(e,t,r,n){(n&se)!==0&&Or(e.v,t),(n&wt)!==0?Or(e.i,r):e.i=r}function ci(e,t,r,n,i,o,s,a,l,u){var v=(l&se)!==0,d=(l&no)===0,c=v?d?ft(i,!1,!1):Ct(i):i,g=(l&wt)===0?s:Ct(s),h={i:g,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=at(()=>a(e,c,g,u),H),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?t.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function di(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=et(o);i.before(o),o=s}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function bt(e,t,r,n,i){var a;H&&Et();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function ha(e,t,r){H&&Et();var n=e,i,o;zt(()=>{i!==(i=t())&&(o&&(qt(o),o=null),i&&(o=at(()=>r(n,i))))},or),H&&(n=R)}function ct(e,t){Pt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ga(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&(Me(n),n=null),r&&(n=at(()=>{Rr(()=>r(e))})))})}function vi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=vi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ba(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=vi(e))&&(n&&(n+=" "),n+=t);return n}function pa(e){return typeof e=="object"?ba(e):e??""}const fi=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function ma(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var a=s+o;(s===0||fi.includes(n[s-1]))&&(a===n.length||fi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function hi(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Kr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function wa(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Kr)),i&&l.push(...Object.keys(i).map(Kr));var u=0,v=-1;const k=e.length;for(var d=0;d<k;d++){var c=e[d];if(a?c==="/"&&e[d-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&v===-1)v=d;else if(c===";"||d===k-1){if(v!==-1){var g=Kr(e.substring(u,v).trim());if(!l.includes(g)){c!==";"&&d++;var h=e.substring(u,d).trim();r+=" "+h+";"}}u=d+1,v=-1}}}}return n&&(r+=hi(n)),i&&(r+=hi(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Ee(e,t,r,n,i,o){var s=e.__className;if(H||s!==r||s===void 0){var a=ma(r,n,o);(!H||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function Jr(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function _a(e,t,r,n){var i=e.__style;if(H||i!==t){var o=wa(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Jr(e,r==null?void 0:r[0],n[0]),Jr(e,r==null?void 0:r[1],n[1],"important")):Jr(e,r,n));return n}function Wr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!rr(t))return $o();for(var n of e.options)n.selected=t.includes(gi(n));return}for(n of e.options){var i=gi(n);if(Mo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ya(e){var t=new MutationObserver(()=>{Wr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),lr(()=>{t.disconnect()})}function gi(e){return"__value"in e?e.__value:e.value}const Mt=Symbol("class"),Wt=Symbol("style"),bi=Symbol("is custom element"),pi=Symbol("is html");function ka(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function W(e,t,r,n){var i=mi(e);H&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[po]=r),r==null?e.removeAttribute(t):typeof r!="string"&&_i(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function xa(e,t,r,n,i=!1){var o=mi(e),s=o[bi],a=!o[pi];let l=H&&s;l&&De(!1);var u=t||{},v=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=pa(r.class):(n||r[Mt])&&(r.class=null),r[Wt]&&(r.style??(r.style=null));var c=_i(e);for(const f in r){let b=r[f];if(v&&f==="value"&&b==null){e.value=e.__value="",u[f]=b;continue}if(f==="class"){var g=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ee(e,g,b,n,t==null?void 0:t[Mt],r[Mt]),u[f]=b,u[Mt]=r[Mt];continue}if(f==="style"){_a(e,b,t==null?void 0:t[Wt],r[Wt]),u[f]=b,u[Wt]=r[Wt];continue}var h=u[f];if(!(b===h&&!(b===void 0&&e.hasAttribute(f)))){u[f]=b;var k=f[0]+f[1];if(k!=="$$")if(k==="on"){const w={},S="$$"+f;let N=f.slice(2);var E=ra(N);if(ea(N)&&(N=N.slice(0,-7),w.capture=!0),!E&&h){if(b!=null)continue;e.removeEventListener(N,u[S],w),u[S]=null}if(b!=null)if(E)e[`__${N}`]=b,Zt([N]);else{let O=function(I){u[f].call(this,I)};u[S]=oi(N,e,O,w)}else E&&(e[`__${N}`]=void 0)}else if(f==="style")W(e,f,b);else if(f==="autofocus")Go(e,!!b);else if(!s&&(f==="__value"||f==="value"&&b!=null))e.value=e.__value=b;else if(f==="selected"&&v)ka(e,b);else{var L=f;a||(L=ia(L));var p=L==="defaultValue"||L==="defaultChecked";if(b==null&&!s&&!p)if(o[f]=null,L==="value"||L==="checked"){let w=e;const S=t===void 0;if(L==="value"){let N=w.defaultValue;w.removeAttribute(L),w.defaultValue=N,w.value=w.__value=S?N:null}else{let N=w.defaultChecked;w.removeAttribute(L),w.defaultChecked=N,w.checked=S?N:!1}}else e.removeAttribute(f);else p||c.includes(L)&&(s||typeof b!="string")?e[L]=b:typeof b!="function"&&W(e,L,b)}}}return l&&De(!0),u}function Gt(e,t,r=[],n,i=!1,o=xt){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",v=!1;if(zt(()=>{var c=t(...s.map(m)),g=xa(e,a,c,n,i);v&&u&&"value"in c&&Wr(e,c.value);for(let k of Object.getOwnPropertySymbols(l))c[k]||Me(l[k]);for(let k of Object.getOwnPropertySymbols(c)){var h=c[k];k.description===co&&(!a||h!==a[k])&&(l[k]&&Me(l[k]),l[k]=at(()=>ga(e,()=>h))),g[k]=h}a=g}),u){var d=e;Rr(()=>{Wr(d,a.value,!0),ya(d)})}v=!0}function mi(e){return e.__attributes??(e.__attributes={[bi]:e.nodeName.includes("-"),[pi]:e.namespaceURI===uo})}var wi=new Map;function _i(e){var t=wi.get(e.nodeName);if(t)return t;wi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=mn(n);for(var o in r)r[o].set&&t.push(o);n=Ir(n)}return t}function yi(e,t){return e===t||(e==null?void 0:e[Be])===t}function dt(e={},t,r,n){return Rr(()=>{var i,o;return ur(()=>{i=o,o=(n==null?void 0:n())||[],Ue(()=>{e!==r(...o)&&(t(e,...o),i&&yi(r(...i),e)&&t(null,...i))})}),()=>{Pt(()=>{o&&yi(r(...o),e)&&t(null,...o)})}}),e}function Ca(e=!1){const t=J,r=t.l.u;if(!r)return;let n=()=>ni(t.s);if(e){let i=0,o={};const s=xt(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});n=()=>m(s)}r.b.length&&Ao(()=>{ki(t,n),At(r.b)}),Pr(()=>{const i=Ue(()=>r.m.map(go));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Pr(()=>{ki(t,n),At(r.a)})}function ki(e,t){if(e.l.s)for(const r of e.l.s)m(r);t()}function Gr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),it;const n=Ue(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Nt=[];function Ea(e,t){return{subscribe:br(e,t).subscribe}}function br(e,t=it){let r=null;const n=new Set;function i(a){if(Sn(e,a)&&(e=a,r)){const l=!Nt.length;for(const u of n)u[1](),Nt.push(u,e);if(l){for(let u=0;u<Nt.length;u+=2)Nt[u][0](Nt[u+1]);Nt.length=0}}}function o(a){i(a(e))}function s(a,l=it){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||it),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Sa(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ea(r,(s,a)=>{let l=!1;const u=[];let v=0,d=it;const c=()=>{if(v)return;d();const h=t(n?u[0]:u,s,a);o?s(h):d=typeof h=="function"?h:it},g=i.map((h,k)=>Gr(h,E=>{u[k]=E,v&=~(1<<k),l&&c()},()=>{v|=1<<k}));return l=!0,c(),function(){At(g),d(),l=!1}})}function za(e){let t;return Gr(e,r=>t=r)(),t}let pr=!1,Xr=Symbol();function Te(e,t,r){const n=r[t]??(r[t]={store:null,source:ft(void 0),unsubscribe:it});if(n.store!==e&&!(Xr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=it;else{var i=!0;n.unsubscribe=Gr(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&Xr in r?za(e):m(n.source)}function Xt(){const e={};function t(){lr(()=>{for(var r in e)e[r].unsubscribe();$t(e,Xr,{enumerable:!1,value:!0})})}return[e,t]}function La(e){var t=pr;try{return pr=!1,[e(),pr]}finally{pr=t}}const Ia={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function mr(e,t,r){return new Proxy({props:e,exclude:t},Ia)}const Ma={get(e,t){if(!e.exclude.includes(t))return m(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=y({get[t](){return e.props[t]}},t,gn)),e.special[t](r),Dn(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),Dn(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function xi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Ct(0)},Ma)}const Na={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Dt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];Dt(i)&&(i=i());const o=We(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Dt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Be||t===Ur)return!1;for(let r of e.props)if(Dt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Dt(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function Ci(...e){return new Proxy({props:e},Na)}function Ta(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var L;var i=!yt||(r&oo)!==0,o=(r&ao)!==0,s=(r&so)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?Ue(n):n),a),v;if(o){var d=Be in e||Ur in e;v=((L=We(e,t))==null?void 0:L.set)??(d&&t in e?p=>e[t]=p:void 0)}var c,g=!1;o?[c,g]=La(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),v&&(i&&xo(),v(c)));var h;if(i?h=()=>{var p=e[t];return p===void 0?u():(l=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(a=void 0),p===void 0?a:p},i&&(r&gn)===0)return h;if(v){var k=e.$$legacy;return function(p,f){return arguments.length>0?((!i||!f||k||g)&&v(f?h():p),p):h()}}var E=((r&io)!==0?xt:Mn)(h);return o&&m(E),function(p,f){if(arguments.length>0){const b=f?m(E):i&&o?kt(p):p;return U(E,b),a!==void 0&&(a=b),p}return Ta(E)?E.v:m(E)}}function $a(e){return new Da(e)}class Da{constructor(t){vn(this,nt);vn(this,$e);var o;var r=new Map,n=(s,a)=>{var l=ft(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return m(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Ur?!0:(m(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return U(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});fn(this,$e,(t.hydrate?sa:si)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&_(),fn(this,nt,i.$$events);for(const s of Object.keys(ye(this,$e)))s==="$set"||s==="$destroy"||s==="$on"||$t(this,s,{get(){return ye(this,$e)[s]},set(a){ye(this,$e)[s]=a},enumerable:!0});ye(this,$e).$set=s=>{Object.assign(i,s)},ye(this,$e).$destroy=()=>{la(ye(this,$e))}}$set(t){ye(this,$e).$set(t)}$on(t,r){ye(this,nt)[t]=ye(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return ye(this,nt)[t].push(n),()=>{ye(this,nt)[t]=ye(this,nt)[t].filter(i=>i!==n)}}$destroy(){ye(this,$e).$destroy()}}nt=new WeakMap,$e=new WeakMap;let Ei;typeof HTMLElement=="function"&&(Ei=class extends HTMLElement{constructor(t,r,n){super();ze(this,"$$ctor");ze(this,"$$s");ze(this,"$$c");ze(this,"$$cn",!1);ze(this,"$$d",{});ze(this,"$$r",!1);ze(this,"$$p_d",{});ze(this,"$$l",{});ze(this,"$$l_u",new Map);ze(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),M(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Aa(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=wr(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=$a({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Uo(()=>{ur(()=>{var i;this.$$r=!0;for(const o of nr(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=wr(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=wr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function wr(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Aa(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function oe(e,t,r,n,i,o){let s=class extends Ei{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return nr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return nr(t).forEach(a=>{$t(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=wr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var v=(d=We(u,a))==null?void 0:d.get;v?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{$t(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Ua=te("<a><!></a>"),Ha=te("<button><!></button>");const Oa={hash:"svelte-zsrcxo",code:`
|
|
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 Li(e,t){Q(t,!0),ct(e,Ra);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"),v=_(t,"class",7,""),d=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const u=ie(()=>()=>["usa-button","ai-button",l()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),h=ie(()=>()=>`${m(u)()} ${v()}`.trim());var g=gt(),k=Fe(g);{var E=b=>{var p=Pa();Gt(p,(y,C)=>({class:y,href:o(),onclick:a(),...d,[Nt]:C}),[()=>m(h)(),()=>({disabled:s()})],"svelte-zsrcxo");var f=z(p);bt(f,t,"default",{}),S(p),N(b,p)},I=b=>{var p=ja();Gt(p,y=>({class:y,type:c(),disabled:s(),onclick:a(),...d}),[()=>m(h)()],"svelte-zsrcxo");var f=z(p);bt(f,t,"default",{}),S(p),N(b,p)};G(k,b=>{o()?b(E):b(I,!1)})}return N(e,g),ee({get variant(){return r()},set variant(b="primary"){r(b),w()},get theme(){return n()},set theme(b="default"){n(b),w()},get shape(){return i()},set shape(b="round"){i(b),w()},get href(){return o()},set href(b=void 0){o(b),w()},get disabled(){return s()},set disabled(b=!1){s(b),w()},get onclick(){return a()},set onclick(b){a(b),w()},get size(){return l()},set size(b="medium"){l(b),w()},get type(){return c()},set type(b="button"){c(b),w()},get class(){return v()},set class(b=""){v(b),w()}})}ae(Li,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Ii(e,t){Q(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,""),v=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Li(e,Si({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()}},()=>v,{children:(d,u)=>{var h=gt(),g=Fe(h);bt(g,t,"default",{}),N(d,h)},$$slots:{default:!0}})),ee({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",ae(Ii,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{}},["default"],[],!0));const Qt=typeof window<"u";function Ba(e,t){if(Qt&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Ni(e,t){const r=Ba(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Ni("subNav-selectedId",null);const pt=Ni("subNav-selectedTitle","");function Mi(e,t){if(Qt&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Ti(e,t){const r=Mi(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const He=Ti("globalSideNav-isExpanded",!1),mt=Ti("globalSideNav-selectedItem",null),tn=Ma(mt,e=>e==="discover"),me={toggleExpanded:()=>{He.update(e=>!e)},setExpanded:e=>{He.set(e)},setSelectedItem:e=>{mt.set(e),e==="discover"?He.set(!1):Qt&&window.innerWidth>640&&He.set(!0)},handleLayoutTransition:e=>{if(e)He.set(!1);else{const t=Mi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),He.set(!0)):He.set(!1)}}},_r=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:He,isMenuButtonDisabled:tn,navigationStore:me,selectedItem:mt,selectedSubNavItemTitle:pt},Symbol.toStringTag,{value:"Module"})),Fa=br(!1);var Ya=te('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Za={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 Ai(e,t){Q(t,!0),ct(e,Za);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(He,"$isExpanded",r),s=()=>Te(Fa,"$subNavReady",r),a=()=>Te(pt,"$selectedSubNavItemTitle",r),l=_(t,"customHeaderText",7,"");let c=!1;const v=ie(()=>()=>i()&&i()!=="discover"&&!o()&&!c&&s()),d=ie(()=>()=>l()||a());Kt(()=>{const b=f=>{if(typeof window<"u"&&window.innerWidth<=640)return;let y=null;if(typeof window<"u"&&(y=sessionStorage.getItem("subNav-topLevelTitle"),y))try{y=JSON.parse(y)}catch{}if(typeof y=="string"&&y.trim()!=="")pt.set(y),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y));else{const C=f;C.detail&&C.detail.title&&(pt.set(C.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(C.detail.title)))}},p=f=>{const y=f,{isMobile:C}=y.detail;C||(c=!0,setTimeout(()=>{c=!1},300))};return window.addEventListener("sectionVisible",b),window.addEventListener("layoutTransition",p),()=>{window.removeEventListener("sectionVisible",b),window.removeEventListener("layoutTransition",p)}});var u=Ya();let h;var g=z(u),k=z(g),E=z(k,!0);S(k),S(g),S(u),_e((b,p)=>{h=Ee(u,1,"global-header svelte-1e8dq3f",null,h,b),Jt(E,p)},[()=>({visible:m(v)()}),()=>m(d)()]),N(e,u);var I=ee({get customHeaderText(){return l()},set customHeaderText(b=""){l(b),w()}});return n(),I}ae(Ai,{customHeaderText:{}},[],[],!0);function $i(e,t){Q(t,!0);let r=_(t,"customHeaderText",7,"");return Ai(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),w()}})}customElements.define("graymatter-desktop-header",ae($i,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Ao();var Ja=re('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Ka=re('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Wa=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function rn(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=Wa(),i=z(n);{var o=a=>{var l=Ja();N(a,l)},s=a=>{var l=Ka();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(rn,{isSelected:{}},[],[],!0);var Ga=re('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Xa=re('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Qa=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function nn(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=Qa(),i=z(n);{var o=a=>{var l=Ga();N(a,l)},s=a=>{var l=Xa();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(nn,{isSelected:{}},[],[],!0);var es=re('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),ts=re('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),rs=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function on(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=rs(),i=z(n);{var o=a=>{var l=es();Be(3),N(a,l)},s=a=>{var l=ts();Be(3),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(on,{isSelected:{}},[],[],!0);var ns=re('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),is=re('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),os=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function an(e,t){Q(t,!1);let r=_(t,"isSelected",12,!1);var n=os(),i=z(n);{var o=a=>{var l=ns();Be(2),N(a,l)},s=a=>{var l=is();Be(2),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return S(n),N(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),w()}})}ae(an,{isSelected:{}},[],[],!0);var as=re('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),ss=re('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),ls=re('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),us=re('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),cs=re('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ds=re('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),vs=re("<svg><!></svg>");function yr(e,t){const r=Ei(t,["children","$$slots","$$events","$$legacy","$$host"]),n=Ei(r,["isDisabled","isHovered","isOpen"]);Q(t,!1);let i=_(t,"isDisabled",12,!1),o=_(t,"isHovered",12,!1),s=_(t,"isOpen",12,!1);var a=vs();Gt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=z(a);{var c=d=>{var u=as(),h=fe(Fe(u));_e(()=>W(h,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),N(d,u)},v=(d,u)=>{{var h=k=>{var E=gt(),I=Fe(E);{var b=f=>{var y=ss();Be(),N(f,y)},p=f=>{var y=ls();Be(),N(f,y)};G(I,f=>{s()?f(b):f(p,!1)})}N(k,E)},g=k=>{var E=ds(),I=fe(Fe(E));{var b=f=>{var y=us();N(f,y)},p=f=>{var y=cs();N(f,y)};G(I,f=>{s()?f(b):f(p,!1)})}N(k,E)};G(d,k=>{o()?k(h):k(g,!1)},u)}};G(l,d=>{i()?d(c):d(v,!1)})}return S(a),N(e,a),ee({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()}})}ae(yr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var fs=te('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),hs=te('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),gs=te('<div tabindex="-1" role="menu"></div>'),bs=te('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const ps={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
47
|
+
/*! purgecss end ignore */`};function Si(e,t){Q(t,!0),ct(e,Oa);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"shape",7,"round"),o=y(t,"href",7,void 0),s=y(t,"disabled",7,!1),a=y(t,"onclick",7),l=y(t,"size",7,"medium"),u=y(t,"type",7,"button"),v=y(t,"class",7,""),d=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=ne(()=>()=>["usa-button","ai-button",l()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),g=ne(()=>()=>`${m(c)()} ${v()}`.trim());var h=gt(),k=Fe(h);{var E=p=>{var f=Ua();Gt(f,(w,S)=>({class:w,href:o(),onclick:a(),...d,[Mt]:S}),[()=>m(g)(),()=>({disabled:s()})],"svelte-zsrcxo");var b=z(f);bt(b,t,"default",{}),C(f),M(p,f)},L=p=>{var f=Ha();Gt(f,w=>({class:w,type:u(),disabled:s(),onclick:a(),...d}),[()=>m(g)()],"svelte-zsrcxo");var b=z(f);bt(b,t,"default",{}),C(f),M(p,f)};G(k,p=>{o()?p(E):p(L,!1)})}return M(e,h),ee({get variant(){return r()},set variant(p="primary"){r(p),_()},get theme(){return n()},set theme(p="default"){n(p),_()},get shape(){return i()},set shape(p="round"){i(p),_()},get href(){return o()},set href(p=void 0){o(p),_()},get disabled(){return s()},set disabled(p=!1){s(p),_()},get onclick(){return a()},set onclick(p){a(p),_()},get size(){return l()},set size(p="medium"){l(p),_()},get type(){return u()},set type(p="button"){u(p),_()},get class(){return v()},set class(p=""){v(p),_()}})}oe(Si,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function zi(e,t){Q(t,!0);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"href",7,null),o=y(t,"disabled",7,!1),s=y(t,"size",7,"medium"),a=y(t,"type",7,"button"),l=y(t,"onclick",7),u=y(t,"class",7,""),v=mr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Si(e,Ci({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return a()},get onclick(){return l()},get class(){return u()}},()=>v,{children:(d,c)=>{var g=gt(),h=Fe(g);bt(h,t,"default",{}),M(d,g)},$$slots:{default:!0}})),ee({get variant(){return r()},set variant(d="primary"){r(d),_()},get theme(){return n()},set theme(d="default"){n(d),_()},get href(){return i()},set href(d=null){i(d),_()},get disabled(){return o()},set disabled(d=!1){o(d),_()},get size(){return s()},set size(d="medium"){s(d),_()},get type(){return a()},set type(d="button"){a(d),_()},get onclick(){return l()},set onclick(d){l(d),_()},get class(){return u()},set class(d=""){u(d),_()}})}customElements.define("graymatter-button",oe(zi,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{}},["default"],[],!0));const Qt=typeof window<"u";function qa(e,t){if(Qt&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Li(e,t){const r=qa(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}Li("subNav-selectedId",null);const pt=Li("subNav-selectedTitle","");function Ii(e,t){if(Qt&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function Mi(e,t){const r=Ii(e,t),n=br(r);return Qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Oe=Mi("globalSideNav-isExpanded",!1),mt=Mi("globalSideNav-selectedItem",null),Qr=Sa(mt,e=>e==="discover"),me={toggleExpanded:()=>{Oe.update(e=>!e)},setExpanded:e=>{Oe.set(e)},setSelectedItem:e=>{mt.set(e),e==="discover"?Oe.set(!1):Qt&&window.innerWidth>640&&Oe.set(!0)},handleLayoutTransition:e=>{if(e)Oe.set(!1);else{const t=Ii("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Oe.set(!0)):Oe.set(!1)}}},_r=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Oe,isMenuButtonDisabled:Qr,navigationStore:me,selectedItem:mt,selectedSubNavItemTitle:pt},Symbol.toStringTag,{value:"Module"})),Va=br(!1);var Pa=te('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ra={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function Ni(e,t){Q(t,!0),ct(e,Ra);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(Va,"$subNavReady",r),a=()=>Te(pt,"$selectedSubNavItemTitle",r),l=y(t,"customHeaderText",7,"");let u=!1;const v=ne(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),d=ne(()=>()=>l()||a());Jt(()=>{const p=b=>{if(typeof window<"u"&&window.innerWidth<=640)return;let w=null;if(typeof window<"u"&&(w=sessionStorage.getItem("subNav-topLevelTitle"),w))try{w=JSON.parse(w)}catch{}if(typeof w=="string"&&w.trim()!=="")pt.set(w),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w));else{const S=b;S.detail&&S.detail.title&&(pt.set(S.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(S.detail.title)))}},f=b=>{const w=b,{isMobile:S}=w.detail;S||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",f),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",f)}});var c=Pa();let g;var h=z(c),k=z(h),E=z(k,!0);C(k),C(h),C(c),_e((p,f)=>{g=Ee(c,1,"global-header svelte-1e8dq3f",null,g,p),Kt(E,f)},[()=>({visible:m(v)()}),()=>m(d)()]),M(e,c);var L=ee({get customHeaderText(){return l()},set customHeaderText(p=""){l(p),_()}});return n(),L}oe(Ni,{customHeaderText:{}},[],[],!0);function Ti(e,t){Q(t,!0);let r=y(t,"customHeaderText",7,"");return Ni(e,{get customHeaderText(){return r()}}),ee({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",oe(Ti,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Lo();var Ba=re('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),ja=re('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Fa=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function en(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Fa(),i=z(n);{var o=a=>{var l=Ba();M(a,l)},s=a=>{var l=ja();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(en,{isSelected:{}},[],[],!0);var Za=re('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Ya=re('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Ka=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function tn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ka(),i=z(n);{var o=a=>{var l=Za();M(a,l)},s=a=>{var l=Ya();M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(tn,{isSelected:{}},[],[],!0);var Ja=re('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Wa=re('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Ga=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function rn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=Ga(),i=z(n);{var o=a=>{var l=Ja();je(3),M(a,l)},s=a=>{var l=Wa();je(3),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(rn,{isSelected:{}},[],[],!0);var Xa=re('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),Qa=re('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),es=re('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function nn(e,t){Q(t,!1);let r=y(t,"isSelected",12,!1);var n=es(),i=z(n);{var o=a=>{var l=Xa();je(2),M(a,l)},s=a=>{var l=Qa();je(2),M(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),M(e,n),ee({get isSelected(){return r()},set isSelected(a){r(a),_()}})}oe(nn,{isSelected:{}},[],[],!0);var ts=re('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),rs=re('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),ns=re('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),is=re('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),os=re('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),as=re('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),ss=re("<svg><!></svg>");function yr(e,t){const r=xi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=xi(r,["isDisabled","isHovered","isOpen"]);Q(t,!1);let i=y(t,"isDisabled",12,!1),o=y(t,"isHovered",12,!1),s=y(t,"isOpen",12,!1);var a=ss();Gt(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=z(a);{var u=d=>{var c=ts(),g=de(Fe(c));_e(()=>W(g,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),M(d,c)},v=(d,c)=>{{var g=k=>{var E=gt(),L=Fe(E);{var p=b=>{var w=rs();je(),M(b,w)},f=b=>{var w=ns();je(),M(b,w)};G(L,b=>{s()?b(p):b(f,!1)})}M(k,E)},h=k=>{var E=as(),L=de(Fe(E));{var p=b=>{var w=is();M(b,w)},f=b=>{var w=os();M(b,w)};G(L,b=>{s()?b(p):b(f,!1)})}M(k,E)};G(d,k=>{o()?k(g):k(h,!1)},c)}};G(l,d=>{i()?d(u):d(v,!1)})}return C(a),M(e,a),ee({get isDisabled(){return i()},set isDisabled(d){i(d),_()},get isHovered(){return o()},set isHovered(d){o(d),_()},get isOpen(){return s()},set isOpen(d){s(d),_()}})}oe(yr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ls=te('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),us=te('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),cs=te('<div tabindex="-1" role="menu"></div>'),ds=te('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const vs={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
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 on(e,t){Q(t,!1),ct(e,vs);let r=y(t,"menuItems",28,()=>[]),n=y(t,"userMeta",12),i=y(t,"ariaLabel",12,"Open profile menu"),o=y(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,a=ft(!1);function l(){U(a,!m(a))}function u(){U(a,!1)}function v(I){var A;try{const F=new CustomEvent("profileMenuAction",{detail:{action:I,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((A=document.querySelector(".profile-context-menu"))==null?void 0:A.closest("[data-profile-menu]"))||window).dispatchEvent(F)}catch(F){console.error("Error dispatching profile menu action:",F)}}function d(I){const A=I.relatedTarget;(!A||!A.closest(".profile-context-menu"))&&u()}let c=ft(),g=ft([]),h=ft([]);function k(I,A){var F,q,T;if(I.key==="ArrowDown"){I.preventDefault();const $=(A+1)%r().length;(F=m(g)[$])==null||F.focus()}else if(I.key==="ArrowUp"){I.preventDefault();const $=(A-1+r().length)%r().length;(q=m(g)[$])==null||q.focus()}else I.key==="Escape"&&(u(),(T=m(c))==null||T.focus(),I.stopPropagation())}function E(I){var A;m(a)&&I.key==="Escape"&&(u(),(A=m(c))==null||A.focus(),I.stopPropagation())}Jt(()=>(window.addEventListener("keydown",E,!0),()=>{window.removeEventListener("keydown",E,!0)})),Oo(()=>m(h),()=>{U(g,m(h).filter(Boolean))}),qo(),Ca();var L=ds(),p=z(L),f=z(p),b=z(f),w=z(b),S=z(w,!0);C(w),C(b),C(f),C(p),dt(p,I=>U(c,I),()=>m(c));var N=de(p,2);{var O=I=>{var A=cs();ui(A,7,r,F=>F.label,(F,q,T)=>{var $=us(),K=z($);{var ve=ae=>{var ue=ls(),Ke=z(ue);C(ue),_e(()=>W(Ke,"src",(m(q),Ue(()=>m(q).icon)))),M(ae,ue)};G(K,ae=>{m(q),Ue(()=>m(q).icon)&&ae(ve)})}var fe=de(K,2),X=z(fe,!0);C(fe),C($),dt($,(ae,ue)=>To(h,m(h)[ue]=ae),ae=>{var ue;return(ue=m(h))==null?void 0:ue[ae]},()=>[m(T)]),_e(()=>Kt(X,(m(q),Ue(()=>m(q).label)))),ge("click",$,()=>{v(m(q).action),u()}),ge("keydown",$,ae=>k(ae,m(T))),M(F,$)}),C(A),_e(()=>{Ee(A,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),W(A,"id",s)}),M(I,A)};G(N,I=>{m(a)&&I(O)})}return C(L),_e(()=>{W(p,"aria-label",i()),W(p,"aria-expanded",m(a)),W(p,"aria-controls",s),Kt(S,(ni(n()),Ue(()=>{var I;return(I=n())==null?void 0:I.initials})))}),ge("click",p,l),ge("blur",p,d),M(e,L),ee({get menuItems(){return r()},set menuItems(I){r(I),_()},get userMeta(){return n()},set userMeta(I){n(I),_()},get ariaLabel(){return i()},set ariaLabel(I){i(I),_()},get menuAlign(){return o()},set menuAlign(I){o(I),_()}})}oe(on,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);function fs(e,t,r,n){var i;t()||(me.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var hs=(e,t)=>t("discover"),gs=(e,t,r)=>{t(e,"discover"),r(e,0)},bs=te('<a part="discover-item"><div class="icon-container svelte-g0sh1c" part="discover-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Discover</span></a>'),ps=(e,t)=>t("chat"),ms=(e,t,r)=>{t(e,"chat"),r(e,1)},ws=(e,t)=>t("console"),_s=(e,t,r)=>{t(e,"console"),r(e,2)},ys=(e,t)=>t("api"),ks=(e,t,r)=>{t(e,"api"),r(e,3)},xs=te('<div class="nav-items svelte-g0sh1c" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-g0sh1c" part="chat-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Chat</span></a> <a part="console-item"><div class="icon-container svelte-g0sh1c" part="console-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">Console</span></a> <a part="api-item"><div class="icon-container svelte-g0sh1c" part="api-icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div> <span class="nav-text svelte-g0sh1c">API</span></a></div>'),Cs=te('<div class="nav-footer svelte-g0sh1c" part="nav-footer"><div class="nav-footer-profile-container svelte-g0sh1c"><!></div></div>'),Es=te('<div class="drawer-content svelte-g0sh1c" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-g0sh1c"><!></nav></div>'),Ss=te('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-g0sh1c" part="nav-content"><div class="nav-main svelte-g0sh1c" part="nav-main"><div class="menu-section svelte-g0sh1c" part="menu-section"><button><div class="icon-container svelte-g0sh1c" part="icon-container"><div class="icon-wrapper svelte-g0sh1c"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const zs={hash:"svelte-g0sh1c",code:`.expanded-content.drawer-anim.svelte-g0sh1c {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-g0sh1c {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-g0sh1c {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-g0sh1c nav:where(.svelte-g0sh1c) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-g0sh1c {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-g0sh1c:disabled,
|
|
51
51
|
.menu-button.disabled.svelte-g0sh1c {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-g0sh1c {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-g0sh1c {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-g0sh1c {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-g0sh1c .expanded-content:where(.svelte-g0sh1c) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-g0sh1c:not(.expanded) .expanded-content:where(.svelte-g0sh1c) {width:0;opacity:0;}.nav-content.svelte-g0sh1c {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-g0sh1c {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-g0sh1c {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.menu-section.svelte-g0sh1c {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-g0sh1c {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-g0sh1c {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g0sh1c:focus,
|
|
52
52
|
.nav-item.svelte-g0sh1c:focus {outline:none;}.menu-button.svelte-g0sh1c:focus .icon-container:where(.svelte-g0sh1c),
|
|
53
53
|
.nav-item.svelte-g0sh1c:focus .icon-container:where(.svelte-g0sh1c) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
display: flex;
|
|
107
107
|
align-items: center;
|
|
108
108
|
justify-content: center;
|
|
109
|
-
} */`};function Di(e,t){Q(t,!0),ct(e,Ts);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(He,"$isExpanded",r),s=()=>Te(tn,"$isMenuButtonDisabled",r),a=_(t,"ssrSelectedItem",7,void 0),l=_(t,"onNavToggle",7,void 0),c=_(t,"onNavItemClick",7,void 0),v=_(t,"showAppIcons",7,!0),d=_(t,"hideDiscover",7,!0),u=_(t,"profileMenuData",7),h=_(t,"apiUrl",7),g=_(t,"chatUrl",7),k=_(t,"consoleUrl",7),E=_(t,"discoverUrl",7);let I=!1,b,p=be(null),f=be(!1),y=be(!1),C=be(null),M=be(null),U=be(null),L=be(null),$=null;function F(x,J){return I?x:J}function V(x){return F(i()===x,a()===x)}function T(x){return m(p)===x}const A=ie(()=>()=>F(o(),a()?a()!=="discover":!0)),Y=ie(()=>()=>F(s(),a()?a()==="discover":!1)),ne=ie(()=>()=>F(o(),a()?a()!=="discover":!0)),le=ie(()=>()=>m(y)&&m(f)&&!m(Y)());Kt(()=>{if(I=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),b&&b.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");O(y,x.matches,!0),x.addEventListener("change",B=>{O(y,B.matches,!0)});const J=B=>{const he=B,{isMobile:de}=he.detail;if(de)me.setExpanded(!1);else{const Ve=i();Ve&&Ve!=="discover"?me.setExpanded(!0):me.setExpanded(!1)}};window.addEventListener("layoutTransition",J);const P=B=>{const he=document.activeElement;B.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&me.setExpanded(!1)};window.addEventListener("keydown",P);const ue=B=>{const he=B,{action:de,isOpen:Ve}=he.detail;de==="toggle"?me.toggleExpanded():de==="open"?me.setExpanded(!0):de==="close"?me.setExpanded(!1):de==="set"&&typeof Ve=="boolean"&&me.setExpanded(Ve)};return window.addEventListener("graymatter-desktop-nav-control",ue),$=()=>{window.removeEventListener("graymatter-desktop-nav-control",ue)},()=>{window.removeEventListener("layoutTransition",J),window.removeEventListener("keydown",P),$&&$()}}});function X(x){var J;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const ue=document.getElementById("main-content");if(ue){const B=ue.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(B&&B.textContent){const he=B.textContent.trim();P.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing state:",P)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing Discover state:",P)}(J=c())==null||J({item:x,expanded:o()})}function se(x,J){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),X(J))}function ce(x,J){var B,he,de,Ve;const P=[m(C),m(M),m(U),m(L)],ue=P.length;if(ue)if(x.key==="ArrowDown"){x.preventDefault();const tr=(J+1)%ue;(B=P[tr])==null||B.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const tr=(J-1+ue)%ue;(he=P[tr])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(de=P[0])==null||de.focus()):x.key==="End"&&(x.preventDefault(),(Ve=P[ue-1])==null||Ve.focus())}var Je=Ms();let Ji;var ln=z(Je),un=z(ln),cn=z(un),qe=z(cn);let Ki;qe.__click=[ms,s,l,o];var Wi=z(qe),Gi=z(Wi),ol=z(Gi);const al=ie(()=>m(le)()),sl=ie(()=>m(Y)()),ll=ie(()=>m(ne)());yr(ol,{get isHovered(){return m(al)},get isDisabled(){return m(sl)},get isOpen(){return m(ll)}}),S(Gi),S(Wi),S(qe),S(cn);var ul=fe(cn,2);{var cl=x=>{var J=Ls(),P=z(J);{var ue=je=>{var Se=ys();let xr;Se.__click=[ws,X],Se.__keydown=[_s,se,ce];var Cr=z(Se),Er=z(Cr),vn=z(Er);const yl=ie(()=>V("discover"));rn(vn,{get isSelected(){return m(yl)}}),S(Er),S(Cr),Be(2),S(Se),dt(Se,fn=>O(C,fn),()=>m(C)),_e((fn,kl)=>{W(Se,"href",E()||"#"),xr=Ee(Se,1,"nav-item discover-item svelte-g0sh1c",null,xr,fn),W(Se,"aria-current",kl)},[()=>({selected:V("discover"),hovered:T("discover")}),()=>V("discover")?"page":void 0]),ge("mouseenter",Se,()=>O(p,"discover")),ge("mouseleave",Se,()=>O(p,null)),N(je,Se)};G(P,je=>{d()||je(ue)})}var B=fe(P,2);let he;B.__click=[ks,X],B.__keydown=[xs,se,ce];var de=z(B),Ve=z(de),tr=z(Ve);const bl=ie(()=>V("chat"));nn(tr,{get isSelected(){return m(bl)}}),S(Ve),S(de),Be(2),S(B),dt(B,je=>O(M,je),()=>m(M));var Pe=fe(B,2);let Qi;Pe.__click=[Cs,X],Pe.__keydown=[Es,se,ce];var eo=z(Pe),to=z(eo),pl=z(to);const ml=ie(()=>V("console"));on(pl,{get isSelected(){return m(ml)}}),S(to),S(eo),Be(2),S(Pe),dt(Pe,je=>O(U,je),()=>m(U));var Ke=fe(Pe,2);let ro;Ke.__click=[Ss,X],Ke.__keydown=[zs,se,ce];var no=z(Ke),io=z(no),wl=z(io);const _l=ie(()=>V("api"));an(wl,{get isSelected(){return m(_l)}}),S(io),S(no),Be(2),S(Ke),dt(Ke,je=>O(L,je),()=>m(L)),S(J),_e((je,Se,xr,Cr,Er,vn)=>{W(B,"href",g()||"#"),he=Ee(B,1,"nav-item chat-item svelte-g0sh1c",null,he,je),W(B,"aria-current",Se),W(Pe,"href",k()||"#"),Qi=Ee(Pe,1,"nav-item console-item svelte-g0sh1c",null,Qi,xr),W(Pe,"aria-current",Cr),W(Ke,"href",h()||"#"),ro=Ee(Ke,1,"nav-item api-item svelte-g0sh1c",null,ro,Er),W(Ke,"aria-current",vn)},[()=>({selected:V("chat"),hovered:T("chat")}),()=>V("chat")?"page":void 0,()=>({selected:V("console"),hovered:T("console")}),()=>V("console")?"page":void 0,()=>({selected:V("api"),hovered:T("api")}),()=>V("api")?"page":void 0]),ge("mouseenter",B,()=>O(p,"chat")),ge("mouseleave",B,()=>O(p,null)),ge("mouseenter",Pe,()=>O(p,"console")),ge("mouseleave",Pe,()=>O(p,null)),ge("mouseenter",Ke,()=>O(p,"api")),ge("mouseleave",Ke,()=>O(p,null)),N(x,J)};G(ul,x=>{v()&&x(cl)})}S(un);var dl=fe(un,2);{var vl=x=>{var J=Is(),P=z(J),ue=z(P);const B=ie(()=>{var de;return(de=u())==null?void 0:de.userMeta}),he=ie(()=>{var de;return(de=u())==null?void 0:de.menuItems});sn(ue,{get userMeta(){return m(B)},get menuItems(){return m(he)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),S(P),S(J),N(x,J)};G(dl,x=>{u()&&x(vl)})}S(ln);var dn=fe(ln,2);let Xi;var fl=z(dn);{var hl=x=>{var J=Ns(),P=z(J),ue=z(P);bt(ue,t,"default",{}),S(P),S(J),N(x,J)};G(fl,x=>{m(A)()&&x(hl)})}S(dn),S(Je),dt(Je,x=>b=x,()=>b),_e((x,J,P,ue,B)=>{Ji=Ee(Je,1,"side-nav-container svelte-g0sh1c",null,Ji,x),Ki=Ee(qe,1,"menu-button svelte-g0sh1c",null,Ki,J),qe.disabled=s(),W(qe,"aria-label",P),W(qe,"aria-expanded",ue),Xi=Ee(dn,1,"expanded-content drawer-anim svelte-g0sh1c",null,Xi,B)},[()=>({expanded:m(A)()}),()=>({disabled:s()}),()=>m(A)()?"Close navigation menu":"Open navigation menu",()=>m(A)()?"true":"false",()=>({open:m(A)()})]),ge("mouseenter",qe,()=>O(f,!0)),ge("mouseleave",qe,()=>O(f,!1)),ge("focus",qe,()=>O(f,!0)),ge("blur",qe,()=>O(f,!1)),N(e,Je);var gl=ee({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 c()},set onNavItemClick(x=void 0){c(x),w()},get showAppIcons(){return v()},set showAppIcons(x=!0){v(x),w()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),w()},get profileMenuData(){return u()},set profileMenuData(x){u(x),w()},get apiUrl(){return h()},set apiUrl(x){h(x),w()},get chatUrl(){return g()},set chatUrl(x){g(x),w()},get consoleUrl(){return k()},set consoleUrl(x){k(x),w()},get discoverUrl(){return E()},set discoverUrl(x){E(x),w()}});return n(),gl}Yt(["click","keydown"]),ae(Di,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0);function Ui(e,t){Q(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),c=_(t,"chatUrl",7),v=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7);return Di(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 c()},get consoleUrl(){return v()},get discoverUrl(){return d()},children:(u,h)=>{var g=gt(),k=Fe(g);bt(k,t,"default",{}),N(u,g)},$$slots:{default:!0}}),ee({get ssrSelectedItem(){return r()},set ssrSelectedItem(u){r(u),w()},get onNavToggle(){return n()},set onNavToggle(u){n(u),w()},get onNavItemClick(){return i()},set onNavItemClick(u){i(u),w()},get showAppIcons(){return o()},set showAppIcons(u=!0){o(u),w()},get hideDiscover(){return s()},set hideDiscover(u=!0){s(u),w()},get profileMenuData(){return a()},set profileMenuData(u){a(u),w()},get apiUrl(){return l()},set apiUrl(u){l(u),w()},get chatUrl(){return c()},set chatUrl(u){c(u),w()},get consoleUrl(){return v()},set consoleUrl(u){v(u),w()},get discoverUrl(){return d()},set discoverUrl(u){d(u),w()}})}customElements.define("graymatter-desktop-side-nav",ae(Ui,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var As=re('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),$s=re('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Ds={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Tt(e,t){Q(t,!0),ct(e,Ds);const r=_(t,"isInverted",7,!1),n=_(t,"width",7,102),i=_(t,"height",7,30),o=_(t,"showServiceMark",7,!1),s=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=gt(),c=Fe(l);{var v=u=>{var h=As();Gt(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"),N(u,h)},d=u=>{var h=$s();Gt(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"),N(u,h)};G(c,u=>{o()?u(d,!1):u(v)})}return N(e,l),ee({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()}})}ae(Tt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Oi(e,t){Q(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=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Tt(e,Si({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),ee({get isInverted(){return r()},set isInverted(a=!1){r(a),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",ae(Oi,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr={exports:{}},Os=kr.exports,Hi;function Hs(){return Hi||(Hi=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",Os,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=n[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,c=s.trim===void 0?!0:s.trim,v=o.normalize().split("").reduce(function(d,u){var h=a[u];return h===void 0&&(h=r[u]),h===void 0&&(h=u),h===l&&(h=" "),d+h.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(v=v.replace(/[^A-Za-z0-9\s]/g,"")),c&&(v=v.trim()),v=v.replace(/\s+/g,l),s.lower&&(v=v.toLowerCase()),v}return i.extend=function(o){Object.assign(r,o)},i})}(kr)),kr.exports}var qi=Hs();const Vi=Us(qi),qs=Z({__proto__:null,default:Vi},[qi]);var Vs=(e,t,r)=>t(m(r).id),Ps=te('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),js=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Rs={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Pi(e,t){Q(t,!0),ct(e,Rs);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=Vi||qs;let s=_(t,"onNavItemClick",7),a=_(t,"showAppIcons",7,!0),l=_(t,"hideDiscover",7,!0),c=_(t,"apiUrl",7),v=_(t,"chatUrl",7),d=_(t,"consoleUrl",7),u=_(t,"discoverUrl",7);const h=[{id:"discover",label:"Discover",icon:rn,href:u()||"#"},{id:"chat",label:"Chat",icon:nn,href:v()||"#"},{id:"console",label:"Console",icon:on,href:d()||"#"},{id:"api",label:"API",icon:an,href:c()||"#"}],g=l()?h.filter(f=>f.id!=="discover"):h;function k(f){var y;if(f!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(f),f!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:C})=>{C.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const M=document.getElementById("main-content");if(M){const U=M.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(U&&U.textContent){const L=U.textContent.trim();C.set(L),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L))}}},200)}).catch(C=>{console.log("[MobileBottomNav] Error clearing header state:",C)})}catch(C){console.log("[MobileBottomNav] Import failed for clearing state:",C)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:C})=>{C.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(C=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",C)})}catch(C){console.log("[MobileBottomNav] Import failed for clearing Discover state:",C)}(y=s())==null||y({item:f,expanded:!1})}var E=gt(),I=Fe(E);{var b=f=>{var y=js();di(y,21,()=>g,ga,(C,M)=>{var U=Ps();let L;U.__click=[Vs,k,M];var $=z(U),F=z($);const V=ie(()=>i()===m(M).id);wa(F,()=>m(M).icon,(Y,ne)=>{ne(Y,{get isSelected(){return m(V)}})}),S($);var T=fe($,2),A=z(T,!0);S(T),S(U),_e((Y,ne,le)=>{W(U,"href",m(M).href),L=Ee(U,1,Y,"svelte-gdyha2",L,ne),W(U,"part",le),Jt(A,m(M).label)},[()=>`nav-item ${o(m(M).id)}-item`,()=>({active:i()===m(M).id}),()=>`${o(m(M).id)}-item`]),N(C,U)}),S(y),N(f,y)};G(I,f=>{a()&&f(b)})}N(e,E);var p=ee({get onNavItemClick(){return s()},set onNavItemClick(f){s(f),w()},get showAppIcons(){return a()},set showAppIcons(f=!0){a(f),w()},get hideDiscover(){return l()},set hideDiscover(f=!0){l(f),w()},get apiUrl(){return c()},set apiUrl(f){c(f),w()},get chatUrl(){return v()},set chatUrl(f){v(f),w()},get consoleUrl(){return d()},set consoleUrl(f){d(f),w()},get discoverUrl(){return u()},set discoverUrl(f){u(f),w()}});return n(),p}Yt(["click"]),ae(Pi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function ji(e,t){Q(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 Pi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(c){r(c),w()},get showAppIcons(){return n()},set showAppIcons(c=!0){n(c),w()},get hideDiscover(){return i()},set hideDiscover(c=!0){i(c),w()},get apiUrl(){return o()},set apiUrl(c){o(c),w()},get chatUrl(){return s()},set chatUrl(c){s(c),w()},get consoleUrl(){return a()},set consoleUrl(c){a(c),w()},get discoverUrl(){return l()},set discoverUrl(c){l(c),w()}})}customElements.define("graymatter-mobile-bottom-nav",ae(ji,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Bs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Fs=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Ys=te('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Zs=te('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),Js=te('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),Ks=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const Ws={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 Ri(e,t){Q(t,!0),ct(e,Ws);const[r,n]=Xt(),i=()=>Te(He,"$isExpanded",r),o=()=>Te(mt,"$selectedItem",r);let s,a=null,l=_(t,"logoLinkUrl",7),c=_(t,"logoLinkLabel",7);function v(T){if(a=T.detail.hash,d(),a){const Y=document.getElementById(a);if(Y){const ne=document.getElementById("main-content-mobile"),le=ne?ne.querySelector(`[id="${a}"]`):null;if(le&&ne){const X=le.getBoundingClientRect(),se=ne.getBoundingClientRect(),ce=ne.scrollTop+X.top-se.top;ne.scrollTo({top:ce,behavior:"auto"}),setTimeout(()=>{var Je;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Je=le.textContent)==null?void 0:Je.trim(),id:le.id}}))},100)}else{let X=Y.parentElement;for(;X&&X!==document.body;){const se=window.getComputedStyle(X);if(se.overflowY==="auto"||se.overflowY==="scroll")break;X=X.parentElement}X&&X!==document.body?document.getElementById("main-content")?(Y.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ce;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ce=Y.textContent)==null?void 0:ce.trim(),id:Y.id}}))},100)):Y.scrollIntoView({behavior:"auto",block:"start"}):Y.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Kt(()=>{window.addEventListener("mobileAnchorNavigate",v);const T=()=>{d()};window.addEventListener("closeMobileMenu",T);const A=ne=>{const le=ne,{isMobile:X}=le.detail;X&&me.setExpanded(!1)};window.addEventListener("layoutTransition",A);const Y=ne=>{const le=document.activeElement;ne.key==="Escape"&&i()&&!(le&&le.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",Y),()=>{window.removeEventListener("mobileAnchorNavigate",v),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",A),window.removeEventListener("keydown",Y)}});function d(){me.setExpanded(!1)}var u=Ks(),h=Fe(u);{var g=T=>{var A=Fs();A.__click=d,A.__keydown=[Bs,d],N(T,A)};G(h,T=>{i()&&T(g)})}var k=fe(h,2);let E;var I=z(k),b=z(I);b.__click=d;var p=z(b);yr(p,{isOpen:!0}),S(b);var f=fe(b,2),y=z(f);{var C=T=>{var A=Ys(),Y=z(A);Tt(Y,{width:75,height:22}),S(A),_e(()=>{W(A,"href",l()),W(A,"aria-label",c())}),N(T,A)},M=T=>{Tt(T,{width:75,height:22})};G(y,T=>{l()?T(C):T(M,!1)})}S(f),S(I);var U=fe(I,2),L=z(U);{var $=T=>{var A=Zs(),Y=z(A);bt(Y,t,"default",{}),S(A),N(T,A)},F=T=>{var A=Js();N(T,A)};G(L,T=>{o()&&o()!=="discover"?T($):T(F,!1)})}S(U),S(k),dt(k,T=>s=T,()=>s),_e(T=>E=Ee(k,1,"mobile-side-menu svelte-1anbrit",null,E,T),[()=>({open:i()})]),N(e,u);var V=ee({get logoLinkUrl(){return l()},set logoLinkUrl(T){l(T),w()},get logoLinkLabel(){return c()},set logoLinkLabel(T){c(T),w()}});return n(),V}Yt(["click","keydown"]),ae(Ri,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Bi(e,t){Q(t,!0);let r=_(t,"logoLinkUrl",7),n=_(t,"logoLinkLabel",7);return Ri(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=gt(),a=Fe(s);bt(a,t,"default",{}),N(i,s)},$$slots:{default:!0}}),ee({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",ae(Bi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Gs(){me.toggleExpanded()}var Xs=te('<a class="display-flex"><!></a>'),Qs=te('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const el={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-g1zhvs:disabled,
|
|
109
|
+
} */`};function $i(e,t){Q(t,!0),ct(e,zs);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r),o=()=>Te(Oe,"$isExpanded",r),s=()=>Te(Qr,"$isMenuButtonDisabled",r),a=y(t,"ssrSelectedItem",7,void 0),l=y(t,"onNavToggle",7,void 0),u=y(t,"onNavItemClick",7,void 0),v=y(t,"showAppIcons",7,!0),d=y(t,"hideDiscover",7,!0),c=y(t,"profileMenuData",7),g=y(t,"apiUrl",7),h=y(t,"chatUrl",7),k=y(t,"consoleUrl",7),E=y(t,"discoverUrl",7);let L=!1,p,f=be(null),b=be(!1),w=be(!1),S=be(null),N=be(null),O=be(null),I=be(null),A=null;function F(x,Z){return L?x:Z}function q(x){return F(i()===x,a()===x)}function T(x){return m(f)===x}const $=ne(()=>()=>F(o(),a()?a()!=="discover":!0)),K=ne(()=>()=>F(s(),a()?a()==="discover":!1)),ve=ne(()=>()=>F(o(),a()?a()!=="discover":!0)),fe=ne(()=>()=>m(w)&&m(b)&&!m(K)());Jt(()=>{if(L=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),p&&p.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");U(w,x.matches,!0),x.addEventListener("change",j=>{U(w,j.matches,!0)});const Z=j=>{const he=j,{isMobile:ce}=he.detail;if(ce)me.setExpanded(!1);else{const Ve=i();Ve&&Ve!=="discover"?me.setExpanded(!0):me.setExpanded(!1)}};window.addEventListener("layoutTransition",Z);const P=j=>{const he=document.activeElement;j.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&me.setExpanded(!1)};window.addEventListener("keydown",P);const le=j=>{const he=j,{action:ce,isOpen:Ve}=he.detail;ce==="toggle"?me.toggleExpanded():ce==="open"?me.setExpanded(!0):ce==="close"?me.setExpanded(!1):ce==="set"&&typeof Ve=="boolean"&&me.setExpanded(Ve)};return window.addEventListener("graymatter-desktop-nav-control",le),A=()=>{window.removeEventListener("graymatter-desktop-nav-control",le)},()=>{window.removeEventListener("layoutTransition",Z),window.removeEventListener("keydown",P),A&&A()}}});function X(x){var Z;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const le=document.getElementById("main-content");if(le){const j=le.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(j&&j.textContent){const he=j.textContent.trim();P.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing state:",P)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing Discover state:",P)}(Z=u())==null||Z({item:x,expanded:o()})}function ae(x,Z){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),X(Z))}function ue(x,Z){var j,he,ce,Ve;const P=[m(S),m(N),m(O),m(I)],le=P.length;if(le)if(x.key==="ArrowDown"){x.preventDefault();const tr=(Z+1)%le;(j=P[tr])==null||j.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const tr=(Z-1+le)%le;(he=P[tr])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(ce=P[0])==null||ce.focus()):x.key==="End"&&(x.preventDefault(),(Ve=P[le-1])==null||Ve.focus())}var Ke=Ss();let Bi;var an=z(Ke),sn=z(an),ln=z(sn),qe=z(ln);let ji;qe.__click=[fs,s,l,o];var Fi=z(qe),Zi=z(Fi),Ws=z(Zi);const Gs=ne(()=>m(fe)()),Xs=ne(()=>m(K)()),Qs=ne(()=>m(ve)());yr(Ws,{get isHovered(){return m(Gs)},get isDisabled(){return m(Xs)},get isOpen(){return m(Qs)}}),C(Zi),C(Fi),C(qe),C(ln);var el=de(ln,2);{var tl=x=>{var Z=xs(),P=z(Z);{var le=Re=>{var Se=bs();let kr;Se.__click=[hs,X],Se.__keydown=[gs,ae,ue];var xr=z(Se),Cr=z(xr),cn=z(Cr);const vl=ne(()=>q("discover"));en(cn,{get isSelected(){return m(vl)}}),C(Cr),C(xr),je(2),C(Se),dt(Se,dn=>U(S,dn),()=>m(S)),_e((dn,fl)=>{W(Se,"href",E()||"#"),kr=Ee(Se,1,"nav-item discover-item svelte-g0sh1c",null,kr,dn),W(Se,"aria-current",fl)},[()=>({selected:q("discover"),hovered:T("discover")}),()=>q("discover")?"page":void 0]),ge("mouseenter",Se,()=>U(f,"discover")),ge("mouseleave",Se,()=>U(f,null)),M(Re,Se)};G(P,Re=>{d()||Re(le)})}var j=de(P,2);let he;j.__click=[ps,X],j.__keydown=[ms,ae,ue];var ce=z(j),Ve=z(ce),tr=z(Ve);const sl=ne(()=>q("chat"));tn(tr,{get isSelected(){return m(sl)}}),C(Ve),C(ce),je(2),C(j),dt(j,Re=>U(N,Re),()=>m(N));var Pe=de(j,2);let Ki;Pe.__click=[ws,X],Pe.__keydown=[_s,ae,ue];var Ji=z(Pe),Wi=z(Ji),ll=z(Wi);const ul=ne(()=>q("console"));rn(ll,{get isSelected(){return m(ul)}}),C(Wi),C(Ji),je(2),C(Pe),dt(Pe,Re=>U(O,Re),()=>m(O));var Je=de(Pe,2);let Gi;Je.__click=[ys,X],Je.__keydown=[ks,ae,ue];var Xi=z(Je),Qi=z(Xi),cl=z(Qi);const dl=ne(()=>q("api"));nn(cl,{get isSelected(){return m(dl)}}),C(Qi),C(Xi),je(2),C(Je),dt(Je,Re=>U(I,Re),()=>m(I)),C(Z),_e((Re,Se,kr,xr,Cr,cn)=>{W(j,"href",h()||"#"),he=Ee(j,1,"nav-item chat-item svelte-g0sh1c",null,he,Re),W(j,"aria-current",Se),W(Pe,"href",k()||"#"),Ki=Ee(Pe,1,"nav-item console-item svelte-g0sh1c",null,Ki,kr),W(Pe,"aria-current",xr),W(Je,"href",g()||"#"),Gi=Ee(Je,1,"nav-item api-item svelte-g0sh1c",null,Gi,Cr),W(Je,"aria-current",cn)},[()=>({selected:q("chat"),hovered:T("chat")}),()=>q("chat")?"page":void 0,()=>({selected:q("console"),hovered:T("console")}),()=>q("console")?"page":void 0,()=>({selected:q("api"),hovered:T("api")}),()=>q("api")?"page":void 0]),ge("mouseenter",j,()=>U(f,"chat")),ge("mouseleave",j,()=>U(f,null)),ge("mouseenter",Pe,()=>U(f,"console")),ge("mouseleave",Pe,()=>U(f,null)),ge("mouseenter",Je,()=>U(f,"api")),ge("mouseleave",Je,()=>U(f,null)),M(x,Z)};G(el,x=>{v()&&x(tl)})}C(sn);var rl=de(sn,2);{var nl=x=>{var Z=Cs(),P=z(Z),le=z(P);const j=ne(()=>{var ce;return(ce=c())==null?void 0:ce.userMeta}),he=ne(()=>{var ce;return(ce=c())==null?void 0:ce.menuItems});on(le,{get userMeta(){return m(j)},get menuItems(){return m(he)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),C(P),C(Z),M(x,Z)};G(rl,x=>{c()&&x(nl)})}C(an);var un=de(an,2);let Yi;var il=z(un);{var ol=x=>{var Z=Es(),P=z(Z),le=z(P);bt(le,t,"default",{}),C(P),C(Z),M(x,Z)};G(il,x=>{m($)()&&x(ol)})}C(un),C(Ke),dt(Ke,x=>p=x,()=>p),_e((x,Z,P,le,j)=>{Bi=Ee(Ke,1,"side-nav-container svelte-g0sh1c",null,Bi,x),ji=Ee(qe,1,"menu-button svelte-g0sh1c",null,ji,Z),qe.disabled=s(),W(qe,"aria-label",P),W(qe,"aria-expanded",le),Yi=Ee(un,1,"expanded-content drawer-anim svelte-g0sh1c",null,Yi,j)},[()=>({expanded:m($)()}),()=>({disabled:s()}),()=>m($)()?"Close navigation menu":"Open navigation menu",()=>m($)()?"true":"false",()=>({open:m($)()})]),ge("mouseenter",qe,()=>U(b,!0)),ge("mouseleave",qe,()=>U(b,!1)),ge("focus",qe,()=>U(b,!0)),ge("blur",qe,()=>U(b,!1)),M(e,Ke);var al=ee({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),_()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),_()},get onNavItemClick(){return u()},set onNavItemClick(x=void 0){u(x),_()},get showAppIcons(){return v()},set showAppIcons(x=!0){v(x),_()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),_()},get profileMenuData(){return c()},set profileMenuData(x){c(x),_()},get apiUrl(){return g()},set apiUrl(x){g(x),_()},get chatUrl(){return h()},set chatUrl(x){h(x),_()},get consoleUrl(){return k()},set consoleUrl(x){k(x),_()},get discoverUrl(){return E()},set discoverUrl(x){E(x),_()}});return n(),al}Zt(["click","keydown"]),oe($i,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0);function Di(e,t){Q(t,!0);let r=y(t,"ssrSelectedItem",7),n=y(t,"onNavToggle",7),i=y(t,"onNavItemClick",7),o=y(t,"showAppIcons",7,!0),s=y(t,"hideDiscover",7,!0),a=y(t,"profileMenuData",7),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),v=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);return $i(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return l()},get chatUrl(){return u()},get consoleUrl(){return v()},get discoverUrl(){return d()},children:(c,g)=>{var h=gt(),k=Fe(h);bt(k,t,"default",{}),M(c,h)},$$slots:{default:!0}}),ee({get ssrSelectedItem(){return r()},set ssrSelectedItem(c){r(c),_()},get onNavToggle(){return n()},set onNavToggle(c){n(c),_()},get onNavItemClick(){return i()},set onNavItemClick(c){i(c),_()},get showAppIcons(){return o()},set showAppIcons(c=!0){o(c),_()},get hideDiscover(){return s()},set hideDiscover(c=!0){s(c),_()},get profileMenuData(){return a()},set profileMenuData(c){a(c),_()},get apiUrl(){return l()},set apiUrl(c){l(c),_()},get chatUrl(){return u()},set chatUrl(c){u(c),_()},get consoleUrl(){return v()},set consoleUrl(c){v(c),_()},get discoverUrl(){return d()},set discoverUrl(c){d(c),_()}})}customElements.define("graymatter-desktop-side-nav",oe(Di,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var Ls=re('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),Is=re('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Ms={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function Tt(e,t){Q(t,!0),ct(e,Ms);const r=y(t,"isInverted",7,!1),n=y(t,"width",7,102),i=y(t,"height",7,30),o=y(t,"showServiceMark",7,!1),s=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=gt(),u=Fe(l);{var v=c=>{var g=Ls();Gt(g,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(c,g)},d=c=>{var g=Is();Gt(g,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),M(c,g)};G(u,c=>{o()?c(d,!1):c(v)})}return M(e,l),ee({get isInverted(){return r()},set isInverted(c=!1){r(c),_()},get width(){return n()},set width(c=102){n(c),_()},get height(){return i()},set height(c=30){i(c),_()},get showServiceMark(){return o()},set showServiceMark(c=!1){o(c),_()}})}oe(Tt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Ai(e,t){Q(t,!0);let r=y(t,"isInverted",7,!1),n=y(t,"width",7,void 0),i=y(t,"height",7,void 0),o=y(t,"showServiceMark",7,!1),s=mr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return Tt(e,Ci({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),ee({get isInverted(){return r()},set isInverted(a=!1){r(a),_()},get width(){return n()},set width(a=void 0){n(a),_()},get height(){return i()},set height(a=void 0){i(a),_()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),_()}})}customElements.define("graymatter-logo",oe(Ai,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));var Ns=(e,t,r)=>t(m(r).id),Ts=te('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),$s=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ds={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ui(e,t){Q(t,!0),ct(e,Ds);const[r,n]=Xt(),i=()=>Te(mt,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"hideDiscover",7,!0),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),v=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:en,href:d()||"#"},{id:"chat",label:"Chat",icon:tn,href:u()||"#"},{id:"console",label:"Console",icon:rn,href:v()||"#"},{id:"api",label:"API",icon:nn,href:l()||"#"}],g=a()?c.filter(f=>f.id!=="discover"):c;function h(f){var b;if(f!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),me.setSelectedItem(f),f!=="discover")try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const S=document.getElementById("main-content");if(S){const N=S.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(N&&N.textContent){const O=N.textContent.trim();w.set(O),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(O))}}},200)}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing state:",w)}else try{Promise.resolve().then(()=>_r).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing Discover state:",w)}(b=o())==null||b({item:f,expanded:!1})}var k=gt(),E=Fe(k);{var L=f=>{var b=$s();ui(b,21,()=>g,ca,(w,S)=>{var N=Ts();let O;N.__click=[Ns,h,S];var I=z(N),A=z(I);const F=ne(()=>i()===m(S).id);ha(A,()=>m(S).icon,($,K)=>{K($,{get isSelected(){return m(F)}})}),C(I);var q=de(I,2),T=z(q,!0);C(q),C(N),_e($=>{W(N,"href",m(S).href),O=Ee(N,1,`nav-item ${m(S).id}-item`,"svelte-gdyha2",O,$),W(N,"part",`${m(S).id}-item`),Kt(T,m(S).label)},[()=>({active:i()===m(S).id})]),M(w,N)}),C(b),M(f,b)};G(E,f=>{s()&&f(L)})}M(e,k);var p=ee({get onNavItemClick(){return o()},set onNavItemClick(f){o(f),_()},get showAppIcons(){return s()},set showAppIcons(f=!0){s(f),_()},get hideDiscover(){return a()},set hideDiscover(f=!0){a(f),_()},get apiUrl(){return l()},set apiUrl(f){l(f),_()},get chatUrl(){return u()},set chatUrl(f){u(f),_()},get consoleUrl(){return v()},set consoleUrl(f){v(f),_()},get discoverUrl(){return d()},set discoverUrl(f){d(f),_()}});return n(),p}Zt(["click"]),oe(Ui,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Hi(e,t){Q(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"hideDiscover",7,!0),o=y(t,"apiUrl",7),s=y(t,"chatUrl",7),a=y(t,"consoleUrl",7),l=y(t,"discoverUrl",7);return Ui(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),ee({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),_()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),_()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),_()},get apiUrl(){return o()},set apiUrl(u){o(u),_()},get chatUrl(){return s()},set chatUrl(u){s(u),_()},get consoleUrl(){return a()},set consoleUrl(u){a(u),_()},get discoverUrl(){return l()},set discoverUrl(u){l(u),_()}})}customElements.define("graymatter-mobile-bottom-nav",oe(Hi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var As=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Us=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Hs=te('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Os=te('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),qs=te('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),Vs=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const Ps={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Oi(e,t){Q(t,!0),ct(e,Ps);const[r,n]=Xt(),i=()=>Te(Oe,"$isExpanded",r),o=()=>Te(mt,"$selectedItem",r);let s,a=null,l=y(t,"logoLinkUrl",7),u=y(t,"logoLinkLabel",7);function v(T){if(a=T.detail.hash,d(),a){const K=document.getElementById(a);if(K){const ve=document.getElementById("main-content-mobile"),fe=ve?ve.querySelector(`[id="${a}"]`):null;if(fe&&ve){const X=fe.getBoundingClientRect(),ae=ve.getBoundingClientRect(),ue=ve.scrollTop+X.top-ae.top;ve.scrollTo({top:ue,behavior:"auto"}),setTimeout(()=>{var Ke;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Ke=fe.textContent)==null?void 0:Ke.trim(),id:fe.id}}))},100)}else{let X=K.parentElement;for(;X&&X!==document.body;){const ae=window.getComputedStyle(X);if(ae.overflowY==="auto"||ae.overflowY==="scroll")break;X=X.parentElement}X&&X!==document.body?document.getElementById("main-content")?(K.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ue;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ue=K.textContent)==null?void 0:ue.trim(),id:K.id}}))},100)):K.scrollIntoView({behavior:"auto",block:"start"}):K.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Jt(()=>{window.addEventListener("mobileAnchorNavigate",v);const T=()=>{d()};window.addEventListener("closeMobileMenu",T);const $=ve=>{const fe=ve,{isMobile:X}=fe.detail;X&&me.setExpanded(!1)};window.addEventListener("layoutTransition",$);const K=ve=>{const fe=document.activeElement;ve.key==="Escape"&&i()&&!(fe&&fe.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",K),()=>{window.removeEventListener("mobileAnchorNavigate",v),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",$),window.removeEventListener("keydown",K)}});function d(){me.setExpanded(!1)}var c=Vs(),g=Fe(c);{var h=T=>{var $=Us();$.__click=d,$.__keydown=[As,d],M(T,$)};G(g,T=>{i()&&T(h)})}var k=de(g,2);let E;var L=z(k),p=z(L);p.__click=d;var f=z(p);yr(f,{isOpen:!0}),C(p);var b=de(p,2),w=z(b);{var S=T=>{var $=Hs(),K=z($);Tt(K,{width:75,height:22}),C($),_e(()=>{W($,"href",l()),W($,"aria-label",u())}),M(T,$)},N=T=>{Tt(T,{width:75,height:22})};G(w,T=>{l()?T(S):T(N,!1)})}C(b),C(L);var O=de(L,2),I=z(O);{var A=T=>{var $=Os(),K=z($);bt(K,t,"default",{}),C($),M(T,$)},F=T=>{var $=qs();M(T,$)};G(I,T=>{o()&&o()!=="discover"?T(A):T(F,!1)})}C(O),C(k),dt(k,T=>s=T,()=>s),_e(T=>E=Ee(k,1,"mobile-side-menu svelte-1anbrit",null,E,T),[()=>({open:i()})]),M(e,c);var q=ee({get logoLinkUrl(){return l()},set logoLinkUrl(T){l(T),_()},get logoLinkLabel(){return u()},set logoLinkLabel(T){u(T),_()}});return n(),q}Zt(["click","keydown"]),oe(Oi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function qi(e,t){Q(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7);return Oi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=gt(),a=Fe(s);bt(a,t,"default",{}),M(i,s)},$$slots:{default:!0}}),ee({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),_()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),_()}})}customElements.define("graymatter-mobile-side-menu",oe(qi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Rs(){me.toggleExpanded()}var Bs=te('<a class="display-flex"><!></a>'),js=te('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const Fs={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-g1zhvs:disabled,
|
|
110
110
|
.menu-button.disabled.svelte-g1zhvs {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-g1zhvs:hover {background-color:var(--ai-color-neutral-100);}
|
|
111
111
|
|
|
112
112
|
/* MobileTopNav specific disabled state */.mobile-top-nav.svelte-g1zhvs .menu-button.disabled:where(.svelte-g1zhvs),
|
|
113
|
-
.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function
|
|
113
|
+
.mobile-top-nav.svelte-g1zhvs .menu-button:where(.svelte-g1zhvs):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-g1zhvs {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-g1zhvs {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-g1zhvs {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-g1zhvs {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-g1zhvs:focus {outline:none;}`};function Vi(e,t){Q(t,!0),ct(e,Fs);const[r,n]=Xt(),i=()=>Te(pt,"$selectedSubNavItemTitle",r),o=()=>Te(Qr,"$isMenuButtonDisabled",r);let s=y(t,"profileMenuData",7),a=y(t,"logoLinkUrl",7),l=y(t,"logoLinkLabel",7);Jt(()=>{const S=I=>{if(window.innerWidth<=640)return;const A=I;A.detail&&A.detail.title&&(pt.set(A.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(A.detail.title)))},N=()=>{if(typeof window>"u")return;const I=document.getElementById("main-content");if(!I)return;const A=I.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(A&&A.textContent){const F=A.textContent.trim();i()||(pt.set(F),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(F)))}};window.addEventListener("sectionVisible",S);const O=sessionStorage.getItem("subNav-selectedTitle");return(!O||O==='""'||O==="null")&&setTimeout(()=>{N()},100),()=>{window.removeEventListener("sectionVisible",S)}});var u=js(),v=z(u);let d;v.__click=[Rs];var c=z(v);yr(c,{}),C(v);var g=de(v,2),h=z(g);{var k=S=>{var N=Bs(),O=z(N);Tt(O,{width:75,height:22}),C(N),_e(()=>{W(N,"href",a()),W(N,"aria-label",l())}),M(S,N)},E=S=>{Tt(S,{width:75,height:22})};G(h,S=>{a()?S(k):S(E,!1)})}var L=de(h,2),p=z(L,!0);C(L),C(g);var f=de(g,2);{var b=S=>{const N=ne(()=>{var I;return(I=s())==null?void 0:I.userMeta}),O=ne(()=>{var I;return(I=s())==null?void 0:I.menuItems});on(S,{get userMeta(){return m(N)},get menuItems(){return m(O)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};G(f,S=>{s()&&S(b)})}C(u),_e(S=>{d=Ee(v,1,"menu-button svelte-g1zhvs",null,d,S),v.disabled=o(),Kt(p,i()||"")},[()=>({disabled:o()})]),M(e,u);var w=ee({get profileMenuData(){return s()},set profileMenuData(S){s(S),_()},get logoLinkUrl(){return a()},set logoLinkUrl(S){a(S),_()},get logoLinkLabel(){return l()},set logoLinkLabel(S){l(S),_()}});return n(),w}Zt(["click"]),oe(Vi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0);function Pi(e,t){Q(t,!0);let r=y(t,"profileMenuData",7),n=y(t,"logoLinkUrl",7),i=y(t,"logoLinkLabel",7);return Vi(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()}}),ee({get profileMenuData(){return r()},set profileMenuData(o){r(o),_()},get logoLinkUrl(){return n()},set logoLinkUrl(o){n(o),_()},get logoLinkLabel(){return i()},set logoLinkLabel(o){i(o),_()}})}customElements.define("graymatter-mobile-top-nav",oe(Pi,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{}},[],[],!0));function er(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Zs(){er("toggle")}function Ys(){er("open")}function Ks(){er("close")}function Js(e){er("set",e)}D.Button=zi,D.DesktopHeader=Ti,D.DesktopSideNav=Di,D.Logo=Ai,D.MobileBottomNav=Hi,D.MobileSideMenu=qi,D.MobileTopNav=Pi,D.closeNavigation=Ks,D.controlDesktopNavigation=er,D.openNavigation=Ys,D.setNavigationState=Js,D.toggleNavigation=Zs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|