diff --git a/api/polkadot_api/index.html b/api/polkadot_api/index.html index 0d9470d2..806000a8 100644 --- a/api/polkadot_api/index.html +++ b/api/polkadot_api/index.html @@ -12,7 +12,7 @@ - + diff --git a/assets/codegen-Det_RrnB.js b/assets/codegen-BW4i6VDI.js similarity index 99% rename from assets/codegen-Det_RrnB.js rename to assets/codegen-BW4i6VDI.js index 99dc5fc9..e91643bb 100644 --- a/assets/codegen-Det_RrnB.js +++ b/assets/codegen-BW4i6VDI.js @@ -1,4 +1,4 @@ -import{u as l,j as s}from"./index-Cembn_Rf.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as l,j as s}from"./index-CPfmyVul.js";const r={title:"Codegen",description:"undefined"};function n(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"codegen",children:["Codegen",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#codegen",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"Technically, to connect to a chain, all you need is just the provider. But to interact with it, you need to know the list of storage, runtime, and transaction calls and their types."}),` `,s.jsx(e.p,{children:"During runtime, the library can request the metadata for the chain it's connected to, and from this, it generates all the codecs to interact with it. But as a developer, you need to get that information beforehand."}),` `,s.jsx(e.p,{children:"Polkadot-API has a CLI that downloads the metadata for a chain and then uses that metadata to generate all the type descriptors."}),` diff --git a/assets/example-CH3MJilx.js b/assets/example-DRNFoU1P.js similarity index 89% rename from assets/example-CH3MJilx.js rename to assets/example-DRNFoU1P.js index 51b9809b..504db609 100644 --- a/assets/example-CH3MJilx.js +++ b/assets/example-DRNFoU1P.js @@ -1,2 +1,2 @@ -import{u as r,j as e}from"./index-Cembn_Rf.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as r,j as e}from"./index-CPfmyVul.js";const i={title:"Example",description:"undefined"};function a(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"example",children:["Example",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#example",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"Example"})]})}function o(t={}){const{wrapper:n}={...r(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(a,{...t})}):a(t)}export{o as default,i as frontmatter}; diff --git a/assets/getting-started-BreGu7mS.js b/assets/getting-started-DftFCEeX.js similarity index 99% rename from assets/getting-started-BreGu7mS.js rename to assets/getting-started-DftFCEeX.js index 0e97001e..2d278fe6 100644 --- a/assets/getting-started-BreGu7mS.js +++ b/assets/getting-started-DftFCEeX.js @@ -1,4 +1,4 @@ -import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-Cembn_Rf.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{j as s,$ as t,a as h,b as k,c as p,u as o}from"./index-CPfmyVul.js";const a=({options:i,children:e})=>s.jsxs(t,{className:"Tabs__root border rounded bg-[--vocs-color_codeBlockBackground] border-[--vocs-color_codeInlineBorder]",defaultValue:Object.keys(i)[0],children:[s.jsx(h,{className:"Tabs__list flex flex-wrap px-2 bg-[--vocs-color_codeTitleBackground]",children:Object.entries(i).map(([r,d])=>s.jsx(k,{className:"text-sm p-3 pb-2 text-[--vocs-color_text3] border-b border-transparent hover:text-[--vocs-color_text] [&[data-state='active']]:text-[--vocs-color_text] [&[data-state='active']]:border-[--vocs-color_borderAccent]",value:r,children:d},r))}),e]}),l=i=>s.jsx(p,{...i}),x=Object.freeze(Object.defineProperty({__proto__:null,Content:l,Root:a},Symbol.toStringTag,{value:"Module"})),y={title:"Getting Started",description:"undefined"};function c(i){const e={a:"a",aside:"aside",code:"code",div:"div",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",...o(),...i.components};return x||n("Tabs",!1),l||n("Tabs.Content",!0),a||n("Tabs.Root",!0),s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"getting-started",children:["Getting Started",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#getting-started",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsxs(e.p,{children:["Start by installing ",s.jsx(e.code,{children:"polkadot-api"})," and ",s.jsx(e.code,{children:"@polkadot-api/descriptors"})]}),` `,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsx(e.code,{children:s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"npm"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" i"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" polkadot-api"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" @polkadot-api/descriptors"})]})})}),` `,s.jsx(e.p,{children:"Next, download the latest metadata from the chain you want to connect to and generate the types:"}),` diff --git a/assets/index-DnXsKHcI.js b/assets/index-Bv4rNZZp.js similarity index 98% rename from assets/index-DnXsKHcI.js rename to assets/index-Bv4rNZZp.js index 5b803e01..8efd9a82 100644 --- a/assets/index-DnXsKHcI.js +++ b/assets/index-Bv4rNZZp.js @@ -1 +1 @@ -import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-Cembn_Rf.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; +import{j as e,L as b,d as s,e as _,f as P,R as y,g as N,T as r,C as l,u as j}from"./index-CPfmyVul.js";var H="vocs_Button_button",w="vocs_Button_button_accent";function k({children:t,className:n,href:i,variant:v}){return e.jsx(b,{className:s(n,H,v==="accent"&&w),href:i,variant:"styleless",children:t})}var L="vocs_HomePage_button",C="vocs_HomePage_buttons",M="vocs_HomePage_description",B="vocs_HomePage_logo",c="vocs_HomePage_packageManager",I="vocs_HomePage",D="vocs_HomePage_tabs",d="vocs_HomePage_tabsContent",R="vocs_HomePage_tabsList",T="vocs_HomePage_tagline",$="vocs_HomePage_title";function m({children:t,className:n}){return e.jsx("div",{className:s(n,I),children:t})}function h({className:t}){const{logoUrl:n,title:i}=_();return n?e.jsx("div",{className:s(t,B),children:e.jsx(P,{})}):e.jsx("h1",{className:s(t,$),children:i})}function A({children:t,className:n}){return e.jsx("div",{className:s(n,T),children:t})}function x({children:t,className:n}){return e.jsx("div",{className:s(n,M),children:t})}function g({children:t,className:n}){return e.jsx("div",{className:s(n,C),children:t})}function o(t){return e.jsx(k,{...t,className:s(L,t.className)})}function f({name:t,type:n="install"}){return e.jsxs(y,{className:D,defaultValue:"npm",children:[e.jsxs(N,{className:R,children:[e.jsx(r,{value:"npm",children:"npm"}),e.jsx(r,{value:"pnpm",children:"pnpm"}),e.jsx(r,{value:"yarn",children:"yarn"})]}),e.jsxs(l,{className:d,value:"npm",children:[e.jsx("span",{className:c,children:"npm"})," ",n==="init"?"init":"install"," ",t]}),e.jsxs(l,{className:d,value:"pnpm",children:[e.jsx("span",{className:c,children:"pnpm"})," ",n==="init"?"create":"install"," ",t]}),e.jsxs(l,{className:d,value:"yarn",children:[e.jsx("span",{className:c,children:"yarn"})," ",n==="init"?"create":"install"," ",t]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,Button:o,Buttons:g,Description:x,InstallPackage:f,Logo:h,Root:m,Tagline:A},Symbol.toStringTag,{value:"Module"})),u=({title:t,children:n})=>e.jsxs("div",{className:"w-full border rounded border-gray-500 p-4 text-left",children:[e.jsx("div",{className:"text-[--vocs-color_heading] text-lg py-2 font-bold",children:t}),e.jsx("div",{children:n})]}),O={layout:"landing",content:{width:"60rem"}};function p(t){const n={p:"p",...j(),...t.components};return E||a("HomePage",!1),o||a("HomePage.Button",!0),g||a("HomePage.Buttons",!0),x||a("HomePage.Description",!0),f||a("HomePage.InstallPackage",!0),h||a("HomePage.Logo",!0),m||a("HomePage.Root",!0),e.jsxs(m,{children:[e.jsxs("div",{className:"flex justify-between w-full flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx(h,{}),e.jsx(x,{children:"Typescript API to interact with Polkadot chains."}),e.jsxs(g,{className:"py-2",children:[e.jsx(o,{href:"/getting-started",variant:"accent",children:"Get started"}),e.jsx(o,{href:"https://github.com/polkadot-api/polkadot-api",children:"GitHub"})]})]}),e.jsx(f,{name:"polkadot-api",type:"i"})]}),e.jsxs("div",{className:"flex gap-2 flex-col md:flex-row mt-8",children:[e.jsx(u,{title:"Light client first",children:e.jsx(n.p,{children:"Built from the ground up for the light client, allowing the running of a node from the browser."})}),e.jsx(u,{title:"Fully typed API",children:e.jsx(n.p,{children:"IDEs show all the type information for every operation of a chain."})}),e.jsx(u,{title:"Lightweight",children:e.jsx(n.p,{children:"Minimal impact on the main bundle (under 50kB)."})})]}),e.jsxs("div",{className:"text-left w-full max-w-2xl p-2",children:[e.jsx("h2",{className:"text-[--vocs-color_heading] text-3xl py-4 border-b border-gray-500 mb-4",children:"Features"}),e.jsxs("ul",{className:"list-disc pl-5",children:[e.jsx("li",{children:"Connect to the chain through a light client, a WebSocket connection, or an extension."}),e.jsx("li",{children:"Perform storage queries or runtime calls."}),e.jsx("li",{children:"Generate the types of a chain through its current metadata."}),e.jsx("li",{children:"Compatibility checks."}),e.jsx("li",{children:"Multiple connections to different chains."}),e.jsx("li",{children:"Transaction API in read-only and read/write mode."}),e.jsx("li",{children:"Promise-based or Observable-based API for your needs."})]})]})]})}function S(t={}){const{wrapper:n}={...j(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(p,{...t})}):p(t)}function a(t,n){throw new Error("Expected "+(n?"component":"object")+" `"+t+"` to be defined: you likely forgot to import, pass, or provide it.")}export{S as default,O as frontmatter}; diff --git a/assets/index-Cembn_Rf.js b/assets/index-CPfmyVul.js similarity index 93% rename from assets/index-Cembn_Rf.js rename to assets/index-CPfmyVul.js index 95d03c2c..320ec30a 100644 --- a/assets/index-Cembn_Rf.js +++ b/assets/index-CPfmyVul.js @@ -34,10 +34,10 @@ function Du(e,t){for(var n=0;nl||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{us=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xo(e):""}function Zy(e){switch(e.tag){case 5:return Xo(e.type);case 16:return Xo("Lazy");case 13:return Xo("Suspense");case 19:return Xo("SuspenseList");case 0:case 2:case 15:return e=fs(e.type,!1),e;case 11:return e=fs(e.type.render,!1),e;case 1:return e=fs(e.type,!0),e;default:return""}}function hc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case Br:return"Portal";case uc:return"Profiler";case Ku:return"StrictMode";case fc:return"Suspense";case dc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cv:return(e.displayName||"Context")+".Consumer";case xv:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:hc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return hc(e(t))}catch{}}return null}function Xy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hc(t);case 8:return t===Ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jy(e){var t=_v(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=Jy(e))}function Sv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_v(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function vc(e,t){bv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mc(e,t.type,n):t.hasOwnProperty("defaultValue")&&mc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Td(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=Array.isArray;function to(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qy=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){qy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]})});function Rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ni.hasOwnProperty(e)&&ni[e]?(""+t).trim():t+"px"}function Nv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var e2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wc(e,t){if(t){if(e2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function xc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ec=null,no=null,ro=null;function Nd(e){if(e=zi(e)){if(typeof Ec!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Pl(t),Ec(e.stateNode,e.type,t))}}function Pv(e){no?ro?ro.push(e):ro=[e]:no=e}function Av(){if(no){var e=no,t=ro;if(ro=no=null,Nd(e),t)for(e=0;e>>=0,e===0?32:31-(f2(e)/d2|0)|0}var na=64,ra=4194304;function qo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Za(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=qo(l):(i&=a,i!==0&&(r=qo(i)))}else a=n&~o,a!==0?r=qo(a):i!==0&&(r=qo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function m2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=oi),Fd=" ",zd=!1;function Jv(e,t){switch(e){case"keyup":return V2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function K2(e,t){switch(e){case"compositionend":return qv(t);case"keypress":return t.which!==32?null:(zd=!0,Fd);case"textInput":return e=t.data,e===Fd&&zd?null:e;default:return null}}function Y2(e,t){if(Hr)return e==="compositionend"||!rf&&Jv(e,t)?(e=Zv(),Pa=ef=Mn=null,Hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vd(n)}}function rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function om(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nw(e){var t=om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&of(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Wd(n,i);var a=Wd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vr=null,kc=null,ai=null,Rc=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&of(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ai&&wi(ai,r)||(ai=r,r=qa(kc,"onSelect"),0Yr||(e.current=Lc[Yr],Lc[Yr]=null,Yr--)}function ve(e,t){Yr++,Lc[Yr]=e.current,e.current=t}var Yn={},rt=er(Yn),mt=er(!1),mr=Yn;function fo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function tl(){ge(mt),ge(rt)}function qd(e,t,n){if(rt.current!==Yn)throw Error(M(168));ve(rt,t),ve(mt,n)}function hm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,Xy(e)||"Unknown",o));return ke({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,mr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function eh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=hm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Al=!1,bs=!1;function pm(e){sn===null?sn=[e]:sn.push(e)}function pw(e){Al=!0,pm(e)}function tr(){if(!bs&&sn!==null){bs=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(k=b,b=null):k=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=k);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P,b=k}if($===x.length)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;$$?(k=b,b=null):k=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=k);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),_===null?S=j:_.sibling=j,_=j,b=k}if(P.done)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;!P.done;$++,P=x.next())P=u(v,P.value,E),P!==null&&(m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return _e&&ir(v,$),S}for(b=r(v,b);!P.done;$++,P=x.next())P=p(b,v,$,P.value,E),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?$:P.key),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return e&&b.forEach(function(L){return t(v,L)}),_e&&ir(v,$),S}function C(v,m,x,E){if(typeof x=="object"&&x!==null&&x.type===Ur&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case qi:e:{for(var S=x.key,_=m;_!==null;){if(_.key===S){if(S=x.type,S===Ur){if(_.tag===7){n(v,_.sibling),m=o(_,x.props.children),m.return=v,v=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&lh(S)===_.type){n(v,_.sibling),m=o(_,x.props),m.ref=Fo(v,_,x),m.return=v,v=m;break e}n(v,_);break}else t(v,_);_=_.sibling}x.type===Ur?(m=pr(x.props.children,v.mode,E,x.key),m.return=v,v=m):(E=Fa(x.type,x.key,x.props,null,v.mode,E),E.ref=Fo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(_=x.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(v,m.sibling),m=o(m,x.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Os(x,v.mode,E),m.return=v,v=m}return a(v);case An:return _=x._init,C(v,m,_(x._payload),E)}if(Jo(x))return y(v,m,x,E);if(Io(x))return g(v,m,x,E);ua(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,x),m.return=v,v=m):(n(v,m),m=As(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=Em(!0),_m=Em(!1),Bi={},tn=er(Bi),_i=er(Bi),Si=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function pf(e,t){switch(ve(Si,t),ve(_i,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(_i),ge(Si)}function Sm(e){cr(Si.current);var t=cr(tn.current),n=yc(t,e.type);t!==n&&(ve(_i,e),ve(tn,n))}function vf(e){_i.current===e&&(ge(tn),ge(_i))}var $e=er(0);function sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $s=[];function mf(){for(var e=0;e<$s.length;e++)$s[e]._workInProgressVersionPrimary=null;$s.length=0}var Ia=xn.ReactCurrentDispatcher,Ts=xn.ReactCurrentBatchConfig,yr=0,Te=null,De=null,We=null,cl=!1,li=!1,bi=0,mw=0;function qe(){throw Error(M(321))}function gf(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{ue=n,Ts.transition=r}}function zm(){return Lt().memoizedState}function yw(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bm(e))Um(t,n);else if(n=ym(e,t,n,r),n!==null){var o=lt();Kt(n,e,r,o),Hm(n,t,r)}}function ww(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bm(e))Um(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Yt(l,a)){var s=t.interleaved;s===null?(o.next=o,df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ym(e,t,o,r),n!==null&&(o=lt(),Kt(n,e,r,o),Hm(n,t,r))}}function Bm(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Um(e,t){li=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}var ul={readContext:It,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},xw={readContext:It,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,La(4194308,4,Lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yw.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:Cf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=gw.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(_e){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ke===null)throw Error(M(349));yr&30||Tm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ch(Rm.bind(null,r,i,e),[e]),r.flags|=2048,Ti(9,km.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(_e){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bi++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{us=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xo(e):""}function Zy(e){switch(e.tag){case 5:return Xo(e.type);case 16:return Xo("Lazy");case 13:return Xo("Suspense");case 19:return Xo("SuspenseList");case 0:case 2:case 15:return e=fs(e.type,!1),e;case 11:return e=fs(e.type.render,!1),e;case 1:return e=fs(e.type,!0),e;default:return""}}function hc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ur:return"Fragment";case Br:return"Portal";case uc:return"Profiler";case Ku:return"StrictMode";case fc:return"Suspense";case dc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cv:return(e.displayName||"Context")+".Consumer";case xv:return(e._context.displayName||"Context")+".Provider";case Yu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gu:return t=e.displayName||null,t!==null?t:hc(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return hc(e(t))}catch{}}return null}function Xy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hc(t);case 8:return t===Ku?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jy(e){var t=_v(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=Jy(e))}function Sv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_v(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pc(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bv(e,t){t=t.checked,t!=null&&Wu(e,"checked",t,!1)}function vc(e,t){bv(e,t);var n=Kn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mc(e,t.type,n):t.hasOwnProperty("defaultValue")&&mc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Td(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jo=Array.isArray;function to(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qy=["Webkit","ms","Moz","O"];Object.keys(ni).forEach(function(e){qy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ni[t]=ni[e]})});function Rv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ni.hasOwnProperty(e)&&ni[e]?(""+t).trim():t+"px"}function Nv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Rv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var e2=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wc(e,t){if(t){if(e2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function xc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cc=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ec=null,no=null,ro=null;function Nd(e){if(e=zi(e)){if(typeof Ec!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Pl(t),Ec(e.stateNode,e.type,t))}}function Pv(e){no?ro?ro.push(e):ro=[e]:no=e}function Av(){if(no){var e=no,t=ro;if(ro=no=null,Nd(e),t)for(e=0;e>>=0,e===0?32:31-(f2(e)/d2|0)|0}var na=64,ra=4194304;function qo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Za(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=qo(l):(i&=a,i!==0&&(r=qo(i)))}else a=n&~o,a!==0?r=qo(a):i!==0&&(r=qo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function m2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=oi),Fd=" ",zd=!1;function Jv(e,t){switch(e){case"keyup":return V2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function K2(e,t){switch(e){case"compositionend":return qv(t);case"keypress":return t.which!==32?null:(zd=!0,Fd);case"textInput":return e=t.data,e===Fd&&zd?null:e;default:return null}}function Y2(e,t){if(Hr)return e==="compositionend"||!rf&&Jv(e,t)?(e=Zv(),Pa=ef=Mn=null,Hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vd(n)}}function rm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function om(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function n3(e){var t=om(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rm(n.ownerDocument.documentElement,n)){if(r!==null&&of(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Wd(n,i);var a=Wd(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vr=null,kc=null,ai=null,Rc=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rc||Vr==null||Vr!==Ka(r)||(r=Vr,"selectionStart"in r&&of(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ai&&wi(ai,r)||(ai=r,r=qa(kc,"onSelect"),0Yr||(e.current=Lc[Yr],Lc[Yr]=null,Yr--)}function ve(e,t){Yr++,Lc[Yr]=e.current,e.current=t}var Yn={},rt=er(Yn),mt=er(!1),mr=Yn;function fo(e,t){var n=e.type.contextTypes;if(!n)return Yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function tl(){ge(mt),ge(rt)}function qd(e,t,n){if(rt.current!==Yn)throw Error(M(168));ve(rt,t),ve(mt,n)}function hm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,Xy(e)||"Unknown",o));return ke({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yn,mr=rt.current,ve(rt,e),ve(mt,mt.current),!0}function eh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=hm(e,t,mr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(rt),ve(rt,e)):ge(mt),ve(mt,n)}var sn=null,Al=!1,bs=!1;function pm(e){sn===null?sn=[e]:sn.push(e)}function p3(e){Al=!0,pm(e)}function tr(){if(!bs&&sn!==null){bs=!0;var e=0,t=ue;try{var n=sn;for(ue=1;e>=a,o-=a,cn=1<<32-Wt(t)+o|n<$?(k=b,b=null):k=b.sibling;var P=d(v,b,x[$],E);if(P===null){b===null&&(b=k);break}e&&b&&P.alternate===null&&t(v,b),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P,b=k}if($===x.length)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;$$?(k=b,b=null):k=b.sibling;var j=d(v,b,P.value,E);if(j===null){b===null&&(b=k);break}e&&b&&j.alternate===null&&t(v,b),m=i(j,m,$),_===null?S=j:_.sibling=j,_=j,b=k}if(P.done)return n(v,b),_e&&ir(v,$),S;if(b===null){for(;!P.done;$++,P=x.next())P=u(v,P.value,E),P!==null&&(m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return _e&&ir(v,$),S}for(b=r(v,b);!P.done;$++,P=x.next())P=p(b,v,$,P.value,E),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?$:P.key),m=i(P,m,$),_===null?S=P:_.sibling=P,_=P);return e&&b.forEach(function(L){return t(v,L)}),_e&&ir(v,$),S}function C(v,m,x,E){if(typeof x=="object"&&x!==null&&x.type===Ur&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case qi:e:{for(var S=x.key,_=m;_!==null;){if(_.key===S){if(S=x.type,S===Ur){if(_.tag===7){n(v,_.sibling),m=o(_,x.props.children),m.return=v,v=m;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===An&&lh(S)===_.type){n(v,_.sibling),m=o(_,x.props),m.ref=Fo(v,_,x),m.return=v,v=m;break e}n(v,_);break}else t(v,_);_=_.sibling}x.type===Ur?(m=pr(x.props.children,v.mode,E,x.key),m.return=v,v=m):(E=Fa(x.type,x.key,x.props,null,v.mode,E),E.ref=Fo(v,m,x),E.return=v,v=E)}return a(v);case Br:e:{for(_=x.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(v,m.sibling),m=o(m,x.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Os(x,v.mode,E),m.return=v,v=m}return a(v);case An:return _=x._init,C(v,m,_(x._payload),E)}if(Jo(x))return y(v,m,x,E);if(Io(x))return g(v,m,x,E);ua(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(v,m.sibling),m=o(m,x),m.return=v,v=m):(n(v,m),m=As(x,v.mode,E),m.return=v,v=m),a(v)):n(v,m)}return C}var po=Em(!0),_m=Em(!1),Bi={},tn=er(Bi),_i=er(Bi),Si=er(Bi);function cr(e){if(e===Bi)throw Error(M(174));return e}function pf(e,t){switch(ve(Si,t),ve(_i,e),ve(tn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yc(t,e)}ge(tn),ve(tn,t)}function vo(){ge(tn),ge(_i),ge(Si)}function Sm(e){cr(Si.current);var t=cr(tn.current),n=yc(t,e.type);t!==n&&(ve(_i,e),ve(tn,n))}function vf(e){_i.current===e&&(ge(tn),ge(_i))}var $e=er(0);function sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $s=[];function mf(){for(var e=0;e<$s.length;e++)$s[e]._workInProgressVersionPrimary=null;$s.length=0}var Ia=xn.ReactCurrentDispatcher,Ts=xn.ReactCurrentBatchConfig,yr=0,Te=null,De=null,We=null,cl=!1,li=!1,bi=0,m3=0;function qe(){throw Error(M(321))}function gf(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{ue=n,Ts.transition=r}}function zm(){return Lt().memoizedState}function y3(e,t,n){var r=Vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bm(e))Um(t,n);else if(n=ym(e,t,n,r),n!==null){var o=lt();Kt(n,e,r,o),Hm(n,t,r)}}function w3(e,t,n){var r=Vn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bm(e))Um(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Yt(l,a)){var s=t.interleaved;s===null?(o.next=o,df(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ym(e,t,o,r),n!==null&&(o=lt(),Kt(n,e,r,o),Hm(n,t,r))}}function Bm(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Um(e,t){li=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xu(e,n)}}var ul={readContext:It,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},x3={readContext:It,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,La(4194308,4,Lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=y3.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:Cf,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=g3.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Xt();if(_e){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Ke===null)throw Error(M(349));yr&30||Tm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ch(Rm.bind(null,r,i,e),[e]),r.flags|=2048,Ti(9,km.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Ke.identifierPrefix;if(_e){var n=un,r=cn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[Ei]=r,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(a=xc(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;ogo&&(t.flags|=128,r=!0,zo(i,!1),t.lanes=4194304)}else{if(!r)if(e=sl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,zo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=$e.current,ve($e,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Tf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function kw(e,t){switch(lf(t),t.tag){case 1:return gt(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),ge(mt),ge(rt),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(t),null;case 13:if(ge($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge($e),null;case 4:return vo(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var da=!1,tt=!1,Rw=typeof WeakSet=="function"?WeakSet:Set,H=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Yc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var yh=!1;function Nw(e,t){if(Nc=Xa,e=om(),of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,c=0,f=0,u=e,d=null;t:for(;;){for(var p;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={focusedElem:e,selectionRange:n},Xa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=yh,yh=!1,y}function si(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yc(t,n,i)}o=o.next}while(o!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function t0(e){var t=e.alternate;t!==null&&(e.alternate=null,t0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Ei],delete t[Ic],delete t[dw],delete t[hw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function n0(e){return e.tag===5||e.tag===3||e.tag===4}function wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}var Ge=null,zt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)r0(e,t,n),n=n.sibling}function r0(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Tl,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,o=zt;Ge=null,Rn(e,t,n),Ge=r,zt=o,Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?Ss(e.parentNode,n):e.nodeType===1&&Ss(e,n),gi(e)):Ss(Ge,n.stateNode));break;case 4:r=Ge,o=zt,Ge=n.stateNode.containerInfo,zt=!0,Rn(e,t,n),Ge=r,zt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Rn(e,t,n),tt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function xh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rw),t.forEach(function(r){var o=Fw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Aw(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,hl=0,le&6)throw Error(M(331));var o=le;for(le|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sMe()-bf?hr(e,0):Sf|=n),yt(e,t)}function f0(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=lt();e=vn(e,t),e!==null&&(Di(e,t,n),yt(e,n))}function Dw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function Fw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),f0(e,n)}var d0;d0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,$w(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&vm(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ma(e,t),e=t.pendingProps;var o=fo(t,rt.current);io(t,n),o=yf(null,t,r,e,o,n);var i=wf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,zc(t,r,e,n),t=Hc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&af(t),it(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Bw(r),e=Ft(r,e),o){case 0:t=Uc(null,t,r,e,n);break e;case 1:t=vh(null,t,r,e,n);break e;case 11:t=hh(null,t,r,e,n);break e;case 14:t=ph(null,t,r,Ft(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Uc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),vh(e,t,r,o,n);case 3:e:{if(Qm(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wm(e,t),ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mo(Error(M(423)),t),t=mh(e,t,r,n,o);break e}else if(r!==o){o=mo(Error(M(424)),t),t=mh(e,t,r,n,o);break e}else for(_t=Bn(t.stateNode.containerInfo.firstChild),St=t,_e=!0,Ut=null,n=_m(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ho(),r===o){t=mn(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return Sm(t),e===null&&jc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ac(r,o)?a=null:i!==null&&Ac(r,i)&&(t.flags|=32),Gm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&jc(t),null;case 13:return Zm(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),hh(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(il,r._currentValue),r._currentValue=a,i!==null)if(Yt(i.value,a)){if(i.children===o.children&&!mt.current){t=mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=fn(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Dc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,io(t,n),o=It(o),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),ph(e,t,r,o,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ma(e,t),t.tag=1,gt(r)?(e=!0,nl(t)):e=!1,io(t,n),Cm(t,r,o),zc(t,r,o,n),Hc(null,t,r,!0,e,n);case 19:return Xm(e,t,n);case 22:return Ym(e,t,n)}throw Error(M(156,t.tag))};function h0(e,t){return Fv(e,t)}function zw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new zw(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bw(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Ku:a=8,o|=8;break;case uc:return e=At(12,n,t,o|2),e.elementType=uc,e.lanes=i,e;case fc:return e=At(13,n,t,o),e.elementType=fc,e.lanes=i,e;case dc:return e=At(19,n,t,o),e.elementType=dc,e.lanes=i,e;case Ev:return jl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xv:a=10;break e;case Cv:a=9;break e;case Yu:a=11;break e;case Gu:a=14;break e;case An:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=At(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function jl(e,t,n,r){return e=At(22,e,r,t),e.elementType=Ev,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Os(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uw(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new Uw(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(i),e}function Hw(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g0)}catch(e){console.error(e)}}g0(),vv.exports=Tt;var $o=vv.exports;const y0=Jn($o),Gw=Du({__proto__:null,default:y0},[$o]);var w0,kh=$o;kh.createRoot,w0=kh.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _3=typeof WeakMap=="function"?WeakMap:Map;function Vm(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dl||(dl=!0,Xc=r),Bc(e,t)},n}function Wm(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bc(e,t),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function uh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _3;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=j3.bind(null,e,t,n),t.then(e,e))}function fh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function dh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e)}var S3=xn.ReactCurrentOwner,vt=!1;function it(e,t,n,r){t.child=e===null?_m(t,null,n,r):po(t,e.child,n,r)}function hh(e,t,n,r,o){n=n.render;var i=t.ref;return io(t,o),r=yf(e,t,n,r,i,o),n=wf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(_e&&n&&af(t),t.flags|=1,it(e,t,r,o),t.child)}function ph(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Rf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Km(e,t,i,r,o)):(e=Fa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:wi,n(a,r)&&e.ref===t.ref)return mn(e,t,o)}return t.flags|=1,e=Wn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Km(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(wi(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,mn(e,t,o)}return Uc(e,t,n,r,o)}function Ym(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Jr,Ct),Ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Jr,Ct),Ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(Jr,Ct),Ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(Jr,Ct),Ct|=r;return it(e,t,o,n),t.child}function Gm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uc(e,t,n,r,o){var i=gt(n)?mr:rt.current;return i=fo(t,i),io(t,o),n=yf(e,t,n,r,i,o),r=wf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,mn(e,t,o)):(_e&&r&&af(t),t.flags|=1,it(e,t,n,o),t.child)}function vh(e,t,n,r,o){if(gt(n)){var i=!0;nl(t)}else i=!1;if(io(t,o),t.stateNode===null)Ma(e,t),Cm(t,n,r),zc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=It(c):(c=gt(n)?mr:rt.current,c=fo(t,c));var f=n.getDerivedStateFromProps,u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";u||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==c)&&ah(t,a,r,c),On=!1;var d=t.memoizedState;a.state=d,ll(t,r,a,o),s=t.memoizedState,l!==r||d!==s||mt.current||On?(typeof f=="function"&&(Fc(t,n,f,r),s=t.memoizedState),(l=On||ih(t,n,l,r,d,s,c))?(u||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ft(t.type,l),a.props=c,u=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=It(s):(s=gt(n)?mr:rt.current,s=fo(t,s));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==u||d!==s)&&ah(t,a,r,s),On=!1,d=t.memoizedState,a.state=d,ll(t,r,a,o);var y=t.memoizedState;l!==u||d!==y||mt.current||On?(typeof p=="function"&&(Fc(t,n,p,r),y=t.memoizedState),(c=On||ih(t,n,c,r,d,y,s)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Hc(e,t,n,r,i,o)}function Hc(e,t,n,r,o,i){Gm(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&eh(t,n,!1),mn(e,t,i);r=t.stateNode,S3.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=po(t,e.child,null,i),t.child=po(t,null,l,i)):it(e,t,l,i),t.memoizedState=r.state,o&&eh(t,n,!0),t.child}function Qm(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),pf(e,t.containerInfo)}function mh(e,t,n,r,o){return ho(),sf(o),t.flags|=256,it(e,t,n,r),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0};function Wc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zm(e,t,n){var r=t.pendingProps,o=$e.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ve($e,o&1),e===null)return jc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=jl(a,r,0,null),e=pr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wc(n),t.memoizedState=Vc,e):Ef(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return b3(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Wn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Wn(l,i):(i=pr(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Wc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Vc,r}return i=e.child,e=i.sibling,r=Wn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ef(e,t){return t=jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fa(e,t,n,r){return r!==null&&sf(r),po(t,e.child,null,n),e=Ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function b3(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Ns(Error(M(422))),fa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=jl({mode:"visible",children:r.children},o,0,null),i=pr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&po(t,e.child,null,a),t.child.memoizedState=Wc(a),t.memoizedState=Vc,i);if(!(t.mode&1))return fa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(M(419)),r=Ns(i,r,void 0),fa(e,t,a,r)}if(l=(a&e.childLanes)!==0,vt||l){if(r=Ke,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,vn(e,o),Kt(r,e,o,-1))}return kf(),r=Ns(Error(M(421))),fa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=D3.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_t=Bn(o.nextSibling),St=t,_e=!0,Ut=null,e!==null&&(Nt[Pt++]=cn,Nt[Pt++]=un,Nt[Pt++]=gr,cn=e.id,un=e.overflow,gr=t),t=Ef(t,r.children),t.flags|=4096,t)}function gh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dc(e.return,t,n)}function Ps(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Xm(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(it(e,t,r.children,n),r=$e.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gh(e,n,t);else if(e.tag===19)gh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve($e,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&sl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ps(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&sl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ps(t,!0,n,null,i);break;case"together":Ps(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ma(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $3(e,t,n){switch(t.tag){case 3:Qm(t),ho();break;case 5:Sm(t);break;case 1:gt(t.type)&&nl(t);break;case 4:pf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ve(il,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve($e,$e.current&1),t.flags|=128,null):n&t.child.childLanes?Zm(e,t,n):(ve($e,$e.current&1),e=mn(e,t,n),e!==null?e.sibling:null);ve($e,$e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Xm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ve($e,$e.current),r)break;return null;case 22:case 23:return t.lanes=0,Ym(e,t,n)}return mn(e,t,n)}var Jm,Kc,qm,e0;Jm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kc=function(){};qm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,cr(tn.current);var i=null;switch(n){case"input":o=pc(e,o),r=pc(e,r),i=[];break;case"select":o=ke({},o,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":o=gc(e,o),r=gc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}wc(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(di.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(di.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&me("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};e0=function(e,t,n,r){n!==r&&(t.flags|=4)};function zo(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function T3(e,t,n){var r=t.pendingProps;switch(lf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return gt(t.type)&&tl(),et(t),null;case 3:return r=t.stateNode,vo(),ge(mt),ge(rt),mf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ca(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ut!==null&&(eu(Ut),Ut=null))),Kc(e,t),et(t),null;case 5:vf(t);var o=cr(Si.current);if(n=t.type,e!==null&&t.stateNode!=null)qm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return et(t),null}if(e=cr(tn.current),ca(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Jt]=t,r[Ei]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[Ei]=r,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(a=xc(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;ogo&&(t.flags|=128,r=!0,zo(i,!1),t.lanes=4194304)}else{if(!r)if(e=sl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return et(t),null}else 2*Me()-i.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,zo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=$e.current,ve($e,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Tf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function k3(e,t){switch(lf(t),t.tag){case 1:return gt(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vo(),ge(mt),ge(rt),mf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vf(t),null;case 13:if(ge($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge($e),null;case 4:return vo(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Tf(),null;case 24:return null;default:return null}}var da=!1,tt=!1,R3=typeof WeakSet=="function"?WeakSet:Set,H=null;function Xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Yc(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var yh=!1;function N3(e,t){if(Nc=Xa,e=om(),of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,c=0,f=0,u=e,d=null;t:for(;;){for(var p;u!==n||o!==0&&u.nodeType!==3||(l=a+o),u!==i||r!==0&&u.nodeType!==3||(s=a+r),u.nodeType===3&&(a+=u.nodeValue.length),(p=u.firstChild)!==null;)d=u,u=p;for(;;){if(u===e)break t;if(d===n&&++c===o&&(l=a),d===i&&++f===r&&(s=a),(p=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pc={focusedElem:e,selectionRange:n},Xa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,C=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),C);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){Ae(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return y=yh,yh=!1,y}function si(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yc(t,n,i)}o=o.next}while(o!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function t0(e){var t=e.alternate;t!==null&&(e.alternate=null,t0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Ei],delete t[Ic],delete t[d3],delete t[h3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function n0(e){return e.tag===5||e.tag===3||e.tag===4}function wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||n0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=el));else if(r!==4&&(e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}var Ge=null,zt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)r0(e,t,n),n=n.sibling}function r0(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Tl,n)}catch{}switch(n.tag){case 5:tt||Xr(n,t);case 6:var r=Ge,o=zt;Ge=null,Rn(e,t,n),Ge=r,zt=o,Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(zt?(e=Ge,n=n.stateNode,e.nodeType===8?Ss(e.parentNode,n):e.nodeType===1&&Ss(e,n),gi(e)):Ss(Ge,n.stateNode));break;case 4:r=Ge,o=zt,Ge=n.stateNode.containerInfo,zt=!0,Rn(e,t,n),Ge=r,zt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Yc(n,t,a),o=o.next}while(o!==r)}Rn(e,t,n);break;case 1:if(!tt&&(Xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Rn(e,t,n),tt=r):Rn(e,t,n);break;default:Rn(e,t,n)}}function xh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new R3),t.forEach(function(r){var o=F3.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*A3(r/1960))-r,10e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,hl=0,le&6)throw Error(M(331));var o=le;for(le|=4,H=e.current;H!==null;){var i=H,a=i.child;if(H.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sMe()-bf?hr(e,0):Sf|=n),yt(e,t)}function f0(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=lt();e=vn(e,t),e!==null&&(Di(e,t,n),yt(e,n))}function D3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),f0(e,n)}function F3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),f0(e,n)}var d0;d0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,$3(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&vm(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ma(e,t),e=t.pendingProps;var o=fo(t,rt.current);io(t,n),o=yf(null,t,r,e,o,n);var i=wf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,zc(t,r,e,n),t=Hc(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&af(t),it(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=B3(r),e=Ft(r,e),o){case 0:t=Uc(null,t,r,e,n);break e;case 1:t=vh(null,t,r,e,n);break e;case 11:t=hh(null,t,r,e,n);break e;case 14:t=ph(null,t,r,Ft(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Uc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),vh(e,t,r,o,n);case 3:e:{if(Qm(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wm(e,t),ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=mo(Error(M(423)),t),t=mh(e,t,r,n,o);break e}else if(r!==o){o=mo(Error(M(424)),t),t=mh(e,t,r,n,o);break e}else for(_t=Bn(t.stateNode.containerInfo.firstChild),St=t,_e=!0,Ut=null,n=_m(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ho(),r===o){t=mn(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return Sm(t),e===null&&jc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ac(r,o)?a=null:i!==null&&Ac(r,i)&&(t.flags|=32),Gm(e,t),it(e,t,a,n),t.child;case 6:return e===null&&jc(t),null;case 13:return Zm(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=po(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),hh(e,t,r,o,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ve(il,r._currentValue),r._currentValue=a,i!==null)if(Yt(i.value,a)){if(i.children===o.children&&!mt.current){t=mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=fn(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Dc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Dc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}it(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,io(t,n),o=It(o),r=r(o),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),ph(e,t,r,o,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ma(e,t),t.tag=1,gt(r)?(e=!0,nl(t)):e=!1,io(t,n),Cm(t,r,o),zc(t,r,o,n),Hc(null,t,r,!0,e,n);case 19:return Xm(e,t,n);case 22:return Ym(e,t,n)}throw Error(M(156,t.tag))};function h0(e,t){return Fv(e,t)}function z3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new z3(e,t,n,r)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B3(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yu)return 11;if(e===Gu)return 14}return 2}function Wn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ur:return pr(n.children,o,i,t);case Ku:a=8,o|=8;break;case uc:return e=At(12,n,t,o|2),e.elementType=uc,e.lanes=i,e;case fc:return e=At(13,n,t,o),e.elementType=fc,e.lanes=i,e;case dc:return e=At(19,n,t,o),e.elementType=dc,e.lanes=i,e;case Ev:return jl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xv:a=10;break e;case Cv:a=9;break e;case Yu:a=11;break e;case Gu:a=14;break e;case An:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=At(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function jl(e,t,n,r){return e=At(22,e,r,t),e.elementType=Ev,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Os(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U3(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nf(e,t,n,r,o,i,a,l,s){return e=new U3(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(i),e}function H3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g0)}catch(e){console.error(e)}}g0(),vv.exports=Tt;var $o=vv.exports;const y0=Jn($o),G3=Du({__proto__:null,default:y0},[$o]);var w0,kh=$o;kh.createRoot,w0=kh.hydrateRoot;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zw(){return Math.random().toString(36).substr(2,8)}function Nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(e,t,n,r){return n===void 0&&(n=null),Oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||Zw()})}function Cr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Xw(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Ie.Pop,s=null,c=f();c==null&&(c=0,a.replaceState(Oe({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Ie.Pop;let C=f(),v=C==null?null:C-c;c=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ri(g.location,C,v);n&&n(m,C),c=f()+1;let x=Nh(m,c),E=g.createHref(m);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ri(g.location,C,v);n&&n(m,C),c=f();let x=Nh(m,c),E=g.createHref(m);a.replaceState(x,"",E),i&&s&&s({action:l,location:g.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:Cr(C);return m=m.replace(/ $/,"%20"),te(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Rh,u),s=C,()=>{o.removeEventListener(Rh,u),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return g}var Pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pe||(Pe={}));const Jw=new Set(["lazy","caseSensitive","path","id","index","children"]);function qw(e){return e.index===!0}function tu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),qw(o)){let s=Oe({},o,t(o),{id:l});return r[l]=s,s}else{let s=Oe({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=tu(o.children,t,a,r)),s}})}function ur(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,o=br(r.pathname||"/",n);if(o==null)return null;let i=C0(e);e3(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=dn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),C0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:l3(c,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of E0(i.path))o(i,a,s)}),t}function E0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=E0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function e3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:s3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const t3=/^:[\w-]+$/,n3=3,r3=2,o3=1,i3=10,a3=-2,Ph=e=>e==="*";function l3(e,t){let n=e.split("/"),r=n.length;return n.some(Ph)&&(r+=a3),t&&(r+=r3),n.filter(o=>!Ph(o)).reduce((o,i)=>o+(t3.test(i)?n3:i===""?o3:i3),r)}function s3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function c3(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=l[u]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[u];return p&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function u3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function f3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function d3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:h3(n,t):t,search:v3(r),hash:m3(o)}}function h3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Is(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=_0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Lf(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Cn(e):(o=Oe({},e),te(!o.pathname||!o.pathname.includes("?"),Is("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Is("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Is("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=d3(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),p3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,m3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function S0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const b0=["post","put","patch","delete"],g3=new Set(b0),y3=["get",...b0],w3=new Set(y3),x3=new Set([301,302,303,307,308]),C3=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},E3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Uo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),T0="remix-router-transitions";function S3(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let T=e.detectErrorBoundary;o=R=>({hasErrorBoundary:T(R)})}else o=_3;let i={},a=tu(e.routes,o,void 0,i),l,s=e.basename||"/",c=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,u=new Set,d=null,p=null,y=null,g=e.hydrationData!=null,C=ur(a,e.history.location,s),v=null;if(C==null){let T=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Fh(a);C=R,v={[A.id]:T}}let m,x=C.some(T=>T.route.lazy),E=C.some(T=>T.route.loader);if(x)m=!1;else if(!E)m=!0;else if(c.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:T&&T[B.route.id]!==void 0||R&&R[B.route.id]!==void 0:!0;if(R){let B=C.findIndex(W=>R[W.route.id]!==void 0);m=C.slice(0,B+1).every(A)}else m=C.every(A)}else m=e.hydrationData!=null;let S,_={historyAction:e.history.action,location:e.history.location,matches:C,initialized:m,navigation:Ls,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},b=Ie.Pop,$=!1,k,P=!1,j=new Map,L=null,D=!1,N=!1,z=[],V=[],U=new Map,O=0,F=-1,K=new Map,J=new Set,se=new Map,Be=new Map,ye=new Set,Ne=new Map,we=new Map,Ue=!1;function xe(){if(f=e.history.listen(T=>{let{action:R,location:A,delta:B}=T;if(Ue){Ue=!1;return}yo(we.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=gd({currentLocation:_.location,nextLocation:A,historyAction:R});if(W&&B!=null){Ue=!0,e.history.go(B*-1),Qi(W,{state:"blocked",location:A,proceed(){Qi(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(B)},reset(){let re=new Map(_.blockers);re.set(W,Uo),be({blockers:re})}});return}return wt(R,A)}),n){L3(t,j);let T=()=>M3(t,j);t.addEventListener("pagehide",T),L=()=>t.removeEventListener("pagehide",T)}return _.initialized||wt(Ie.Pop,_.location,{initialHydration:!0}),S}function Se(){f&&f(),L&&L(),u.clear(),k&&k.abort(),_.fetchers.forEach((T,R)=>Gi(R)),_.blockers.forEach((T,R)=>md(R))}function jt(T){return u.add(T),()=>u.delete(T)}function be(T,R){R===void 0&&(R={}),_=Oe({},_,T);let A=[],B=[];c.v7_fetcherPersist&&_.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...u].forEach(W=>W(_,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(A.forEach(W=>_.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(T,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=_.actionData!=null&&_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=T.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=_.actionData:Q=null;let G=R.loaderData?Dh(_.loaderData,R.loaderData,R.matches||[],R.errors):_.loaderData,ie=_.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Uo)));let He=$===!0||_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&((W=T.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(T,T.state):b===Ie.Replace&&e.history.replace(T,T.state));let ee;if(b===Ie.Pop){let he=j.get(_.location.pathname);he&&he.has(T.pathname)?ee={currentLocation:_.location,nextLocation:T}:j.has(T.pathname)&&(ee={currentLocation:T,nextLocation:_.location})}else if(P){let he=j.get(_.location.pathname);he?he.add(T.pathname):(he=new Set([T.pathname]),j.set(_.location.pathname,he)),ee={currentLocation:_.location,nextLocation:T}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:T,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:wd(T,R.matches||_.matches),preventScrollReset:He,blockers:ie}),{viewTransitionOpts:ee,flushSync:re===!0}),b=Ie.Pop,$=!1,P=!1,D=!1,N=!1,z=[],V=[]}async function Ki(T,R){if(typeof T=="number"){e.history.go(T);return}let A=nu(_.location,_.matches,s,c.v7_prependBasename,T,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ah(c.v7_normalizeFormMethod,!1,A,R),X=_.location,Q=Ri(_.location,B,R&&R.state);Q=Oe({},Q,e.history.encodeLocation(Q));let G=R&&R.replace!=null?R.replace:void 0,ie=Ie.Push;G===!0?ie=Ie.Replace:G===!1||W!=null&&Bt(W.formMethod)&&W.formAction===_.location.pathname+_.location.search&&(ie=Ie.Replace);let He=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ee=(R&&R.unstable_flushSync)===!0,he=gd({currentLocation:X,nextLocation:Q,historyAction:ie});if(he){Qi(he,{state:"blocked",location:Q,proceed(){Qi(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Ki(T,R)},reset(){let Ye=new Map(_.blockers);Ye.set(he,Uo),be({blockers:Ye})}});return}return await wt(ie,Q,{submission:W,pendingError:re,preventScrollReset:He,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ee})}function Jl(){if(rs(),be({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){wt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}wt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function wt(T,R,A){k&&k.abort(),k=null,b=T,D=(A&&A.startUninterruptedRevalidation)===!0,yy(_.location,_.matches),$=(A&&A.preventScrollReset)===!0,P=(A&&A.enableViewTransition)===!0;let B=l||a,W=A&&A.overrideNavigation,re=ur(B,R,s),X=(A&&A.flushSync)===!0;if(!re){let Ye=Rt(404,{pathname:R.pathname}),{matches:xt,route:Ve}=Fh(B);os(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(_.initialized&&!N&&R3(_.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}k=new AbortController;let Q=Vo(e.history,R,k.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[fi(re).route.id]:A.pendingError};else if(A&&A.submission&&Bt(A.submission.formMethod)){let Ye=await Yi(Q,R,A.submission,re,{replace:A.replace,flushSync:X});if(Ye.shortCircuited)return;G=Ye.pendingActionData,ie=Ye.pendingActionError,W=Ms(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await ql(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(k=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(T,R,A,B,W){W===void 0&&(W={}),rs();let re=O3(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=ou(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:T.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Ho("action",T,Q,B,i,o,s,c.v7_relativeSplatPath),T.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===_.location.pathname+_.location.search,await Qt(_,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=fi(B,Q.route.id);return(W&&W.replace)!==!0&&(b=Ie.Push),{pendingActionData:{},pendingActionError:{[G.route.id]:X.error}}}if(fr(X))throw Rt(400,{type:"defer-action"});return{pendingActionData:{[Q.route.id]:X.data}}}async function ql(T,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ms(R,W),he=W||re||Uh(ee),Ye=l||a,[xt,Ve]=Oh(e.history,_,A,he,R,c.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(os(ce=>!(A&&A.some(de=>de.route.id===ce))||xt&&xt.some(de=>de.route.id===ce)),F=++O,xt.length===0&&Ve.length===0){let ce=pd();return ft(R,Oe({matches:A,loaderData:{},errors:He||null},ie?{actionData:ie}:{},ce?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!c.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=_.fetchers.get(de.key),Xi=Wo(void 0,dt?dt.data:void 0);_.fetchers.set(de.key,Xi)});let ce=ie||_.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G})}Ve.forEach(ce=>{U.has(ce.key)&&Tn(ce.key),ce.controller&&U.set(ce.key,ce.controller)});let Ar=()=>Ve.forEach(ce=>Tn(ce.key));k&&k.signal.addEventListener("abort",Ar);let{results:is,loaderResults:Or,fetcherResults:kn}=await fd(_.matches,A,xt,Ve,T);if(T.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=zh(is);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(_,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:as,errors:Oo}=jh(_,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),c.v7_partialHydration&&Q&&_.errors&&Object.entries(_.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Oo=Object.assign(Oo||{},{[de]:dt})});let ls=pd(),Ir=vd(F),Zi=ls||Ir||Ve.length>0;return Oe({loaderData:as,errors:Oo},Zi?{fetchers:new Map(_.fetchers)}:{})}function es(T,R,A,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(T)&&Tn(T);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=nu(_.location,_.matches,s,c.v7_prependBasename,A,c.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Ao(T,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ah(c.v7_normalizeFormMethod,!0,X,B);if(He){Ao(T,R,He,{flushSync:W});return}let ee=ou(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){ts(T,R,G,ee,Q,W,ie);return}se.set(T,{routeId:R,path:G}),ns(T,R,G,ee,Q,W,ie)}async function ts(T,R,A,B,W,re,X){if(rs(),se.delete(T),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Ao(T,R,de,{flushSync:re});return}let Q=_.fetchers.get(T);$n(T,I3(X,Q),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal,X);U.set(T,G);let He=O,ee=await Ho("action",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(ie.signal.aborted){U.get(T)===G&&U.delete(T);return}if(c.v7_fetcherPersist&&ye.has(T)){if(dr(ee)||qr(ee)){$n(T,Nn(void 0));return}}else{if(dr(ee))if(U.delete(T),F>He){$n(T,Nn(void 0));return}else return J.add(T),$n(T,Wo(X)),Qt(_,ee,{fetcherSubmission:X});if(qr(ee)){Ao(T,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=_.navigation.location||_.location,Ye=Vo(e.history,he,G.signal),xt=l||a,Ve=_.navigation.state!=="idle"?ur(xt,_.navigation.location,s):_.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(T,Ar);let is=Wo(X,ee.data);_.fetchers.set(T,is);let[Or,kn]=Oh(e.history,_,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==T).forEach(de=>{let dt=de.key,Xi=_.fetchers.get(dt),xy=Wo(void 0,Xi?Xi.data:void 0);_.fetchers.set(dt,xy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(_.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:as,loaderResults:Oo,fetcherResults:ls}=await fd(_.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(T),U.delete(T),kn.forEach(de=>U.delete(de.key));let Ir=zh(as);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(_,Ir.result)}let{loaderData:Zi,errors:ce}=jh(_,_.matches,Or,Oo,void 0,kn,ls,Ne);if(_.fetchers.has(T)){let de=Nn(ee.data);_.fetchers.set(T,de)}vd(Ar),_.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),k&&k.abort(),ft(_.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(_.fetchers)})):(be({errors:ce,loaderData:Dh(_.loaderData,Zi,Ve,ce),fetchers:new Map(_.fetchers)}),N=!1)}async function ns(T,R,A,B,W,re,X){let Q=_.fetchers.get(T);$n(T,Wo(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal);U.set(T,G);let He=O,ee=await Ho("loader",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(fr(ee)&&(ee=await N0(ee,ie.signal,!0)||ee),U.get(T)===G&&U.delete(T),!ie.signal.aborted){if(ye.has(T)){$n(T,Nn(void 0));return}if(dr(ee))if(F>He){$n(T,Nn(void 0));return}else{J.add(T),await Qt(_,ee);return}if(qr(ee)){Ao(T,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(T,Nn(ee.data))}}async function Qt(T,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ri(T.location,R.location,{_isRedirect:!0});if(te(X,"Expected a location on the redirect navigation"),n){let he=!1;if(R.reloadDocument)he=!0;else if($0.test(R.location)){const Ye=e.history.createURL(R.location);he=Ye.origin!==t.location.origin||br(Ye.pathname,s)==null}if(he){re?t.location.replace(R.location):t.location.assign(R.location);return}}k=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=T.navigation;!B&&!W&&G&&ie&&He&&(B=Uh(T.navigation));let ee=B||W;if(C3.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ms(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function fd(T,R,A,B,W){let re=await Promise.all([...A.map(G=>Ho("loader",W,G,R,i,o,s,c.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Ho("loader",Vo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,c.v7_relativeSplatPath):{type:Pe.error,error:Rt(404,{pathname:G.path})})]),X=re.slice(0,A.length),Q=re.slice(A.length);return await Promise.all([Bh(T,A,X,X.map(()=>W.signal),!1,_.loaderData),Bh(T,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function rs(){N=!0,z.push(...os()),se.forEach((T,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(T,R,A){A===void 0&&(A={}),_.fetchers.set(T,R),be({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Ao(T,R,A,B){B===void 0&&(B={});let W=fi(_.matches,R);Gi(T),be({errors:{[W.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function dd(T){return c.v7_fetcherPersist&&(Be.set(T,(Be.get(T)||0)+1),ye.has(T)&&ye.delete(T)),_.fetchers.get(T)||E3}function Gi(T){let R=_.fetchers.get(T);U.has(T)&&!(R&&R.state==="loading"&&K.has(T))&&Tn(T),se.delete(T),K.delete(T),J.delete(T),ye.delete(T),_.fetchers.delete(T)}function vy(T){if(c.v7_fetcherPersist){let R=(Be.get(T)||0)-1;R<=0?(Be.delete(T),ye.add(T)):Be.set(T,R)}else Gi(T);be({fetchers:new Map(_.fetchers)})}function Tn(T){let R=U.get(T);te(R,"Expected fetch controller: "+T),R.abort(),U.delete(T)}function hd(T){for(let R of T){let A=dd(R),B=Nn(A.data);_.fetchers.set(R,B)}}function pd(){let T=[],R=!1;for(let A of J){let B=_.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),T.push(A),R=!0)}return hd(T),R}function vd(T){let R=[];for(let[A,B]of K)if(B0}function my(T,R){let A=_.blockers.get(T)||Uo;return we.get(T)!==R&&we.set(T,R),A}function md(T){_.blockers.delete(T),we.delete(T)}function Qi(T,R){let A=_.blockers.get(T)||Uo;te(A.state==="unblocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="proceeding"||A.state==="blocked"&&R.state==="unblocked"||A.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+R.state);let B=new Map(_.blockers);B.set(T,R),be({blockers:B})}function gd(T){let{currentLocation:R,nextLocation:A,historyAction:B}=T;if(we.size===0)return;we.size>1&&yo(!1,"A router only supports one blocker at a time");let W=Array.from(we.entries()),[re,X]=W[W.length-1],Q=_.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function os(T){let R=[];return Ne.forEach((A,B)=>{(!T||T(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function gy(T,R,A){if(d=T,y=R,p=A||null,!g&&_.navigation===Ls){g=!0;let B=wd(_.location,_.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function yd(T,R){return p&&p(T,R.map(B=>x0(B,_.loaderData)))||T.key}function yy(T,R){if(d&&y){let A=yd(T,R);d[A]=y()}}function wd(T,R){if(d){let A=yd(T,R),B=d[A];if(typeof B=="number")return B}return null}function wy(T){i={},l=tu(T,o,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return _},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:gy,navigate:Ki,fetch:es,revalidate:Jl,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:dd,deleteFetcher:vy,dispose:Se,getBlocker:my,deleteBlocker:md,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:wy},S}function b3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nu(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=Lf(o||".",If(s,i),br(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!jf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:dn([n,f.pathname])),Cr(f)}function Ah(e,t,n,r){if(!r||!b3(r))return{path:n};if(r.formMethod&&!A3(r.formMethod))return{path:n,error:Rt(405,{method:r.formMethod})};let o=()=>({path:n,error:Rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=R0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Bt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,y)=>{let[g,C]=y;return""+p+g+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Bt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let s,c;if(r.formData)s=ru(r.formData),c=r.formData;else if(r.body instanceof FormData)s=ru(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=Mh(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=Mh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let u=Cn(n);return t&&u.search&&jf(u.search)&&s.append("index",""),u.search="?"+s,{path:Cr(u),submission:f}}function $3(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Oh(e,t,n,r,o,i,a,l,s,c,f,u,d,p,y,g){let C=g?Object.values(g)[0]:y?Object.values(y)[0]:void 0,v=e.createURL(t.location),m=e.createURL(o),x=g?Object.keys(g)[0]:void 0,S=$3(n,x).filter((b,$)=>{let{route:k}=b;if(k.lazy)return!0;if(k.loader==null)return!1;if(i)return k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(T3(t.loaderData,t.matches[$],b)||l.some(L=>L===b.route.id))return!0;let P=t.matches[$],j=b;return Ih(b,Oe({currentUrl:v,currentParams:P.params,nextUrl:m,nextParams:j.params},r,{actionResult:C,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||k0(P,j)}))}),_=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||c.has($))return;let k=ur(d,b.path,p);if(!k){_.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=ou(k,b.path),L=!1;u.has($)?L=!1:s.includes($)?L=!0:P&&P.state!=="idle"&&P.data===void 0?L=a:L=Ih(j,Oe({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:a})),L&&_.push({key:$,routeId:b.routeId,path:b.path,matches:k,match:j,controller:new AbortController})}),[S,_]}function T3(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function k0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ih(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";yo(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!Jw.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Ho(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let c,f,u,d=g=>{let C,v=new Promise((m,x)=>C=x);return u=()=>C(),t.signal.addEventListener("abort",u),Promise.race([g({request:t,params:n.params,context:s.requestContext}),v])};try{let g=n.route[e];if(n.route.lazy)if(g){let C,v=await Promise.all([d(g).catch(m=>{C=m}),Lh(n.route,i,o)]);if(C)throw C;f=v[0]}else if(await Lh(n.route,i,o),g=n.route[e],g)f=await d(g);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Rt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pe.data,data:void 0};else if(g)f=await d(g);else{let C=new URL(t.url),v=C.pathname+C.search;throw Rt(404,{pathname:v})}te(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){c=Pe.error,f=g}finally{u&&t.signal.removeEventListener("abort",u)}if(P3(f)){let g=f.status;if(x3.has(g)){let v=f.headers.get("Location");if(te(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!$0.test(v))v=nu(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v,l);else if(!s.isStaticRequest){let m=new URL(t.url),x=v.startsWith("//")?new URL(m.protocol+v):new URL(v),E=br(x.pathname,a)!=null;x.origin===m.origin&&E&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw f.headers.set("Location",v),f;return{type:Pe.redirect,status:g,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Pe.error?Pe.error:Pe.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?f.body==null?C=null:C=await f.json():C=await f.text()}catch(v){return{type:Pe.error,error:v}}return c===Pe.error?{type:c,error:new Mf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(c===Pe.error)return{type:c,error:f};if(N3(f)){var p,y;return{type:Pe.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:Pe.data,data:f}}function Vo(e,t,n,r){let o=e.createURL(R0(t)).toString(),i={signal:n};if(r&&Bt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=ru(r.formData):i.body=r.formData}return new Request(o,i)}function ru(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function k3(e,t,n,r,o){let i={},a=null,l,s=!1,c={};return n.forEach((f,u)=>{let d=t[u].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=fi(e,d),y=f.error;r&&(y=Object.values(r)[0],r=void 0),a=a||{},a[p.route.id]==null&&(a[p.route.id]=y),i[d]=void 0,s||(s=!0,l=S0(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else fr(f)?(o.set(d,f.deferredData),i[d]=f.deferredData.data):i[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(c[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function jh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=k3(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Fh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mf(e||500,a,new Error(l),!0)}function zh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(dr(n))return{result:n,idx:t}}}function R0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function R3(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fr(e){return e.type===Pe.deferred}function qr(e){return e.type===Pe.error}function dr(e){return(e&&e.type)===Pe.redirect}function N3(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function P3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function A3(e){return w3.has(e.toLowerCase())}function Bt(e){return g3.has(e.toLowerCase())}async function Bh(e,t,n,r,o,i){for(let a=0;au.route.id===s.route.id),f=c!=null&&!k0(c,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let u=r[a];te(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await N0(l,u,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function N0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pe.error,error:o}}return{type:Pe.data,data:e.deferredData.data}}}function jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ou(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&jf(n||""))return e[e.length-1];let r=_0(e);return r[r.length-1]}function Uh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Ms(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function O3(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Wo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function I3(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function L3(e,t){try{let n=e.sessionStorage.getItem(T0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function M3(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(T0,JSON.stringify(n))}catch(r){yo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Z3(){return Math.random().toString(36).substr(2,8)}function Nh(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(e,t,n,r){return n===void 0&&(n=null),Oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||Z3()})}function Cr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function X3(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Ie.Pop,s=null,c=f();c==null&&(c=0,a.replaceState(Oe({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function u(){l=Ie.Pop;let C=f(),v=C==null?null:C-c;c=C,s&&s({action:l,location:g.location,delta:v})}function d(C,v){l=Ie.Push;let m=Ri(g.location,C,v);n&&n(m,C),c=f()+1;let x=Nh(m,c),E=g.createHref(m);try{a.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&s&&s({action:l,location:g.location,delta:1})}function p(C,v){l=Ie.Replace;let m=Ri(g.location,C,v);n&&n(m,C),c=f();let x=Nh(m,c),E=g.createHref(m);a.replaceState(x,"",E),i&&s&&s({action:l,location:g.location,delta:0})}function y(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof C=="string"?C:Cr(C);return m=m.replace(/ $/,"%20"),te(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Rh,u),s=C,()=>{o.removeEventListener(Rh,u),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let v=y(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(C){return a.go(C)}};return g}var Pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pe||(Pe={}));const J3=new Set(["lazy","caseSensitive","path","id","index","children"]);function q3(e){return e.index===!0}function tu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(te(o.index!==!0||!o.children,"Cannot specify children on an index route"),te(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),q3(o)){let s=Oe({},o,t(o),{id:l});return r[l]=s,s}else{let s=Oe({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=tu(o.children,t,a,r)),s}})}function ur(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,o=br(r.pathname||"/",n);if(o==null)return null;let i=C0(e);ew(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=dn([r,s.relativePath]),f=n.concat(s);i.children&&i.children.length>0&&(te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),C0(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:lw(c,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of E0(i.path))o(i,a,s)}),t}function E0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=E0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function ew(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tw=/^:[\w-]+$/,nw=3,rw=2,ow=1,iw=10,aw=-2,Ph=e=>e==="*";function lw(e,t){let n=e.split("/"),r=n.length;return n.some(Ph)&&(r+=aw),t&&(r+=rw),n.filter(o=>!Ph(o)).reduce((o,i)=>o+(tw.test(i)?nw:i===""?ow:iw),r)}function sw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cw(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:p}=f;if(d==="*"){let g=l[u]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const y=l[u];return p&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function uw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function fw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function dw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:hw(n,t):t,search:vw(r),hash:mw(o)}}function hw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Is(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=_0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Lf(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Cn(e):(o=Oe({},e),te(!o.pathname||!o.pathname.includes("?"),Is("?","pathname","search",o)),te(!o.pathname||!o.pathname.includes("#"),Is("#","pathname","hash",o)),te(!o.search||!o.search.includes("#"),Is("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let u=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),u-=1;o.pathname=d.join("/")}l=u>=0?t[u]:"/"}let s=dw(o,l),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const dn=e=>e.join("/").replace(/\/\/+/g,"/"),pw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mf{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function S0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const b0=["post","put","patch","delete"],gw=new Set(b0),yw=["get",...b0],ww=new Set(yw),xw=new Set([301,302,303,307,308]),Cw=new Set([307,308]),Ls={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ew={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Uo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_w=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),T0="remix-router-transitions";function Sw(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;te(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let T=e.detectErrorBoundary;o=R=>({hasErrorBoundary:T(R)})}else o=_w;let i={},a=tu(e.routes,o,void 0,i),l,s=e.basename||"/",c=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),f=null,u=new Set,d=null,p=null,y=null,g=e.hydrationData!=null,C=ur(a,e.history.location,s),v=null;if(C==null){let T=Rt(404,{pathname:e.history.location.pathname}),{matches:R,route:A}=Fh(a);C=R,v={[A.id]:T}}let m,x=C.some(T=>T.route.lazy),E=C.some(T=>T.route.loader);if(x)m=!1;else if(!E)m=!0;else if(c.v7_partialHydration){let T=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,A=B=>B.route.loader?B.route.loader.hydrate===!0?!1:T&&T[B.route.id]!==void 0||R&&R[B.route.id]!==void 0:!0;if(R){let B=C.findIndex(W=>R[W.route.id]!==void 0);m=C.slice(0,B+1).every(A)}else m=C.every(A)}else m=e.hydrationData!=null;let S,_={historyAction:e.history.action,location:e.history.location,matches:C,initialized:m,navigation:Ls,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},b=Ie.Pop,$=!1,k,P=!1,j=new Map,L=null,D=!1,N=!1,z=[],V=[],U=new Map,O=0,F=-1,K=new Map,J=new Set,se=new Map,Be=new Map,ye=new Set,Ne=new Map,we=new Map,Ue=!1;function xe(){if(f=e.history.listen(T=>{let{action:R,location:A,delta:B}=T;if(Ue){Ue=!1;return}yo(we.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=gd({currentLocation:_.location,nextLocation:A,historyAction:R});if(W&&B!=null){Ue=!0,e.history.go(B*-1),Qi(W,{state:"blocked",location:A,proceed(){Qi(W,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),e.history.go(B)},reset(){let re=new Map(_.blockers);re.set(W,Uo),be({blockers:re})}});return}return wt(R,A)}),n){Lw(t,j);let T=()=>Mw(t,j);t.addEventListener("pagehide",T),L=()=>t.removeEventListener("pagehide",T)}return _.initialized||wt(Ie.Pop,_.location,{initialHydration:!0}),S}function Se(){f&&f(),L&&L(),u.clear(),k&&k.abort(),_.fetchers.forEach((T,R)=>Gi(R)),_.blockers.forEach((T,R)=>md(R))}function jt(T){return u.add(T),()=>u.delete(T)}function be(T,R){R===void 0&&(R={}),_=Oe({},_,T);let A=[],B=[];c.v7_fetcherPersist&&_.fetchers.forEach((W,re)=>{W.state==="idle"&&(ye.has(re)?B.push(re):A.push(re))}),[...u].forEach(W=>W(_,{deletedFetchers:B,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(A.forEach(W=>_.fetchers.delete(W)),B.forEach(W=>Gi(W)))}function ft(T,R,A){var B,W;let{flushSync:re}=A===void 0?{}:A,X=_.actionData!=null&&_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=T.state)==null?void 0:B._isRedirect)!==!0,Q;R.actionData?Object.keys(R.actionData).length>0?Q=R.actionData:Q=null:X?Q=_.actionData:Q=null;let G=R.loaderData?Dh(_.loaderData,R.loaderData,R.matches||[],R.errors):_.loaderData,ie=_.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach((he,Ye)=>ie.set(Ye,Uo)));let He=$===!0||_.navigation.formMethod!=null&&Bt(_.navigation.formMethod)&&((W=T.state)==null?void 0:W._isRedirect)!==!0;l&&(a=l,l=void 0),D||b===Ie.Pop||(b===Ie.Push?e.history.push(T,T.state):b===Ie.Replace&&e.history.replace(T,T.state));let ee;if(b===Ie.Pop){let he=j.get(_.location.pathname);he&&he.has(T.pathname)?ee={currentLocation:_.location,nextLocation:T}:j.has(T.pathname)&&(ee={currentLocation:T,nextLocation:_.location})}else if(P){let he=j.get(_.location.pathname);he?he.add(T.pathname):(he=new Set([T.pathname]),j.set(_.location.pathname,he)),ee={currentLocation:_.location,nextLocation:T}}be(Oe({},R,{actionData:Q,loaderData:G,historyAction:b,location:T,initialized:!0,navigation:Ls,revalidation:"idle",restoreScrollPosition:wd(T,R.matches||_.matches),preventScrollReset:He,blockers:ie}),{viewTransitionOpts:ee,flushSync:re===!0}),b=Ie.Pop,$=!1,P=!1,D=!1,N=!1,z=[],V=[]}async function Ki(T,R){if(typeof T=="number"){e.history.go(T);return}let A=nu(_.location,_.matches,s,c.v7_prependBasename,T,c.v7_relativeSplatPath,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:B,submission:W,error:re}=Ah(c.v7_normalizeFormMethod,!1,A,R),X=_.location,Q=Ri(_.location,B,R&&R.state);Q=Oe({},Q,e.history.encodeLocation(Q));let G=R&&R.replace!=null?R.replace:void 0,ie=Ie.Push;G===!0?ie=Ie.Replace:G===!1||W!=null&&Bt(W.formMethod)&&W.formAction===_.location.pathname+_.location.search&&(ie=Ie.Replace);let He=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,ee=(R&&R.unstable_flushSync)===!0,he=gd({currentLocation:X,nextLocation:Q,historyAction:ie});if(he){Qi(he,{state:"blocked",location:Q,proceed(){Qi(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Ki(T,R)},reset(){let Ye=new Map(_.blockers);Ye.set(he,Uo),be({blockers:Ye})}});return}return await wt(ie,Q,{submission:W,pendingError:re,preventScrollReset:He,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:ee})}function Jl(){if(rs(),be({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){wt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}wt(b||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function wt(T,R,A){k&&k.abort(),k=null,b=T,D=(A&&A.startUninterruptedRevalidation)===!0,yy(_.location,_.matches),$=(A&&A.preventScrollReset)===!0,P=(A&&A.enableViewTransition)===!0;let B=l||a,W=A&&A.overrideNavigation,re=ur(B,R,s),X=(A&&A.flushSync)===!0;if(!re){let Ye=Rt(404,{pathname:R.pathname}),{matches:xt,route:Ve}=Fh(B);os(),ft(R,{matches:xt,loaderData:{},errors:{[Ve.id]:Ye}},{flushSync:X});return}if(_.initialized&&!N&&Rw(_.location,R)&&!(A&&A.submission&&Bt(A.submission.formMethod))){ft(R,{matches:re},{flushSync:X});return}k=new AbortController;let Q=Vo(e.history,R,k.signal,A&&A.submission),G,ie;if(A&&A.pendingError)ie={[fi(re).route.id]:A.pendingError};else if(A&&A.submission&&Bt(A.submission.formMethod)){let Ye=await Yi(Q,R,A.submission,re,{replace:A.replace,flushSync:X});if(Ye.shortCircuited)return;G=Ye.pendingActionData,ie=Ye.pendingActionError,W=Ms(R,A.submission),X=!1,Q=new Request(Q.url,{signal:Q.signal})}let{shortCircuited:He,loaderData:ee,errors:he}=await ql(Q,R,re,W,A&&A.submission,A&&A.fetcherSubmission,A&&A.replace,A&&A.initialHydration===!0,X,G,ie);He||(k=null,ft(R,Oe({matches:re},G?{actionData:G}:{},{loaderData:ee,errors:he})))}async function Yi(T,R,A,B,W){W===void 0&&(W={}),rs();let re=Ow(R,A);be({navigation:re},{flushSync:W.flushSync===!0});let X,Q=ou(B,R);if(!Q.route.action&&!Q.route.lazy)X={type:Pe.error,error:Rt(405,{method:T.method,pathname:R.pathname,routeId:Q.route.id})};else if(X=await Ho("action",T,Q,B,i,o,s,c.v7_relativeSplatPath),T.signal.aborted)return{shortCircuited:!0};if(dr(X)){let G;return W&&W.replace!=null?G=W.replace:G=X.location===_.location.pathname+_.location.search,await Qt(_,X,{submission:A,replace:G}),{shortCircuited:!0}}if(qr(X)){let G=fi(B,Q.route.id);return(W&&W.replace)!==!0&&(b=Ie.Push),{pendingActionData:{},pendingActionError:{[G.route.id]:X.error}}}if(fr(X))throw Rt(400,{type:"defer-action"});return{pendingActionData:{[Q.route.id]:X.data}}}async function ql(T,R,A,B,W,re,X,Q,G,ie,He){let ee=B||Ms(R,W),he=W||re||Uh(ee),Ye=l||a,[xt,Ve]=Oh(e.history,_,A,he,R,c.v7_partialHydration&&Q===!0,N,z,V,ye,se,J,Ye,s,ie,He);if(os(ce=>!(A&&A.some(de=>de.route.id===ce))||xt&&xt.some(de=>de.route.id===ce)),F=++O,xt.length===0&&Ve.length===0){let ce=pd();return ft(R,Oe({matches:A,loaderData:{},errors:He||null},ie?{actionData:ie}:{},ce?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(!D&&(!c.v7_partialHydration||!Q)){Ve.forEach(de=>{let dt=_.fetchers.get(de.key),Xi=Wo(void 0,dt?dt.data:void 0);_.fetchers.set(de.key,Xi)});let ce=ie||_.actionData;be(Oe({navigation:ee},ce?Object.keys(ce).length===0?{actionData:null}:{actionData:ce}:{},Ve.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:G})}Ve.forEach(ce=>{U.has(ce.key)&&Tn(ce.key),ce.controller&&U.set(ce.key,ce.controller)});let Ar=()=>Ve.forEach(ce=>Tn(ce.key));k&&k.signal.addEventListener("abort",Ar);let{results:is,loaderResults:Or,fetcherResults:kn}=await fd(_.matches,A,xt,Ve,T);if(T.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ar),Ve.forEach(ce=>U.delete(ce.key));let or=zh(is);if(or){if(or.idx>=xt.length){let ce=Ve[or.idx-xt.length].key;J.add(ce)}return await Qt(_,or.result,{replace:X}),{shortCircuited:!0}}let{loaderData:as,errors:Oo}=jh(_,A,xt,Or,He,Ve,kn,Ne);Ne.forEach((ce,de)=>{ce.subscribe(dt=>{(dt||ce.done)&&Ne.delete(de)})}),c.v7_partialHydration&&Q&&_.errors&&Object.entries(_.errors).filter(ce=>{let[de]=ce;return!xt.some(dt=>dt.route.id===de)}).forEach(ce=>{let[de,dt]=ce;Oo=Object.assign(Oo||{},{[de]:dt})});let ls=pd(),Ir=vd(F),Zi=ls||Ir||Ve.length>0;return Oe({loaderData:as,errors:Oo},Zi?{fetchers:new Map(_.fetchers)}:{})}function es(T,R,A,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(T)&&Tn(T);let W=(B&&B.unstable_flushSync)===!0,re=l||a,X=nu(_.location,_.matches,s,c.v7_prependBasename,A,c.v7_relativeSplatPath,R,B==null?void 0:B.relative),Q=ur(re,X,s);if(!Q){Ao(T,R,Rt(404,{pathname:X}),{flushSync:W});return}let{path:G,submission:ie,error:He}=Ah(c.v7_normalizeFormMethod,!0,X,B);if(He){Ao(T,R,He,{flushSync:W});return}let ee=ou(Q,G);if($=(B&&B.preventScrollReset)===!0,ie&&Bt(ie.formMethod)){ts(T,R,G,ee,Q,W,ie);return}se.set(T,{routeId:R,path:G}),ns(T,R,G,ee,Q,W,ie)}async function ts(T,R,A,B,W,re,X){if(rs(),se.delete(T),!B.route.action&&!B.route.lazy){let de=Rt(405,{method:X.formMethod,pathname:A,routeId:R});Ao(T,R,de,{flushSync:re});return}let Q=_.fetchers.get(T);$n(T,Iw(X,Q),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal,X);U.set(T,G);let He=O,ee=await Ho("action",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(ie.signal.aborted){U.get(T)===G&&U.delete(T);return}if(c.v7_fetcherPersist&&ye.has(T)){if(dr(ee)||qr(ee)){$n(T,Nn(void 0));return}}else{if(dr(ee))if(U.delete(T),F>He){$n(T,Nn(void 0));return}else return J.add(T),$n(T,Wo(X)),Qt(_,ee,{fetcherSubmission:X});if(qr(ee)){Ao(T,R,ee.error);return}}if(fr(ee))throw Rt(400,{type:"defer-action"});let he=_.navigation.location||_.location,Ye=Vo(e.history,he,G.signal),xt=l||a,Ve=_.navigation.state!=="idle"?ur(xt,_.navigation.location,s):_.matches;te(Ve,"Didn't find any matches after fetcher action");let Ar=++O;K.set(T,Ar);let is=Wo(X,ee.data);_.fetchers.set(T,is);let[Or,kn]=Oh(e.history,_,Ve,X,he,!1,N,z,V,ye,se,J,xt,s,{[B.route.id]:ee.data},void 0);kn.filter(de=>de.key!==T).forEach(de=>{let dt=de.key,Xi=_.fetchers.get(dt),xy=Wo(void 0,Xi?Xi.data:void 0);_.fetchers.set(dt,xy),U.has(dt)&&Tn(dt),de.controller&&U.set(dt,de.controller)}),be({fetchers:new Map(_.fetchers)});let or=()=>kn.forEach(de=>Tn(de.key));G.signal.addEventListener("abort",or);let{results:as,loaderResults:Oo,fetcherResults:ls}=await fd(_.matches,Ve,Or,kn,Ye);if(G.signal.aborted)return;G.signal.removeEventListener("abort",or),K.delete(T),U.delete(T),kn.forEach(de=>U.delete(de.key));let Ir=zh(as);if(Ir){if(Ir.idx>=Or.length){let de=kn[Ir.idx-Or.length].key;J.add(de)}return Qt(_,Ir.result)}let{loaderData:Zi,errors:ce}=jh(_,_.matches,Or,Oo,void 0,kn,ls,Ne);if(_.fetchers.has(T)){let de=Nn(ee.data);_.fetchers.set(T,de)}vd(Ar),_.navigation.state==="loading"&&Ar>F?(te(b,"Expected pending action"),k&&k.abort(),ft(_.navigation.location,{matches:Ve,loaderData:Zi,errors:ce,fetchers:new Map(_.fetchers)})):(be({errors:ce,loaderData:Dh(_.loaderData,Zi,Ve,ce),fetchers:new Map(_.fetchers)}),N=!1)}async function ns(T,R,A,B,W,re,X){let Q=_.fetchers.get(T);$n(T,Wo(X,Q?Q.data:void 0),{flushSync:re});let G=new AbortController,ie=Vo(e.history,A,G.signal);U.set(T,G);let He=O,ee=await Ho("loader",ie,B,W,i,o,s,c.v7_relativeSplatPath);if(fr(ee)&&(ee=await N0(ee,ie.signal,!0)||ee),U.get(T)===G&&U.delete(T),!ie.signal.aborted){if(ye.has(T)){$n(T,Nn(void 0));return}if(dr(ee))if(F>He){$n(T,Nn(void 0));return}else{J.add(T),await Qt(_,ee);return}if(qr(ee)){Ao(T,R,ee.error);return}te(!fr(ee),"Unhandled fetcher deferred data"),$n(T,Nn(ee.data))}}async function Qt(T,R,A){let{submission:B,fetcherSubmission:W,replace:re}=A===void 0?{}:A;R.revalidate&&(N=!0);let X=Ri(T.location,R.location,{_isRedirect:!0});if(te(X,"Expected a location on the redirect navigation"),n){let he=!1;if(R.reloadDocument)he=!0;else if($0.test(R.location)){const Ye=e.history.createURL(R.location);he=Ye.origin!==t.location.origin||br(Ye.pathname,s)==null}if(he){re?t.location.replace(R.location):t.location.assign(R.location);return}}k=null;let Q=re===!0?Ie.Replace:Ie.Push,{formMethod:G,formAction:ie,formEncType:He}=T.navigation;!B&&!W&&G&&ie&&He&&(B=Uh(T.navigation));let ee=B||W;if(Cw.has(R.status)&&ee&&Bt(ee.formMethod))await wt(Q,X,{submission:Oe({},ee,{formAction:R.location}),preventScrollReset:$});else{let he=Ms(X,B);await wt(Q,X,{overrideNavigation:he,fetcherSubmission:W,preventScrollReset:$})}}async function fd(T,R,A,B,W){let re=await Promise.all([...A.map(G=>Ho("loader",W,G,R,i,o,s,c.v7_relativeSplatPath)),...B.map(G=>G.matches&&G.match&&G.controller?Ho("loader",Vo(e.history,G.path,G.controller.signal),G.match,G.matches,i,o,s,c.v7_relativeSplatPath):{type:Pe.error,error:Rt(404,{pathname:G.path})})]),X=re.slice(0,A.length),Q=re.slice(A.length);return await Promise.all([Bh(T,A,X,X.map(()=>W.signal),!1,_.loaderData),Bh(T,B.map(G=>G.match),Q,B.map(G=>G.controller?G.controller.signal:null),!0)]),{results:re,loaderResults:X,fetcherResults:Q}}function rs(){N=!0,z.push(...os()),se.forEach((T,R)=>{U.has(R)&&(V.push(R),Tn(R))})}function $n(T,R,A){A===void 0&&(A={}),_.fetchers.set(T,R),be({fetchers:new Map(_.fetchers)},{flushSync:(A&&A.flushSync)===!0})}function Ao(T,R,A,B){B===void 0&&(B={});let W=fi(_.matches,R);Gi(T),be({errors:{[W.route.id]:A},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function dd(T){return c.v7_fetcherPersist&&(Be.set(T,(Be.get(T)||0)+1),ye.has(T)&&ye.delete(T)),_.fetchers.get(T)||Ew}function Gi(T){let R=_.fetchers.get(T);U.has(T)&&!(R&&R.state==="loading"&&K.has(T))&&Tn(T),se.delete(T),K.delete(T),J.delete(T),ye.delete(T),_.fetchers.delete(T)}function vy(T){if(c.v7_fetcherPersist){let R=(Be.get(T)||0)-1;R<=0?(Be.delete(T),ye.add(T)):Be.set(T,R)}else Gi(T);be({fetchers:new Map(_.fetchers)})}function Tn(T){let R=U.get(T);te(R,"Expected fetch controller: "+T),R.abort(),U.delete(T)}function hd(T){for(let R of T){let A=dd(R),B=Nn(A.data);_.fetchers.set(R,B)}}function pd(){let T=[],R=!1;for(let A of J){let B=_.fetchers.get(A);te(B,"Expected fetcher: "+A),B.state==="loading"&&(J.delete(A),T.push(A),R=!0)}return hd(T),R}function vd(T){let R=[];for(let[A,B]of K)if(B0}function my(T,R){let A=_.blockers.get(T)||Uo;return we.get(T)!==R&&we.set(T,R),A}function md(T){_.blockers.delete(T),we.delete(T)}function Qi(T,R){let A=_.blockers.get(T)||Uo;te(A.state==="unblocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="blocked"||A.state==="blocked"&&R.state==="proceeding"||A.state==="blocked"&&R.state==="unblocked"||A.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+A.state+" -> "+R.state);let B=new Map(_.blockers);B.set(T,R),be({blockers:B})}function gd(T){let{currentLocation:R,nextLocation:A,historyAction:B}=T;if(we.size===0)return;we.size>1&&yo(!1,"A router only supports one blocker at a time");let W=Array.from(we.entries()),[re,X]=W[W.length-1],Q=_.blockers.get(re);if(!(Q&&Q.state==="proceeding")&&X({currentLocation:R,nextLocation:A,historyAction:B}))return re}function os(T){let R=[];return Ne.forEach((A,B)=>{(!T||T(B))&&(A.cancel(),R.push(B),Ne.delete(B))}),R}function gy(T,R,A){if(d=T,y=R,p=A||null,!g&&_.navigation===Ls){g=!0;let B=wd(_.location,_.matches);B!=null&&be({restoreScrollPosition:B})}return()=>{d=null,y=null,p=null}}function yd(T,R){return p&&p(T,R.map(B=>x0(B,_.loaderData)))||T.key}function yy(T,R){if(d&&y){let A=yd(T,R);d[A]=y()}}function wd(T,R){if(d){let A=yd(T,R),B=d[A];if(typeof B=="number")return B}return null}function wy(T){i={},l=tu(T,o,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return _},get routes(){return a},get window(){return t},initialize:xe,subscribe:jt,enableScrollRestoration:gy,navigate:Ki,fetch:es,revalidate:Jl,createHref:T=>e.history.createHref(T),encodeLocation:T=>e.history.encodeLocation(T),getFetcher:dd,deleteFetcher:vy,dispose:Se,getBlocker:my,deleteBlocker:md,_internalFetchControllers:U,_internalActiveDeferreds:Ne,_internalSetRoutes:wy},S}function bw(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nu(e,t,n,r,o,i,a,l){let s,c;if(a){s=[];for(let u of t)if(s.push(u),u.route.id===a){c=u;break}}else s=t,c=t[t.length-1];let f=Lf(o||".",If(s,i),br(e.pathname,n)||e.pathname,l==="path");return o==null&&(f.search=e.search,f.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!jf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:dn([n,f.pathname])),Cr(f)}function Ah(e,t,n,r){if(!r||!bw(r))return{path:n};if(r.formMethod&&!Aw(r.formMethod))return{path:n,error:Rt(405,{method:r.formMethod})};let o=()=>({path:n,error:Rt(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=R0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Bt(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,y)=>{let[g,C]=y;return""+p+g+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Bt(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}te(typeof FormData=="function","FormData is not available in this environment");let s,c;if(r.formData)s=ru(r.formData),c=r.formData;else if(r.body instanceof FormData)s=ru(r.body),c=r.body;else if(r.body instanceof URLSearchParams)s=r.body,c=Mh(s);else if(r.body==null)s=new URLSearchParams,c=new FormData;else try{s=new URLSearchParams(r.body),c=Mh(s)}catch{return o()}let f={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Bt(f.formMethod))return{path:n,submission:f};let u=Cn(n);return t&&u.search&&jf(u.search)&&s.append("index",""),u.search="?"+s,{path:Cr(u),submission:f}}function $w(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Oh(e,t,n,r,o,i,a,l,s,c,f,u,d,p,y,g){let C=g?Object.values(g)[0]:y?Object.values(y)[0]:void 0,v=e.createURL(t.location),m=e.createURL(o),x=g?Object.keys(g)[0]:void 0,S=$w(n,x).filter((b,$)=>{let{route:k}=b;if(k.lazy)return!0;if(k.loader==null)return!1;if(i)return k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(Tw(t.loaderData,t.matches[$],b)||l.some(L=>L===b.route.id))return!0;let P=t.matches[$],j=b;return Ih(b,Oe({currentUrl:v,currentParams:P.params,nextUrl:m,nextParams:j.params},r,{actionResult:C,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||k0(P,j)}))}),_=[];return f.forEach((b,$)=>{if(i||!n.some(D=>D.route.id===b.routeId)||c.has($))return;let k=ur(d,b.path,p);if(!k){_.push({key:$,routeId:b.routeId,path:b.path,matches:null,match:null,controller:null});return}let P=t.fetchers.get($),j=ou(k,b.path),L=!1;u.has($)?L=!1:s.includes($)?L=!0:P&&P.state!=="idle"&&P.data===void 0?L=a:L=Ih(j,Oe({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:C,defaultShouldRevalidate:a})),L&&_.push({key:$,routeId:b.routeId,path:b.path,matches:k,match:j,controller:new AbortController})}),[S,_]}function Tw(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function k0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ih(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Lh(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];te(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";yo(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!J3.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Oe({},t(o),{lazy:void 0}))}async function Ho(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let c,f,u,d=g=>{let C,v=new Promise((m,x)=>C=x);return u=()=>C(),t.signal.addEventListener("abort",u),Promise.race([g({request:t,params:n.params,context:s.requestContext}),v])};try{let g=n.route[e];if(n.route.lazy)if(g){let C,v=await Promise.all([d(g).catch(m=>{C=m}),Lh(n.route,i,o)]);if(C)throw C;f=v[0]}else if(await Lh(n.route,i,o),g=n.route[e],g)f=await d(g);else if(e==="action"){let C=new URL(t.url),v=C.pathname+C.search;throw Rt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:Pe.data,data:void 0};else if(g)f=await d(g);else{let C=new URL(t.url),v=C.pathname+C.search;throw Rt(404,{pathname:v})}te(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){c=Pe.error,f=g}finally{u&&t.signal.removeEventListener("abort",u)}if(Pw(f)){let g=f.status;if(xw.has(g)){let v=f.headers.get("Location");if(te(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!$0.test(v))v=nu(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,v,l);else if(!s.isStaticRequest){let m=new URL(t.url),x=v.startsWith("//")?new URL(m.protocol+v):new URL(v),E=br(x.pathname,a)!=null;x.origin===m.origin&&E&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw f.headers.set("Location",v),f;return{type:Pe.redirect,status:g,location:v,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:c===Pe.error?Pe.error:Pe.data,response:f};let C;try{let v=f.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?f.body==null?C=null:C=await f.json():C=await f.text()}catch(v){return{type:Pe.error,error:v}}return c===Pe.error?{type:c,error:new Mf(g,f.statusText,C),headers:f.headers}:{type:Pe.data,data:C,statusCode:f.status,headers:f.headers}}if(c===Pe.error)return{type:c,error:f};if(Nw(f)){var p,y;return{type:Pe.deferred,deferredData:f,statusCode:(p=f.init)==null?void 0:p.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:Pe.data,data:f}}function Vo(e,t,n,r){let o=e.createURL(R0(t)).toString(),i={signal:n};if(r&&Bt(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=ru(r.formData):i.body=r.formData}return new Request(o,i)}function ru(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kw(e,t,n,r,o){let i={},a=null,l,s=!1,c={};return n.forEach((f,u)=>{let d=t[u].route.id;if(te(!dr(f),"Cannot handle redirect results in processLoaderData"),qr(f)){let p=fi(e,d),y=f.error;r&&(y=Object.values(r)[0],r=void 0),a=a||{},a[p.route.id]==null&&(a[p.route.id]=y),i[d]=void 0,s||(s=!0,l=S0(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else fr(f)?(o.set(d,f.deferredData),i[d]=f.deferredData.data):i[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(l=f.statusCode),f.headers&&(c[d]=f.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:c}}function jh(e,t,n,r,o,i,a,l){let{loaderData:s,errors:c}=kw(t,n,r,o,l);for(let f=0;fr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Fh(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mf(e||500,a,new Error(l),!0)}function zh(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(dr(n))return{result:n,idx:t}}}function R0(e){let t=typeof e=="string"?Cn(e):e;return Cr(Oe({},t,{hash:""}))}function Rw(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function fr(e){return e.type===Pe.deferred}function qr(e){return e.type===Pe.error}function dr(e){return(e&&e.type)===Pe.redirect}function Nw(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Pw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Aw(e){return ww.has(e.toLowerCase())}function Bt(e){return gw.has(e.toLowerCase())}async function Bh(e,t,n,r,o,i){for(let a=0;au.route.id===s.route.id),f=c!=null&&!k0(c,s)&&(i&&i[s.route.id])!==void 0;if(fr(l)&&(o||f)){let u=r[a];te(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await N0(l,u,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function N0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pe.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Pe.error,error:o}}return{type:Pe.data,data:e.deferredData.data}}}function jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ou(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&jf(n||""))return e[e.length-1];let r=_0(e);return r[r.length-1]}function Uh(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Ms(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ow(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Wo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Iw(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Nn(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Lw(e,t){try{let n=e.sessionStorage.getItem(T0);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Mw(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(T0,JSON.stringify(n))}catch(r){yo(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;tUl(e,t),[t,e])}function A0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Ff(){let{isDataRoute:e}=h.useContext($r);return e?X3():F3()}function F3(){To()||te(!1);let e=h.useContext(Ui),{basename:t,future:n,navigator:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return A0(()=>{l.current=!0}),h.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=Lf(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:dn([t,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[t,r,a,i,e])}function O0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Lf(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function z3(e,t,n,r){To()||te(!1);let{navigator:o}=h.useContext(nr),{matches:i}=h.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Re(),f;if(t){var u;let C=typeof t=="string"?Cn(t):t;s==="/"||(u=C.pathname)!=null&&u.startsWith(s)||te(!1),f=C}else f=c;let d=f.pathname||"/",p=d;if(s!=="/"){let C=s.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=ur(e,{pathname:p}),g=W3(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:dn([s,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:dn([s,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&g?h.createElement(Hl.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function B3(){let e=Z3(),t=S0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const U3=h.createElement(B3,null);class H3 extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement($r.Provider,{value:this.props.routeContext},h.createElement(P0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function V3(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ui);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement($r.Provider,{value:t},r)}function W3(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&u.route.id?l[u.route.id]:void 0,g=u.route.errorElement||U3,s&&(c<0&&d===0?(J3("route-fallback",!1),y=!0,C=null):c===d&&(y=!0,C=u.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:u.route.Component?x=h.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=f,h.createElement(V3,{match:u,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?h.createElement(H3,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var I0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I0||{}),wo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wo||{});function K3(e){let t=h.useContext(Ui);return t||te(!1),t}function zf(e){let t=h.useContext(Df);return t||te(!1),t}function Y3(e){let t=h.useContext($r);return t||te(!1),t}function L0(e){let t=Y3(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function G3(){return zf(wo.UseNavigation).navigation}function Q3(){let{matches:e,loaderData:t}=zf(wo.UseMatches);return h.useMemo(()=>e.map(n=>x0(n,t)),[e,t])}function Z3(){var e;let t=h.useContext(P0),n=zf(wo.UseRouteError),r=L0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function X3(){let{router:e}=K3(I0.UseNavigateStable),t=L0(wo.UseNavigateStable),n=h.useRef(!1);return A0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ni({fromRouteId:t},i)))},[e,t])}const Hh={};function J3(e,t,n){!t&&!Hh[e]&&(Hh[e]=!0)}function q3(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;To()&&te(!1);let s=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:u="",hash:d="",state:p=null,key:y="default"}=r,g=h.useMemo(()=>{let C=br(f,s);return C==null?null:{location:{pathname:C,search:u,hash:d,state:p,key:y},navigationType:o}},[s,f,u,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:c},h.createElement(Hl.Provider,{children:n,value:g}))}new Promise(()=>{});function ex(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;tUl(e,t),[t,e])}function A0(e){h.useContext(nr).static||h.useLayoutEffect(e)}function Ff(){let{isDataRoute:e}=h.useContext($r);return e?Xw():Fw()}function Fw(){To()||te(!1);let e=h.useContext(Ui),{basename:t,future:n,navigator:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(If(o,n.v7_relativeSplatPath)),l=h.useRef(!1);return A0(()=>{l.current=!0}),h.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=Lf(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:dn([t,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[t,r,a,i,e])}function O0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(nr),{matches:o}=h.useContext($r),{pathname:i}=Re(),a=JSON.stringify(If(o,r.v7_relativeSplatPath));return h.useMemo(()=>Lf(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function zw(e,t,n,r){To()||te(!1);let{navigator:o}=h.useContext(nr),{matches:i}=h.useContext($r),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Re(),f;if(t){var u;let C=typeof t=="string"?Cn(t):t;s==="/"||(u=C.pathname)!=null&&u.startsWith(s)||te(!1),f=C}else f=c;let d=f.pathname||"/",p=d;if(s!=="/"){let C=s.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=ur(e,{pathname:p}),g=Ww(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:dn([s,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:dn([s,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&g?h.createElement(Hl.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ie.Pop}},g):g}function Bw(){let e=Zw(),t=S0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const Uw=h.createElement(Bw,null);class Hw extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement($r.Provider,{value:this.props.routeContext},h.createElement(P0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Vw(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Ui);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement($r.Provider,{value:t},r)}function Ww(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=a.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id]));f>=0||te(!1),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,d)=>{let p,y=!1,g=null,C=null;n&&(p=l&&u.route.id?l[u.route.id]:void 0,g=u.route.errorElement||Uw,s&&(c<0&&d===0?(Jw("route-fallback",!1),y=!0,C=null):c===d&&(y=!0,C=u.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,d+1)),m=()=>{let x;return p?x=g:y?x=C:u.route.Component?x=h.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=f,h.createElement(Vw,{match:u,routeContext:{outlet:f,matches:v,isDataRoute:n!=null},children:x})};return n&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?h.createElement(Hw,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var I0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I0||{}),wo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wo||{});function Kw(e){let t=h.useContext(Ui);return t||te(!1),t}function zf(e){let t=h.useContext(Df);return t||te(!1),t}function Yw(e){let t=h.useContext($r);return t||te(!1),t}function L0(e){let t=Yw(),n=t.matches[t.matches.length-1];return n.route.id||te(!1),n.route.id}function Gw(){return zf(wo.UseNavigation).navigation}function Qw(){let{matches:e,loaderData:t}=zf(wo.UseMatches);return h.useMemo(()=>e.map(n=>x0(n,t)),[e,t])}function Zw(){var e;let t=h.useContext(P0),n=zf(wo.UseRouteError),r=L0(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Xw(){let{router:e}=Kw(I0.UseNavigateStable),t=L0(wo.UseNavigateStable),n=h.useRef(!1);return A0(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ni({fromRouteId:t},i)))},[e,t])}const Hh={};function Jw(e,t,n){!t&&!Hh[e]&&(Hh[e]=!0)}function qw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ie.Pop,navigator:i,static:a=!1,future:l}=e;To()&&te(!1);let s=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:s,navigator:i,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=Cn(r));let{pathname:f="/",search:u="",hash:d="",state:p=null,key:y="default"}=r,g=h.useMemo(()=>{let C=br(f,s);return C==null?null:{location:{pathname:C,search:u,hash:d,state:p,key:y},navigationType:o}},[s,f,u,d,p,y,o]);return g==null?null:h.createElement(nr.Provider,{value:c},h.createElement(Hl.Provider,{children:n,value:g}))}new Promise(()=>{});function ex(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const ox=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ix="6";try{window.__reactRouterVersion=ix}catch{}function ax(e,t){return S3({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Qw({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||lx(),routes:e,mapRouteProperties:ex,window:t==null?void 0:t.window}).initialize()}function lx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:sx(t.errors)})),t}function sx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const cx=h.createContext({isTransitioning:!1}),ux=h.createContext(new Map),fx="startTransition",Vh=$l[fx],dx="flushSync",Wh=Gw[dx];function hx(e){Vh?Vh(e):e()}function Ko(e){Wh?Wh(e):e()}class px{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function vx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,c]=h.useState({isTransitioning:!1}),[f,u]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?hx(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;k.forEach(D=>C.current.delete(D)),b.fetchers.forEach((D,N)=>{D.data!==void 0&&C.current.set(N,D.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!j||L){P?Ko(()=>i(b)):m(()=>i(b));return}if(P){Ko(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Ko(()=>i(b))});D.finished.finally(()=>{Ko(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),Ko(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),c({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[n.window,d,f,C,m]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&u(new px)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,k=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});k.finished.finally(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(k)}},[m,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[s.isTransitioning,y]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,$,k)=>n.navigate(b,{state:$,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(b,$,k)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:_},h.createElement(Df.Provider,{value:o},h.createElement(ux.Provider,{value:C.current},h.createElement(cx.Provider,{value:s},h.createElement(q3,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(mx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function mx(e){let{routes:t,future:n,state:r}=e;return z3(t,void 0,r,n)}const gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M0=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=tx(t,ox),{basename:p}=h.useContext(nr),y,g=!1;if(typeof c=="string"&&yx.test(c)&&(y=c,gx))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),S=br(E.pathname,p);E.origin===x.origin&&S!=null?c=S+E.search+E.hash:g=!0}catch{}let C=j3(c,{relative:o}),v=Ex(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});function m(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",xo({},d,{href:y||C,onClick:g||i?r:m,ref:n,target:s}))});function wx(e){let{getKey:t,storageKey:n}=e;return _x({getKey:t,storageKey:n}),null}var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var au;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(au||(au={}));function xx(e){let t=h.useContext(Ui);return t||te(!1),t}function Cx(e){let t=h.useContext(Df);return t||te(!1),t}function Ex(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Ff(),c=Re(),f=O0(e,{relative:a});return h.useCallback(u=>{if(rx(u,n)){u.preventDefault();let d=r!==void 0?r:Cr(c)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,s,f,r,o,n,e,i,a,l])}const Kh="react-router-scroll-positions";let va={};function _x(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=xx(iu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Cx(au.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Q3(),c=G3();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Sx(h.useCallback(()=>{if(c.state==="idle"){let f=(t?t(l,s):null)||l.key;va[f]=window.scrollY}try{sessionStorage.setItem(n||Kh,JSON.stringify(va))}catch{}window.history.scrollRestoration="auto"},[n,t,c.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Kh);f&&(va=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(xo({},d,{pathname:br(d.pathname,a)||d.pathname}),p):t,u=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>u&&u()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Sx(e,t){let{capture:n}=t||{};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const j0={blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"API",collapsed:!0,items:[{text:"Polkadot-API",link:"/api/polkadot_api"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/examples/example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},topNav:[],theme:{},vite:{base:"/polkadot-api-docs"}},D0=h.createContext(j0);function F0(){return typeof window<"u",j0}function bx({children:e,config:t}){const[n,r]=h.useState(()=>t||F0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),w.jsx(D0.Provider,{value:n,children:e})}function Je(){return h.useContext(D0)}const $x="modulepreload",Tx=function(e){return"/polkadot-api-docs/"+e},Yh={},ot=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=Tx(s),s in Yh)return;Yh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":$x,c||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Bf=[{lazy:()=>ot(()=>import("./codegen-Det_RrnB.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./codegen-Det_RrnB.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./getting-started-BreGu7mS.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./getting-started-BreGu7mS.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./index-DnXsKHcI.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./providers-Cq8CUOwa.js"),[]),path:"/providers",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./providers-Cq8CUOwa.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./signers-DgDQ9EFK.js"),[]),path:"/signers",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./signers-DgDQ9EFK.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./types-B4PNqYsG.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./types-B4PNqYsG.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./polkadot_api-BqB0NIyl.js"),[]),path:"/api/polkadot_api",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./polkadot_api-BqB0NIyl.js"),[]),path:"/api/polkadot_api.html",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./example-CH3MJilx.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712820574e3},{lazy:()=>ot(()=>import("./example-CH3MJilx.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712820574e3}];var js={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},kx={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Rx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},Gh={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ds={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t ")," does not exist in object"));n=n[r]}return n}function B0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var i=e[o],a=[...n,o];typeof i=="string"||typeof i=="number"||i==null?r[o]=t(i,a):typeof i=="object"&&!Array.isArray(i)?r[o]=B0(i,t,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function Gt(e,t){var n={};if(typeof t=="object"){var r=e;B0(t,(l,s)=>{if(l!=null){var c=Nx(r,s);n[Qh(c)]=String(l)}})}else{var o=e;for(var i in o){var a=o[i];a!=null&&(n[Qh(i)]=a)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}var Px="var(--vocs_ExternalLink_iconUrl)",Ax="vocs_ExternalLink";const Ox=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Je(),l=a;return w.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Ax),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Px]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Zh="vocs_Link_accent_underlined",Xh="vocs_Link",Jh="vocs_Link_styleless",lu=new Map,ma=new WeakMap,qh=0,Ix=void 0;function Lx(e){return e?(ma.has(e)||(qh+=1,ma.set(e,qh.toString())),ma.get(e)):"0"}function Mx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Lx(e.root):e[t]}`).toString()}function jx(e){const t=Mx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Dx(e,t,n={},r=Ix){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=jx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),lu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=c,h.useEffect(()=>{if(a||!u)return;let x;return x=Dx(u,(E,S)=>{g({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,u,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!u&&C&&!i&&!a&&v.current!==C&&(v.current=C,g({inView:!!l,entry:void 0}));const m=[d,y.inView,y.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}function Fx(...e){return t=>{zx(t,...e)}}function zx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=Bf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=U0();return h.useEffect(()=>{o&&n()},[o,n]),w.jsx(M0,{ref:Fx(t,r),...e})}),nn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return w.jsx(Ox,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return w.jsx(Gn,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),to:l})});var Bx="vocs_NotFound_divider",Ux="vocs_NotFound",Hx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function ko({level:e,...t}){const n=`h${e}`;return w.jsxs(n,{...t,id:void 0,className:I(t.className,H0),children:[w.jsx("div",{id:t.id,className:V0}),t.children]})}function W0(e){return w.jsx(ko,{...e,className:I(e.className,Hx),level:1})}var Vx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Vx)})}function Wx(){return w.jsxs("div",{className:Ux,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx("hr",{className:Bx}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:Ds[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Kx="var(--vocs_Banner_bannerBackgroundColor)",Yx="var(--vocs_Banner_bannerHeight)",Gx="var(--vocs_Banner_bannerTextColor)",Qx="vocs_Banner_closeButton",Zx="vocs_Banner_content",Xx="vocs_Banner_inner",Jx="vocs_Banner";const qx=Object.getPrototypeOf(e5).constructor;async function e5(e,t){return new qx(String(e))(t)}function t5(e,t){return new Function(String(e))(t)}function Tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var n5=["color"],r5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,n5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),o5=["color"],i5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,o5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),a5=["color"],l5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,a5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),s5=["color"],c5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,s5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),u5=["color"],f5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,u5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],Uf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,d5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],p5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>ml(r,o));const n=e.props.children?{...e.props,children:ml(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function v5({hide:e}){const{banner:t}=Je(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>ml(r);const{default:o}=t5(r,{...Vy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(Jx),style:Gt({[Kx]:t==null?void 0:t.backgroundColor,[Gx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Xx),children:[w.jsx("div",{className:I(Zx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Qx),onClick:e,type:"button",children:w.jsx(l5,{width:14,height:14})})]})}):null}var m5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,m5),children:e})}function G0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&G0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Hi({items:e,pathname:t}){return h.useMemo(()=>G0({items:e,pathname:t}),[e,t])}function kr(){const e=h.useContext(Q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const Q0=h.createContext(void 0);function Vl(){const{pathname:e}=Re(),t=Je(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Rr(){const e=Vl(),{frontmatter:t}=kr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function g5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var y5="vocs_utils_visibleDark",w5="vocs_utils_visibleLight",Z0="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>x5(n,t))}function ze(...e){return h.useCallback(X0(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function c(u){const{scope:d,children:p,...y}=u,g=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>y,Object.values(y));return h.createElement(g.Provider,{value:C},p)}function f(u,d){const p=(d==null?void 0:d[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,C5(o,...t)]}function C5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},E5=$l.useId||(()=>{});let _5=0;function rn(e){const[t,n]=h.useState(E5());return gn(()=>{e||n(r=>r??String(_5++))},[e]),e||(t?`radix-${t}`:"")}function at(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=S5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function S5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=at(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Co=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find($5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(su,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(su,Y({},r,{ref:t}),n)});Co.displayName="Slot";const su=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...T5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});su.displayName="SlotClone";const b5=({children:e})=>h.createElement(h.Fragment,null,e);function $5(e){return h.isValidElement(e)&&e.type===b5}function T5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=k5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Co:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cu(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function R5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uu="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",P5="dismissableLayer.focusOutside";let ep;const A5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...c}=e,f=h.useContext(A5),[u,d]=h.useState(null),p=(n=u==null?void 0:u.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),g=ze(t,$=>d($)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(v),x=u?C.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=m,_=O5($=>{const k=$.target,P=[...f.branches].some(j=>j.contains(k));!S||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=I5($=>{const k=$.target;[...f.branches].some(j=>j.contains(k))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return R5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ep=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),tp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ep)}},[u,p,r,f]),h.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),tp())},[u,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(uu,$),()=>document.removeEventListener(uu,$)},[]),h.createElement(fe.div,Y({},c,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,_.onPointerDownCapture)}))});function O5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){J0(N5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&J0(P5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tp(){const e=new CustomEvent(uu);document.dispatchEvent(e)}function J0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?cu(o,i):o.dispatchEvent(i)}const Fs="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",np={bubbles:!1,cancelable:!0},q0=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),c=at(o),f=at(i),u=h.useRef(null),d=ze(t,g=>s(g)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?u.current=E:Pn(u.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(u.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const m=new MutationObserver(v);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),m.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){op.add(p);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(Fs,np);l.addEventListener(Fs,c),l.dispatchEvent(v),v.defaultPrevented||(L5(z5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Fs,c),setTimeout(()=>{const v=new CustomEvent(zs,np);l.addEventListener(zs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(zs,f),op.remove(p)},0)}}},[l,c,f,p]);const y=h.useCallback(g=>{if(!n&&!r||p.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(C&&v){const m=g.currentTarget,[x,E]=M5(m);x&&E?!g.shiftKey&&v===E?(g.preventDefault(),n&&Pn(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Pn(E,{select:!0})):v===m&&g.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function L5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function M5(e){const t=eg(e),n=rp(t,e),r=rp(t.reverse(),e);return[n,r]}function eg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rp(e,t){for(const n of e)if(!j5(n,{upTo:t}))return n}function j5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D5(e)&&t&&e.select()}}const op=F5();function F5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ip(e,t),e.unshift(t)},remove(t){var n;e=ip(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ip(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function z5(e){return e.filter(t=>t.tagName!=="A")}const tg=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?y0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function B5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=U5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=ze(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function U5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=B5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=ga(r.current);i.current=l==="mounted"?c:"none"},[l]),gn(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const c=u=>{const p=ga(r.current).includes(u.animationName);u.target===t&&p&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let Bs=0;function ng(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ap()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ap()),Bs++,()=>{Bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bs--}},[])}function ap(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qt=function(){return qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return i4;var t=a4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s4=ag(),lo="data-scroll-locked",c4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function nx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rx(e,t){return e.button===0&&(!t||t==="_self")&&!nx(e)}const ox=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ix="6";try{window.__reactRouterVersion=ix}catch{}function ax(e,t){return Sw({basename:t==null?void 0:t.basename,future:xo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Q3({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||lx(),routes:e,mapRouteProperties:ex,window:t==null?void 0:t.window}).initialize()}function lx(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=xo({},t,{errors:sx(t.errors)})),t}function sx(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mf(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const cx=h.createContext({isTransitioning:!1}),ux=h.createContext(new Map),fx="startTransition",Vh=$l[fx],dx="flushSync",Wh=G3[dx];function hx(e){Vh?Vh(e):e()}function Ko(e){Wh?Wh(e):e()}class px{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function vx(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[a,l]=h.useState(),[s,c]=h.useState({isTransitioning:!1}),[f,u]=h.useState(),[d,p]=h.useState(),[y,g]=h.useState(),C=h.useRef(new Map),{v7_startTransition:v}=r||{},m=h.useCallback(b=>{v?hx(b):b()},[v]),x=h.useCallback((b,$)=>{let{deletedFetchers:k,unstable_flushSync:P,unstable_viewTransitionOpts:j}=$;k.forEach(D=>C.current.delete(D)),b.fetchers.forEach((D,N)=>{D.data!==void 0&&C.current.set(N,D.data)});let L=n.window==null||typeof n.window.document.startViewTransition!="function";if(!j||L){P?Ko(()=>i(b)):m(()=>i(b));return}if(P){Ko(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let D=n.window.document.startViewTransition(()=>{Ko(()=>i(b))});D.finished.finally(()=>{Ko(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),Ko(()=>p(D));return}d?(f&&f.resolve(),d.skipTransition(),g({state:b,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(l(b),c({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[n.window,d,f,C,m]);h.useLayoutEffect(()=>n.subscribe(x),[n,x]),h.useEffect(()=>{s.isTransitioning&&!s.flushSync&&u(new px)},[s]),h.useEffect(()=>{if(f&&a&&n.window){let b=a,$=f.promise,k=n.window.document.startViewTransition(async()=>{m(()=>i(b)),await $});k.finished.finally(()=>{u(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(k)}},[m,a,f,n.window]),h.useEffect(()=>{f&&a&&o.location.key===a.location.key&&f.resolve()},[f,d,o.location,a]),h.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[s.isTransitioning,y]),h.useEffect(()=>{},[]);let E=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:b=>n.navigate(b),push:(b,$,k)=>n.navigate(b,{state:$,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(b,$,k)=>n.navigate(b,{replace:!0,state:$,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[n]),S=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:E,static:!1,basename:S}),[n,E,S]);return h.createElement(h.Fragment,null,h.createElement(Ui.Provider,{value:_},h.createElement(Df.Provider,{value:o},h.createElement(ux.Provider,{value:C.current},h.createElement(cx.Provider,{value:s},h.createElement(qw,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(mx,{routes:n.routes,future:n.future,state:o}):t))))),null)}function mx(e){let{routes:t,future:n,state:r}=e;return zw(t,void 0,r,n)}const gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M0=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:c,preventScrollReset:f,unstable_viewTransition:u}=t,d=tx(t,ox),{basename:p}=h.useContext(nr),y,g=!1;if(typeof c=="string"&&yx.test(c)&&(y=c,gx))try{let x=new URL(window.location.href),E=c.startsWith("//")?new URL(x.protocol+c):new URL(c),S=br(E.pathname,p);E.origin===x.origin&&S!=null?c=S+E.search+E.hash:g=!0}catch{}let C=jw(c,{relative:o}),v=Ex(c,{replace:a,state:l,target:s,preventScrollReset:f,relative:o,unstable_viewTransition:u});function m(x){r&&r(x),x.defaultPrevented||v(x)}return h.createElement("a",xo({},d,{href:y||C,onClick:g||i?r:m,ref:n,target:s}))});function wx(e){let{getKey:t,storageKey:n}=e;return _x({getKey:t,storageKey:n}),null}var iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(iu||(iu={}));var au;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(au||(au={}));function xx(e){let t=h.useContext(Ui);return t||te(!1),t}function Cx(e){let t=h.useContext(Df);return t||te(!1),t}function Ex(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Ff(),c=Re(),f=O0(e,{relative:a});return h.useCallback(u=>{if(rx(u,n)){u.preventDefault();let d=r!==void 0?r:Cr(c)===Cr(f);s(e,{replace:d,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,s,f,r,o,n,e,i,a,l])}const Kh="react-router-scroll-positions";let va={};function _x(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=xx(iu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=Cx(au.UseScrollRestoration),{basename:a}=h.useContext(nr),l=Re(),s=Qw(),c=Gw();h.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Sx(h.useCallback(()=>{if(c.state==="idle"){let f=(t?t(l,s):null)||l.key;va[f]=window.scrollY}try{sessionStorage.setItem(n||Kh,JSON.stringify(va))}catch{}window.history.scrollRestoration="auto"},[n,t,c.state,l,s])),typeof document<"u"&&(h.useLayoutEffect(()=>{try{let f=sessionStorage.getItem(n||Kh);f&&(va=JSON.parse(f))}catch{}},[n]),h.useLayoutEffect(()=>{let f=t&&a!=="/"?(d,p)=>t(xo({},d,{pathname:br(d.pathname,a)||d.pathname}),p):t,u=r==null?void 0:r.enableScrollRestoration(va,()=>window.scrollY,f);return()=>u&&u()},[r,a,t]),h.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let f=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(f){f.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function Sx(e,t){let{capture:n}=t||{};h.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const j0={blogDir:"./pages/blog",rootDir:"docs",title:"Polkadot-API",titleTemplate:"%s – Polkadot-API",description:"Typescript API to interact with polkadot chains",basePath:"/polkadot-api-docs",sidebar:[{text:"Getting Started",link:"/getting-started"},{text:"Providers",link:"/providers"},{text:"Codegen",link:"/codegen"},{text:"Types",link:"/types"},{text:"Signers",link:"/signers"},{text:"API",collapsed:!0,items:[{text:"Polkadot-API",link:"/api/polkadot_api"}]},{text:"Examples",collapsed:!0,items:[{text:"Example",link:"/examples/example"}]}],socials:[{icon:"github",link:"https://github.com/polkadot-api/polkadot-api",label:"GitHub",type:"github"}],markdown:{code:{themes:{dark:"github-dark-dimmed",light:"github-light"}}},topNav:[],theme:{},vite:{base:"/polkadot-api-docs"}},D0=h.createContext(j0);function F0(){return typeof window<"u",j0}function bx({children:e,config:t}){const[n,r]=h.useState(()=>t||F0());return h.useEffect(()=>{},[]),h.useEffect(()=>{typeof window<"u"},[n]),w.jsx(D0.Provider,{value:n,children:e})}function Je(){return h.useContext(D0)}const $x="modulepreload",Tx=function(e){return"/polkadot-api-docs/"+e},Yh={},ot=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=Tx(s),s in Yh)return;Yh[s]=!0;const c=s.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const y=i[p];if(y.href===s&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":$x,c||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Bf=[{lazy:()=>ot(()=>import("./codegen-BW4i6VDI.js"),[]),path:"/codegen",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./codegen-BW4i6VDI.js"),[]),path:"/codegen.html",type:"mdx",filePath:"codegen.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./getting-started-DftFCEeX.js"),[]),path:"/getting-started",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./getting-started-DftFCEeX.js"),[]),path:"/getting-started.html",type:"mdx",filePath:"getting-started.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./index-Bv4rNZZp.js"),[]),path:"/",type:"mdx",filePath:"index.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./providers-DaLRH4Xq.js"),[]),path:"/providers",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./providers-DaLRH4Xq.js"),[]),path:"/providers.html",type:"mdx",filePath:"providers.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./signers-_26ZosNc.js"),[]),path:"/signers",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./signers-_26ZosNc.js"),[]),path:"/signers.html",type:"mdx",filePath:"signers.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./types-DRhQjL5W.js"),[]),path:"/types",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./types-DRhQjL5W.js"),[]),path:"/types.html",type:"mdx",filePath:"types.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./polkadot_api-Bu6KXQAr.js"),[]),path:"/api/polkadot_api",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./polkadot_api-Bu6KXQAr.js"),[]),path:"/api/polkadot_api.html",type:"mdx",filePath:"api/polkadot_api.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./example-DRNFoU1P.js"),[]),path:"/examples/example",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712906123e3},{lazy:()=>ot(()=>import("./example-DRNFoU1P.js"),[]),path:"/examples/example.html",type:"mdx",filePath:"examples/example.mdx",lastUpdatedAt:1712906123e3}];var js={horizontalPadding:"var(--vocs-content_horizontalPadding)",verticalPadding:"var(--vocs-content_verticalPadding)",width:"var(--vocs-content_width)"},kx={default:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},Rx={default:"var(--vocs-fontFamily_default)",mono:"var(--vocs-fontFamily_mono)"},Gh={white:"var(--vocs-color_white)",black:"var(--vocs-color_black)",background:"var(--vocs-color_background)",background2:"var(--vocs-color_background2)",background3:"var(--vocs-color_background3)",background4:"var(--vocs-color_background4)",background5:"var(--vocs-color_background5)",backgroundAccent:"var(--vocs-color_backgroundAccent)",backgroundAccentHover:"var(--vocs-color_backgroundAccentHover)",backgroundAccentText:"var(--vocs-color_backgroundAccentText)",backgroundBlueTint:"var(--vocs-color_backgroundBlueTint)",backgroundDark:"var(--vocs-color_backgroundDark)",backgroundGreenTint:"var(--vocs-color_backgroundGreenTint)",backgroundGreenTint2:"var(--vocs-color_backgroundGreenTint2)",backgroundIrisTint:"var(--vocs-color_backgroundIrisTint)",backgroundRedTint:"var(--vocs-color_backgroundRedTint)",backgroundRedTint2:"var(--vocs-color_backgroundRedTint2)",backgroundYellowTint:"var(--vocs-color_backgroundYellowTint)",border:"var(--vocs-color_border)",border2:"var(--vocs-color_border2)",borderAccent:"var(--vocs-color_borderAccent)",borderBlue:"var(--vocs-color_borderBlue)",borderGreen:"var(--vocs-color_borderGreen)",borderIris:"var(--vocs-color_borderIris)",borderRed:"var(--vocs-color_borderRed)",borderYellow:"var(--vocs-color_borderYellow)",heading:"var(--vocs-color_heading)",inverted:"var(--vocs-color_inverted)",shadow:"var(--vocs-color_shadow)",shadow2:"var(--vocs-color_shadow2)",text:"var(--vocs-color_text)",text2:"var(--vocs-color_text2)",text3:"var(--vocs-color_text3)",text4:"var(--vocs-color_text4)",textAccent:"var(--vocs-color_textAccent)",textAccentHover:"var(--vocs-color_textAccentHover)",textBlue:"var(--vocs-color_textBlue)",textBlueHover:"var(--vocs-color_textBlueHover)",textGreen:"var(--vocs-color_textGreen)",textGreenHover:"var(--vocs-color_textGreenHover)",textIris:"var(--vocs-color_textIris)",textIrisHover:"var(--vocs-color_textIrisHover)",textRed:"var(--vocs-color_textRed)",textRedHover:"var(--vocs-color_textRedHover)",textYellow:"var(--vocs-color_textYellow)",textYellowHover:"var(--vocs-color_textYellowHover)",title:"var(--vocs-color_title)"},Ds={0:"var(--vocs-space_0)",1:"var(--vocs-space_1)",2:"var(--vocs-space_2)",3:"var(--vocs-space_3)",4:"var(--vocs-space_4)",6:"var(--vocs-space_6)",8:"var(--vocs-space_8)",12:"var(--vocs-space_12)",14:"var(--vocs-space_14)",16:"var(--vocs-space_16)",18:"var(--vocs-space_18)",20:"var(--vocs-space_20)",22:"var(--vocs-space_22)",24:"var(--vocs-space_24)",28:"var(--vocs-space_28)",32:"var(--vocs-space_32)",36:"var(--vocs-space_36)",40:"var(--vocs-space_40)",44:"var(--vocs-space_44)",48:"var(--vocs-space_48)",56:"var(--vocs-space_56)",64:"var(--vocs-space_64)",72:"var(--vocs-space_72)",80:"var(--vocs-space_80)"};function z0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t ")," does not exist in object"));n=n[r]}return n}function B0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var o in e){var i=e[o],a=[...n,o];typeof i=="string"||typeof i=="number"||i==null?r[o]=t(i,a):typeof i=="object"&&!Array.isArray(i)?r[o]=B0(i,t,a):console.warn('Skipping invalid key "'.concat(a.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function Gt(e,t){var n={};if(typeof t=="object"){var r=e;B0(t,(l,s)=>{if(l!=null){var c=Nx(r,s);n[Qh(c)]=String(l)}})}else{var o=e;for(var i in o){var a=o[i];a!=null&&(n[Qh(i)]=a)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}var Px="var(--vocs_ExternalLink_iconUrl)",Ax="vocs_ExternalLink";const Ox=h.forwardRef(({className:e,children:t,hideExternalIcon:n,href:r,...o},i)=>{const{basePath:a}=Je(),l=a;return w.jsx("a",{ref:i,className:I(e,n||typeof t!="string"?void 0:Ax),href:r,target:"_blank",rel:"noopener noreferrer",style:Gt({[Px]:`url(${l}/.vocs/icons/arrow-diagonal.svg)`}),...o,children:t})});var Zh="vocs_Link_accent_underlined",Xh="vocs_Link",Jh="vocs_Link_styleless",lu=new Map,ma=new WeakMap,qh=0,Ix=void 0;function Lx(e){return e?(ma.has(e)||(qh+=1,ma.set(e,qh.toString())),ma.get(e)):"0"}function Mx(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Lx(e.root):e[t]}`).toString()}function jx(e){const t=Mx(e);let n=lu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(l=>{var s;const c=l.isIntersecting&&o.some(f=>l.intersectionRatio>=f);e.trackVisibility&&typeof l.isVisible>"u"&&(l.isVisible=c),(s=r.get(l.target))==null||s.forEach(f=>{f(c,l)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},lu.set(t,n)}return n}function Dx(e,t,n={},r=Ix){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=jx(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),l.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),lu.delete(o))}}function U0({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:s,onChange:c}={}){var f;const[u,d]=h.useState(null),p=h.useRef(),[y,g]=h.useState({inView:!!l,entry:void 0});p.current=c,h.useEffect(()=>{if(a||!u)return;let x;return x=Dx(u,(E,S)=>{g({inView:E,entry:S}),p.current&&p.current(E,S),S.isIntersecting&&i&&x&&(x(),x=void 0)},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},s),()=>{x&&x()}},[Array.isArray(e)?e.toString():e,u,o,r,i,a,n,s,t]);const C=(f=y.entry)==null?void 0:f.target,v=h.useRef();!u&&C&&!i&&!a&&v.current!==C&&(v.current=C,g({inView:!!l,entry:void 0}));const m=[d,y.inView,y.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}function Fx(...e){return t=>{zx(t,...e)}}function zx(e,...t){t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}const Gn=h.forwardRef((e,t)=>{const n=()=>{var i;return(i=Bf.find(a=>a.path===e.to))==null?void 0:i.lazy()},{ref:r,inView:o}=U0();return h.useEffect(()=>{o&&n()},[o,n]),w.jsx(M0,{ref:Fx(t,r),...e})}),nn=h.forwardRef((e,t)=>{const{href:n,variant:r="accent underlined"}=e,{pathname:o}=Re();if(n!=null&&n.match(/^(www|https?)/))return w.jsx(Ox,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),hideExternalIcon:e.hideExternalIcon});const[i,a]=(n||"").split("#"),l=`${i||o}${a?`#${a}`:""}`;return w.jsx(Gn,{...e,ref:t,className:I(e.className,Xh,r==="accent underlined"&&Zh,r==="styleless"&&Jh),to:l})});var Bx="vocs_NotFound_divider",Ux="vocs_NotFound",Hx="vocs_H1",H0="vocs_Heading",V0="vocs_Heading_slugTarget";function ko({level:e,...t}){const n=`h${e}`;return w.jsxs(n,{...t,id:void 0,className:I(t.className,H0),children:[w.jsx("div",{id:t.id,className:V0}),t.children]})}function W0(e){return w.jsx(ko,{...e,className:I(e.className,Hx),level:1})}var Vx="vocs_Paragraph";function K0(e){return w.jsx("p",{...e,className:I(e.className,Vx)})}function Wx(){return w.jsxs("div",{className:Ux,children:[w.jsx(W0,{children:"Page Not Found"}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx("hr",{className:Bx}),w.jsx("div",{style:{height:Ds[24]}}),w.jsx(K0,{children:"The page you were looking for could not be found."}),w.jsx("div",{style:{height:Ds[8]}}),w.jsx(nn,{href:"/",children:"Go to Home Page"})]})}var Kx="var(--vocs_Banner_bannerBackgroundColor)",Yx="var(--vocs_Banner_bannerHeight)",Gx="var(--vocs_Banner_bannerTextColor)",Qx="vocs_Banner_closeButton",Zx="vocs_Banner_content",Xx="vocs_Banner_inner",Jx="vocs_Banner";const qx=Object.getPrototypeOf(e5).constructor;async function e5(e,t){return new qx(String(e))(t)}function t5(e,t){return new Function(String(e))(t)}function Tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var n5=["color"],r5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,n5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),o5=["color"],i5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,o5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),a5=["color"],l5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,a5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),s5=["color"],c5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,s5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),u5=["color"],f5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,u5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),d5=["color"],Uf=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,d5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),h5=["color"],p5=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Tr(e,h5);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M12.1464 1.14645C12.3417 0.951184 12.6583 0.951184 12.8535 1.14645L14.8535 3.14645C15.0488 3.34171 15.0488 3.65829 14.8535 3.85355L10.9109 7.79618C10.8349 7.87218 10.7471 7.93543 10.651 7.9835L6.72359 9.94721C6.53109 10.0435 6.29861 10.0057 6.14643 9.85355C5.99425 9.70137 5.95652 9.46889 6.05277 9.27639L8.01648 5.34897C8.06455 5.25283 8.1278 5.16507 8.2038 5.08907L12.1464 1.14645ZM12.5 2.20711L8.91091 5.79618L7.87266 7.87267L8.12731 8.12732L10.2038 7.08907L13.7929 3.5L12.5 2.20711ZM9.99998 2L8.99998 3H4.9C4.47171 3 4.18056 3.00039 3.95552 3.01877C3.73631 3.03668 3.62421 3.06915 3.54601 3.10899C3.35785 3.20487 3.20487 3.35785 3.10899 3.54601C3.06915 3.62421 3.03669 3.73631 3.01878 3.95552C3.00039 4.18056 3 4.47171 3 4.9V11.1C3 11.5283 3.00039 11.8194 3.01878 12.0445C3.03669 12.2637 3.06915 12.3758 3.10899 12.454C3.20487 12.6422 3.35785 12.7951 3.54601 12.891C3.62421 12.9309 3.73631 12.9633 3.95552 12.9812C4.18056 12.9996 4.47171 13 4.9 13H11.1C11.5283 13 11.8194 12.9996 12.0445 12.9812C12.2637 12.9633 12.3758 12.9309 12.454 12.891C12.6422 12.7951 12.7951 12.6422 12.891 12.454C12.9309 12.3758 12.9633 12.2637 12.9812 12.0445C12.9996 11.8194 13 11.5283 13 11.1V6.99998L14 5.99998V11.1V11.1207C14 11.5231 14 11.8553 13.9779 12.1259C13.9549 12.407 13.9057 12.6653 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.6653 13.9057 12.407 13.9549 12.1259 13.9779C11.8553 14 11.5231 14 11.1207 14H11.1H4.9H4.87934C4.47686 14 4.14468 14 3.87409 13.9779C3.59304 13.9549 3.33469 13.9057 3.09202 13.782C2.7157 13.5903 2.40973 13.2843 2.21799 12.908C2.09434 12.6653 2.04506 12.407 2.0221 12.1259C1.99999 11.8553 1.99999 11.5231 2 11.1207V11.1206V11.1V4.9V4.87935V4.87932V4.87931C1.99999 4.47685 1.99999 4.14468 2.0221 3.87409C2.04506 3.59304 2.09434 3.33469 2.21799 3.09202C2.40973 2.71569 2.7157 2.40973 3.09202 2.21799C3.33469 2.09434 3.59304 2.04506 3.87409 2.0221C4.14468 1.99999 4.47685 1.99999 4.87932 2H4.87935H4.9H9.99998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ml(e,t){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map((r,o)=>ml(r,o));const n=e.props.children?{...e.props,children:ml(e.props.children)}:e.props;return Z.createElement(e.type,{...n,key:t})}function v5({hide:e}){const{banner:t}=Je(),n=h.useMemo(()=>{const r=(t==null?void 0:t.content)??"";if(!r)return null;if(typeof r!="string")return()=>ml(r);const{default:o}=t5(r,{...Vy,Fragment:h.Fragment});return o},[t]);return n?w.jsx("div",{className:I(Jx),style:Gt({[Kx]:t==null?void 0:t.backgroundColor,[Gx]:t==null?void 0:t.textColor}),children:w.jsxs("div",{className:I(Xx),children:[w.jsx("div",{className:I(Zx),children:w.jsx(n,{})}),(t==null?void 0:t.dismissable)!=="false"&&w.jsx("button",{className:I(Qx),onClick:e,type:"button",children:w.jsx(l5,{width:14,height:14})})]})}):null}var m5="vocs_Content";function Y0({children:e,className:t}){return w.jsx("article",{className:I(t,m5),children:e})}function G0({items:e,pathname:t}){const n=t.replace(/\.html$/,""),r=[];for(const o of e)(o.link&&n.startsWith(o.match||o.link)||o.items&&G0({items:o.items,pathname:t}).length>0)&&r.push(o.id);return r}function Hi({items:e,pathname:t}){return h.useMemo(()=>G0({items:e,pathname:t}),[e,t])}function kr(){const e=h.useContext(Q0);if(!e)throw new Error("`usePageData` must be used within `PageDataContext.Provider`.");return e}const Q0=h.createContext(void 0);function Vl(){const{pathname:e}=Re(),t=Je(),{sidebar:n}=t;if(!n)return{items:[]};if(Array.isArray(n))return{items:n};const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);return r?Array.isArray(n[r])?{key:r,items:n[r]}:{...n[r],key:r}:{items:[]}}function Rr(){const e=Vl(),{frontmatter:t}=kr(),{layout:n,showLogo:r,showOutline:o,showSidebar:i,showTopNav:a}=t||{},l=n??"docs";return{layout:l,get showLogo(){return typeof r<"u"?r:!0},get showOutline(){return typeof o<"u"?o:l==="docs"},get showSidebar(){return e.items.length===0?!1:typeof i<"u"?i:!(l==="minimal"||l==="landing")},get showTopNav(){return typeof a<"u"?a:!0}}}function g5(){const[e,t]=h.useState(()=>{if(!(typeof window>"u")){if(localStorage.getItem("vocs.theme")){const n=localStorage.getItem("vocs.theme");if(n)return n}return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}});return h.useEffect(()=>{e&&localStorage.setItem("vocs.theme",e),e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),{theme:e,toggle(){t(n=>n==="light"?"dark":"light")}}}var y5="vocs_utils_visibleDark",w5="vocs_utils_visibleLight",Z0="vocs_utils_visuallyHidden";function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>x5(n,t))}function ze(...e){return h.useCallback(X0(...e),e)}function En(e,t=[]){let n=[];function r(i,a){const l=h.createContext(a),s=n.length;n=[...n,a];function c(u){const{scope:d,children:p,...y}=u,g=(d==null?void 0:d[e][s])||l,C=h.useMemo(()=>y,Object.values(y));return h.createElement(g.Provider,{value:C},p)}function f(u,d){const p=(d==null?void 0:d[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[r,C5(o,...t)]}function C5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((l,{useScope:s,scopeName:c})=>{const u=s(i)[`__scope${c}`];return{...l,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},E5=$l.useId||(()=>{});let _5=0;function rn(e){const[t,n]=h.useState(E5());return gn(()=>{e||n(r=>r??String(_5++))},[e]),e||(t?`radix-${t}`:"")}function at(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=S5({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,l=at(n),s=h.useCallback(c=>{if(i){const u=typeof c=="function"?c(e):c;u!==e&&l(u)}else o(c)},[i,e,o,l]);return[a,s]}function S5({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),i=at(t);return h.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Co=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),i=o.find($5);if(i){const a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return h.createElement(su,Y({},r,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,l):null)}return h.createElement(su,Y({},r,{ref:t}),n)});Co.displayName="Slot";const su=h.forwardRef((e,t)=>{const{children:n,...r}=e;return h.isValidElement(n)?h.cloneElement(n,{...T5(r,n.props),ref:t?X0(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});su.displayName="SlotClone";const b5=({children:e})=>h.createElement(h.Fragment,null,e);function $5(e){return h.isValidElement(e)&&e.type===b5}function T5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const k5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=k5.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,l=i?Co:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(l,Y({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cu(e,t){e&&$o.flushSync(()=>e.dispatchEvent(t))}function R5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const uu="dismissableLayer.update",N5="dismissableLayer.pointerDownOutside",P5="dismissableLayer.focusOutside";let ep;const A5=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hf=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...c}=e,f=h.useContext(A5),[u,d]=h.useState(null),p=(n=u==null?void 0:u.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,y]=h.useState({}),g=ze(t,$=>d($)),C=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),m=C.indexOf(v),x=u?C.indexOf(u):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=x>=m,_=O5($=>{const k=$.target,P=[...f.branches].some(j=>j.contains(k));!S||P||(i==null||i($),l==null||l($),$.defaultPrevented||s==null||s())},p),b=I5($=>{const k=$.target;[...f.branches].some(j=>j.contains(k))||(a==null||a($),l==null||l($),$.defaultPrevented||s==null||s())},p);return R5($=>{x===f.layers.size-1&&(o==null||o($),!$.defaultPrevented&&s&&($.preventDefault(),s()))},p),h.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ep=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),tp(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ep)}},[u,p,r,f]),h.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),tp())},[u,f]),h.useEffect(()=>{const $=()=>y({});return document.addEventListener(uu,$),()=>document.removeEventListener(uu,$)},[]),h.createElement(fe.div,Y({},c,{ref:g,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,_.onPointerDownCapture)}))});function O5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){J0(N5,n,s,{discrete:!0})};const s={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I5(e,t=globalThis==null?void 0:globalThis.document){const n=at(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&J0(P5,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tp(){const e=new CustomEvent(uu);document.dispatchEvent(e)}function J0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?cu(o,i):o.dispatchEvent(i)}const Fs="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",np={bubbles:!1,cancelable:!0},q0=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=h.useState(null),c=at(o),f=at(i),u=h.useRef(null),d=ze(t,g=>s(g)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(x){if(p.paused||!l)return;const E=x.target;l.contains(E)?u.current=E:Pn(u.current,{select:!0})},C=function(x){if(p.paused||!l)return;const E=x.relatedTarget;E!==null&&(l.contains(E)||Pn(u.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Pn(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const m=new MutationObserver(v);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),m.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){op.add(p);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(Fs,np);l.addEventListener(Fs,c),l.dispatchEvent(v),v.defaultPrevented||(L5(z5(eg(l)),{select:!0}),document.activeElement===g&&Pn(l))}return()=>{l.removeEventListener(Fs,c),setTimeout(()=>{const v=new CustomEvent(zs,np);l.addEventListener(zs,f),l.dispatchEvent(v),v.defaultPrevented||Pn(g??document.body,{select:!0}),l.removeEventListener(zs,f),op.remove(p)},0)}}},[l,c,f,p]);const y=h.useCallback(g=>{if(!n&&!r||p.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(C&&v){const m=g.currentTarget,[x,E]=M5(m);x&&E?!g.shiftKey&&v===E?(g.preventDefault(),n&&Pn(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Pn(E,{select:!0})):v===m&&g.preventDefault()}},[n,r,p.paused]);return h.createElement(fe.div,Y({tabIndex:-1},a,{ref:d,onKeyDown:y}))});function L5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pn(r,{select:t}),document.activeElement!==n)return}function M5(e){const t=eg(e),n=rp(t,e),r=rp(t.reverse(),e);return[n,r]}function eg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rp(e,t){for(const n of e)if(!j5(n,{upTo:t}))return n}function j5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D5(e){return e instanceof HTMLInputElement&&"select"in e}function Pn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D5(e)&&t&&e.select()}}const op=F5();function F5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ip(e,t),e.unshift(t)},remove(t){var n;e=ip(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function ip(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function z5(e){return e.filter(t=>t.tagName!=="A")}const tg=h.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?y0.createPortal(h.createElement(fe.div,Y({},o,{ref:t})),r):null});function B5(e,t){return h.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _n=e=>{const{present:t,children:n}=e,r=U5(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=ze(r.ref,o.ref);return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};_n.displayName="Presence";function U5(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=B5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=ga(r.current);i.current=l==="mounted"?c:"none"},[l]),gn(()=>{const c=r.current,f=o.current;if(f!==e){const d=i.current,p=ga(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gn(()=>{if(t){const c=u=>{const p=ga(r.current).includes(u.animationName);u.target===t&&p&&$o.flushSync(()=>s("ANIMATION_END"))},f=u=>{u.target===t&&(i.current=ga(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}let Bs=0;function ng(){h.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:ap()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:ap()),Bs++,()=>{Bs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Bs--}},[])}function ap(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var qt=function(){return qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return i4;var t=a4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s4=ag(),lo="data-scroll-locked",c4=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` .`.concat(V5,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; @@ -105,13 +105,13 @@ Error generating stack: `+i.message+` `)},sp=function(){var e=parseInt(document.body.getAttribute(lo)||"0",10);return isFinite(e)?e:0},u4=function(){h.useEffect(function(){return document.body.setAttribute(lo,(sp()+1).toString()),function(){var e=sp()-1;e<=0?document.body.removeAttribute(lo):document.body.setAttribute(lo,e.toString())}},[])},f4=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;u4();var i=h.useMemo(function(){return l4(o)},[o]);return h.createElement(s4,{styles:c4(i,!t,o,n?"":"!important")})},fu=!1;if(typeof window<"u")try{var ya=Object.defineProperty({},"passive",{get:function(){return fu=!0,!0}});window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch{fu=!1}var Mr=fu?{passive:!1}:!1,d4=function(e){return e.tagName==="TEXTAREA"},lg=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!d4(e)&&n[t]==="visible")},h4=function(e){return lg(e,"overflowY")},p4=function(e){return lg(e,"overflowX")},cp=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=sg(e,n);if(r){var o=cg(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},v4=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m4=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},sg=function(e,t){return e==="v"?h4(t):p4(t)},cg=function(e,t){return e==="v"?v4(t):m4(t)},g4=function(e,t){return e==="h"&&t==="rtl"?-1:1},y4=function(e,t,n,r,o){var i=g4(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,f=a>0,u=0,d=0;do{var p=cg(e,l),y=p[0],g=p[1],C=p[2],v=g-C-i*y;(y||v)&&sg(e,l)&&(u+=v,d+=y),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(o&&u===0||!o&&a>u)||!f&&(o&&d===0||!o&&-a>d))&&(c=!0),c},wa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},up=function(e){return[e.deltaX,e.deltaY]},fp=function(e){return e&&"current"in e?e.current:e},w4=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x4=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},C4=0,jr=[];function E4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(C4++)[0],i=h.useState(function(){return ag()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=H5([e.lockRef.current],(e.shards||[]).map(fp),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,C){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=wa(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-v[0],E="deltaY"in g?g.deltaY:m[1]-v[1],S,_=g.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in g&&b==="h"&&_.type==="range")return!1;var $=cp(b,_);if(!$)return!0;if($?S=b:(S=b==="v"?"h":"v",$=cp(b,_)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=S),!S)return!0;var k=r.current||S;return y4(k,C,g,k==="h"?x:E,!0)},[]),s=h.useCallback(function(g){var C=g;if(!(!jr.length||jr[jr.length-1]!==i)){var v="deltaY"in C?up(C):wa(C),m=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&w4(S.delta,v)})[0];if(m&&m.should){C.cancelable&&C.preventDefault();return}if(!m){var x=(a.current.shards||[]).map(fp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=h.useCallback(function(g,C,v,m){var x={name:g,delta:C,target:v,should:m};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(g){n.current=wa(g),r.current=void 0},[]),u=h.useCallback(function(g){c(g.type,up(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){c(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Mr),document.addEventListener("touchmove",s,Mr),document.addEventListener("touchstart",f,Mr),function(){jr=jr.filter(function(g){return g!==i}),document.removeEventListener("wheel",s,Mr),document.removeEventListener("touchmove",s,Mr),document.removeEventListener("touchstart",f,Mr)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:x4(o)}):null,p?h.createElement(f4,{gapMode:"margin"}):null)}const _4=J5(ig,E4);var ug=h.forwardRef(function(e,t){return h.createElement(Wl,qt({},e,{ref:t,sideCar:_4}))});ug.classNames=Wl.classNames;const fg=ug;var S4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,xa=new WeakMap,Ca={},Ws=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},b4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$4=function(e,t,n,r){var o=b4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),y=p!==null&&p!=="false",g=(Dr.get(d)||0)+1,C=(i.get(d)||0)+1;Dr.set(d,g),i.set(d,C),a.push(d),g===1&&y&&xa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Ws++,function(){a.forEach(function(u){var d=Dr.get(u)-1,p=i.get(u)-1;Dr.set(u,d),i.set(u,p),d||(xa.has(u)||u.removeAttribute(r),xa.delete(u)),p||u.removeAttribute(n)}),Ws--,Ws||(Dr=new WeakMap,Dr=new WeakMap,xa=new WeakMap,Ca={})}},hg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||S4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,qb]=En(pg),[T4,Sn]=vg(pg),k4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[c=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(T4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(u=>!u),[f]),modal:a},n)},R4="DialogTrigger",N4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(R4,n),i=ze(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vf(o.open)},r,{ref:i,onClick:ae(e.onClick,o.onOpenToggle)}))}),mg="DialogPortal",[P4,gg]=vg(mg,{forceMount:void 0}),A4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(mg,t);return h.createElement(P4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},du="DialogOverlay",O4=h.forwardRef((e,t)=>{const n=gg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(du,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(I4,Y({},o,{ref:t}))):null}),I4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(du,n);return h.createElement(fg,{as:Co,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Vf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Pi="DialogContent",L4=h.forwardRef((e,t)=>{const n=gg(Pi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Pi,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(M4,Y({},o,{ref:t})):h.createElement(j4,Y({},o,{ref:t})))}),M4=h.forwardRef((e,t)=>{const n=Sn(Pi,e.__scopeDialog),r=h.useRef(null),o=ze(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return hg(i)},[]),h.createElement(yg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault())}))}),j4=h.forwardRef((e,t)=>{const n=Sn(Pi,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(yg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),yg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Pi,n),s=h.useRef(null),c=ze(t,s);return ng(),h.createElement(h.Fragment,null,h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vf(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),D4="DialogTitle",F4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(D4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Vf(e){return e?"open":"closed"}const wg=k4,xg=N4,z4=A4,B4=O4,U4=L4,H4=F4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var K4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ks=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Fr(this._path),n=t.node,r=t.keys;if(Fr(r)===Qe)return{done:!1,value:this.result()};var o=n.get(Fr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Fr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Fr(n)}).filter(function(t){return t!==Qe}).join("")},e.prototype.value=function(){return Fr(this._path).node.get(Qe)},e.prototype.result=function(){switch(this._type){case Eg:return this.value();case Cg:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Fr=function(e){return e[e.length-1]},Y4=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}_g(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},Ys=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(gl(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Wf(a),2),s=l[0],c=l[1];try{for(var f=ne(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==Qe&&d.startsWith(c)){var p=new Map;return p.set(d.slice(c.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,G4(this._tree,t)},e.prototype.entries=function(){return new Ks(this,K4)},e.prototype.forEach=function(t){var n,r;try{for(var o=ne(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return Y4(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ks(this,Cg)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t);return r.set(Qe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t);return r.set(Qe,n(r.get(Qe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ks(this,Eg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],c=l[1];o.set(s,c)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),gl=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=ne(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Qe&&t.startsWith(l))return n.push([e,l]),gl(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),gl(void 0,"",n)},hu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=ne(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Qe&&t.startsWith(a))return hu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Gs=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ys,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=vu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return V4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,p,y,g,C,v,m,x,E,S,_,b,$,k,P,j;return W4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.batchWait,a=1,L.label=1;case 1:L.trys.push([1,7,8,9]),l=ne(this._index),s=l.next(),L.label=2;case 2:if(s.done)return[3,6];c=Le(s.value,2),f=c[0],u=c[1];try{for(d=($=void 0,ne(u)),p=d.next();!p.done;p=d.next()){y=Le(p.value,2),g=y[0],C=y[1];try{for(v=(P=void 0,ne(C)),m=v.next();!m.done;m=v.next())x=Le(m.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?u.delete(g):C.delete(E))}catch(D){P={error:D}}finally{try{m&&!m.done&&(j=v.return)&&j.call(v)}finally{if(P)throw P.error}}}}catch(D){$={error:D}}finally{try{p&&!p.done&&(k=d.return)&&k.call(d)}finally{if($)throw $.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(D){return setTimeout(D,i)})];case 3:L.sent(),L.label=4;case 4:a+=1,L.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=L.sent(),_={error:S},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(_)throw _.error}return[7];case 9:this._dirtCount-=r,L.label=10;case 10:return[4,null];case 11:return L.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Xs.minDirtCount,r=r||Xs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=ne(i),s=l.next();!s.done;s=l.next()){var c=Le(s.value,2),f=c[0],u=c[1],d=u.score,p=u.terms,y=u.match,g=p.length||1,C={id:this._documentIds.get(f),score:d*g,terms:Object.keys(y),queryTerms:p,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(pp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=pe(pe({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=ne(this.search(t,n)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=u,y.count+=1):l.set(p,{score:u,terms:d,count:1})}}catch(S){r={error:S}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var g=[];try{for(var C=ne(l),v=C.next();!v.done;v=C.next()){var m=Le(v.value,2),y=m[0],x=m[1],u=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:u/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return g.sort(pp),g},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Zs.hasOwnProperty(t))return Qs(Zs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=t.nextId,d=t.documentIds,p=t.fieldIds,y=t.fieldLength,g=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,m=t.serializationVersion;if(m!==1&&m!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=u,x._documentIds=Ea(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=Ea(y),x._avgFieldLength=g,x._storedFields=Ea(C),x._dirtCount=v||0,x._index=new Ys;try{for(var E=ne(x._documentIds),S=E.next();!S.done;S=E.next()){var _=Le(S.value,2),b=_[0],$=_[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=ne(c),P=k.next();!P.done;P=k.next()){var j=Le(P.value,2),L=j[0],D=j[1],N=new Map;try{for(var z=(l=void 0,ne(Object.keys(D))),V=z.next();!V.done;V=z.next()){var U=V.value,O=D[U];m===1&&(O=O.ds),N.set(parseInt(U,10),Ea(O))}}catch(F){l={error:F}}finally{try{V&&!V.done&&(s=z.return)&&s.call(z)}finally{if(l)throw l.error}}x._index.set(L,N)}}catch(F){i={error:F}}finally{try{P&&!P.done&&(a=k.return)&&a.call(k)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=pe(pe(pe({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,c=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,p=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(e7(f)),g=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(g,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=pe(pe({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(U,O){var F;return pe(pe({},U),(F={},F[O]=Qs(l.boost,O)||1,F))},{}),c=l.boostDocument,f=l.weights,u=l.maxFuzzy,d=l.bm25,p=pe(pe({},dp.weights),f),y=p.fuzzy,g=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,c,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(u,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(m)try{for(var _=ne(m),b=_.next();!b.done;b=_.next()){var $=Le(b.value,2),k=$[0],P=$[1],j=k.length-t.term.length;if(j){x==null||x.delete(k);var L=g*k.length/(k.length+.3*j);this.termResults(t.term,k,L,P,s,c,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var k=N.value,z=Le(x.get(k),2),V=z[0],j=z[1];if(j){var L=y*k.length/(k.length+j);this.termResults(t.term,k,L,V,s,c,d,v)}}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=D.return)&&a.call(D)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=pe(pe({},this._options.searchOptions),t);try{for(var a=ne(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Kf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(X4[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=ne(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),c=s[0],f=s[1],u={};try{for(var d=(r=void 0,ne(f)),p=d.next();!p.done;p=d.next()){var y=Le(p.value,2),g=y[0],C=y[1];u[g]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([c,u])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var c,f,u,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=ne(Object.keys(i)),g=y.next();!g.done;g=y.next()){var C=g.value,v=i[C],m=this._fieldIds[C],x=o.get(m);if(x!=null){var E=x.size,S=this._avgFieldLength[m];try{for(var _=(u=void 0,ne(x.keys())),b=_.next();!b.done;b=_.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var k=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(k){var P=x.get($),j=this._fieldLength.get($)[m],L=q4(P,E,this._documentCount,j,S,l),D=r*v*k*L,N=s.get($);if(N){N.score+=D,n7(N.terms,t);var z=Qs(N.match,n);z?z.push(C):N.match[n]=[C]}else s.set($,{score:D,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(V){u={error:V}}finally{try{b&&!b.done&&(d=_.return)&&d.call(_)}finally{if(u)throw u.error}}}}}catch(V){c={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,vp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,vp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=ne(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(c){o={error:c}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-f9a28e4f.json")).json());let Js;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Js||(Js=o7());const n=await Js,r=Z4.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var i7="vocs_DesktopSearch_search",a7="vocs_DesktopSearch_searchCommand";const l7=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),s7=l7;var kg={exports:{}};/*!*************************************************** +`)},C4=0,jr=[];function E4(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(C4++)[0],i=h.useState(function(){return ag()})[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=H5([e.lockRef.current],(e.shards||[]).map(fp),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(g,C){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var v=wa(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-v[0],E="deltaY"in g?g.deltaY:m[1]-v[1],S,_=g.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in g&&b==="h"&&_.type==="range")return!1;var $=cp(b,_);if(!$)return!0;if($?S=b:(S=b==="v"?"h":"v",$=cp(b,_)),!$)return!1;if(!r.current&&"changedTouches"in g&&(x||E)&&(r.current=S),!S)return!0;var k=r.current||S;return y4(k,C,g,k==="h"?x:E,!0)},[]),s=h.useCallback(function(g){var C=g;if(!(!jr.length||jr[jr.length-1]!==i)){var v="deltaY"in C?up(C):wa(C),m=t.current.filter(function(S){return S.name===C.type&&S.target===C.target&&w4(S.delta,v)})[0];if(m&&m.should){C.cancelable&&C.preventDefault();return}if(!m){var x=(a.current.shards||[]).map(fp).filter(Boolean).filter(function(S){return S.contains(C.target)}),E=x.length>0?l(C,x[0]):!a.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),c=h.useCallback(function(g,C,v,m){var x={name:g,delta:C,target:v,should:m};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=h.useCallback(function(g){n.current=wa(g),r.current=void 0},[]),u=h.useCallback(function(g){c(g.type,up(g),g.target,l(g,e.lockRef.current))},[]),d=h.useCallback(function(g){c(g.type,wa(g),g.target,l(g,e.lockRef.current))},[]);h.useEffect(function(){return jr.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",s,Mr),document.addEventListener("touchmove",s,Mr),document.addEventListener("touchstart",f,Mr),function(){jr=jr.filter(function(g){return g!==i}),document.removeEventListener("wheel",s,Mr),document.removeEventListener("touchmove",s,Mr),document.removeEventListener("touchstart",f,Mr)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:x4(o)}):null,p?h.createElement(f4,{gapMode:"margin"}):null)}const _4=J5(ig,E4);var ug=h.forwardRef(function(e,t){return h.createElement(Wl,qt({},e,{ref:t,sideCar:_4}))});ug.classNames=Wl.classNames;const fg=ug;var S4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dr=new WeakMap,xa=new WeakMap,Ca={},Ws=0,dg=function(e){return e&&(e.host||dg(e.parentNode))},b4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dg(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$4=function(e,t,n,r){var o=b4(t,Array.isArray(e)?e:[e]);Ca[n]||(Ca[n]=new WeakMap);var i=Ca[n],a=[],l=new Set,s=new Set(o),c=function(u){!u||l.has(u)||(l.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.children,function(d){if(l.has(d))f(d);else try{var p=d.getAttribute(r),y=p!==null&&p!=="false",g=(Dr.get(d)||0)+1,C=(i.get(d)||0)+1;Dr.set(d,g),i.set(d,C),a.push(d),g===1&&y&&xa.set(d,!0),C===1&&d.setAttribute(n,"true"),y||d.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return f(t),l.clear(),Ws++,function(){a.forEach(function(u){var d=Dr.get(u)-1,p=i.get(u)-1;Dr.set(u,d),i.set(u,p),d||(xa.has(u)||u.removeAttribute(r),xa.delete(u)),p||u.removeAttribute(n)}),Ws--,Ws||(Dr=new WeakMap,Dr=new WeakMap,xa=new WeakMap,Ca={})}},hg=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||S4(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),$4(r,o,n,"aria-hidden")):function(){return null}};const pg="Dialog",[vg,qb]=En(pg),[T4,Sn]=vg(pg),k4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=h.useRef(null),s=h.useRef(null),[c=!1,f]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(T4,{scope:t,triggerRef:l,contentRef:s,contentId:rn(),titleId:rn(),descriptionId:rn(),open:c,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(u=>!u),[f]),modal:a},n)},R4="DialogTrigger",N4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(R4,n),i=ze(t,o.triggerRef);return h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vf(o.open)},r,{ref:i,onClick:ae(e.onClick,o.onOpenToggle)}))}),mg="DialogPortal",[P4,gg]=vg(mg,{forceMount:void 0}),A4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Sn(mg,t);return h.createElement(P4,{scope:t,forceMount:n},h.Children.map(r,a=>h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},a))))},du="DialogOverlay",O4=h.forwardRef((e,t)=>{const n=gg(du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(du,e.__scopeDialog);return i.modal?h.createElement(_n,{present:r||i.open},h.createElement(I4,Y({},o,{ref:t}))):null}),I4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(du,n);return h.createElement(fg,{as:Co,allowPinchZoom:!0,shards:[o.contentRef]},h.createElement(fe.div,Y({"data-state":Vf(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Pi="DialogContent",L4=h.forwardRef((e,t)=>{const n=gg(Pi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Sn(Pi,e.__scopeDialog);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(M4,Y({},o,{ref:t})):h.createElement(j4,Y({},o,{ref:t})))}),M4=h.forwardRef((e,t)=>{const n=Sn(Pi,e.__scopeDialog),r=h.useRef(null),o=ze(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return hg(i)},[]),h.createElement(yg,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ae(e.onFocusOutside,i=>i.preventDefault())}))}),j4=h.forwardRef((e,t)=>{const n=Sn(Pi,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(yg,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),yg=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Sn(Pi,n),s=h.useRef(null),c=ze(t,s);return ng(),h.createElement(h.Fragment,null,h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,Y({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vf(l.open)},a,{ref:c,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),D4="DialogTitle",F4=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Sn(D4,n);return h.createElement(fe.h2,Y({id:o.titleId},r,{ref:t}))});function Vf(e){return e?"open":"closed"}const wg=k4,xg=N4,z4=A4,B4=O4,U4=L4,H4=F4;var pe=function(){return pe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}var K4="ENTRIES",Cg="KEYS",Eg="VALUES",Qe="",Ks=function(){function e(t,n){var r=t._tree,o=Array.from(r.keys());this.set=t,this._type=n,this._path=o.length>0?[{node:r,keys:o}]:[]}return e.prototype.next=function(){var t=this.dive();return this.backtrack(),t},e.prototype.dive=function(){if(this._path.length===0)return{done:!0,value:void 0};var t=Fr(this._path),n=t.node,r=t.keys;if(Fr(r)===Qe)return{done:!1,value:this.result()};var o=n.get(Fr(r));return this._path.push({node:o,keys:Array.from(o.keys())}),this.dive()},e.prototype.backtrack=function(){if(this._path.length!==0){var t=Fr(this._path).keys;t.pop(),!(t.length>0)&&(this._path.pop(),this.backtrack())}},e.prototype.key=function(){return this.set._prefix+this._path.map(function(t){var n=t.keys;return Fr(n)}).filter(function(t){return t!==Qe}).join("")},e.prototype.value=function(){return Fr(this._path).node.get(Qe)},e.prototype.result=function(){switch(this._type){case Eg:return this.value();case Cg:return this.key();default:return[this.key(),this.value()]}},e.prototype[Symbol.iterator]=function(){return this},e}(),Fr=function(e){return e[e.length-1]},Y4=function(e,t,n){var r=new Map;if(t===void 0)return r;for(var o=t.length+1,i=o+n,a=new Uint8Array(i*o).fill(n+1),l=0;ln)continue e}_g(e.get(p),t,n,r,o,g,a,l+p)}}}catch(D){s={error:D}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}},Ys=function(){function e(t,n){t===void 0&&(t=new Map),n===void 0&&(n=""),this._size=void 0,this._tree=t,this._prefix=n}return e.prototype.atPrefix=function(t){var n,r;if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");var o=Le(gl(this._tree,t.slice(this._prefix.length)),2),i=o[0],a=o[1];if(i===void 0){var l=Le(Wf(a),2),s=l[0],c=l[1];try{for(var f=ne(s.keys()),u=f.next();!u.done;u=f.next()){var d=u.value;if(d!==Qe&&d.startsWith(c)){var p=new Map;return p.set(d.slice(c.length),s.get(d)),new e(p,t)}}}catch(y){n={error:y}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}return new e(i,t)},e.prototype.clear=function(){this._size=void 0,this._tree.clear()},e.prototype.delete=function(t){return this._size=void 0,G4(this._tree,t)},e.prototype.entries=function(){return new Ks(this,K4)},e.prototype.forEach=function(t){var n,r;try{for(var o=ne(this),i=o.next();!i.done;i=o.next()){var a=Le(i.value,2),l=a[0],s=a[1];t(l,s,this)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.fuzzyGet=function(t,n){return Y4(this._tree,t,n)},e.prototype.get=function(t){var n=hu(this._tree,t);return n!==void 0?n.get(Qe):void 0},e.prototype.has=function(t){var n=hu(this._tree,t);return n!==void 0&&n.has(Qe)},e.prototype.keys=function(){return new Ks(this,Cg)},e.prototype.set=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t);return r.set(Qe,n),this},Object.defineProperty(e.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),e.prototype.update=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t);return r.set(Qe,n(r.get(Qe))),this},e.prototype.fetch=function(t,n){if(typeof t!="string")throw new Error("key must be a string");this._size=void 0;var r=Gs(this._tree,t),o=r.get(Qe);return o===void 0&&r.set(Qe,o=n()),o},e.prototype.values=function(){return new Ks(this,Eg)},e.prototype[Symbol.iterator]=function(){return this.entries()},e.from=function(t){var n,r,o=new e;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=Le(a.value,2),s=l[0],c=l[1];o.set(s,c)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o},e.fromObject=function(t){return e.from(Object.entries(t))},e}(),gl=function(e,t,n){var r,o;if(n===void 0&&(n=[]),t.length===0||e==null)return[e,n];try{for(var i=ne(e.keys()),a=i.next();!a.done;a=i.next()){var l=a.value;if(l!==Qe&&t.startsWith(l))return n.push([e,l]),gl(e.get(l),t.slice(l.length),n)}}catch(s){r={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n.push([e,t]),gl(void 0,"",n)},hu=function(e,t){var n,r;if(t.length===0||e==null)return e;try{for(var o=ne(e.keys()),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!==Qe&&t.startsWith(a))return hu(e.get(a),t.slice(a.length))}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Gs=function(e,t){var n,r,o=t.length;e:for(var i=0;e&&i0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Ys,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}},e.prototype.discard=function(t){var n=this,r=this._idToShortId.get(t);if(r==null)throw new Error("MiniSearch: cannot discard document with ID ".concat(t,": it is not in the index"));this._idToShortId.delete(t),this._documentIds.delete(r),this._storedFields.delete(r),(this._fieldLength.get(r)||[]).forEach(function(o,i){n.removeFieldLength(r,i,n._documentCount,o)}),this._fieldLength.delete(r),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()},e.prototype.maybeAutoVacuum=function(){if(this._options.autoVacuum!==!1){var t=this._options.autoVacuum,n=t.minDirtFactor,r=t.minDirtCount,o=t.batchSize,i=t.batchWait;this.conditionalVacuum({batchSize:o,batchWait:i},{minDirtCount:r,minDirtFactor:n})}},e.prototype.discardAll=function(t){var n,r,o=this._options.autoVacuum;try{this._options.autoVacuum=!1;try{for(var i=ne(t),a=i.next();!a.done;a=i.next()){var l=a.value;this.discard(l)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}finally{this._options.autoVacuum=o}this.maybeAutoVacuum()},e.prototype.replace=function(t){var n=this._options,r=n.idField,o=n.extractField,i=o(t,r);this.discard(i),this.add(t)},e.prototype.vacuum=function(t){return t===void 0&&(t={}),this.conditionalVacuum(t)},e.prototype.conditionalVacuum=function(t,n){var r=this;return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&n,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(function(){var o=r._enqueuedVacuumConditions;return r._enqueuedVacuumConditions=vu,r.performVacuuming(t,o)}),this._enqueuedVacuum)):this.vacuumConditionsMet(n)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)},e.prototype.performVacuuming=function(t,n){return V4(this,void 0,void 0,function(){var r,o,i,a,l,s,c,f,u,d,p,y,g,C,v,m,x,E,S,_,b,$,k,P,j;return W4(this,function(L){switch(L.label){case 0:if(r=this._dirtCount,!this.vacuumConditionsMet(n))return[3,10];o=t.batchSize||pu.batchSize,i=t.batchWait||pu.batchWait,a=1,L.label=1;case 1:L.trys.push([1,7,8,9]),l=ne(this._index),s=l.next(),L.label=2;case 2:if(s.done)return[3,6];c=Le(s.value,2),f=c[0],u=c[1];try{for(d=($=void 0,ne(u)),p=d.next();!p.done;p=d.next()){y=Le(p.value,2),g=y[0],C=y[1];try{for(v=(P=void 0,ne(C)),m=v.next();!m.done;m=v.next())x=Le(m.value,1),E=x[0],!this._documentIds.has(E)&&(C.size<=1?u.delete(g):C.delete(E))}catch(D){P={error:D}}finally{try{m&&!m.done&&(j=v.return)&&j.call(v)}finally{if(P)throw P.error}}}}catch(D){$={error:D}}finally{try{p&&!p.done&&(k=d.return)&&k.call(d)}finally{if($)throw $.error}}return this._index.get(f).size===0&&this._index.delete(f),a%o!==0?[3,4]:[4,new Promise(function(D){return setTimeout(D,i)})];case 3:L.sent(),L.label=4;case 4:a+=1,L.label=5;case 5:return s=l.next(),[3,2];case 6:return[3,9];case 7:return S=L.sent(),_={error:S},[3,9];case 8:try{s&&!s.done&&(b=l.return)&&b.call(l)}finally{if(_)throw _.error}return[7];case 9:this._dirtCount-=r,L.label=10;case 10:return[4,null];case 11:return L.sent(),this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null,[2]}})})},e.prototype.vacuumConditionsMet=function(t){if(t==null)return!0;var n=t.minDirtCount,r=t.minDirtFactor;return n=n||Xs.minDirtCount,r=r||Xs.minDirtFactor,this.dirtCount>=n&&this.dirtFactor>=r},Object.defineProperty(e.prototype,"isVacuuming",{get:function(){return this._currentVacuum!=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtCount",{get:function(){return this._dirtCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirtFactor",{get:function(){return this._dirtCount/(1+this._documentCount+this._dirtCount)},enumerable:!1,configurable:!0}),e.prototype.has=function(t){return this._idToShortId.has(t)},e.prototype.getStoredFields=function(t){var n=this._idToShortId.get(t);if(n!=null)return this._storedFields.get(n)},e.prototype.search=function(t,n){var r,o;n===void 0&&(n={});var i=this.executeQuery(t,n),a=[];try{for(var l=ne(i),s=l.next();!s.done;s=l.next()){var c=Le(s.value,2),f=c[0],u=c[1],d=u.score,p=u.terms,y=u.match,g=p.length||1,C={id:this._documentIds.get(f),score:d*g,terms:Object.keys(y),queryTerms:p,match:y};Object.assign(C,this._storedFields.get(f)),(n.filter==null||n.filter(C))&&a.push(C)}}catch(v){r={error:v}}finally{try{s&&!s.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return t===e.wildcard&&n.boostDocument==null&&this._options.searchOptions.boostDocument==null||a.sort(pp),a},e.prototype.autoSuggest=function(t,n){var r,o,i,a;n===void 0&&(n={}),n=pe(pe({},this._options.autoSuggestOptions),n);var l=new Map;try{for(var s=ne(this.search(t,n)),c=s.next();!c.done;c=s.next()){var f=c.value,u=f.score,d=f.terms,p=d.join(" "),y=l.get(p);y!=null?(y.score+=u,y.count+=1):l.set(p,{score:u,terms:d,count:1})}}catch(S){r={error:S}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var g=[];try{for(var C=ne(l),v=C.next();!v.done;v=C.next()){var m=Le(v.value,2),y=m[0],x=m[1],u=x.score,d=x.terms,E=x.count;g.push({suggestion:y,terms:d,score:u/E})}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=C.return)&&a.call(C)}finally{if(i)throw i.error}}return g.sort(pp),g},Object.defineProperty(e.prototype,"documentCount",{get:function(){return this._documentCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"termCount",{get:function(){return this._index.size},enumerable:!1,configurable:!0}),e.loadJSON=function(t,n){if(n==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),n)},e.getDefault=function(t){if(Zs.hasOwnProperty(t))return Qs(Zs,t);throw new Error('MiniSearch: unknown option "'.concat(t,'"'))},e.loadJS=function(t,n){var r,o,i,a,l,s,c=t.index,f=t.documentCount,u=t.nextId,d=t.documentIds,p=t.fieldIds,y=t.fieldLength,g=t.averageFieldLength,C=t.storedFields,v=t.dirtCount,m=t.serializationVersion;if(m!==1&&m!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");var x=new e(n);x._documentCount=f,x._nextId=u,x._documentIds=Ea(d),x._idToShortId=new Map,x._fieldIds=p,x._fieldLength=Ea(y),x._avgFieldLength=g,x._storedFields=Ea(C),x._dirtCount=v||0,x._index=new Ys;try{for(var E=ne(x._documentIds),S=E.next();!S.done;S=E.next()){var _=Le(S.value,2),b=_[0],$=_[1];x._idToShortId.set($,b)}}catch(F){r={error:F}}finally{try{S&&!S.done&&(o=E.return)&&o.call(E)}finally{if(r)throw r.error}}try{for(var k=ne(c),P=k.next();!P.done;P=k.next()){var j=Le(P.value,2),L=j[0],D=j[1],N=new Map;try{for(var z=(l=void 0,ne(Object.keys(D))),V=z.next();!V.done;V=z.next()){var U=V.value,O=D[U];m===1&&(O=O.ds),N.set(parseInt(U,10),Ea(O))}}catch(F){l={error:F}}finally{try{V&&!V.done&&(s=z.return)&&s.call(z)}finally{if(l)throw l.error}}x._index.set(L,N)}}catch(F){i={error:F}}finally{try{P&&!P.done&&(a=k.return)&&a.call(k)}finally{if(i)throw i.error}}return x},e.prototype.executeQuery=function(t,n){var r=this;if(n===void 0&&(n={}),t===e.wildcard)return this.executeWildcardQuery(n);if(typeof t!="string"){var o=pe(pe(pe({},n),t),{queries:void 0}),i=t.queries.map(function(C){return r.executeQuery(C,o)});return this.combineResults(i,o.combineWith)}var a=this._options,l=a.tokenize,s=a.processTerm,c=a.searchOptions,f=pe(pe({tokenize:l,processTerm:s},c),n),u=f.tokenize,d=f.processTerm,p=u(t).flatMap(function(C){return d(C)}).filter(function(C){return!!C}),y=p.map(e6(f)),g=y.map(function(C){return r.executeQuerySpec(C,f)});return this.combineResults(g,f.combineWith)},e.prototype.executeQuerySpec=function(t,n){var r,o,i,a,l=pe(pe({},this._options.searchOptions),n),s=(l.fields||this._options.fields).reduce(function(U,O){var F;return pe(pe({},U),(F={},F[O]=Qs(l.boost,O)||1,F))},{}),c=l.boostDocument,f=l.weights,u=l.maxFuzzy,d=l.bm25,p=pe(pe({},dp.weights),f),y=p.fuzzy,g=p.prefix,C=this._index.get(t.term),v=this.termResults(t.term,t.term,1,C,s,c,d),m,x;if(t.prefix&&(m=this._index.atPrefix(t.term)),t.fuzzy){var E=t.fuzzy===!0?.2:t.fuzzy,S=E<1?Math.min(u,Math.round(t.term.length*E)):E;S&&(x=this._index.fuzzyGet(t.term,S))}if(m)try{for(var _=ne(m),b=_.next();!b.done;b=_.next()){var $=Le(b.value,2),k=$[0],P=$[1],j=k.length-t.term.length;if(j){x==null||x.delete(k);var L=g*k.length/(k.length+.3*j);this.termResults(t.term,k,L,P,s,c,d,v)}}}catch(U){r={error:U}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(r)throw r.error}}if(x)try{for(var D=ne(x.keys()),N=D.next();!N.done;N=D.next()){var k=N.value,z=Le(x.get(k),2),V=z[0],j=z[1];if(j){var L=y*k.length/(k.length+j);this.termResults(t.term,k,L,V,s,c,d,v)}}}catch(U){i={error:U}}finally{try{N&&!N.done&&(a=D.return)&&a.call(D)}finally{if(i)throw i.error}}return v},e.prototype.executeWildcardQuery=function(t){var n,r,o=new Map,i=pe(pe({},this._options.searchOptions),t);try{for(var a=ne(this._documentIds),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),c=s[0],f=s[1],u=i.boostDocument?i.boostDocument(f,"",this._storedFields.get(c)):1;o.set(c,{score:u,terms:[],match:{}})}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.combineResults=function(t,n){if(n===void 0&&(n=Kf),t.length===0)return new Map;var r=n.toLowerCase();return t.reduce(X4[r])||new Map},e.prototype.toJSON=function(){var t,n,r,o,i=[];try{for(var a=ne(this._index),l=a.next();!l.done;l=a.next()){var s=Le(l.value,2),c=s[0],f=s[1],u={};try{for(var d=(r=void 0,ne(f)),p=d.next();!p.done;p=d.next()){var y=Le(p.value,2),g=y[0],C=y[1];u[g]=Object.fromEntries(C)}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}i.push([c,u])}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}},e.prototype.termResults=function(t,n,r,o,i,a,l,s){var c,f,u,d,p;if(s===void 0&&(s=new Map),o==null)return s;try{for(var y=ne(Object.keys(i)),g=y.next();!g.done;g=y.next()){var C=g.value,v=i[C],m=this._fieldIds[C],x=o.get(m);if(x!=null){var E=x.size,S=this._avgFieldLength[m];try{for(var _=(u=void 0,ne(x.keys())),b=_.next();!b.done;b=_.next()){var $=b.value;if(!this._documentIds.has($)){this.removeTerm(m,$,n),E-=1;continue}var k=a?a(this._documentIds.get($),n,this._storedFields.get($)):1;if(k){var P=x.get($),j=this._fieldLength.get($)[m],L=q4(P,E,this._documentCount,j,S,l),D=r*v*k*L,N=s.get($);if(N){N.score+=D,n6(N.terms,t);var z=Qs(N.match,n);z?z.push(C):N.match[n]=[C]}else s.set($,{score:D,terms:[t],match:(p={},p[n]=[C],p)})}}}catch(V){u={error:V}}finally{try{b&&!b.done&&(d=_.return)&&d.call(_)}finally{if(u)throw u.error}}}}}catch(V){c={error:V}}finally{try{g&&!g.done&&(f=y.return)&&f.call(y)}finally{if(c)throw c.error}}return s},e.prototype.addTerm=function(t,n,r){var o=this._index.fetch(r,vp),i=o.get(t);if(i==null)i=new Map,i.set(n,1),o.set(t,i);else{var a=i.get(n);i.set(n,(a||0)+1)}},e.prototype.removeTerm=function(t,n,r){if(!this._index.has(r)){this.warnDocumentChanged(n,t,r);return}var o=this._index.fetch(r,vp),i=o.get(t);i==null||i.get(n)==null?this.warnDocumentChanged(n,t,r):i.get(n)<=1?i.size<=1?o.delete(t):i.delete(n):i.set(n,i.get(n)-1),this._index.get(r).size===0&&this._index.delete(r)},e.prototype.warnDocumentChanged=function(t,n,r){var o,i;try{for(var a=ne(Object.keys(this._fieldIds)),l=a.next();!l.done;l=a.next()){var s=l.value;if(this._fieldIds[s]===n){this._options.logger("warn","MiniSearch: document with ID ".concat(this._documentIds.get(t),' has changed before removal: term "').concat(r,'" was not present in field "').concat(s,'". Removing a document after it has changed can corrupt the index!'),"version_conflict");return}}}catch(c){o={error:c}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.addDocumentId=function(t){var n=this._nextId;return this._idToShortId.set(t,n),this._documentIds.set(n,t),this._documentCount+=1,this._nextId+=1,n},e.prototype.addFields=function(t){for(var n=0;nJSON.stringify(await(await fetch("/polkadot-api-docs/.vocs/search-index-6f6f4ccf.json")).json());let Js;function Tg(){const[e,t]=h.useState();return h.useEffect(()=>{(async()=>{Js||(Js=o6());const n=await Js,r=Z4.loadJSON(n,{fields:["title","titles","text"],searchOptions:{boost:{title:4,text:2,titles:1},fuzzy:.2,prefix:!0},storeFields:["href","html","isPage","text","title","titles"]});t(r)})()},[]),h.useEffect(()=>{},[]),e}var i6="vocs_DesktopSearch_search",a6="vocs_DesktopSearch_searchCommand";const l6=h.forwardRef((e,t)=>h.createElement(fe.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),s6=l6;var kg={exports:{}};/*!*************************************************** * mark.js v8.11.1 * https://markjs.io/ * Copyright (c) 2014–2018, Julian Kühnel * Released under the MIT license https://git.io/vwTVl -*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Cy,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=p}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.forEach(function(p){var y=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!y&&d.push(p)}),d}},{key:"getIframeContents",value:function(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=u.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(u){var d="about:blank",p=u.getAttribute("src").trim(),y=u.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(u,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(u)||(u.removeEventListener("load",m),y.getIframeContents(u,d,p))}catch{p()}}};u.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,p){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,p):this.getIframeContents(u,d,p):this.observeIframeLoad(u,d,p)}catch{p()}}},{key:"waitForIframes",value:function(u,d){var p=this,y=0;this.forEachIframe(u,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.querySelectorAll("iframe"),v=C.length,m=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&g(m)};v||x(),C.forEach(function(E){c.matches(E,y.exclude)?x():y.onIframeReady(E,function(S){d(E)&&(m++,p(S)),x()},x)})}},{key:"createIterator",value:function(u,d,p){return document.createNodeIterator(u,d,p,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,p){var y=u.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(y&g)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(u){var d=u.previousNode(),p=void 0;return d===null?p=u.nextNode():p=u.nextNode()&&u.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(u,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(u,d,p)?(g===!1&&!C?y.push({val:p,handled:!0}):g!==!1&&!C&&(y[g].handled=!0),!0):(g===!1&&y.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(u,d,p,y){var g=this;u.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(u,d,p,y,g){for(var C=this,v=this.createIterator(d,u,y),m=[],x=[],E=void 0,S=void 0,_=function(){var $=C.getIteratorNode(v);return S=$.prevNode,E=$.node,E};_();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,S,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(u,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,u,p,y),g()}},{key:"forEachNode",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||g(),C.forEach(function(m){var x=function(){y.iterateThroughNodes(u,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(u,d){var p=typeof d=="string"?[d]:d,y=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(u,C)?(g=!0,!1):!0}),g}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var C=d[g],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&m!==""&&(u=u.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return u.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,g=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,v="";switch(C.forEach(function(m){v+="|"+d.escapeStr(m)}),g){case"partially":default:return"()("+u+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+u+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+u+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,p=[];return u.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):y.trim()&&p.indexOf(y)===-1&&p.push(y)}),{keywords:p.sort(function(y,g){return g.length-y.length}),length:p.length}}},{key:"isNumeric",value:function(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var p=[],y=0;return u.sort(function(g,C){return g.start-C.start}).forEach(function(g){var C=d.callNoMatchOnInvalidRanges(g,y),v=C.start,m=C.end,x=C.valid;x&&(g.start=v,g.length=m-v,p.push(g),y=m)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(u,d){var p=void 0,y=void 0,g=!1;return u&&typeof u.start<"u"?(p=parseInt(u.start,10),y=p+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(u,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(u.start,10)-v;return m=m>C?C:m,y=m+parseInt(u.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),m<0||y-m<0||m>C||y>C?(g=!1,this.log("Invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(u){var d=this,p="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){y.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){u({value:p,nodes:y})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,p){var y=this.opt.element?this.opt.element:"mark",g=u.splitText(d),C=g.splitText(p-d),v=document.createElement(y);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=g.textContent,g.parentNode.replaceChild(v,g),C}},{key:"wrapRangeInMappedTextNode",value:function(u,d,p,y,g){var C=this;u.nodes.every(function(v,m){var x=u.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,_=u.value.substr(0,v.start),b=u.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),u.value=_+b,u.nodes.forEach(function($,k){k>=m&&(u.nodes[k].start>0&&k!==m&&(u.nodes[k].start-=S),u.nodes[k].end-=S)}),p-=S,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,d,p,y,g){var C=this,v=d===0?0:d+1;this.getTextNodes(function(m){m.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=u.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var _=1;_{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=d7(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function d7(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var h7="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,h7)})}var p7="vocs_KeyboardShortcut_kbdGroup",v7="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:v7,children:[t,w.jsx("span",{className:p7,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var m7="vocs_SearchDialog_content",mp="vocs_SearchDialog_excerpt",g7="vocs_SearchDialog_overlay",y7="vocs_SearchDialog_result",gp="vocs_SearchDialog_resultIcon",w7="vocs_SearchDialog_resultSelected",x7="vocs_SearchDialog_results",C7="vocs_SearchDialog",E7="vocs_SearchDialog_searchBox",_7="vocs_SearchDialog_searchInput",_a="vocs_SearchDialog_searchInputIcon",S7="vocs_SearchDialog_searchInputIconDesktop",b7="vocs_SearchDialog_searchInputIconMobile",$7="vocs_SearchDialog_searchShortcuts",yp="vocs_SearchDialog_title",T7="vocs_SearchDialog_titleIcon",k7="vocs_SearchDialog_titles";function Ng(e){const t=Ff(),n=h.useRef(null),r=h.useRef(null),[o,i]=mu("filterText",""),a=f7(o,200),l=Tg(),[s,c]=h.useState(-1),[f,u]=h.useState(!1),[d,p]=mu("showDetailView",!0),y=h.useMemo(()=>l?a?(c(0),l.search(a).slice(0,16)):(c(-1),[]):[],[l,a]),g=y.length,C=y[s],v=h.useCallback(()=>{var S,_,b;if(!r.current)return;const m=new Set;for(const $ of y)for(const k in $.match)m.add(k);const x=new u7(r.current);x.unmark({done(){x==null||x.markRegExp(R7(m))}});const E=r.current.querySelectorAll(`.${mp}`);for(const $ of E)(S=$.querySelector('mark[data-markjs="true"]'))==null||S.scrollIntoView({block:"center"});(b=(_=r.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[y]);return h.useEffect(()=>{if(!e.open)return;function m(x){var E;switch(x.key){case"ArrowDown":{x.preventDefault(),c(S=>{var $;let _=S+1;_>=g&&(_=0);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),u(!0);break}case"ArrowUp":{x.preventDefault(),c(S=>{var $;let _=S-1;_<0&&(_=g-1);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),u(!0);break}case"Backspace":{if(!x.metaKey)return;x.preventDefault(),i(""),(E=n.current)==null||E.focus();break}case"Enter":{if(x.target instanceof HTMLButtonElement&&x.target.type!=="submit"||!C)return;x.preventDefault(),t(C.href),e.onClose();break}}}return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[t,g,i,C,e.open,e.onClose]),h.useEffect(()=>{a!==""&&r.current&&v()},[v,a]),w.jsxs(z4,{children:[w.jsx(B4,{className:g7}),w.jsxs(U4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{c(0)},className:C7,"aria-describedby":void 0,children:[w.jsx(H4,{className:Z0,children:"Search"}),w.jsxs("form",{className:E7,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:b7,children:w.jsx(r5,{className:_a,height:20,width:20})}),w.jsx(s7,{htmlFor:"search-input",children:w.jsx(Uf,{"aria-label":"Search",className:I(_a,S7),height:20,width:20})}),w.jsx("input",{ref:n,tabIndex:0,className:_7,id:"search-input",onChange:m=>i(m.target.value),placeholder:"Search",type:"search",value:o}),w.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>p(m=>!m),children:w.jsx(f5,{className:_a,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:_a,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:x7,role:y.length?"listbox":void 0,onMouseMove:()=>u(!1),ref:r,children:[a&&y.length===0&&w.jsxs("li",{children:['No results for "',w.jsx("span",{children:a}),'"']}),y.map((m,x)=>{var E;return w.jsx("li",{role:"option",className:I(y7,x===s&&w7),"aria-selected":x===s,"aria-label":[...m.titles.filter(S=>!!S),m.title].join(" > "),children:w.jsxs(M0,{to:m.href,onClick:S=>{S.metaKey||e.onClose()},onMouseEnter:()=>!f&&c(x),onFocus:()=>c(x),children:[w.jsxs("div",{className:k7,children:[m.isPage?w.jsx(c5,{className:gp}):w.jsx("span",{className:gp,children:"#"}),m.titles.filter(S=>!!S).map(S=>w.jsxs("span",{className:yp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:S}}),w.jsx(i5,{className:T7})]},S)),w.jsx("span",{className:yp,children:w.jsx("span",{dangerouslySetInnerHTML:{__html:m.title}})})]}),d&&((E=m.text)==null?void 0:E.trim())&&w.jsx("div",{className:mp,children:w.jsx(Y0,{className:m7,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:$7,children:[w.jsx(eo,{description:"Navigate",keys:["↑","↓"]}),w.jsx(eo,{description:"Select",keys:["enter"]}),w.jsx(eo,{description:"Close",keys:["esc"]}),w.jsx(eo,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function R7(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function N7(){Tg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsxs("button",{className:i7,type:"button",children:[w.jsx(Uf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:a7,children:w.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var Pg="vocs_DesktopTopNav_button",P7="vocs_DesktopTopNav_content",A7="vocs_DesktopTopNav_curtain",wp="vocs_DesktopTopNav_divider",qs="vocs_DesktopTopNav_group",Sa="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",O7="vocs_DesktopTopNav_logo",I7="vocs_DesktopTopNav_logoWrapper",L7="vocs_DesktopTopNav",xp="vocs_DesktopTopNav_section",M7="vocs_DesktopTopNav_withLogo",j7="vocs_Icon",yu="var(--vocs_Icon_size)";function st({className:e,label:t,icon:n,size:r,style:o}){return w.jsx("div",{"aria-label":t,className:I(j7,e),role:"img",style:{...o,...Gt({[yu]:r})},children:w.jsx(n,{height:r,width:r})})}var D7="vocs_Logo_logoDark",F7="vocs_Logo_logoLight",ec="vocs_Logo";function z7({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,ec),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,ec,D7),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,ec,F7),src:t.light})]})}):null}var B7="vocs_NavLogo_logoImage",U7="vocs_NavLogo_title";function Yf(){const e=Je();return e.logoUrl?w.jsx(z7,{className:B7}):w.jsx("div",{className:U7,children:e.title})}const H7=h.createContext(void 0);function Kl(e){const t=h.useContext(H7);return e||t||"ltr"}function Yl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:y,children:g}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:v,collectionRef:C},g)},l=e+"CollectionSlot",s=Z.forwardRef((p,y)=>{const{scope:g,children:C}=p,v=i(l,g),m=ze(y,v.collectionRef);return Z.createElement(Co,{ref:m},C)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",u=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(c,g);return Z.useEffect(()=>(E.itemMap.set(m,{ref:m,...v}),()=>void E.itemMap.delete(m))),Z.createElement(Co,{[f]:"",ref:x},C)});function d(p){const y=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function V7(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const W7=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),K7=W7,Vi="NavigationMenu",[Gf,Y7,G7]=Yl(Vi),[wu,Q7,Z7]=Yl(Vi),[Qf,e$]=En(Vi,[G7,Z7]),[X7,Nr]=Qf(Vi),[J7,t$]=Qf(Vi),q7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=h.useState(null),p=ze(t,k=>d(k)),y=Kl(c),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",S]=rr({prop:r,onChange:k=>{const P=k!=="",j=l>0;P?(window.clearTimeout(v.current),j&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(k)},defaultProp:i}),_=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),b=h.useCallback(k=>{window.clearTimeout(C.current),S(k)},[S]),$=h.useCallback(k=>{E===k?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(k)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(e8,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:u,onTriggerEnter:k=>{window.clearTimeout(g.current),m?$(k):b(k)},onTriggerLeave:()=>{window.clearTimeout(g.current),_()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:_,onItemSelect:k=>{S(P=>P===k?"":k)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),e8=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(X7,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:V7(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:h.useCallback((E,S)=>{v(_=>(_.set(E,S),new Map(_)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(Gf.Provider,{scope:t},h.createElement(J7,{scope:t,items:C},a)))},t8="NavigationMenuList",n8=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(t8,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(Gf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),r8="NavigationMenuItem",[o8,Ag]=Qf(r8),i8=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=rn(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),c=h.useRef(null),f=h.useRef(()=>{}),u=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=xu(l.current);g.length&&Zf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=h8(y))}},[]);return h.createElement(o8,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),Cp="NavigationMenuTrigger",a8=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Nr(Cp,e.__scopeNavigationMenu),a=Ag(Cp,e.__scopeNavigationMenu),l=h.useRef(null),s=ze(l,a.triggerRef,t),c=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),u=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(Gf.ItemSlot,{scope:n,value:a.value},h.createElement(Ig,{asChild:!0},h.createElement(fe.button,Y({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Lg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:ae(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ae(e.onPointerMove,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:ae(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),u.current=!1)})),onClick:ae(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:ae(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(K7,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const g=a.contentRef.current,C=y.relatedTarget,v=C===l.current,m=g==null?void 0:g.contains(C);(v||!m)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Ep="navigationMenu.linkSelect",l8=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Ig,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:ae(e.onClick,a=>{const l=a.target,s=new CustomEvent(Ep,{bubbles:!0,cancelable:!0});if(l.addEventListener(Ep,c=>o==null?void 0:o(c),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});cu(l,c)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",s8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(wl,e.__scopeNavigationMenu),i=Ag(wl,e.__scopeNavigationMenu),a=ze(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(c8,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(u8,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),c8=h.forwardRef((e,t)=>{const n=Nr(wl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return gn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),gn(()=>()=>o(e.value),[e.value,o]),null}),Ua="navigationMenu.rootContentDismiss",u8=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=Nr(wl,n),u=h.useRef(null),d=ze(u,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=Y7(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=u.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ua,E),()=>x.removeEventListener(Ua,E)}},[f.isRootMenu,e.value,o,v,l]);const m=h.useMemo(()=>{const E=g().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),_=E.indexOf(f.previousValue),b=r===f.value,$=_===E.indexOf(r);if(!b&&!$)return C.current;const k=(()=>{if(S!==_){if(b&&_!==-1)return S>_?"from-end":"from-start";if($&&S!==-1)return S>_?"to-start":"to-end"}return null})();return C.current=k,k},[f.previousValue,f.value,f.dir,g,r]);return h.createElement(Og,{asChild:!0},h.createElement(Hf,Y({id:y,"aria-labelledby":p,"data-motion":m,"data-orientation":f.orientation},c,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=u.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const S=x.target,_=g().some($=>{var k;return(k=$.ref.current)===null||k===void 0?void 0:k.contains(S)}),b=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));(_||b||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:ae(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const b=xu(x.currentTarget),$=document.activeElement,k=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,k).reverse():b.slice(k+1,b.length);if(Zf(j))x.preventDefault();else{var _;(_=i.current)===null||_===void 0||_.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),f8="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(f8,n);return h.createElement(wu.Provider,{scope:n},h.createElement(wu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),_p=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],d8="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Q7(n),i=Nr(d8,n);return h.createElement(wu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",..._p].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),_p.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Zf(s)),a.preventDefault()}})})))});function xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function h8(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Lg(e){return e?"open":"closed"}function Mg(e,t){return`${e}-trigger-${t}`}function jg(e,t){return`${e}-content-${t}`}function Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const p8=q7,v8=n8,m8=i8,g8=a8,y8=l8,w8=s8;var x8="var(--vocs_NavigationMenu_chevronDownIcon)",C8="vocs_NavigationMenu_content",E8="vocs_NavigationMenu_item",_8="vocs_NavigationMenu_link",S8="vocs_NavigationMenu_list",b8="vocs_NavigationMenu",$8="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(p8,{...e,className:I(e.className,b8)}),Fg=e=>w.jsx(v8,{...e,className:I(e.className,S8)}),Gl=({active:e,children:t,className:n,href:r})=>w.jsx(y8,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,_8),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(m8,{...e,className:I(e.className,E8)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(g8,{...n,"data-active":e,className:I(t,$8),style:Gt({[x8]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(w8,{...e,className:I(e.className,C8)});function Hg(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[w.jsx("title",{children:"Discord"}),w.jsx("g",{id:"图层_2","data-name":"图层 2",children:w.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:w.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:w.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Vg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"GitHub"}),w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function T8(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Moon"}),w.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),w.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function k8(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Sun"}),w.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),w.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Wg(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[w.jsx("title",{children:"Telegram"}),w.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Kg(){return w.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Warpcast"}),w.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Yg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"X"}),w.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Eu.Curtain=R8;function Eu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(L7,t&&!n&&M7),children:[w.jsx(N7,{}),t&&w.jsx("div",{className:I7,children:w.jsx("div",{className:O7,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:w.jsx(Yf,{})})})}),w.jsx("div",{className:xp}),w.jsxs("div",{className:xp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:qs,children:w.jsx(N8,{})}),w.jsx("div",{className:I(wp,Sa)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(qs,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(L8,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(wp,Sa)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(qs,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(A8,{})})})]})]})}function R8(){return w.jsx("div",{className:A7})}function N8(){const{topNav:e}=Je();if(!e)return null;const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{delayDuration:0,children:w.jsx(Fg,{children:e.map((r,o)=>r.link?w.jsx(Gl,{active:n.includes(r.id),className:yl,href:r.link,children:r.text},o):r.items?w.jsxs(zg,{className:yl,children:[w.jsx(Bg,{active:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:P7,children:w.jsx(P8,{items:r.items})})]},o):null)})})}function P8({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function A8(){const{toggle:e}=g5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(gu,y5),size:"20px",label:"Light",icon:k8}),w.jsx(st,{className:I(gu,w5),size:"20px",label:"Dark",icon:T8,style:{marginTop:"-2px"}})]})}const O8={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},I8={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function L8({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:gu,label:t,icon:O8[e],size:I8[e]||"20px"})})}const M8=({children:e})=>e,j8=({children:e})=>e;function D8(){const e=kr(),t=Je();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Gg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var F8="vocs_Footer_container",z8="vocs_Footer_editLink",B8="vocs_Footer_lastUpdated",U8="vocs_Footer_navigation",Sp="vocs_Footer_navigationIcon",H8="vocs_Footer_navigationIcon_left",V8="vocs_Footer_navigationIcon_right",bp="vocs_Footer_navigationItem",W8="vocs_Footer_navigationItem_left",K8="vocs_Footer_navigationItem_right",$p="vocs_Footer_navigationText",Tp="vocs_Footer_navigationTextInner",Y8="vocs_Footer";function G8(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Left"}),w.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function Q8(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Right"}),w.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function Z8(){const{layout:e}=Rr(),t=Gg(),n=kr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return w.jsxs("footer",{className:Y8,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:F8,children:[w.jsx(X8,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:B8,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(J8,{})]}),w.jsx(j8,{})]})}function X8(){const e=D8();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:z8,href:e.url,children:[w.jsx(p5,{})," ",e.text]})}):null}function J8(){const e=Gg(),t=Vl(),{pathname:n}=Re(),r=h.useMemo(()=>Qg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Ff();return h.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){const p=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?w.jsxs("div",{className:U8,children:[i?w.jsxs(nn,{className:I(bp,W8),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:I(Sp,H8),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:G8})}),w.jsx("div",{className:Tp,children:i.text})]}),w.jsx(eo,{description:"Previous",keys:["shift","←"]})]}):w.jsx("div",{}),a?w.jsxs(nn,{className:I(bp,K8),href:a.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:Tp,style:{textAlign:"right"},children:a.text}),w.jsx("div",{className:I(Sp,V8),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Q8})})]}),w.jsx(eo,{description:"Next",keys:["shift","→"]})]}):w.jsx("div",{})]}):null}function Qg(e){const t=[];for(const n of e){if(n.items){t.push(...Qg(n.items));continue}t.push(n)}return t}const Zg="Collapsible",[q8,Xg]=En(Zg),[e6,Xf]=q8(Zg),t6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(e6,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>c(f=>!f),[c])},h.createElement(fe.div,Y({"data-state":Jf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),n6="CollapsibleTrigger",r6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xf(n6,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Jf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:ae(e.onClick,o.onOpenToggle)}))}),Jg="CollapsibleContent",o6=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xf(Jg,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(i6,Y({},r,{ref:t,present:i})))}),i6=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Xf(Jg,n),[l,s]=h.useState(r),c=h.useRef(null),f=ze(t,c),u=h.useRef(0),d=u.current,p=h.useRef(0),y=p.current,g=a.open||l,C=h.useRef(g),v=h.useRef();return h.useEffect(()=>{const m=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(m)},[]),gn(()=>{const m=c.current;if(m){v.current=v.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();u.current=x.height,p.current=x.width,C.current||(m.style.transitionDuration=v.current.transitionDuration,m.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":Jf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&o)});function Jf(e){return e?"open":"closed"}const a6=t6,l6=r6,s6=o6,Pr="Accordion",c6=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qf,u6,f6]=Yl(Pr),[Ql,n$]=En(Pr,[f6,Xg]),ed=Xg(),qg=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(qf.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(v6,Y({},i,{ref:t})):Z.createElement(p6,Y({},o,{ref:t})))});qg.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[e1,d6]=Ql(Pr),[t1,h6]=Ql(Pr,{collapsible:!1}),p6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=rr({prop:n,defaultProp:r,onChange:o});return Z.createElement(e1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(n1,Y({},a,{ref:t}))))}),v6=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=rr({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((u=[])=>[...u,f]),[l]),c=Z.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[m6,td]=Ql(Pr),n1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=ze(l,t),c=u6(n),u=Kl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!c6.includes(p.key))return;const g=p.target,C=c().filter(k=>{var P;return!((P=k.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(k=>k.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=m-1,_=()=>{x=v+1,x>S&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=td(_u,n),a=d6(_u,n),l=ed(n),s=rn(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(g6,{scope:n,open:c,disabled:f,triggerId:s},Z.createElement(a6,Y({"data-orientation":i.orientation,"data-state":E6(c)},l,o,{ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})))}),kp="AccordionTrigger",w6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(kp,n),a=h6(kp,n),l=ed(n);return Z.createElement(qf.ItemSlot,{scope:n},Z.createElement(l6,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),x6="AccordionContent",C6=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(x6,n),a=ed(n);return Z.createElement(s6,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function E6(e){return e?"open":"closed"}const _6=qg,S6=y6,b6=w6,$6=C6;var T6="vocs_MobileSearch_searchButton";function k6(){const[e,t]=h.useState(!1);return w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsx("button",{className:T6,type:"button","aria-label":"Search",children:w.jsx(Uf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var R6="vocs_MobileTopNav_button",N6="var(--vocs_MobileTopNav_chevronDownIcon)",P6="var(--vocs_MobileTopNav_chevronUpIcon)",A6="vocs_MobileTopNav_content",O6="vocs_MobileTopNav_curtain",Rp="vocs_MobileTopNav_curtainGroup",tc="vocs_MobileTopNav_curtainItem",I6="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",L6="vocs_MobileTopNav_icon",M6="vocs_MobileTopNav_item",j6="vocs_MobileTopNav_logo",D6="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",F6="vocs_MobileTopNav_navigationContent",Go="vocs_MobileTopNav_navigationItem",z6="vocs_MobileTopNav_trigger",B6="vocs_MobileTopNav_navigation_compact",U6="vocs_MobileTopNav_outlinePopover",Np="vocs_MobileTopNav_outlineTrigger",H6="vocs_MobileTopNav",Pp="vocs_MobileTopNav_section",V6="vocs_MobileTopNav_separator",W6="vocs_MobileTopNav_sidebarPopover",K6="vocs_MobileTopNav_topNavPopover";function Y6(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var G6="vocs_Outline_heading",Q6="vocs_Outline_item",Z6="vocs_Outline_items",X6="vocs_Outline_link",J6="vocs_Outline_nav",q6="vocs_Outline";function a1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Je(),{showOutline:a}=Rr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:c,hash:f}=Re(),[u,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[c]);const p=h.useMemo(()=>u?u.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,S=Number(v.tagName[1]),_=v.textContent,b=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:m,text:_,topOffset:b}}).filter(Boolean):[],[u,l,e]),[y,g]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=m.target.id;if(m.isIntersecting)g(x);else{if(!(m.target.getBoundingClientRect().top>0))return;const b=p.findIndex(k=>k.id===y),$=(E=p[b-1])==null?void 0:E.id;g($)}},{rootMargin:"0px 0px -95% 0px"});for(const m of p)v.observe(m.slugTargetElement);return()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;m.isIntersecting?g(x):y===x&&g(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=Y6(()=>{var m,x,E;if(s.current){if(window.scrollY===0){g((m=p[0])==null?void 0:m.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){g((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:q6,children:[w.jsxs("nav",{className:J6,children:[o&&w.jsx("h2",{className:G6,children:"On this page"}),w.jsx(l1,{activeId:n?y:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:g})]}),ml(i)]})}function l1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return w.jsx("ul",{className:Z6,children:n.map(({id:a,level:l,text:s})=>{const c=`#${a}`,f=e===a,u=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,y=(C=t[p])==null?void 0:C.level;if(y<=l)return null;const g=[];for(let v=p;v{r==null||r(),o(a)},className:X6,children:s})}),u&&w.jsx(l1,{activeId:e,levelItems:u,items:t,onClickItem:r,setActiveId:o})]},a)})})}const eC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),tC={left:"right",right:"left",bottom:"top",top:"bottom"},nC={start:"end",end:"start"};function Su(e,t,n){return Et(e,Qn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function No(e){return["top","bottom"].includes(wn(e))?"y":"x"}function od(e){return nd(No(e))}function rC(e,t,n){n===void 0&&(n=!1);const r=Ro(e),o=od(e),i=rd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Cl(a)),[a,Cl(a)]}function oC(e){const t=Cl(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>nC[t])}function iC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function aC(e,t,n,r){const o=Ro(e);let i=iC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>tC[t])}function lC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?lC(e):{top:e,right:e,bottom:e,left:e}}function El(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ap(e,t,n){let{reference:r,floating:o}=e;const i=No(t),a=od(t),l=rd(a),s=wn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ro(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1);break}return p}const sC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ap(c,r,s),d=r,p={},y=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:f=0}=yn(e,t)||{};if(c==null)return{};const u=s1(f),d={x:n,y:r},p=od(o),y=rd(p),g=await a.getDimensions(c),C=p==="y",v=C?"top":"left",m=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[p]-d[p]-i.floating[y],S=d[p]-i.reference[p],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let b=_?_[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(_)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-S/2,k=b/2-g[y]/2-1,P=Qn(u[v],k),j=Qn(u[m],k),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=Su(L,N,D),V=!s.arrow&&Ro(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var k,P;const L=(((k=i.flip)==null?void 0:k.index)||0)+1,D=S[L];if(D)return{data:{index:L,overflows:$},reset:{placement:D}};let N=(P=$.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!N)switch(p){case"bestFit":{var j;const z=(j=$.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,O)=>U+O,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:j[0];z&&(N=z);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ip(e){return eC.some(t=>e[t]>=0)}const fC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yn(e,t);switch(r){case"referenceHidden":{const i=await Ai(t,{...o,elementContext:"reference"}),a=Op(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ip(a)}}}case"escaped":{const i=await Ai(t,{...o,altBoundary:!0}),a=Op(i,n.floating);return{data:{escapedOffsets:a,escaped:Ip(a)}}}default:return{}}}}};async function dC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=wn(n),l=Ro(n),s=No(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}const c1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await dC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},hC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:m}=C;return{x:v,y:m}}},...s}=yn(e,t),c={x:n,y:r},f=await Ai(t,s),u=No(wn(o)),d=nd(u);let p=c[d],y=c[u];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=Su(m,p,x)}if(a){const C=u==="y"?"top":"left",v=u==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=Su(m,y,x)}const g=l.fn({...t,[d]:p,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},pC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=yn(e,t),f={x:n,y:r},u=No(o),d=nd(u);let p=f[d],y=f[u];const g=yn(l,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(c){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),S=i.reference[u]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[u])||0)+(E?0:C.crossAxis),_=i.reference[u]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[u])||0)-(E?C.crossAxis:0);y_&&(y=_)}return{[d]:p,[u]:y}}}},vC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=yn(e,t),s=await Ai(t,l),c=wn(n),f=Ro(n),u=No(n)==="y",{width:d,height:p}=r.floating;let y,g;c==="top"||c==="bottom"?(y=c,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(u){const _=d-s.left-s.right;E=f||m?Qn(v,_):_}else{const _=p-s.top-s.bottom;x=f||m?Qn(C,_):_}if(m&&!f){const _=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),k=Et(s.bottom,0);u?E=d-2*(_!==0||b!==0?_+b:Et(s.left,s.right)):x=p-2*($!==0||k!==0?$+k:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Xn(e){return u1(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(u1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u1(e){return e instanceof Node||e instanceof bt(e).Node}function nt(e){return e instanceof Element||e instanceof bt(e).Element}function on(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function $u(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mC(e){return["table","td","th"].includes(Xn(e))}function id(e){const t=ad(),n=Mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(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 gC(e){let t=Eo(e);for(;on(t)&&!Zl(t);){if(id(t))return t;t=Eo(t)}return null}function ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zl(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Xl(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eo(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||bn(e);return $u(t)?t.host:t}function f1(e){const t=Eo(e);return Zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Oi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=f1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=bt(o);return i?t.concat(a,a.visualViewport||[],Wi(o)?o:[],a.frameElement&&n?Oi(a.frameElement):[]):t.concat(o,Oi(o,[],n))}function d1(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=on(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=xl(n)!==i||xl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ld(e){return nt(e)?e:e.contextElement}function so(e){const t=ld(e);if(!on(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=d1(t);let a=(i?xl(n.width):n.width)/r,l=(i?xl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const yC=Zn(0);function h1(e){const t=bt(e);return!ad()||!t.visualViewport?yC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ld(e);let a=Zn(1);t&&(r?nt(r)&&(a=so(r)):a=so(e));const l=wC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(i){const d=bt(i),p=r&&nt(r)?bt(r):r;let y=d,g=y.frameElement;for(;g&&r&&p!==y;){const C=so(g),v=g.getBoundingClientRect(),m=Mt(g),x=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*C.x,E=v.top+(g.clientTop+parseFloat(m.paddingTop))*C.y;s*=C.x,c*=C.y,f*=C.x,u*=C.y,s+=x,c+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:u,x:s,y:c})}const xC=[":popover-open",":modal"];function p1(e){return xC.some(t=>{try{return e.matches(t)}catch{return!1}})}function CC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?p1(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Zn(1);const f=Zn(0),u=on(r);if((u||!u&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Xl(r)),on(r))){const d=Er(r);c=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function EC(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Xl(e).scrollLeft}function _C(e){const t=bn(e),n=Xl(e),r=e.ownerDocument.body,o=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function SC(e,t){const n=bt(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const c=ad();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function bC(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=on(e)?so(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Lp(e,t,n){let r;if(t==="viewport")r=SC(e,n);else if(t==="document")r=_C(bn(e));else if(nt(t))r=bC(t,n);else{const o=h1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return El(r)}function m1(e,t){const n=Eo(e);return n===t||!nt(n)||Zl(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function $C(e,t){const n=t.get(e);if(n)return n;let r=Oi(e,[],!1).filter(l=>nt(l)&&Xn(l)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?Eo(e):e;for(;nt(a)&&!Zl(a);){const l=Mt(a),s=id(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Eo(a)}return t.set(e,r),r}function TC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?$C(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Lp(t,f,o);return c.top=Et(u.top,c.top),c.right=Qn(u.right,c.right),c.bottom=Qn(u.bottom,c.bottom),c.left=Et(u.left,c.left),c},Lp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function kC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function RC(e,t,n){const r=on(t),o=bn(t),i=n==="fixed",a=Er(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Xn(t)!=="body"||Wi(o))&&(l=Xl(t)),r){const u=Er(t,!0,i,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=v1(o));const c=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:c,y:f,width:a.width,height:a.height}}function Mp(e,t){return!on(e)||Mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=bt(e);if(!on(e)||p1(e))return n;let r=Mp(e,t);for(;r&&mC(r)&&Mt(r).position==="static";)r=Mp(r,t);return r&&(Xn(r)==="html"||Xn(r)==="body"&&Mt(r).position==="static"&&!id(r))?n:r||gC(e)||n}const NC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:RC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function PC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:bn,getClippingRect:TC,getOffsetParent:g1,getElementRects:NC,getClientRects:EC,getDimensions:kC,getScale:so,isElement:nt,isRTL:PC};function AC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const p=$a(f),y=$a(o.clientWidth-(c+u)),g=$a(o.clientHeight-(f+d)),C=$a(c),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(S){const _=S[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return a(!0),i}function OC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=ld(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=c&&l?AC(c,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!s&&p.observe(c),p.observe(t));let y,g=s?Er(e):null;s&&C();function C(){const v=Er(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),u==null||u(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=hC,IC=uC,LC=vC,MC=fC,jp=cC,jC=pC,DC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return sC(e,t,{...o,platform:i})},x1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jp({element:r.current,padding:o}).fn(n):{}:r?jp({element:r,padding:o}).fn(n):{}}}};var Ha=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dp(e,t){const n=C1(e);return Math.round(t*n)/n}function Fp(e){const t=h.useRef(e);return Ha(()=>{t.current=e}),t}function E1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[f,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);_l(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==_.current&&(_.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,S=a||C,_=h.useRef(null),b=h.useRef(null),$=h.useRef(f),k=s!=null,P=Fp(s),j=Fp(o),L=h.useCallback(()=>{if(!_.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),DC(_.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!_l($.current,F)&&($.current=F,$o.flushSync(()=>{u(F)}))})},[d,t,n,j]);Ha(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(U=>({...U,isPositioned:!1})))},[c]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(_.current=E),S&&(b.current=S),E&&S){if(P.current)return P.current(E,S,L);L()}},[E,S,L,P,k]);const N=h.useMemo(()=>({reference:_,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:S}),[E,S]),V=h.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const O=Dp(z.floating,f.x),F=Dp(z.floating,f.y);return l?{...U,transform:"translate("+O+"px, "+F+"px)",...C1(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:F}},[n,l,z.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:L,refs:N,elements:z,floatingStyles:V}),[f,L,N,z,V])}function FC(e){const[t,n]=h.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const _1="Popper",[S1,b1]=En(_1),[zC,$1]=S1(_1),BC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(zC,{scope:t,anchor:r,onAnchorChange:o},n)},UC="PopperAnchor",HC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(UC,n),a=h.useRef(null),l=ze(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),T1="PopperContent",[VC,r$]=S1(T1),WC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:y=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:_,...b}=e,$=$1(T1,f),[k,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=FC(L),z=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,V=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,U=u+(p!=="center"?"-"+p:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(v)?v:[v],K=F.length>0,J={padding:O,boundary:F.filter(KC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>OC(...wt,{animationFrame:S==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?jC():void 0,...J}),C&&IC({...J}),LC({...J,apply:({elements:wt,rects:Yi,availableWidth:ql,availableHeight:es})=>{const{width:ts,height:ns}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${ql}px`),Qt.setProperty("--radix-popper-available-height",`${es}px`),Qt.setProperty("--radix-popper-anchor-width",`${ts}px`),Qt.setProperty("--radix-popper-anchor-height",`${ns}px`)}}),L&&x1({element:L,padding:g}),YC({arrowWidth:z,arrowHeight:V}),E&&MC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),Se=at(_);gn(()=>{Ne&&(Se==null||Se())},[Ne,Se]);const jt=(o=we.arrow)===null||o===void 0?void 0:o.x,be=(i=we.arrow)===null||i===void 0?void 0:i.y,ft=((a=we.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Ki,Jl]=h.useState();return gn(()=>{k&&Jl(window.getComputedStyle(k).zIndex)},[k]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...Be,transform:Ne?Be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ki,"--radix-popper-transform-origin":[(l=we.transformOrigin)===null||l===void 0?void 0:l.x,(s=we.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(VC,{scope:f,placedSide:Ue,onArrowChange:D,arrowX:jt,arrowY:be,shouldHideArrow:ft},h.createElement(fe.div,Y({"data-side":Ue,"data-align":xe},b,{ref:j,style:{...b.style,animation:Ne?void 0:"none",opacity:(c=we.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function KC(e){return e!==null}const YC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=u?C:`${v}px`,E=`${-p}px`):y==="top"?(x=u?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=u?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=u?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const GC=BC,QC=HC,ZC=WC,R1="Popover",[N1,o$]=En(R1,[b1]),sd=b1(),[XC,Po]=N1(R1),JC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=sd(t),s=h.useRef(null),[c,f]=h.useState(!1),[u=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(GC,l,h.createElement(XC,{scope:t,contentId:rn(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},qC="PopoverTrigger",eE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Po(qC,n),i=sd(n),a=ze(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O1(o.open)},r,{ref:a,onClick:ae(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(QC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[tE,nE]=N1(P1,{forceMount:void 0}),rE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Po(P1,t);return h.createElement(tE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Ii="PopoverContent",oE=h.forwardRef((e,t)=>{const n=nE(Ii,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Po(Ii,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(iE,Y({},o,{ref:t})):h.createElement(aE,Y({},o,{ref:t})))}),iE=h.forwardRef((e,t)=>{const n=Po(Ii,e.__scopePopover),r=h.useRef(null),o=ze(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return hg(a)},[]),h.createElement(fg,{as:Co,allowPinchZoom:!0},h.createElement(A1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),aE=h.forwardRef((e,t)=>{const n=Po(Ii,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(A1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),A1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,...u}=e,d=Po(Ii,n),p=sd(n);return ng(),h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1)},h.createElement(ZC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,u,{ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function O1(e){return e?"open":"closed"}const lE=JC,sE=eE,cE=rE,uE=oE;var fE="vocs_Popover";Ht.Root=lE;Ht.Trigger=sE;function Ht({children:e,className:t}){return w.jsx(cE,{children:w.jsx(uE,{className:I(fE,t),sideOffset:12,children:e})})}var dE="vocs_Sidebar_backLink",hE="vocs_Sidebar_divider",pE="vocs_Sidebar_group",ti="vocs_Sidebar_item",I1="vocs_Sidebar_items",vE="vocs_Sidebar_level",mE="vocs_Sidebar_levelCollapsed",gE="vocs_Sidebar_levelInset",yE="vocs_Sidebar_logo",wE="vocs_Sidebar_logoWrapper",xE="vocs_Sidebar_navigation",CE="vocs_Sidebar",L1="vocs_Sidebar_section",EE="vocs_Sidebar_sectionCollapse",_E="vocs_Sidebar_sectionCollapseActive",SE="vocs_Sidebar_sectionHeader",bE="vocs_Sidebar_sectionHeaderActive",zp="vocs_Sidebar_sectionTitle";function M1(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Right"}),w.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var c;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Vl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=$E(i.items);return w.jsxs("aside",{ref:o,className:I(CE,t),children:[w.jsxs("div",{className:wE,children:[w.jsx("div",{className:yE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})}),w.jsx("div",{className:hE})]}),w.jsx("nav",{className:xE,children:w.jsxs("div",{className:pE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ti,dE),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function $E(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function D1(e,t){return e.find(n=>Ul(t,n.link??"")||n.link===t?!0:n.items?D1(n.items,t):!1)}function F1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=D3(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[c,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),u=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=h.useRef(!0);return h.useEffect(()=>{!y.current||(y.current=!1,!Ul(a,n.link??""))||requestAnimationFrame(()=>{var m,x,E;const C=((m=i.current)==null?void 0:m.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((g,C)=>w.jsx(F1,{depth:t+1,item:g,onClick:r,sidebarRef:o},`${g.text}${C}`))})]}):w.jsx(w.Fragment,{children:n.link?w.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:ti,to:n.link,children:n.text}):w.jsx("div",{className:ti,children:n.text})})}function TE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Down"}),w.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function kE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Up"}),w.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function RE(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[w.jsx("title",{children:"Menu"}),w.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}Tu.Curtain=ME;function Tu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:H6,children:[w.jsxs("div",{className:Pp,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:j6,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})})}),e.topNav&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:ba,children:[w.jsx(NE,{items:e.topNav}),w.jsx(AE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Pp,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(k6,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I6}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(LE,{...o},i))})]})]})]})}function NE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{className:i1,children:w.jsx(Fg,{children:e.map((r,o)=>r!=null&&r.link?w.jsx(Gl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:M6,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A6,children:w.jsx(PE,{items:r.items||[]})})]},o))})})}function PE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function AE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,B6),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Go),children:[i.text,w.jsx(st,{label:"Menu",icon:TE,size:"11px"})]}),w.jsx(Ht,{className:K6,children:w.jsx(_6,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?w.jsx(nn,{"data-active":o.includes(c.id),className:Go,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):w.jsxs(S6,{value:f.toString(),children:[w.jsx(b6,{className:I(Go,z6),"data-active":o.includes(c.id),style:Gt({[N6]:`url(${l}/.vocs/icons/chevron-down.svg)`,[P6]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),w.jsx($6,{className:F6,children:(u=c.items)==null?void 0:u.map((d,p)=>w.jsx(nn,{className:Go,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Go,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const OE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},IE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function LE({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:R6,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:L6,label:t,icon:OE[e],size:IE[r]||"18px"})})}function ME({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Vl(),[a,l]=h.useState(!1),[s,c]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=z1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),u=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||u;return w.jsxs("div",{className:O6,children:[w.jsx("div",{className:Rp,children:w.jsx("div",{className:tc,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:c,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:RE,size:"13px"}),w.jsx("div",{className:D6,children:d})]}),w.jsx(Ht,{className:W6,children:w.jsx(j1,{onClickItem:()=>c(!1)})})]}):d})}),w.jsxs("div",{className:Rp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:tc,children:w.jsxs("button",{className:Np,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",w.jsx(st,{label:"Scroll to top",icon:kE,size:"10px"})]})}),w.jsx("div",{className:V6})]}),n==="docs"&&w.jsx("div",{className:tc,children:w.jsxs(Ht.Root,{modal:!0,open:a,onOpenChange:l,children:[w.jsxs(Ht.Trigger,{className:Np,children:["On this page",w.jsx(st,{label:"On this page",icon:M1,size:"10px"})]}),w.jsx(Ht,{className:U6,children:w.jsx(a1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function z1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=z1({sidebarItems:r.items,pathname:n});if(o)return o}}}var jE="vocs_SkipLink";const B1="vocs-content";function DE(){const{pathname:e}=Re();return w.jsx("a",{className:I(jE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var FE="vocs_DocsLayout_content",zE="vocs_DocsLayout_content_withSidebar",BE="vocs_DocsLayout_content_withTopNav",UE="vocs_DocsLayout_gutterLeft",HE="vocs_DocsLayout_gutterRight",VE="vocs_DocsLayout_gutterRight_withSidebar",WE="vocs_DocsLayout_gutterTop",KE="vocs_DocsLayout_gutterTopCurtain",YE="vocs_DocsLayout_gutterTopCurtain_hidden",GE="vocs_DocsLayout_gutterTopCurtain_withSidebar",QE="vocs_DocsLayout_gutterTop_offsetLeftGutter",ZE="vocs_DocsLayout_gutterTop_sticky",XE="vocs_DocsLayout",JE="vocs_DocsLayout_sidebar";function ku({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:c,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=mu("banner",!0);return w.jsxs("div",{className:XE,"data-layout":i,style:Gt({[Yx]:u?t==null?void 0:t.height:void 0,[Rx.default]:n!=null&&n.google?`${n.google}, ${kx.default}`:void 0}),children:[w.jsx(DE,{}),u&&w.jsx(v5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:UE,children:w.jsx(j1,{className:JE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:c,className:I(WE,l&&QE,(i==="minimal"||i==="landing")&&ZE),children:[w.jsx(Eu,{}),w.jsx(Tu,{})]}),w.jsxs("div",{className:I(KE,l&&GE,(i==="minimal"||i==="landing")&&YE),children:[w.jsx(Eu.Curtain,{}),w.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(HE,l&&VE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(FE,l&&zE,s&&BE),style:Gt({[js.horizontalPadding]:o==null?void 0:o.horizontalPadding,[js.width]:o==null?void 0:o.width,[js.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(Z8,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},U1=Z.createContext(Ru);function qE(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function e_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=qE(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},t_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",n_=t_,r_=n_;function V1(){}function W1(){}W1.resetWarningCache=V1;var o_=function(){function e(r,o,i,a,l,s){if(s!==r_){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:W1,resetWarningCache:V1};return n.PropTypes=n,n};H1.exports=o_();var i_=H1.exports;const Ce=Jn(i_);function a_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,l_=a_(K1);function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var c_=!!(typeof window<"u"&&window.document&&window.document.createElement);function u_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){s_(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=u.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return l_.createElement(i,this.props)},u}(K1.PureComponent);return Bp(c,"displayName","SideEffect("+r(i)+")"),Bp(c,"canUseDOM",c_),c}}var f_=u_;const d_=Jn(f_);var h_=typeof Element<"u",p_=typeof Map=="function",v_=typeof Set=="function",m_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Va(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}var i;if(p_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Va(r.value[1],t.get(r.value[0])))return!1;return!0}if(v_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(m_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(h_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Va(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var g_=function(t,n){try{return Va(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const y_=Jn(g_);/* +*****************************************************/(function(e,t){(function(n,r){e.exports=r()})(Cy,function(){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r=function(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")},o=function(){function c(f,u){for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;r(this,c),this.ctx=f,this.iframes=u,this.exclude=d,this.iframesTimeout=p}return o(c,[{key:"getContexts",value:function(){var u=void 0,d=[];return typeof this.ctx>"u"||!this.ctx?u=[]:NodeList.prototype.isPrototypeOf(this.ctx)?u=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?u=this.ctx:typeof this.ctx=="string"?u=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):u=[this.ctx],u.forEach(function(p){var y=d.filter(function(g){return g.contains(p)}).length>0;d.indexOf(p)===-1&&!y&&d.push(p)}),d}},{key:"getIframeContents",value:function(u,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},y=void 0;try{var g=u.contentWindow;if(y=g.document,!g||!y)throw new Error("iframe inaccessible")}catch{p()}y&&d(y)}},{key:"isIframeBlank",value:function(u){var d="about:blank",p=u.getAttribute("src").trim(),y=u.contentWindow.location.href;return y===d&&p!==d&&p}},{key:"observeIframeLoad",value:function(u,d,p){var y=this,g=!1,C=null,v=function m(){if(!g){g=!0,clearTimeout(C);try{y.isIframeBlank(u)||(u.removeEventListener("load",m),y.getIframeContents(u,d,p))}catch{p()}}};u.addEventListener("load",v),C=setTimeout(v,this.iframesTimeout)}},{key:"onIframeReady",value:function(u,d,p){try{u.contentWindow.document.readyState==="complete"?this.isIframeBlank(u)?this.observeIframeLoad(u,d,p):this.getIframeContents(u,d,p):this.observeIframeLoad(u,d,p)}catch{p()}}},{key:"waitForIframes",value:function(u,d){var p=this,y=0;this.forEachIframe(u,function(){return!0},function(g){y++,p.waitForIframes(g.querySelector("html"),function(){--y||d()})},function(g){g||d()})}},{key:"forEachIframe",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=u.querySelectorAll("iframe"),v=C.length,m=0;C=Array.prototype.slice.call(C);var x=function(){--v<=0&&g(m)};v||x(),C.forEach(function(E){c.matches(E,y.exclude)?x():y.onIframeReady(E,function(S){d(E)&&(m++,p(S)),x()},x)})}},{key:"createIterator",value:function(u,d,p){return document.createNodeIterator(u,d,p,!1)}},{key:"createInstanceOnIframe",value:function(u){return new c(u.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(u,d,p){var y=u.compareDocumentPosition(p),g=Node.DOCUMENT_POSITION_PRECEDING;if(y&g)if(d!==null){var C=d.compareDocumentPosition(p),v=Node.DOCUMENT_POSITION_FOLLOWING;if(C&v)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(u){var d=u.previousNode(),p=void 0;return d===null?p=u.nextNode():p=u.nextNode()&&u.nextNode(),{prevNode:d,node:p}}},{key:"checkIframeFilter",value:function(u,d,p,y){var g=!1,C=!1;return y.forEach(function(v,m){v.val===p&&(g=m,C=v.handled)}),this.compareNodeIframe(u,d,p)?(g===!1&&!C?y.push({val:p,handled:!0}):g!==!1&&!C&&(y[g].handled=!0),!0):(g===!1&&y.push({val:p,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(u,d,p,y){var g=this;u.forEach(function(C){C.handled||g.getIframeContents(C.val,function(v){g.createInstanceOnIframe(v).forEachNode(d,p,y)})})}},{key:"iterateThroughNodes",value:function(u,d,p,y,g){for(var C=this,v=this.createIterator(d,u,y),m=[],x=[],E=void 0,S=void 0,_=function(){var $=C.getIteratorNode(v);return S=$.prevNode,E=$.node,E};_();)this.iframes&&this.forEachIframe(d,function(b){return C.checkIframeFilter(E,S,b,m)},function(b){C.createInstanceOnIframe(b).forEachNode(u,function($){return x.push($)},y)}),x.push(E);x.forEach(function(b){p(b)}),this.iframes&&this.handleOpenIframes(m,u,p,y),g()}},{key:"forEachNode",value:function(u,d,p){var y=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},C=this.getContexts(),v=C.length;v||g(),C.forEach(function(m){var x=function(){y.iterateThroughNodes(u,m,d,p,function(){--v<=0&&g()})};y.iframes?y.waitForIframes(m,x):x()})}}],[{key:"matches",value:function(u,d){var p=typeof d=="string"?[d]:d,y=u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector;if(y){var g=!1;return p.every(function(C){return y.call(u,C)?(g=!0,!1):!0}),g}else return!1}}]),c}(),l=function(){function c(f){r(this,c),this.ctx=f,this.ie=!1;var u=window.navigator.userAgent;(u.indexOf("MSIE")>-1||u.indexOf("Trident")>-1)&&(this.ie=!0)}return o(c,[{key:"log",value:function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",p=this.opt.log;this.opt.debug&&(typeof p>"u"?"undefined":n(p))==="object"&&typeof p[d]=="function"&&p[d]("mark.js: "+u)}},{key:"escapeStr",value:function(u){return u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(u){return this.opt.wildcards!=="disabled"&&(u=this.setupWildcardsRegExp(u)),u=this.escapeStr(u),Object.keys(this.opt.synonyms).length&&(u=this.createSynonymsRegExp(u)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),this.opt.diacritics&&(u=this.createDiacriticsRegExp(u)),u=this.createMergedBlanksRegExp(u),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.createJoinersRegExp(u)),this.opt.wildcards!=="disabled"&&(u=this.createWildcardsRegExp(u)),u=this.createAccuracyRegExp(u),u}},{key:"createSynonymsRegExp",value:function(u){var d=this.opt.synonyms,p=this.opt.caseSensitive?"":"i",y=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var g in d)if(d.hasOwnProperty(g)){var C=d[g],v=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(g):this.escapeStr(g),m=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(C):this.escapeStr(C);v!==""&&m!==""&&(u=u.replace(new RegExp("("+this.escapeStr(v)+"|"+this.escapeStr(m)+")","gm"+p),y+("("+this.processSynomyms(v)+"|")+(this.processSynomyms(m)+")")+y))}return u}},{key:"processSynomyms",value:function(u){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(u=this.setupIgnoreJoinersRegExp(u)),u}},{key:"setupWildcardsRegExp",value:function(u){return u=u.replace(/(?:\\)*\?/g,function(d){return d.charAt(0)==="\\"?"?":""}),u.replace(/(?:\\)*\*/g,function(d){return d.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(u){var d=this.opt.wildcards==="withSpaces";return u.replace(/\u0001/g,d?"[\\S\\s]?":"\\S?").replace(/\u0002/g,d?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(u){return u.replace(/[^(|)\\]/g,function(d,p,y){var g=y.charAt(p+1);return/[(|)\\]/.test(g)||g===""?d:d+"\0"})}},{key:"createJoinersRegExp",value:function(u){var d=[],p=this.opt.ignorePunctuation;return Array.isArray(p)&&p.length&&d.push(this.escapeStr(p.join(""))),this.opt.ignoreJoiners&&d.push("\\u00ad\\u200b\\u200c\\u200d"),d.length?u.split(/\u0000+/).join("["+d.join("")+"]*"):u}},{key:"createDiacriticsRegExp",value:function(u){var d=this.opt.caseSensitive?"":"i",p=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],y=[];return u.split("").forEach(function(g){p.every(function(C){if(C.indexOf(g)!==-1){if(y.indexOf(C)>-1)return!1;u=u.replace(new RegExp("["+C+"]","gm"+d),"["+C+"]"),y.push(C)}return!0})}),u}},{key:"createMergedBlanksRegExp",value:function(u){return u.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(u){var d=this,p="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",y=this.opt.accuracy,g=typeof y=="string"?y:y.value,C=typeof y=="string"?[]:y.limiters,v="";switch(C.forEach(function(m){v+="|"+d.escapeStr(m)}),g){case"partially":default:return"()("+u+")";case"complementary":return v="\\s"+(v||this.escapeStr(p)),"()([^"+v+"]*"+u+"[^"+v+"]*)";case"exactly":return"(^|\\s"+v+")("+u+")(?=$|\\s"+v+")"}}},{key:"getSeparatedKeywords",value:function(u){var d=this,p=[];return u.forEach(function(y){d.opt.separateWordSearch?y.split(" ").forEach(function(g){g.trim()&&p.indexOf(g)===-1&&p.push(g)}):y.trim()&&p.indexOf(y)===-1&&p.push(y)}),{keywords:p.sort(function(y,g){return g.length-y.length}),length:p.length}}},{key:"isNumeric",value:function(u){return Number(parseFloat(u))==u}},{key:"checkRanges",value:function(u){var d=this;if(!Array.isArray(u)||Object.prototype.toString.call(u[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(u),[];var p=[],y=0;return u.sort(function(g,C){return g.start-C.start}).forEach(function(g){var C=d.callNoMatchOnInvalidRanges(g,y),v=C.start,m=C.end,x=C.valid;x&&(g.start=v,g.length=m-v,p.push(g),y=m)}),p}},{key:"callNoMatchOnInvalidRanges",value:function(u,d){var p=void 0,y=void 0,g=!1;return u&&typeof u.start<"u"?(p=parseInt(u.start,10),y=p+parseInt(u.length,10),this.isNumeric(u.start)&&this.isNumeric(u.length)&&y-d>0&&y-p>0?g=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(u))),this.opt.noMatch(u))):(this.log("Ignoring invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:p,end:y,valid:g}}},{key:"checkWhitespaceRanges",value:function(u,d,p){var y=void 0,g=!0,C=p.length,v=d-C,m=parseInt(u.start,10)-v;return m=m>C?C:m,y=m+parseInt(u.length,10),y>C&&(y=C,this.log("End range automatically set to the max value of "+C)),m<0||y-m<0||m>C||y>C?(g=!1,this.log("Invalid range: "+JSON.stringify(u)),this.opt.noMatch(u)):p.substring(m,y).replace(/\s+/g,"")===""&&(g=!1,this.log("Skipping whitespace only range: "+JSON.stringify(u)),this.opt.noMatch(u)),{start:m,end:y,valid:g}}},{key:"getTextNodes",value:function(u){var d=this,p="",y=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(g){y.push({start:p.length,end:(p+=g.textContent).length,node:g})},function(g){return d.matchesExclude(g.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){u({value:p,nodes:y})})}},{key:"matchesExclude",value:function(u){return a.matches(u,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(u,d,p){var y=this.opt.element?this.opt.element:"mark",g=u.splitText(d),C=g.splitText(p-d),v=document.createElement(y);return v.setAttribute("data-markjs","true"),this.opt.className&&v.setAttribute("class",this.opt.className),v.textContent=g.textContent,g.parentNode.replaceChild(v,g),C}},{key:"wrapRangeInMappedTextNode",value:function(u,d,p,y,g){var C=this;u.nodes.every(function(v,m){var x=u.nodes[m+1];if(typeof x>"u"||x.start>d){if(!y(v.node))return!1;var E=d-v.start,S=(p>v.end?v.end:p)-v.start,_=u.value.substr(0,v.start),b=u.value.substr(S+v.start);if(v.node=C.wrapRangeInTextNode(v.node,E,S),u.value=_+b,u.nodes.forEach(function($,k){k>=m&&(u.nodes[k].start>0&&k!==m&&(u.nodes[k].start-=S),u.nodes[k].end-=S)}),p-=S,g(v.node.previousSibling,v.start),p>v.end)d=v.end;else return!1}return!0})}},{key:"wrapMatches",value:function(u,d,p,y,g){var C=this,v=d===0?0:d+1;this.getTextNodes(function(m){m.nodes.forEach(function(x){x=x.node;for(var E=void 0;(E=u.exec(x.textContent))!==null&&E[v]!=="";)if(p(E[v],x)){var S=E.index;if(v!==0)for(var _=1;_{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function mu(e,t){const[n,r]=h.useState();h.useEffect(()=>{const i=d6(e);r(typeof i>"u"||i===null?typeof t=="function"?t():t:i)},[t,e]);const o=h.useCallback(i=>{r(a=>{let l;typeof i=="function"?l=i(a):l=i;try{localStorage.setItem(e,JSON.stringify(l))}catch{}return l})},[e]);return[n,o]}function d6(e){try{const t=localStorage.getItem(e);return typeof t=="string"?JSON.parse(t):void 0}catch{return}}var h6="vocs_Kbd";function Rg(e){return w.jsx("kbd",{...e,className:I(e.className,h6)})}var p6="vocs_KeyboardShortcut_kbdGroup",v6="vocs_KeyboardShortcut";function eo(e){const{description:t,keys:n}=e;return w.jsxs("span",{className:v6,children:[t,w.jsx("span",{className:p6,children:n.map(r=>w.jsx(Rg,{children:r},r))})]})}var m6="vocs_SearchDialog_content",mp="vocs_SearchDialog_excerpt",g6="vocs_SearchDialog_overlay",y6="vocs_SearchDialog_result",gp="vocs_SearchDialog_resultIcon",w6="vocs_SearchDialog_resultSelected",x6="vocs_SearchDialog_results",C6="vocs_SearchDialog",E6="vocs_SearchDialog_searchBox",_6="vocs_SearchDialog_searchInput",_a="vocs_SearchDialog_searchInputIcon",S6="vocs_SearchDialog_searchInputIconDesktop",b6="vocs_SearchDialog_searchInputIconMobile",$6="vocs_SearchDialog_searchShortcuts",yp="vocs_SearchDialog_title",T6="vocs_SearchDialog_titleIcon",k6="vocs_SearchDialog_titles";function Ng(e){const t=Ff(),n=h.useRef(null),r=h.useRef(null),[o,i]=mu("filterText",""),a=f6(o,200),l=Tg(),[s,c]=h.useState(-1),[f,u]=h.useState(!1),[d,p]=mu("showDetailView",!0),y=h.useMemo(()=>l?a?(c(0),l.search(a).slice(0,16)):(c(-1),[]):[],[l,a]),g=y.length,C=y[s],v=h.useCallback(()=>{var S,_,b;if(!r.current)return;const m=new Set;for(const $ of y)for(const k in $.match)m.add(k);const x=new u6(r.current);x.unmark({done(){x==null||x.markRegExp(R6(m))}});const E=r.current.querySelectorAll(`.${mp}`);for(const $ of E)(S=$.querySelector('mark[data-markjs="true"]'))==null||S.scrollIntoView({block:"center"});(b=(_=r.current)==null?void 0:_.firstElementChild)==null||b.scrollIntoView({block:"start"})},[y]);return h.useEffect(()=>{if(!e.open)return;function m(x){var E;switch(x.key){case"ArrowDown":{x.preventDefault(),c(S=>{var $;let _=S+1;_>=g&&(_=0);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),u(!0);break}case"ArrowUp":{x.preventDefault(),c(S=>{var $;let _=S-1;_<0&&(_=g-1);const b=($=r.current)==null?void 0:$.children[_];return b==null||b.scrollIntoView({block:"nearest"}),_}),u(!0);break}case"Backspace":{if(!x.metaKey)return;x.preventDefault(),i(""),(E=n.current)==null||E.focus();break}case"Enter":{if(x.target instanceof HTMLButtonElement&&x.target.type!=="submit"||!C)return;x.preventDefault(),t(C.href),e.onClose();break}}}return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[t,g,i,C,e.open,e.onClose]),h.useEffect(()=>{a!==""&&r.current&&v()},[v,a]),w.jsxs(z4,{children:[w.jsx(B4,{className:g6}),w.jsxs(U4,{onOpenAutoFocus:m=>{n.current&&(m.preventDefault(),n.current.focus()),v()},onCloseAutoFocus:()=>{c(0)},className:C6,"aria-describedby":void 0,children:[w.jsx(H4,{className:Z0,children:"Search"}),w.jsxs("form",{className:E6,children:[w.jsx("button",{"aria-label":"Close search dialog",type:"button",onClick:()=>e.onClose(),className:b6,children:w.jsx(r5,{className:_a,height:20,width:20})}),w.jsx(s6,{htmlFor:"search-input",children:w.jsx(Uf,{"aria-label":"Search",className:I(_a,S6),height:20,width:20})}),w.jsx("input",{ref:n,tabIndex:0,className:_6,id:"search-input",onChange:m=>i(m.target.value),placeholder:"Search",type:"search",value:o}),w.jsx("button",{"aria-label":"Toggle detail view",type:"button",onClick:()=>p(m=>!m),children:w.jsx(f5,{className:_a,height:20,width:20})}),w.jsx("button",{"aria-label":"Reset search",type:"button",className:_a,onClick:()=>{var m;i(""),(m=n.current)==null||m.focus()},children:"⌫"})]}),w.jsxs("ul",{className:x6,role:y.length?"listbox":void 0,onMouseMove:()=>u(!1),ref:r,children:[a&&y.length===0&&w.jsxs("li",{children:['No results for "',w.jsx("span",{children:a}),'"']}),y.map((m,x)=>{var E;return w.jsx("li",{role:"option",className:I(y6,x===s&&w6),"aria-selected":x===s,"aria-label":[...m.titles.filter(S=>!!S),m.title].join(" > "),children:w.jsxs(M0,{to:m.href,onClick:S=>{S.metaKey||e.onClose()},onMouseEnter:()=>!f&&c(x),onFocus:()=>c(x),children:[w.jsxs("div",{className:k6,children:[m.isPage?w.jsx(c5,{className:gp}):w.jsx("span",{className:gp,children:"#"}),m.titles.filter(S=>!!S).map(S=>w.jsxs("span",{className:yp,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:S}}),w.jsx(i5,{className:T6})]},S)),w.jsx("span",{className:yp,children:w.jsx("span",{dangerouslySetInnerHTML:{__html:m.title}})})]}),d&&((E=m.text)==null?void 0:E.trim())&&w.jsx("div",{className:mp,children:w.jsx(Y0,{className:m6,children:w.jsx("div",{dangerouslySetInnerHTML:{__html:m.html}})})})]})},m.id)})]}),w.jsxs("div",{className:$6,children:[w.jsx(eo,{description:"Navigate",keys:["↑","↓"]}),w.jsx(eo,{description:"Select",keys:["enter"]}),w.jsx(eo,{description:"Close",keys:["esc"]}),w.jsx(eo,{description:"Reset",keys:["⌘","⌫"]})]})]})]})}function R6(e){return new RegExp([...e].sort((t,n)=>n.length-t.length).map(t=>`(${t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})`).join("|"),"gi")}function N6(){Tg();const[e,t]=h.useState(!1);return h.useEffect(()=>{function n(r){const o=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);r.key==="/"&&!e&&!o?(r.preventDefault(),t(!0)):r.metaKey===!0&&r.key==="k"&&(r.preventDefault(),t(i=>!i))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e]),w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsxs("button",{className:i6,type:"button",children:[w.jsx(Uf,{style:{marginTop:2}}),"Search",w.jsx("div",{className:a6,children:w.jsx("div",{style:{background:"currentColor",transform:"rotate(45deg)",width:1.5,borderRadius:2,height:"100%"}})})]})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var Pg="vocs_DesktopTopNav_button",P6="vocs_DesktopTopNav_content",A6="vocs_DesktopTopNav_curtain",wp="vocs_DesktopTopNav_divider",qs="vocs_DesktopTopNav_group",Sa="vocs_DesktopTopNav_hideCompact",gu="vocs_DesktopTopNav_icon",yl="vocs_DesktopTopNav_item",O6="vocs_DesktopTopNav_logo",I6="vocs_DesktopTopNav_logoWrapper",L6="vocs_DesktopTopNav",xp="vocs_DesktopTopNav_section",M6="vocs_DesktopTopNav_withLogo",j6="vocs_Icon",yu="var(--vocs_Icon_size)";function st({className:e,label:t,icon:n,size:r,style:o}){return w.jsx("div",{"aria-label":t,className:I(j6,e),role:"img",style:{...o,...Gt({[yu]:r})},children:w.jsx(n,{height:r,width:r})})}var D6="vocs_Logo_logoDark",F6="vocs_Logo_logoLight",ec="vocs_Logo";function z6({className:e}){const{logoUrl:t}=Je();return t?w.jsx(w.Fragment,{children:typeof t=="string"?w.jsx("img",{alt:"Logo",className:I(e,ec),src:t}):w.jsxs(w.Fragment,{children:[w.jsx("img",{alt:"Logo",className:I(e,ec,D6),src:t.dark}),w.jsx("img",{alt:"Logo",className:I(e,ec,F6),src:t.light})]})}):null}var B6="vocs_NavLogo_logoImage",U6="vocs_NavLogo_title";function Yf(){const e=Je();return e.logoUrl?w.jsx(z6,{className:B6}):w.jsx("div",{className:U6,children:e.title})}const H6=h.createContext(void 0);function Kl(e){const t=h.useContext(H6);return e||t||"ltr"}function Yl(e){const t=e+"CollectionProvider",[n,r]=En(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:y,children:g}=p,C=Z.useRef(null),v=Z.useRef(new Map).current;return Z.createElement(o,{scope:y,itemMap:v,collectionRef:C},g)},l=e+"CollectionSlot",s=Z.forwardRef((p,y)=>{const{scope:g,children:C}=p,v=i(l,g),m=ze(y,v.collectionRef);return Z.createElement(Co,{ref:m},C)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",u=Z.forwardRef((p,y)=>{const{scope:g,children:C,...v}=p,m=Z.useRef(null),x=ze(y,m),E=i(c,g);return Z.useEffect(()=>(E.itemMap.set(m,{ref:m,...v}),()=>void E.itemMap.delete(m))),Z.createElement(Co,{[f]:"",ref:x},C)});function d(p){const y=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const C=y.collectionRef.current;if(!C)return[];const v=Array.from(C.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,S)=>v.indexOf(E.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:s,ItemSlot:u},d,r]}function V6(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const W6=h.forwardRef((e,t)=>h.createElement(fe.span,Y({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),K6=W6,Vi="NavigationMenu",[Gf,Y6,G6]=Yl(Vi),[wu,Q6,Z6]=Yl(Vi),[Qf,e$]=En(Vi,[G6,Z6]),[X6,Nr]=Qf(Vi),[J6,t$]=Qf(Vi),q6=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:l=300,orientation:s="horizontal",dir:c,...f}=e,[u,d]=h.useState(null),p=ze(t,k=>d(k)),y=Kl(c),g=h.useRef(0),C=h.useRef(0),v=h.useRef(0),[m,x]=h.useState(!0),[E="",S]=rr({prop:r,onChange:k=>{const P=k!=="",j=l>0;P?(window.clearTimeout(v.current),j&&x(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>x(!0),l)),o==null||o(k)},defaultProp:i}),_=h.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>S(""),150)},[S]),b=h.useCallback(k=>{window.clearTimeout(C.current),S(k)},[S]),$=h.useCallback(k=>{E===k?window.clearTimeout(C.current):g.current=window.setTimeout(()=>{window.clearTimeout(C.current),S(k)},a)},[E,S,a]);return h.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(C.current),window.clearTimeout(v.current)},[]),h.createElement(e7,{scope:n,isRootMenu:!0,value:E,dir:y,orientation:s,rootNavigationMenu:u,onTriggerEnter:k=>{window.clearTimeout(g.current),m?$(k):b(k)},onTriggerLeave:()=>{window.clearTimeout(g.current),_()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:_,onItemSelect:k=>{S(P=>P===k?"":k)},onItemDismiss:()=>S("")},h.createElement(fe.nav,Y({"aria-label":"Main","data-orientation":s,dir:y},f,{ref:p})))}),e7=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:u,onContentEnter:d,onContentLeave:p}=e,[y,g]=h.useState(null),[C,v]=h.useState(new Map),[m,x]=h.useState(null);return h.createElement(X6,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:V6(l),baseId:rn(),dir:o,orientation:i,viewport:y,onViewportChange:g,indicatorTrack:m,onIndicatorTrackChange:x,onTriggerEnter:at(f),onTriggerLeave:at(u),onContentEnter:at(d),onContentLeave:at(p),onItemSelect:at(s),onItemDismiss:at(c),onViewportContentChange:h.useCallback((E,S)=>{v(_=>(_.set(E,S),new Map(_)))},[]),onViewportContentRemove:h.useCallback(E=>{v(S=>S.has(E)?(S.delete(E),new Map(S)):S)},[])},h.createElement(Gf.Provider,{scope:t},h.createElement(J6,{scope:t,items:C},a)))},t7="NavigationMenuList",n7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(t7,n),i=h.createElement(fe.ul,Y({"data-orientation":o.orientation},r,{ref:t}));return h.createElement(fe.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},h.createElement(Gf.Slot,{scope:n},o.isRootMenu?h.createElement(Og,{asChild:!0},i):i))}),r7="NavigationMenuItem",[o7,Ag]=Qf(r7),i7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=rn(),a=r||i||"LEGACY_REACT_AUTO_VALUE",l=h.useRef(null),s=h.useRef(null),c=h.useRef(null),f=h.useRef(()=>{}),u=h.useRef(!1),d=h.useCallback((y="start")=>{if(l.current){f.current();const g=xu(l.current);g.length&&Zf(y==="start"?g:g.reverse())}},[]),p=h.useCallback(()=>{if(l.current){const y=xu(l.current);y.length&&(f.current=h7(y))}},[]);return h.createElement(o7,{scope:n,value:a,triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:p,onContentFocusOutside:p},h.createElement(fe.li,Y({},o,{ref:t})))}),Cp="NavigationMenuTrigger",a7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Nr(Cp,e.__scopeNavigationMenu),a=Ag(Cp,e.__scopeNavigationMenu),l=h.useRef(null),s=ze(l,a.triggerRef,t),c=Mg(i.baseId,a.value),f=jg(i.baseId,a.value),u=h.useRef(!1),d=h.useRef(!1),p=a.value===i.value;return h.createElement(h.Fragment,null,h.createElement(Gf.ItemSlot,{scope:n,value:a.value},h.createElement(Ig,{asChild:!0},h.createElement(fe.button,Y({id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Lg(p),"aria-expanded":p,"aria-controls":f},o,{ref:s,onPointerEnter:ae(e.onPointerEnter,()=>{d.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ae(e.onPointerMove,Cu(()=>{r||d.current||a.wasEscapeCloseRef.current||u.current||(i.onTriggerEnter(a.value),u.current=!0)})),onPointerLeave:ae(e.onPointerLeave,Cu(()=>{r||(i.onTriggerLeave(),u.current=!1)})),onClick:ae(e.onClick,()=>{i.onItemSelect(a.value),d.current=p}),onKeyDown:ae(e.onKeyDown,y=>{const C={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&y.key===C&&(a.onEntryKeyDown(),y.preventDefault())})})))),p&&h.createElement(h.Fragment,null,h.createElement(K6,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:y=>{const g=a.contentRef.current,C=y.relatedTarget,v=C===l.current,m=g==null?void 0:g.contains(C);(v||!m)&&a.onFocusProxyEnter(v?"start":"end")}}),i.viewport&&h.createElement("span",{"aria-owns":f})))}),Ep="navigationMenu.linkSelect",l7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return h.createElement(Ig,{asChild:!0},h.createElement(fe.a,Y({"data-active":r?"":void 0,"aria-current":r?"page":void 0},i,{ref:t,onClick:ae(e.onClick,a=>{const l=a.target,s=new CustomEvent(Ep,{bubbles:!0,cancelable:!0});if(l.addEventListener(Ep,c=>o==null?void 0:o(c),{once:!0}),cu(l,s),!s.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Ua,{bubbles:!0,cancelable:!0});cu(l,c)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",s7=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(wl,e.__scopeNavigationMenu),i=Ag(wl,e.__scopeNavigationMenu),a=ze(i.contentRef,t),l=i.value===o.value,s={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?h.createElement(c7,Y({forceMount:n},s,{ref:a})):h.createElement(_n,{present:n||l},h.createElement(u7,Y({"data-state":Lg(l)},s,{ref:a,onPointerEnter:ae(e.onPointerEnter,o.onContentEnter),onPointerLeave:ae(e.onPointerLeave,Cu(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...s.style}})))}),c7=h.forwardRef((e,t)=>{const n=Nr(wl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return gn(()=>{r(e.value,{ref:t,...e})},[e,t,r]),gn(()=>()=>o(e.value),[e.value,o]),null}),Ua="navigationMenu.rootContentDismiss",u7=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:s,...c}=e,f=Nr(wl,n),u=h.useRef(null),d=ze(u,t),p=Mg(f.baseId,r),y=jg(f.baseId,r),g=Y6(n),C=h.useRef(null),{onItemDismiss:v}=f;h.useEffect(()=>{const x=u.current;if(f.isRootMenu&&x){const E=()=>{var S;v(),l(),x.contains(document.activeElement)&&((S=o.current)===null||S===void 0||S.focus())};return x.addEventListener(Ua,E),()=>x.removeEventListener(Ua,E)}},[f.isRootMenu,e.value,o,v,l]);const m=h.useMemo(()=>{const E=g().map(P=>P.value);f.dir==="rtl"&&E.reverse();const S=E.indexOf(f.value),_=E.indexOf(f.previousValue),b=r===f.value,$=_===E.indexOf(r);if(!b&&!$)return C.current;const k=(()=>{if(S!==_){if(b&&_!==-1)return S>_?"from-end":"from-start";if($&&S!==-1)return S>_?"to-start":"to-end"}return null})();return C.current=k,k},[f.previousValue,f.value,f.dir,g,r]);return h.createElement(Og,{asChild:!0},h.createElement(Hf,Y({id:y,"aria-labelledby":p,"data-motion":m,"data-orientation":f.orientation},c,{ref:d,onDismiss:()=>{var x;const E=new Event(Ua,{bubbles:!0,cancelable:!0});(x=u.current)===null||x===void 0||x.dispatchEvent(E)},onFocusOutside:ae(e.onFocusOutside,x=>{var E;s();const S=x.target;(E=f.rootNavigationMenu)!==null&&E!==void 0&&E.contains(S)&&x.preventDefault()}),onPointerDownOutside:ae(e.onPointerDownOutside,x=>{var E;const S=x.target,_=g().some($=>{var k;return(k=$.ref.current)===null||k===void 0?void 0:k.contains(S)}),b=f.isRootMenu&&((E=f.viewport)===null||E===void 0?void 0:E.contains(S));(_||b||!f.isRootMenu)&&x.preventDefault()}),onKeyDown:ae(e.onKeyDown,x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const b=xu(x.currentTarget),$=document.activeElement,k=b.findIndex(L=>L===$),j=x.shiftKey?b.slice(0,k).reverse():b.slice(k+1,b.length);if(Zf(j))x.preventDefault();else{var _;(_=i.current)===null||_===void 0||_.focus()}}}),onEscapeKeyDown:ae(e.onEscapeKeyDown,x=>{a.current=!0})})))}),f7="FocusGroup",Og=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(f7,n);return h.createElement(wu.Provider,{scope:n},h.createElement(wu.Slot,{scope:n},h.createElement(fe.div,Y({dir:o.dir},r,{ref:t}))))}),_p=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],d7="FocusGroupItem",Ig=h.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Q6(n),i=Nr(d7,n);return h.createElement(wu.ItemSlot,{scope:n},h.createElement(fe.button,Y({},r,{ref:t,onKeyDown:ae(e.onKeyDown,a=>{if(["Home","End",..._p].includes(a.key)){let s=o().map(u=>u.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&s.reverse(),_p.includes(a.key)){const u=s.indexOf(a.currentTarget);s=s.slice(u+1)}setTimeout(()=>Zf(s)),a.preventDefault()}})})))});function xu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function h7(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Lg(e){return e?"open":"closed"}function Mg(e,t){return`${e}-trigger-${t}`}function jg(e,t){return`${e}-content-${t}`}function Cu(e){return t=>t.pointerType==="mouse"?e(t):void 0}const p7=q6,v7=n7,m7=i7,g7=a7,y7=l7,w7=s7;var x7="var(--vocs_NavigationMenu_chevronDownIcon)",C7="vocs_NavigationMenu_content",E7="vocs_NavigationMenu_item",_7="vocs_NavigationMenu_link",S7="vocs_NavigationMenu_list",b7="vocs_NavigationMenu",$7="vocs_NavigationMenu_trigger vocs_NavigationMenu_link";const Dg=e=>w.jsx(p7,{...e,className:I(e.className,b7)}),Fg=e=>w.jsx(v7,{...e,className:I(e.className,S7)}),Gl=({active:e,children:t,className:n,href:r})=>w.jsx(y7,{asChild:!0,children:w.jsx(nn,{"data-active":e,className:I(n,_7),href:r,variant:"styleless",children:t})}),zg=e=>w.jsx(m7,{...e,className:I(e.className,E7)}),Bg=({active:e,className:t,...n})=>{const{basePath:r}=Je(),o=r;return w.jsx(g7,{...n,"data-active":e,className:I(t,$7),style:Gt({[x7]:`url(${o}/.vocs/icons/chevron-down.svg)`})})},Ug=e=>w.jsx(w7,{...e,className:I(e.className,C7)});function Hg(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 127.14 96.36",children:[w.jsx("title",{children:"Discord"}),w.jsx("g",{id:"图层_2","data-name":"图层 2",children:w.jsx("g",{id:"Discord_Logos","data-name":"Discord Logos",children:w.jsx("g",{id:"Discord_Logo_-_Large_-_White","data-name":"Discord Logo - Large - White",children:w.jsx("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z",fill:"currentColor"})})})})]})}function Vg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"GitHub"}),w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})]})}function T7(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 78 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Moon"}),w.jsx("path",{d:"M62.8455 45.9668C63.6268 45.9668 64.2127 45.3809 64.3104 44.5508C65.4334 34.3457 66.0682 33.9551 76.4197 32.3438C77.3963 32.1973 77.9334 31.7578 77.9334 30.8789C77.9334 30.0977 77.3963 29.5605 76.6151 29.4629C66.1658 27.4609 65.4334 27.4609 64.3104 17.2559C64.2127 16.377 63.6268 15.8398 62.8455 15.8398C62.0154 15.8398 61.4783 16.377 61.3807 17.207C60.1111 27.6074 59.6229 28.0957 49.0272 29.4629C48.2947 29.5117 47.7088 30.0977 47.7088 30.8789C47.7088 31.709 48.2947 32.1973 49.0272 32.3438C59.6229 34.3457 60.0623 34.4434 61.3807 44.6484C61.4783 45.3809 62.0154 45.9668 62.8455 45.9668ZM44.535 19.5508C45.0233 19.5508 45.3162 19.2578 45.4139 18.7695C46.6834 12.4707 46.5369 12.373 53.1287 11.0547C53.5682 10.957 53.91 10.7129 53.91 10.1758C53.91 9.63868 53.5682 9.39448 53.1287 9.29688C46.5369 7.97848 46.6834 7.88089 45.4139 1.58199C45.3162 1.09379 45.0233 0.800781 44.535 0.800781C43.9979 0.800781 43.7049 1.09379 43.6072 1.58199C42.3377 7.88089 42.4842 7.97848 35.9412 9.29688C35.4529 9.39448 35.1111 9.63868 35.1111 10.1758C35.1111 10.7129 35.4529 10.957 35.9412 11.0547C42.4842 12.373 42.3865 12.4707 43.6072 18.7695C43.7049 19.2578 43.9979 19.5508 44.535 19.5508Z",fill:"currentColor"}),w.jsx("path",{d:"M34.3298 81.2696C48.49 81.2696 59.9157 74.043 65.0915 61.7872C65.8239 59.9806 65.5798 58.6134 64.7497 57.7833C64.0173 57.0509 62.7478 56.9044 61.3318 57.4903C58.4509 58.6134 54.9353 59.2481 50.6384 59.2481C33.695 59.2481 22.7575 48.6036 22.7575 32.2462C22.7575 27.4122 23.6853 22.6759 24.7595 20.5763C25.5407 18.9161 25.4919 17.5001 24.8083 16.67C24.0271 15.7423 22.6599 15.4005 20.7068 16.1329C8.64624 20.7716 0.345459 33.4181 0.345459 47.8712C0.345459 66.8165 14.5056 81.2696 34.3298 81.2696ZM34.4275 74.5801C18.4607 74.5801 7.03494 62.9591 7.03494 47.3341C7.03494 38.2521 10.9411 30.0489 17.6306 24.629C16.8005 27.0704 16.361 30.6837 16.361 34.1505C16.361 52.8517 29.5446 65.6935 48.8806 65.6935C52.0544 65.6935 54.9841 65.3517 56.4001 64.9122C51.615 70.918 43.4607 74.5801 34.4275 74.5801Z",fill:"currentColor"})]})}function k7(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Sun"}),w.jsx("path",{d:"M41.8675 15.5254C43.9183 15.5254 45.6273 13.7676 45.6273 11.7168V3.80658C45.6273 1.75588 43.9183 0.046875 41.8675 0.046875C39.7679 0.046875 38.0589 1.75588 38.0589 3.80658V11.7168C38.0589 13.7676 39.7679 15.5254 41.8675 15.5254ZM60.3246 23.2402C61.7895 24.7051 64.2309 24.7539 65.7446 23.2402L71.3598 17.6738C72.7758 16.209 72.7758 13.7188 71.3598 12.2539C69.8949 10.7891 67.4535 10.7891 65.9887 12.2539L60.3246 17.918C58.9086 19.3828 58.9086 21.7754 60.3246 23.2402ZM67.9906 41.7461C67.9906 43.7969 69.7485 45.5547 71.7992 45.5547H79.6117C81.7113 45.5547 83.4202 43.7969 83.4202 41.7461C83.4202 39.6953 81.7113 37.9375 79.6117 37.9375H71.7992C69.7485 37.9375 67.9906 39.6953 67.9906 41.7461ZM60.3246 60.3008C58.9086 61.7656 58.9086 64.1582 60.3246 65.623L65.9887 71.2871C67.4535 72.7519 69.8949 72.7031 71.3598 71.2383C72.7758 69.7734 72.7758 67.332 71.3598 65.8672L65.6957 60.3008C64.2309 58.8359 61.7895 58.8359 60.3246 60.3008ZM41.8675 67.9668C39.7679 67.9668 38.0589 69.7246 38.0589 71.7754V79.6855C38.0589 81.7363 39.7679 83.4453 41.8675 83.4453C43.9183 83.4453 45.6273 81.7363 45.6273 79.6855V71.7754C45.6273 69.7246 43.9183 67.9668 41.8675 67.9668ZM23.3617 60.3008C21.8969 58.8359 19.4067 58.8359 17.9418 60.3008L12.3754 65.8184C10.9106 67.2832 10.9106 69.7246 12.3266 71.1894C13.7914 72.6543 16.2328 72.7031 17.6977 71.2383L23.3129 65.623C24.7778 64.1582 24.7778 61.7656 23.3617 60.3008ZM15.6957 41.7461C15.6957 39.6953 13.9867 37.9375 11.8871 37.9375H4.07455C1.97497 37.9375 0.265991 39.6953 0.265991 41.7461C0.265991 43.7969 1.97497 45.5547 4.07455 45.5547H11.8871C13.9867 45.5547 15.6957 43.7969 15.6957 41.7461ZM23.3129 23.2402C24.7778 21.8242 24.7778 19.334 23.3617 17.918L17.7465 12.2539C16.3305 10.8379 13.8403 10.7891 12.4242 12.2539C10.9594 13.7188 10.9594 16.209 12.3754 17.625L17.9418 23.2402C19.4067 24.7051 21.8481 24.7051 23.3129 23.2402Z",fill:"currentColor"}),w.jsx("path",{d:"M41.8675 61.668C52.7073 61.668 61.7405 52.6836 61.7405 41.7461C61.7405 30.8086 52.7073 21.8242 41.8675 21.8242C30.9788 21.8242 21.9456 30.8086 21.9456 41.7461C21.9456 52.6836 30.9788 61.668 41.8675 61.668ZM41.8675 55.0273C34.5921 55.0273 28.5862 48.9727 28.5862 41.7461C28.5862 34.5195 34.5921 28.4648 41.8675 28.4648C49.0941 28.4648 55.0999 34.5195 55.0999 41.7461C55.0999 48.9727 49.0941 55.0273 41.8675 55.0273Z",fill:"currentColor"})]})}function Wg(){return w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 50 50",children:[w.jsx("title",{children:"Telegram"}),w.jsx("path",{d:"M25 2c12.703 0 23 10.297 23 23S37.703 48 25 48 2 37.703 2 25 12.297 2 25 2zm7.934 32.375c.423-1.298 2.405-14.234 2.65-16.783.074-.772-.17-1.285-.648-1.514-.578-.278-1.434-.139-2.427.219-1.362.491-18.774 7.884-19.78 8.312-.954.405-1.856.847-1.856 1.487 0 .45.267.703 1.003.966.766.273 2.695.858 3.834 1.172 1.097.303 2.346.04 3.046-.395.742-.461 9.305-6.191 9.92-6.693.614-.502 1.104.141.602.644-.502.502-6.38 6.207-7.155 6.997-.941.959-.273 1.953.358 2.351.721.454 5.906 3.932 6.687 4.49.781.558 1.573.811 2.298.811.725 0 1.107-.955 1.468-2.064z",fill:"currentColor"})]})}function Kg(){return w.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Warpcast"}),w.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.92028 31.9901H24.0698C28.4371 31.9901 31.9901 28.4373 31.9901 24.0699V7.92053C31.9901 3.55319 28.4371 0.000137329 24.0698 0.000137329H7.92028C3.55304 0.000137329 0 3.55319 0 7.92053V24.0699C0 28.4373 3.55304 31.9901 7.92028 31.9901ZM19.4134 16.048L20.9908 10.124H25.1383L21.2924 23.2218H17.7062L15.9951 17.1397L14.284 23.2218H10.7055L6.85115 10.124H10.999L12.5915 16.0916L14.1891 10.124H17.8309L19.4134 16.048Z",fill:"currentColor"})]})}function Yg(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"X"}),w.jsx("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})]})}Eu.Curtain=R7;function Eu(){var r,o,i,a;const e=Je(),{showLogo:t,showSidebar:n}=Rr();return w.jsxs("div",{className:I(L6,t&&!n&&M6),children:[w.jsx(N6,{}),t&&w.jsx("div",{className:I6,children:w.jsx("div",{className:O6,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"56px",marginTop:"4px"},children:w.jsx(Yf,{})})})}),w.jsx("div",{className:xp}),w.jsxs("div",{className:xp,children:[(((r=e.topNav)==null?void 0:r.length)||0)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:qs,children:w.jsx(N7,{})}),w.jsx("div",{className:I(wp,Sa)})]}),e.socials&&((o=e.socials)==null?void 0:o.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I(qs,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:e.socials.map((l,s)=>w.jsx("div",{className:yl,children:w.jsx(L7,{...l})},s))}),!((i=e.theme)!=null&&i.colorScheme)&&w.jsx("div",{className:I(wp,Sa)})]}),!((a=e.theme)!=null&&a.colorScheme)&&w.jsx("div",{className:I(qs,Sa),style:{marginLeft:"-8px",marginRight:"-8px"},children:w.jsx("div",{className:yl,children:w.jsx(A7,{})})})]})]})}function R7(){return w.jsx("div",{className:A6})}function N7(){const{topNav:e}=Je();if(!e)return null;const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{delayDuration:0,children:w.jsx(Fg,{children:e.map((r,o)=>r.link?w.jsx(Gl,{active:n.includes(r.id),className:yl,href:r.link,children:r.text},o):r.items?w.jsxs(zg,{className:yl,children:[w.jsx(Bg,{active:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:P6,children:w.jsx(P7,{items:r.items})})]},o):null)})})}function P7({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function A7(){const{toggle:e}=g5();return w.jsxs("button",{className:Pg,onClick:e,type:"button",children:[w.jsx(st,{className:I(gu,y5),size:"20px",label:"Light",icon:k7}),w.jsx(st,{className:I(gu,w5),size:"20px",label:"Dark",icon:T7,style:{marginTop:"-2px"}})]})}const O7={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},I7={discord:"23px",github:"20px",telegram:"21px",warpcast:"20px",x:"18px"};function L7({icon:e,label:t,link:n}){return w.jsx("a",{className:Pg,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:gu,label:t,icon:O7[e],size:I7[e]||"20px"})})}const M7=({children:e})=>e,j7=({children:e})=>e;function D7(){const e=kr(),t=Je();return h.useMemo(()=>{const{pattern:n="",text:r="Edit page"}=t.editLink??{};let o="";return typeof n=="function"?o="":e.filePath&&(o=n.replace(/:path/g,e.filePath)),{url:o,text:r}},[t.editLink,e.filePath])}function Gg(){const[e,t]=h.useState(!1);return h.useEffect(()=>{t(!0)},[]),e}var F7="vocs_Footer_container",z7="vocs_Footer_editLink",B7="vocs_Footer_lastUpdated",U7="vocs_Footer_navigation",Sp="vocs_Footer_navigationIcon",H7="vocs_Footer_navigationIcon_left",V7="vocs_Footer_navigationIcon_right",bp="vocs_Footer_navigationItem",W7="vocs_Footer_navigationItem_left",K7="vocs_Footer_navigationItem_right",$p="vocs_Footer_navigationText",Tp="vocs_Footer_navigationTextInner",Y7="vocs_Footer";function G7(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Left"}),w.jsx("path",{d:"M0.325684 29.7461C0.325684 30.8203 0.813963 31.8457 1.69286 32.6758L26.8882 57.8223C27.7671 58.6524 28.7437 59.043 29.7691 59.043C31.9175 59.043 33.5777 57.4317 33.5777 55.2344C33.5777 54.209 33.2359 53.1836 32.5035 52.5L25.7652 45.5176L9.26126 30.6738L8.38236 32.7734L21.3706 33.7012H67.4644C69.7593 33.7012 71.3706 32.041 71.3706 29.7461C71.3706 27.4512 69.7593 25.791 67.4644 25.791H21.3706L8.38236 26.7188L9.26126 28.8672L25.7652 13.9746L32.5035 6.99221C33.2359 6.30861 33.5777 5.28322 33.5777 4.25782C33.5777 2.06052 31.9175 0.449219 29.7691 0.449219C28.7437 0.449219 27.7671 0.839814 26.8882 1.66991L1.69286 26.8164C0.813963 27.6465 0.325684 28.6719 0.325684 29.7461Z",fill:"currentColor"})]})}function Q7(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 72 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Arrow Right"}),w.jsx("path",{d:"M71.3706 29.7461C71.3706 28.6719 70.8824 27.6465 70.0035 26.8164L44.8081 1.66991C43.9292 0.839814 42.9527 0.449219 41.9273 0.449219C39.7789 0.449219 38.1187 2.06052 38.1187 4.25782C38.1187 5.28322 38.4605 6.30861 39.1929 6.99221L45.9312 13.9746L62.4351 28.8672L63.314 26.7188L50.3257 25.791H4.23196C1.93706 25.791 0.325684 27.4512 0.325684 29.7461C0.325684 32.041 1.93706 33.7012 4.23196 33.7012H50.3257L63.314 32.7734L62.4351 30.6738L45.9312 45.5176L39.1929 52.5C38.4605 53.1836 38.1187 54.209 38.1187 55.2344C38.1187 57.4317 39.7789 59.043 41.9273 59.043C42.9527 59.043 43.9292 58.6524 44.8081 57.8223L70.0035 32.6758C70.8824 31.8457 71.3706 30.8203 71.3706 29.7461Z",fill:"currentColor"})]})}function Z7(){const{layout:e}=Rr(),t=Gg(),n=kr(),r=h.useMemo(()=>n.lastUpdatedAt?new Date(n.lastUpdatedAt):void 0,[n.lastUpdatedAt]),o=h.useMemo(()=>r==null?void 0:r.toISOString(),[r]);return w.jsxs("footer",{className:Y7,children:[e==="docs"&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:F7,children:[w.jsx(X7,{}),t&&n.lastUpdatedAt&&w.jsxs("div",{className:B7,children:["Last updated:"," ",w.jsx("time",{dateTime:o,children:new Intl.DateTimeFormat(void 0,{dateStyle:"short",timeStyle:"short"}).format(r)})]})]}),w.jsx(J7,{})]}),w.jsx(j7,{})]})}function X7(){const e=D7();return e.url?w.jsx("div",{children:w.jsxs(nn,{className:z7,href:e.url,children:[w.jsx(p5,{})," ",e.text]})}):null}function J7(){const e=Gg(),t=Vl(),{pathname:n}=Re(),r=h.useMemo(()=>Qg(t.items||[]).filter(s=>s.link),[t]),o=h.useMemo(()=>r.findIndex(s=>s.link===n),[r,n]),[i,a]=h.useMemo(()=>o<0?[]:o===0?[null,r[o+1]]:o===r.length-1?[r[o-1],null]:[r[o-1],r[o+1]],[o,r]),l=Ff();return h.useEffect(()=>{let s=o,c=!1;const f=d=>{if(d.code==="ShiftLeft"&&(c=!0),c){const p=r[s+1],y=r[s-1];d.code==="ArrowRight"&&(p!=null&&p.link)&&(l(p.link),s++),d.code==="ArrowLeft"&&(y!=null&&y.link)&&(l(y.link),s--)}},u=d=>{d.code==="ShiftLeft"&&(c=!1)};return window.addEventListener("keydown",f),window.addEventListener("keyup",u),()=>{window.removeEventListener("keydown",f),window.removeEventListener("keyup",u)}},[]),e?w.jsxs("div",{className:U7,children:[i?w.jsxs(nn,{className:I(bp,W7),href:i.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:I(Sp,H7),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Previous",icon:G7})}),w.jsx("div",{className:Tp,children:i.text})]}),w.jsx(eo,{description:"Previous",keys:["shift","←"]})]}):w.jsx("div",{}),a?w.jsxs(nn,{className:I(bp,K7),href:a.link,variant:"styleless",children:[w.jsxs("div",{className:$p,children:[w.jsx("div",{className:Tp,style:{textAlign:"right"},children:a.text}),w.jsx("div",{className:I(Sp,V7),style:Gt({[yu]:"0.75em"}),children:w.jsx(st,{label:"Next",icon:Q7})})]}),w.jsx(eo,{description:"Next",keys:["shift","→"]})]}):w.jsx("div",{})]}):null}function Qg(e){const t=[];for(const n of e){if(n.items){t.push(...Qg(n.items));continue}t.push(n)}return t}const Zg="Collapsible",[q7,Xg]=En(Zg),[e8,Xf]=q7(Zg),t8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,c]=rr({prop:r,defaultProp:o,onChange:a});return h.createElement(e8,{scope:n,disabled:i,contentId:rn(),open:s,onOpenToggle:h.useCallback(()=>c(f=>!f),[c])},h.createElement(fe.div,Y({"data-state":Jf(s),"data-disabled":i?"":void 0},l,{ref:t})))}),n8="CollapsibleTrigger",r8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Xf(n8,n);return h.createElement(fe.button,Y({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Jf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:ae(e.onClick,o.onOpenToggle)}))}),Jg="CollapsibleContent",o8=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Xf(Jg,e.__scopeCollapsible);return h.createElement(_n,{present:n||o.open},({present:i})=>h.createElement(i8,Y({},r,{ref:t,present:i})))}),i8=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Xf(Jg,n),[l,s]=h.useState(r),c=h.useRef(null),f=ze(t,c),u=h.useRef(0),d=u.current,p=h.useRef(0),y=p.current,g=a.open||l,C=h.useRef(g),v=h.useRef();return h.useEffect(()=>{const m=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(m)},[]),gn(()=>{const m=c.current;if(m){v.current=v.current||{transitionDuration:m.style.transitionDuration,animationName:m.style.animationName},m.style.transitionDuration="0s",m.style.animationName="none";const x=m.getBoundingClientRect();u.current=x.height,p.current=x.width,C.current||(m.style.transitionDuration=v.current.transitionDuration,m.style.animationName=v.current.animationName),s(r)}},[a.open,r]),h.createElement(fe.div,Y({"data-state":Jf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g},i,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style}}),g&&o)});function Jf(e){return e?"open":"closed"}const a8=t8,l8=r8,s8=o8,Pr="Accordion",c8=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qf,u8,f8]=Yl(Pr),[Ql,n$]=En(Pr,[f8,Xg]),ed=Xg(),qg=Z.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return Z.createElement(qf.Provider,{scope:e.__scopeAccordion},n==="multiple"?Z.createElement(v8,Y({},i,{ref:t})):Z.createElement(p8,Y({},o,{ref:t})))});qg.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[e1,d8]=Ql(Pr),[t1,h8]=Ql(Pr,{collapsible:!1}),p8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=rr({prop:n,defaultProp:r,onChange:o});return Z.createElement(e1,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s])},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:i},Z.createElement(n1,Y({},a,{ref:t}))))}),v8=Z.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],l]=rr({prop:n,defaultProp:r,onChange:o}),s=Z.useCallback(f=>l((u=[])=>[...u,f]),[l]),c=Z.useCallback(f=>l((u=[])=>u.filter(d=>d!==f)),[l]);return Z.createElement(e1,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c},Z.createElement(t1,{scope:e.__scopeAccordion,collapsible:!0},Z.createElement(n1,Y({},i,{ref:t}))))}),[m8,td]=Ql(Pr),n1=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=ze(l,t),c=u8(n),u=Kl(o)==="ltr",d=ae(e.onKeyDown,p=>{var y;if(!c8.includes(p.key))return;const g=p.target,C=c().filter(k=>{var P;return!((P=k.ref.current)!==null&&P!==void 0&&P.disabled)}),v=C.findIndex(k=>k.ref.current===g),m=C.length;if(v===-1)return;p.preventDefault();let x=v;const E=0,S=m-1,_=()=>{x=v+1,x>S&&(x=E)},b=()=>{x=v-1,x{const{__scopeAccordion:n,value:r,...o}=e,i=td(_u,n),a=d8(_u,n),l=ed(n),s=rn(),c=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return Z.createElement(g8,{scope:n,open:c,disabled:f,triggerId:s},Z.createElement(a8,Y({"data-orientation":i.orientation,"data-state":E8(c)},l,o,{ref:t,disabled:f,open:c,onOpenChange:u=>{u?a.onItemOpen(r):a.onItemClose(r)}})))}),kp="AccordionTrigger",w8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(kp,n),a=h8(kp,n),l=ed(n);return Z.createElement(qf.ItemSlot,{scope:n},Z.createElement(l8,Y({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId},l,r,{ref:t})))}),x8="AccordionContent",C8=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=td(Pr,n),i=r1(x8,n),a=ed(n);return Z.createElement(s8,Y({role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation},a,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function E8(e){return e?"open":"closed"}const _8=qg,S8=y8,b8=w8,$8=C8;var T8="vocs_MobileSearch_searchButton";function k8(){const[e,t]=h.useState(!1);return w.jsxs(wg,{open:e,onOpenChange:t,children:[w.jsx(xg,{asChild:!0,children:w.jsx("button",{className:T8,type:"button","aria-label":"Search",children:w.jsx(Uf,{height:21,width:21})})}),w.jsx(Ng,{open:e,onClose:()=>t(!1)})]})}var R8="vocs_MobileTopNav_button",N8="var(--vocs_MobileTopNav_chevronDownIcon)",P8="var(--vocs_MobileTopNav_chevronUpIcon)",A8="vocs_MobileTopNav_content",O8="vocs_MobileTopNav_curtain",Rp="vocs_MobileTopNav_curtainGroup",tc="vocs_MobileTopNav_curtainItem",I8="vocs_MobileTopNav_divider",ba="vocs_MobileTopNav_group",L8="vocs_MobileTopNav_icon",M8="vocs_MobileTopNav_item",j8="vocs_MobileTopNav_logo",D8="vocs_MobileTopNav_menuTitle",o1="vocs_MobileTopNav_menuTrigger",i1="vocs_MobileTopNav_navigation",F8="vocs_MobileTopNav_navigationContent",Go="vocs_MobileTopNav_navigationItem",z8="vocs_MobileTopNav_trigger",B8="vocs_MobileTopNav_navigation_compact",U8="vocs_MobileTopNav_outlinePopover",Np="vocs_MobileTopNav_outlineTrigger",H8="vocs_MobileTopNav",Pp="vocs_MobileTopNav_section",V8="vocs_MobileTopNav_separator",W8="vocs_MobileTopNav_sidebarPopover",K8="vocs_MobileTopNav_topNavPopover";function Y8(e,t){let n=!1;return()=>{n=!0,setTimeout(()=>{n&&e(),n=!1},t)}}var G8="vocs_Outline_heading",Q8="vocs_Outline_item",Z8="vocs_Outline_items",X8="vocs_Outline_link",J8="vocs_Outline_nav",q8="vocs_Outline";function a1({minLevel:e=2,maxLevel:t=3,highlightActive:n=!0,onClickItem:r,showTitle:o=!0}={}){const{outlineFooter:i}=Je(),{showOutline:a}=Rr(),l=typeof a=="number"?e+a-1:t,s=h.useRef(!0),{pathname:c,hash:f}=Re(),[u,d]=h.useState([]);h.useEffect(()=>{if(typeof window>"u")return;const v=Array.from(document.querySelectorAll(`.${H0}`));d(v)},[c]);const p=h.useMemo(()=>u?u.map(v=>{const m=v.querySelector(`.${V0}`);if(!m)return null;const x=m.getBoundingClientRect(),E=m.id,S=Number(v.tagName[1]),_=v.textContent,b=window.scrollY+x.top;return Sl?null:{id:E,level:S,slugTargetElement:m,text:_,topOffset:b}}).filter(Boolean):[],[u,l,e]),[y,g]=h.useState(f.replace("#",""));if(h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=m.target.id;if(m.isIntersecting)g(x);else{if(!(m.target.getBoundingClientRect().top>0))return;const b=p.findIndex(k=>k.id===y),$=(E=p[b-1])==null?void 0:E.id;g($)}},{rootMargin:"0px 0px -95% 0px"});for(const m of p)v.observe(m.slugTargetElement);return()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=new IntersectionObserver(([m])=>{var E;if(!s.current)return;const x=(E=p[p.length-1])==null?void 0:E.id;m.isIntersecting?g(x):y===x&&g(p[p.length-2].id)});return v.observe(document.querySelector("[data-bottom-observer]")),()=>v.disconnect()},[y,p]),h.useEffect(()=>{if(typeof window>"u")return;const v=Y8(()=>{var m,x,E;if(s.current){if(window.scrollY===0){g((m=p[0])==null?void 0:m.id);return}if(window.scrollY+document.documentElement.clientHeight>=document.documentElement.scrollHeight){g((x=p[p.length-1])==null?void 0:x.id);return}for(let S=0;Swindow.removeEventListener("scroll",v)},[p]),p.length===0)return null;const C=p.filter(v=>v.level===e);return w.jsxs("aside",{className:q8,children:[w.jsxs("nav",{className:J8,children:[o&&w.jsx("h2",{className:G8,children:"On this page"}),w.jsx(l1,{activeId:n?y:null,items:p,onClickItem:()=>{r==null||r(),s.current=!1,setTimeout(()=>{s.current=!0},500)},levelItems:C,setActiveId:g})]}),ml(i)]})}function l1({activeId:e,items:t,levelItems:n,onClickItem:r,setActiveId:o}){const{pathname:i}=Re();return w.jsx("ul",{className:Z8,children:n.map(({id:a,level:l,text:s})=>{const c=`#${a}`,f=e===a,u=(()=>{var C;const p=t.findIndex(v=>v.id===a)+1,y=(C=t[p])==null?void 0:C.level;if(y<=l)return null;const g=[];for(let v=p;v{r==null||r(),o(a)},className:X8,children:s})}),u&&w.jsx(l1,{activeId:e,levelItems:u,items:t,onClickItem:r,setActiveId:o})]},a)})})}const eC=["top","right","bottom","left"],Qn=Math.min,Et=Math.max,xl=Math.round,$a=Math.floor,Zn=e=>({x:e,y:e}),tC={left:"right",right:"left",bottom:"top",top:"bottom"},nC={start:"end",end:"start"};function Su(e,t,n){return Et(e,Qn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function nd(e){return e==="x"?"y":"x"}function rd(e){return e==="y"?"height":"width"}function No(e){return["top","bottom"].includes(wn(e))?"y":"x"}function od(e){return nd(No(e))}function rC(e,t,n){n===void 0&&(n=!1);const r=Ro(e),o=od(e),i=rd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Cl(a)),[a,Cl(a)]}function oC(e){const t=Cl(e);return[bu(e),t,bu(t)]}function bu(e){return e.replace(/start|end/g,t=>nC[t])}function iC(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function aC(e,t,n,r){const o=Ro(e);let i=iC(wn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(bu)))),i}function Cl(e){return e.replace(/left|right|bottom|top/g,t=>tC[t])}function lC(e){return{top:0,right:0,bottom:0,left:0,...e}}function s1(e){return typeof e!="number"?lC(e):{top:e,right:e,bottom:e,left:e}}function El(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ap(e,t,n){let{reference:r,floating:o}=e;const i=No(t),a=od(t),l=rd(a),s=wn(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ro(t)){case"start":p[a]-=d*(n&&c?-1:1);break;case"end":p[a]+=d*(n&&c?-1:1);break}return p}const sC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ap(c,r,s),d=r,p={},y=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:f=0}=yn(e,t)||{};if(c==null)return{};const u=s1(f),d={x:n,y:r},p=od(o),y=rd(p),g=await a.getDimensions(c),C=p==="y",v=C?"top":"left",m=C?"bottom":"right",x=C?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[p]-d[p]-i.floating[y],S=d[p]-i.reference[p],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let b=_?_[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(_)))&&(b=l.floating[x]||i.floating[y]);const $=E/2-S/2,k=b/2-g[y]/2-1,P=Qn(u[v],k),j=Qn(u[m],k),L=P,D=b-g[y]-j,N=b/2-g[y]/2+$,z=Su(L,N,D),V=!s.arrow&&Ro(o)!=null&&N!==z&&i.reference[y]/2-(NL<=0)){var k,P;const L=(((k=i.flip)==null?void 0:k.index)||0)+1,D=S[L];if(D)return{data:{index:L,overflows:$},reset:{placement:D}};let N=(P=$.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:P.placement;if(!N)switch(p){case"bestFit":{var j;const z=(j=$.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,O)=>U+O,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:j[0];z&&(N=z);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ip(e){return eC.some(t=>e[t]>=0)}const fC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yn(e,t);switch(r){case"referenceHidden":{const i=await Ai(t,{...o,elementContext:"reference"}),a=Op(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ip(a)}}}case"escaped":{const i=await Ai(t,{...o,altBoundary:!0}),a=Op(i,n.floating);return{data:{escapedOffsets:a,escaped:Ip(a)}}}default:return{}}}}};async function dC(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=wn(n),l=Ro(n),s=No(n)==="y",c=["left","top"].includes(a)?-1:1,f=i&&s?-1:1,u=yn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof y=="number"&&(p=l==="end"?y*-1:y),s?{x:p*f,y:d*c}:{x:d*c,y:p*f}}const c1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await dC(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},hC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:v,y:m}=C;return{x:v,y:m}}},...s}=yn(e,t),c={x:n,y:r},f=await Ai(t,s),u=No(wn(o)),d=nd(u);let p=c[d],y=c[u];if(i){const C=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+f[C],x=p-f[v];p=Su(m,p,x)}if(a){const C=u==="y"?"top":"left",v=u==="y"?"bottom":"right",m=y+f[C],x=y-f[v];y=Su(m,y,x)}const g=l.fn({...t,[d]:p,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r}}}}},pC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=yn(e,t),f={x:n,y:r},u=No(o),d=nd(u);let p=f[d],y=f[u];const g=yn(l,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const x=d==="y"?"height":"width",E=i.reference[d]-i.floating[x]+C.mainAxis,S=i.reference[d]+i.reference[x]-C.mainAxis;pS&&(p=S)}if(c){var v,m;const x=d==="y"?"width":"height",E=["top","left"].includes(wn(o)),S=i.reference[u]-i.floating[x]+(E&&((v=a.offset)==null?void 0:v[u])||0)+(E?0:C.crossAxis),_=i.reference[u]+i.reference[x]+(E?0:((m=a.offset)==null?void 0:m[u])||0)-(E?C.crossAxis:0);y_&&(y=_)}return{[d]:p,[u]:y}}}},vC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...l}=yn(e,t),s=await Ai(t,l),c=wn(n),f=Ro(n),u=No(n)==="y",{width:d,height:p}=r.floating;let y,g;c==="top"||c==="bottom"?(y=c,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,y=f==="end"?"top":"bottom");const C=p-s[y],v=d-s[g],m=!t.middlewareData.shift;let x=C,E=v;if(u){const _=d-s.left-s.right;E=f||m?Qn(v,_):_}else{const _=p-s.top-s.bottom;x=f||m?Qn(C,_):_}if(m&&!f){const _=Et(s.left,0),b=Et(s.right,0),$=Et(s.top,0),k=Et(s.bottom,0);u?E=d-2*(_!==0||b!==0?_+b:Et(s.left,s.right)):x=p-2*($!==0||k!==0?$+k:Et(s.top,s.bottom))}await a({...t,availableWidth:E,availableHeight:x});const S=await o.getDimensions(i.floating);return d!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Xn(e){return u1(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(u1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u1(e){return e instanceof Node||e instanceof bt(e).Node}function nt(e){return e instanceof Element||e instanceof bt(e).Element}function on(e){return e instanceof HTMLElement||e instanceof bt(e).HTMLElement}function $u(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Wi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mC(e){return["table","td","th"].includes(Xn(e))}function id(e){const t=ad(),n=Mt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(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 gC(e){let t=Eo(e);for(;on(t)&&!Zl(t);){if(id(t))return t;t=Eo(t)}return null}function ad(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zl(e){return["html","body","#document"].includes(Xn(e))}function Mt(e){return bt(e).getComputedStyle(e)}function Xl(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eo(e){if(Xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||bn(e);return $u(t)?t.host:t}function f1(e){const t=Eo(e);return Zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:on(t)&&Wi(t)?t:f1(t)}function Oi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=f1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=bt(o);return i?t.concat(a,a.visualViewport||[],Wi(o)?o:[],a.frameElement&&n?Oi(a.frameElement):[]):t.concat(o,Oi(o,[],n))}function d1(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=on(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=xl(n)!==i||xl(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ld(e){return nt(e)?e:e.contextElement}function so(e){const t=ld(e);if(!on(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=d1(t);let a=(i?xl(n.width):n.width)/r,l=(i?xl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const yC=Zn(0);function h1(e){const t=bt(e);return!ad()||!t.visualViewport?yC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ld(e);let a=Zn(1);t&&(r?nt(r)&&(a=so(r)):a=so(e));const l=wC(i,n,r)?h1(i):Zn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(i){const d=bt(i),p=r&&nt(r)?bt(r):r;let y=d,g=y.frameElement;for(;g&&r&&p!==y;){const C=so(g),v=g.getBoundingClientRect(),m=Mt(g),x=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*C.x,E=v.top+(g.clientTop+parseFloat(m.paddingTop))*C.y;s*=C.x,c*=C.y,f*=C.x,u*=C.y,s+=x,c+=E,y=bt(g),g=y.frameElement}}return El({width:f,height:u,x:s,y:c})}const xC=[":popover-open",":modal"];function p1(e){return xC.some(t=>{try{return e.matches(t)}catch{return!1}})}function CC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=bn(r),l=t?p1(t.floating):!1;if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Zn(1);const f=Zn(0),u=on(r);if((u||!u&&!i)&&((Xn(r)!=="body"||Wi(a))&&(s=Xl(r)),on(r))){const d=Er(r);c=so(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function EC(e){return Array.from(e.getClientRects())}function v1(e){return Er(bn(e)).left+Xl(e).scrollLeft}function _C(e){const t=bn(e),n=Xl(e),r=e.ownerDocument.body,o=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+v1(e);const l=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function SC(e,t){const n=bt(e),r=bn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const c=ad();(!c||c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function bC(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=on(e)?so(e):Zn(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:a,height:l,x:s,y:c}}function Lp(e,t,n){let r;if(t==="viewport")r=SC(e,n);else if(t==="document")r=_C(bn(e));else if(nt(t))r=bC(t,n);else{const o=h1(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return El(r)}function m1(e,t){const n=Eo(e);return n===t||!nt(n)||Zl(n)?!1:Mt(n).position==="fixed"||m1(n,t)}function $C(e,t){const n=t.get(e);if(n)return n;let r=Oi(e,[],!1).filter(l=>nt(l)&&Xn(l)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?Eo(e):e;for(;nt(a)&&!Zl(a);){const l=Mt(a),s=id(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wi(a)&&!s&&m1(e,a))?r=r.filter(f=>f!==a):o=l,a=Eo(a)}return t.set(e,r),r}function TC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?$C(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((c,f)=>{const u=Lp(t,f,o);return c.top=Et(u.top,c.top),c.right=Qn(u.right,c.right),c.bottom=Qn(u.bottom,c.bottom),c.left=Et(u.left,c.left),c},Lp(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function kC(e){const{width:t,height:n}=d1(e);return{width:t,height:n}}function RC(e,t,n){const r=on(t),o=bn(t),i=n==="fixed",a=Er(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Zn(0);if(r||!r&&!i)if((Xn(t)!=="body"||Wi(o))&&(l=Xl(t)),r){const u=Er(t,!0,i,t);s.x=u.x+t.clientLeft,s.y=u.y+t.clientTop}else o&&(s.x=v1(o));const c=a.left+l.scrollLeft-s.x,f=a.top+l.scrollTop-s.y;return{x:c,y:f,width:a.width,height:a.height}}function Mp(e,t){return!on(e)||Mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function g1(e,t){const n=bt(e);if(!on(e)||p1(e))return n;let r=Mp(e,t);for(;r&&mC(r)&&Mt(r).position==="static";)r=Mp(r,t);return r&&(Xn(r)==="html"||Xn(r)==="body"&&Mt(r).position==="static"&&!id(r))?n:r||gC(e)||n}const NC=async function(e){const t=this.getOffsetParent||g1,n=this.getDimensions;return{reference:RC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function PC(e){return Mt(e).direction==="rtl"}const y1={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:bn,getClippingRect:TC,getOffsetParent:g1,getElementRects:NC,getClientRects:EC,getDimensions:kC,getScale:so,isElement:nt,isRTL:PC};function AC(e,t){let n=null,r;const o=bn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:c,top:f,width:u,height:d}=e.getBoundingClientRect();if(l||t(),!u||!d)return;const p=$a(f),y=$a(o.clientWidth-(c+u)),g=$a(o.clientHeight-(f+d)),C=$a(c),m={rootMargin:-p+"px "+-y+"px "+-g+"px "+-C+"px",threshold:Et(0,Qn(1,s))||1};let x=!0;function E(S){const _=S[0].intersectionRatio;if(_!==s){if(!x)return a();_?a(!1,_):r=setTimeout(()=>{a(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(E,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,m)}n.observe(e)}return a(!0),i}function OC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=ld(e),f=o||i?[...c?Oi(c):[],...Oi(t)]:[];f.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=c&&l?AC(c,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!s&&p.observe(c),p.observe(t));let y,g=s?Er(e):null;s&&C();function C(){const v=Er(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(C)}return n(),()=>{var v;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),u==null||u(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(y)}}const w1=hC,IC=uC,LC=vC,MC=fC,jp=cC,jC=pC,DC=(e,t,n)=>{const r=new Map,o={platform:y1,...n},i={...o.platform,_c:r};return sC(e,t,{...o,platform:i})},x1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jp({element:r.current,padding:o}).fn(n):{}:r?jp({element:r,padding:o}).fn(n):{}}}};var Ha=typeof document<"u"?h.useLayoutEffect:h.useEffect;function _l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_l(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function C1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dp(e,t){const n=C1(e);return Math.round(t*n)/n}function Fp(e){const t=h.useRef(e);return Ha(()=>{t.current=e}),t}function E1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[f,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=h.useState(r);_l(d,r)||p(r);const[y,g]=h.useState(null),[C,v]=h.useState(null),m=h.useCallback(U=>{U!==_.current&&(_.current=U,g(U))},[]),x=h.useCallback(U=>{U!==b.current&&(b.current=U,v(U))},[]),E=i||y,S=a||C,_=h.useRef(null),b=h.useRef(null),$=h.useRef(f),k=s!=null,P=Fp(s),j=Fp(o),L=h.useCallback(()=>{if(!_.current||!b.current)return;const U={placement:t,strategy:n,middleware:d};j.current&&(U.platform=j.current),DC(_.current,b.current,U).then(O=>{const F={...O,isPositioned:!0};D.current&&!_l($.current,F)&&($.current=F,$o.flushSync(()=>{u(F)}))})},[d,t,n,j]);Ha(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(U=>({...U,isPositioned:!1})))},[c]);const D=h.useRef(!1);Ha(()=>(D.current=!0,()=>{D.current=!1}),[]),Ha(()=>{if(E&&(_.current=E),S&&(b.current=S),E&&S){if(P.current)return P.current(E,S,L);L()}},[E,S,L,P,k]);const N=h.useMemo(()=>({reference:_,floating:b,setReference:m,setFloating:x}),[m,x]),z=h.useMemo(()=>({reference:E,floating:S}),[E,S]),V=h.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const O=Dp(z.floating,f.x),F=Dp(z.floating,f.y);return l?{...U,transform:"translate("+O+"px, "+F+"px)",...C1(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:F}},[n,l,z.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:L,refs:N,elements:z,floatingStyles:V}),[f,L,N,z,V])}function FC(e){const[t,n]=h.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,l;if("borderBoxSize"in i){const s=i.borderBoxSize,c=Array.isArray(s)?s[0]:s;a=c.inlineSize,l=c.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const _1="Popper",[S1,b1]=En(_1),[zC,$1]=S1(_1),BC=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return h.createElement(zC,{scope:t,anchor:r,onAnchorChange:o},n)},UC="PopperAnchor",HC=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=$1(UC,n),a=h.useRef(null),l=ze(t,a);return h.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:h.createElement(fe.div,Y({},o,{ref:l}))}),T1="PopperContent",[VC,r$]=S1(T1),WC=h.forwardRef((e,t)=>{var n,r,o,i,a,l,s,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:p="center",alignOffset:y=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:_,...b}=e,$=$1(T1,f),[k,P]=h.useState(null),j=ze(t,wt=>P(wt)),[L,D]=h.useState(null),N=FC(L),z=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,V=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,U=u+(p!=="center"?"-"+p:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(v)?v:[v],K=F.length>0,J={padding:O,boundary:F.filter(KC),altBoundary:K},{refs:se,floatingStyles:Be,placement:ye,isPositioned:Ne,middlewareData:we}=E1({strategy:"fixed",placement:U,whileElementsMounted:(...wt)=>OC(...wt,{animationFrame:S==="always"}),elements:{reference:$.anchor},middleware:[c1({mainAxis:d+V,alignmentAxis:y}),C&&w1({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?jC():void 0,...J}),C&&IC({...J}),LC({...J,apply:({elements:wt,rects:Yi,availableWidth:ql,availableHeight:es})=>{const{width:ts,height:ns}=Yi.reference,Qt=wt.floating.style;Qt.setProperty("--radix-popper-available-width",`${ql}px`),Qt.setProperty("--radix-popper-available-height",`${es}px`),Qt.setProperty("--radix-popper-anchor-width",`${ts}px`),Qt.setProperty("--radix-popper-anchor-height",`${ns}px`)}}),L&&x1({element:L,padding:g}),YC({arrowWidth:z,arrowHeight:V}),E&&MC({strategy:"referenceHidden",...J})]}),[Ue,xe]=k1(ye),Se=at(_);gn(()=>{Ne&&(Se==null||Se())},[Ne,Se]);const jt=(o=we.arrow)===null||o===void 0?void 0:o.x,be=(i=we.arrow)===null||i===void 0?void 0:i.y,ft=((a=we.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Ki,Jl]=h.useState();return gn(()=>{k&&Jl(window.getComputedStyle(k).zIndex)},[k]),h.createElement("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...Be,transform:Ne?Be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ki,"--radix-popper-transform-origin":[(l=we.transformOrigin)===null||l===void 0?void 0:l.x,(s=we.transformOrigin)===null||s===void 0?void 0:s.y].join(" ")},dir:e.dir},h.createElement(VC,{scope:f,placedSide:Ue,onArrowChange:D,arrowX:jt,arrowY:be,shouldHideArrow:ft},h.createElement(fe.div,Y({"data-side":Ue,"data-align":xe},b,{ref:j,style:{...b.style,animation:Ne?void 0:"none",opacity:(c=we.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function KC(e){return e!==null}const YC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[y,g]=k1(l),C={start:"0%",center:"50%",end:"100%"}[g],v=((r=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+d/2,m=((i=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let x="",E="";return y==="bottom"?(x=u?C:`${v}px`,E=`${-p}px`):y==="top"?(x=u?C:`${v}px`,E=`${s.floating.height+p}px`):y==="right"?(x=`${-p}px`,E=u?C:`${m}px`):y==="left"&&(x=`${s.floating.width+p}px`,E=u?C:`${m}px`),{data:{x,y:E}}}});function k1(e){const[t,n="center"]=e.split("-");return[t,n]}const GC=BC,QC=HC,ZC=WC,R1="Popover",[N1,o$]=En(R1,[b1]),sd=b1(),[XC,Po]=N1(R1),JC=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=sd(t),s=h.useRef(null),[c,f]=h.useState(!1),[u=!1,d]=rr({prop:r,defaultProp:o,onChange:i});return h.createElement(GC,l,h.createElement(XC,{scope:t,contentId:rn(),triggerRef:s,open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>f(!0),[]),onCustomAnchorRemove:h.useCallback(()=>f(!1),[]),modal:a},n))},qC="PopoverTrigger",eE=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Po(qC,n),i=sd(n),a=ze(t,o.triggerRef),l=h.createElement(fe.button,Y({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O1(o.open)},r,{ref:a,onClick:ae(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:h.createElement(QC,Y({asChild:!0},i),l)}),P1="PopoverPortal",[tE,nE]=N1(P1,{forceMount:void 0}),rE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Po(P1,t);return h.createElement(tE,{scope:t,forceMount:n},h.createElement(_n,{present:n||i.open},h.createElement(tg,{asChild:!0,container:o},r)))},Ii="PopoverContent",oE=h.forwardRef((e,t)=>{const n=nE(Ii,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Po(Ii,e.__scopePopover);return h.createElement(_n,{present:r||i.open},i.modal?h.createElement(iE,Y({},o,{ref:t})):h.createElement(aE,Y({},o,{ref:t})))}),iE=h.forwardRef((e,t)=>{const n=Po(Ii,e.__scopePopover),r=h.useRef(null),o=ze(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return hg(a)},[]),h.createElement(fg,{as:Co,allowPinchZoom:!0},h.createElement(A1,Y({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:ae(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),aE=h.forwardRef((e,t)=>{const n=Po(Ii,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return h.createElement(A1,Y({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,l;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),A1=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,...u}=e,d=Po(Ii,n),p=sd(n);return ng(),h.createElement(q0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},h.createElement(Hf,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1)},h.createElement(ZC,Y({"data-state":O1(d.open),role:"dialog",id:d.contentId},p,u,{ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function O1(e){return e?"open":"closed"}const lE=JC,sE=eE,cE=rE,uE=oE;var fE="vocs_Popover";Ht.Root=lE;Ht.Trigger=sE;function Ht({children:e,className:t}){return w.jsx(cE,{children:w.jsx(uE,{className:I(fE,t),sideOffset:12,children:e})})}var dE="vocs_Sidebar_backLink",hE="vocs_Sidebar_divider",pE="vocs_Sidebar_group",ti="vocs_Sidebar_item",I1="vocs_Sidebar_items",vE="vocs_Sidebar_level",mE="vocs_Sidebar_levelCollapsed",gE="vocs_Sidebar_levelInset",yE="vocs_Sidebar_logo",wE="vocs_Sidebar_logoWrapper",xE="vocs_Sidebar_navigation",CE="vocs_Sidebar",L1="vocs_Sidebar_section",EE="vocs_Sidebar_sectionCollapse",_E="vocs_Sidebar_sectionCollapseActive",SE="vocs_Sidebar_sectionHeader",bE="vocs_Sidebar_sectionHeaderActive",zp="vocs_Sidebar_sectionTitle";function M1(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 39 69",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Right"}),w.jsx("path",{d:"M38.8697 34.7461C38.8697 33.6719 38.4791 32.6953 37.649 31.8652L7.47318 1.8848C6.74078 1.1035 5.76418 0.712891 4.64118 0.712891C2.34618 0.712891 0.588379 2.42189 0.588379 4.71679C0.588379 5.79099 1.07668 6.81639 1.76028 7.59769L29.0552 34.7461L1.76028 61.8945C1.07668 62.6758 0.588379 63.6523 0.588379 64.7754C0.588379 67.0703 2.34618 68.7793 4.64118 68.7793C5.76418 68.7793 6.74078 68.3887 7.47318 67.6074L37.649 37.627C38.4791 36.7969 38.8697 35.8203 38.8697 34.7461Z",fill:"currentColor"})]})}function j1(e){var c;const{className:t,onClickItem:n}=e,{previousPath:r}=kr(),o=h.useRef(null),i=Vl(),[a,l]=h.useState("/");if(h.useEffect(()=>{typeof window>"u"||r&&l(r)},[i.key,i.backLink]),!i)return null;const s=$E(i.items);return w.jsxs("aside",{ref:o,className:I(CE,t),children:[w.jsxs("div",{className:wE,children:[w.jsx("div",{className:yE,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})}),w.jsx("div",{className:hE})]}),w.jsx("nav",{className:xE,children:w.jsxs("div",{className:pE,children:[i.backLink&&w.jsx("section",{className:L1,children:w.jsx("div",{className:I1,children:w.jsxs(Gn,{className:I(ti,dE),to:a,children:["←"," ",typeof history<"u"&&((c=history.state)!=null&&c.key)&&a!=="/"?"Back":"Home"]})})}),s.map((f,u)=>w.jsx(F1,{depth:0,item:f,onClick:n,sidebarRef:o},`${f.text}${u}`))]})})]},i.key)}function $E(e){const t=[];let n=0;for(const r of e){if(r.items){n=t.push(r);continue}t[n]?t[n].items.push(r):t.push({text:"",items:[r]})}return t}function D1(e,t){return e.find(n=>Ul(t,n.link??"")||n.link===t?!0:n.items?D1(n.items,t):!1)}function F1(e){const{depth:t,item:n,onClick:r,sidebarRef:o}=e,i=h.useRef(null),{pathname:a}=Re(),l=Dw(n.link??""),s=h.useMemo(()=>n.items?!!D1(n.items,a):!1,[n.items,a]),[c,f]=h.useState(()=>l||!n.items||s?!1:!!n.collapsed),u=n.collapsed!==void 0&&n.items!==void 0,d=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link||f(C=>!C)},[n.link]),p=h.useCallback(g=>{"key"in g&&g.key!=="Enter"||n.link&&f(C=>!C)},[n.link]),y=h.useRef(!0);return h.useEffect(()=>{!y.current||(y.current=!1,!Ul(a,n.link??""))||requestAnimationFrame(()=>{var m,x,E;const C=((m=i.current)==null?void 0:m.offsetTop)??0,v=((x=o==null?void 0:o.current)==null?void 0:x.clientHeight)??0;C0&&t<5&&n.items.map((g,C)=>w.jsx(F1,{depth:t+1,item:g,onClick:r,sidebarRef:o},`${g.text}${C}`))})]}):w.jsx(w.Fragment,{children:n.link?w.jsx(Gn,{ref:i,"data-active":!!l,onClick:r,className:ti,to:n.link,children:n.text}):w.jsx("div",{className:ti,children:n.text})})}function TE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Down"}),w.jsx("path",{d:"M34.8677 38.8398C35.9419 38.8398 37.0161 38.4492 37.7485 37.6191L67.729 7.44339C68.4614 6.71089 68.9009 5.73439 68.9009 4.61129C68.9009 2.31639 67.1919 0.558594 64.897 0.558594C63.8227 0.558594 62.7485 1.04689 62.0161 1.73049L32.5727 31.2715H37.1138L7.67042 1.73049C6.93802 1.04689 5.96142 0.558594 4.83842 0.558594C2.54342 0.558594 0.785645 2.31639 0.785645 4.61129C0.785645 5.73439 1.22512 6.71089 1.95752 7.44339L31.9868 37.6191C32.768 38.4492 33.7446 38.8398 34.8677 38.8398Z",fill:"currentColor"})]})}function kE(){return w.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 69 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("title",{children:"Chevron Up"}),w.jsx("path",{d:"M1.95752 32.2441C1.22512 32.9277 0.785645 33.9531 0.785645 35.0762C0.785645 37.3711 2.54342 39.1289 4.83842 39.1289C5.96142 39.1289 6.98682 38.6895 7.67042 37.957L37.1138 8.36716H32.5727L62.0161 37.957C62.6997 38.6895 63.8227 39.1289 64.897 39.1289C67.1919 39.1289 68.9009 37.3711 68.9009 35.0762C68.9009 33.9531 68.4614 32.9277 67.729 32.2441L37.7485 2.06836C37.0161 1.23826 35.9419 0.847656 34.8677 0.847656C33.7446 0.847656 32.7192 1.23826 31.9868 2.06836L1.95752 32.2441Z",fill:"currentColor"})]})}function RE(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 48",fill:"none",children:[w.jsx("title",{children:"Menu"}),w.jsx("path",{fill:"currentColor",d:"M19.528 47.232h40.87c1.952 0 3.515-1.562 3.515-3.564a3.5 3.5 0 0 0-3.516-3.516H19.528a3.501 3.501 0 0 0-3.515 3.516c0 2.002 1.562 3.564 3.515 3.564ZM12.057 27.262h55.81a3.501 3.501 0 0 0 3.516-3.516 3.501 3.501 0 0 0-3.515-3.515h-55.81a3.501 3.501 0 0 0-3.516 3.515 3.501 3.501 0 0 0 3.515 3.516ZM4.391 7.34H75.29c2.002 0 3.515-1.563 3.515-3.516 0-2.002-1.513-3.564-3.515-3.564H4.39C2.438.26.876 1.822.876 3.824A3.501 3.501 0 0 0 4.39 7.34Z"})]})}Tu.Curtain=ME;function Tu(){var n,r;const e=Je(),{showLogo:t}=Rr();return w.jsxs("div",{className:H8,children:[w.jsxs("div",{className:Pp,children:[t&&w.jsx("div",{className:ba,children:w.jsx("div",{className:j8,children:w.jsx(Gn,{to:"/",style:{alignItems:"center",display:"flex",height:"100%"},children:w.jsx(Yf,{})})})}),e.topNav&&w.jsx(w.Fragment,{children:w.jsxs("div",{className:ba,children:[w.jsx(NE,{items:e.topNav}),w.jsx(AE,{items:e.topNav})]})})]}),w.jsxs("div",{className:Pp,children:[w.jsx("div",{className:ba,style:{marginRight:"-8px"},children:w.jsx(k8,{})}),e.socials&&((n=e.socials)==null?void 0:n.length)>0&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:I8}),w.jsx("div",{className:ba,style:{marginLeft:"-8px"},children:(r=e.socials)==null?void 0:r.map((o,i)=>w.jsx(LE,{...o},i))})]})]})]})}function NE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx(Dg,{className:i1,children:w.jsx(Fg,{children:e.map((r,o)=>r!=null&&r.link?w.jsx(Gl,{active:n==null?void 0:n.includes(r.id),href:r.link,children:r.text},o):w.jsxs(zg,{className:M8,children:[w.jsx(Bg,{active:n==null?void 0:n.includes(r.id),children:r.text}),w.jsx(Ug,{className:A8,children:w.jsx(PE,{items:r.items||[]})})]},o))})})}function PE({items:e}){const{pathname:t}=Re(),n=Hi({pathname:t,items:e});return w.jsx("ul",{children:e==null?void 0:e.map((r,o)=>w.jsx(Gl,{active:n.includes(r.id),href:r.link,children:r.text},o))})}function AE({items:e}){var s;const[t,n]=h.useState(!1),{pathname:r}=Re(),o=Hi({pathname:r,items:e}),i=e.filter(c=>c.id===o[0])[0],{basePath:a}=Je(),l=a;return w.jsx("div",{className:I(i1,B8),children:i?w.jsxs(Ht.Root,{modal:!0,open:t,onOpenChange:n,children:[w.jsxs(Ht.Trigger,{className:I(o1,Go),children:[i.text,w.jsx(st,{label:"Menu",icon:TE,size:"11px"})]}),w.jsx(Ht,{className:K8,children:w.jsx(_8,{type:"single",collapsible:!0,style:{display:"flex",flexDirection:"column"},children:e.map((c,f)=>{var u;return c!=null&&c.link?w.jsx(nn,{"data-active":o.includes(c.id),className:Go,href:c.link,onClick:()=>n(!1),variant:"styleless",children:c.text},f):w.jsxs(S8,{value:f.toString(),children:[w.jsx(b8,{className:I(Go,z8),"data-active":o.includes(c.id),style:Gt({[N8]:`url(${l}/.vocs/icons/chevron-down.svg)`,[P8]:`url(${l}/.vocs/icons/chevron-up.svg)`}),children:c.text}),w.jsx($8,{className:F8,children:(u=c.items)==null?void 0:u.map((d,p)=>w.jsx(nn,{className:Go,href:d.link,onClick:()=>n(!1),variant:"styleless",children:d.text},p))})]},f)})})})]}):(s=e[0])!=null&&s.link?w.jsx(nn,{className:Go,href:e[0].link,variant:"styleless",children:e[0].text}):null})}const OE={discord:Hg,github:Vg,telegram:Wg,warpcast:Kg,x:Yg},IE={discord:"21px",github:"18px",telegram:"21px",warpcast:"18px",x:"16px"};function LE({icon:e,label:t,link:n,type:r}){return w.jsx("a",{className:R8,href:n,target:"_blank",rel:"noopener noreferrer",children:w.jsx(st,{className:L8,label:t,icon:OE[e],size:IE[r]||"18px"})})}function ME({enableScrollToTop:e}){const{pathname:t}=Re(),{layout:n,showSidebar:r}=Rr(),{frontmatter:o={}}=kr(),i=Vl(),[a,l]=h.useState(!1),[s,c]=h.useState(!1),f=h.useMemo(()=>{if(!i||n==="minimal")return;const p=z1({sidebarItems:i.items,pathname:t});return p==null?void 0:p.text},[n,t,i]),u=h.useMemo(()=>{var p;if(!(typeof window>"u"))return(p=document.querySelector(".vocs_Content h1"))==null?void 0:p.textContent},[]),d=f||o.title||u;return w.jsxs("div",{className:O8,children:[w.jsx("div",{className:Rp,children:w.jsx("div",{className:tc,children:r?w.jsxs(Ht.Root,{modal:!0,open:s,onOpenChange:c,children:[w.jsxs(Ht.Trigger,{className:o1,children:[w.jsx(st,{label:"Menu",icon:RE,size:"13px"}),w.jsx("div",{className:D8,children:d})]}),w.jsx(Ht,{className:W8,children:w.jsx(j1,{onClickItem:()=>c(!1)})})]}):d})}),w.jsxs("div",{className:Rp,children:[e&&w.jsxs(w.Fragment,{children:[w.jsx("div",{className:tc,children:w.jsxs("button",{className:Np,onClick:()=>window.scrollTo({behavior:"smooth",top:0}),type:"button",children:["Top",w.jsx(st,{label:"Scroll to top",icon:kE,size:"10px"})]})}),w.jsx("div",{className:V8})]}),n==="docs"&&w.jsx("div",{className:tc,children:w.jsxs(Ht.Root,{modal:!0,open:a,onOpenChange:l,children:[w.jsxs(Ht.Trigger,{className:Np,children:["On this page",w.jsx(st,{label:"On this page",icon:M1,size:"10px"})]}),w.jsx(Ht,{className:U8,children:w.jsx(a1,{onClickItem:()=>l(!1),showTitle:!1})})]})})]})]})}function z1({sidebarItems:e,pathname:t}){const n=t.replace(/(.+)\/$/,"$1");for(const r of e){if((r==null?void 0:r.link)===n)return r;if(r.items){const o=z1({sidebarItems:r.items,pathname:n});if(o)return o}}}var jE="vocs_SkipLink";const B1="vocs-content";function DE(){const{pathname:e}=Re();return w.jsx("a",{className:I(jE,Z0),href:`${e}#${B1}`,children:"Skip to content"})}var FE="vocs_DocsLayout_content",zE="vocs_DocsLayout_content_withSidebar",BE="vocs_DocsLayout_content_withTopNav",UE="vocs_DocsLayout_gutterLeft",HE="vocs_DocsLayout_gutterRight",VE="vocs_DocsLayout_gutterRight_withSidebar",WE="vocs_DocsLayout_gutterTop",KE="vocs_DocsLayout_gutterTopCurtain",YE="vocs_DocsLayout_gutterTopCurtain_hidden",GE="vocs_DocsLayout_gutterTopCurtain_withSidebar",QE="vocs_DocsLayout_gutterTop_offsetLeftGutter",ZE="vocs_DocsLayout_gutterTop_sticky",XE="vocs_DocsLayout",JE="vocs_DocsLayout_sidebar";function ku({children:e}){const{banner:t,font:n}=Je(),{frontmatter:r={}}=kr(),{content:o}=r,{layout:i,showOutline:a,showSidebar:l,showTopNav:s}=Rr(),{ref:c,inView:f}=U0({initialInView:!0,rootMargin:"100px 0px 0px 0px"}),[u,d]=mu("banner",!0);return w.jsxs("div",{className:XE,"data-layout":i,style:Gt({[Yx]:u?t==null?void 0:t.height:void 0,[Rx.default]:n!=null&&n.google?`${n.google}, ${kx.default}`:void 0}),children:[w.jsx(DE,{}),u&&w.jsx(v5,{hide:()=>d(!1)}),l&&w.jsx("div",{className:UE,children:w.jsx(j1,{className:JE})}),s&&w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:c,className:I(WE,l&&QE,(i==="minimal"||i==="landing")&&ZE),children:[w.jsx(Eu,{}),w.jsx(Tu,{})]}),w.jsxs("div",{className:I(KE,l&&GE,(i==="minimal"||i==="landing")&&YE),children:[w.jsx(Eu.Curtain,{}),w.jsx(Tu.Curtain,{enableScrollToTop:!f})]})]}),a&&w.jsx("div",{className:I(HE,l&&VE),children:w.jsx(a1,{})}),w.jsxs("div",{id:B1,className:I(FE,l&&zE,s&&BE),style:Gt({[js.horizontalPadding]:o==null?void 0:o.horizontalPadding,[js.width]:o==null?void 0:o.width,[js.verticalPadding]:o==null?void 0:o.verticalPadding}),children:[w.jsx(Y0,{children:e}),w.jsx(Z7,{})]}),w.jsx("div",{"data-bottom-observer":!0})]})}const Ru={},U1=Z.createContext(Ru);function qE(e){const t=Z.useContext(U1);return Z.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function e_(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Ru):e.components||Ru:t=qE(e.components),Z.createElement(U1.Provider,{value:t},e.children)}var H1={exports:{}},t_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",n_=t_,r_=n_;function V1(){}function W1(){}W1.resetWarningCache=V1;var o_=function(){function e(r,o,i,a,l,s){if(s!==r_){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:W1,resetWarningCache:V1};return n.PropTypes=n,n};H1.exports=o_();var i_=H1.exports;const Ce=Jn(i_);function a_(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var K1=h,l_=a_(K1);function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var c_=!!(typeof window<"u"&&window.document&&window.document.createElement);function u_(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],l;function s(){l=e(a.map(function(f){return f.props})),c.canUseDOM?t(l):n&&(l=n(l))}var c=function(f){s_(u,f);function u(){return f.apply(this,arguments)||this}u.peek=function(){return l},u.rewind=function(){if(u.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,a=[],y};var d=u.prototype;return d.UNSAFE_componentWillMount=function(){a.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),s()},d.render=function(){return l_.createElement(i,this.props)},u}(K1.PureComponent);return Bp(c,"displayName","SideEffect("+r(i)+")"),Bp(c,"canUseDOM",c_),c}}var f_=u_;const d_=Jn(f_);var h_=typeof Element<"u",p_=typeof Map=="function",v_=typeof Set=="function",m_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Va(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Va(e[r],t[r]))return!1;return!0}var i;if(p_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Va(r.value[1],t.get(r.value[0])))return!1;return!0}if(v_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(m_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(h_&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Va(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var g_=function(t,n){try{return Va(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const y_=Jn(g_);/* object-assign (c) Sindre Sorhus @license MIT -*/var Up=Object.getOwnPropertySymbols,w_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;function C_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function E_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var __=E_()?Object.assign:function(e,t){for(var n,r=C_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},P_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Nu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},A_=function(t){var n=co(t,q.TITLE),r=co(t,Li.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=co(t,Li.DEFAULT_TITLE);return n||o||void 0},O_=function(t){return co(t,Li.ON_CHANGE_CLIENT_STATE)||function(){}},nc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ht({},r,o)},{})},I_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},L_=function(t){return{baseTag:I_([Ee.HREF,Ee.TARGET],t),bodyAttributes:nc(vr.BODY,t),defer:co(t,Li.DEFER),encode:co(t,Li.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nc(vr.HTML,t),linkTags:Qo(q.LINK,[Ee.REL,Ee.HREF],t),metaTags:Qo(q.META,[Ee.NAME,Ee.CHARSET,Ee.HTTPEQUIV,Ee.PROPERTY,Ee.ITEM_PROP],t),noscriptTags:Qo(q.NOSCRIPT,[Ee.INNER_HTML],t),onChangeClientState:O_(t),scriptTags:Qo(q.SCRIPT,[Ee.SRC,Ee.INNER_HTML],t),styleTags:Qo(q.STYLE,[Ee.CSS_TEXT],t),title:A_(t),titleAttributes:nc(vr.TITLE,t)}},Pu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Pu(t)},0)}}(),Vp=function(t){return clearTimeout(t)},M_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Pu:global.requestAnimationFrame||Pu,j_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Vp:global.cancelAnimationFrame||Vp,D_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Zo=null,F_=function(t){Zo&&j_(Zo),t.defer?Zo=M_(function(){Wp(t,function(){Zo=null})}):(Wp(t),Zo=null)},Wp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.onChangeClientState,f=t.scriptTags,u=t.styleTags,d=t.title,p=t.titleAttributes;Au(q.BODY,o),Au(q.HTML,i),z_(d,p);var y={baseTag:zr(q.BASE,r),linkTags:zr(q.LINK,a),metaTags:zr(q.META,l),noscriptTags:zr(q.NOSCRIPT,s),scriptTags:zr(q.SCRIPT,f),styleTags:zr(q.STYLE,u)},g={},C={};Object.keys(y).forEach(function(v){var m=y[v],x=m.newTags,E=m.oldTags;x.length&&(g[v]=x),E.length&&(C[v]=y[v].oldTags)}),n&&n(),c(t,g,C)},Y1=function(t){return Array.isArray(t)?t.join(""):t},z_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Y1(t)),Au(q.TITLE,n)},Au=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Vt),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Vt):r.getAttribute(Vt)!==l.join(",")&&r.setAttribute(Vt,l.join(","))}},zr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Vt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var c=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ee.INNER_HTML)c.innerHTML=s.innerHTML;else if(f===Ee.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=s.cssText:c.appendChild(document.createTextNode(s.cssText));else{var u=typeof s[f]>"u"?"":s[f];c.setAttribute(f,u)}c.setAttribute(Vt,"true"),i.some(function(d,p){return l=p,c.isEqualNode(d)})?i.splice(l,1):a.push(c)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},G1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},B_=function(t,n,r,o){var i=G1(r),a=Y1(n);return i?"<"+t+" "+Vt+'="true" '+i+">"+Nu(a,o)+"":"<"+t+" "+Vt+'="true">'+Nu(a,o)+""},U_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(c){return!(c===Ee.INNER_HTML||c===Ee.CSS_TEXT)}).reduce(function(c,f){var u=typeof i[f]>"u"?f:f+'="'+Nu(i[f],r)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",s=$_.indexOf(t)===-1;return o+"<"+t+" "+Vt+'="true" '+a+(s?"/>":">"+l+"")},"")},Q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Sl[o]||o]=t[o],r},n)},H_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[b_[o]||o]=t[o],r},n)},V_=function(t,n,r){var o,i=(o={key:n},o[Vt]=!0,o),a=Q1(r,i);return[Z.createElement(q.TITLE,a,n)]},W_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Vt]=!0,i);return Object.keys(r).forEach(function(l){var s=Sl[l]||l;if(s===Ee.INNER_HTML||s===Ee.CSS_TEXT){var c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[s]=r[l]}),Z.createElement(t,a)})},an=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return V_(t,n.title,n.titleAttributes)},toString:function(){return B_(t,n.title,n.titleAttributes,r)}};case vr.BODY:case vr.HTML:return{toComponent:function(){return Q1(n)},toString:function(){return G1(n)}};default:return{toComponent:function(){return W_(t,n)},toString:function(){return U_(t,n,r)}}}},Z1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.scriptTags,f=t.styleTags,u=t.title,d=u===void 0?"":u,p=t.titleAttributes;return{base:an(q.BASE,n,o),bodyAttributes:an(vr.BODY,r,o),htmlAttributes:an(vr.HTML,i,o),link:an(q.LINK,a,o),meta:an(q.META,l,o),noscript:an(q.NOSCRIPT,s,o),script:an(q.SCRIPT,c,o),style:an(q.STYLE,f,o),title:an(q.TITLE,{title:d,titleAttributes:p},o)}},K_=function(t){var n,r;return r=n=function(o){N_(i,o);function i(){return k_(this,i),P_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!y_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,c=l.child,f=l.arrayTypeChildren,u=l.newChildProps,d=l.nestedChildren;return ht({},f,(s={},s[c.type]=[].concat(f[c.type]||[],[ht({},u,this.mapNestedChildrenToProps(c,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,c,f=l.child,u=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ht({},u,(s={},s[f.type]=p,s.titleAttributes=ht({},d),s));case q.BODY:return ht({},u,{bodyAttributes:ht({},d)});case q.HTML:return ht({},u,{htmlAttributes:ht({},d)})}return ht({},u,(c={},c[f.type]=ht({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var c=ht({},s);return Object.keys(l).forEach(function(f){var u;c=ht({},c,(u={},u[f]=l[f],u))}),c},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var c=this,f={};return Z.Children.forEach(l,function(u){if(!(!u||!u.props)){var d=u.props,p=d.children,y=Hp(d,["children"]),g=H_(y);switch(c.warnOnInvalidChildren(u,p),u.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:f,newChildProps:g,nestedChildren:p});break;default:s=c.mapObjectTypeChildren({child:u,newProps:s,newChildProps:g,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,c=Hp(l,["children"]),f=ht({},c);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},R_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:Ce.object,bodyAttributes:Ce.object,children:Ce.oneOfType([Ce.arrayOf(Ce.node),Ce.node]),defaultTitle:Ce.string,defer:Ce.bool,encodeSpecialCharacters:Ce.bool,htmlAttributes:Ce.object,link:Ce.arrayOf(Ce.object),meta:Ce.arrayOf(Ce.object),noscript:Ce.arrayOf(Ce.object),onChangeClientState:Ce.func,script:Ce.arrayOf(Ce.object),style:Ce.arrayOf(Ce.object),title:Ce.string,titleAttributes:Ce.object,titleTemplate:Ce.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Z1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},Y_=function(){return null},G_=d_(L_,F_,Z1)(Y_),Ou=K_(G_);Ou.renderStatic=Ou.rewind;var rc="vocs_Anchor",Q_="vocs_Autolink";function Z_(e){const{pathname:t}=Re();return w.jsx("a",{...e,className:I(e.className,Q_),href:`${t}${e.href}`})}function X_(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?w.jsx(Z_,{className:I(e.className,rc),...e}):n!=null&&n.match(/^#/)?w.jsx("a",{className:I(e.className,rc),...e,href:`${r}${n}`}):w.jsx(nn,{className:I(e.className,rc),...e})}var J_="vocs_Callout_danger",q_="vocs_Callout_info",eS="vocs_Callout_note",X1="vocs_Callout",tS="vocs_Callout_success",nS="vocs_Callout_tip",rS="vocs_Callout_warning";const oS=Object.freeze(Object.defineProperty({__proto__:null,danger:J_,info:q_,note:eS,root:X1,success:tS,tip:nS,warning:rS},Symbol.toStringTag,{value:"Module"}));function iS({className:e,children:t,type:n}){return w.jsx("aside",{className:I(e,X1,oS[n]),children:t})}var aS="vocs_Aside";function lS(e){const t=I(e.className,aS);return"data-callout"in e?w.jsx(iS,{className:t,type:e["data-callout"],children:e.children}):w.jsx("aside",{...e,className:t})}var sS="vocs_Blockquote";function cS(e){return w.jsx("blockquote",{...e,className:I(e.className,sS)})}var uS="vocs_Code";function fS(e){const t=dS(e.children);return w.jsx("code",{...e,className:I(e.className,uS),children:t})}function dS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var hS="vocs_Details";function pS(e){return w.jsx("details",{...e,className:I(e.className,hS)})}var vS="vocs_Authors_authors",mS="vocs_Authors_link",gS="vocs_Authors",Kp="vocs_Authors_separator";function J1(e){const{frontmatter:t}=kr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return w.jsxs("div",{className:gS,children:[i,o&&(i?" by ":"By "),w.jsx("span",{className:vS,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:c}=yS(a);return w.jsxs(h.Fragment,{children:[c?w.jsx("a",{className:mS,href:c,target:"_blank",rel:"noopener noreferrer",children:s}):s,lw.jsxs(h.Fragment,{children:[w.jsx("div",{className:CS,children:w.jsxs(Gn,{to:e.path,children:[w.jsx("h2",{className:SS,children:e.title}),w.jsx(J1,{authors:e.authors,date:e.date}),w.jsxs("p",{className:wS,children:[e.description," ",w.jsx("span",{className:ES,children:"[→]"})]})]})}),tw.jsxs(h.Fragment,{children:[w.jsx("div",{className:OS,children:t.name}),t.items.map((r,o)=>{var i;return w.jsx("div",{className:PS,style:Gt({[TS]:r.length.toString(),[kS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>w.jsx(nn,{className:I($S,a?AS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:w.jsx("img",{className:RS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var LS="var(--vocs_AutolinkIcon_iconUrl)",MS="vocs_AutolinkIcon";function jS(e){const{basePath:t}=Je(),n=t;return w.jsx("div",{...e,className:I(e.className,MS),style:Gt({[LS]:`url(${n}/.vocs/icons/link.svg)`})})}const oc="rovingFocusGroup.onEntryFocus",DS={bubbles:!1,cancelable:!0},cd="RovingFocusGroup",[Iu,q1,FS]=Yl(cd),[zS,ey]=En(cd,[FS]),[BS,US]=zS(cd),HS=h.forwardRef((e,t)=>h.createElement(Iu.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Iu.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(VS,Y({},e,{ref:t}))))),VS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,...f}=e,u=h.useRef(null),d=ze(t,u),p=Kl(i),[y=null,g]=rr({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),m=at(c),x=q1(n),E=h.useRef(!1),[S,_]=h.useState(0);return h.useEffect(()=>{const b=u.current;if(b)return b.addEventListener(oc,m),()=>b.removeEventListener(oc,m)},[m]),h.createElement(BS,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(b=>g(b),[g]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(b=>b+1),[]),onFocusableItemRemove:h.useCallback(()=>_(b=>b-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{E.current=!0}),onFocus:ae(e.onFocus,b=>{const $=!E.current;if(b.target===b.currentTarget&&$&&!C){const k=new CustomEvent(oc,DS);if(b.currentTarget.dispatchEvent(k),!k.defaultPrevented){const P=x().filter(z=>z.focusable),j=P.find(z=>z.active),L=P.find(z=>z.id===y),N=[j,L,...P].filter(Boolean).map(z=>z.ref.current);ty(N)}}E.current=!1}),onBlur:ae(e.onBlur,()=>v(!1))})))}),WS="RovingFocusGroupItem",KS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=rn(),s=i||l,c=US(WS,n),f=c.currentTabStopId===s,u=q1(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Iu.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,y=>{r?c.onItemFocus(s):y.preventDefault()}),onFocus:ae(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:ae(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){c.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const g=QS(y,c.orientation,c.dir);if(g!==void 0){y.preventDefault();let v=u().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const m=v.indexOf(y.currentTarget);v=c.loop?ZS(v,m+1):v.slice(m+1)}setTimeout(()=>ty(v))}})})))}),YS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function QS(e,t,n){const r=GS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return YS[r]}function ty(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ZS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const XS=HS,JS=KS,ny="Tabs",[qS,i$]=En(ny,[ey]),ry=ey(),[e9,ud]=qS(ny),t9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...c}=e,f=Kl(l),[u,d]=rr({prop:r,onChange:o,defaultProp:i});return h.createElement(e9,{scope:n,baseId:rn(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},c,{ref:t})))}),n9="TabsList",r9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ud(n9,n),a=ry(n);return h.createElement(XS,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),o9="TabsTrigger",i9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=ud(o9,n),l=ry(n),s=oy(a.baseId,r),c=iy(a.baseId,r),f=r===a.value;return h.createElement(JS,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ae(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:ae(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})))}),a9="TabsContent",l9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=ud(a9,n),s=oy(l.baseId,r),c=iy(l.baseId,r),f=r===l.value,u=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0}}),d&&i))});function oy(e,t){return`${e}-trigger-${t}`}function iy(e,t){return`${e}-content-${t}`}const s9=t9,c9=r9,u9=i9,f9=l9;var d9="vocs_Tabs_content",h9="vocs_Tabs_list",p9="vocs_Tabs",v9="vocs_Tabs_trigger";function m9(e){return w.jsx(s9,{...e,className:I(e.className,p9)})}function g9(e){return w.jsx(c9,{...e,className:I(e.className,h9)})}function y9(e){return w.jsx(u9,{...e,className:I(e.className,v9)})}function w9(e){return w.jsx(f9,{...e,className:I(e.className,d9)})}var x9="vocs_CodeGroup";function C9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return w.jsxs(m9,{className:x9,defaultValue:t[0].title,children:[w.jsx(g9,{"aria-label":"Code group",children:t.map(({title:n},r)=>w.jsx(y9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return w.jsx(w9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var E9="vocs_Div",_9="vocs_Step_content",S9="vocs_Step",ay="vocs_Step_title",b9="vocs_H2";function ly(e){return w.jsx(ko,{...e,className:I(e.className,b9),level:2})}var $9="vocs_H3";function sy(e){return w.jsx(ko,{...e,className:I(e.className,$9),level:3})}var T9="vocs_H4";function cy(e){return w.jsx(ko,{...e,className:I(e.className,T9),level:4})}var k9="vocs_H5";function uy(e){return w.jsx(ko,{...e,className:I(e.className,k9),level:5})}var R9="vocs_H6";function fy(e){return w.jsx(ko,{...e,className:I(e.className,R9),level:6})}function N9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return ly;if(r===3)return sy;if(r===4)return cy;if(r===5)return uy;if(r===6)return fy;throw new Error("Invalid.")})();return w.jsxs("div",{className:I(t,S9),children:[typeof n=="string"?w.jsx(o,{className:ay,children:n}):n,w.jsx("div",{className:_9,children:e})]})}var P9="vocs_Steps";function A9({children:e,className:t}){return w.jsx("div",{className:I(t,P9),children:e})}function O9({children:e}){return Array.isArray(e)?w.jsx(A9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return w.jsx(N9,{title:h.cloneElement(r,{className:ay}),children:o},n)})}):null}var I9="vocs_Subtitle";function L9({children:e}){return w.jsx("div",{className:I9,role:"doc-subtitle",children:e})}function M9(e){const{layout:t}=Rr(),n=I(e.className,E9);return e.className==="code-group"?w.jsx(C9,{...e,className:n}):"data-authors"in e?w.jsx(J1,{}):"data-blog-posts"in e?w.jsx(bS,{}):"data-sponsors"in e?w.jsx(IS,{}):"data-autolink-icon"in e&&t==="docs"?w.jsx(jS,{...e,className:n}):"data-vocs-steps"in e?w.jsx(O9,{...e,className:n}):e.role==="doc-subtitle"?w.jsx(L9,{...e}):w.jsx("div",{...e,className:n})}var j9="vocs_Figcaption";function D9(e){const t=I(e.className,j9);return w.jsx("figcaption",{...e,className:t})}var F9="vocs_Figure";function z9(e){const t=I(e.className,F9);return w.jsx("figure",{...e,className:t})}var B9="vocs_Header";function U9(e){return w.jsx("header",{...e,className:I(e.className,B9)})}var H9="vocs_HorizontalRule";function V9(e){return w.jsx("hr",{...e,className:I(e.className,H9)})}var W9="vocs_List_ordered",K9="vocs_List",Y9="vocs_List_unordered";function Gp({ordered:e,...t}){const n=e?"ol":"ul";return w.jsx(n,{...t,className:I(t.className,K9,e?W9:Y9)})}var G9="vocs_ListItem";function Q9(e){return w.jsx("li",{...e,className:I(e.className,G9)})}function Z9(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var X9="vocs_CopyButton";function J9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[w.jsx("title",{children:"Checkmark"}),w.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function q9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[w.jsx("title",{children:"Copy"}),w.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),w.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function eb({copy:e,copied:t}){return w.jsx("button",{className:X9,onClick:e,type:"button",children:t?w.jsx(st,{label:"Copied",size:"14px",icon:J9}):w.jsx(st,{label:"Copy",size:"18px",icon:q9})})}var tb="vocs_CodeBlock";function nb(e){return w.jsx("div",{...e,className:I(e.className,tb)})}function rb(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[w.jsx("title",{children:"File"}),w.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function ob(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[w.jsx("title",{children:"Terminal"}),w.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var ib="vocs_CodeTitle";function ab({children:e,className:t,language:n,...r}){return w.jsxs("div",{...r,className:I(t,ib),children:[n==="bash"?w.jsx(st,{label:"Terminal",size:"14px",icon:ob,style:{marginTop:3}}):e.match(/\.(.*)$/)?w.jsx(st,{label:"File",size:"14px",icon:rb,style:{marginTop:1}}):null,e]})}var lb="vocs_Pre",sb="vocs_Pre_wrapper";function cb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=Z9();function a(c){return!c||typeof c!="object"?c:"props"in c?{...c,props:{...c.props,children:Array.isArray(c.props.children)?c.props.children.map(a):a(c.props.children)}}:c}const l=h.useMemo(()=>a(e),[e]);return(c=>t!=null&&t.includes("shiki")?w.jsxs(nb,{children:[n["data-title"]&&w.jsx(ab,{language:n["data-lang"],children:n["data-title"]}),c]}):c)(w.jsx("div",{className:I(sb),children:w.jsxs("pre",{ref:i,...n,className:I(t,lb),children:["data-language"in n&&w.jsx(eb,{copied:r,copy:o}),l]})}))}var ub="vocs_Footnotes";function fb(e){return w.jsx("section",{...e,className:I(e.className,ub)})}var Qp="vocs_Section";function db(e){return"data-footnotes"in e?w.jsx(fb,{...e,className:I(e.className,Qp)}):w.jsx("section",{...e,className:I(e.className,Qp)})}var Zp="vocs_Span";function Wa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Lu(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ta(e){return(e==null?void 0:e.ownerDocument)||document}function hb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const pb=$l.useInsertionEffect,vb=pb||(e=>e());function mb(e){const t=h.useRef(()=>{});return vb(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+gb++;function yb(){const[e,t]=h.useState(()=>ic?Xp():void 0);return Mi(()=>{e==null&&t(Xp())},[]),h.useEffect(()=>{ic||(ic=!0)},[]),e}const wb=$l.useId,dy=wb||yb,xb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:f,stroke:u,d,style:{transform:p,...y}={},...g}=t,C=dy();if(!o)return null;const v=c*2,m=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,_]=r.split("-"),b=y1.isRTL(o),$=!!d,k=S==="top"||S==="bottom",P=f&&_==="end"?"bottom":"top";let j=f&&_==="end"?"right":"left";f&&b&&(j=_==="end"?"left":"right");const L=(i==null?void 0:i.x)!=null?f||i.x:"",D=(i==null?void 0:i.y)!=null?f||i.y:"",N=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",z={top:$?"rotate(180deg)":"",left:$?"rotate(90deg)":"rotate(-90deg)",bottom:$?"":"rotate(180deg)",right:$?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Mu({},g,{"aria-hidden":!0,ref:n,width:$?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[j]:L,[P]:D,[S]:k||$?"100%":"calc(100% - "+v/2+"px)",transform:""+z+(p??""),...y}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:u,strokeWidth:v+(d?0:1),d:N}),h.createElement("path",{stroke:v&&!d?g.fill:"none",d:N}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-m,y:m*($?-1:1),width:a+v,height:a})))});function Cb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Eb=h.createContext(null),_b=h.createContext(null),hy=()=>{var e;return((e=h.useContext(Eb))==null?void 0:e.id)||null},py=()=>h.useContext(_b);function Sb(e){return"data-floating-ui-"+e}function Jp(e){const t=h.useRef(e);return Mi(()=>{t.current=e}),t}const qp=Sb("safe-polygon");function ac(e,t,n){return n&&!Lu(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function bb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:c=!0,delay:f=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:y=!0}=t,g=py(),C=hy(),v=Jp(u),m=Jp(f),x=h.useRef(),E=h.useRef(),S=h.useRef(),_=h.useRef(),b=h.useRef(!0),$=h.useRef(!1),k=h.useRef(()=>{}),P=h.useCallback(()=>{var N;const z=(N=o.current.openEvent)==null?void 0:N.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[o]);h.useEffect(()=>{if(!c)return;function N(z){let{open:V}=z;V||(clearTimeout(E.current),clearTimeout(_.current),b.current=!0)}return i.on("openchange",N),()=>{i.off("openchange",N)}},[c,i]),h.useEffect(()=>{if(!c||!v.current||!n)return;function N(V){P()&&r(!1,V,"hover")}const z=Ta(l).documentElement;return z.addEventListener("mouseleave",N),()=>{z.removeEventListener("mouseleave",N)}},[l,n,r,c,v,P]);const j=h.useCallback(function(N,z,V){z===void 0&&(z=!0),V===void 0&&(V="hover");const U=ac(m.current,"close",x.current);U&&!S.current?(clearTimeout(E.current),E.current=setTimeout(()=>r(!1,N,V),U)):z&&(clearTimeout(E.current),r(!1,N,V))},[m,r]),L=h.useCallback(()=>{k.current(),S.current=void 0},[]),D=h.useCallback(()=>{if($.current){const N=Ta(s.floating.current).body;N.style.pointerEvents="",N.removeAttribute(qp),$.current=!1}},[s]);return h.useEffect(()=>{if(!c)return;function N(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function z(O){if(clearTimeout(E.current),b.current=!1,d&&!Lu(x.current)||p>0&&ac(m.current,"open")===0)return;const F=ac(m.current,"open",x.current);F?E.current=setTimeout(()=>{r(!0,O,"hover")},F):r(!0,O,"hover")}function V(O){if(N())return;k.current();const F=Ta(l);if(clearTimeout(_.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O,!0,"safe-polygon")}});const J=S.current;F.addEventListener("mousemove",J),k.current=()=>{F.removeEventListener("mousemove",J)};return}(x.current==="touch"?!Wa(l,O.relatedTarget):!0)&&j(O)}function U(O){N()||v.current==null||v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O)}})(O)}if(nt(a)){const O=a;return n&&O.addEventListener("mouseleave",U),l==null||l.addEventListener("mouseleave",U),y&&O.addEventListener("mousemove",z,{once:!0}),O.addEventListener("mouseenter",z),O.addEventListener("mouseleave",V),()=>{n&&O.removeEventListener("mouseleave",U),l==null||l.removeEventListener("mouseleave",U),y&&O.removeEventListener("mousemove",z),O.removeEventListener("mouseenter",z),O.removeEventListener("mouseleave",V)}}},[a,l,c,e,d,p,y,j,L,D,r,n,g,m,v,o]),Mi(()=>{var N;if(c&&n&&(N=v.current)!=null&&N.__options.blockPointerEvents&&P()){const V=Ta(l).body;if(V.setAttribute(qp,""),V.style.pointerEvents="none",$.current=!0,nt(a)&&l){var z;const U=a,O=g==null||(z=g.nodesRef.current.find(F=>F.id===C))==null||(z=z.context)==null?void 0:z.elements.floating;return O&&(O.style.pointerEvents=""),U.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{U.style.pointerEvents="",l.style.pointerEvents=""}}}},[c,n,C,l,a,g,v,P]),Mi(()=>{n||(x.current=void 0,L(),D())},[n,L,D]),h.useEffect(()=>()=>{L(),clearTimeout(E.current),clearTimeout(_.current),D()},[c,a,L,D]),h.useMemo(()=>{if(!c)return{};function N(z){x.current=z.pointerType}return{reference:{onPointerDown:N,onPointerEnter:N,onMouseMove(z){function V(){b.current||r(!0,z.nativeEvent,"hover")}d&&!Lu(x.current)||n||p===0||(clearTimeout(_.current),x.current==="touch"?V():_.current=setTimeout(V,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(z){j(z.nativeEvent,!1)}}}},[c,d,n,p,r,j])}function $b(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Tb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),l=((t=e.elements)==null?void 0:t.reference)||i,s=E1(e),c=py(),f=hy()!=null,u=mb((S,_,b)=>{S&&(p.current.openEvent=_),y.emit("openchange",{open:S,event:_,reason:b,nested:f}),r==null||r(S,_,b)}),d=h.useRef(null),p=h.useRef({}),y=h.useState(()=>Cb())[0],g=dy(),C=h.useCallback(S=>{const _=nt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;s.refs.setReference(_)},[s.refs]),v=h.useCallback(S=>{(nt(S)||S===null)&&(d.current=S,a(S)),(nt(s.refs.reference.current)||s.refs.reference.current===null||S!==null&&!nt(S))&&s.refs.setReference(S)},[s.refs]),m=h.useMemo(()=>({...s.refs,setReference:v,setPositionReference:C,domReference:d}),[s.refs,v,C]),x=h.useMemo(()=>({...s.elements,domReference:l}),[s.elements,l]),E=h.useMemo(()=>({...s,refs:m,elements:x,dataRef:p,nodeId:o,floatingId:g,events:y,open:n,onOpenChange:u}),[s,o,g,y,n,u,m,x]);return Mi(()=>{const S=c==null?void 0:c.nodesRef.current.find(_=>_.id===o);S&&(S.context=E)}),h.useMemo(()=>({...s,context:E,refs:m,elements:x}),[s,m,x,E])}const ev="active",tv="selected";function lc(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[ev]:a,[tv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[c,f]=s;if(!(o&&[ev,tv].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof f=="function"){var u;(u=r.get(c))==null||u.push(f),a[c]=function(){for(var d,p=arguments.length,y=new Array(p),g=0;gC(...y)).find(C=>C!==void 0)}}}else a[c]=f}),a),{})}}function kb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>lc(i,e,"reference"),t),r=h.useCallback(i=>lc(i,e,"floating"),t),o=h.useCallback(i=>lc(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function nv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=u>=r&&n<=(f-s)*(r-c)/(u-c)+s&&(o=!o)}return o}function Rb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Nb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function c(u,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=u,l=d,s=p,null;const g=u-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=u,l=d,s=p,m}const f=u=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=u;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],k=hb(E),P=E.type==="mouseleave",j=Wa(g.floating,k),L=Wa(g.domReference,k),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Rb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&$b(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!nv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=c(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}nv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Pb({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:c}=Tb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=bb(l,{handleClose:Nb()}),{getReferenceProps:u,getFloatingProps:d}=kb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...u(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:c,...d(),children:[w.jsx(xb,{ref:o,context:l,fill:Gh.background5,height:3,stroke:Gh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ab(e){var n;const t=I(e.className,Zp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Pb,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Zp)})}var Ob="vocs_CalloutTitle";function Ib({className:e,children:t}){return w.jsx("strong",{className:I(e,Ob),children:t})}var rv="vocs_Strong";function Lb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Ib,{...e,className:I(e.className,rv),children:e.children}):w.jsx("strong",{...e,className:I(e.className,rv)})}var Mb="vocs_Summary";function jb(e){return w.jsx("summary",{...e,className:I(e.className,Mb)})}var Db="vocs_Table";function Fb(e){return w.jsx("table",{...e,className:I(e.className,Db)})}var zb="vocs_TableCell";function Bb(e){return w.jsx("td",{...e,className:I(e.className,zb)})}var Ub="vocs_TableHeader";function Hb(e){return w.jsx("th",{...e,className:I(e.className,Ub)})}var Vb="vocs_TableRow";function Wb(e){return w.jsx("tr",{...e,className:I(e.className,Vb)})}const Kb={a:X_,aside:lS,blockquote:cS,code:fS,details:pS,div:M9,pre:cb,header:U9,figcaption:D9,figure:z9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:V9,kd:Rg,li:Q9,ol:e=>w.jsx(Gp,{ordered:!0,...e}),p:K0,section:db,span:Ab,strong:Lb,summary:jb,table:Fb,td:Bb,th:Hb,tr:Wb,ul:e=>w.jsx(Gp,{ordered:!1,...e})};function Yb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function ju(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Gb,{frontmatter:r}),typeof window<"u"&&w.jsx(wx,{}),w.jsx(e_,{components:Kb,children:w.jsx(M8,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Gb({frontmatter:e}){const t=Je(),n=Yb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,c=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Ou,{defaultTitle:t.title,titleTemplate:c?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:sc(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:sc(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:sc(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function sc(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Qb=(()=>{const e=Bf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(ju,{frontmatter:t,path:e.path,children:w.jsx(ku,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(ju,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx(ku,{children:w.jsx(Wx,{})})})}})(),ov=[...Bf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(ju,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx(ku,{children:w.jsx(n.default,{})})})}}})),Qb];async function Zb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Xb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}Jb();async function Jb(){const e=F0().basePath;await Zb(ov,e),Xb();const t=ax(ov,{basename:e});w0(document.getElementById("app"),w.jsx(bx,{children:w.jsx(vx,{router:t})}))}export{s9 as $,w9 as C,nn as L,m9 as R,y9 as T,c9 as a,u9 as b,f9 as c,I as d,Je as e,z7 as f,g9 as g,w as j,qE as u}; +*/var Up=Object.getOwnPropertySymbols,w_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;function C_(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function E_(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var __=E_()?Object.assign:function(e,t){for(var n,r=C_(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},P_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Nu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},A_=function(t){var n=co(t,q.TITLE),r=co(t,Li.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=co(t,Li.DEFAULT_TITLE);return n||o||void 0},O_=function(t){return co(t,Li.ON_CHANGE_CLIENT_STATE)||function(){}},nc=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return ht({},r,o)},{})},I_=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),a=0;a=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},L_=function(t){return{baseTag:I_([Ee.HREF,Ee.TARGET],t),bodyAttributes:nc(vr.BODY,t),defer:co(t,Li.DEFER),encode:co(t,Li.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nc(vr.HTML,t),linkTags:Qo(q.LINK,[Ee.REL,Ee.HREF],t),metaTags:Qo(q.META,[Ee.NAME,Ee.CHARSET,Ee.HTTPEQUIV,Ee.PROPERTY,Ee.ITEM_PROP],t),noscriptTags:Qo(q.NOSCRIPT,[Ee.INNER_HTML],t),onChangeClientState:O_(t),scriptTags:Qo(q.SCRIPT,[Ee.SRC,Ee.INNER_HTML],t),styleTags:Qo(q.STYLE,[Ee.CSS_TEXT],t),title:A_(t),titleAttributes:nc(vr.TITLE,t)}},Pu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Pu(t)},0)}}(),Vp=function(t){return clearTimeout(t)},M_=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Pu:global.requestAnimationFrame||Pu,j_=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Vp:global.cancelAnimationFrame||Vp,D_=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Zo=null,F_=function(t){Zo&&j_(Zo),t.defer?Zo=M_(function(){Wp(t,function(){Zo=null})}):(Wp(t),Zo=null)},Wp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.onChangeClientState,f=t.scriptTags,u=t.styleTags,d=t.title,p=t.titleAttributes;Au(q.BODY,o),Au(q.HTML,i),z_(d,p);var y={baseTag:zr(q.BASE,r),linkTags:zr(q.LINK,a),metaTags:zr(q.META,l),noscriptTags:zr(q.NOSCRIPT,s),scriptTags:zr(q.SCRIPT,f),styleTags:zr(q.STYLE,u)},g={},C={};Object.keys(y).forEach(function(v){var m=y[v],x=m.newTags,E=m.oldTags;x.length&&(g[v]=x),E.length&&(C[v]=y[v].oldTags)}),n&&n(),c(t,g,C)},Y1=function(t){return Array.isArray(t)?t.join(""):t},z_=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Y1(t)),Au(q.TITLE,n)},Au=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(Vt),i=o?o.split(","):[],a=[].concat(i),l=Object.keys(n),s=0;s=0;d--)r.removeAttribute(a[d]);i.length===a.length?r.removeAttribute(Vt):r.getAttribute(Vt)!==l.join(",")&&r.setAttribute(Vt,l.join(","))}},zr=function(t,n){var r=document.head||document.querySelector(q.HEAD),o=r.querySelectorAll(t+"["+Vt+"]"),i=Array.prototype.slice.call(o),a=[],l=void 0;return n&&n.length&&n.forEach(function(s){var c=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===Ee.INNER_HTML)c.innerHTML=s.innerHTML;else if(f===Ee.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=s.cssText:c.appendChild(document.createTextNode(s.cssText));else{var u=typeof s[f]>"u"?"":s[f];c.setAttribute(f,u)}c.setAttribute(Vt,"true"),i.some(function(d,p){return l=p,c.isEqualNode(d)})?i.splice(l,1):a.push(c)}),i.forEach(function(s){return s.parentNode.removeChild(s)}),a.forEach(function(s){return r.appendChild(s)}),{oldTags:i,newTags:a}},G1=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},B_=function(t,n,r,o){var i=G1(r),a=Y1(n);return i?"<"+t+" "+Vt+'="true" '+i+">"+Nu(a,o)+"":"<"+t+" "+Vt+'="true">'+Nu(a,o)+""},U_=function(t,n,r){return n.reduce(function(o,i){var a=Object.keys(i).filter(function(c){return!(c===Ee.INNER_HTML||c===Ee.CSS_TEXT)}).reduce(function(c,f){var u=typeof i[f]>"u"?f:f+'="'+Nu(i[f],r)+'"';return c?c+" "+u:u},""),l=i.innerHTML||i.cssText||"",s=$_.indexOf(t)===-1;return o+"<"+t+" "+Vt+'="true" '+a+(s?"/>":">"+l+"")},"")},Q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Sl[o]||o]=t[o],r},n)},H_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[b_[o]||o]=t[o],r},n)},V_=function(t,n,r){var o,i=(o={key:n},o[Vt]=!0,o),a=Q1(r,i);return[Z.createElement(q.TITLE,a,n)]},W_=function(t,n){return n.map(function(r,o){var i,a=(i={key:o},i[Vt]=!0,i);return Object.keys(r).forEach(function(l){var s=Sl[l]||l;if(s===Ee.INNER_HTML||s===Ee.CSS_TEXT){var c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[s]=r[l]}),Z.createElement(t,a)})},an=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return V_(t,n.title,n.titleAttributes)},toString:function(){return B_(t,n.title,n.titleAttributes,r)}};case vr.BODY:case vr.HTML:return{toComponent:function(){return Q1(n)},toString:function(){return G1(n)}};default:return{toComponent:function(){return W_(t,n)},toString:function(){return U_(t,n,r)}}}},Z1=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,a=t.linkTags,l=t.metaTags,s=t.noscriptTags,c=t.scriptTags,f=t.styleTags,u=t.title,d=u===void 0?"":u,p=t.titleAttributes;return{base:an(q.BASE,n,o),bodyAttributes:an(vr.BODY,r,o),htmlAttributes:an(vr.HTML,i,o),link:an(q.LINK,a,o),meta:an(q.META,l,o),noscript:an(q.NOSCRIPT,s,o),script:an(q.SCRIPT,c,o),style:an(q.STYLE,f,o),title:an(q.TITLE,{title:d,titleAttributes:p},o)}},K_=function(t){var n,r;return r=n=function(o){N_(i,o);function i(){return k_(this,i),P_(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!y_(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,s){if(!s)return null;switch(l.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:s};case q.STYLE:return{cssText:s}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var s,c=l.child,f=l.arrayTypeChildren,u=l.newChildProps,d=l.nestedChildren;return ht({},f,(s={},s[c.type]=[].concat(f[c.type]||[],[ht({},u,this.mapNestedChildrenToProps(c,d))]),s))},i.prototype.mapObjectTypeChildren=function(l){var s,c,f=l.child,u=l.newProps,d=l.newChildProps,p=l.nestedChildren;switch(f.type){case q.TITLE:return ht({},u,(s={},s[f.type]=p,s.titleAttributes=ht({},d),s));case q.BODY:return ht({},u,{bodyAttributes:ht({},d)});case q.HTML:return ht({},u,{htmlAttributes:ht({},d)})}return ht({},u,(c={},c[f.type]=ht({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(l,s){var c=ht({},s);return Object.keys(l).forEach(function(f){var u;c=ht({},c,(u={},u[f]=l[f],u))}),c},i.prototype.warnOnInvalidChildren=function(l,s){return!0},i.prototype.mapChildrenToProps=function(l,s){var c=this,f={};return Z.Children.forEach(l,function(u){if(!(!u||!u.props)){var d=u.props,p=d.children,y=Hp(d,["children"]),g=H_(y);switch(c.warnOnInvalidChildren(u,p),u.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:f=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:f,newChildProps:g,nestedChildren:p});break;default:s=c.mapObjectTypeChildren({child:u,newProps:s,newChildProps:g,nestedChildren:p});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},i.prototype.render=function(){var l=this.props,s=l.children,c=Hp(l,["children"]),f=ht({},c);return s&&(f=this.mapChildrenToProps(s,f)),Z.createElement(t,f)},R_(i,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),i}(Z.Component),n.propTypes={base:Ce.object,bodyAttributes:Ce.object,children:Ce.oneOfType([Ce.arrayOf(Ce.node),Ce.node]),defaultTitle:Ce.string,defer:Ce.bool,encodeSpecialCharacters:Ce.bool,htmlAttributes:Ce.object,link:Ce.arrayOf(Ce.object),meta:Ce.arrayOf(Ce.object),noscript:Ce.arrayOf(Ce.object),onChangeClientState:Ce.func,script:Ce.arrayOf(Ce.object),style:Ce.arrayOf(Ce.object),title:Ce.string,titleAttributes:Ce.object,titleTemplate:Ce.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Z1({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},Y_=function(){return null},G_=d_(L_,F_,Z1)(Y_),Ou=K_(G_);Ou.renderStatic=Ou.rewind;var rc="vocs_Anchor",Q_="vocs_Autolink";function Z_(e){const{pathname:t}=Re();return w.jsx("a",{...e,className:I(e.className,Q_),href:`${t}${e.href}`})}function X_(e){const{children:t,href:n}=e,{pathname:r}=Re();return t&&typeof t=="object"&&"props"in t&&t.props["data-autolink-icon"]?w.jsx(Z_,{className:I(e.className,rc),...e}):n!=null&&n.match(/^#/)?w.jsx("a",{className:I(e.className,rc),...e,href:`${r}${n}`}):w.jsx(nn,{className:I(e.className,rc),...e})}var J_="vocs_Callout_danger",q_="vocs_Callout_info",eS="vocs_Callout_note",X1="vocs_Callout",tS="vocs_Callout_success",nS="vocs_Callout_tip",rS="vocs_Callout_warning";const oS=Object.freeze(Object.defineProperty({__proto__:null,danger:J_,info:q_,note:eS,root:X1,success:tS,tip:nS,warning:rS},Symbol.toStringTag,{value:"Module"}));function iS({className:e,children:t,type:n}){return w.jsx("aside",{className:I(e,X1,oS[n]),children:t})}var aS="vocs_Aside";function lS(e){const t=I(e.className,aS);return"data-callout"in e?w.jsx(iS,{className:t,type:e["data-callout"],children:e.children}):w.jsx("aside",{...e,className:t})}var sS="vocs_Blockquote";function cS(e){return w.jsx("blockquote",{...e,className:I(e.className,sS)})}var uS="vocs_Code";function fS(e){const t=dS(e.children);return w.jsx("code",{...e,className:I(e.className,uS),children:t})}function dS(e){return Array.isArray(e)?e.map((t,n)=>{var r,o,i;return t.props&&"data-line"in t.props&&typeof t.props.children=="string"&&t.props.children.trim()===""&&((i=(o=(r=e[n+1])==null?void 0:r.props)==null?void 0:o.className)!=null&&i.includes("twoslash-tag-line"))?null:t}).filter(Boolean):e}var hS="vocs_Details";function pS(e){return w.jsx("details",{...e,className:I(e.className,hS)})}var vS="vocs_Authors_authors",mS="vocs_Authors_link",gS="vocs_Authors",Kp="vocs_Authors_separator";function J1(e){const{frontmatter:t}=kr(),{authors:n=t==null?void 0:t.authors,date:r=t==null?void 0:t.date}=e,o=h.useMemo(()=>{if(n)return Array.isArray(n)?n:n.split(",").map(a=>a.trim())},[n]),i=h.useMemo(()=>r?new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):null,[r]);return w.jsxs("div",{className:gS,children:[i,o&&(i?" by ":"By "),w.jsx("span",{className:vS,children:o==null?void 0:o.map((a,l)=>{const{text:s,url:c}=yS(a);return w.jsxs(h.Fragment,{children:[c?w.jsx("a",{className:mS,href:c,target:"_blank",rel:"noopener noreferrer",children:s}):s,lw.jsxs(h.Fragment,{children:[w.jsx("div",{className:CS,children:w.jsxs(Gn,{to:e.path,children:[w.jsx("h2",{className:SS,children:e.title}),w.jsx(J1,{authors:e.authors,date:e.date}),w.jsxs("p",{className:wS,children:[e.description," ",w.jsx("span",{className:ES,children:"[→]"})]})]})}),tw.jsxs(h.Fragment,{children:[w.jsx("div",{className:OS,children:t.name}),t.items.map((r,o)=>{var i;return w.jsx("div",{className:PS,style:Gt({[TS]:r.length.toString(),[kS]:`${((i=t.height)==null?void 0:i.toString())??"40"}px`}),children:r.map((a,l)=>w.jsx(nn,{className:I($S,a?AS:void 0),hideExternalIcon:!0,href:a==null?void 0:a.link,variant:"styleless",children:w.jsx("img",{className:RS,src:a==null?void 0:a.image,alt:a==null?void 0:a.name})},l))},o)})]},n))})}var LS="var(--vocs_AutolinkIcon_iconUrl)",MS="vocs_AutolinkIcon";function jS(e){const{basePath:t}=Je(),n=t;return w.jsx("div",{...e,className:I(e.className,MS),style:Gt({[LS]:`url(${n}/.vocs/icons/link.svg)`})})}const oc="rovingFocusGroup.onEntryFocus",DS={bubbles:!1,cancelable:!0},cd="RovingFocusGroup",[Iu,q1,FS]=Yl(cd),[zS,ey]=En(cd,[FS]),[BS,US]=zS(cd),HS=h.forwardRef((e,t)=>h.createElement(Iu.Provider,{scope:e.__scopeRovingFocusGroup},h.createElement(Iu.Slot,{scope:e.__scopeRovingFocusGroup},h.createElement(VS,Y({},e,{ref:t}))))),VS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,...f}=e,u=h.useRef(null),d=ze(t,u),p=Kl(i),[y=null,g]=rr({prop:a,defaultProp:l,onChange:s}),[C,v]=h.useState(!1),m=at(c),x=q1(n),E=h.useRef(!1),[S,_]=h.useState(0);return h.useEffect(()=>{const b=u.current;if(b)return b.addEventListener(oc,m),()=>b.removeEventListener(oc,m)},[m]),h.createElement(BS,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(b=>g(b),[g]),onItemShiftTab:h.useCallback(()=>v(!0),[]),onFocusableItemAdd:h.useCallback(()=>_(b=>b+1),[]),onFocusableItemRemove:h.useCallback(()=>_(b=>b-1),[])},h.createElement(fe.div,Y({tabIndex:C||S===0?-1:0,"data-orientation":r},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:ae(e.onMouseDown,()=>{E.current=!0}),onFocus:ae(e.onFocus,b=>{const $=!E.current;if(b.target===b.currentTarget&&$&&!C){const k=new CustomEvent(oc,DS);if(b.currentTarget.dispatchEvent(k),!k.defaultPrevented){const P=x().filter(z=>z.focusable),j=P.find(z=>z.active),L=P.find(z=>z.id===y),N=[j,L,...P].filter(Boolean).map(z=>z.ref.current);ty(N)}}E.current=!1}),onBlur:ae(e.onBlur,()=>v(!1))})))}),WS="RovingFocusGroupItem",KS=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,l=rn(),s=i||l,c=US(WS,n),f=c.currentTabStopId===s,u=q1(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return h.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),h.createElement(Iu.ItemSlot,{scope:n,id:s,focusable:r,active:o},h.createElement(fe.span,Y({tabIndex:f?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:ae(e.onMouseDown,y=>{r?c.onItemFocus(s):y.preventDefault()}),onFocus:ae(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:ae(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){c.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const g=QS(y,c.orientation,c.dir);if(g!==void 0){y.preventDefault();let v=u().filter(m=>m.focusable).map(m=>m.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const m=v.indexOf(y.currentTarget);v=c.loop?ZS(v,m+1):v.slice(m+1)}setTimeout(()=>ty(v))}})})))}),YS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function QS(e,t,n){const r=GS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return YS[r]}function ty(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ZS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const XS=HS,JS=KS,ny="Tabs",[qS,i$]=En(ny,[ey]),ry=ey(),[e9,ud]=qS(ny),t9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...c}=e,f=Kl(l),[u,d]=rr({prop:r,onChange:o,defaultProp:i});return h.createElement(e9,{scope:n,baseId:rn(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:s},h.createElement(fe.div,Y({dir:f,"data-orientation":a},c,{ref:t})))}),n9="TabsList",r9=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ud(n9,n),a=ry(n);return h.createElement(XS,Y({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),h.createElement(fe.div,Y({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),o9="TabsTrigger",i9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=ud(o9,n),l=ry(n),s=oy(a.baseId,r),c=iy(a.baseId,r),f=r===a.value;return h.createElement(JS,Y({asChild:!0},l,{focusable:!o,active:f}),h.createElement(fe.button,Y({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s},i,{ref:t,onMouseDown:ae(e.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:ae(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:ae(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})))}),a9="TabsContent",l9=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,l=ud(a9,n),s=oy(l.baseId,r),c=iy(l.baseId,r),f=r===l.value,u=h.useRef(f);return h.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),h.createElement(_n,{present:o||f},({present:d})=>h.createElement(fe.div,Y({"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:c,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0}}),d&&i))});function oy(e,t){return`${e}-trigger-${t}`}function iy(e,t){return`${e}-content-${t}`}const s9=t9,c9=r9,u9=i9,f9=l9;var d9="vocs_Tabs_content",h9="vocs_Tabs_list",p9="vocs_Tabs",v9="vocs_Tabs_trigger";function m9(e){return w.jsx(s9,{...e,className:I(e.className,p9)})}function g9(e){return w.jsx(c9,{...e,className:I(e.className,h9)})}function y9(e){return w.jsx(u9,{...e,className:I(e.className,v9)})}function w9(e){return w.jsx(f9,{...e,className:I(e.className,d9)})}var x9="vocs_CodeGroup";function C9({children:e}){if(!Array.isArray(e))return null;const t=e.map(n=>{const r=n.props["data-title"]?n:n.props.children,{props:o}=r,i=o["data-title"],a=o.children;return{title:i,content:a}});return w.jsxs(m9,{className:x9,defaultValue:t[0].title,children:[w.jsx(g9,{"aria-label":"Code group",children:t.map(({title:n},r)=>w.jsx(y9,{value:n||r.toString(),children:n},n||r.toString()))}),t.map(({title:n,content:r},o)=>{var a,l;const i=(l=(a=r.props)==null?void 0:a.className)==null?void 0:l.includes("shiki");return w.jsx(w9,{"data-shiki":i,value:n||o.toString(),children:r},n||o.toString())})]})}var E9="vocs_Div",_9="vocs_Step_content",S9="vocs_Step",ay="vocs_Step_title",b9="vocs_H2";function ly(e){return w.jsx(ko,{...e,className:I(e.className,b9),level:2})}var $9="vocs_H3";function sy(e){return w.jsx(ko,{...e,className:I(e.className,$9),level:3})}var T9="vocs_H4";function cy(e){return w.jsx(ko,{...e,className:I(e.className,T9),level:4})}var k9="vocs_H5";function uy(e){return w.jsx(ko,{...e,className:I(e.className,k9),level:5})}var R9="vocs_H6";function fy(e){return w.jsx(ko,{...e,className:I(e.className,R9),level:6})}function N9({children:e,className:t,title:n,titleLevel:r=2}){const o=(()=>{if(r===2)return ly;if(r===3)return sy;if(r===4)return cy;if(r===5)return uy;if(r===6)return fy;throw new Error("Invalid.")})();return w.jsxs("div",{className:I(t,S9),children:[typeof n=="string"?w.jsx(o,{className:ay,children:n}):n,w.jsx("div",{className:_9,children:e})]})}var P9="vocs_Steps";function A9({children:e,className:t}){return w.jsx("div",{className:I(t,P9),children:e})}function O9({children:e}){return Array.isArray(e)?w.jsx(A9,{children:e.map(({props:t},n)=>{const[r,...o]=Array.isArray(t.children)?t.children:[t.children];return w.jsx(N9,{title:h.cloneElement(r,{className:ay}),children:o},n)})}):null}var I9="vocs_Subtitle";function L9({children:e}){return w.jsx("div",{className:I9,role:"doc-subtitle",children:e})}function M9(e){const{layout:t}=Rr(),n=I(e.className,E9);return e.className==="code-group"?w.jsx(C9,{...e,className:n}):"data-authors"in e?w.jsx(J1,{}):"data-blog-posts"in e?w.jsx(bS,{}):"data-sponsors"in e?w.jsx(IS,{}):"data-autolink-icon"in e&&t==="docs"?w.jsx(jS,{...e,className:n}):"data-vocs-steps"in e?w.jsx(O9,{...e,className:n}):e.role==="doc-subtitle"?w.jsx(L9,{...e}):w.jsx("div",{...e,className:n})}var j9="vocs_Figcaption";function D9(e){const t=I(e.className,j9);return w.jsx("figcaption",{...e,className:t})}var F9="vocs_Figure";function z9(e){const t=I(e.className,F9);return w.jsx("figure",{...e,className:t})}var B9="vocs_Header";function U9(e){return w.jsx("header",{...e,className:I(e.className,B9)})}var H9="vocs_HorizontalRule";function V9(e){return w.jsx("hr",{...e,className:I(e.className,H9)})}var W9="vocs_List_ordered",K9="vocs_List",Y9="vocs_List_unordered";function Gp({ordered:e,...t}){const n=e?"ol":"ul";return w.jsx(n,{...t,className:I(t.className,K9,e?W9:Y9)})}var G9="vocs_ListItem";function Q9(e){return w.jsx("li",{...e,className:I(e.className,G9)})}function Z9(){const e=h.useRef(null),[t,n]=h.useState(!1);h.useEffect(()=>{if(!t)return;const o=setTimeout(()=>n(!1),1e3);return()=>clearTimeout(o)},[t]);function r(){var a;n(!0);const o=(a=e.current)==null?void 0:a.cloneNode(!0),i=o==null?void 0:o.querySelectorAll("button,.line.diff.remove,.twoslash-popup-info-hover,.twoslash-popup-info,.twoslash-meta-line,.twoslash-tag-line");for(const l of i??[])l.remove();navigator.clipboard.writeText(o==null?void 0:o.textContent)}return{copied:t,copy:r,ref:e}}var X9="vocs_CopyButton";function J9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 68 67",children:[w.jsx("title",{children:"Checkmark"}),w.jsx("path",{fill:"currentColor",d:"M26.175 66.121c1.904 0 3.418-.83 4.492-2.49L66.263 7.332c.83-1.27 1.123-2.295 1.123-3.32 0-2.393-1.563-4.004-4.004-4.004-1.758 0-2.734.586-3.809 2.295L25.98 56.209 8.304 32.381c-1.123-1.514-2.198-2.149-3.809-2.149-2.441 0-4.2 1.71-4.2 4.15 0 1.026.44 2.15 1.27 3.224l19.971 25.927c1.367 1.758 2.734 2.588 4.639 2.588Z"})]})}function q9(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 82",children:[w.jsx("title",{children:"Copy"}),w.jsx("path",{fill:"currentColor",d:"M12.451 63.281h38.38c8.3 0 12.45-4.053 12.45-12.256v-38.77C63.281 4.054 59.131 0 50.831 0H12.45C4.101 0 0 4.053 0 12.256v38.77C0 59.227 4.102 63.28 12.451 63.28Zm.098-7.031c-3.516 0-5.518-1.904-5.518-5.615V12.647c0-3.711 2.002-5.616 5.518-5.616h38.183c3.516 0 5.518 1.905 5.518 5.615v37.989c0 3.71-2.002 5.615-5.518 5.615H12.55Z"}),w.jsx("path",{stroke:"currentColor",strokeWidth:"6.75px",d:"M69.385 78.266h-38.38c-3.679 0-5.782-.894-6.987-2.081-1.196-1.178-2.088-3.219-2.088-6.8v-38.77c0-3.581.892-5.622 2.088-6.8 1.205-1.187 3.308-2.08 6.988-2.08h38.379c3.65 0 5.758.89 6.973 2.084 1.203 1.182 2.103 3.225 2.103 6.796v38.77c0 3.57-.9 5.614-2.103 6.796-1.215 1.193-3.323 2.085-6.973 2.085Z"})]})}function eb({copy:e,copied:t}){return w.jsx("button",{className:X9,onClick:e,type:"button",children:t?w.jsx(st,{label:"Copied",size:"14px",icon:J9}):w.jsx(st,{label:"Copy",size:"18px",icon:q9})})}var tb="vocs_CodeBlock";function nb(e){return w.jsx("div",{...e,className:I(e.className,tb)})}function rb(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 94 99",fill:"none",children:[w.jsx("title",{children:"File"}),w.jsx("rect",{width:"77px",height:"89px",x:"8px",y:"3px",stroke:"currentColor",strokeWidth:"6px",rx:"7px"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"6px",d:"M25 22h43M25 35h43M25 48h22"})]})}function ob(){return w.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 79 95",fill:"none",children:[w.jsx("title",{children:"Terminal"}),w.jsx("path",{fill:"currentColor",d:"M38.281 34.033c0-1.074-.39-2.05-1.22-2.88L6.885 1.171C6.152.39 5.175 0 4.053 0 1.758 0 0 1.709 0 4.004c0 1.074.488 2.1 1.172 2.88l27.295 27.15L1.172 61.181C.488 61.962 0 62.939 0 64.062c0 2.295 1.758 4.004 4.053 4.004 1.123 0 2.1-.39 2.832-1.172l30.176-29.98c.83-.83 1.22-1.807 1.22-2.88Z"}),w.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8px",d:"M36 75h55"})]})}var ib="vocs_CodeTitle";function ab({children:e,className:t,language:n,...r}){return w.jsxs("div",{...r,className:I(t,ib),children:[n==="bash"?w.jsx(st,{label:"Terminal",size:"14px",icon:ob,style:{marginTop:3}}):e.match(/\.(.*)$/)?w.jsx(st,{label:"File",size:"14px",icon:rb,style:{marginTop:1}}):null,e]})}var lb="vocs_Pre",sb="vocs_Pre_wrapper";function cb({children:e,className:t,...n}){const{copied:r,copy:o,ref:i}=Z9();function a(c){return!c||typeof c!="object"?c:"props"in c?{...c,props:{...c.props,children:Array.isArray(c.props.children)?c.props.children.map(a):a(c.props.children)}}:c}const l=h.useMemo(()=>a(e),[e]);return(c=>t!=null&&t.includes("shiki")?w.jsxs(nb,{children:[n["data-title"]&&w.jsx(ab,{language:n["data-lang"],children:n["data-title"]}),c]}):c)(w.jsx("div",{className:I(sb),children:w.jsxs("pre",{ref:i,...n,className:I(t,lb),children:["data-language"in n&&w.jsx(eb,{copied:r,copy:o}),l]})}))}var ub="vocs_Footnotes";function fb(e){return w.jsx("section",{...e,className:I(e.className,ub)})}var Qp="vocs_Section";function db(e){return"data-footnotes"in e?w.jsx(fb,{...e,className:I(e.className,Qp)}):w.jsx("section",{...e,className:I(e.className,Qp)})}var Zp="vocs_Span";function Wa(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Lu(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ta(e){return(e==null?void 0:e.ownerDocument)||document}function hb(e){return"composedPath"in e?e.composedPath()[0]:e.target}const pb=$l.useInsertionEffect,vb=pb||(e=>e());function mb(e){const t=h.useRef(()=>{});return vb(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o"floating-ui-"+gb++;function yb(){const[e,t]=h.useState(()=>ic?Xp():void 0);return Mi(()=>{e==null&&t(Xp())},[]),h.useEffect(()=>{ic||(ic=!0)},[]),e}const wb=$l.useId,dy=wb||yb,xb=h.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:a=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:f,stroke:u,d,style:{transform:p,...y}={},...g}=t,C=dy();if(!o)return null;const v=c*2,m=v/2,x=a/2*(s/-8+1),E=l/2*s/4,[S,_]=r.split("-"),b=y1.isRTL(o),$=!!d,k=S==="top"||S==="bottom",P=f&&_==="end"?"bottom":"top";let j=f&&_==="end"?"right":"left";f&&b&&(j=_==="end"?"left":"right");const L=(i==null?void 0:i.x)!=null?f||i.x:"",D=(i==null?void 0:i.y)!=null?f||i.y:"",N=d||"M0,0"+(" H"+a)+(" L"+(a-x)+","+(l-E))+(" Q"+a/2+","+l+" "+x+","+(l-E))+" Z",z={top:$?"rotate(180deg)":"",left:$?"rotate(90deg)":"rotate(-90deg)",bottom:$?"":"rotate(180deg)",right:$?"rotate(-90deg)":"rotate(90deg)"}[S];return h.createElement("svg",Mu({},g,{"aria-hidden":!0,ref:n,width:$?a:a+v,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[j]:L,[P]:D,[S]:k||$?"100%":"calc(100% - "+v/2+"px)",transform:""+z+(p??""),...y}}),v>0&&h.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:u,strokeWidth:v+(d?0:1),d:N}),h.createElement("path",{stroke:v&&!d?g.fill:"none",d:N}),h.createElement("clipPath",{id:C},h.createElement("rect",{x:-m,y:m*($?-1:1),width:a+v,height:a})))});function Cb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Eb=h.createContext(null),_b=h.createContext(null),hy=()=>{var e;return((e=h.useContext(Eb))==null?void 0:e.id)||null},py=()=>h.useContext(_b);function Sb(e){return"data-floating-ui-"+e}function Jp(e){const t=h.useRef(e);return Mi(()=>{t.current=e}),t}const qp=Sb("safe-polygon");function ac(e,t,n){return n&&!Lu(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function bb(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:c=!0,delay:f=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:y=!0}=t,g=py(),C=hy(),v=Jp(u),m=Jp(f),x=h.useRef(),E=h.useRef(),S=h.useRef(),_=h.useRef(),b=h.useRef(!0),$=h.useRef(!1),k=h.useRef(()=>{}),P=h.useCallback(()=>{var N;const z=(N=o.current.openEvent)==null?void 0:N.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[o]);h.useEffect(()=>{if(!c)return;function N(z){let{open:V}=z;V||(clearTimeout(E.current),clearTimeout(_.current),b.current=!0)}return i.on("openchange",N),()=>{i.off("openchange",N)}},[c,i]),h.useEffect(()=>{if(!c||!v.current||!n)return;function N(V){P()&&r(!1,V,"hover")}const z=Ta(l).documentElement;return z.addEventListener("mouseleave",N),()=>{z.removeEventListener("mouseleave",N)}},[l,n,r,c,v,P]);const j=h.useCallback(function(N,z,V){z===void 0&&(z=!0),V===void 0&&(V="hover");const U=ac(m.current,"close",x.current);U&&!S.current?(clearTimeout(E.current),E.current=setTimeout(()=>r(!1,N,V),U)):z&&(clearTimeout(E.current),r(!1,N,V))},[m,r]),L=h.useCallback(()=>{k.current(),S.current=void 0},[]),D=h.useCallback(()=>{if($.current){const N=Ta(s.floating.current).body;N.style.pointerEvents="",N.removeAttribute(qp),$.current=!1}},[s]);return h.useEffect(()=>{if(!c)return;function N(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function z(O){if(clearTimeout(E.current),b.current=!1,d&&!Lu(x.current)||p>0&&ac(m.current,"open")===0)return;const F=ac(m.current,"open",x.current);F?E.current=setTimeout(()=>{r(!0,O,"hover")},F):r(!0,O,"hover")}function V(O){if(N())return;k.current();const F=Ta(l);if(clearTimeout(_.current),v.current){n||clearTimeout(E.current),S.current=v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O,!0,"safe-polygon")}});const J=S.current;F.addEventListener("mousemove",J),k.current=()=>{F.removeEventListener("mousemove",J)};return}(x.current==="touch"?!Wa(l,O.relatedTarget):!0)&&j(O)}function U(O){N()||v.current==null||v.current({...e,tree:g,x:O.clientX,y:O.clientY,onClose(){D(),L(),j(O)}})(O)}if(nt(a)){const O=a;return n&&O.addEventListener("mouseleave",U),l==null||l.addEventListener("mouseleave",U),y&&O.addEventListener("mousemove",z,{once:!0}),O.addEventListener("mouseenter",z),O.addEventListener("mouseleave",V),()=>{n&&O.removeEventListener("mouseleave",U),l==null||l.removeEventListener("mouseleave",U),y&&O.removeEventListener("mousemove",z),O.removeEventListener("mouseenter",z),O.removeEventListener("mouseleave",V)}}},[a,l,c,e,d,p,y,j,L,D,r,n,g,m,v,o]),Mi(()=>{var N;if(c&&n&&(N=v.current)!=null&&N.__options.blockPointerEvents&&P()){const V=Ta(l).body;if(V.setAttribute(qp,""),V.style.pointerEvents="none",$.current=!0,nt(a)&&l){var z;const U=a,O=g==null||(z=g.nodesRef.current.find(F=>F.id===C))==null||(z=z.context)==null?void 0:z.elements.floating;return O&&(O.style.pointerEvents=""),U.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{U.style.pointerEvents="",l.style.pointerEvents=""}}}},[c,n,C,l,a,g,v,P]),Mi(()=>{n||(x.current=void 0,L(),D())},[n,L,D]),h.useEffect(()=>()=>{L(),clearTimeout(E.current),clearTimeout(_.current),D()},[c,a,L,D]),h.useMemo(()=>{if(!c)return{};function N(z){x.current=z.pointerType}return{reference:{onPointerDown:N,onPointerEnter:N,onMouseMove(z){function V(){b.current||r(!0,z.nativeEvent,"hover")}d&&!Lu(x.current)||n||p===0||(clearTimeout(_.current),x.current==="touch"?V():_.current=setTimeout(V,p))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(z){j(z.nativeEvent,!1)}}}},[c,d,n,p,r,j])}function $b(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}function Tb(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=h.useState(null),l=((t=e.elements)==null?void 0:t.reference)||i,s=E1(e),c=py(),f=hy()!=null,u=mb((S,_,b)=>{S&&(p.current.openEvent=_),y.emit("openchange",{open:S,event:_,reason:b,nested:f}),r==null||r(S,_,b)}),d=h.useRef(null),p=h.useRef({}),y=h.useState(()=>Cb())[0],g=dy(),C=h.useCallback(S=>{const _=nt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;s.refs.setReference(_)},[s.refs]),v=h.useCallback(S=>{(nt(S)||S===null)&&(d.current=S,a(S)),(nt(s.refs.reference.current)||s.refs.reference.current===null||S!==null&&!nt(S))&&s.refs.setReference(S)},[s.refs]),m=h.useMemo(()=>({...s.refs,setReference:v,setPositionReference:C,domReference:d}),[s.refs,v,C]),x=h.useMemo(()=>({...s.elements,domReference:l}),[s.elements,l]),E=h.useMemo(()=>({...s,refs:m,elements:x,dataRef:p,nodeId:o,floatingId:g,events:y,open:n,onOpenChange:u}),[s,o,g,y,n,u,m,x]);return Mi(()=>{const S=c==null?void 0:c.nodesRef.current.find(_=>_.id===o);S&&(S.context=E)}),h.useMemo(()=>({...s,context:E,refs:m,elements:x}),[s,m,x,E])}const ev="active",tv="selected";function lc(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[ev]:a,[tv]:l,...s}=e;i=s}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[c,f]=s;if(!(o&&[ev,tv].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof f=="function"){var u;(u=r.get(c))==null||u.push(f),a[c]=function(){for(var d,p=arguments.length,y=new Array(p),g=0;gC(...y)).find(C=>C!==void 0)}}}else a[c]=f}),a),{})}}function kb(e){e===void 0&&(e=[]);const t=e,n=h.useCallback(i=>lc(i,e,"reference"),t),r=h.useCallback(i=>lc(i,e,"floating"),t),o=h.useCallback(i=>lc(i,e,"item"),e.map(i=>i==null?void 0:i.item));return h.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}function nv(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=r!=u>=r&&n<=(f-s)*(r-c)/(u-c)+s&&(o=!o)}return o}function Rb(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Nb(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();function c(u,d){const p=performance.now(),y=p-s;if(a===null||l===null||y===0)return a=u,l=d,s=p,null;const g=u-a,C=d-l,m=Math.sqrt(g*g+C*C)/y;return a=u,l=d,s=p,m}const f=u=>{let{x:d,y:p,placement:y,elements:g,onClose:C,nodeId:v,tree:m}=u;return function(E){function S(){clearTimeout(o),C()}if(clearTimeout(o),!g.domReference||!g.floating||y==null||d==null||p==null)return;const{clientX:_,clientY:b}=E,$=[_,b],k=hb(E),P=E.type==="mouseleave",j=Wa(g.floating,k),L=Wa(g.domReference,k),D=g.domReference.getBoundingClientRect(),N=g.floating.getBoundingClientRect(),z=y.split("-")[0],V=d>N.right-N.width/2,U=p>N.bottom-N.height/2,O=Rb($,D),F=N.width>D.width,K=N.height>D.height,J=(F?D:N).left,se=(F?D:N).right,Be=(K?D:N).top,ye=(K?D:N).bottom;if(j&&(i=!0,!P))return;if(L&&(i=!1),L&&!P){i=!0;return}if(P&&nt(E.relatedTarget)&&Wa(g.floating,E.relatedTarget)||m&&$b(m.nodesRef.current,v).some(Ue=>{let{context:xe}=Ue;return xe==null?void 0:xe.open}))return;if(z==="top"&&p>=D.bottom-1||z==="bottom"&&p<=D.top+1||z==="left"&&d>=D.right-1||z==="right"&&d<=D.left+1)return S();let Ne=[];switch(z){case"top":Ne=[[J,D.top+1],[J,N.bottom-1],[se,N.bottom-1],[se,D.top+1]];break;case"bottom":Ne=[[J,N.top+1],[J,D.bottom-1],[se,D.bottom-1],[se,N.top+1]];break;case"left":Ne=[[N.right-1,ye],[N.right-1,Be],[D.left+1,Be],[D.left+1,ye]];break;case"right":Ne=[[D.right-1,ye],[D.right-1,Be],[N.left+1,Be],[N.left+1,ye]];break}function we(Ue){let[xe,Se]=Ue;switch(z){case"top":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se+t+1],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se+t+1],ft=[[N.left,V||F?N.bottom-t:N.top],[N.right,V?F?N.bottom-t:N.top:N.bottom-t]];return[jt,be,...ft]}case"bottom":{const jt=[F?xe+t/2:V?xe+t*4:xe-t*4,Se-t],be=[F?xe-t/2:V?xe+t*4:xe-t*4,Se-t],ft=[[N.left,V||F?N.top+t:N.bottom],[N.right,V?F?N.top+t:N.bottom:N.top+t]];return[jt,be,...ft]}case"left":{const jt=[xe+t+1,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe+t+1,K?Se-t/2:U?Se+t*4:Se-t*4];return[...[[U||K?N.right-t:N.left,N.top],[U?K?N.right-t:N.left:N.right-t,N.bottom]],jt,be]}case"right":{const jt=[xe-t,K?Se+t/2:U?Se+t*4:Se-t*4],be=[xe-t,K?Se-t/2:U?Se+t*4:Se-t*4],ft=[[U||K?N.left+t:N.right,N.top],[U?K?N.left+t:N.right:N.left+t,N.bottom]];return[jt,be,...ft]}}}if(!nv([_,b],Ne)){if(i&&!O)return S();if(!P&&r){const Ue=c(E.clientX,E.clientY);if(Ue!==null&&Ue<.1)return S()}nv([_,b],we([d,p]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function Pb({children:e,...t}){const[n,r]=e,o=h.useRef(null),[i,a]=h.useState(!1),{context:l,refs:s,floatingStyles:c}=Tb({middleware:[x1({element:o}),c1(8),w1()],open:i,onOpenChange:a,placement:"bottom-start"}),f=bb(l,{handleClose:Nb()}),{getReferenceProps:u,getFloatingProps:d}=kb([f]),p=r.props.children,y=n.props.children;return w.jsxs("span",{...t,children:[w.jsx("span",{className:"twoslash-target",ref:s.setReference,...u(),children:p}),i&&w.jsxs("div",{className:"twoslash-popup-info-hover",ref:s.setFloating,style:c,...d(),children:[w.jsx(xb,{ref:o,context:l,fill:Gh.background5,height:3,stroke:Gh.border2,strokeWidth:1,width:7}),w.jsx("div",{className:"twoslash-popup-scroll-container",children:y})]})]})}function Ab(e){var n;const t=I(e.className,Zp);return(n=e.className)!=null&&n.includes("twoslash-hover")?w.jsx(Pb,{...e,className:t}):w.jsx("span",{...e,className:I(e.className,Zp)})}var Ob="vocs_CalloutTitle";function Ib({className:e,children:t}){return w.jsx("strong",{className:I(e,Ob),children:t})}var rv="vocs_Strong";function Lb(e){return"data-callout-title"in e&&typeof e.children=="string"?w.jsx(Ib,{...e,className:I(e.className,rv),children:e.children}):w.jsx("strong",{...e,className:I(e.className,rv)})}var Mb="vocs_Summary";function jb(e){return w.jsx("summary",{...e,className:I(e.className,Mb)})}var Db="vocs_Table";function Fb(e){return w.jsx("table",{...e,className:I(e.className,Db)})}var zb="vocs_TableCell";function Bb(e){return w.jsx("td",{...e,className:I(e.className,zb)})}var Ub="vocs_TableHeader";function Hb(e){return w.jsx("th",{...e,className:I(e.className,Ub)})}var Vb="vocs_TableRow";function Wb(e){return w.jsx("tr",{...e,className:I(e.className,Vb)})}const Kb={a:X_,aside:lS,blockquote:cS,code:fS,details:pS,div:M9,pre:cb,header:U9,figcaption:D9,figure:z9,h1:W0,h2:ly,h3:sy,h4:cy,h5:uy,h6:fy,hr:V9,kd:Rg,li:Q9,ol:e=>w.jsx(Gp,{ordered:!0,...e}),p:K0,section:db,span:Ab,strong:Lb,summary:jb,table:Fb,td:Bb,th:Hb,tr:Wb,ul:e=>w.jsx(Gp,{ordered:!1,...e})};function Yb(){const{pathname:e}=Re(),t=Je(),{ogImageUrl:n}=t;if(!n)return;if(typeof n=="string")return n;const r=h.useMemo(()=>{const o=Object.keys(n).filter(i=>e.startsWith(i));return o[o.length-1]},[n,e]);if(r)return n[r]}function ju(e){const{children:t,filePath:n,frontmatter:r,lastUpdatedAt:o,path:i}=e,{pathname:a}=Re(),l=h.useRef();return h.useEffect(()=>{l.current=a}),w.jsxs(w.Fragment,{children:[w.jsx(Gb,{frontmatter:r}),typeof window<"u"&&w.jsx(wx,{}),w.jsx(e_,{components:Kb,children:w.jsx(M7,{frontmatter:r,path:i,children:w.jsx(Q0.Provider,{value:{filePath:n,frontmatter:r,lastUpdatedAt:o,previousPath:l.current},children:t})})})]})}function Gb({frontmatter:e}){const t=Je(),n=Yb(),{baseUrl:r,font:o,iconUrl:i,logoUrl:a}=t,l=(e==null?void 0:e.title)??t.title,s=(e==null?void 0:e.description)??t.description,c=t.title&&!l.includes(t.title),f=typeof window<"u"&&window.location.hostname==="localhost";return w.jsxs(Ou,{defaultTitle:t.title,titleTemplate:c?t.titleTemplate:void 0,children:[l&&w.jsx("title",{children:l}),r&&!0&&!f&&w.jsx("base",{href:r}),s!=="undefined"&&w.jsx("meta",{name:"description",content:s}),i&&typeof i=="string"&&w.jsx("link",{rel:"icon",href:i,type:sc(i)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.light,type:sc(i.light)}),i&&typeof i!="string"&&w.jsx("link",{rel:"icon",href:i.dark,type:sc(i.dark),media:"(prefers-color-scheme: dark)"}),w.jsx("meta",{property:"og:type",content:"website"}),w.jsx("meta",{property:"og:title",content:l||t.title}),r&&w.jsx("meta",{property:"og:url",content:r}),s!=="undefined"&&w.jsx("meta",{property:"og:description",content:s}),n&&w.jsx("meta",{property:"og:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(o==null?void 0:o.google)&&w.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(o==null?void 0:o.google)&&w.jsx("link",{href:`https://fonts.googleapis.com/css2?family=${o.google}:wght@300;400;500&display=swap`,rel:"stylesheet"}),w.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),n&&w.jsx("meta",{property:"twitter:image",content:n.replace("%logo",`${r||""}${typeof a=="string"?a:(a==null?void 0:a.dark)||""}`).replace("%title",l||"").replace("%description",(s!=="undefined"?s:"")||"")})]})}function sc(e){if(e.endsWith(".svg"))return"image/svg+xml";if(e.endsWith(".png"))return"image/png";if(e.endsWith(".jpg"))return"image/jpeg";if(e.endsWith(".ico"))return"image/x-icon";if(e.endsWith(".webp"))return"image/webp"}const Qb=(()=>{const e=Bf.find(({path:t})=>t==="*");return e?{path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(ju,{frontmatter:t,path:e.path,children:w.jsx(ku,{children:w.jsx(n.default,{})})})}}}:{path:"*",lazy:void 0,element:w.jsx(ju,{frontmatter:{layout:"minimal"},path:"*",children:w.jsx(ku,{children:w.jsx(Wx,{})})})}})(),ov=[...Bf.filter(({path:e})=>e!=="*").map(e=>({path:e.path,lazy:async()=>{const{frontmatter:t,...n}=await e.lazy();return{...n,element:w.jsx(ju,{filePath:e.filePath,frontmatter:t,lastUpdatedAt:e.lastUpdatedAt,path:e.path,children:w.jsx(ku,{children:w.jsx(n.default,{})})})}}})),Qb];async function Zb(e,t){var r;const n=(r=ur(e,window.location,t))==null?void 0:r.filter(o=>o.route.lazy);n&&(n==null?void 0:n.length)>0&&await Promise.all(n.map(async o=>{const i=await o.route.lazy();Object.assign(o.route,{...i,lazy:void 0})}))}function Xb(){const e=document.querySelectorAll('style[data-vocs-temp-style="true"]');for(const t of e)t.remove()}Jb();async function Jb(){const e=F0().basePath;await Zb(ov,e),Xb();const t=ax(ov,{basename:e});w0(document.getElementById("app"),w.jsx(bx,{children:w.jsx(vx,{router:t})}))}export{s9 as $,w9 as C,nn as L,m9 as R,y9 as T,c9 as a,u9 as b,f9 as c,I as d,Je as e,z6 as f,g9 as g,w as j,qE as u}; diff --git a/assets/polkadot_api-BqB0NIyl.js b/assets/polkadot_api-Bu6KXQAr.js similarity index 89% rename from assets/polkadot_api-BqB0NIyl.js rename to assets/polkadot_api-Bu6KXQAr.js index e1d3143e..52d6e7e2 100644 --- a/assets/polkadot_api-BqB0NIyl.js +++ b/assets/polkadot_api-Bu6KXQAr.js @@ -1,2 +1,2 @@ -import{u as a,j as t}from"./index-Cembn_Rf.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as a,j as t}from"./index-CPfmyVul.js";const i={title:"Polkadot-API",description:"undefined"};function o(n){const e={a:"a",div:"div",h1:"h1",header:"header",p:"p",...a(),...n.components};return t.jsxs(t.Fragment,{children:[t.jsx(e.header,{children:t.jsxs(e.h1,{id:"polkadot-api",children:["Polkadot-API",t.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#polkadot-api",children:t.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,t.jsx(e.p,{children:"polkadot-api"})]})}function r(n={}){const{wrapper:e}={...a(),...n.components};return e?t.jsx(e,{...n,children:t.jsx(o,{...n})}):o(n)}export{r as default,i as frontmatter}; diff --git a/assets/providers-Cq8CUOwa.js b/assets/providers-Cq8CUOwa.js deleted file mode 100644 index cd0d5a35..00000000 --- a/assets/providers-Cq8CUOwa.js +++ /dev/null @@ -1,2 +0,0 @@ -import{u as d,j as e}from"./index-Cembn_Rf.js";const o={title:"Providers",description:"undefined"};function t(r){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...d(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"providers",children:["Providers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` -`,e.jsx(n.p,{children:"providers"})]})}function s(r={}){const{wrapper:n}={...d(),...r.components};return n?e.jsx(n,{...r,children:e.jsx(t,{...r})}):t(r)}export{s as default,o as frontmatter}; diff --git a/assets/providers-DaLRH4Xq.js b/assets/providers-DaLRH4Xq.js new file mode 100644 index 00000000..3162fd13 --- /dev/null +++ b/assets/providers-DaLRH4Xq.js @@ -0,0 +1,37 @@ +import{u as l,j as s}from"./index-CPfmyVul.js";const o={title:"Providers",description:"undefined"};function r(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",span:"span",ul:"ul",...l(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"providers",children:["Providers",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#providers",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +`,s.jsxs(e.p,{children:["The entry point of Polkadot-API, ",s.jsx(e.code,{children:"createClient(provider)"})," requires one ",s.jsx(e.code,{children:"JsonRpcProvider"}),", which lets Polkadot-API communicate with a node. It's a function with the following shape:"]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"onMessage"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"interface"}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" JsonRpcConnection"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" send"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"message"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" disconnect"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" () "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" void"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]})}),` +`,s.jsxs(e.p,{children:["Calling it will initiate a connection. Messages coming from the service will come through the ",s.jsx(e.code,{children:"onMessage"})," call, and the returned connection handle can be used to send messages or terminate the connection."]}),` +`,s.jsx(e.p,{children:"Polkadot-API offers a couple of providers for some of the most used ways of connecting to a chain:"}),` +`,s.jsxs(e.ul,{children:[` +`,s.jsxs(e.li,{children:[s.jsx(e.code,{children:"WebSocketProvider(uri: string)"})," from ",s.jsx(e.code,{children:"polkadot-api/ws-provider/web"})," or ",s.jsx(e.code,{children:"polkadot-api/ws-provider/node"})," to connect through WebSocket."]}),` +`,s.jsxs(e.li,{children:[s.jsx(e.code,{children:"getSmProvider(chain: smoldot.Chain)"})," from ",s.jsx(e.code,{children:"polkadot-api/sm-provider"})," to connect through Smoldot."]}),` +`]}),` +`,s.jsxs(e.p,{children:["The ",s.jsx(e.code,{children:"JsonRpcProvider"})," interface is designed so that it can be easily enhanced: You can wrap any JsonRpcProvider with another one that adds in more features, such as logging, statistics, or error recovery."]}),` +`,s.jsxs(e.h2,{id:"logs-provider",children:["Logs provider",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#logs-provider",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` +`,s.jsxs(e.p,{children:["Polkadot-API has a subpackage ",s.jsx(e.code,{children:"polkadot-api/logs-provider"})," that can be used to create a provider that will replay node messages from a log file (",s.jsx(e.code,{children:"logsProvider"}),"), along with a provider enhancer that can be used to generate the logs consumed by ",s.jsx(e.code,{children:"logsProvider"}),": ",s.jsx(e.code,{children:"withLogsRecorder"}),"."]}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// 1. recording logs"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { createClient } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" 'polkadot-api'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { withLogsRecorder } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" 'polkadot-api/logs-provider'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { WebSocketProvider } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" 'polkadot-api/ws-provider/node'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" wsProvider"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" WebSocketProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"wss://example.url"'}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:");"})]}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// Using console.log to output each line, but you could e.g. write it directly to a"})}),` +`,s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// file or push into an array"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" provider"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" withLogsRecorder"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(e.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"line"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" =>"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" console."}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"log"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(line), wsProvider);"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" client"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" createClient"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(provider);"})]})]})}),` +`,s.jsx(e.pre,{className:"shiki shiki-themes github-light github-dark-dimmed",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(e.code,{children:[s.jsx(e.span,{className:"line",children:s.jsx(e.span,{style:{color:"#6A737D","--shiki-dark":"#768390"},children:"// 2. replaying logs"})}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { createClient } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" 'polkadot-api'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { logsProvider } "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" 'polkadot-api/logs-provider'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" logs "}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsx(e.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:" './readLogs'"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),` +`,s.jsx(e.span,{className:"line","data-empty-line":!0,children:" "}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" provider"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" logsProvider"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(logs);"})]}),` +`,s.jsxs(e.span,{className:"line",children:[s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(e.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" client"}),s.jsx(e.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(e.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" createClient"}),s.jsx(e.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(provider);"})]})]})}),` +`,s.jsx(e.p,{children:"This can be useful to debug specific scenarios without needing to depend on an external source."})]})}function a(i={}){const{wrapper:e}={...l(),...i.components};return e?s.jsx(e,{...i,children:s.jsx(r,{...i})}):r(i)}export{a as default,o as frontmatter}; diff --git a/assets/signers-DgDQ9EFK.js b/assets/signers-_26ZosNc.js similarity index 89% rename from assets/signers-DgDQ9EFK.js rename to assets/signers-_26ZosNc.js index 76120a56..2ad8feae 100644 --- a/assets/signers-DgDQ9EFK.js +++ b/assets/signers-_26ZosNc.js @@ -1,2 +1,2 @@ -import{u as s,j as e}from"./index-Cembn_Rf.js";const d={title:"Signers",description:"undefined"};function r(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"signers",children:["Signers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` +import{u as s,j as e}from"./index-CPfmyVul.js";const d={title:"Signers",description:"undefined"};function r(t){const n={a:"a",div:"div",h1:"h1",header:"header",p:"p",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(n.header,{children:e.jsxs(n.h1,{id:"signers",children:["Signers",e.jsx(n.a,{"aria-hidden":"true",tabIndex:"-1",href:"#signers",children:e.jsx(n.div,{"data-autolink-icon":!0})})]})}),` `,e.jsx(n.p,{children:"signers"})]})}function a(t={}){const{wrapper:n}={...s(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(r,{...t})}):r(t)}export{a as default,d as frontmatter}; diff --git a/assets/types-B4PNqYsG.js b/assets/types-DRhQjL5W.js similarity index 99% rename from assets/types-B4PNqYsG.js rename to assets/types-DRhQjL5W.js index 1dc06a17..54a582a8 100644 --- a/assets/types-B4PNqYsG.js +++ b/assets/types-DRhQjL5W.js @@ -1,4 +1,4 @@ -import{u as n,j as s}from"./index-Cembn_Rf.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` +import{u as n,j as s}from"./index-CPfmyVul.js";const a={title:"Types",description:"undefined"};function l(i){const e={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",...n(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(e.header,{children:s.jsxs(e.h1,{id:"types",children:["Types",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#types",children:s.jsx(e.div,{"data-autolink-icon":!0})})]})}),` `,s.jsx(e.p,{children:"All the types defined in the metadata of a chain are anonymous: They represent the structure of the data, down to the primitive types."}),` `,s.jsx(e.p,{children:"Polkadot-API has some types defined that make it easier working with chain data."}),` `,s.jsxs(e.h2,{id:"ss58string",children:["SS58String",s.jsx(e.a,{"aria-hidden":"true",tabIndex:"-1",href:"#ss58string",children:s.jsx(e.div,{"data-autolink-icon":!0})})]}),` diff --git a/codegen/index.html b/codegen/index.html index 0d9470d2..806000a8 100644 --- a/codegen/index.html +++ b/codegen/index.html @@ -12,7 +12,7 @@ - + diff --git a/examples/example/index.html b/examples/example/index.html index 0d9470d2..806000a8 100644 --- a/examples/example/index.html +++ b/examples/example/index.html @@ -12,7 +12,7 @@ - + diff --git a/getting-started/index.html b/getting-started/index.html index 0d9470d2..806000a8 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -12,7 +12,7 @@ - + diff --git a/index.html b/index.html index 0d9470d2..806000a8 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + diff --git a/providers/index.html b/providers/index.html index 0d9470d2..806000a8 100644 --- a/providers/index.html +++ b/providers/index.html @@ -12,7 +12,7 @@ - + diff --git a/signers/index.html b/signers/index.html index 0d9470d2..806000a8 100644 --- a/signers/index.html +++ b/signers/index.html @@ -12,7 +12,7 @@ - + diff --git a/types/index.html b/types/index.html index 0d9470d2..806000a8 100644 --- a/types/index.html +++ b/types/index.html @@ -12,7 +12,7 @@ - +