import{d as Hr}from"../chunks/index.R8ovVqwX.js";import{ae as _u,af as yu,ag as ts,ah as wu,Z as Ao,ai as Ou,aj as Su,ak as ku,a9 as Eu,al as ht,am as $t,F as X,w as $e,an as Pu,ao as Jo,ap as ns,x as mt,aq as st,r as at,z as Tn,ar as Iu,as as _t,y as be,at as di,G as et,au as qr,av as It,aw as mi,t as Cu,v as fo,q as rs,n as ju,m as ot,ax as hi,J as ro,e as Qe,u as Au,o as Du,L as pi,I as En,ay as Tu,az as Nu,$ as Mu,aA as Ru,aB as Fu,ac as Lu}from"../chunks/VennDiagram.svelte_svelte_type_style_lang.D0MmhByY.js";import{p as qn,s as Bu}from"../chunks/setTrackProxy.LUR8PBUg.js";import{an as Hu,T as pn,s as Ee,r as re,i as H,g as P,X as Ge,V as ve,Y as Tt,o as ye,F as pt,c as Fe,e as x,b as W,d as J,ao as On,l as oe,u as Le,m as Be,n as He,C as bt,A as Nt,B as qu,aa as os,U as Uu,v as ut,ab as tt,q as Dt,a as $,w as je,f as ee,x as Ae,h as N,j as K,y as Mt,a9 as Vu,z as Re,am as Do,D as Xo,R as Ur,M as gi,N as bi,p as St,Q as xu,ac as qt,t as Ce,ak as Wu,ad as vi,ag as is}from"../chunks/scheduler.CTFCZgrd.js";import{S as De,i as Te,g as Oe,a as T,c as Se,t as j,h as oo,j as mr,f as Ht,b as ae,d as se,m as ue,e as ce,k as ls}from"../chunks/index.BoSueqLU.js";import{d as gn,w as ze,r as _i}from"../chunks/entry.DU7zWbR_.js";import{p as io,n as as}from"../chunks/stores.C_Uaus_M.js";import{a as Ku,d as lr,f as ar}from"../chunks/index.DyFnrb7c.js";import{G as zu,S as Qu}from"../chunks/index.CGB6X0u6.js";import{t as Un,g as yi,o as Mr,c as Gu,r as Ju,b as Xu,d as Yo,f as Yu,e as Ut,h as Zu}from"../chunks/utils.hFvYauS9.js";var ss={exports:{}};(function(t){(function(e){function n(v,C){var w=(v&65535)+(C&65535),M=(v>>16)+(C>>16)+(w>>16);return M<<16|w&65535}function r(v,C){return v<>>32-C}function o(v,C,w,M,F,B){return n(r(n(n(C,v),n(M,B)),F),w)}function i(v,C,w,M,F,B,q){return o(C&w|~C&M,v,C,F,B,q)}function l(v,C,w,M,F,B,q){return o(C&M|w&~M,v,C,F,B,q)}function s(v,C,w,M,F,B,q){return o(C^w^M,v,C,F,B,q)}function a(v,C,w,M,F,B,q){return o(w^(C|~M),v,C,F,B,q)}function u(v,C){v[C>>5]|=128<>>9<<4)+14]=C;var w,M,F,B,q,O=1732584193,b=-271733879,y=-1732584194,_=271733878;for(w=0;w>5]>>>C%32&255);return w}function f(v){var C,w=[];for(w[(v.length>>2)-1]=void 0,C=0;C>5]|=(v.charCodeAt(C/8)&255)<16&&(M=u(M,v.length*8)),w=0;w<16;w+=1)F[w]=M[w]^909522486,B[w]=M[w]^1549556828;return q=u(F.concat(f(C)),512+C.length*8),c(u(B.concat(q),640))}function p(v){var C="0123456789abcdef",w="",M,F;for(F=0;F>>4&15)+C.charAt(M&15);return w}function g(v){return unescape(encodeURIComponent(v))}function h(v){return d(g(v))}function S(v){return p(h(v))}function I(v,C){return m(g(v),g(C))}function E(v,C){return p(I(v,C))}function A(v,C,w){return C?w?I(C,v):E(C,v):w?h(v):S(v)}t.exports?t.exports=A:e.md5=A})(_u)})(ss);var $u=ss.exports;const wi=yu($u);var ec={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const tc=!Hr,us=ec.VITE_EVIDENCE_SPA!=="true",nc="always",rc=async()=>{let t={};{const e=await fetch("/data/manifest.json");e.ok&&({renderedFiles:t}=await e.json())}await qn(wu),Object.keys(t??{}).length===0?(console.warn("Unable to load manifest, do you need to generate sources?".trim()),Ao.add({id:"MissingManifest",status:"warning",title:"Missing Manifest",message:"Without a manifest file, no data is available"},1e4)):(await qn(ts,t),await qn(Ou,Object.keys(t)))},Oi=qn(rc);async function oc(t,e,n){const r=await n(`/api/${t}/${e}/all-queries.json`);if(!r.ok)return{};const o=await r.json(),i=await Promise.all(Object.entries(o).map(async([l,s])=>{const a=await n(`/api/prerendered_queries/${s}.arrow`);if(!a.ok)return null;const u=await Su(a);return[l,ku(u)]}));return Object.fromEntries(i.filter(Boolean))}const ic=["/settings","/explore"],Si=new Map,lc=async({fetch:t,route:e,params:n,url:r})=>{var m,p,g;const[{customFormattingSettings:o},i,l]=await Promise.all([t("/api/customFormattingSettings.json/GET.json").then(h=>h.json()),t("/api/pagesManifest.json").then(h=>h.json()),t(`/api/${e.id}/evidencemeta.json`).then(h=>h.json()).catch(()=>({queries:[]}))]),s=wi(e.id),a=wi(Object.entries(n).sort().map(([h,S])=>`${h}${S}`).join("")),u=e.id&&ic.every(h=>!e.id.startsWith(h));let c={};Si.get(r.pathname),Si.has(r.pathname),u&&us&&(c=await oc(s,a,t));function f(h,{query_name:S,callback:I=E=>E}={}){return(async()=>{await Oi;const E=await Eu(h);return I(E)})()}let d=i;for(const h of(e.id??"").split("/").slice(1)){if(d=d.children[h],!d)break;if((m=d.frontMatter)!=null&&m.title)d.title=d.frontMatter.title;else if((p=d.frontMatter)!=null&&p.breadcrumb){let{breadcrumb:S}=d.frontMatter;for(const[I,E]of Object.entries(n))S=S.replaceAll(`\${params.${I}}`,E);d.title=(g=(await f(S))[0])==null?void 0:g.breadcrumb}}return{__db:{query:f,async load(){return Oi},async updateParquetURLs(h){const{renderedFiles:S}=JSON.parse(h);await qn(ts,S)}},inputs:Bu({label:"",value:"(SELECT NULL WHERE 0 /* An Input has not been set */)"}),data:c,customFormattingSettings:o,isUserPage:u,evidencemeta:l,pagesManifest:i}},Fb=Object.freeze(Object.defineProperty({__proto__:null,load:lc,prerender:us,ssr:tc,trailingSlash:nc},Symbol.toStringTag,{value:"Module"}));function ac(t){return t[t.length-1]}function sc(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function uc(t){t.setAttribute("data-highlighted","")}function sn(t){t.removeAttribute("data-highlighted")}function Ct(t){return new Promise(e=>setTimeout(e,t))}function cc(t,e=500){let n=null;return function(...r){const o=()=>{n=null,t(...r)};n&&clearTimeout(n),n=setTimeout(o,e)}}const cs=()=>typeof window<"u";function fc(){const t=navigator.userAgentData;return(t==null?void 0:t.platform)??navigator.platform}const fs=t=>cs()&&t.test(fc().toLowerCase()),dc=()=>cs()&&!!navigator.maxTouchPoints,mc=()=>fs(/^mac/)&&!dc(),hc=()=>fs(/mac|iphone|ipad|ipod/i),pc=()=>hc()&&!mc(),mo="data-melt-scroll-lock";function ki(t,e){if(!t)return;const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function gc(t,e,n){if(!t)return;const r=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{r?t.style.setProperty(e,r):t.style.removeProperty(e)}}function bc(t){const e=t.getBoundingClientRect().left;return Math.round(e)+t.scrollLeft?"paddingLeft":"paddingRight"}function vc(t){const e=document,n=e.defaultView??window,{documentElement:r,body:o}=e;if(o.hasAttribute(mo))return ht;o.setAttribute(mo,"");const l=n.innerWidth-r.clientWidth,s=()=>gc(r,"--scrollbar-width",`${l}px`),a=bc(r),u=n.getComputedStyle(o)[a],c=()=>ki(o,{overflow:"hidden",[a]:`calc(${u} + ${l}px)`}),f=()=>{const{scrollX:m,scrollY:p,visualViewport:g}=n,h=(g==null?void 0:g.offsetLeft)??0,S=(g==null?void 0:g.offsetTop)??0,I=ki(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(S))}px`,left:`${-(m-Math.floor(h))}px`,right:"0",[a]:`calc(${u} + ${l}px)`});return()=>{I==null||I(),n.scrollTo(m,p)}},d=[s(),pc()?f():c()];return()=>{d.forEach(m=>m==null?void 0:m()),o.removeAttribute(mo)}}function Ei(t){const{open:e,forceVisible:n,activeTrigger:r}=t;return gn([e,n,r],([o,i,l])=>(o||i)&&l!==null)}function Ze(t){$t&&Ct(1).then(()=>{const e=document.activeElement;!X(e)||e===t||(e.tabIndex=-1,t&&(t.tabIndex=0,t.focus()))})}function ds(){return Array.from(document.querySelectorAll('a[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'))}function _c(t){const e=ds(),r=e.indexOf(t)+1,o=e[r];return r=0&&X(o)?o:null}const wc=new Set(["Shift","Control","Alt","Meta","CapsLock","NumLock"]),Oc={onMatch:Ze,getCurrentItem:()=>document.activeElement};function Sc(t={}){const e={...Oc,...t},n=$e(ze([])),r=cc(()=>{n.update(()=>[])});return{typed:n,resetTyped:r,handleTypeaheadSearch:(i,l)=>{if(wc.has(i))return;const s=e.getCurrentItem(),a=Hu(n);if(!Array.isArray(a))return;a.push(i.toLowerCase()),n.set(a);const u=l.filter(h=>!(h.getAttribute("disabled")==="true"||h.getAttribute("aria-disabled")==="true"||h.hasAttribute("data-disabled"))),f=a.length>1&&a.every(h=>h===a[0])?a[0]:a.join(""),d=X(s)?u.indexOf(s):-1;let m=sc(u,Math.max(d,0));f.length===1&&(m=m.filter(h=>h!==s));const g=m.find(h=>(h==null?void 0:h.innerText)&&h.innerText.toLowerCase().startsWith(f.toLowerCase()));X(g)&&g!==s&&e.onMatch(g),r()}}}function kc(t){let e=t.parentElement;for(;X(e)&&!e.hasAttribute("data-portal");)e=e.parentElement;return e||"body"}function Pi(t,e){return e!==void 0?e:kc(t)==="body"?document.body:null}async function Ec(t){const{prop:e,defaultEl:n}=t;if(await Promise.all([Ct(1),pn]),e===void 0){n==null||n.focus();return}const r=Pu(e)?e(n):e;if(typeof r=="string"){const o=document.querySelector(r);if(!X(o))return;o.focus()}else X(r)&&r.focus()}const yt=Math.min,ft=Math.max,Vr=Math.round,yr=Math.floor,Vt=t=>({x:t,y:t}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ic={start:"end",end:"start"};function To(t,e,n){return ft(t,yt(e,n))}function Pn(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function In(t){return t.split("-")[1]}function ms(t){return t==="x"?"y":"x"}function Zo(t){return t==="y"?"height":"width"}function tn(t){return["top","bottom"].includes(xt(t))?"y":"x"}function $o(t){return ms(tn(t))}function Cc(t,e,n){n===void 0&&(n=!1);const r=In(t),o=$o(t),i=Zo(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(l=xr(l)),[l,xr(l)]}function jc(t){const e=xr(t);return[No(t),e,No(e)]}function No(t){return t.replace(/start|end/g,e=>Ic[e])}function Ac(t,e,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:r:e?r:o;case"left":case"right":return e?i:l;default:return[]}}function Dc(t,e,n,r){const o=In(t);let i=Ac(xt(t),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),e&&(i=i.concat(i.map(No)))),i}function xr(t){return t.replace(/left|right|bottom|top/g,e=>Pc[e])}function Tc(t){return{top:0,right:0,bottom:0,left:0,...t}}function hs(t){return typeof t!="number"?Tc(t):{top:t,right:t,bottom:t,left:t}}function Wr(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Ii(t,e,n){let{reference:r,floating:o}=t;const i=tn(e),l=$o(e),s=Zo(l),a=xt(e),u=i==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let m;switch(a){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(In(e)){case"start":m[l]-=d*(n&&u?-1:1);break;case"end":m[l]+=d*(n&&u?-1:1);break}return m}const Nc=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:f}=Ii(u,r,a),d=r,m={},p=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=e,{element:u,padding:c=0}=Pn(t,e)||{};if(u==null)return{};const f=hs(c),d={x:n,y:r},m=$o(o),p=Zo(m),g=await l.getDimensions(u),h=m==="y",S=h?"top":"left",I=h?"bottom":"right",E=h?"clientHeight":"clientWidth",A=i.reference[p]+i.reference[m]-d[m]-i.floating[p],v=d[m]-i.reference[m],C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let w=C?C[E]:0;(!w||!await(l.isElement==null?void 0:l.isElement(C)))&&(w=s.floating[E]||i.floating[p]);const M=A/2-v/2,F=w/2-g[p]/2-1,B=yt(f[S],F),q=yt(f[I],F),O=B,b=w-g[p]-q,y=w/2-g[p]/2+M,_=To(O,y,b),L=!a.arrow&&In(o)!=null&&y!==_&&i.reference[p]/2-(yy<=0)){var q,O;const y=(((q=i.flip)==null?void 0:q.index)||0)+1,_=w[y];if(_)return{data:{index:y,overflows:B},reset:{placement:_}};let L=(O=B.filter(G=>G.overflows[0]<=0).sort((G,D)=>G.overflows[1]-D.overflows[1])[0])==null?void 0:O.placement;if(!L)switch(m){case"bestFit":{var b;const G=(b=B.filter(D=>{if(C){const de=tn(D.placement);return de===I||de==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(de=>de>0).reduce((de,Pe)=>de+Pe,0)]).sort((D,de)=>D[1]-de[1])[0])==null?void 0:b[0];G&&(L=G);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};async function Fc(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=xt(n),s=In(n),a=tn(n)==="y",u=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,f=Pn(e,t);let{mainAxis:d,crossAxis:m,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(m=s==="end"?p*-1:p),a?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const Lc=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:l,middlewareData:s}=e,a=await Fc(e,t);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},Bc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:h=>{let{x:S,y:I}=h;return{x:S,y:I}}},...a}=Pn(t,e),u={x:n,y:r},c=await ei(e,a),f=tn(xt(o)),d=ms(f);let m=u[d],p=u[f];if(i){const h=d==="y"?"top":"left",S=d==="y"?"bottom":"right",I=m+c[h],E=m-c[S];m=To(I,m,E)}if(l){const h=f==="y"?"top":"left",S=f==="y"?"bottom":"right",I=p+c[h],E=p-c[S];p=To(I,p,E)}const g=s.fn({...e,[d]:m,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Hc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:o,elements:i}=e,{apply:l=()=>{},...s}=Pn(t,e),a=await ei(e,s),u=xt(n),c=In(n),f=tn(n)==="y",{width:d,height:m}=r.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,p=c==="end"?"top":"bottom");const h=m-a.top-a.bottom,S=d-a.left-a.right,I=yt(m-a[p],h),E=yt(d-a[g],S),A=!e.middlewareData.shift;let v=I,C=E;if(f?C=c||A?yt(E,S):S:v=c||A?yt(I,h):h,A&&!c){const M=ft(a.left,0),F=ft(a.right,0),B=ft(a.top,0),q=ft(a.bottom,0);f?C=d-2*(M!==0||F!==0?M+F:ft(a.left,a.right)):v=m-2*(B!==0||q!==0?B+q:ft(a.top,a.bottom))}await l({...e,availableWidth:C,availableHeight:v});const w=await o.getDimensions(i.floating);return d!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Cn(t){return ps(t)?(t.nodeName||"").toLowerCase():"#document"}function dt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Rt(t){var e;return(e=(ps(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ps(t){return t instanceof Node||t instanceof dt(t).Node}function kt(t){return t instanceof Element||t instanceof dt(t).Element}function Et(t){return t instanceof HTMLElement||t instanceof dt(t).HTMLElement}function Ci(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof dt(t).ShadowRoot}function hr(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function qc(t){return["table","td","th"].includes(Cn(t))}function lo(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ti(t){const e=ni(),n=gt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Uc(t){let e=Wt(t);for(;Et(e)&&!Sn(e);){if(lo(e))return null;if(ti(e))return e;e=Wt(e)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sn(t){return["html","body","#document"].includes(Cn(t))}function gt(t){return dt(t).getComputedStyle(t)}function ao(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wt(t){if(Cn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ci(t)&&t.host||Rt(t);return Ci(e)?e.host:e}function gs(t){const e=Wt(t);return Sn(e)?t.ownerDocument?t.ownerDocument.body:t.body:Et(e)&&hr(e)?e:gs(e)}function sr(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=gs(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),l=dt(o);return i?e.concat(l,l.visualViewport||[],hr(o)?o:[],l.frameElement&&n?sr(l.frameElement):[]):e.concat(o,sr(o,[],n))}function bs(t){const e=gt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Et(t),i=o?t.offsetWidth:n,l=o?t.offsetHeight:r,s=Vr(n)!==i||Vr(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function ri(t){return kt(t)?t:t.contextElement}function yn(t){const e=ri(t);if(!Et(e))return Vt(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=bs(e);let l=(i?Vr(n.width):n.width)/r,s=(i?Vr(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Vc=Vt(0);function vs(t){const e=dt(t);return!ni()||!e.visualViewport?Vc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==dt(t)?!1:e}function nn(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=ri(t);let l=Vt(1);e&&(r?kt(r)&&(l=yn(r)):l=yn(t));const s=xc(i,n,r)?vs(i):Vt(0);let a=(o.left+s.x)/l.x,u=(o.top+s.y)/l.y,c=o.width/l.x,f=o.height/l.y;if(i){const d=dt(i),m=r&&kt(r)?dt(r):r;let p=d,g=p.frameElement;for(;g&&r&&m!==p;){const h=yn(g),S=g.getBoundingClientRect(),I=gt(g),E=S.left+(g.clientLeft+parseFloat(I.paddingLeft))*h.x,A=S.top+(g.clientTop+parseFloat(I.paddingTop))*h.y;a*=h.x,u*=h.y,c*=h.x,f*=h.y,a+=E,u+=A,p=dt(g),g=p.frameElement}}return Wr({width:c,height:f,x:a,y:u})}function Wc(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",l=Rt(r),s=e?lo(e.floating):!1;if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Vt(1);const c=Vt(0),f=Et(r);if((f||!f&&!i)&&((Cn(r)!=="body"||hr(l))&&(a=ao(r)),Et(r))){const d=nn(r);u=yn(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x,y:n.y*u.y-a.scrollTop*u.y+c.y}}function Kc(t){return Array.from(t.getClientRects())}function _s(t){return nn(Rt(t)).left+ao(t).scrollLeft}function zc(t){const e=Rt(t),n=ao(t),r=t.ownerDocument.body,o=ft(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ft(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+_s(t);const s=-n.scrollTop;return gt(r).direction==="rtl"&&(l+=ft(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:s}}function Qc(t,e){const n=dt(t),r=Rt(t),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=ni();(!u||u&&e==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function Gc(t,e){const n=nn(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Et(t)?yn(t):Vt(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:l,height:s,x:a,y:u}}function ji(t,e,n){let r;if(e==="viewport")r=Qc(t,n);else if(e==="document")r=zc(Rt(t));else if(kt(e))r=Gc(e,n);else{const o=vs(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Wr(r)}function ys(t,e){const n=Wt(t);return n===e||!kt(n)||Sn(n)?!1:gt(n).position==="fixed"||ys(n,e)}function Jc(t,e){const n=e.get(t);if(n)return n;let r=sr(t,[],!1).filter(s=>kt(s)&&Cn(s)!=="body"),o=null;const i=gt(t).position==="fixed";let l=i?Wt(t):t;for(;kt(l)&&!Sn(l);){const s=gt(l),a=ti(l);!a&&s.position==="fixed"&&(o=null),(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||hr(l)&&!a&&ys(t,l))?r=r.filter(c=>c!==l):o=s,l=Wt(l)}return e.set(t,r),r}function Xc(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const l=[...n==="clippingAncestors"?lo(e)?[]:Jc(e,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,c)=>{const f=ji(e,c,o);return u.top=ft(f.top,u.top),u.right=yt(f.right,u.right),u.bottom=yt(f.bottom,u.bottom),u.left=ft(f.left,u.left),u},ji(e,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Yc(t){const{width:e,height:n}=bs(t);return{width:e,height:n}}function Zc(t,e,n){const r=Et(e),o=Rt(e),i=n==="fixed",l=nn(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const a=Vt(0);if(r||!r&&!i)if((Cn(e)!=="body"||hr(o))&&(s=ao(e)),r){const f=nn(e,!0,i,e);a.x=f.x+e.clientLeft,a.y=f.y+e.clientTop}else o&&(a.x=_s(o));const u=l.left+s.scrollLeft-a.x,c=l.top+s.scrollTop-a.y;return{x:u,y:c,width:l.width,height:l.height}}function ho(t){return gt(t).position==="static"}function Ai(t,e){return!Et(t)||gt(t).position==="fixed"?null:e?e(t):t.offsetParent}function ws(t,e){const n=dt(t);if(lo(t))return n;if(!Et(t)){let o=Wt(t);for(;o&&!Sn(o);){if(kt(o)&&!ho(o))return o;o=Wt(o)}return n}let r=Ai(t,e);for(;r&&qc(r)&&ho(r);)r=Ai(r,e);return r&&Sn(r)&&ho(r)&&!ti(r)?n:r||Uc(t)||n}const $c=async function(t){const e=this.getOffsetParent||ws,n=this.getDimensions,r=await n(t.floating);return{reference:Zc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ef(t){return gt(t).direction==="rtl"}const tf={convertOffsetParentRelativeRectToViewportRelativeRect:Wc,getDocumentElement:Rt,getClippingRect:Xc,getOffsetParent:ws,getElementRects:$c,getClientRects:Kc,getDimensions:Yc,getScale:yn,isElement:kt,isRTL:ef};function nf(t,e){let n=null,r;const o=Rt(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function l(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:d}=t.getBoundingClientRect();if(s||e(),!f||!d)return;const m=yr(c),p=yr(o.clientWidth-(u+f)),g=yr(o.clientHeight-(c+d)),h=yr(u),I={rootMargin:-m+"px "+-p+"px "+-g+"px "+-h+"px",threshold:ft(0,yt(1,a))||1};let E=!0;function A(v){const C=v[0].intersectionRatio;if(C!==a){if(!E)return l();C?l(!1,C):r=setTimeout(()=>{l(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(A,{...I,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,I)}n.observe(t)}return l(!0),i}function rf(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=ri(t),c=o||i?[...u?sr(u):[],...sr(e)]:[];c.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const f=u&&s?nf(u,n):null;let d=-1,m=null;l&&(m=new ResizeObserver(S=>{let[I]=S;I&&I.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(e)})),n()}),u&&!a&&m.observe(u),m.observe(e));let p,g=a?nn(t):null;a&&h();function h(){const S=nn(t);g&&(S.x!==g.x||S.y!==g.y||S.width!==g.width||S.height!==g.height)&&n(),g=S,p=requestAnimationFrame(h)}return n(),()=>{var S;c.forEach(I=>{o&&I.removeEventListener("scroll",n),i&&I.removeEventListener("resize",n)}),f==null||f(),(S=m)==null||S.disconnect(),m=null,a&&cancelAnimationFrame(p)}}const of=Lc,lf=Bc,af=Rc,sf=Hc,uf=Mc,cf=(t,e,n)=>{const r=new Map,o={platform:tf,...n},i={...o.platform,_c:r};return Nc(t,e,{...o,platform:i})},ff={strategy:"absolute",placement:"top",gutter:5,flip:!0,sameWidth:!1,overflowPadding:8},df={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function mf(t,e,n={}){if(!e||!t||n===null)return{destroy:ht};const r={...ff,...n},o=e.querySelector("[data-arrow=true]"),i=[];r.flip&&i.push(af({boundary:r.boundary,padding:r.overflowPadding}));const l=X(o)?o.offsetHeight/2:0;if(r.gutter||r.offset){const a=r.gutter?{mainAxis:r.gutter}:r.offset;(a==null?void 0:a.mainAxis)!=null&&(a.mainAxis+=l),i.push(of(a))}i.push(lf({boundary:r.boundary,crossAxis:r.overlap,padding:r.overflowPadding})),o&&i.push(uf({element:o,padding:8})),i.push(sf({padding:r.overflowPadding,apply({rects:a,availableHeight:u,availableWidth:c}){r.sameWidth&&Object.assign(e.style,{width:`${Math.round(a.reference.width)}px`,minWidth:"unset"}),r.fitViewport&&Object.assign(e.style,{maxWidth:`${c}px`,maxHeight:`${u}px`})}}));function s(){if(!t||!e||X(t)&&!t.ownerDocument.documentElement.contains(t))return;const{placement:a,strategy:u}=r;cf(t,e,{placement:a,middleware:i,strategy:u}).then(c=>{const f=Math.round(c.x),d=Math.round(c.y),[m,p]=hf(c.placement);if(e.setAttribute("data-side",m),e.setAttribute("data-align",p),Object.assign(e.style,{position:r.strategy,top:`${d}px`,left:`${f}px`}),X(o)&&c.middlewareData.arrow){const{x:g,y:h}=c.middlewareData.arrow,S=c.placement.split("-")[0];o.setAttribute("data-side",S),Object.assign(o.style,{position:"absolute",left:g!=null?`${g}px`:"",top:h!=null?`${h}px`:"",[S]:`calc(100% - ${l}px)`,transform:df[S],backgroundColor:"inherit",zIndex:"inherit"})}return c})}return Object.assign(e.style,{position:r.strategy}),{destroy:rf(t,e,s)}}function hf(t){const[e,n="center"]=t.split("-");return[e,n]}/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var Os=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Kr=Os.join(","),Ss=typeof Element>"u",rn=Ss?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zr=!Ss&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Qr=function t(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",l=i||n&&e&&t(e.parentNode);return l},pf=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},ks=function(e,n,r){if(Qr(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Kr));return n&&rn.call(e,Kr)&&o.unshift(e),o=o.filter(r),o},Es=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var l=i.shift();if(!Qr(l,!1))if(l.tagName==="SLOT"){var s=l.assignedElements(),a=s.length?s:l.children,u=t(a,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:l,candidates:u})}else{var c=rn.call(l,Kr);c&&r.filter(l)&&(n||!e.includes(l))&&o.push(l);var f=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),d=!Qr(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(f&&d){var m=t(f===!0?l.children:f.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:l,candidates:m})}else i.unshift.apply(i,l.children)}}return o},Ps=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},en=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||pf(e))&&!Ps(e)?0:e.tabIndex},gf=function(e,n){var r=en(e);return r<0&&n&&!Ps(e)?0:r},bf=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Is=function(e){return e.tagName==="INPUT"},vf=function(e){return Is(e)&&e.type==="hidden"},_f=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},yf=function(e,n){for(var r=0;rsummary:first-of-type"),l=i?e.parentElement:e;if(rn.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=e;e;){var a=e.parentElement,u=zr(e);if(a&&!a.shadowRoot&&o(a)===!0)return Di(e);e.assignedSlot?e=e.assignedSlot:!a&&u!==e.ownerDocument?e=u.host:e=a}e=s}if(kf(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Di(e);return!1},Pf=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},Cf=function t(e){var n=[],r=[];return e.forEach(function(o,i){var l=!!o.scopeParent,s=l?o.scopeParent:o,a=gf(s,l),u=l?t(o.candidates):s;a===0?l?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:a,item:o,isScope:l,content:u})}),r.sort(bf).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},jf=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Es([e],n.includeContainer,{filter:Mo.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:If}):r=ks(e,n.includeContainer,Mo.bind(null,n)),Cf(r)},Af=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Es([e],n.includeContainer,{filter:Gr.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=ks(e,n.includeContainer,Gr.bind(null,n)),r},un=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return rn.call(e,Kr)===!1?!1:Mo(n,e)},Df=Os.concat("iframe").join(","),po=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return rn.call(e,Df)===!1?!1:Gr(n,e)};/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */function Ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ni(t){for(var e=1;e0){var r=e[e.length-1];r!==n&&r.pause()}var o=e.indexOf(n);o===-1||e.splice(o,1),e.push(n)},deactivateTrap:function(e,n){var r=e.indexOf(n);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Rf=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ff=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Vn=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Lf=function(e){return Vn(e)&&!e.shiftKey},Bf=function(e){return Vn(e)&&e.shiftKey},Ri=function(e){return setTimeout(e,0)},Fi=function(e,n){var r=-1;return e.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Nn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?y-1:0),L=1;L=0)O=r.activeElement;else{var b=l.tabbableGroups[0],y=b&&b.firstTabbableNode;O=y||c("fallbackFocus")}if(!O)throw new Error("Your focus-trap needs to have at least one focusable element");return O},d=function(){if(l.containerGroups=l.containers.map(function(O){var b=jf(O,i.tabbableOptions),y=Af(O,i.tabbableOptions),_=b.length>0?b[0]:void 0,L=b.length>0?b[b.length-1]:void 0,G=y.find(function(Pe){return un(Pe)}),D=y.slice().reverse().find(function(Pe){return un(Pe)}),de=!!b.find(function(Pe){return en(Pe)>0});return{container:O,tabbableNodes:b,focusableNodes:y,posTabIndexesFound:de,firstTabbableNode:_,lastTabbableNode:L,firstDomTabbableNode:G,lastDomTabbableNode:D,nextTabbableNode:function(Ue){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ne=b.indexOf(Ue);return Ne<0?Je?y.slice(y.indexOf(Ue)+1).find(function(nt){return un(nt)}):y.slice(0,y.indexOf(Ue)).reverse().find(function(nt){return un(nt)}):b[Ne+(Je?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(O){return O.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(O){return O.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function q(O){var b=O.activeElement;if(b)return b.shadowRoot&&b.shadowRoot.activeElement!==null?q(b.shadowRoot):b},p=function q(O){if(O!==!1&&O!==m(document)){if(!O||!O.focus){q(f());return}O.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=O,Rf(O)&&O.select()}},g=function(O){var b=c("setReturnFocus",O);return b||(b===!1?!1:O)},h=function(O){var b=O.target,y=O.event,_=O.isBackward,L=_===void 0?!1:_;b=b||wr(y),d();var G=null;if(l.tabbableGroups.length>0){var D=u(b,y),de=D>=0?l.containerGroups[D]:void 0;if(D<0)L?G=l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:G=l.tabbableGroups[0].firstTabbableNode;else if(L){var Pe=Fi(l.tabbableGroups,function(Ft){var it=Ft.firstTabbableNode;return b===it});if(Pe<0&&(de.container===b||po(b,i.tabbableOptions)&&!un(b,i.tabbableOptions)&&!de.nextTabbableNode(b,!1))&&(Pe=D),Pe>=0){var Ue=Pe===0?l.tabbableGroups.length-1:Pe-1,Je=l.tabbableGroups[Ue];G=en(b)>=0?Je.lastTabbableNode:Je.lastDomTabbableNode}else Vn(y)||(G=de.nextTabbableNode(b,!1))}else{var Ne=Fi(l.tabbableGroups,function(Ft){var it=Ft.lastTabbableNode;return b===it});if(Ne<0&&(de.container===b||po(b,i.tabbableOptions)&&!un(b,i.tabbableOptions)&&!de.nextTabbableNode(b))&&(Ne=D),Ne>=0){var nt=Ne===l.tabbableGroups.length-1?0:Ne+1,z=l.tabbableGroups[nt];G=en(b)>=0?z.firstTabbableNode:z.firstDomTabbableNode}else Vn(y)||(G=de.nextTabbableNode(b))}}else G=c("fallbackFocus");return G},S=function(O){var b=wr(O);if(!(u(b,O)>=0)){if(Nn(i.clickOutsideDeactivates,O)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Nn(i.allowOutsideClick,O)||O.preventDefault()}},I=function(O){var b=wr(O),y=u(b,O)>=0;if(y||b instanceof Document)y&&(l.mostRecentlyFocusedNode=b);else{O.stopImmediatePropagation();var _,L=!0;if(l.mostRecentlyFocusedNode)if(en(l.mostRecentlyFocusedNode)>0){var G=u(l.mostRecentlyFocusedNode),D=l.containerGroups[G].tabbableNodes;if(D.length>0){var de=D.findIndex(function(Pe){return Pe===l.mostRecentlyFocusedNode});de>=0&&(i.isKeyForward(l.recentNavEvent)?de+1=0&&(_=D[de-1],L=!1))}}else l.containerGroups.some(function(Pe){return Pe.tabbableNodes.some(function(Ue){return en(Ue)>0})})||(L=!1);else L=!1;L&&(_=h({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),p(_||l.mostRecentlyFocusedNode||f())}l.recentNavEvent=void 0},E=function(O){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;l.recentNavEvent=O;var y=h({event:O,isBackward:b});y&&(Vn(O)&&O.preventDefault(),p(y))},A=function(O){if(Ff(O)&&Nn(i.escapeDeactivates,O)!==!1){O.preventDefault(),s.deactivate();return}(i.isKeyForward(O)||i.isKeyBackward(O))&&E(O,i.isKeyBackward(O))},v=function(O){var b=wr(O);u(b,O)>=0||Nn(i.clickOutsideDeactivates,O)||Nn(i.allowOutsideClick,O)||(O.preventDefault(),O.stopImmediatePropagation())},C=function(){if(l.active)return Mi.activateTrap(o,s),l.delayInitialFocusTimer=i.delayInitialFocus?Ri(function(){p(f())}):p(f()),r.addEventListener("focusin",I,!0),r.addEventListener("mousedown",S,{capture:!0,passive:!1}),r.addEventListener("touchstart",S,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",A,{capture:!0,passive:!1}),s},w=function(){if(l.active)return r.removeEventListener("focusin",I,!0),r.removeEventListener("mousedown",S,!0),r.removeEventListener("touchstart",S,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",A,!0),s},M=function(O){var b=O.some(function(y){var _=Array.from(y.removedNodes);return _.some(function(L){return L===l.mostRecentlyFocusedNode})});b&&p(f())},F=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(M):void 0,B=function(){F&&(F.disconnect(),l.active&&!l.paused&&l.containers.map(function(O){F.observe(O,{subtree:!0,childList:!0})}))};return s={get active(){return l.active},get paused(){return l.paused},activate:function(O){if(l.active)return this;var b=a(O,"onActivate"),y=a(O,"onPostActivate"),_=a(O,"checkCanFocusTrap");_||d(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement,b==null||b();var L=function(){_&&d(),C(),B(),y==null||y()};return _?(_(l.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(O){if(!l.active)return this;var b=Ni({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},O);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,w(),l.active=!1,l.paused=!1,B(),Mi.deactivateTrap(o,s);var y=a(b,"onDeactivate"),_=a(b,"onPostDeactivate"),L=a(b,"checkCanReturnFocus"),G=a(b,"returnFocus","returnFocusOnDeactivate");y==null||y();var D=function(){Ri(function(){G&&p(g(l.nodeFocusedBeforeActivation)),_==null||_()})};return G&&L?(L(g(l.nodeFocusedBeforeActivation)).then(D,D),this):(D(),this)},pause:function(O){if(l.paused||!l.active)return this;var b=a(O,"onPause"),y=a(O,"onPostPause");return l.paused=!0,b==null||b(),w(),B(),y==null||y(),this},unpause:function(O){if(!l.paused||!l.active)return this;var b=a(O,"onUnpause"),y=a(O,"onPostUnpause");return l.paused=!1,b==null||b(),d(),C(),B(),y==null||y(),this},updateContainerElements:function(O){var b=[].concat(O).filter(Boolean);return l.containers=b.map(function(y){return typeof y=="string"?r.querySelector(y):y}),l.active&&d(),B(),this}},s.updateContainerElements(e),s};function Uf(t={}){let e;const{immediate:n,...r}=t,o=ze(!1),i=ze(!1),l=f=>e==null?void 0:e.activate(f),s=f=>{e==null||e.deactivate(f)},a=()=>{e&&(e.pause(),i.set(!0))},u=()=>{e&&(e.unpause(),i.set(!1))};return{useFocusTrap:f=>(e=qf(f,{...r,onActivate(){var d;o.set(!0),(d=t.onActivate)==null||d.call(t)},onDeactivate(){var d;o.set(!1),(d=t.onDeactivate)==null||d.call(t)}}),n&&l(),{destroy(){s(),e=void 0}}),hasFocus:_i(o),isPaused:_i(i),activate:l,deactivate:s,pause:a,unpause:u}}const Or=[],Vf=(t,e)=>{let n=ht;function r(){const i=Or.indexOf(t);i>=0&&Or.splice(i,1)}function o(i){n();const{open:l,onClose:s,shouldCloseOnInteractOutside:a,closeOnInteractOutside:u}=i;Ct(100).then(()=>{l?Or.push(t):r()});function c(){return ac(Or)===t}function f(){c()&&s&&(s(),r())}function d(p){const g=p.target;Jo(g)&&g&&c()&&(p.preventDefault(),p.stopPropagation(),p.stopImmediatePropagation())}function m(p){a!=null&&a(p)&&c()&&(p.preventDefault(),p.stopPropagation(),p.stopImmediatePropagation(),f())}n=Wf(t,{onInteractOutsideStart:d,onInteractOutside:u?m:void 0,enabled:l}).destroy}return o(e),{update:o,destroy(){r(),n()}}},xf={floating:{},focusTrap:{},modal:{},escapeKeydown:{},portal:"body"},Li=(t,e)=>{t.dataset.escapee="";const{anchorElement:n,open:r,options:o}=e;if(!n||!r||!o)return{destroy:ht};const i={...xf,...o},l=[];if(i.portal!==null&&l.push(Cs(t,i.portal).destroy),l.push(mf(n,t,i.floating).destroy),i.focusTrap!==null){const{useFocusTrap:a}=Uf({immediate:!0,escapeDeactivates:!1,allowOutsideClick:!0,returnFocusOnDeactivate:!1,fallbackFocus:t,...i.focusTrap});l.push(a(t).destroy)}i.modal!==null&&l.push(Vf(t,{onClose:()=>{X(n)&&(r.set(!1),n.focus())},shouldCloseOnInteractOutside:a=>!(a.defaultPrevented||X(n)&&n.contains(a.target)),...i.modal}).destroy),i.escapeKeydown!==null&&l.push(ns(t,{enabled:r,handler:()=>{r.set(!1)},...i.escapeKeydown}).destroy);const s=mt(...l);return{destroy(){s()}}},Cs=(t,e="body")=>{let n;if(!X(e)&&typeof e!="string")return{destroy:ht};async function r(i){if(e=i,typeof e=="string"){if(n=document.querySelector(e),n===null&&(await pn(),n=document.querySelector(e)),n===null)throw new Error(`No element found matching css selector: "${e}"`)}else if(e instanceof HTMLElement)n=e;else throw new TypeError(`Unknown portal target type: ${e===null?"null":typeof e}. Allowed types: string (CSS selector) or HTMLElement.`);t.dataset.portal="",n.appendChild(t),t.hidden=!1}function o(){t.remove()}return r(e),{update:r,destroy:o}},Wf=(t,e)=>{let n=ht,r=ht,o=!1,i=!1,l=!1;function s(c){n(),r();const{onInteractOutside:f,onInteractOutsideStart:d,enabled:m}=c;if(!m)return;function p(S){f&&Bi(S,t)&&(d==null||d(S));const I=S.target;Jo(I)&&js(t,I)&&(i=!0),o=!0}function g(S){f==null||f(S)}const h=Kf(t);if(typeof PointerEvent<"u"){const S=I=>{r();const E=A=>{a(A)&&g(A),u()};if(I.pointerType==="touch"){r=st(h,"click",E,{capture:!0,once:!0});return}E(I)};n=mt(st(h,"pointerdown",p,!0),st(h,"pointerup",S,!0))}else{const S=E=>{l?l=!1:a(E)&&g(E),u()},I=E=>{l=!0,a(E)&&g(E),u()};n=mt(st(h,"mousedown",p,!0),st(h,"mouseup",S,!0),st(h,"touchstart",p,!0),st(h,"touchend",I,!0))}}function a(c){return!!(o&&!i&&Bi(c,t))}function u(){o=!1,i=!1}return s(e),{update:s,destroy(){n(),r()}}};function Bi(t,e){if("button"in t&&t.button>0)return!1;const n=t.target;if(!Jo(n))return!1;const r=n.ownerDocument;return!r||!r.documentElement.contains(n)?!1:e&&!js(e,n)}function js(t,e){return t===e||t.contains(e)}function Kf(t){return(t==null?void 0:t.ownerDocument)??document}const zf={ltr:[...qr,et.ARROW_RIGHT],rtl:[...qr,et.ARROW_LEFT]},Qf={ltr:[et.ARROW_LEFT],rtl:[et.ARROW_RIGHT]},Hi=["menu","trigger"],Gf={arrowSize:8,positioning:{placement:"bottom"},preventScroll:!0,closeOnEscape:!0,closeOnOutsideClick:!0,portal:void 0,loop:!1,dir:"ltr",defaultOpen:!1,typeahead:!0,closeOnItemClick:!0,onOutsideClick:void 0};function Jf(t){const{name:e,selector:n}=Cu(t.selector),{preventScroll:r,arrowSize:o,positioning:i,closeOnEscape:l,closeOnOutsideClick:s,portal:a,forceVisible:u,typeahead:c,loop:f,closeFocus:d,disableFocusFirstItem:m,closeOnItemClick:p,onOutsideClick:g}=t.rootOptions,h=t.rootOpen,S=t.rootActiveTrigger,I=t.nextFocusable,E=t.prevFocusable,A=$e.writable(!1),v=$e(ze(0)),C=$e(ze(null)),w=$e(ze("right")),M=$e(ze(null)),F=$e(gn([w,C],([R,V])=>U=>R===(V==null?void 0:V.side)&&Xf(U,V==null?void 0:V.area))),{typed:B,handleTypeaheadSearch:q}=Sc(),O=Un({...yi(Hi),...t.ids}),b=Ei({open:h,forceVisible:u,activeTrigger:S}),y=at(e(),{stores:[b,a,O.menu,O.trigger],returned:([R,V,U,Q])=>({role:"menu",hidden:R?void 0:!0,style:Tn({display:R?void 0:"none"}),id:U,"aria-labelledby":Q,"data-state":R?"open":"closed","data-portal":Iu(V),tabindex:-1}),action:R=>{let V=ht;const U=_t([b,S,i,s,a,l],([te,Me,We,Ie,fe,he])=>{V(),!(!te||!Me)&&pn().then(()=>{V(),Rn(R,n),V=Li(R,{anchorElement:Me,open:h,options:{floating:We,modal:{closeOnInteractOutside:Ie,shouldCloseOnInteractOutside:Z=>{var le;return(le=g.get())==null||le(Z),!(Z.defaultPrevented||X(Me)&&Me.contains(Z.target))},onClose:()=>{h.set(!1),Me.focus()},open:te},portal:Pi(R,fe),escapeKeydown:he?void 0:null}}).destroy})}),Q=mt(be(R,"keydown",te=>{const Me=te.target,We=te.currentTarget;if(!X(Me)||!X(We)||!(Me.closest('[role="menu"]')===We))return;if(di.includes(te.key)&&Ui(te,f.get()??!1),te.key===et.TAB){te.preventDefault(),h.set(!1),qi(te,I,E);return}const fe=te.key.length===1;!(te.ctrlKey||te.altKey||te.metaKey)&&fe&&c.get()===!0&&q(te.key,Zt(We))}));return{destroy(){U(),Q(),V()}}}}),_=at(e("trigger"),{stores:[h,O.menu,O.trigger],returned:([R,V,U])=>({"aria-controls":V,"aria-expanded":R,"data-state":R?"open":"closed",id:U,tabindex:0}),action:R=>(Sr(R),S.update(U=>U||R),{destroy:mt(be(R,"click",U=>{const Q=h.get(),te=U.currentTarget;X(te)&&(it(te),Q||U.preventDefault())}),be(R,"keydown",U=>{const Q=U.currentTarget;if(!X(Q)||!(qr.includes(U.key)||U.key===et.ARROW_DOWN))return;U.preventDefault(),it(Q);const te=Q.getAttribute("aria-controls");if(!te)return;const Me=document.getElementById(te);if(!Me)return;const We=Zt(Me);We.length&&Ze(We[0])}))})}),L=at(e("arrow"),{stores:o,returned:R=>({"data-arrow":!0,style:Tn({position:"absolute",width:`var(--arrow-size, ${R}px)`,height:`var(--arrow-size, ${R}px)`})})}),G=at(e("overlay"),{stores:[b],returned:([R])=>({hidden:R?void 0:!0,tabindex:-1,style:Tn({display:R?void 0:"none"}),"aria-hidden":"true","data-state":$f(R)}),action:R=>{let V=ht;if(l.get()){const Q=ns(R,{handler:()=>{h.set(!1);const te=S.get();te&&te.focus()}});Q&&Q.destroy&&(V=Q.destroy)}const U=_t([a],([Q])=>{if(Q===null)return ht;const te=Pi(R,Q);return te===null?ht:Cs(R,te).destroy});return{destroy(){V(),U()}}}}),D=at(e("item"),{returned:()=>({role:"menuitem",tabindex:-1,"data-orientation":"vertical"}),action:R=>(Rn(R,n),Sr(R),{destroy:mt(be(R,"pointerdown",U=>{const Q=U.currentTarget;if(X(Q)&&It(Q)){U.preventDefault();return}}),be(R,"click",U=>{const Q=U.currentTarget;if(X(Q)){if(It(Q)){U.preventDefault();return}if(U.defaultPrevented){Ze(Q);return}p.get()&&Ct(1).then(()=>{h.set(!1)})}}),be(R,"keydown",U=>{on(U)}),be(R,"pointermove",U=>{An(U)}),be(R,"pointerleave",U=>{Dn(U)}),be(R,"focusin",U=>{Qt(U)}),be(R,"focusout",U=>{vt(U)}))})}),de=at(e("group"),{returned:()=>R=>({role:"group","aria-labelledby":R})}),Pe=at(e("group-label"),{returned:()=>R=>({id:R})}),Ue={defaultChecked:!1,disabled:!1},Je=R=>{const V={...Ue,...R},U=V.checked??ze(V.defaultChecked??null),Q=Mr(U,V.onCheckedChange),te=ze(V.disabled),Me=at(e("checkbox-item"),{stores:[Q,te],returned:([fe,he])=>({role:"menuitemcheckbox",tabindex:-1,"data-orientation":"vertical","aria-checked":ie(fe)?"mixed":fe?"true":"false","data-disabled":fo(he),"data-state":_e(fe)}),action:fe=>(Rn(fe,n),Sr(fe),{destroy:mt(be(fe,"pointerdown",Z=>{const le=Z.currentTarget;if(X(le)&&It(le)){Z.preventDefault();return}}),be(fe,"click",Z=>{const le=Z.currentTarget;if(X(le)){if(It(le)){Z.preventDefault();return}if(Z.defaultPrevented){Ze(le);return}Q.update(ct=>ie(ct)?!0:!ct),p.get()&&pn().then(()=>{h.set(!1)})}}),be(fe,"keydown",Z=>{on(Z)}),be(fe,"pointermove",Z=>{const le=Z.currentTarget;if(X(le)){if(It(le)){Pt(Z);return}An(Z,le)}}),be(fe,"pointerleave",Z=>{Dn(Z)}),be(fe,"focusin",Z=>{Qt(Z)}),be(fe,"focusout",Z=>{vt(Z)}))})}),We=gn(Q,fe=>fe===!0),Ie=gn(Q,fe=>fe==="indeterminate");return{elements:{checkboxItem:Me},states:{checked:Q},helpers:{isChecked:We,isIndeterminate:Ie},options:{disabled:te}}},Ne=(R={})=>{const V=R.value??ze(R.defaultValue??null),U=Mr(V,R.onValueChange),Q=at(e("radio-group"),{returned:()=>({role:"group"})}),te={disabled:!1},Me=at(e("radio-item"),{stores:[U],returned:([Ie])=>fe=>{const{value:he,disabled:Z}={...te,...fe},le=Ie===he;return{disabled:Z,role:"menuitemradio","data-state":le?"checked":"unchecked","aria-checked":le,"data-disabled":fo(Z),"data-value":he,"data-orientation":"vertical",tabindex:-1}},action:Ie=>(Rn(Ie,n),{destroy:mt(be(Ie,"pointerdown",he=>{const Z=he.currentTarget;if(!X(Z))return;const le=Ie.dataset.value;if(Ie.dataset.disabled||le===void 0){he.preventDefault();return}}),be(Ie,"click",he=>{const Z=he.currentTarget;if(!X(Z))return;const le=Ie.dataset.value;if(Ie.dataset.disabled||le===void 0){he.preventDefault();return}if(he.defaultPrevented){if(!X(Z))return;Ze(Z);return}U.set(le),p.get()&&pn().then(()=>{h.set(!1)})}),be(Ie,"keydown",he=>{on(he)}),be(Ie,"pointermove",he=>{const Z=he.currentTarget;if(!X(Z))return;const le=Ie.dataset.value;if(Ie.dataset.disabled||le===void 0){Pt(he);return}An(he,Z)}),be(Ie,"pointerleave",he=>{Dn(he)}),be(Ie,"focusin",he=>{Qt(he)}),be(Ie,"focusout",he=>{vt(he)}))})}),We=gn(U,Ie=>fe=>Ie===fe);return{elements:{radioGroup:Q,radioItem:Me},states:{value:U},helpers:{isChecked:We}}},{elements:{root:nt}}=rd({orientation:"horizontal"}),z={...Gf,disabled:!1,positioning:{placement:"right-start",gutter:8}},Ft=R=>{const V={...z,...R},U=V.open??ze(!1),Q=Mr(U,V==null?void 0:V.onOpenChange),te=Un(rs(V,"ids")),{positioning:Me,arrowSize:We,disabled:Ie}=te,fe=$e(ze(null)),he=$e(ze(null)),Z=$e(ze(0)),le=Un({...yi(Hi),...V.ids});mi(()=>{const pe=document.getElementById(le.trigger.get());pe&&fe.set(pe)});const ct=Ei({open:Q,forceVisible:u,activeTrigger:fe}),br=at(e("submenu"),{stores:[ct,le.menu,le.trigger],returned:([pe,Ke,lt])=>({role:"menu",hidden:pe?void 0:!0,style:Tn({display:pe?void 0:"none"}),id:Ke,"aria-labelledby":lt,"data-state":pe?"open":"closed","data-id":Ke,tabindex:-1}),action:pe=>{let Ke=ht;const lt=_t([ct,Me],([ne,ke])=>{if(Ke(),!ne)return;const qe=fe.get();qe&&pn().then(()=>{Ke();const xe=Xe(qe);Ke=Li(pe,{anchorElement:qe,open:Q,options:{floating:ke,portal:X(xe)?xe:void 0,modal:null,focusTrap:null,escapeKeydown:null}}).destroy})}),ge=mt(be(pe,"keydown",ne=>{if(ne.key===et.ESCAPE)return;const ke=ne.target,qe=ne.currentTarget;if(!X(ke)||!X(qe)||!(ke.closest('[role="menu"]')===qe))return;if(di.includes(ne.key)){ne.stopImmediatePropagation(),Ui(ne,f.get()??!1);return}const ln=Qf.ltr.includes(ne.key),an=ne.ctrlKey||ne.altKey||ne.metaKey,_r=ne.key.length===1;if(ln){const fi=fe.get();ne.preventDefault(),Q.update(()=>(fi&&Ze(fi),!1));return}if(ne.key===et.TAB){ne.preventDefault(),h.set(!1),qi(ne,I,E);return}!an&&_r&&c.get()===!0&&q(ne.key,Zt(qe))}),be(pe,"pointermove",ne=>{Gt(ne)}),be(pe,"focusout",ne=>{const ke=fe.get();if(A.get()){const qe=ne.target,xe=document.getElementById(le.menu.get());if(!X(xe)||!X(qe))return;!xe.contains(qe)&&qe!==ke&&Q.set(!1)}else{const qe=ne.currentTarget,xe=ne.relatedTarget;if(!X(xe)||!X(qe))return;!qe.contains(xe)&&xe!==ke&&Q.set(!1)}}));return{destroy(){lt(),Ke(),ge()}}}}),vr=at(e("subtrigger"),{stores:[Q,Ie,le.menu,le.trigger],returned:([pe,Ke,lt,ge])=>({role:"menuitem",id:ge,tabindex:-1,"aria-controls":lt,"aria-expanded":pe,"data-state":pe?"open":"closed","data-disabled":fo(Ke),"aria-haspopop":"menu"}),action:pe=>{Rn(pe,n),Sr(pe),fe.update(ge=>ge||pe);const Ke=()=>{go(he),window.clearTimeout(Z.get()),C.set(null)},lt=mt(be(pe,"click",ge=>{if(ge.defaultPrevented)return;const ne=ge.currentTarget;!X(ne)||It(ne)||(Ze(ne),Q.get()||Q.update(ke=>ke||(fe.set(ne),!ke)))}),be(pe,"keydown",ge=>{const ne=B.get(),ke=ge.currentTarget;if(!(!X(ke)||It(ke)||ne.length>0&&ge.key===et.SPACE)&&zf.ltr.includes(ge.key)){if(!Q.get()){ke.click(),ge.preventDefault();return}const xe=ke.getAttribute("aria-controls");if(!xe)return;const ln=document.getElementById(xe);if(!X(ln))return;const an=Zt(ln)[0];Ze(an)}}),be(pe,"pointermove",ge=>{if(!Mn(ge)||(Lt(ge),ge.defaultPrevented))return;const ne=ge.currentTarget;if(!X(ne))return;Zf(le.menu.get())||Ze(ne);const ke=he.get();!Q.get()&&!ke&&!It(ne)&&he.set(window.setTimeout(()=>{Q.update(()=>(fe.set(ne),!0)),go(he)},100))}),be(pe,"pointerleave",ge=>{if(!Mn(ge))return;go(he);const ne=document.getElementById(le.menu.get()),ke=ne==null?void 0:ne.getBoundingClientRect();if(ke){const qe=ne==null?void 0:ne.dataset.side,xe=qe==="right",ln=xe?-5:5,an=ke[xe?"left":"right"],_r=ke[xe?"right":"left"];C.set({area:[{x:ge.clientX+ln,y:ge.clientY},{x:an,y:ke.top},{x:_r,y:ke.top},{x:_r,y:ke.bottom},{x:an,y:ke.bottom}],side:qe}),window.clearTimeout(Z.get()),Z.set(window.setTimeout(()=>{C.set(null)},300))}else{if(co(ge),ge.defaultPrevented)return;C.set(null)}}),be(pe,"focusout",ge=>{const ne=ge.currentTarget;if(!X(ne))return;sn(ne);const ke=ge.relatedTarget;if(!X(ke))return;const qe=ne.getAttribute("aria-controls");if(!qe)return;const xe=document.getElementById(qe);xe&&!xe.contains(ke)&&Q.set(!1)}),be(pe,"focusin",ge=>{Qt(ge)}));return{destroy(){Ke(),lt()}}}}),vu=at(e("subarrow"),{stores:We,returned:pe=>({"data-arrow":!0,style:Tn({position:"absolute",width:`var(--arrow-size, ${pe}px)`,height:`var(--arrow-size, ${pe}px)`})})});return _t([h],([pe])=>{pe||(fe.set(null),Q.set(!1))}),_t([C],([pe])=>{!$t||pe||window.clearTimeout(Z.get())}),_t([Q],([pe])=>{if($t&&(pe&&A.get()&&Ct(1).then(()=>{const Ke=document.getElementById(le.menu.get());if(!Ke)return;const lt=Zt(Ke);lt.length&&Ze(lt[0])}),!pe)){const Ke=M.get(),lt=document.getElementById(le.trigger.get());if(Ke&&Ct(1).then(()=>{const ge=document.getElementById(le.menu.get());ge&&ge.contains(Ke)&&sn(Ke)}),!lt||document.activeElement===lt)return;sn(lt)}}),{ids:le,elements:{subTrigger:vr,subMenu:br,subArrow:vu},states:{subOpen:Q},options:te}};mi(()=>{const R=document.getElementById(O.trigger.get());X(R)&&h.get()&&S.set(R);const V=[],U=()=>A.set(!1),Q=()=>{A.set(!0),V.push(mt(st(document,"pointerdown",U,{capture:!0,once:!0}),st(document,"pointermove",U,{capture:!0,once:!0})))},te=Me=>{if(Me.key===et.ESCAPE&&l.get()){h.set(!1);return}};return V.push(st(document,"keydown",Q,{capture:!0})),V.push(st(document,"keydown",te)),()=>{V.forEach(Me=>Me())}}),_t([h,M],([R,V])=>{!R&&V&&sn(V)}),_t([h],([R])=>{if($t&&!R){const V=S.get();if(!V)return;const U=d.get();!R&&V&&Ec({prop:U,defaultEl:V})}}),_t([h,r],([R,V])=>{if(!$t)return;const U=[];return R&&V&&U.push(vc()),Ct(1).then(()=>{const Q=document.getElementById(O.menu.get());if(Q&&R&&A.get()){if(m.get()){Ze(Q);return}const te=Zt(Q);if(!te.length)return;Ze(te[0])}}),()=>{U.forEach(Q=>Q())}}),_t(h,R=>{if(!$t)return;const V=()=>A.set(!1),U=Q=>{if(A.set(!0),Q.key===et.ESCAPE&&R&&l.get()){h.set(!1);return}};return mt(st(document,"pointerdown",V,{capture:!0,once:!0}),st(document,"pointermove",V,{capture:!0,once:!0}),st(document,"keydown",U,{capture:!0}))});function it(R){h.update(V=>{const U=!V;return U&&(I.set(_c(R)),E.set(yc(R)),S.set(R)),U})}function Qt(R){const V=R.currentTarget;if(!X(V))return;const U=M.get();U&&sn(U),uc(V),M.set(V)}function vt(R){const V=R.currentTarget;X(V)&&sn(V)}function Lt(R){Ve(R)&&R.preventDefault()}function Pt(R){if(Ve(R))return;const V=R.target;if(!X(V))return;const U=Xe(V);U&&Ze(U)}function co(R){Ve(R)&&R.preventDefault()}function Gt(R){if(!Mn(R))return;const V=R.target,U=R.currentTarget;if(!X(U)||!X(V))return;const Q=v.get(),te=Q!==R.clientX;if(U.contains(V)&&te){const Me=R.clientX>Q?"right":"left";w.set(Me),v.set(R.clientX)}}function An(R,V=null){if(!Mn(R)||(Lt(R),R.defaultPrevented))return;if(V){Ze(V);return}const U=R.currentTarget;X(U)&&Ze(U)}function Dn(R){Mn(R)&&Pt(R)}function on(R){if(B.get().length>0&&R.key===et.SPACE){R.preventDefault();return}if(qr.includes(R.key)){R.preventDefault();const Q=R.currentTarget;if(!X(Q))return;Q.click()}}function ie(R){return R==="indeterminate"}function _e(R){return ie(R)?"indeterminate":R?"checked":"unchecked"}function Ve(R){return F.get()(R)}function Xe(R){const V=R.closest('[role="menu"]');return X(V)?V:null}return{elements:{trigger:_,menu:y,overlay:G,item:D,group:de,groupLabel:Pe,arrow:L,separator:nt},builders:{createCheckboxItem:Je,createSubmenu:Ft,createMenuRadioGroup:Ne},states:{open:h},helpers:{handleTypeaheadSearch:q},ids:O,options:t.rootOptions}}function qi(t,e,n){if(t.shiftKey){const r=n.get();r&&(t.preventDefault(),Ct(1).then(()=>r.focus()),n.set(null))}else{const r=e.get();r&&(t.preventDefault(),Ct(1).then(()=>r.focus()),e.set(null))}}function Zt(t){return Array.from(t.querySelectorAll(`[data-melt-menu-id="${t.id}"]`)).filter(e=>X(e))}function Sr(t){!t||!It(t)||(t.setAttribute("data-disabled",""),t.setAttribute("aria-disabled","true"))}function go(t){if(!$t)return;const e=t.get();e&&(window.clearTimeout(e),t.set(null))}function Mn(t){return t.pointerType==="mouse"}function Rn(t,e){if(!t)return;const n=t.closest(`${e()}, ${e("submenu")}`);X(n)&&t.setAttribute("data-melt-menu-id",n.id)}function Ui(t,e){t.preventDefault();const n=document.activeElement,r=t.currentTarget;if(!X(n)||!X(r))return;const o=Zt(r);if(!o.length)return;const i=o.filter(a=>!(a.hasAttribute("data-disabled")||a.getAttribute("disabled")==="true")),l=i.indexOf(n);let s;switch(t.key){case et.ARROW_DOWN:e?s=l0?l-1:i.length-1:s=l<0?i.length-1:l>0?l-1:0;break;case et.HOME:s=0;break;case et.END:s=i.length-1;break;default:return}Ze(i[s])}function Xf(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return Yf(n,e)}function Yf(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,l=e.length-1;ir!=c>r&&n<(u-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function Zf(t){const e=document.activeElement;if(!X(e))return!1;const n=e.closest(`[data-id="${t}"]`);return X(n)}function $f(t){return t?"open":"closed"}const ed={arrowSize:8,positioning:{placement:"bottom"},preventScroll:!0,closeOnEscape:!0,closeOnOutsideClick:!0,portal:void 0,loop:!1,dir:"ltr",defaultOpen:!1,forceVisible:!1,typeahead:!0,closeFocus:void 0,disableFocusFirstItem:!1,closeOnItemClick:!0,onOutsideClick:void 0};function td(t){const e={...ed,...t},n=Un(rs(e,"ids")),r=e.open??ze(e.defaultOpen),o=Mr(r,e==null?void 0:e.onOpenChange),i=$e(ze(null)),l=$e(ze(null)),s=$e(ze(null)),{elements:a,builders:u,ids:c,states:f,options:d}=Jf({rootOptions:n,rootOpen:o,rootActiveTrigger:$e(i),nextFocusable:$e(l),prevFocusable:$e(s),selector:"dropdown-menu",removeScroll:!0,ids:e.ids});return{ids:c,elements:a,states:f,builders:u,options:d}}const nd={orientation:"horizontal",decorative:!1},rd=t=>{const e={...nd,...t},n=Un(e),{orientation:r,decorative:o}=n;return{elements:{root:at("separator",{stores:[r,o],returned:([l,s])=>({role:s?"none":"separator","aria-orientation":l==="vertical"?l:void 0,"aria-hidden":s,"data-orientation":l})})},options:n}};function od(){return ju(10)}function id(t,e){const n=[];return e.builders.forEach(r=>{const o=r.action(t);o&&n.push(o)}),{destroy:()=>{n.forEach(r=>{r.destroy&&r.destroy()})}}}function Vi(t){const e={};return t.forEach(n=>{Object.keys(n).forEach(r=>{r!=="action"&&(e[r]=n[r])})}),e}function ld(t){let e=t[1]?"a":"button",n,r,o=(t[1]?"a":"button")&&bo(t);return{c(){o&&o.c(),n=re()},l(i){o&&o.l(i),n=re()},m(i,l){o&&o.m(i,l),H(i,n,l),r=!0},p(i,l){i[1],e?Ee(e,i[1]?"a":"button")?(o.d(1),o=bo(i),e=i[1]?"a":"button",o.c(),o.m(n.parentNode,n)):o.p(i,l):(o=bo(i),e=i[1]?"a":"button",o.c(),o.m(n.parentNode,n))},i(i){r||(j(o,i),r=!0)},o(i){T(o,i),r=!1},d(i){i&&P(n),o&&o.d(i)}}}function ad(t){let e=t[1]?"a":"button",n,r,o=(t[1]?"a":"button")&&vo(t);return{c(){o&&o.c(),n=re()},l(i){o&&o.l(i),n=re()},m(i,l){o&&o.m(i,l),H(i,n,l),r=!0},p(i,l){i[1],e?Ee(e,i[1]?"a":"button")?(o.d(1),o=vo(i),e=i[1]?"a":"button",o.c(),o.m(n.parentNode,n)):o.p(i,l):(o=vo(i),e=i[1]?"a":"button",o.c(),o.m(n.parentNode,n))},i(i){r||(j(o,i),r=!0)},o(i){T(o,i),r=!1},d(i){i&&P(n),o&&o.d(i)}}}function bo(t){let e,n,r,o,i;const l=t[7].default,s=Fe(l,t,t[6],null);let a=[{type:n=t[1]?void 0:t[2]},{href:t[1]},{tabindex:"0"},t[5],t[4]],u={};for(let c=0;c{l[c]=null}),Se(),n=l[e],n?n.p(a,u):(n=l[e]=i[e](a),n.c()),j(n,1),n.m(r.parentNode,r))},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),l[e].d(a)}}}function ud(t,e,n){const r=["href","type","builders","el"];let o=Ge(e,r),{$$slots:i={},$$scope:l}=e,{href:s=void 0}=e,{type:a=void 0}=e,{builders:u=[]}=e,{el:c=void 0}=e;const f={"data-button-root":""};function d(D){ye.call(this,t,D)}function m(D){ye.call(this,t,D)}function p(D){ye.call(this,t,D)}function g(D){ye.call(this,t,D)}function h(D){ye.call(this,t,D)}function S(D){ye.call(this,t,D)}function I(D){ye.call(this,t,D)}function E(D){ye.call(this,t,D)}function A(D){ye.call(this,t,D)}function v(D){ye.call(this,t,D)}function C(D){ye.call(this,t,D)}function w(D){ye.call(this,t,D)}function M(D){ye.call(this,t,D)}function F(D){ye.call(this,t,D)}function B(D){ye.call(this,t,D)}function q(D){ye.call(this,t,D)}function O(D){ye.call(this,t,D)}function b(D){ye.call(this,t,D)}function y(D){ye.call(this,t,D)}function _(D){ye.call(this,t,D)}function L(D){pt[D?"unshift":"push"](()=>{c=D,n(0,c)})}function G(D){pt[D?"unshift":"push"](()=>{c=D,n(0,c)})}return t.$$set=D=>{e=ve(ve({},e),Tt(D)),n(5,o=Ge(e,r)),"href"in D&&n(1,s=D.href),"type"in D&&n(2,a=D.type),"builders"in D&&n(3,u=D.builders),"el"in D&&n(0,c=D.el),"$$scope"in D&&n(6,l=D.$$scope)},[c,s,a,u,f,o,l,i,d,m,p,g,h,S,I,E,A,v,C,w,M,F,B,q,O,b,y,_,L,G]}let cd=class extends De{constructor(e){super(),Te(this,e,ud,sd,Ee,{href:1,type:2,builders:3,el:0})}};function fd(t){return(e={})=>dd(t,e)}function dd(t,e){const r={...{side:"bottom",align:"center",sideOffset:0,alignOffset:0,sameWidth:!1,avoidCollisions:!0,collisionPadding:8,fitViewport:!1,strategy:"absolute",overlap:!1},...e};t.update(o=>({...o,placement:md(r.side,r.align),offset:{...o.offset,mainAxis:r.sideOffset,crossAxis:r.alignOffset},gutter:0,sameWidth:r.sameWidth,flip:r.avoidCollisions,overflowPadding:r.collisionPadding,boundary:r.collisionBoundary,fitViewport:r.fitViewport,strategy:r.strategy,overlap:r.overlap}))}function md(t,e){return e==="center"?t:`${t}-${e}`}function oi(){return{NAME:"menu",SUB_NAME:"menu-submenu",RADIO_GROUP_NAME:"menu-radiogroup",CHECKBOX_ITEM_NAME:"menu-checkboxitem",RADIO_ITEM_NAME:"menu-radioitem",GROUP_NAME:"menu-group",PARTS:["arrow","checkbox-indicator","checkbox-item","content","group","item","label","radio-group","radio-item","radio-indicator","separator","sub-content","sub-trigger","trigger"]}}function pr(){const{NAME:t}=oi();return Uu(t)}function hd(t){const{NAME:e,PARTS:n}=oi(),r=Gu("menu",n),o={...td({...Ju(t),forceVisible:!0}),getAttrs:r};return os(e,o),{...o,updateOption:Xu(o.options)}}function pd(){const{GROUP_NAME:t}=oi(),{elements:{group:e},getAttrs:n}=pr(),r=od();return os(t,r),{group:e,id:r,getAttrs:n}}function gd(t){const n={...{side:"bottom",align:"center"},...t},{options:{positioning:r}}=pr();fd(r)(n)}const bd=t=>({builder:t&8}),xi=t=>({builder:t[3]}),vd=t=>({builder:t&8}),Wi=t=>({builder:t[3]});function _d(t){let e=t[1]?"a":"div",n,r,o=(t[1]?"a":"div")&&_o(t);return{c(){o&&o.c(),n=re()},l(i){o&&o.l(i),n=re()},m(i,l){o&&o.m(i,l),H(i,n,l),r=!0},p(i,l){i[1],e?Ee(e,i[1]?"a":"div")?(o.d(1),o=_o(i),e=i[1]?"a":"div",o.c(),o.m(n.parentNode,n)):o.p(i,l):(o=_o(i),e=i[1]?"a":"div",o.c(),o.m(n.parentNode,n))},i(i){r||(j(o,i),r=!0)},o(i){T(o,i),r=!1},d(i){i&&P(n),o&&o.d(i)}}}function yd(t){let e;const n=t[11].default,r=Fe(n,t,t[10],Wi);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i&1032)&&Le(r,n,o,o[10],e?He(n,o[10],i,vd):Be(o[10]),Wi)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function _o(t){let e,n,r,o;const i=t[11].default,l=Fe(i,t,t[10],xi);let s=[{href:t[1]},t[3],t[6]],a={};for(let u=0;u{l[c]=null}),Se(),n=l[e],n?n.p(a,u):(n=l[e]=i[e](a),n.c()),j(n,1),n.m(r.parentNode,r))},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),l[e].d(a)}}}function Od(t,e,n){let r,o;const i=["href","asChild","disabled","el"];let l=Ge(e,i),s,{$$slots:a={},$$scope:u}=e,{href:c=void 0}=e,{asChild:f=!1}=e,{disabled:d=!1}=e,{el:m=void 0}=e;const{elements:{item:p},getAttrs:g}=pr();ut(t,p,E=>n(9,s=E));const h=Yo();function S(E){ye.call(this,t,E)}function I(E){pt[E?"unshift":"push"](()=>{m=E,n(0,m)})}return t.$$set=E=>{e=ve(ve({},e),Tt(E)),n(6,l=Ge(e,i)),"href"in E&&n(1,c=E.href),"asChild"in E&&n(2,f=E.asChild),"disabled"in E&&n(7,d=E.disabled),"el"in E&&n(0,m=E.el),"$$scope"in E&&n(10,u=E.$$scope)},t.$$.update=()=>{t.$$.dirty&512&&n(3,r=s),t.$$.dirty&128&&n(8,o={...g("item"),...Yu(d)}),t.$$.dirty&264&&Object.assign(r,o)},[m,c,f,r,p,h,l,d,o,s,u,a,S,I]}class Sd extends De{constructor(e){super(),Te(this,e,Od,wd,Ee,{href:1,asChild:2,disabled:7,el:0})}}const kd=t=>({builder:t&4}),Ki=t=>({builder:t[2]}),Ed=t=>({builder:t&4}),zi=t=>({builder:t[2]});function Pd(t){let e,n,r,o;const i=t[7].default,l=Fe(i,t,t[6],Ki);let s=[t[2],t[4]],a={};for(let u=0;u{l[c]=null}),Se(),n=l[e],n?n.p(a,u):(n=l[e]=i[e](a),n.c()),j(n,1),n.m(r.parentNode,r))},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),l[e].d(a)}}}function jd(t,e,n){let r;const o=["asChild","el"];let i=Ge(e,o),l,{$$slots:s={},$$scope:a}=e,{asChild:u=!1}=e,{el:c=void 0}=e;const{group:f,id:d,getAttrs:m}=pd();ut(t,f,h=>n(5,l=h));const p=m("group");function g(h){pt[h?"unshift":"push"](()=>{c=h,n(0,c)})}return t.$$set=h=>{e=ve(ve({},e),Tt(h)),n(4,i=Ge(e,o)),"asChild"in h&&n(1,u=h.asChild),"el"in h&&n(0,c=h.el),"$$scope"in h&&n(6,a=h.$$scope)},t.$$.update=()=>{t.$$.dirty&32&&n(2,r=l(d)),t.$$.dirty&4&&Object.assign(r,p)},[c,u,r,f,i,l,a,s,g]}class Ad extends De{constructor(e){super(),Te(this,e,jd,Cd,Ee,{asChild:1,el:0})}}const Dd=t=>({ids:t&1}),Qi=t=>({ids:t[0]});function Td(t){let e;const n=t[16].default,r=Fe(n,t,t[15],Qi);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,[i]){r&&r.p&&(!e||i&32769)&&Le(r,n,o,o[15],e?He(n,o[15],i,Dd):Be(o[15]),Qi)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function Nd(t,e,n){let r,{$$slots:o={},$$scope:i}=e,{closeOnOutsideClick:l=void 0}=e,{closeOnEscape:s=void 0}=e,{portal:a=void 0}=e,{open:u=void 0}=e,{onOpenChange:c=void 0}=e,{preventScroll:f=void 0}=e,{loop:d=void 0}=e,{dir:m=void 0}=e,{typeahead:p=void 0}=e,{closeFocus:g=void 0}=e,{disableFocusFirstItem:h=void 0}=e,{closeOnItemClick:S=void 0}=e,{onOutsideClick:I=void 0}=e;const{states:{open:E},updateOption:A,ids:v}=hd({closeOnOutsideClick:l,closeOnEscape:s,portal:a,forceVisible:!0,defaultOpen:u,preventScroll:f,loop:d,dir:m,typeahead:p,closeFocus:g,disableFocusFirstItem:h,closeOnItemClick:S,onOutsideClick:I,onOpenChange:({next:w})=>(u!==w&&(c==null||c(w),n(2,u=w)),w)}),C=gn([v.menu,v.trigger],([w,M])=>({menu:w,trigger:M}));return ut(t,C,w=>n(0,r=w)),t.$$set=w=>{"closeOnOutsideClick"in w&&n(3,l=w.closeOnOutsideClick),"closeOnEscape"in w&&n(4,s=w.closeOnEscape),"portal"in w&&n(5,a=w.portal),"open"in w&&n(2,u=w.open),"onOpenChange"in w&&n(6,c=w.onOpenChange),"preventScroll"in w&&n(7,f=w.preventScroll),"loop"in w&&n(8,d=w.loop),"dir"in w&&n(9,m=w.dir),"typeahead"in w&&n(10,p=w.typeahead),"closeFocus"in w&&n(11,g=w.closeFocus),"disableFocusFirstItem"in w&&n(12,h=w.disableFocusFirstItem),"closeOnItemClick"in w&&n(13,S=w.closeOnItemClick),"onOutsideClick"in w&&n(14,I=w.onOutsideClick),"$$scope"in w&&n(15,i=w.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&u!==void 0&&E.set(u),t.$$.dirty&8&&A("closeOnOutsideClick",l),t.$$.dirty&16&&A("closeOnEscape",s),t.$$.dirty&32&&A("portal",a),t.$$.dirty&128&&A("preventScroll",f),t.$$.dirty&256&&A("loop",d),t.$$.dirty&512&&A("dir",m),t.$$.dirty&2048&&A("closeFocus",g),t.$$.dirty&4096&&A("disableFocusFirstItem",h),t.$$.dirty&1024&&A("typeahead",p),t.$$.dirty&8192&&A("closeOnItemClick",S),t.$$.dirty&16384&&A("onOutsideClick",I)},[r,C,u,l,s,a,c,f,d,m,p,g,h,S,I,i,o]}class Md extends De{constructor(e){super(),Te(this,e,Nd,Td,Ee,{closeOnOutsideClick:3,closeOnEscape:4,portal:5,open:2,onOpenChange:6,preventScroll:7,loop:8,dir:9,typeahead:10,closeFocus:11,disableFocusFirstItem:12,closeOnItemClick:13,onOutsideClick:14})}}const Rd=t=>({builder:t[0]&256}),Gi=t=>({builder:t[8]}),Fd=t=>({builder:t[0]&256}),Ji=t=>({builder:t[8]}),Ld=t=>({builder:t[0]&256}),Xi=t=>({builder:t[8]}),Bd=t=>({builder:t[0]&256}),Yi=t=>({builder:t[8]}),Hd=t=>({builder:t[0]&256}),Zi=t=>({builder:t[8]}),qd=t=>({builder:t[0]&256}),$i=t=>({builder:t[8]});function Ud(t){let e,n,r,o;const i=t[28].default,l=Fe(i,t,t[27],Gi);let s=[t[8],t[13]],a={};for(let u=0;u{n=mr(e,t[3],t[4]),n.start()})),r=!0)},o(c){T(s,c),r=!1},d(c){c&&P(e),s&&s.d(c),t[31](null),o=!1,bt(i)}}}function Wd(t){let e,n,r,o,i,l;const s=t[28].default,a=Fe(s,t,t[27],Yi);let u=[t[8],t[13]],c={};for(let f=0;f{o&&(r&&r.end(1),n=mr(e,t[3],t[4]),n.start())}),o=!0)},o(f){T(a,f),n&&n.invalidate(),f&&(r=oo(e,t[5],t[6])),o=!1},d(f){f&&P(e),a&&a.d(f),t[30](null),f&&r&&r.end(),i=!1,bt(l)}}}function Kd(t){let e,n,r,o,i;const l=t[28].default,s=Fe(l,t,t[27],Zi);let a=[t[8],t[13]],u={};for(let c=0;c{r&&(n||(n=Ht(e,t[1],t[2],!0)),n.run(1))}),r=!0)},o(c){T(s,c),c&&(n||(n=Ht(e,t[1],t[2],!1)),n.run(0)),r=!1},d(c){c&&P(e),s&&s.d(c),t[29](null),c&&n&&n.end(),o=!1,bt(i)}}}function zd(t){let e;const n=t[28].default,r=Fe(n,t,t[27],$i);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i[0]&134217984)&&Le(r,n,o,o[27],e?He(n,o[27],i,qd):Be(o[27]),$i)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function Qd(t){let e,n,r,o;const i=[zd,Kd,Wd,xd,Vd,Ud],l=[];function s(a,u){return a[7]&&a[9]?0:a[1]&&a[9]?1:a[3]&&a[5]&&a[9]?2:a[3]&&a[9]?3:a[5]&&a[9]?4:a[9]?5:-1}return~(e=s(t))&&(n=l[e]=i[e](t)),{c(){n&&n.c(),r=re()},l(a){n&&n.l(a),r=re()},m(a,u){~e&&l[e].m(a,u),H(a,r,u),o=!0},p(a,u){let c=e;e=s(a),e===c?~e&&l[e].p(a,u):(n&&(Oe(),T(l[c],1,1,()=>{l[c]=null}),Se()),~e?(n=l[e],n?n.p(a,u):(n=l[e]=i[e](a),n.c()),j(n,1),n.m(r.parentNode,r)):n=null)},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),~e&&l[e].d(a)}}}function Gd(t,e,n){let r;const o=["transition","transitionConfig","inTransition","inTransitionConfig","outTransition","outTransitionConfig","asChild","id","side","align","sideOffset","alignOffset","collisionPadding","avoidCollisions","collisionBoundary","sameWidth","fitViewport","strategy","overlap","el"];let i=Ge(e,o),l,s,{$$slots:a={},$$scope:u}=e,{transition:c=void 0}=e,{transitionConfig:f=void 0}=e,{inTransition:d=void 0}=e,{inTransitionConfig:m=void 0}=e,{outTransition:p=void 0}=e,{outTransitionConfig:g=void 0}=e,{asChild:h=!1}=e,{id:S=void 0}=e,{side:I="bottom"}=e,{align:E="center"}=e,{sideOffset:A=0}=e,{alignOffset:v=0}=e,{collisionPadding:C=8}=e,{avoidCollisions:w=!0}=e,{collisionBoundary:M=void 0}=e,{sameWidth:F=!1}=e,{fitViewport:B=!1}=e,{strategy:q="absolute"}=e,{overlap:O=!1}=e,{el:b=void 0}=e;const{elements:{menu:y},states:{open:_},ids:L,getAttrs:G}=pr();ut(t,y,z=>n(26,s=z)),ut(t,_,z=>n(9,l=z));const D=Yo(),de=G("content");function Pe(z){pt[z?"unshift":"push"](()=>{b=z,n(0,b)})}function Ue(z){pt[z?"unshift":"push"](()=>{b=z,n(0,b)})}function Je(z){pt[z?"unshift":"push"](()=>{b=z,n(0,b)})}function Ne(z){pt[z?"unshift":"push"](()=>{b=z,n(0,b)})}function nt(z){pt[z?"unshift":"push"](()=>{b=z,n(0,b)})}return t.$$set=z=>{e=ve(ve({},e),Tt(z)),n(13,i=Ge(e,o)),"transition"in z&&n(1,c=z.transition),"transitionConfig"in z&&n(2,f=z.transitionConfig),"inTransition"in z&&n(3,d=z.inTransition),"inTransitionConfig"in z&&n(4,m=z.inTransitionConfig),"outTransition"in z&&n(5,p=z.outTransition),"outTransitionConfig"in z&&n(6,g=z.outTransitionConfig),"asChild"in z&&n(7,h=z.asChild),"id"in z&&n(14,S=z.id),"side"in z&&n(15,I=z.side),"align"in z&&n(16,E=z.align),"sideOffset"in z&&n(17,A=z.sideOffset),"alignOffset"in z&&n(18,v=z.alignOffset),"collisionPadding"in z&&n(19,C=z.collisionPadding),"avoidCollisions"in z&&n(20,w=z.avoidCollisions),"collisionBoundary"in z&&n(21,M=z.collisionBoundary),"sameWidth"in z&&n(22,F=z.sameWidth),"fitViewport"in z&&n(23,B=z.fitViewport),"strategy"in z&&n(24,q=z.strategy),"overlap"in z&&n(25,O=z.overlap),"el"in z&&n(0,b=z.el),"$$scope"in z&&n(27,u=z.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&16384&&S&&L.menu.set(S),t.$$.dirty[0]&67108864&&n(8,r=s),t.$$.dirty[0]&256&&Object.assign(r,de),t.$$.dirty[0]&67076608&&l&&gd({side:I,align:E,sideOffset:A,alignOffset:v,collisionPadding:C,avoidCollisions:w,collisionBoundary:M,sameWidth:F,fitViewport:B,strategy:q,overlap:O})},[b,c,f,d,m,p,g,h,r,l,y,_,D,i,S,I,E,A,v,C,w,M,F,B,q,O,s,u,a,Pe,Ue,Je,Ne,nt]}class Jd extends De{constructor(e){super(),Te(this,e,Gd,Qd,Ee,{transition:1,transitionConfig:2,inTransition:3,inTransitionConfig:4,outTransition:5,outTransitionConfig:6,asChild:7,id:14,side:15,align:16,sideOffset:17,alignOffset:18,collisionPadding:19,avoidCollisions:20,collisionBoundary:21,sameWidth:22,fitViewport:23,strategy:24,overlap:25,el:0},null,[-1,-1])}}const Xd=t=>({builder:t&4}),el=t=>({builder:t[2]}),Yd=t=>({builder:t&4}),tl=t=>({builder:t[2]});function Zd(t){let e,n,r,o;const i=t[9].default,l=Fe(i,t,t[8],el);let s=[t[2],{type:"button"},t[5]],a={};for(let u=0;u{l[c]=null}),Se(),n=l[e],n?n.p(a,u):(n=l[e]=i[e](a),n.c()),j(n,1),n.m(r.parentNode,r))},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),l[e].d(a)}}}function tm(t,e,n){let r;const o=["asChild","id","el"];let i=Ge(e,o),l,{$$slots:s={},$$scope:a}=e,{asChild:u=!1}=e,{id:c=void 0}=e,{el:f=void 0}=e;const{elements:{trigger:d},ids:m,getAttrs:p}=pr();ut(t,d,I=>n(7,l=I));const g=Yo(),h=p("trigger");function S(I){pt[I?"unshift":"push"](()=>{f=I,n(0,f)})}return t.$$set=I=>{e=ve(ve({},e),Tt(I)),n(5,i=Ge(e,o)),"asChild"in I&&n(1,u=I.asChild),"id"in I&&n(6,c=I.id),"el"in I&&n(0,f=I.el),"$$scope"in I&&n(8,a=I.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&c&&m.trigger.set(c),t.$$.dirty&128&&n(2,r=l),t.$$.dirty&4&&Object.assign(r,h)},[f,u,r,d,g,i,c,l,a,s,S]}class nm extends De{constructor(e){super(),Te(this,e,tm,em,Ee,{asChild:1,id:6,el:0})}}function rm(t){let e;const n=t[5].default,r=Fe(n,t,t[8],null);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i&256)&&Le(r,n,o,o[8],e?He(n,o[8],i,null):Be(o[8]),null)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function om(t){let e,n;const r=[{builders:t[3]},{class:Ut(hi({variant:t[1],size:t[2],className:t[0]}))},{type:"button"},t[4]];let o={$$slots:{default:[rm]},$$scope:{ctx:t}};for(let i=0;i{e=ve(ve({},e),Tt(m)),n(4,o=Ge(e,r)),"class"in m&&n(0,s=m.class),"variant"in m&&n(1,a=m.variant),"size"in m&&n(2,u=m.size),"builders"in m&&n(3,c=m.builders),"$$scope"in m&&n(8,l=m.$$scope)},[s,a,u,c,o,i,f,d,l]}class lm extends De{constructor(e){super(),Te(this,e,im,om,Ee,{class:0,variant:1,size:2,builders:3})}}function nl(t){let e,n;return{c(){e=x("span"),n=je(t[1]),this.h()},l(r){e=W(r,"SPAN",{class:!0});var o=J(e);n=Ae(o,t[1]),o.forEach(P),this.h()},h(){N(e,"class","cursor-pointer font-bold pr-8 flex items-center")},m(r,o){H(r,e,o),K(e,n)},p(r,o){o&2&&Mt(n,r[1])},d(r){r&&P(e)}}}function am(t){let e,n,r,o,i,l,s,a,u,c,f=t[1]&&nl(t);return{c(){e=x("div"),f&&f.c(),n=$(),r=x("span"),o=je(t[2]),this.h()},l(d){e=W(d,"DIV",{role:!0,class:!0});var m=J(e);f&&f.l(m),n=ee(m),r=W(m,"SPAN",{class:!0});var p=J(r);o=Ae(p,t[2]),p.forEach(P),m.forEach(P),this.h()},h(){N(r,"class","cursor-pointer"),N(e,"role","none"),N(e,"class",i="print:hidden rounded py-1 px-3 my-4 mx-0 shadow-md text-xs font-mono flex justify-between transition-all duration-300 border "+(t[0]??"")+" svelte-8cyjz5")},m(d,m){H(d,e,m),f&&f.m(e,null),K(e,n),K(e,r),K(r,o),a=!0,u||(c=[oe(e,"click",t[3]),oe(e,"keypress",t[3])],u=!0)},p(d,[m]){d[1]?f?f.p(d,m):(f=nl(d),f.c(),f.m(e,n)):f&&(f.d(1),f=null),(!a||m&4)&&Mt(o,d[2]),(!a||m&1&&i!==(i="print:hidden rounded py-1 px-3 my-4 mx-0 shadow-md text-xs font-mono flex justify-between transition-all duration-300 border "+(d[0]??"")+" svelte-8cyjz5"))&&N(e,"class",i)},i(d){a||(d&&Dt(()=>{a&&(s&&s.end(1),l=mr(e,Ku,{}),l.start())}),a=!0)},o(d){l&&l.invalidate(),d&&(s=oo(e,lr,{x:1e3,duration:1e3,delay:0,opacity:.8})),a=!1},d(d){d&&P(e),f&&f.d(),d&&s&&s.end(),u=!1,bt(c)}}}function sm(t,e,n){let{id:r}=e,{status:o="info"}=e,{title:i}=e,{message:l}=e,{dismissable:s=!0}=e;const a=Vu(),u=()=>{s&&a("dismiss",{id:r})};return t.$$set=c=>{"id"in c&&n(4,r=c.id),"status"in c&&n(0,o=c.status),"title"in c&&n(1,i=c.title),"message"in c&&n(2,l=c.message),"dismissable"in c&&n(5,s=c.dismissable)},[o,i,l,u,r,s]}class um extends De{constructor(e){super(),Te(this,e,sm,am,Ee,{id:4,status:0,title:1,message:2,dismissable:5})}}function rl(t,e,n){const r=t.slice();return r[2]=e[n],r}function ol(t,e){let n,r,o;const i=[e[2]];let l={};for(let s=0;ss[2].id;for(let s=0;sn(0,r=i)),[r,({detail:i})=>Ao.dismiss(i.id)]}class dm extends De{constructor(e){super(),Te(this,e,fm,cm,Ee,{})}}const mm=""+new URL("../assets/wordmark-gray-800.CnzB_64T.png",import.meta.url).href;function hm(t){let e,n;return{c(){e=x("img"),this.h()},l(r){e=W(r,"IMG",{src:!0,alt:!0,class:!0,href:!0}),this.h()},h(){Do(e.src,n=mm)||N(e,"src",n),N(e,"alt","evidence"),N(e,"class","h-5 aspect-auto"),N(e,"href","/")},m(r,o){H(r,e,o)},p:Re,d(r){r&&P(e)}}}function pm(t){let e;return{c(){e=je(t[1])},l(n){e=Ae(n,t[1])},m(n,r){H(n,e,r)},p(n,r){r&2&&Mt(e,n[1])},d(n){n&&P(e)}}}function gm(t){let e,n;return{c(){e=x("img"),this.h()},l(r){e=W(r,"IMG",{src:!0,alt:!0,class:!0,href:!0}),this.h()},h(){Do(e.src,n=t[0])||N(e,"src",n),N(e,"alt","logo"),N(e,"class","h-5 aspect-auto"),N(e,"href","/")},m(r,o){H(r,e,o)},p(r,o){o&1&&!Do(e.src,n=r[0])&&N(e,"src",n)},d(r){r&&P(e)}}}function bm(t){let e;function n(i,l){return i[0]?gm:i[1]?pm:hm}let r=n(t),o=r(t);return{c(){o.c(),e=re()},l(i){o.l(i),e=re()},m(i,l){o.m(i,l),H(i,e,l)},p(i,[l]){r===(r=n(i))&&o?o.p(i,l):(o.d(1),o=r(i),o&&(o.c(),o.m(e.parentNode,e)))},i:Re,o:Re,d(i){i&&P(e),o.d(i)}}}function vm(t,e,n){let{logo:r}=e,{title:o}=e;return t.$$set=i=>{"logo"in i&&n(0,r=i.logo),"title"in i&&n(1,o=i.title)},[r,o]}class ii extends De{constructor(e){super(),Te(this,e,vm,bm,Ee,{logo:0,title:1})}}/*! @docsearch/js 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function il(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function we(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function bn(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,l,s=[],a=!0,u=!1;try{for(o=o.call(n);!(a=(i=o.next()).done)&&(s.push(i.value),!r||s.length!==r);a=!0);}catch(c){u=!0,l=c}finally{try{a||o.return==null||o.return()}finally{if(u)throw l}}return s}}(t,e)||As(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jr(t){return function(e){if(Array.isArray(e))return Fo(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||As(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function As(t,e){if(t){if(typeof t=="string")return Fo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fo(t,e):void 0}}function Fo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3)for(n=[n],i=3;i0?Wn(m.type,m.props,m.key,null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(d=S[c])===null||d&&m.key==d.key&&m.type===d.type)S[c]=void 0;else for(f=0;f3)for(n=[n],i=3;i=n.__.length&&n.__.push({}),n.__[t]}function si(t){return wn=1,Vs(xs,t)}function Vs(t,e,n){var r=gr(jn++,2);return r.t=t,r.__c||(r.__=[n?n(e):xs(void 0,e),function(o){var i=r.t(r.__[0],o);r.__[0]!==i&&(r.__=[i,r.__[1]],r.__c.setState({}))}],r.__c=rt),r.__}function ui(t,e){var n=gr(jn++,3);!Y.__s&&ci(n.__H,e)&&(n.__=t,n.__H=e,rt.__H.__h.push(n))}function gl(t,e){var n=gr(jn++,4);!Y.__s&&ci(n.__H,e)&&(n.__=t,n.__H=e,rt.__h.push(n))}function yo(t,e){var n=gr(jn++,7);return ci(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Em(){Bo.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(Rr),t.__H.__h.forEach(Ho),t.__H.__h=[]}catch(e){t.__H.__h=[],Y.__e(e,t.__v)}}),Bo=[]}Y.__b=function(t){rt=null,fl&&fl(t)},Y.__r=function(t){dl&&dl(t),jn=0;var e=(rt=t.__c).__H;e&&(e.__h.forEach(Rr),e.__h.forEach(Ho),e.__h=[])},Y.diffed=function(t){ml&&ml(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Bo.push(e)!==1&&cl===Y.requestAnimationFrame||((cl=Y.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),bl&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);bl&&(r=requestAnimationFrame(o))})(Em)),rt=void 0},Y.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Rr),n.__h=n.__h.filter(function(r){return!r.__||Ho(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],Y.__e(r,n.__v)}}),hl&&hl(t,e)},Y.unmount=function(t){pl&&pl(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(Rr)}catch(n){Y.__e(n,e.__v)}};var bl=typeof requestAnimationFrame=="function";function Rr(t){var e=rt;typeof t.__c=="function"&&t.__c(),rt=e}function Ho(t){var e=rt;t.__c=t.__(),rt=e}function ci(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function xs(t,e){return typeof e=="function"?e(t):e}function Ws(t,e){for(var n in e)t[n]=e[n];return t}function qo(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Uo(t){this.props=t}(Uo.prototype=new Ot).isPureReactComponent=!0,Uo.prototype.shouldComponentUpdate=function(t,e){return qo(this.props,t)||qo(this.state,e)};var vl=Y.__b;Y.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),vl&&vl(t)};var Pm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,_l=function(t,e){return t==null?null:At(At(t).map(e))},Im={map:_l,forEach:_l,count:function(t){return t?At(t).length:0},only:function(t){var e=At(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:At},Cm=Y.__e;function Fr(){this.__u=0,this.t=null,this.__b=null}function Ks(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function Bn(){this.u=null,this.o=null}Y.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}Cm(t,e,n)},(Fr.prototype=new Ot).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ks(r.__v),i=!1,l=function(){i||(i=!0,n.componentWillUnmount=n.__c,o?o(s):s())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){l(),n.__c&&n.__c()};var s=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=function f(d,m,p){return d&&(d.__v=null,d.__k=d.__k&&d.__k.map(function(g){return f(g,m,p)}),d.__c&&d.__c.__P===m&&(d.__e&&p.insertBefore(d.__e,d.__d),d.__c.__e=!0,d.__c.__P=p)),d}(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},a=e.__h===!0;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(l,l)},Fr.prototype.componentWillUnmount=function(){this.t=[]},Fr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(l,s,a){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),l.__c.__H=null),(l=Ws({},l)).__c!=null&&(l.__c.__P===a&&(l.__c.__P=s),l.__c=null),l.__k=l.__k&&l.__k.map(function(u){return i(u,s,a)})),l}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&wt(Kt,null,t.fallback);return o&&(o.__h=null),[wt(Kt,null,e.__e?null:t.children),o]};var yl=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),fr(wt(jm,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function zs(t,e){return wt(Am,{__v:t,i:e})}(Bn.prototype=new Ot).__e=function(t){var e=this,n=Ks(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),yl(e,t,r)):o()};n?n(i):i()}},Bn.prototype.render=function(t){this.u=null,this.o=new Map;var e=At(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Bn.prototype.componentDidUpdate=Bn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){yl(t,n,e)})};var Qs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Dm=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tm=function(t){return(typeof Symbol<"u"&&ur(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Gs(t,e,n){return e.__k==null&&(e.textContent=""),fr(t,e),typeof n=="function"&&n(),t?t.__c:null}Ot.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ot.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var wl=Y.event;function Nm(){}function Mm(){return this.cancelBubble}function Rm(){return this.defaultPrevented}Y.event=function(t){return wl&&(t=wl(t)),t.persist=Nm,t.isPropagationStopped=Mm,t.isDefaultPrevented=Rm,t.nativeEvent=t};var Js,Ol={configurable:!0,get:function(){return this.class}},Sl=Y.vnode;Y.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){for(var o in r={},n){var i=n[o];o==="value"&&"defaultValue"in n&&i==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!Tm(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Dm.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),r[o]=i)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=At(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=At(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),t.props=r}e&&n.class!=n.className&&(Ol.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Ol)),t.$$typeof=Qs,Sl&&Sl(t)};var kl=Y.__r;Y.__r=function(t){kl&&kl(t),Js=t.__c};var Fm={ReactCurrentDispatcher:{current:{readContext:function(t){return Js.__n[t.__c].props.value}}}};(typeof performance>"u"?"undefined":ur(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function El(t){return!!t&&t.$$typeof===Qs}var k={useState:si,useReducer:Vs,useEffect:ui,useLayoutEffect:gl,useRef:function(t){return wn=5,yo(function(){return{current:t}},[])},useImperativeHandle:function(t,e,n){wn=6,gl(function(){typeof t=="function"?t(e()):t&&(t.current=e())},n==null?n:n.concat(t))},useMemo:yo,useCallback:function(t,e){return wn=8,yo(function(){return t},e)},useContext:function(t){var e=rt.context[t.__c],n=gr(jn++,9);return n.__c=t,e?(n.__==null&&(n.__=!0,e.sub(rt)),e.props.value):t.__},useDebugValue:function(t,e){Y.useDebugValue&&Y.useDebugValue(e?e(t):t)},version:"16.8.0",Children:Im,render:Gs,hydrate:function(t,e,n){return Us(t,e),typeof n=="function"&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(fr(null,t),!0)},createPortal:zs,createElement:wt,createContext:function(t,e){var n={__c:e="__cC"+Ts++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.some(Lo)},this.sub=function(l){o.push(l);var s=l.componentWillUnmount;l.componentWillUnmount=function(){o.splice(o.indexOf(l),1),s&&s.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return wt.bind(null,t)},cloneElement:function(t){return El(t)?km.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:Kt,isValidElement:El,findDOMNode:function(t){return t&&(t.base||t.nodeType===1&&t)||null},Component:Ot,PureComponent:Uo,memo:function(t,e){function n(o){var i=this.props.ref,l=i==o.ref;return!l&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!l:qo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,wt(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(t){function e(n,r){var o=Ws({},n);return delete o.ref,t(o,(r=n.ref||r)&&(ur(r)!="object"||"current"in r)?r:null)}return e.$$typeof=Pm,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:Kt,Suspense:Fr,SuspenseList:Bn,lazy:function(t){var e,n,r;function o(i){if(e||(e=t()).then(function(l){n=l.default||l},function(l){r=l}),r)throw r;if(!n)throw e;return wt(n,i)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fm};function Lm(){return k.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},k.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function Xs(){return k.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},k.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var Bm=["translations"];function Vo(){return Vo=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var qm=k.forwardRef(function(t,e){var n=t.translations,r=n===void 0?{}:n,o=Hm(t,Bm),i=r.buttonText,l=i===void 0?"Search":i,s=r.buttonAriaLabel,a=s===void 0?"Search":s,u=Ys(si(null),2),c=u[0],f=u[1];return ui(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?f("⌘"):f("Ctrl"))},[]),k.createElement("button",Vo({type:"button",className:"DocSearch DocSearch-Button","aria-label":a},o,{ref:e}),k.createElement("span",{className:"DocSearch-Button-Container"},k.createElement(Xs,null),k.createElement("span",{className:"DocSearch-Button-Placeholder"},l)),k.createElement("span",{className:"DocSearch-Button-Keys"},c!==null&&k.createElement(k.Fragment,null,k.createElement(Il,{reactsToKey:c==="Ctrl"?"Ctrl":"Meta"},c==="Ctrl"?k.createElement(Lm,null):c),k.createElement(Il,{reactsToKey:"k"},"K"))))});function Il(t){var e=t.reactsToKey,n=t.children,r=Ys(si(!1),2),o=r[0],i=r[1];return ui(function(){if(e)return window.addEventListener("keydown",l),window.addEventListener("keyup",s),function(){window.removeEventListener("keydown",l),window.removeEventListener("keyup",s)};function l(a){a.key===e&&i(!0)}function s(a){a.key!==e&&a.key!=="Meta"||i(!1)}},[e]),k.createElement("kbd",{className:o?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"},n)}function Zs(t,e){var n=void 0;return function(){for(var r=arguments.length,o=new Array(r),i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Dl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function kn(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:20,n=[],r=0;r=3||n===2&&r>=4||n===1&&r>=10);function i(l,s,a){if(o&&a!==void 0){var u=a[0].__autocomplete_algoliaCredentials,c={"X-Algolia-Application-Id":u.appId,"X-Algolia-API-Key":u.apiKey};t.apply(void 0,[l].concat(Er(s),[{headers:c}]))}else t.apply(void 0,[l].concat(Er(s)))}return{init:function(l,s){t("init",{appId:l,apiKey:s})},setUserToken:function(l){t("setUserToken",l)},clickedObjectIDsAfterSearch:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&i("clickedObjectIDsAfterSearch",Pr(s),s[0].items)},clickedObjectIDs:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&i("clickedObjectIDs",Pr(s),s[0].items)},clickedFilters:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&t.apply(void 0,["clickedFilters"].concat(s))},convertedObjectIDsAfterSearch:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&i("convertedObjectIDsAfterSearch",Pr(s),s[0].items)},convertedObjectIDs:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&i("convertedObjectIDs",Pr(s),s[0].items)},convertedFilters:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&t.apply(void 0,["convertedFilters"].concat(s))},viewedObjectIDs:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&s.reduce(function(u,c){var f=c.items,d=eu(c,Km);return[].concat(Er(u),Er(Qm(kn(kn({},d),{},{objectIDs:(f==null?void 0:f.map(function(m){return m.objectID}))||d.objectIDs})).map(function(m){return{items:f,payload:m}})))},[]).forEach(function(u){var c=u.items;return i("viewedObjectIDs",[u.payload],c)})},viewedFilters:function(){for(var l=arguments.length,s=new Array(l),a=0;a0&&t.apply(void 0,["viewedFilters"].concat(s))}}}function Jm(t){var e=t.items.reduce(function(n,r){var o;return n[r.__autocomplete_indexName]=((o=n[r.__autocomplete_indexName])!==null&&o!==void 0?o:[]).concat(r),n},{});return Object.keys(e).map(function(n){return{index:n,items:e[n],algoliaSource:["autocomplete"]}})}function Oo(t){return t.objectID&&t.__autocomplete_indexName&&t.__autocomplete_queryID}function zn(t){return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(t)}function cn(t){return function(e){if(Array.isArray(e))return So(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return So(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return So(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function So(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&Zm({onItemsChange:r,items:d,insights:s,state:f}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(c){var f=c.setContext,d=c.onSelect,m=c.onActive;l("addAlgoliaAgent","insights-plugin"),f({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:s}}),d(function(p){var g=p.item,h=p.state,S=p.event;Oo(g)&&o({state:h,event:S,insights:s,item:g,insightsEvents:[Bt({eventName:"Item Selected"},jl({item:g,items:a.current}))]})}),m(function(p){var g=p.item,h=p.state,S=p.event;Oo(g)&&i({state:h,event:S,insights:s,item:g,insightsEvents:[Bt({eventName:"Item Active"},jl({item:g,items:a.current}))]})})},onStateChange:function(c){var f=c.state;u({state:f})},__autocomplete_pluginOptions:t}}function Lr(t,e){var n=e;return{then:function(r,o){return Lr(t.then(Ir(r,n,t),Ir(o,n,t)),n)},catch:function(r){return Lr(t.catch(Ir(r,n,t)),n)},finally:function(r){return r&&n.onCancelList.push(r),Lr(t.finally(Ir(r&&function(){return n.onCancelList=[],r()},n,t)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(o){o()})},isCanceled:function(){return n.isCanceled===!0}}}function Nl(t){return Lr(t,{isCanceled:!1,onCancelList:[]})}function Ir(t,e,n){return t?function(r){return e.isCanceled?r:t(r)}:n}function Ml(t,e,n,r){if(!n)return null;if(t<0&&(e===null||r!==null&&e===0))return n+t;var o=(e===null?-1:e)+t;return o<=-1||o>=n?r===null?null:0:o}function Rl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Fl(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},reshape:function(i){return i.sources}},t),{},{id:(n=t.id)!==null&&n!==void 0?n:"autocomplete-".concat(Um++),plugins:o,initialState:fn({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},t.initialState),onStateChange:function(i){var l;(l=t.onStateChange)===null||l===void 0||l.call(t,i),o.forEach(function(s){var a;return(a=s.onStateChange)===null||a===void 0?void 0:a.call(s,i)})},onSubmit:function(i){var l;(l=t.onSubmit)===null||l===void 0||l.call(t,i),o.forEach(function(s){var a;return(a=s.onSubmit)===null||a===void 0?void 0:a.call(s,i)})},onReset:function(i){var l;(l=t.onReset)===null||l===void 0||l.call(t,i),o.forEach(function(s){var a;return(a=s.onReset)===null||a===void 0?void 0:a.call(s,i)})},getSources:function(i){return Promise.all([].concat(ih(o.map(function(l){return l.getSources})),[t.getSources]).filter(Boolean).map(function(l){return function(s,a){var u=[];return Promise.resolve(s(a)).then(function(c){return Promise.all(c.filter(function(f){return!!f}).map(function(f){if(f.sourceId,u.includes(f.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(f.sourceId)," is not unique."));u.push(f.sourceId);var d={getItemInputValue:function(p){return p.state.query},getItemUrl:function(){},onSelect:function(p){(0,p.setIsOpen)(!1)},onActive:Zr,onResolve:Zr};Object.keys(d).forEach(function(p){d[p].__default=!0});var m=Fl(Fl({},d),f);return Promise.resolve(m)}))})}(l,i)})).then(function(l){return dr(l)}).then(function(l){return l.map(function(s){return fn(fn({},s),{},{onSelect:function(a){s.onSelect(a),e.forEach(function(u){var c;return(c=u.onSelect)===null||c===void 0?void 0:c.call(u,a)})},onActive:function(a){s.onActive(a),e.forEach(function(u){var c;return(c=u.onActive)===null||c===void 0?void 0:c.call(u,a)})},onResolve:function(a){s.onResolve(a),e.forEach(function(u){var c;return(c=u.onResolve)===null||c===void 0?void 0:c.call(u,a)})}})})})},navigator:fn({navigate:function(i){var l=i.itemUrl;r.location.assign(l)},navigateNewTab:function(i){var l=i.itemUrl,s=r.open(l,"_blank","noopener");s==null||s.focus()},navigateNewWindow:function(i){var l=i.itemUrl;r.open(l,"_blank","noopener")}},t.navigator)})}function Yn(t){return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(t)}function ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jr(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var xl,Po,Dr,Ln=null,Wl=(xl=-1,Po=-1,Dr=void 0,function(t){var e=++xl;return Promise.resolve(t).then(function(n){return Dr&&e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function tr(t){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}var vh=["props","refresh","store"],_h=["inputElement","formElement","panelElement"],yh=["inputElement"],wh=["inputElement","maxLength"],Oh=["sourceIndex"],Sh=["sourceIndex"],kh=["item","source","sourceIndex"];function zl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ye(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Ph(t){var e=t.props,n=t.refresh,r=t.store,o=Xt(t,vh),i=function(l,s){return s!==void 0?"".concat(l,"-").concat(s):l};return{getEnvironmentProps:function(l){var s=l.inputElement,a=l.formElement,u=l.panelElement;function c(f){!r.getState().isOpen&&r.pendingRequests.isEmpty()||f.target===s||[a,u].some(function(d){return m=d,p=f.target,m===p||m.contains(p);var m,p})===!1&&(r.dispatch("blur",null),e.debug||r.pendingRequests.cancelAll())}return Ye({onTouchStart:c,onMouseDown:c,onTouchMove:function(f){r.getState().isOpen!==!1&&s===e.environment.document.activeElement&&f.target!==s&&s.blur()}},Xt(l,_h))},getRootProps:function(l){return Ye({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(e.id,"-list"):void 0,"aria-labelledby":"".concat(e.id,"-label")},l)},getFormProps:function(l){return l.inputElement,Ye({action:"",noValidate:!0,role:"search",onSubmit:function(s){var a;s.preventDefault(),e.onSubmit(Ye({event:s,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),(a=l.inputElement)===null||a===void 0||a.blur()},onReset:function(s){var a;s.preventDefault(),e.onReset(Ye({event:s,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),(a=l.inputElement)===null||a===void 0||a.focus()}},Xt(l,yh))},getLabelProps:function(l){var s=l||{},a=s.sourceIndex,u=Xt(s,Oh);return Ye({htmlFor:"".concat(i(e.id,a),"-input"),id:"".concat(i(e.id,a),"-label")},u)},getInputProps:function(l){var s;function a(h){(e.openOnFocus||r.getState().query)&&hn(Ye({event:h,props:e,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var u=l||{},c=(u.inputElement,u.maxLength),f=c===void 0?512:c,d=Xt(u,wh),m=vn(r.getState()),p=function(h){return!!(h&&h.match(th))}(((s=e.environment.navigator)===null||s===void 0?void 0:s.userAgent)||""),g=m!=null&&m.itemUrl&&!p?"go":"search";return Ye({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?"".concat(e.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(e.id,"-list"):void 0,"aria-labelledby":"".concat(e.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(e.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:g,spellCheck:"false",autoFocus:e.autoFocus,placeholder:e.placeholder,maxLength:f,type:"search",onChange:function(h){hn(Ye({event:h,props:e,query:h.currentTarget.value.slice(0,f),refresh:n,store:r},o))},onKeyDown:function(h){(function(S){var I=S.event,E=S.props,A=S.refresh,v=S.store,C=bh(S,ph);if(I.key==="ArrowUp"||I.key==="ArrowDown"){var w=function(){var y=E.environment.document.getElementById("".concat(E.id,"-item-").concat(v.getState().activeItemId));y&&(y.scrollIntoViewIfNeeded?y.scrollIntoViewIfNeeded(!1):y.scrollIntoView(!1))},M=function(){var y=vn(v.getState());if(v.getState().activeItemId!==null&&y){var _=y.item,L=y.itemInputValue,G=y.itemUrl,D=y.source;D.onActive(Jt({event:I,item:_,itemInputValue:L,itemUrl:G,refresh:A,source:D,state:v.getState()},C))}};I.preventDefault(),v.getState().isOpen===!1&&(E.openOnFocus||v.getState().query)?hn(Jt({event:I,props:E,query:v.getState().query,refresh:A,store:v},C)).then(function(){v.dispatch(I.key,{nextActiveItemId:E.defaultActiveItemId}),M(),setTimeout(w,0)}):(v.dispatch(I.key,{}),M(),w())}else if(I.key==="Escape")I.preventDefault(),v.dispatch(I.key,null),v.pendingRequests.cancelAll();else if(I.key==="Tab")v.dispatch("blur",null),v.pendingRequests.cancelAll();else if(I.key==="Enter"){if(v.getState().activeItemId===null||v.getState().collections.every(function(y){return y.items.length===0}))return void(E.debug||v.pendingRequests.cancelAll());I.preventDefault();var F=vn(v.getState()),B=F.item,q=F.itemInputValue,O=F.itemUrl,b=F.source;if(I.metaKey||I.ctrlKey)O!==void 0&&(b.onSelect(Jt({event:I,item:B,itemInputValue:q,itemUrl:O,refresh:A,source:b,state:v.getState()},C)),E.navigator.navigateNewTab({itemUrl:O,item:B,state:v.getState()}));else if(I.shiftKey)O!==void 0&&(b.onSelect(Jt({event:I,item:B,itemInputValue:q,itemUrl:O,refresh:A,source:b,state:v.getState()},C)),E.navigator.navigateNewWindow({itemUrl:O,item:B,state:v.getState()}));else if(!I.altKey){if(O!==void 0)return b.onSelect(Jt({event:I,item:B,itemInputValue:q,itemUrl:O,refresh:A,source:b,state:v.getState()},C)),void E.navigator.navigate({itemUrl:O,item:B,state:v.getState()});hn(Jt({event:I,nextState:{isOpen:!1},props:E,query:q,refresh:A,store:v},C)).then(function(){b.onSelect(Jt({event:I,item:B,itemInputValue:q,itemUrl:O,refresh:A,source:b,state:v.getState()},C))})}}})(Ye({event:h,props:e,refresh:n,store:r},o))},onFocus:a,onBlur:Zr,onClick:function(h){l.inputElement!==e.environment.document.activeElement||r.getState().isOpen||a(h)}},d)},getPanelProps:function(l){return Ye({onMouseDown:function(s){s.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},l)},getListProps:function(l){var s=l||{},a=s.sourceIndex,u=Xt(s,Sh);return Ye({role:"listbox","aria-labelledby":"".concat(i(e.id,a),"-label"),id:"".concat(i(e.id,a),"-list")},u)},getItemProps:function(l){var s=l.item,a=l.source,u=l.sourceIndex,c=Xt(l,kh);return Ye({id:"".concat(i(e.id,u),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(f){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var d=vn(r.getState());if(r.getState().activeItemId!==null&&d){var m=d.item,p=d.itemInputValue,g=d.itemUrl,h=d.source;h.onActive(Ye({event:f,item:m,itemInputValue:p,itemUrl:g,refresh:n,source:h,state:r.getState()},o))}}},onMouseDown:function(f){f.preventDefault()},onClick:function(f){var d=a.getItemInputValue({item:s,state:r.getState()}),m=a.getItemUrl({item:s,state:r.getState()});(m?Promise.resolve():hn(Ye({event:f,nextState:{isOpen:!1},props:e,query:d,refresh:n,store:r},o))).then(function(){a.onSelect(Ye({event:f,item:s,itemInputValue:d,itemUrl:m,refresh:n,source:a,state:r.getState()},o))})}},c)}}}function nr(t){return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(t)}function Ql(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ih(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Jh(t){var e=t.translations,n=e===void 0?{}:e,r=Gh(t,zh),o=n.noResultsText,i=o===void 0?"No results for":o,l=n.suggestedQueryText,s=l===void 0?"Try searching for":l,a=n.reportMissingResultsText,u=a===void 0?"Believe this query should return results?":a,c=n.reportMissingResultsLinkText,f=c===void 0?"Let us know.":c,d=r.state.context.searchSuggestions;return k.createElement("div",{className:"DocSearch-NoResults"},k.createElement("div",{className:"DocSearch-Screen-Icon"},k.createElement(Wh,null)),k.createElement("p",{className:"DocSearch-Title"},i,' "',k.createElement("strong",null,r.state.query),'"'),d&&d.length>0&&k.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},k.createElement("p",{className:"DocSearch-Help"},s,":"),k.createElement("ul",null,d.slice(0,3).reduce(function(m,p){return[].concat(Qh(m),[k.createElement("li",{key:p},k.createElement("button",{className:"DocSearch-Prefill",key:p,type:"button",onClick:function(){r.setQuery(p.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},p))])},[]))),r.getMissingResultsUrl&&k.createElement("p",{className:"DocSearch-Help"},"".concat(u," "),k.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var Xh=["hit","attribute","tagName"];function Zl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function $l(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ea(t,e){return e.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},t)}function mn(t){var e=t.hit,n=t.attribute,r=t.tagName;return wt(r===void 0?"span":r,$l($l({},Zh(t,Xh)),{},{dangerouslySetInnerHTML:{__html:ea(e,"_snippetResult.".concat(n,".value"))||ea(e,n)}}))}function ta(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,l,s=[],a=!0,u=!1;try{for(o=o.call(n);!(a=(i=o.next()).done)&&(s.push(i.value),!r||s.length!==r);a=!0);}catch(c){u=!0,l=c}finally{try{a||o.return==null||o.return()}finally{if(u)throw l}}return s}}(t,e)||function(n,r){if(n){if(typeof n=="string")return na(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return na(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n|<\/mark>)/g,tp=RegExp(ou.source);function iu(t){var e,n,r=t;if(!r.__docsearch_parent&&!t._highlightResult)return t.hierarchy.lvl0;var o=((r.__docsearch_parent?(e=r.__docsearch_parent)===null||e===void 0||(e=e._highlightResult)===null||e===void 0||(e=e.hierarchy)===null||e===void 0?void 0:e.lvl0:(n=t._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0)||{}).value;return o&&tp.test(o)?o.replace(ou,""):o}function zo(){return zo=Object.assign||function(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ip(t){var e=t.translations,n=e===void 0?{}:e,r=op(t,rp),o=n.recentSearchesTitle,i=o===void 0?"Recent":o,l=n.noRecentSearchesText,s=l===void 0?"No recent searches":l,a=n.saveRecentSearchButtonTitle,u=a===void 0?"Save this search":a,c=n.removeRecentSearchButtonTitle,f=c===void 0?"Remove this search from history":c,d=n.favoriteSearchesTitle,m=d===void 0?"Favorite":d,p=n.removeFavoriteSearchButtonTitle,g=p===void 0?"Remove this search from favorites":p;return r.state.status==="idle"&&r.hasCollections===!1?r.disableUserPersonalization?null:k.createElement("div",{className:"DocSearch-StartScreen"},k.createElement("p",{className:"DocSearch-Help"},s)):r.hasCollections===!1?null:k.createElement("div",{className:"DocSearch-Dropdown-Container"},k.createElement(Ko,eo({},r,{title:i,collection:r.state.collections[0],renderIcon:function(){return k.createElement("div",{className:"DocSearch-Hit-icon"},k.createElement(Lh,null))},renderAction:function(h){var S=h.item,I=h.runFavoriteTransition,E=h.runDeleteTransition;return k.createElement(k.Fragment,null,k.createElement("div",{className:"DocSearch-Hit-action"},k.createElement("button",{className:"DocSearch-Hit-action-button",title:u,type:"submit",onClick:function(A){A.preventDefault(),A.stopPropagation(),I(function(){r.favoriteSearches.add(S),r.recentSearches.remove(S),r.refresh()})}},k.createElement(Yl,null))),k.createElement("div",{className:"DocSearch-Hit-action"},k.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(A){A.preventDefault(),A.stopPropagation(),E(function(){r.recentSearches.remove(S),r.refresh()})}},k.createElement(Wo,null))))}})),k.createElement(Ko,eo({},r,{title:m,collection:r.state.collections[1],renderIcon:function(){return k.createElement("div",{className:"DocSearch-Hit-icon"},k.createElement(Yl,null))},renderAction:function(h){var S=h.item,I=h.runDeleteTransition;return k.createElement("div",{className:"DocSearch-Hit-action"},k.createElement("button",{className:"DocSearch-Hit-action-button",title:g,type:"submit",onClick:function(E){E.preventDefault(),E.stopPropagation(),I(function(){r.favoriteSearches.remove(S),r.refresh()})}},k.createElement(Wo,null)))}})))}var lp=["translations"];function to(){return to=Object.assign||function(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var sp=k.memo(function(t){var e=t.translations,n=e===void 0?{}:e,r=ap(t,lp);if(r.state.status==="error")return k.createElement(Kh,{translations:n==null?void 0:n.errorScreen});var o=r.state.collections.some(function(i){return i.items.length>0});return r.state.query?o===!1?k.createElement(Jh,to({},r,{translations:n==null?void 0:n.noResultsScreen})):k.createElement(np,r):k.createElement(ip,to({},r,{hasCollections:o,translations:n==null?void 0:n.startScreen}))},function(t,e){return e.state.status==="loading"||e.state.status==="stalled"}),up=["translations"];function no(){return no=Object.assign||function(t){for(var e=1;e=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function fp(t){var e=t.translations,n=e===void 0?{}:e,r=cp(t,up),o=n.resetButtonTitle,i=o===void 0?"Clear the query":o,l=n.resetButtonAriaLabel,s=l===void 0?"Clear the query":l,a=n.cancelButtonText,u=a===void 0?"Cancel":a,c=n.cancelButtonAriaLabel,f=c===void 0?"Cancel":c,d=n.searchInputLabel,m=d===void 0?"Search":d,p=r.getFormProps({inputElement:r.inputRef.current}).onReset;return k.useEffect(function(){r.autoFocus&&r.inputRef.current&&r.inputRef.current.focus()},[r.autoFocus,r.inputRef]),k.useEffect(function(){r.isFromSelection&&r.inputRef.current&&r.inputRef.current.select()},[r.isFromSelection,r.inputRef]),k.createElement(k.Fragment,null,k.createElement("form",{className:"DocSearch-Form",onSubmit:function(g){g.preventDefault()},onReset:p},k.createElement("label",no({className:"DocSearch-MagnifierLabel"},r.getLabelProps()),k.createElement(Xs,null),k.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},m)),k.createElement("div",{className:"DocSearch-LoadingIndicator"},k.createElement(Fh,null)),k.createElement("input",no({className:"DocSearch-Input",ref:r.inputRef},r.getInputProps({inputElement:r.inputRef.current,autoFocus:r.autoFocus,maxLength:64}))),k.createElement("button",{type:"reset",title:i,className:"DocSearch-Reset","aria-label":s,hidden:!r.state.query},k.createElement(Wo,null))),k.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":f,onClick:r.onClose},u))}var dp=["_highlightResult","_snippetResult"];function mp(t,e){if(t==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a,u,c={},f=Object.keys(l);for(u=0;u=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function hp(t){return function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch{return!1}}()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(e){return window.localStorage.setItem(t,JSON.stringify(e))},getItem:function(){var e=window.localStorage.getItem(t);return e?JSON.parse(e):[]}}}function ia(t){var e=t.key,n=t.limit,r=n===void 0?5:n,o=hp(e),i=o.getItem().slice(0,r);return{add:function(l){var s=l,a=(s._highlightResult,s._snippetResult,mp(s,dp)),u=i.findIndex(function(c){return c.objectID===a.objectID});u>-1&&i.splice(u,1),i.unshift(a),i=i.slice(0,r),o.setItem(i)},remove:function(l){i=i.filter(function(s){return s.objectID!==l.objectID}),o.setItem(i)},getAll:function(){return i}}}var pp=["facetName","facetQuery"];function gp(t){var e,n="algoliasearch-client-js-".concat(t.key),r=function(){return e===void 0&&(e=t.localStorage||window.localStorage),e},o=function(){return JSON.parse(r().getItem(n)||"{}")},i=function(s){r().setItem(n,JSON.stringify(s))},l=function(){var s=t.timeToLive?1e3*t.timeToLive:null,a=o(),u=Object.fromEntries(Object.entries(a).filter(function(f){return bn(f,2)[1].timestamp!==void 0}));if(i(u),s){var c=Object.fromEntries(Object.entries(u).filter(function(f){var d=bn(f,2)[1],m=new Date().getTime();return!(d.timestamp+s2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){l();var c=JSON.stringify(s);return o()[c]}).then(function(c){return Promise.all([c?c.value:a(),c!==void 0])}).then(function(c){var f=bn(c,2),d=f[0],m=f[1];return Promise.all([d,m||u.miss(d)])}).then(function(c){return bn(c,1)[0]})},set:function(s,a){return Promise.resolve().then(function(){var u=o();return u[JSON.stringify(s)]={timestamp:new Date().getTime(),value:a},r().setItem(n,JSON.stringify(u)),a})},delete:function(s){return Promise.resolve().then(function(){var a=o();delete a[JSON.stringify(s)],r().setItem(n,JSON.stringify(a))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function Hn(t){var e=Jr(t.caches),n=e.shift();return n===void 0?{get:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then(function(l){return Promise.all([l,i.miss(l)])}).then(function(l){return bn(l,1)[0]})},set:function(r,o){return Promise.resolve(o)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,o,i).catch(function(){return Hn({caches:e}).get(r,o,i)})},set:function(r,o){return n.set(r,o).catch(function(){return Hn({caches:e}).set(r,o)})},delete:function(r){return n.delete(r).catch(function(){return Hn({caches:e}).delete(r)})},clear:function(){return n.clear().catch(function(){return Hn({caches:e}).clear()})}}}function Co(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},e={};return{get:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in e)return Promise.resolve(t.serializable?JSON.parse(e[i]):e[i]);var l=r(),s=o&&o.miss||function(){return Promise.resolve()};return l.then(function(a){return s(a)}).then(function(){return l})},set:function(n,r){return e[JSON.stringify(n)]=t.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete e[JSON.stringify(n)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function bp(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t}function lu(t,e){return e&&Object.keys(e).forEach(function(n){t[n]=e[n](t)}),t}function so(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?r:void 0,timeout:n.timeout||e,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var _n={Read:1,Write:2,Any:3},au=1,vp=2,su=3;function uu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:au;return we(we({},t),{},{status:e,lastUpdate:Date.now()})}function cu(t){return typeof t=="string"?{protocol:"https",url:t,accept:_n.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||_n.Any}}var Qo="GET",uo="POST";function _p(t,e){return Promise.all(e.map(function(n){return t.get(n,function(){return Promise.resolve(uu(n))})})).then(function(n){var r=n.filter(function(l){return function(s){return s.status===au||Date.now()-s.lastUpdate>12e4}(l)}),o=n.filter(function(l){return function(s){return s.status===su&&Date.now()-s.lastUpdate<=12e4}(l)}),i=[].concat(Jr(r),Jr(o));return{getTimeout:function(l,s){return(o.length===0&&l===0?1:o.length+3+l)*s},statelessHosts:i.length>0?i.map(function(l){return cu(l)}):e}})}function aa(t,e,n,r){var o=[],i=function(d,m){if(!(d.method===Qo||d.data===void 0&&m.data===void 0)){var p=Array.isArray(d.data)?d.data:we(we({},d.data),m.data);return JSON.stringify(p)}}(n,r),l=function(d,m){var p=we(we({},d.headers),m.headers),g={};return Object.keys(p).forEach(function(h){var S=p[h];g[h.toLowerCase()]=S}),g}(t,r),s=n.method,a=n.method!==Qo?{}:we(we({},n.data),r.data),u=we(we(we({"x-algolia-agent":t.userAgent.value},t.queryParameters),a),r.queryParameters),c=0,f=function d(m,p){var g=m.pop();if(g===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:sa(o)};var h={data:i,headers:l,method:s,url:wp(g,n.path,u),connectTimeout:p(c,t.timeouts.connect),responseTimeout:p(c,r.timeout)},S=function(E){var A={request:h,response:E,host:g,triesLeft:m.length};return o.push(A),A},I={onSuccess:function(E){return function(A){try{return JSON.parse(A.content)}catch(v){throw function(C,w){return{name:"DeserializationError",message:C,response:w}}(v.message,A)}}(E)},onRetry:function(E){var A=S(E);return E.isTimedOut&&c++,Promise.all([t.logger.info("Retryable failure",du(A)),t.hostsCache.set(g,uu(g,E.isTimedOut?su:vp))]).then(function(){return d(m,p)})},onFail:function(E){throw S(E),function(A,v){var C=A.content,w=A.status,M=C;try{M=JSON.parse(C).message}catch{}return function(F,B,q){return{name:"ApiError",message:F,status:B,transporterStackTrace:q}}(M,w,v)}(E,sa(o))}};return t.requester.send(h).then(function(E){return function(A,v){return function(C){var w=C.status;return C.isTimedOut||function(M){var F=M.isTimedOut,B=M.status;return!F&&~~B==0}(C)||~~(w/100)!=2&&~~(w/100)!=4}(A)?v.onRetry(A):~~(A.status/100)==2?v.onSuccess(A):v.onFail(A)}(E,I)})};return _p(t.hostsCache,e).then(function(d){return f(Jr(d.statelessHosts).reverse(),d.getTimeout)})}function yp(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(n){var r="; ".concat(n.segment).concat(n.version!==void 0?" (".concat(n.version,")"):"");return e.value.indexOf(r)===-1&&(e.value="".concat(e.value).concat(r)),e}};return e}function wp(t,e,n){var r=fu(n),o="".concat(t.protocol,"://").concat(t.url,"/").concat(e.charAt(0)==="/"?e.substr(1):e);return r.length&&(o+="?".concat(r)),o}function fu(t){return Object.keys(t).map(function(e){return so("%s=%s",e,(n=t[e],Object.prototype.toString.call(n)==="[object Object]"||Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(t[e]):t[e]));var n}).join("&")}function sa(t){return t.map(function(e){return du(e)})}function du(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return we(we({},t),{},{request:we(we({},t.request),{},{headers:we(we({},t.request.headers),e)})})}var Op=function(t){var e=t.appId,n=function(i,l,s){var a={"x-algolia-api-key":s,"x-algolia-application-id":l};return{headers:function(){return i===Br.WithinHeaders?a:{}},queryParameters:function(){return i===Br.WithinQueryParameters?a:{}}}}(t.authMode!==void 0?t.authMode:Br.WithinHeaders,e,t.apiKey),r=function(i){var l=i.hostsCache,s=i.logger,a=i.requester,u=i.requestsCache,c=i.responsesCache,f=i.timeouts,d=i.userAgent,m=i.hosts,p=i.queryParameters,g={hostsCache:l,logger:s,requester:a,requestsCache:u,responsesCache:c,timeouts:f,userAgent:d,headers:i.headers,queryParameters:p,hosts:m.map(function(h){return cu(h)}),read:function(h,S){var I=la(S,g.timeouts.read),E=function(){return aa(g,g.hosts.filter(function(v){return(v.accept&_n.Read)!=0}),h,I)};if((I.cacheable!==void 0?I.cacheable:h.cacheable)!==!0)return E();var A={request:h,mappedRequestOptions:I,transporter:{queryParameters:g.queryParameters,headers:g.headers}};return g.responsesCache.get(A,function(){return g.requestsCache.get(A,function(){return g.requestsCache.set(A,E()).then(function(v){return Promise.all([g.requestsCache.delete(A),v])},function(v){return Promise.all([g.requestsCache.delete(A),Promise.reject(v)])}).then(function(v){var C=bn(v,2);return C[0],C[1]})})},{miss:function(v){return g.responsesCache.set(A,v)}})},write:function(h,S){return aa(g,g.hosts.filter(function(I){return(I.accept&_n.Write)!=0}),h,la(S,g.timeouts.write))}};return g}(we(we({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:_n.Read},{url:"".concat(e,".algolia.net"),accept:_n.Write}].concat(bp([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t),{},{headers:we(we(we({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),t.headers),queryParameters:we(we({},n.queryParameters()),t.queryParameters)})),o={transporter:r,appId:e,addAlgoliaAgent:function(i,l){r.userAgent.add({segment:i,version:l})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then(function(){})}};return lu(o,t.methods)},Sp=function(t){return function(e,n){return e.method===Qo?t.transporter.read(e,n):t.transporter.write(e,n)}},mu=function(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={transporter:t.transporter,appId:t.appId,indexName:e};return lu(r,n.methods)}},ua=function(t){return function(e,n){var r=e.map(function(o){return we(we({},o),{},{params:fu(o.params||{})})});return t.transporter.read({method:uo,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)}},ca=function(t){return function(e,n){return Promise.all(e.map(function(r){var o=r.params,i=o.facetName,l=o.facetQuery,s=ym(o,pp);return mu(t)(r.indexName,{methods:{searchForFacetValues:hu}}).searchForFacetValues(i,l,we(we({},n),s))}))}},kp=function(t){return function(e,n,r){return t.transporter.read({method:uo,path:so("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:n},cacheable:!0},r)}},Ep=function(t){return function(e,n){return t.transporter.read({method:uo,path:so("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},n)}},hu=function(t){return function(e,n,r){return t.transporter.read({method:uo,path:so("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:n},cacheable:!0},r)}},Pp=1,Ip=2,Cp=3;function pu(t,e,n){var r,o={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(i){return new Promise(function(l){var s=new XMLHttpRequest;s.open(i.method,i.url,!0),Object.keys(i.headers).forEach(function(f){return s.setRequestHeader(f,i.headers[f])});var a,u=function(f,d){return setTimeout(function(){s.abort(),l({status:0,content:d,isTimedOut:!0})},1e3*f)},c=u(i.connectTimeout,"Connection timeout");s.onreadystatechange=function(){s.readyState>s.OPENED&&a===void 0&&(clearTimeout(c),a=u(i.responseTimeout,"Socket timeout"))},s.onerror=function(){s.status===0&&(clearTimeout(c),clearTimeout(a),l({content:s.responseText||"Network request failed",status:s.status,isTimedOut:!1}))},s.onload=function(){clearTimeout(c),clearTimeout(a),l({content:s.responseText,status:s.status,isTimedOut:!1})},s.send(i.data)})}},logger:(r=Cp,{debug:function(i,l){return Pp>=r&&console.debug(i,l),Promise.resolve()},info:function(i,l){return Ip>=r&&console.info(i,l),Promise.resolve()},error:function(i,l){return console.error(i,l),Promise.resolve()}}),responsesCache:Co(),requestsCache:Co({serializable:!1}),hostsCache:Hn({caches:[gp({key:"".concat("4.19.1","-").concat(t)}),Co()]}),userAgent:yp("4.19.1").add({segment:"Browser",version:"lite"}),authMode:Br.WithinQueryParameters};return Op(we(we(we({},o),n),{},{methods:{search:ua,searchForFacetValues:ca,multipleQueries:ua,multipleSearchForFacetValues:ca,customRequest:Sp,initIndex:function(i){return function(l){return mu(i)(l,{methods:{search:Ep,searchForFacetValues:hu,findAnswers:kp}})}}}}))}pu.version="4.19.1";var jp=["footer","searchBox"];function ir(){return ir=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(c[a]=l[a]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Np(t){var e=t.appId,n=t.apiKey,r=t.indexName,o=t.placeholder,i=o===void 0?"Search docs":o,l=t.searchParameters,s=t.maxResultsPerGroup,a=t.onClose,u=a===void 0?ep:a,c=t.transformItems,f=c===void 0?oa:c,d=t.hitComponent,m=d===void 0?Rh:d,p=t.resultsFooterComponent,g=p===void 0?function(){return null}:p,h=t.navigator,S=t.initialScrollY,I=S===void 0?0:S,E=t.transformSearchClient,A=E===void 0?oa:E,v=t.disableUserPersonalization,C=v!==void 0&&v,w=t.initialQuery,M=w===void 0?"":w,F=t.translations,B=F===void 0?{}:F,q=t.getMissingResultsUrl,O=t.insights,b=O!==void 0&&O,y=B.footer,_=B.searchBox,L=Tp(B,jp),G=Dp(k.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),D=G[0],de=G[1],Pe=k.useRef(null),Ue=k.useRef(null),Je=k.useRef(null),Ne=k.useRef(null),nt=k.useRef(null),z=k.useRef(10),Ft=k.useRef(typeof window<"u"?window.getSelection().toString().slice(0,64):"").current,it=k.useRef(M||Ft).current,Qt=function(ie,_e,Ve){return k.useMemo(function(){var Xe=pu(ie,_e);return Xe.addAlgoliaAgent("docsearch","3.6.0"),/docsearch.js \(.*\)/.test(Xe.transporter.userAgent.value)===!1&&Xe.addAlgoliaAgent("docsearch-react","3.6.0"),Ve(Xe)},[ie,_e,Ve])}(e,n,A),vt=k.useRef(ia({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(r),limit:10})).current,Lt=k.useRef(ia({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(r),limit:vt.getAll().length===0?7:4})).current,Pt=k.useCallback(function(ie){if(!C){var _e=ie.type==="content"?ie.__docsearch_parent:ie;_e&&vt.getAll().findIndex(function(Ve){return Ve.objectID===_e.objectID})===-1&&Lt.add(_e)}},[vt,Lt,C]),co=k.useCallback(function(ie){if(D.context.algoliaInsightsPlugin&&ie.__autocomplete_id){var _e=ie,Ve={eventName:"Item Selected",index:_e.__autocomplete_indexName,items:[_e],positions:[ie.__autocomplete_id],queryID:_e.__autocomplete_queryID};D.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(Ve)}},[D.context.algoliaInsightsPlugin]),Gt=k.useMemo(function(){return Th({id:"docsearch",defaultActiveItemId:0,placeholder:i,openOnFocus:!0,initialState:{query:it,context:{searchSuggestions:[]}},insights:b,navigator:h,onStateChange:function(ie){de(ie.state)},getSources:function(ie){var _e=ie.query,Ve=ie.state,Xe=ie.setContext,R=ie.setStatus;if(!_e)return C?[]:[{sourceId:"recentSearches",onSelect:function(U){var Q=U.item,te=U.event;Pt(Q),Nr(te)||u()},getItemUrl:function(U){return U.item.url},getItems:function(){return Lt.getAll()}},{sourceId:"favoriteSearches",onSelect:function(U){var Q=U.item,te=U.event;Pt(Q),Nr(te)||u()},getItemUrl:function(U){return U.item.url},getItems:function(){return vt.getAll()}}];var V=!!b;return Qt.search([{query:_e,indexName:r,params:jo({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(z.current),"hierarchy.lvl2:".concat(z.current),"hierarchy.lvl3:".concat(z.current),"hierarchy.lvl4:".concat(z.current),"hierarchy.lvl5:".concat(z.current),"hierarchy.lvl6:".concat(z.current),"content:".concat(z.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20,clickAnalytics:V},l)}]).catch(function(U){throw U.name==="RetryError"&&R("error"),U}).then(function(U){var Q=U.results[0],te=Q.hits,Me=Q.nbHits,We=ra(te,function(fe){return iu(fe)},s);Ve.context.searchSuggestions.length0&&(on(),nt.current&&nt.current.focus())},[it,on]),k.useEffect(function(){function ie(){if(Ue.current){var _e=.01*window.innerHeight;Ue.current.style.setProperty("--docsearch-vh","".concat(_e,"px"))}}return ie(),window.addEventListener("resize",ie),function(){window.removeEventListener("resize",ie)}},[]),k.createElement("div",ir({ref:Pe},Dn({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",D.status==="stalled"&&"DocSearch-Container--Stalled",D.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(ie){ie.target===ie.currentTarget&&u()}}),k.createElement("div",{className:"DocSearch-Modal",ref:Ue},k.createElement("header",{className:"DocSearch-SearchBar",ref:Je},k.createElement(fp,ir({},Gt,{state:D,autoFocus:it.length===0,inputRef:nt,isFromSelection:!!it&&it===Ft,translations:_,onClose:u}))),k.createElement("div",{className:"DocSearch-Dropdown",ref:Ne},k.createElement(sp,ir({},Gt,{indexName:r,state:D,hitComponent:m,resultsFooterComponent:g,disableUserPersonalization:C,recentSearches:Lt,favoriteSearches:vt,inputRef:nt,translations:L,getMissingResultsUrl:q,onItemClick:function(ie,_e){co(ie),Pt(ie),Nr(_e)||u()}}))),k.createElement("footer",{className:"DocSearch-Footer"},k.createElement(Mh,{translations:y}))))}function Go(){return Go=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:window;return typeof e=="string"?n.document.querySelector(e):e}(t.container,t.environment))}function Fp(t){let e;return{c(){e=x("div"),this.h()},l(n){e=W(n,"DIV",{id:!0}),J(e).forEach(P),this.h()},h(){N(e,"id","docsearch")},m(n,r){H(n,e,r)},p:Re,i:Re,o:Re,d(n){n&&P(e)}}}function Lp(t,e,n){let{algolia:r}=e;return Xo(()=>{Rp({container:"#docsearch",appId:r==null?void 0:r.appId,apiKey:r==null?void 0:r.apiKey,indexName:r==null?void 0:r.indexName})}),t.$$set=o=>{"algolia"in o&&n(0,r=o.algolia)},[r]}class Bp extends De{constructor(e){super(),Te(this,e,Lp,Fp,Ee,{algolia:0})}}function Hp(t){let e;const n=t[3].default,r=Fe(n,t,t[11],null);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i&2048)&&Le(r,n,o,o[11],e?He(n,o[11],i,null):Be(o[11]),null)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function qp(t){let e,n;const r=[{class:Ut("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-50 data-[disabled]:opacity-50",t[1]&&"pl-8",t[0])},t[2]];let o={$$slots:{default:[Hp]},$$scope:{ctx:t}};for(let i=0;i{e=ve(ve({},e),Tt(h)),n(2,o=Ge(e,r)),"class"in h&&n(0,s=h.class),"inset"in h&&n(1,a=h.inset),"$$scope"in h&&n(11,l=h.$$scope)},[s,a,o,i,u,c,f,d,m,p,g,l]}class pa extends De{constructor(e){super(),Te(this,e,Up,qp,Ee,{class:0,inset:1})}}function Vp(t){let e;const n=t[5].default,r=Fe(n,t,t[7],null);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i&128)&&Le(r,n,o,o[7],e?He(n,o[7],i,null):Be(o[7]),null)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function xp(t){let e,n;const r=[{transition:t[2]},{transitionConfig:t[3]},{sideOffset:t[1]},{class:Ut("z-50 min-w-[8rem] rounded-md border bg-popover p-1 shadow-md bg-white focus:outline-none antialiased text-gray-800 print:hidden",t[0])},t[4]];let o={$$slots:{default:[Vp]},$$scope:{ctx:t}};for(let i=0;i{e=ve(ve({},e),Tt(d)),n(4,o=Ge(e,r)),"class"in d&&n(0,s=d.class),"sideOffset"in d&&n(1,a=d.sideOffset),"transition"in d&&n(2,u=d.transition),"transitionConfig"in d&&n(3,c=d.transitionConfig),"$$scope"in d&&n(7,l=d.$$scope)},[s,a,u,c,o,i,f,l]}class Kp extends De{constructor(e){super(),Te(this,e,Wp,xp,Ee,{class:0,sideOffset:1,transition:2,transitionConfig:3})}}function zp(t){let e,n,r;const o=t[3].default,i=Fe(o,t,t[2],null);let l=[{class:n=Ut("ml-auto text-xs tracking-widest opacity-60",t[0])},t[1]],s={};for(let a=0;a{e=ve(ve({},e),Tt(a)),n(1,o=Ge(e,r)),"class"in a&&n(0,s=a.class),"$$scope"in a&&n(2,l=a.$$scope)},[s,o,l,i]}class Gp extends De{constructor(e){super(),Te(this,e,Qp,zp,Ee,{class:0})}}const Jp=Md,Xp=nm,Yp=Ad;function Zp(t){let e,n;return e=new En({props:{src:Tu,class:"h-6 w-6"}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p:Re,i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function $p(t){let e,n;return e=new lm({props:{builders:[t[5]],variant:"ghost",size:"sm",class:"px-1",id:"layout-kebab",$$slots:{default:[Zp]},$$scope:{ctx:t}}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p(r,o){const i={};o&32&&(i.builders=[r[5]]),o&64&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function eg(t){let e;return{c(){e=je("⌘P")},l(n){e=Ae(n,"⌘P")},m(n,r){H(n,e,r)},d(n){n&&P(e)}}}function tg(t){let e,n,r;return n=new Gp({props:{$$slots:{default:[eg]},$$scope:{ctx:t}}}),{c(){e=je(`Print PDF `),ae(n.$$.fragment)},l(o){e=Ae(o,`Print PDF `),se(n.$$.fragment,o)},m(o,i){H(o,e,i),ue(n,o,i),r=!0},p(o,i){const l={};i&64&&(l.$$scope={dirty:i,ctx:o}),n.$set(l)},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n,o)}}}function ng(t){let e=t[0]?"Hide ":"Show ",n,r;return{c(){n=je(e),r=je(" Queries")},l(o){n=Ae(o,e),r=Ae(o," Queries")},m(o,i){H(o,n,i),H(o,r,i)},p(o,i){i&1&&e!==(e=o[0]?"Hide ":"Show ")&&Mt(n,e)},d(o){o&&(P(n),P(r))}}}function rg(t){let e,n,r,o;return e=new pa({props:{$$slots:{default:[tg]},$$scope:{ctx:t}}}),e.$on("click",t[1]),r=new pa({props:{$$slots:{default:[ng]},$$scope:{ctx:t}}}),r.$on("click",t[2]),{c(){ae(e.$$.fragment),n=$(),ae(r.$$.fragment)},l(i){se(e.$$.fragment,i),n=ee(i),se(r.$$.fragment,i)},m(i,l){ue(e,i,l),H(i,n,l),ue(r,i,l),o=!0},p(i,l){const s={};l&64&&(s.$$scope={dirty:l,ctx:i}),e.$set(s);const a={};l&65&&(a.$$scope={dirty:l,ctx:i}),r.$set(a)},i(i){o||(j(e.$$.fragment,i),j(r.$$.fragment,i),o=!0)},o(i){T(e.$$.fragment,i),T(r.$$.fragment,i),o=!1},d(i){i&&P(n),ce(e,i),ce(r,i)}}}function og(t){let e,n,r,o;e=new Yp({props:{$$slots:{default:[rg]},$$scope:{ctx:t}}});let i=Hr;return{c(){ae(e.$$.fragment),n=$(),r=re()},l(l){se(e.$$.fragment,l),n=ee(l),r=re()},m(l,s){ue(e,l,s),H(l,n,s),H(l,r,s),o=!0},p(l,s){const a={};s&65&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){o||(j(e.$$.fragment,l),j(i),o=!0)},o(l){T(e.$$.fragment,l),T(i),o=!1},d(l){l&&(P(n),P(r)),ce(e,l)}}}function ig(t){let e,n,r,o;return e=new Xp({props:{asChild:!0,$$slots:{default:[$p,({builder:i})=>({5:i}),({builder:i})=>i?32:0]},$$scope:{ctx:t}}}),r=new Kp({props:{class:" w-44 text-xs",$$slots:{default:[og]},$$scope:{ctx:t}}}),{c(){ae(e.$$.fragment),n=$(),ae(r.$$.fragment)},l(i){se(e.$$.fragment,i),n=ee(i),se(r.$$.fragment,i)},m(i,l){ue(e,i,l),H(i,n,l),ue(r,i,l),o=!0},p(i,l){const s={};l&96&&(s.$$scope={dirty:l,ctx:i}),e.$set(s);const a={};l&65&&(a.$$scope={dirty:l,ctx:i}),r.$set(a)},i(i){o||(j(e.$$.fragment,i),j(r.$$.fragment,i),o=!0)},o(i){T(e.$$.fragment,i),T(r.$$.fragment,i),o=!1},d(i){i&&P(n),ce(e,i),ce(r,i)}}}function lg(t){let e,n;return e=new Jp({props:{$$slots:{default:[ig]},$$scope:{ctx:t}}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p(r,[o]){const i={};o&65&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function ag(t,e,n){let r;ut(t,pi,a=>n(0,r=a));const o=new Event("export-beforeprint"),i=new Event("export-afterprint");function l(){window.dispatchEvent(o),setTimeout(()=>window.print(),0),setTimeout(()=>window.dispatchEvent(i),0)}return[r,l,()=>{pi.update(a=>!a)}]}class sg extends De{constructor(e){super(),Te(this,e,ag,lg,Ee,{})}}function ug(t){let e,n,r,o,i,l,s,a,u,c,f;const d=[dg,fg],m=[];function p(g,h){return g[0]?0:1}return r=p(t),o=m[r]=d[r](t),a=new ii({props:{logo:t[2],title:t[1]}}),{c(){e=x("div"),n=x("button"),o.c(),l=$(),s=x("a"),ae(a.$$.fragment),this.h()},l(g){e=W(g,"DIV",{class:!0});var h=J(e);n=W(h,"BUTTON",{type:!0,class:!0});var S=J(n);o.l(S),S.forEach(P),l=ee(h),s=W(h,"A",{href:!0,class:!0});var I=J(s);se(a.$$.fragment,I),I.forEach(P),h.forEach(P),this.h()},h(){N(n,"type","button"),N(n,"class",i="text-gray-900 hover:bg-gray-50 rounded-lg p-1 transition-all duration-500 "+(t[7]==="hide"?"block":"md:hidden")),N(s,"href","/"),N(s,"class","text-sm font-bold text-gray-800 hidden md:block"),N(e,"class","flex gap-x-4 items-center")},m(g,h){H(g,e,h),K(e,n),m[r].m(n,null),K(e,l),K(e,s),ue(a,s,null),u=!0,c||(f=oe(n,"click",t[12]),c=!0)},p(g,h){let S=r;r=p(g),r!==S&&(Oe(),T(m[S],1,1,()=>{m[S]=null}),Se(),o=m[r],o||(o=m[r]=d[r](g),o.c()),j(o,1),o.m(n,null)),(!u||h&128&&i!==(i="text-gray-900 hover:bg-gray-50 rounded-lg p-1 transition-all duration-500 "+(g[7]==="hide"?"block":"md:hidden")))&&N(n,"class",i);const I={};h&4&&(I.logo=g[2]),h&2&&(I.title=g[1]),a.$set(I)},i(g){u||(j(o),j(a.$$.fragment,g),u=!0)},o(g){T(o),T(a.$$.fragment,g),u=!1},d(g){g&&P(e),m[r].d(),ce(a),c=!1,f()}}}function cg(t){let e,n,r;return n=new ii({props:{logo:t[2],title:t[1]}}),{c(){e=x("a"),ae(n.$$.fragment),this.h()},l(o){e=W(o,"A",{href:!0,class:!0});var i=J(e);se(n.$$.fragment,i),i.forEach(P),this.h()},h(){N(e,"href","/"),N(e,"class","block text-sm font-bold text-gray-800")},m(o,i){H(o,e,i),ue(n,e,null),r=!0},p(o,i){const l={};i&4&&(l.logo=o[2]),i&2&&(l.title=o[1]),n.$set(l)},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n)}}}function fg(t){let e,n="Open sidebar",r,o,i;return o=new En({props:{class:"w-5 h-5",src:Nu}}),{c(){e=x("span"),e.textContent=n,r=$(),ae(o.$$.fragment),this.h()},l(l){e=W(l,"SPAN",{class:!0,"data-svelte-h":!0}),St(e)!=="svelte-73kebv"&&(e.textContent=n),r=ee(l),se(o.$$.fragment,l),this.h()},h(){N(e,"class","sr-only")},m(l,s){H(l,e,s),H(l,r,s),ue(o,l,s),i=!0},i(l){i||(j(o.$$.fragment,l),i=!0)},o(l){T(o.$$.fragment,l),i=!1},d(l){l&&(P(e),P(r)),ce(o,l)}}}function dg(t){let e,n="Close sidebar",r,o,i;return o=new En({props:{class:"w-5 h-5",src:Mu}}),{c(){e=x("span"),e.textContent=n,r=$(),ae(o.$$.fragment),this.h()},l(l){e=W(l,"SPAN",{class:!0,"data-svelte-h":!0}),St(e)!=="svelte-13q18xv"&&(e.textContent=n),r=ee(l),se(o.$$.fragment,l),this.h()},h(){N(e,"class","sr-only")},m(l,s){H(l,e,s),H(l,r,s),ue(o,l,s),i=!0},i(l){i||(j(o.$$.fragment,l),i=!0)},o(l){T(o.$$.fragment,l),i=!1},d(l){l&&(P(e),P(r)),ce(o,l)}}}function ga(t){let e,n;return e=new Bp({props:{algolia:t[8]}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p(r,o){const i={};o&256&&(i.algolia=r[8]),e.$set(i)},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function ba(t){let e,n,r;return n=new En({props:{src:zu,class:"w-4 h-4 text-gray-900 "}}),{c(){e=x("a"),ae(n.$$.fragment),this.h()},l(o){e=W(o,"A",{href:!0,class:!0,target:!0,rel:!0});var i=J(e);se(n.$$.fragment,i),i.forEach(P),this.h()},h(){N(e,"href",t[9]),N(e,"class","hover:bg-gray-50 rounded-lg p-2 transition-all duration-200"),N(e,"target","_blank"),N(e,"rel","noreferrer")},m(o,i){H(o,e,i),ue(n,e,null),r=!0},p(o,i){(!r||i&512)&&N(e,"href",o[9])},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n)}}}function va(t){let e,n,r;return{c(){e=x("a"),n=gi("svg"),r=gi("path"),this.h()},l(o){e=W(o,"A",{href:!0,class:!0,target:!0,rel:!0});var i=J(e);n=bi(i,"svg",{role:!0,viewBox:!0,xmlns:!0,class:!0});var l=J(n);r=bi(l,"path",{d:!0}),J(r).forEach(P),l.forEach(P),i.forEach(P),this.h()},h(){N(r,"d","M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"),N(n,"role","img"),N(n,"viewBox","0 0 24 24"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"class","w-4 h-4 text-gray-900"),N(e,"href",t[10]),N(e,"class","hover:bg-gray-50 rounded-lg p-2 transition-all duration-200"),N(e,"target","_blank"),N(e,"rel","noreferrer")},m(o,i){H(o,e,i),K(e,n),K(n,r)},p(o,i){i&1024&&N(e,"href",o[10])},d(o){o&&P(e)}}}function _a(t){let e,n,r;return n=new En({props:{src:Qu,class:"w-4 h-4 text-gray-900 "}}),{c(){e=x("a"),ae(n.$$.fragment),this.h()},l(o){e=W(o,"A",{href:!0,class:!0,target:!0,rel:!0});var i=J(e);se(n.$$.fragment,i),i.forEach(P),this.h()},h(){N(e,"href",t[11]),N(e,"class","hover:bg-gray-50 rounded-lg p-2 transition-all duration-200"),N(e,"target","_blank"),N(e,"rel","noreferrer")},m(o,i){H(o,e,i),ue(n,e,null),r=!0},p(o,i){(!r||i&2048)&&N(e,"href",o[11])},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n)}}}function ya(t){let e,n;return e=new sg({}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function mg(t){let e,n,r,o,i,l,s,a,u,c,f,d,m,p,g;const h=[cg,ug],S=[];function I(M,F){return M[6]||M[7]==="never"?0:1}r=I(t),o=S[r]=h[r](t);let E=t[8]&&ga(t),A=t[9]&&ba(t),v=t[10]&&va(t),C=t[11]&&_a(t),w=!t[3]&&ya();return{c(){e=x("header"),n=x("div"),o.c(),i=$(),l=x("div"),E&&E.c(),s=$(),a=x("div"),A&&A.c(),u=$(),v&&v.c(),c=$(),C&&C.c(),f=$(),d=x("div"),w&&w.c(),this.h()},l(M){e=W(M,"HEADER",{class:!0});var F=J(e);n=W(F,"DIV",{class:!0,style:!0});var B=J(n);o.l(B),i=ee(B),l=W(B,"DIV",{class:!0});var q=J(l);E&&E.l(q),s=ee(q),a=W(q,"DIV",{class:!0});var O=J(a);A&&A.l(O),u=ee(O),v&&v.l(O),c=ee(O),C&&C.l(O),O.forEach(P),f=ee(q),d=W(q,"DIV",{class:!0});var b=J(d);w&&w.l(b),b.forEach(P),q.forEach(P),B.forEach(P),F.forEach(P),this.h()},h(){N(a,"class","flex gap-2 items-center"),N(d,"class","relative"),N(l,"class","flex gap-2 text-sm items-center"),N(n,"class",m=(t[4]?"max-w-full ":t[5]?"":" max-w-7xl ")+"mx-auto px-6 sm:px-8 md:px-12 flex flex-1 items-center justify-between"),Ur(n,"max-width",t[5]+"px"),N(e,"class",p="fixed w-full top-0 z-40 flex h-12 shrink-0 justify-start items-center gap-x-4 border-b border-gray-200 bg-white/90 backdrop-blur print:hidden "+(t[7]==="hide"?"md:pl-8":""))},m(M,F){H(M,e,F),K(e,n),S[r].m(n,null),K(n,i),K(n,l),E&&E.m(l,null),K(l,s),K(l,a),A&&A.m(a,null),K(a,u),v&&v.m(a,null),K(a,c),C&&C.m(a,null),K(l,f),K(l,d),w&&w.m(d,null),g=!0},p(M,[F]){let B=r;r=I(M),r===B?S[r].p(M,F):(Oe(),T(S[B],1,1,()=>{S[B]=null}),Se(),o=S[r],o?o.p(M,F):(o=S[r]=h[r](M),o.c()),j(o,1),o.m(n,i)),M[8]?E?(E.p(M,F),F&256&&j(E,1)):(E=ga(M),E.c(),j(E,1),E.m(l,s)):E&&(Oe(),T(E,1,1,()=>{E=null}),Se()),M[9]?A?(A.p(M,F),F&512&&j(A,1)):(A=ba(M),A.c(),j(A,1),A.m(a,u)):A&&(Oe(),T(A,1,1,()=>{A=null}),Se()),M[10]?v?v.p(M,F):(v=va(M),v.c(),v.m(a,c)):v&&(v.d(1),v=null),M[11]?C?(C.p(M,F),F&2048&&j(C,1)):(C=_a(M),C.c(),j(C,1),C.m(a,null)):C&&(Oe(),T(C,1,1,()=>{C=null}),Se()),M[3]?w&&(Oe(),T(w,1,1,()=>{w=null}),Se()):w?F&8&&j(w,1):(w=ya(),w.c(),j(w,1),w.m(d,null)),(!g||F&48&&m!==(m=(M[4]?"max-w-full ":M[5]?"":" max-w-7xl ")+"mx-auto px-6 sm:px-8 md:px-12 flex flex-1 items-center justify-between"))&&N(n,"class",m),(!g||F&32)&&Ur(n,"max-width",M[5]+"px"),(!g||F&128&&p!==(p="fixed w-full top-0 z-40 flex h-12 shrink-0 justify-start items-center gap-x-4 border-b border-gray-200 bg-white/90 backdrop-blur print:hidden "+(M[7]==="hide"?"md:pl-8":"")))&&N(e,"class",p)},i(M){g||(j(o),j(E),j(A),j(C),j(w),g=!0)},o(M){T(o),T(E),T(A),T(C),T(w),g=!1},d(M){M&&P(e),S[r].d(),E&&E.d(),A&&A.d(),v&&v.d(),C&&C.d(),w&&w.d()}}}function hg(t,e,n){let{mobileSidebarOpen:r=void 0}=e,{title:o=void 0}=e,{logo:i=void 0}=e,{neverShowQueries:l=void 0}=e,{fullWidth:s=void 0}=e,{maxWidth:a=void 0}=e,{hideSidebar:u=void 0}=e,{sidebarFrontMatter:c=void 0}=e,{algolia:f=void 0}=e,{githubRepo:d=void 0}=e,{xProfile:m=void 0}=e,{slackCommunity:p=void 0}=e;const g=()=>{n(0,r=!r)};return t.$$set=h=>{"mobileSidebarOpen"in h&&n(0,r=h.mobileSidebarOpen),"title"in h&&n(1,o=h.title),"logo"in h&&n(2,i=h.logo),"neverShowQueries"in h&&n(3,l=h.neverShowQueries),"fullWidth"in h&&n(4,s=h.fullWidth),"maxWidth"in h&&n(5,a=h.maxWidth),"hideSidebar"in h&&n(6,u=h.hideSidebar),"sidebarFrontMatter"in h&&n(7,c=h.sidebarFrontMatter),"algolia"in h&&n(8,f=h.algolia),"githubRepo"in h&&n(9,d=h.githubRepo),"xProfile"in h&&n(10,m=h.xProfile),"slackCommunity"in h&&n(11,p=h.slackCommunity)},[r,o,i,l,s,a,u,c,f,d,m,p,g]}class pg extends De{constructor(e){super(),Te(this,e,hg,mg,Ee,{mobileSidebarOpen:0,title:1,logo:2,neverShowQueries:3,fullWidth:4,maxWidth:5,hideSidebar:6,sidebarFrontMatter:7,algolia:8,githubRepo:9,xProfile:10,slackCommunity:11})}}function gg(t){return Xo(()=>{}),[]}class bg extends De{constructor(e){super(),Te(this,e,gg,null,Ee,{})}}function vg(t){let e,n='Loading...
',r;return{c(){e=x("div"),e.innerHTML=n,this.h()},l(o){e=W(o,"DIV",{role:!0,class:!0,"data-svelte-h":!0}),St(e)!=="svelte-19bzzkg"&&(e.innerHTML=n),this.h()},h(){N(e,"role","status"),N(e,"class","animate-pulse")},m(o,i){H(o,e,i)},p:Re,i(o){o&&(r||Dt(()=>{r=mr(e,ar,{}),r.start()}))},o:Re,d(o){o&&P(e)}}}class _g extends De{constructor(e){super(),Te(this,e,null,vg,Ee,{})}}function yg(t){let e,n;const r=t[1].default,o=Fe(r,t,t[0],null);return{c(){e=x("span"),o&&o.c(),this.h()},l(i){e=W(i,"SPAN",{class:!0});var l=J(e);o&&o.l(l),l.forEach(P),this.h()},h(){N(e,"class","rounded px-0.5 py-[1px] bg-green-50 border border-green-200 text-green-800 group-hover:text-green-950 text-base sm:text-xs")},m(i,l){H(i,e,l),o&&o.m(e,null),n=!0},p(i,[l]){o&&o.p&&(!n||l&1)&&Le(o,r,i,i[0],n?He(r,i[0],l,null):Be(i[0]),null)},i(i){n||(j(o,i),n=!0)},o(i){T(o,i),n=!1},d(i){i&&P(e),o&&o.d(i)}}}function wg(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=i=>{"$$scope"in i&&n(0,o=i.$$scope)},[o,r]}class zt extends De{constructor(e){super(),Te(this,e,wg,yg,Ee,{})}}function wa(t,e,n){const r=t.slice();return r[14]=e[n],r}function Oa(t,e,n){const r=t.slice();return r[14]=e[n],r}function Sa(t){const e=t.slice(),n=e[6].url.pathname.toUpperCase()===e[14].href.toUpperCase()+"/";return e[19]=n,e}function ka(t,e,n){const r=t.slice();return r[14]=e[n],r}function Ea(t){const e=t.slice(),n=e[6].url.pathname.toUpperCase()===e[14].href.toUpperCase()+"/";return e[19]=n,e}function Pa(t,e,n){const r=t.slice();return r[14]=e[n],r}function Ia(t,e,n){const r=t.slice();return r[14]=e[n],r}function Ca(t){const e=t.slice(),n=e[6].url.pathname.toUpperCase()===e[14].href.toUpperCase()+"/";return e[19]=n,e}function ja(t,e,n){const r=t.slice();return r[14]=e[n],r}function Aa(t){const e=t.slice(),n=e[6].url.pathname.toUpperCase()===e[14].href.toUpperCase()+"/";return e[19]=n,e}function Da(t){let e,n,r,o,i,l,s,a,u,c,f,d='Close sidebar ',m,p,g,h,S="Home",I,E,A,v,C,w,M;a=new ii({props:{logo:t[2],title:t[1]}});let F=Qe(t[7]),B=[];for(let _=0;_T(B[_],1,1,()=>{B[_]=null});let O=Qe(t[7]),b=[];for(let _=0;_T(b[_],1,1,()=>{b[_]=null});return{c(){e=x("div"),r=$(),o=x("div"),i=x("div"),l=x("div"),s=x("a"),ae(a.$$.fragment),u=$(),c=x("span"),f=x("button"),f.innerHTML=d,m=$(),p=x("div"),g=x("div"),h=x("a"),h.textContent=S,I=$();for(let _=0;_{C&&(n||(n=Ht(e,ar,{duration:100},!0)),n.run(1))}),j(a.$$.fragment,_);for(let L=0;L{C&&(v&&v.end(1),A=mr(o,lr,{x:-50,duration:300}),A.start())}),C=!0}},o(_){_&&(n||(n=Ht(e,ar,{duration:100},!1)),n.run(0)),T(a.$$.fragment,_),B=B.filter(Boolean);for(let L=0;LT(f[m],1,1,()=>{f[m]=null});return{c(){e=x("div"),r.c(),o=$();for(let m=0;m0&&Eg(t);return{c(){r&&r.c(),e=re()},l(o){r&&r.l(o),e=re()},m(o,i){r&&r.m(o,i),H(o,e,i),n=!0},p(o,i){o[14].children.length>0&&r.p(o,i)},i(o){n||(j(r),n=!0)},o(o){T(r),n=!1},d(o){o&&P(e),r&&r.d(o)}}}function Ra(t){let e,n,r,o="Home",i,l,s,a=Qe(t[7]),u=[];for(let p=0;pT(u[p],1,1,()=>{u[p]=null});let f=Qe(t[7]),d=[];for(let p=0;pT(d[p],1,1,()=>{d[p]=null});return{c(){e=x("div"),n=x("div"),r=x("a"),r.textContent=o,i=$();for(let p=0;pT(f[m],1,1,()=>{f[m]=null});return{c(){e=x("div"),r.c(),o=$();for(let m=0;m0&&Bg(t);return{c(){r&&r.c(),e=re()},l(o){r&&r.l(o),e=re()},m(o,i){r&&r.m(o,i),H(o,e,i),n=!0},p(o,i){o[14].children.length>0&&r.p(o,i)},i(o){n||(j(r),n=!0)},o(o){T(r),n=!1},d(o){o&&P(e),r&&r.d(o)}}}function Ha(t){let e,n='Built with Evidence';return{c(){e=x("div"),e.innerHTML=n,this.h()},l(r){e=W(r,"DIV",{class:!0,"data-svelte-h":!0}),St(e)!=="svelte-t1ujau"&&(e.innerHTML=n),this.h()},h(){N(e,"class","fixed bottom-0 text-xs py-2")},m(r,o){H(r,e,o)},d(r){r&&P(e)}}}function Gg(t){let e,n,r,o,i,l=t[0]&&Da(t),s=!t[0]&&Ra(t),a=t[3]&&Ha();return{c(){l&&l.c(),e=$(),n=x("aside"),s&&s.c(),r=$(),a&&a.c(),this.h()},l(u){l&&l.l(u),e=ee(u),n=W(u,"ASIDE",{class:!0});var c=J(n);s&&s.l(c),r=ee(c),a&&a.l(c),c.forEach(P),this.h()},h(){N(n,"class",o="w-48 flex-none "+(t[5]==="hide"?"hidden":"hidden md:flex"))},m(u,c){l&&l.m(u,c),H(u,e,c),H(u,n,c),s&&s.m(n,null),K(n,r),a&&a.m(n,null),i=!0},p(u,[c]){u[0]?l?(l.p(u,c),c&1&&j(l,1)):(l=Da(u),l.c(),j(l,1),l.m(e.parentNode,e)):l&&(Oe(),T(l,1,1,()=>{l=null}),Se()),u[0]?s&&(Oe(),T(s,1,1,()=>{s=null}),Se()):s?(s.p(u,c),c&1&&j(s,1)):(s=Ra(u),s.c(),j(s,1),s.m(n,r)),u[3]?a||(a=Ha(),a.c(),a.m(n,null)):a&&(a.d(1),a=null),(!i||c&32&&o!==(o="w-48 flex-none "+(u[5]==="hide"?"hidden":"hidden md:flex")))&&N(n,"class",o)},i(u){i||(j(l),j(s),i=!0)},o(u){T(l),T(s),i=!1},d(u){u&&(P(e),P(n)),l&&l.d(u),s&&s.d(),a&&a.d()}}}function gu(t){Object.keys(t.children).forEach(function(e){gu(t.children[e]),!t.children[e].label&&!t.children[e].href&&delete t.children[e]})}function bu(t){return t.children=Object.values(t.children).sort((e,n)=>{var r,o,i,l;return!isNaN((r=e.frontMatter)==null?void 0:r.sidebar_position)&&!isNaN((o=n.frontMatter)==null?void 0:o.sidebar_position)?e.frontMatter.sidebar_position-n.frontMatter.sidebar_position||e.label.localeCompare(n.label):isNaN((i=e.frontMatter)==null?void 0:i.sidebar_position)?isNaN((l=n.frontMatter)==null?void 0:l.sidebar_position)?e.label.localeCompare(n.label):1:-1}),t.children.forEach(bu),t}function Jg(t,e,n){let r;ut(t,io,S=>n(6,r=S));let{fileTree:o=void 0}=e,{title:i=void 0}=e,{logo:l=void 0}=e,{builtWithEvidence:s=void 0}=e,{hideHeader:a=!1}=e,{sidebarFrontMatter:u=void 0}=e;o=structuredClone(o),gu(o),o=bu(o);let c=o==null?void 0:o.children,{mobileSidebarOpen:f=!1}=e;xu(()=>{{let S=document.querySelector("#mobileScrollable");f?Fu(S):Ru(S)}});const d=()=>n(0,f=!1),m=()=>n(0,f=!1),p=()=>{n(0,f=!1)},g=()=>n(0,f=!1),h=()=>n(0,f=!1);return t.$$set=S=>{"fileTree"in S&&n(8,o=S.fileTree),"title"in S&&n(1,i=S.title),"logo"in S&&n(2,l=S.logo),"builtWithEvidence"in S&&n(3,s=S.builtWithEvidence),"hideHeader"in S&&n(4,a=S.hideHeader),"sidebarFrontMatter"in S&&n(5,u=S.sidebarFrontMatter),"mobileSidebarOpen"in S&&n(0,f=S.mobileSidebarOpen)},[f,i,l,s,a,u,r,c,o,d,m,p,g,h]}class Xg extends De{constructor(e){super(),Te(this,e,Jg,Gg,Ee,{fileTree:8,title:1,logo:2,builtWithEvidence:3,hideHeader:4,sidebarFrontMatter:5,mobileSidebarOpen:0})}}function qa(t,e,n){const r=t.slice();return r[4]=e[n],r}function Ua(t){let e,n="On this page",r,o,i=Qe(t[0]),l=[];for(let s=0;s1&&Ua(t);return{c(){n&&n.c(),e=re()},l(r){n&&n.l(r),e=re()},m(r,o){n&&n.m(r,o),H(r,e,o)},p(r,[o]){r[0]&&r[0].length>1?n?n.p(r,o):(n=Ua(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:Re,o:Re,d(r){r&&P(e),n&&n.d(r)}}}function Zg(t,e,n){let r=[],o;function i(){n(0,r=Array.from(document.querySelectorAll("h1.markdown, h2.markdown, h3.markdown")))}function l(){return o=new MutationObserver(()=>{i()}),r.forEach(s=>{o.observe(s,{subtree:!0,characterData:!0,childList:!0})}),o}return Xo(()=>{i(),o=l()}),Wu(()=>{o==null||o.disconnect()}),[r]}class $g extends De{constructor(e){super(),Te(this,e,Zg,Yg,Ee,{})}}function xa(t){let e,n,r;return n=new $g({}),{c(){e=x("div"),ae(n.$$.fragment),this.h()},l(o){e=W(o,"DIV",{class:!0});var i=J(e);se(n.$$.fragment,i),i.forEach(P),this.h()},h(){N(e,"class","fixed w-48 top-20 bottom-20 pl-4 px-3 overflow-auto pretty-scrollbar"),Ce(e,"top-8",t[0])},m(o,i){H(o,e,i),ue(n,e,null),r=!0},p(o,i){(!r||i&1)&&Ce(e,"top-8",o[0])},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n)}}}function eb(t){let e,n,r=!t[1]&&t[2].data.isUserPage&&xa(t);return{c(){e=x("aside"),r&&r.c(),this.h()},l(o){e=W(o,"ASIDE",{class:!0});var i=J(e);r&&r.l(i),i.forEach(P),this.h()},h(){N(e,"class","hidden lg:block w-48")},m(o,i){H(o,e,i),r&&r.m(e,null),n=!0},p(o,[i]){!o[1]&&o[2].data.isUserPage?r?(r.p(o,i),i&6&&j(r,1)):(r=xa(o),r.c(),j(r,1),r.m(e,null)):r&&(Oe(),T(r,1,1,()=>{r=null}),Se())},i(o){n||(j(r),n=!0)},o(o){T(r),n=!1},d(o){o&&P(e),r&&r.d()}}}function tb(t,e,n){let r,o;ut(t,as,l=>n(1,r=l)),ut(t,io,l=>n(2,o=l));let{hideHeader:i=!1}=e;return t.$$set=l=>{"hideHeader"in l&&n(0,i=l.hideHeader)},[i,r,o]}class nb extends De{constructor(e){super(),Te(this,e,tb,eb,Ee,{hideHeader:0})}}function Wa(t,e,n){const r=t.slice();return r[3]=e[n],r[5]=n,r}function rb(t){let e,n=t[3].title+"",r,o,i;return{c(){e=x("a"),r=je(n),o=$(),this.h()},l(l){e=W(l,"A",{href:!0,class:!0});var s=J(e);r=Ae(s,n),o=ee(s),s.forEach(P),this.h()},h(){N(e,"href",i=t[3].href),N(e,"class","hover:underline")},m(l,s){H(l,e,s),K(e,r),K(e,o)},p(l,s){s&1&&n!==(n=l[3].title+"")&&Mt(r,n),s&1&&i!==(i=l[3].href)&&N(e,"href",i)},i:Re,o:Re,d(l){l&&P(e)}}}function ob(t){let e,n,r,o;e=new En({props:{src:Lu,size:"12px",theme:"solid"}});function i(a,u){return a[3].href?lb:ib}let l=i(t),s=l(t);return{c(){ae(e.$$.fragment),n=$(),s.c(),r=re()},l(a){se(e.$$.fragment,a),n=ee(a),s.l(a),r=re()},m(a,u){ue(e,a,u),H(a,n,u),s.m(a,u),H(a,r,u),o=!0},p(a,u){l===(l=i(a))&&s?s.p(a,u):(s.d(1),s=l(a),s&&(s.c(),s.m(r.parentNode,r)))},i(a){o||(j(e.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),o=!1},d(a){a&&(P(n),P(r)),ce(e,a),s.d(a)}}}function ib(t){let e,n=t[3].title+"",r;return{c(){e=x("span"),r=je(n),this.h()},l(o){e=W(o,"SPAN",{class:!0});var i=J(e);r=Ae(i,n),i.forEach(P),this.h()},h(){N(e,"class","cursor-default")},m(o,i){H(o,e,i),K(e,r)},p(o,i){i&1&&n!==(n=o[3].title+"")&&Mt(r,n)},d(o){o&&P(e)}}}function lb(t){let e,n=t[3].title+"",r,o;return{c(){e=x("a"),r=je(n),this.h()},l(i){e=W(i,"A",{href:!0,class:!0});var l=J(e);r=Ae(l,n),l.forEach(P),this.h()},h(){N(e,"href",o=t[3].href),N(e,"class","hover:underline")},m(i,l){H(i,e,l),K(e,r)},p(i,l){l&1&&n!==(n=i[3].title+"")&&Mt(r,n),l&1&&o!==(o=i[3].href)&&N(e,"href",o)},d(i){i&&P(e)}}}function Ka(t){let e,n,r,o;const i=[ob,rb],l=[];function s(a,u){return a[5]>0?0:1}return e=s(t),n=l[e]=i[e](t),{c(){n.c(),r=re()},l(a){n.l(a),r=re()},m(a,u){l[e].m(a,u),H(a,r,u),o=!0},p(a,u){n.p(a,u)},i(a){o||(j(n),o=!0)},o(a){T(n),o=!1},d(a){a&&P(r),l[e].d(a)}}}function ab(t){let e,n,r,o=Qe(t[0]),i=[];for(let s=0;sT(i[s],1,1,()=>{i[s]=null});return{c(){e=x("div"),n=x("div");for(let s=0;si.isTemplated),!r)return null;return r}function ub(t,e){const n=[{href:"/",title:"Home"}];t.forEach((r,o)=>{r!=""&&n.push({href:"/"+t.slice(0,o+1).join("/"),title:decodeURIComponent(r.replace(/_/g," ").replace(/-/g," "))})}),n.length>3&&n.splice(1,n.length-3,{href:n.slice(-3)[0].href,title:"..."});for(const r of n){const o=sb(r.href,e);!o||!o.isPage?r.href=null:r.title=o.title??r.title}return n}function cb(t,e,n){let r,o;ut(t,io,l=>n(2,o=l));let{fileTree:i}=e;return t.$$set=l=>{"fileTree"in l&&n(1,i=l.fileTree)},t.$$.update=()=>{t.$$.dirty&6&&n(0,r=ub(o.url.pathname.split("/").slice(1),i))},[r,i,o]}class fb extends De{constructor(e){super(),Te(this,e,cb,ab,Ee,{fileTree:1})}}function za(t){let e,n,r,o="Error",i,l,s,a,u,c='docs slack email',f,d,m;return{c(){e=x("div"),n=x("div"),r=x("h1"),r.textContent=o,i=$(),l=x("p"),s=je(t[1]),a=$(),u=x("div"),u.innerHTML=c,this.h()},l(p){e=W(p,"DIV",{class:!0});var g=J(e);n=W(g,"DIV",{class:!0});var h=J(n);r=W(h,"H1",{class:!0,"data-svelte-h":!0}),St(r)!=="svelte-2bfyuv"&&(r.textContent=o),i=ee(h),l=W(h,"P",{class:!0});var S=J(l);s=Ae(S,t[1]),S.forEach(P),a=ee(h),u=W(h,"DIV",{class:!0,"data-svelte-h":!0}),St(u)!=="svelte-1qoirto"&&(u.innerHTML=c),h.forEach(P),g.forEach(P),this.h()},h(){N(r,"class","text-2xl font-bold tracking-wide text-gray-200 border-b pb-4 border-gray-800"),N(l,"class","text-xl text-gray-200 mt-6 leading-relaxed select-text"),N(u,"class","absolute bottom-0 flex items-end gap-4 text-lg mb-6"),N(n,"class","relative min-w-full h-screen bg-gradient-to-b from-black/95 to-gray-900/90 border-t-red-600 rounded-lg border-t-8 border-red-600 shadow-xl p-8"),N(e,"class","fixed flex flex-col z-50 h-screen w-screen bg-gray-900/80 justify-center items-center py-20 px-10 sm:px-20 select-none backdrop-blur-sm")},m(p,g){H(p,e,g),K(e,n),K(n,r),K(n,i),K(n,l),K(l,s),K(n,a),K(n,u),m=!0},p(p,g){(!m||g&2)&&Mt(s,p[1])},i(p){m||(p&&Dt(()=>{m&&(f||(f=Ht(n,lr,{y:100,duration:300},!0)),f.run(1))}),p&&Dt(()=>{m&&(d||(d=Ht(e,ar,{duration:100},!0)),d.run(1))}),m=!0)},o(p){p&&(f||(f=Ht(n,lr,{y:100,duration:300},!1)),f.run(0)),p&&(d||(d=Ht(e,ar,{duration:100},!1)),d.run(0)),m=!1},d(p){p&&P(e),p&&f&&f.end(),p&&d&&d.end()}}}function db(t){let e,n=t[0]&&za(t);return{c(){n&&n.c(),e=re()},l(r){n&&n.l(r),e=re()},m(r,o){n&&n.m(r,o),H(r,e,o)},p(r,[o]){r[0]?n?(n.p(r,o),o&1&&j(n,1)):(n=za(r),n.c(),j(n,1),n.m(e.parentNode,e)):n&&(Oe(),T(n,1,1,()=>{n=null}),Se())},i(r){j(n)},o(r){T(n)},d(r){r&&P(e),n&&n.d(r)}}}function mb(t,e,n){return[!1,void 0]}class hb extends De{constructor(e){super(),Te(this,e,mb,db,Ee,{})}}const pb=t=>({}),Qa=t=>({});function Ga(t){let e,n,r;function o(l){t[25](l)}let i={title:t[0],logo:t[1],neverShowQueries:t[2],fullWidth:t[3],maxWidth:t[10],hideSidebar:t[4],githubRepo:t[7],slackCommunity:t[9],xProfile:t[8],algolia:t[6],sidebarFrontMatter:t[14]};return t[17]!==void 0&&(i.mobileSidebarOpen=t[17]),e=new pg({props:i}),pt.push(()=>ls(e,"mobileSidebarOpen",o)),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,s){ue(e,l,s),r=!0},p(l,s){const a={};s&1&&(a.title=l[0]),s&2&&(a.logo=l[1]),s&4&&(a.neverShowQueries=l[2]),s&8&&(a.fullWidth=l[3]),s&1024&&(a.maxWidth=l[10]),s&16&&(a.hideSidebar=l[4]),s&128&&(a.githubRepo=l[7]),s&512&&(a.slackCommunity=l[9]),s&256&&(a.xProfile=l[8]),s&64&&(a.algolia=l[6]),s&16384&&(a.sidebarFrontMatter=l[14]),!n&&s&131072&&(n=!0,a.mobileSidebarOpen=l[17],is(()=>n=!1)),e.$set(a)},i(l){r||(j(e.$$.fragment,l),r=!0)},o(l){T(e.$$.fragment,l),r=!1},d(l){ce(e,l)}}}function Ja(t){let e,n,r,o;function i(s){t[26](s)}let l={fileTree:t[19],title:t[0],logo:t[1],builtWithEvidence:t[5],hideHeader:t[12],sidebarFrontMatter:t[14]};return t[17]!==void 0&&(l.mobileSidebarOpen=t[17]),n=new Xg({props:l}),pt.push(()=>ls(n,"mobileSidebarOpen",i)),{c(){e=x("div"),ae(n.$$.fragment),this.h()},l(s){e=W(s,"DIV",{class:!0});var a=J(e);se(n.$$.fragment,a),a.forEach(P),this.h()},h(){N(e,"class","print:hidden")},m(s,a){H(s,e,a),ue(n,e,null),o=!0},p(s,a){const u={};a&1&&(u.title=s[0]),a&2&&(u.logo=s[1]),a&32&&(u.builtWithEvidence=s[5]),a&4096&&(u.hideHeader=s[12]),a&16384&&(u.sidebarFrontMatter=s[14]),!r&&a&131072&&(r=!0,u.mobileSidebarOpen=s[17],is(()=>r=!1)),n.$set(u)},i(s){o||(j(n.$$.fragment,s),o=!0)},o(s){T(n.$$.fragment,s),o=!1},d(s){s&&P(e),ce(n)}}}function Xa(t){let e,n,r=t[15].route.id!=="/settings"&&Ya(t);return{c(){e=x("div"),r&&r.c(),this.h()},l(o){e=W(o,"DIV",{class:!0});var i=J(e);r&&r.l(i),i.forEach(P),this.h()},h(){N(e,"class","print:hidden")},m(o,i){H(o,e,i),r&&r.m(e,null),n=!0},p(o,i){o[15].route.id!=="/settings"?r?(r.p(o,i),i&32768&&j(r,1)):(r=Ya(o),r.c(),j(r,1),r.m(e,null)):r&&(Oe(),T(r,1,1,()=>{r=null}),Se())},i(o){n||(j(r),n=!0)},o(o){T(r),n=!1},d(o){o&&P(e),r&&r.d()}}}function Ya(t){let e,n;return e=new fb({props:{fileTree:t[19]}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p:Re,i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function gb(t){let e,n;return e=new _g({}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p:Re,i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function bb(t){let e,n;const r=t[24].content,o=Fe(r,t,t[23],Qa);return{c(){e=x("article"),o&&o.c(),this.h()},l(i){e=W(i,"ARTICLE",{id:!0,class:!0});var l=J(e);o&&o.l(l),l.forEach(P),this.h()},h(){N(e,"id","evidence-main-article"),N(e,"class","select-text markdown pb-10")},m(i,l){H(i,e,l),o&&o.m(e,null),n=!0},p(i,l){o&&o.p&&(!n||l&8388608)&&Le(o,r,i,i[23],n?He(r,i[23],l,pb):Be(i[23]),Qa)},i(i){n||(j(o,i),n=!0)},o(i){T(o,i),n=!1},d(i){i&&P(e),o&&o.d(i)}}}function Za(t){let e,n,r;return n=new nb({props:{hideHeader:t[12]}}),{c(){e=x("div"),ae(n.$$.fragment),this.h()},l(o){e=W(o,"DIV",{class:!0});var i=J(e);se(n.$$.fragment,i),i.forEach(P),this.h()},h(){N(e,"class","print:hidden")},m(o,i){H(o,e,i),ue(n,e,null),r=!0},p(o,i){const l={};i&4096&&(l.hideHeader=o[12]),n.$set(l)},i(o){r||(j(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&P(e),ce(n)}}}function $a(t){let e,n;return e=new bg({}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function vb(t){let e,n,r,o,i,l,s,a,u,c,f,d,m,p,g,h,S,I=!t[16]&&Hr&&!t[15].url.pathname.startsWith("/settings"),E,A;const v=t[24].default,C=Fe(v,t,t[23],null);n=new dm({}),i=new hb({});let w=!t[12]&&Ga(t),M=!t[4]&&t[14]!=="never"&&Ja(t),F=!t[11]&&Xa(t);const B=[bb,gb],q=[];function O(_,L){return _[16]?1:0}d=O(t),m=q[d]=B[d](t);let b=!t[13]&&Za(t),y=I&&$a();return{c(){C&&C.c(),e=$(),ae(n.$$.fragment),r=$(),o=x("div"),ae(i.$$.fragment),l=$(),w&&w.c(),s=$(),a=x("div"),M&&M.c(),u=$(),c=x("main"),F&&F.c(),f=$(),m.c(),g=$(),b&&b.c(),S=$(),y&&y.c(),E=re(),this.h()},l(_){C&&C.l(_),e=ee(_),se(n.$$.fragment,_),r=ee(_),o=W(_,"DIV",{"data-sveltekit-preload-data":!0,class:!0});var L=J(o);se(i.$$.fragment,L),l=ee(L),w&&w.l(L),s=ee(L),a=W(L,"DIV",{class:!0,style:!0});var G=J(a);M&&M.l(G),u=ee(G),c=W(G,"MAIN",{class:!0});var D=J(c);F&&F.l(D),f=ee(D),m.l(D),D.forEach(P),g=ee(G),b&&b.l(G),G.forEach(P),L.forEach(P),S=ee(_),y&&y.l(_),E=re(),this.h()},h(){N(c,"class",p=(t[4]?"":"md:pl-8 ")+(t[13]?"":"md:pr-8 ")+(t[12]?t[11]?" mt-4 sm:mt-[26px] ":" mt-4 sm:mt-8 ":t[11]?" mt-16 sm:mt-[74px] ":" mt-16 sm:mt-20 ")+"flex-grow overflow-x-hidden print:px-0 print:mt-8"),N(a,"class",h=(t[3]?"max-w-full ":t[10]?"":" max-w-7xl ")+"print:w-[650px] print:md:w-[841px] mx-auto print:md:px-0 print:px-0 px-6 sm:px-8 md:px-12 flex justify-start"),Ur(a,"max-width",t[10]+"px"),N(o,"data-sveltekit-preload-data",t[18]),N(o,"class","antialiased text-gray-900")},m(_,L){C&&C.m(_,L),H(_,e,L),ue(n,_,L),H(_,r,L),H(_,o,L),ue(i,o,null),K(o,l),w&&w.m(o,null),K(o,s),K(o,a),M&&M.m(a,null),K(a,u),K(a,c),F&&F.m(c,null),K(c,f),q[d].m(c,null),K(a,g),b&&b.m(a,null),H(_,S,L),y&&y.m(_,L),H(_,E,L),A=!0},p(_,[L]){C&&C.p&&(!A||L&8388608)&&Le(C,v,_,_[23],A?He(v,_[23],L,null):Be(_[23]),null),_[12]?w&&(Oe(),T(w,1,1,()=>{w=null}),Se()):w?(w.p(_,L),L&4096&&j(w,1)):(w=Ga(_),w.c(),j(w,1),w.m(o,s)),!_[4]&&_[14]!=="never"?M?(M.p(_,L),L&16400&&j(M,1)):(M=Ja(_),M.c(),j(M,1),M.m(a,u)):M&&(Oe(),T(M,1,1,()=>{M=null}),Se()),_[11]?F&&(Oe(),T(F,1,1,()=>{F=null}),Se()):F?(F.p(_,L),L&2048&&j(F,1)):(F=Xa(_),F.c(),j(F,1),F.m(c,f));let G=d;d=O(_),d===G?q[d].p(_,L):(Oe(),T(q[G],1,1,()=>{q[G]=null}),Se(),m=q[d],m?m.p(_,L):(m=q[d]=B[d](_),m.c()),j(m,1),m.m(c,null)),(!A||L&14352&&p!==(p=(_[4]?"":"md:pl-8 ")+(_[13]?"":"md:pr-8 ")+(_[12]?_[11]?" mt-4 sm:mt-[26px] ":" mt-4 sm:mt-8 ":_[11]?" mt-16 sm:mt-[74px] ":" mt-16 sm:mt-20 ")+"flex-grow overflow-x-hidden print:px-0 print:mt-8"))&&N(c,"class",p),_[13]?b&&(Oe(),T(b,1,1,()=>{b=null}),Se()):b?(b.p(_,L),L&8192&&j(b,1)):(b=Za(_),b.c(),j(b,1),b.m(a,null)),(!A||L&1032&&h!==(h=(_[3]?"max-w-full ":_[10]?"":" max-w-7xl ")+"print:w-[650px] print:md:w-[841px] mx-auto print:md:px-0 print:px-0 px-6 sm:px-8 md:px-12 flex justify-start"))&&N(a,"class",h),(!A||L&1024)&&Ur(a,"max-width",_[10]+"px"),L&98304&&(I=!_[16]&&Hr&&!_[15].url.pathname.startsWith("/settings")),I?y?L&98304&&j(y,1):(y=$a(),y.c(),j(y,1),y.m(E.parentNode,E)):y&&(Oe(),T(y,1,1,()=>{y=null}),Se())},i(_){A||(j(C,_),j(n.$$.fragment,_),j(i.$$.fragment,_),j(w),j(M),j(F),j(m),j(b),j(y),A=!0)},o(_){T(C,_),T(n.$$.fragment,_),T(i.$$.fragment,_),T(w),T(M),T(F),T(m),T(b),T(y),A=!1},d(_){_&&(P(e),P(r),P(o),P(S),P(E)),C&&C.d(_),ce(n,_),ce(i),w&&w.d(),M&&M.d(),F&&F.d(),q[d].d(),b&&b.d(),y&&y.d(_)}}}function _b(t){const e=new Map;function n(r){if(r){if(r.href){const o=decodeURI(r.href);e.set(o,r)}Object.values(r.children).forEach(n)}}return n(t),e}function yb(t,e,n){let r,o,i,l,s;ut(t,io,y=>n(15,l=y)),ut(t,as,y=>n(16,s=y));let{$$slots:a={},$$scope:u}=e;{const y=document.getElementById("__evidence_project_splash");y==null||y.remove()}let{data:c}=e,{title:f=void 0}=e,{logo:d=void 0}=e,{neverShowQueries:m=!1}=e,{fullWidth:p=!1}=e,{hideSidebar:g=!1}=e,{builtWithEvidence:h=!1}=e,{algolia:S=void 0}=e,{githubRepo:I=void 0}=e,{xProfile:E=void 0}=e,{slackCommunity:A=void 0}=e,{maxWidth:v=void 0}=e,{hideBreadcrumbs:C=!1}=e,{hideHeader:w=!1}=e,{hideTOC:M=!1}=e;const F="hover";let B=!1,q=c==null?void 0:c.pagesManifest;function O(y){B=y,n(17,B),n(16,s)}function b(y){B=y,n(17,B),n(16,s)}return t.$$set=y=>{"data"in y&&n(20,c=y.data),"title"in y&&n(0,f=y.title),"logo"in y&&n(1,d=y.logo),"neverShowQueries"in y&&n(2,m=y.neverShowQueries),"fullWidth"in y&&n(3,p=y.fullWidth),"hideSidebar"in y&&n(4,g=y.hideSidebar),"builtWithEvidence"in y&&n(5,h=y.builtWithEvidence),"algolia"in y&&n(6,S=y.algolia),"githubRepo"in y&&n(7,I=y.githubRepo),"xProfile"in y&&n(8,E=y.xProfile),"slackCommunity"in y&&n(9,A=y.slackCommunity),"maxWidth"in y&&n(10,v=y.maxWidth),"hideBreadcrumbs"in y&&n(11,C=y.hideBreadcrumbs),"hideHeader"in y&&n(12,w=y.hideHeader),"hideTOC"in y&&n(13,M=y.hideTOC),"$$scope"in y&&n(23,u=y.$$scope)},t.$$.update=()=>{var y;t.$$.dirty&65536&&s&&n(17,B=!1),t.$$.dirty&4227072&&n(21,o=(y=r.get(l.route.id))==null?void 0:y.frontMatter),t.$$.dirty&2097152&&n(14,i=o==null?void 0:o.sidebar),t.$$.dirty&16384&&(["show","hide","never"].includes(i)||n(14,i=void 0))},n(22,r=_b(q)),[f,d,m,p,g,h,S,I,E,A,v,C,w,M,i,l,s,B,F,q,c,o,r,u,a,O,b]}class wb extends De{constructor(e){super(),Te(this,e,yb,vb,Ee,{data:20,title:0,logo:1,neverShowQueries:2,fullWidth:3,hideSidebar:4,builtWithEvidence:5,algolia:6,githubRepo:7,xProfile:8,slackCommunity:9,maxWidth:10,hideBreadcrumbs:11,hideHeader:12,hideTOC:13})}}const Ob=t=>({}),es=t=>({slot:"content"});function Sb(t){let e;const n=t[1].default,r=Fe(n,t,t[2],es);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,i){r&&r.m(o,i),e=!0},p(o,i){r&&r.p&&(!e||i&4)&&Le(r,n,o,o[2],e?He(n,o[2],i,Ob):Be(o[2]),es)},i(o){e||(j(r,o),e=!0)},o(o){T(r,o),e=!1},d(o){r&&r.d(o)}}}function kb(t){let e,n;return e=new wb({props:{data:t[0],hideSidebar:!0,hideHeader:!0,hideBreadcrumbs:!0,hideTOC:!0,fullWidth:!0,$$slots:{content:[Sb]},$$scope:{ctx:t}}}),{c(){ae(e.$$.fragment)},l(r){se(e.$$.fragment,r)},m(r,o){ue(e,r,o),n=!0},p(r,[o]){const i={};o&1&&(i.data=r[0]),o&4&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(r){n||(j(e.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),n=!1},d(r){ce(e,r)}}}function Eb(t,e,n){let{$$slots:r={},$$scope:o}=e,{data:i}=e;return t.$$set=l=>{"data"in l&&n(0,i=l.data),"$$scope"in l&&n(2,o=l.$$scope)},[i,r,o]}class Bb extends De{constructor(e){super(),Te(this,e,Eb,kb,Ee,{data:0})}}export{Bb as component,Fb as universal};