From 4156fa19c28d8bbf116f203a2033d1e423c037ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 12:50:19 +0000 Subject: [PATCH] Deploy to GitHub pages --- .nojekyll | 0 404.html | 1 + CNAME | 1 + _next/static/chunks/671-788ebd3133fb7cda.js | 26 +++++ .../chunks/framework-80f87b89e91be76a.js | 33 +++++++ _next/static/chunks/main-0d48b57a0946c2e8.js | 1 + _next/static/chunks/nextra-data-en-US.json | 1 + .../chunks/pages/_app-630f98d7cb8037e1.js | 1 + .../chunks/pages/_error-525d78e64c39aa3c.js | 1 + .../chunks/pages/data-bb35b738cf73fe15.js | 1 + .../pages/getting-started-db86950dfa52408f.js | 1 + .../chunks/pages/index-799ca9cb2690909b.js | 1 + .../chunks/pages/mapping-65fb7ae2df119e7e.js | 1 + .../chunks/polyfills-c67a75d1b6f99dc8.js | 1 + .../static/chunks/webpack-36d12a75f0098f30.js | 1 + _next/static/css/54fde772ad89017e.css | 1 + _next/static/css/b868ea80de3e4525.css | 3 + .../oT6g0tFg3boTpbdAqi5ZJ/_buildManifest.js | 1 + .../oT6g0tFg3boTpbdAqi5ZJ/_ssgManifest.js | 1 + assets/ISO-639-dark.jpg | Bin 0 -> 15980 bytes assets/ISO-639-light.jpg | Bin 0 -> 15590 bytes assets/ISO-639.jpg | Bin 0 -> 23967 bytes assets/img/feature-cdn.jpg | Bin 0 -> 25715 bytes assets/img/feature-json.jpg | Bin 0 -> 8565 bytes assets/img/feature-mapping.jpg | Bin 0 -> 27376 bytes assets/img/feature-standard.jpg | Bin 0 -> 41322 bytes assets/img/feature-wikipedia.jpg | Bin 0 -> 29543 bytes assets/logo.png | Bin 0 -> 8225 bytes data.html | 38 ++++++++ favicon-dark.ico | Bin 0 -> 4286 bytes favicon.ico | Bin 0 -> 4286 bytes getting-started.html | 21 +++++ index.html | 15 +++ mapping.html | 89 ++++++++++++++++++ 34 files changed, 240 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 CNAME create mode 100644 _next/static/chunks/671-788ebd3133fb7cda.js create mode 100644 _next/static/chunks/framework-80f87b89e91be76a.js create mode 100644 _next/static/chunks/main-0d48b57a0946c2e8.js create mode 100644 _next/static/chunks/nextra-data-en-US.json create mode 100644 _next/static/chunks/pages/_app-630f98d7cb8037e1.js create mode 100644 _next/static/chunks/pages/_error-525d78e64c39aa3c.js create mode 100644 _next/static/chunks/pages/data-bb35b738cf73fe15.js create mode 100644 _next/static/chunks/pages/getting-started-db86950dfa52408f.js create mode 100644 _next/static/chunks/pages/index-799ca9cb2690909b.js create mode 100644 _next/static/chunks/pages/mapping-65fb7ae2df119e7e.js create mode 100644 _next/static/chunks/polyfills-c67a75d1b6f99dc8.js create mode 100644 _next/static/chunks/webpack-36d12a75f0098f30.js create mode 100644 _next/static/css/54fde772ad89017e.css create mode 100644 _next/static/css/b868ea80de3e4525.css create mode 100644 _next/static/oT6g0tFg3boTpbdAqi5ZJ/_buildManifest.js create mode 100644 _next/static/oT6g0tFg3boTpbdAqi5ZJ/_ssgManifest.js create mode 100644 assets/ISO-639-dark.jpg create mode 100644 assets/ISO-639-light.jpg create mode 100644 assets/ISO-639.jpg create mode 100644 assets/img/feature-cdn.jpg create mode 100644 assets/img/feature-json.jpg create mode 100644 assets/img/feature-mapping.jpg create mode 100644 assets/img/feature-standard.jpg create mode 100644 assets/img/feature-wikipedia.jpg create mode 100644 assets/logo.png create mode 100644 data.html create mode 100644 favicon-dark.ico create mode 100644 favicon.ico create mode 100644 getting-started.html create mode 100644 index.html create mode 100644 mapping.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..cf3ae8b --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..3e64d08 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +lang.js.org diff --git a/_next/static/chunks/671-788ebd3133fb7cda.js b/_next/static/chunks/671-788ebd3133fb7cda.js new file mode 100644 index 0000000..85b3ae1 --- /dev/null +++ b/_next/static/chunks/671-788ebd3133fb7cda.js @@ -0,0 +1,26 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{2775:function(module,__unused_webpack_exports,__webpack_require__){module=__webpack_require__.nmd(module),function _f(self){"use strict";let Y;try{module&&(self=module)}catch(e){}function u(ee){return void 0===ee||ee}function aa(ee){let en=Array(ee);for(let er=0;er=ei))));en++);if(er)return es?ta(ed,ei,0):void(en[en.length]=ed)}return!er&&ed}function ta(ee,en,er){return ee=1===ee.length?ee[0]:[].concat.apply([],ee),er||ee.length>en?ee.slice(er,er+en):ee}function ua(ee,en,er,ei){return ee=er?(ee=ee[(ei=ei&&en>er)?en:er])&&ee[ei?er:en]:ee[en]}function N(ee,en,er,ei,eo){let es=0;if(ee.constructor===Array){if(eo)-1!==(en=ee.indexOf(en))?1=this.B&&(eh||!ep[eg])){var es=L(em,ei,ex),eu="";switch(this.G){case"full":if(2es;ec--)if(ec-es>=this.B){var ed=L(em,ei,ex,eo,es);M(this,ep,eu=eg.substring(es,ec),ed,ee,er)}break}case"reverse":if(1=this.B&&M(this,ep,eu,L(em,ei,ex,eo,ec),ee,er);eu=""}case"forward":if(1=this.B&&M(this,ep,eu,es,ee,er);break}default:if(this.C&&(es=Math.min(es/this.C(en,eg,ex)|0,em-1)),M(this,ep,eg,es,ee,er),eh&&1=this.B&&!eo[eg]){eo[eg]=1;let en=this.l&&eg>es;M(this,ef,en?es:eg,L(eu+(ei/2>eu?0:1),ei,ex,ec-1,ed-1),ee,er,en?eg:es)}}}}}this.m||(this.register[ee]=1)}}return this},t.search=function(ee,en,er){let ei,eo,es;er||(!en&&C(ee)?ee=(er=ee).query:C(en)&&(er=en));let eu=[],ec,ed,ef=0;if(er){ee=er.query||ee,en=er.limit,ef=er.offset||0;var ep=er.context;ed=er.suggest}if(ee&&1<(ec=(ee=this.encode(""+ee)).length)){er=v();var eh=[];for(let en=0,ei=0,eo;en=this.B&&!er[eo]){if(!this.s&&!ed&&!this.map[eo])return eu;eh[ei++]=eo,er[eo]=1}ec=(ee=eh).length}if(!ec)return eu;for(en||(en=100),ep=this.depth&&1en||er)&&(eo=eo.slice(er,er+en)),ei&&(eo=za.call(this,eo)),{tag:ee,result:eo}}function za(ee){let en=Array(ee.length);for(let er=0,ei;er2?er.slice(1-er.length).join("."):en.source=en.resource,en.git_suffix=/\.git$/.test(en.pathname),en.name=decodeURIComponent((en.pathname||en.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),en.owner=decodeURIComponent(en.user),en.source){case"git.cloudforge.com":en.owner=en.user,en.organization=er[0],en.source="cloudforge.com";break;case"visualstudio.com":if("vs-ssh.visualstudio.com"===en.resource){4===(es=en.name.split("/")).length&&(en.organization=es[1],en.owner=es[2],en.name=es[3],en.full_name=es[2]+"/"+es[3]);break}2===(es=en.name.split("/")).length?(en.owner=es[1],en.name=es[1],en.full_name="_git/"+en.name):3===es.length?(en.name=es[2],"DefaultCollection"===es[0]?(en.owner=es[2],en.organization=es[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=es[0],en.full_name=en.owner+"/_git/"+en.name)):4===es.length&&(en.organization=es[0],en.owner=es[1],en.name=es[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name);break;case"dev.azure.com":case"azure.com":if("ssh.dev.azure.com"===en.resource){4===(es=en.name.split("/")).length&&(en.organization=es[1],en.owner=es[2],en.name=es[3]);break}5===(es=en.name.split("/")).length?(en.organization=es[0],en.owner=es[1],en.name=es[4],en.full_name="_git/"+en.name):3===es.length?(en.name=es[2],"DefaultCollection"===es[0]?(en.owner=es[2],en.organization=es[0],en.full_name=en.organization+"/_git/"+en.name):(en.owner=es[0],en.full_name=en.owner+"/_git/"+en.name)):4===es.length&&(en.organization=es[0],en.owner=es[1],en.name=es[3],en.full_name=en.organization+"/"+en.owner+"/_git/"+en.name),en.query&&en.query.path&&(en.filepath=en.query.path.replace(/^\/+/g,"")),en.query&&en.query.version&&(en.ref=en.query.version.replace(/^GB/,""));break;default:var eu=(es=en.name.split("/")).length-1;if(es.length>=2){var ec=es.indexOf("-",2),ed=es.indexOf("blob",2),ef=es.indexOf("tree",2),ep=es.indexOf("commit",2),eh=es.indexOf("src",2),em=es.indexOf("raw",2),ex=es.indexOf("edit",2);eu=ec>0?ec-1:ed>0?ed-1:ef>0?ef-1:ep>0?ep-1:eh>0?eh-1:em>0?em-1:ex>0?ex-1:eu,en.owner=es.slice(0,eu).join("/"),en.name=es[eu],ep&&(en.commit=es[eu+2])}en.ref="",en.filepathtype="",en.filepath="";var eg=es.length>eu&&"-"===es[eu+1]?eu+1:eu;es.length>eg+2&&["raw","src","blob","tree","edit"].indexOf(es[eg+1])>=0&&(en.filepathtype=es[eg+1],en.ref=es[eg+2],es.length>eg+3&&(en.filepath=es.slice(eg+3).join("/"))),en.organization=en.owner}!en.full_name&&(en.full_name=en.owner,en.name&&(en.full_name&&(en.full_name+="/"),en.full_name+=en.name)),en.owner.startsWith("scm/")&&(en.source="bitbucket-server",en.owner=en.owner.replace("scm/",""),en.organization=en.owner,en.full_name=en.owner+"/"+en.name);var ev=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(en.pathname);return null!=ev&&(en.source="bitbucket-server","users"===ev[1]?en.owner="~"+ev[2]:en.owner=ev[2],en.organization=en.owner,en.name=ev[3],(es=ev[4].split("/")).length>1&&(["raw","browse"].indexOf(es[1])>=0?(en.filepathtype=es[1],es.length>2&&(en.filepath=es.slice(2).join("/"))):"commits"===es[1]&&es.length>2&&(en.commit=es[2])),en.full_name=en.owner+"/"+en.name,en.query.at?en.ref=en.query.at:en.ref=""),en}/*! + * buildToken + * Builds OAuth token prefix (helper function) + * + * @name buildToken + * @function + * @param {GitUrl} obj The parsed Git url object. + * @return {String} token prefix + */function es(ee){return"bitbucket.org"===ee.source?"x-token-auth:"+ee.token+"@":ee.token+"@"}function eu(ee){return"bitbucket-server"===ee.source?"scm/"+ee.full_name:""+ee.full_name}eo.stringify=function(ee,en){en=en||(ee.protocols&&ee.protocols.length?ee.protocols.join("+"):ee.protocol);var er=ee.port?":"+ee.port:"",ei=ee.user||"git",eo=ee.git_suffix?".git":"";switch(en){case"ssh":if(er)return"ssh://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;return ei+"@"+ee.resource+":"+ee.full_name+eo;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return en+"://"+ei+"@"+ee.resource+er+"/"+ee.full_name+eo;case"http":case"https":return en+"://"+(ee.token?es(ee):ee.user&&(ee.protocols.includes("http")||ee.protocols.includes("https"))?ee.user+"@":"")+ee.resource+er+"/"+eu(ee)+eo;default:return ee.href}},ee.exports=eo},3067:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var ee=function(ee){for(var en=ee,er=eo(en);er;)er=eo(en=er.ownerDocument);return en}(window.document),en=[],er=null,ei=null;eu.prototype.THROTTLE_TIMEOUT=100,eu.prototype.POLL_INTERVAL=null,eu.prototype.USE_MUTATION_OBSERVER=!0,eu._setupCrossOriginUpdater=function(){return er||(er=function(ee,er){ei=ee&&er?ev(ee,er):ex(),en.forEach(function(ee){ee._checkForIntersections()})}),er},eu._resetCrossOriginUpdater=function(){er=null,ei=null},eu.prototype.observe=function(ee){if(!this._observationTargets.some(function(en){return en.element==ee})){if(!(ee&&1==ee.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:ee,entry:null}),this._monitorIntersections(ee.ownerDocument),this._checkForIntersections()}},eu.prototype.unobserve=function(ee){this._observationTargets=this._observationTargets.filter(function(en){return en.element!=ee}),this._unmonitorIntersections(ee.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},eu.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},eu.prototype.takeRecords=function(){var ee=this._queuedEntries.slice();return this._queuedEntries=[],ee},eu.prototype._initThresholds=function(ee){var en=ee||[0];return Array.isArray(en)||(en=[en]),en.sort().filter(function(ee,en,er){if("number"!=typeof ee||isNaN(ee)||ee<0||ee>1)throw Error("threshold must be a number between 0 and 1 inclusively");return ee!==er[en-1]})},eu.prototype._parseRootMargin=function(ee){var en=(ee||"0px").split(/\s+/).map(function(ee){var en=/^(-?\d*\.?\d+)(px|%)$/.exec(ee);if(!en)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(en[1]),unit:en[2]}});return en[1]=en[1]||en[0],en[2]=en[2]||en[0],en[3]=en[3]||en[1],en},eu.prototype._monitorIntersections=function(en){var er=en.defaultView;if(er&&-1==this._monitoringDocuments.indexOf(en)){var ei=this._checkForIntersections,es=null,eu=null;if(this.POLL_INTERVAL?es=er.setInterval(ei,this.POLL_INTERVAL):(ef(er,"resize",ei,!0),ef(en,"scroll",ei,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in er&&(eu=new er.MutationObserver(ei)).observe(en,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(en),this._monitoringUnsubscribes.push(function(){var ee=en.defaultView;ee&&(es&&ee.clearInterval(es),ep(ee,"resize",ei,!0)),ep(en,"scroll",ei,!0),eu&&eu.disconnect()}),en!=(this.root&&(this.root.ownerDocument||this.root)||ee)){var ec=eo(en);ec&&this._monitorIntersections(ec.ownerDocument)}}},eu.prototype._unmonitorIntersections=function(en){var er=this._monitoringDocuments.indexOf(en);if(-1!=er){var ei=this.root&&(this.root.ownerDocument||this.root)||ee;if(!this._observationTargets.some(function(ee){var er=ee.element.ownerDocument;if(er==en)return!0;for(;er&&er!=ei;){var es=eo(er);if((er=es&&es.ownerDocument)==en)return!0}return!1})){var es=this._monitoringUnsubscribes[er];if(this._monitoringDocuments.splice(er,1),this._monitoringUnsubscribes.splice(er,1),es(),en!=ei){var eu=eo(en);eu&&this._unmonitorIntersections(eu.ownerDocument)}}}},eu.prototype._unmonitorAllIntersections=function(){var ee=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var en=0;enen.indexOf(this)&&en.push(this)},eu.prototype._unregisterInstance=function(){var ee=en.indexOf(this);-1!=ee&&en.splice(ee,1)},window.IntersectionObserver=eu,window.IntersectionObserverEntry=es}function eo(ee){try{return ee.defaultView&&ee.defaultView.frameElement||null}catch(ee){return null}}function es(ee){this.time=ee.time,this.target=ee.target,this.rootBounds=eg(ee.rootBounds),this.boundingClientRect=eg(ee.boundingClientRect),this.intersectionRect=eg(ee.intersectionRect||ex()),this.isIntersecting=!!ee.intersectionRect;var en=this.boundingClientRect,er=en.width*en.height,ei=this.intersectionRect,eo=ei.width*ei.height;er?this.intersectionRatio=Number((eo/er).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function eu(ee,en){var er=en||{};if("function"!=typeof ee)throw Error("callback must be a function");if(er.root&&1!=er.root.nodeType&&9!=er.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=ed(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=ee,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(er.rootMargin),this.thresholds=this._initThresholds(er.threshold),this.root=er.root||null,this.rootMargin=this._rootMarginValues.map(function(ee){return ee.value+ee.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function ec(){return window.performance&&performance.now&&performance.now()}function ed(ee,en){var er=null;return function(){er||(er=setTimeout(function(){ee(),er=null},en))}}function ef(ee,en,er,ei){"function"==typeof ee.addEventListener?ee.addEventListener(en,er,ei||!1):"function"==typeof ee.attachEvent&&ee.attachEvent("on"+en,er)}function ep(ee,en,er,ei){"function"==typeof ee.removeEventListener?ee.removeEventListener(en,er,ei||!1):"function"==typeof ee.detachEvent&&ee.detachEvent("on"+en,er)}function eh(ee,en){var er=Math.max(ee.top,en.top),ei=Math.min(ee.bottom,en.bottom),eo=Math.max(ee.left,en.left),es=Math.min(ee.right,en.right),eu=es-eo,ec=ei-er;return eu>=0&&ec>=0&&{top:er,bottom:ei,left:eo,right:es,width:eu,height:ec}||null}function em(ee){var en;try{en=ee.getBoundingClientRect()}catch(ee){}return en?(en.width&&en.height||(en={top:en.top,right:en.right,bottom:en.bottom,left:en.left,width:en.right-en.left,height:en.bottom-en.top}),en):ex()}function ex(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function eg(ee){return!ee||"x"in ee?ee:{top:ee.top,y:ee.top,bottom:ee.bottom,left:ee.left,x:ee.left,right:ee.right,width:ee.width,height:ee.height}}function ev(ee,en){var er=en.top-ee.top,ei=en.left-ee.left;return{top:er,left:ei,height:en.height,width:en.width,bottom:er+en.height,right:ei+en.width}}function ey(ee,en){for(var er=en;er;){if(er==ee)return!0;er=eb(er)}return!1}function eb(en){var er=en.parentNode;return 9==en.nodeType&&en!=ee?eo(en):(er&&er.assignedSlot&&(er=er.assignedSlot.parentNode),er&&11==er.nodeType&&er.host)?er.host:er}function ew(ee){return ee&&9===ee.nodeType}}()},4511:function(ee,en,er){"use strict";var ei=er(3155);function eo(ee){if(Array.isArray(ee))return -1!==ee.indexOf("ssh")||-1!==ee.indexOf("rsync");if("string"!=typeof ee)return!1;var en=ei(ee);if(ee=ee.substring(ee.indexOf("://")+3),eo(en))return!0;var er=RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!ee.match(er)&&ee.indexOf("@")-1}function eJ(ee,en){var er=this.__data__,ei=e5(er,ee);return ei<0?er.push([ee,en]):er[ei][1]=en,this}function eY(ee){var en=-1,er=ee?ee.length:0;for(this.clear();++en{},themes:[]},ef=()=>{var ee;return null!==(ee=(0,ei.useContext)(ec))&&void 0!==ee?ee:ed},ep=ee=>(0,ei.useContext)(ec)?ei.createElement(ei.Fragment,null,ee.children):ei.createElement(em,ee),eh=["light","dark"],em=({forcedTheme:ee,disableTransitionOnChange:en=!1,enableSystem:er=!0,enableColorScheme:eu=!0,storageKey:ed="theme",themes:ef=eh,defaultTheme:ep=er?"system":"light",attribute:em="data-theme",value:eb,children:ew,nonce:ek})=>{let[e_,ej]=(0,ei.useState)(()=>eg(ed,ep)),[eE,eO]=(0,ei.useState)(()=>eg(ed)),eC=eb?Object.values(eb):ef,eT=(0,ei.useCallback)(ee=>{let ei=ee;if(!ei)return;"system"===ee&&er&&(ei=ey());let es=eb?eb[ei]:ei,ec=en?ev():null,ed=document.documentElement;if("class"===em?(ed.classList.remove(...eC),es&&ed.classList.add(es)):es?ed.setAttribute(em,es):ed.removeAttribute(em),eu){let ee=eo.includes(ep)?ep:null,en=eo.includes(ei)?ei:ee;ed.style.colorScheme=en}null==ec||ec()},[]),eS=(0,ei.useCallback)(ee=>{ej(ee);try{localStorage.setItem(ed,ee)}catch(ee){}},[ee]),eN=(0,ei.useCallback)(en=>{eO(ey(en)),"system"===e_&&er&&!ee&&eT("system")},[e_,ee]);(0,ei.useEffect)(()=>{let ee=window.matchMedia(es);return ee.addListener(eN),eN(ee),()=>ee.removeListener(eN)},[eN]),(0,ei.useEffect)(()=>{let ee=ee=>{ee.key===ed&&eS(ee.newValue||ep)};return window.addEventListener("storage",ee),()=>window.removeEventListener("storage",ee)},[eS]),(0,ei.useEffect)(()=>{eT(null!=ee?ee:e_)},[ee,e_]);let eI=(0,ei.useMemo)(()=>({theme:e_,setTheme:eS,forcedTheme:ee,resolvedTheme:"system"===e_?eE:e_,themes:er?[...ef,"system"]:ef,systemTheme:er?eE:void 0}),[e_,eS,ee,eE,er,ef]);return ei.createElement(ec.Provider,{value:eI},ei.createElement(ex,{forcedTheme:ee,disableTransitionOnChange:en,enableSystem:er,enableColorScheme:eu,storageKey:ed,themes:ef,defaultTheme:ep,attribute:em,value:eb,children:ew,attrs:eC,nonce:ek}),ew)},ex=(0,ei.memo)(({forcedTheme:ee,storageKey:en,attribute:er,enableSystem:eu,enableColorScheme:ec,defaultTheme:ed,value:ef,attrs:ep,nonce:eh})=>{let em="system"===ed,ex="class"===er?`var d=document.documentElement,c=d.classList;c.remove(${ep.map(ee=>`'${ee}'`).join(",")});`:`var d=document.documentElement,n='${er}',s='setAttribute';`,eg=ec?eo.includes(ed)&&ed?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${ed}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",ev=(ee,en=!1,ei=!0)=>{let es=ef?ef[ee]:ee,eu=en?ee+"|| ''":`'${es}'`,ed="";return ec&&ei&&!en&&eo.includes(ee)&&(ed+=`d.style.colorScheme = '${ee}';`),"class"===er?ed+=en||es?`c.add(${eu})`:"null":es&&(ed+=`d[s](n,${eu})`),ed},ey=ee?`!function(){${ex}${ev(ee)}}()`:eu?`!function(){try{${ex}var e=localStorage.getItem('${en}');if('system'===e||(!e&&${em})){var t='${es}',m=window.matchMedia(t);if(m.media!==t||m.matches){${ev("dark")}}else{${ev("light")}}}else if(e){${ef?`var x=${JSON.stringify(ef)};`:""}${ev(ef?"x[e]":"e",!0)}}${em?"":"else{"+ev(ed,!1,!1)+"}"}${eg}}catch(e){}}()`:`!function(){try{${ex}var e=localStorage.getItem('${en}');if(e){${ef?`var x=${JSON.stringify(ef)};`:""}${ev(ef?"x[e]":"e",!0)}}else{${ev(ed,!1,!1)};}${eg}}catch(t){}}();`;return ei.createElement("script",{nonce:eh,dangerouslySetInnerHTML:{__html:ey}})},()=>!0),eg=(ee,en)=>{let er;if(!eu){try{er=localStorage.getItem(ee)||void 0}catch(ee){}return er||en}},ev=()=>{let ee=document.createElement("style");return ee.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(ee),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(ee)},1)}},ey=ee=>(ee||(ee=window.matchMedia(es)),ee.matches?"dark":"light")},4461:function(ee,en,er){"use strict";var ei,eo;ee.exports=(null==(ei=er.g.process)?void 0:ei.env)&&"object"==typeof(null==(eo=er.g.process)?void 0:eo.env)?er.g.process:er(9528)},9621:function(ee,en){"use strict";var er;Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{PrefetchKind:function(){return er},ACTION_REFRESH:function(){return ei},ACTION_NAVIGATE:function(){return eo},ACTION_RESTORE:function(){return es},ACTION_SERVER_PATCH:function(){return eu},ACTION_PREFETCH:function(){return ec},ACTION_FAST_REFRESH:function(){return ed},ACTION_SERVER_ACTION:function(){return ef},isThenable:function(){return ep}});let ei="refresh",eo="navigate",es="restore",eu="server-patch",ec="prefetch",ed="fast-refresh",ef="server-action";function ep(ee){return ee&&("object"==typeof ee||"function"==typeof ee)&&"function"==typeof ee.then}!function(ee){ee.AUTO="auto",ee.FULL="full",ee.TEMPORARY="temporary"}(er||(er={})),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5745:function(ee,en,er){"use strict";function ei(ee,en,er,ei){return!1}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getDomainLocale",{enumerable:!0,get:function(){return ei}}),er(6979),("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},6590:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"Image",{enumerable:!0,get:function(){return eb}});let ei=er(7597),eo=er(9161)._(er(79)),es=ei._(er(9581)),eu=ei._(er(5267)),ec=er(5458),ed=er(2270),ef=er(7807);er(4178);let ep=er(4348),eh=ei._(er(8958)),em={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function ex(ee,en,er,ei,eo,es){let eu=null==ee?void 0:ee.src;ee&&ee["data-loaded-src"]!==eu&&(ee["data-loaded-src"]=eu,("decode"in ee?ee.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(ee.parentElement&&ee.isConnected){if("empty"!==en&&eo(!0),null==er?void 0:er.current){let en=new Event("load");Object.defineProperty(en,"target",{writable:!1,value:ee});let ei=!1,eo=!1;er.current({...en,nativeEvent:en,currentTarget:ee,target:ee,isDefaultPrevented:()=>ei,isPropagationStopped:()=>eo,persist:()=>{},preventDefault:()=>{ei=!0,en.preventDefault()},stopPropagation:()=>{eo=!0,en.stopPropagation()}})}(null==ei?void 0:ei.current)&&ei.current(ee)}}))}function eg(ee){let[en,er]=eo.version.split(".",2),ei=parseInt(en,10),es=parseInt(er,10);return ei>18||18===ei&&es>=3?{fetchPriority:ee}:{fetchpriority:ee}}let ev=(0,eo.forwardRef)((ee,en)=>{let{src:er,srcSet:ei,sizes:es,height:eu,width:ec,decoding:ed,className:ef,style:ep,fetchPriority:eh,placeholder:em,loading:ev,unoptimized:ey,fill:eb,onLoadRef:ew,onLoadingCompleteRef:ek,setBlurComplete:e_,setShowAltText:ej,onLoad:eE,onError:eO,...eC}=ee;return eo.default.createElement("img",{...eC,...eg(eh),loading:ev,width:ec,height:eu,decoding:ed,"data-nimg":eb?"fill":"1",className:ef,style:ep,sizes:es,srcSet:ei,src:er,ref:(0,eo.useCallback)(ee=>{en&&("function"==typeof en?en(ee):"object"==typeof en&&(en.current=ee)),ee&&(eO&&(ee.src=ee.src),ee.complete&&ex(ee,em,ew,ek,e_,ey))},[er,em,ew,ek,e_,eO,ey,en]),onLoad:ee=>{ex(ee.currentTarget,em,ew,ek,e_,ey)},onError:ee=>{ej(!0),"empty"!==em&&e_(!0),eO&&eO(ee)}})});function ey(ee){let{isAppRouter:en,imgAttributes:er}=ee,ei={as:"image",imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:er.crossOrigin,referrerPolicy:er.referrerPolicy,...eg(er.fetchPriority)};return en&&es.default.preload?(es.default.preload(er.src,ei),null):eo.default.createElement(eu.default,null,eo.default.createElement("link",{key:"__nimg-"+er.src+er.srcSet+er.sizes,rel:"preload",href:er.srcSet?void 0:er.src,...ei}))}let eb=(0,eo.forwardRef)((ee,en)=>{let er=!(0,eo.useContext)(ep.RouterContext),ei=(0,eo.useContext)(ef.ImageConfigContext),es=(0,eo.useMemo)(()=>{let ee=em||ei||ed.imageConfigDefault,en=[...ee.deviceSizes,...ee.imageSizes].sort((ee,en)=>ee-en),er=ee.deviceSizes.sort((ee,en)=>ee-en);return{...ee,allSizes:en,deviceSizes:er}},[ei]),{onLoad:eu,onLoadingComplete:ex}=ee,eg=(0,eo.useRef)(eu);(0,eo.useEffect)(()=>{eg.current=eu},[eu]);let eb=(0,eo.useRef)(ex);(0,eo.useEffect)(()=>{eb.current=ex},[ex]);let[ew,ek]=(0,eo.useState)(!1),[e_,ej]=(0,eo.useState)(!1),{props:eE,meta:eO}=(0,ec.getImgProps)(ee,{defaultLoader:eh.default,imgConf:es,blurComplete:ew,showAltText:e_});return eo.default.createElement(eo.default.Fragment,null,eo.default.createElement(ev,{...eE,unoptimized:eO.unoptimized,placeholder:eO.placeholder,fill:eO.fill,onLoadRef:eg,onLoadingCompleteRef:eb,setBlurComplete:ek,setShowAltText:ej,ref:en}),eO.priority?eo.default.createElement(ey,{isAppRouter:er,imgAttributes:eE}):null)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},1578:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return e_}});let ei=er(7597)._(er(79)),eo=er(4500),es=er(3607),eu=er(748),ec=er(2909),ed=er(2106),ef=er(4348),ep=er(7461),eh=er(8226),em=er(5745),ex=er(5674),eg=er(9621),ev=new Set;function ey(ee,en,er,ei,eo,eu){if(eu||(0,es.isLocalURL)(en)){if(!ei.bypassPrefetchedCheck){let eo=en+"%"+er+"%"+(void 0!==ei.locale?ei.locale:"locale"in ee?ee.locale:void 0);if(ev.has(eo))return;ev.add(eo)}Promise.resolve(eu?ee.prefetch(en,eo):ee.prefetch(en,er,ei)).catch(ee=>{})}}function eb(ee){let en=ee.currentTarget.getAttribute("target");return en&&"_self"!==en||ee.metaKey||ee.ctrlKey||ee.shiftKey||ee.altKey||ee.nativeEvent&&2===ee.nativeEvent.which}function ew(ee,en,er,eo,eu,ec,ed,ef,ep){let{nodeName:eh}=ee.currentTarget;if("A"===eh.toUpperCase()&&(eb(ee)||!ep&&!(0,es.isLocalURL)(er)))return;ee.preventDefault();let em=()=>{let ee=null==ed||ed;"beforePopState"in en?en[eu?"replace":"push"](er,eo,{shallow:ec,locale:ef,scroll:ee}):en[eu?"replace":"push"](eo||er,{scroll:ee})};ep?ei.default.startTransition(em):em()}function ek(ee){return"string"==typeof ee?ee:(0,eu.formatUrl)(ee)}let e_=ei.default.forwardRef(function(ee,en){let er,es;let{href:eu,as:ev,children:eb,prefetch:e_=null,passHref:ej,replace:eE,shallow:eO,scroll:eC,locale:eT,onClick:eS,onMouseEnter:eN,onTouchStart:eI,legacyBehavior:eR=!1,...eA}=ee;er=eb,eR&&("string"==typeof er||"number"==typeof er)&&(er=ei.default.createElement("a",null,er));let eL=ei.default.useContext(ef.RouterContext),eP=ei.default.useContext(ep.AppRouterContext),eM=null!=eL?eL:eP,eZ=!eL,eD=!1!==e_,eF=null===e_?eg.PrefetchKind.AUTO:eg.PrefetchKind.FULL,{href:e$,as:eU}=ei.default.useMemo(()=>{if(!eL){let ee=ek(eu);return{href:ee,as:ev?ek(ev):ee}}let[ee,en]=(0,eo.resolveHref)(eL,eu,!0);return{href:ee,as:ev?(0,eo.resolveHref)(eL,ev):en||ee}},[eL,eu,ev]),eW=ei.default.useRef(e$),ez=ei.default.useRef(eU);eR&&(es=ei.default.Children.only(er));let eH=eR?es&&"object"==typeof es&&es.ref:en,[eG,eB,eV]=(0,eh.useIntersection)({rootMargin:"200px"}),eK=ei.default.useCallback(ee=>{(ez.current!==eU||eW.current!==e$)&&(eV(),ez.current=eU,eW.current=e$),eG(ee),eH&&("function"==typeof eH?eH(ee):"object"==typeof eH&&(eH.current=ee))},[eU,eH,e$,eV,eG]);ei.default.useEffect(()=>{eM&&eB&&eD&&ey(eM,e$,eU,{locale:eT},{kind:eF},eZ)},[eU,e$,eB,eT,eD,null==eL?void 0:eL.locale,eM,eZ,eF]);let eQ={ref:eK,onClick(ee){eR||"function"!=typeof eS||eS(ee),eR&&es.props&&"function"==typeof es.props.onClick&&es.props.onClick(ee),eM&&!ee.defaultPrevented&&ew(ee,eM,e$,eU,eE,eO,eC,eT,eZ)},onMouseEnter(ee){eR||"function"!=typeof eN||eN(ee),eR&&es.props&&"function"==typeof es.props.onMouseEnter&&es.props.onMouseEnter(ee),eM&&(eD||!eZ)&&ey(eM,e$,eU,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eF},eZ)},onTouchStart(ee){eR||"function"!=typeof eI||eI(ee),eR&&es.props&&"function"==typeof es.props.onTouchStart&&es.props.onTouchStart(ee),eM&&(eD||!eZ)&&ey(eM,e$,eU,{locale:eT,priority:!0,bypassPrefetchedCheck:!0},{kind:eF},eZ)}};if((0,ec.isAbsoluteUrl)(eU))eQ.href=eU;else if(!eR||ej||"a"===es.type&&!("href"in es.props)){let ee=void 0!==eT?eT:null==eL?void 0:eL.locale,en=(null==eL?void 0:eL.isLocaleDomain)&&(0,em.getDomainLocale)(eU,ee,null==eL?void 0:eL.locales,null==eL?void 0:eL.domainLocales);eQ.href=en||(0,ex.addBasePath)((0,ed.addLocale)(eU,ee,null==eL?void 0:eL.defaultLocale))}return eR?ei.default.cloneElement(es,eQ):ei.default.createElement("a",{...eA,...eQ},er)});("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},8226:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"useIntersection",{enumerable:!0,get:function(){return ep}});let ei=er(79),eo=er(1179),es="function"==typeof IntersectionObserver,eu=new Map,ec=[];function ed(ee){let en;let er={root:ee.root||null,margin:ee.rootMargin||""},ei=ec.find(ee=>ee.root===er.root&&ee.margin===er.margin);if(ei&&(en=eu.get(ei)))return en;let eo=new Map;return en={id:er,observer:new IntersectionObserver(ee=>{ee.forEach(ee=>{let en=eo.get(ee.target),er=ee.isIntersecting||ee.intersectionRatio>0;en&&er&&en(er)})},ee),elements:eo},ec.push(er),eu.set(er,en),en}function ef(ee,en,er){let{id:ei,observer:eo,elements:es}=ed(er);return es.set(ee,en),eo.observe(ee),function(){if(es.delete(ee),eo.unobserve(ee),0===es.size){eo.disconnect(),eu.delete(ei);let ee=ec.findIndex(ee=>ee.root===ei.root&&ee.margin===ei.margin);ee>-1&&ec.splice(ee,1)}}}function ep(ee){let{rootRef:en,rootMargin:er,disabled:eu}=ee,ec=eu||!es,[ed,ep]=(0,ei.useState)(!1),eh=(0,ei.useRef)(null),em=(0,ei.useCallback)(ee=>{eh.current=ee},[]);return(0,ei.useEffect)(()=>{if(es){if(ec||ed)return;let ee=eh.current;if(ee&&ee.tagName)return ef(ee,ee=>ee&&ep(ee),{root:null==en?void 0:en.current,rootMargin:er})}else if(!ed){let ee=(0,eo.requestIdleCallback)(()=>ep(!0));return()=>(0,eo.cancelIdleCallback)(ee)}},[ec,er,en,ed,eh.current]),[em,ed,(0,ei.useCallback)(()=>{ep(!1)},[])]}("function"==typeof en.default||"object"==typeof en.default&&null!==en.default)&&void 0===en.default.__esModule&&(Object.defineProperty(en.default,"__esModule",{value:!0}),Object.assign(en.default,en),ee.exports=en.default)},5458:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImgProps",{enumerable:!0,get:function(){return eh}}),er(4178);let ei=er(3099),eo=er(2270);function es(ee){return void 0!==ee.default}function eu(ee){return void 0!==ee.src}function ec(ee){return"object"==typeof ee&&(es(ee)||eu(ee))}function ed(ee){return void 0===ee?ee:"number"==typeof ee?Number.isFinite(ee)?ee:NaN:"string"==typeof ee&&/^[0-9]+$/.test(ee)?parseInt(ee,10):NaN}function ef(ee,en,er){let{deviceSizes:ei,allSizes:eo}=ee;if(er){let ee=/(^|\s)(1?\d?\d)vw/g,en=[];for(let ei;ei=ee.exec(er);ei)en.push(parseInt(ei[2]));if(en.length){let ee=.01*Math.min(...en);return{widths:eo.filter(en=>en>=ei[0]*ee),kind:"w"}}return{widths:eo,kind:"w"}}return"number"!=typeof en?{widths:ei,kind:"w"}:{widths:[...new Set([en,2*en].map(ee=>eo.find(en=>en>=ee)||eo[eo.length-1]))],kind:"x"}}function ep(ee){let{config:en,src:er,unoptimized:ei,width:eo,quality:es,sizes:eu,loader:ec}=ee;if(ei)return{src:er,srcSet:void 0,sizes:void 0};let{widths:ed,kind:ep}=ef(en,eo,eu),eh=ed.length-1;return{sizes:eu||"w"!==ep?eu:"100vw",srcSet:ed.map((ee,ei)=>ec({config:en,src:er,quality:es,width:ee})+" "+("w"===ep?ee:ei+1)+ep).join(", "),src:ec({config:en,src:er,quality:es,width:ed[eh]})}}function eh(ee,en){let er,eu,ef,{src:eh,sizes:em,unoptimized:ex=!1,priority:eg=!1,loading:ev,className:ey,quality:eb,width:ew,height:ek,fill:e_=!1,style:ej,onLoad:eE,onLoadingComplete:eO,placeholder:eC="empty",blurDataURL:eT,fetchPriority:eS,layout:eN,objectFit:eI,objectPosition:eR,lazyBoundary:eA,lazyRoot:eL,...eP}=ee,{imgConf:eM,showAltText:eZ,blurComplete:eD,defaultLoader:eF}=en,e$=eM||eo.imageConfigDefault;if("allSizes"in e$)er=e$;else{let ee=[...e$.deviceSizes,...e$.imageSizes].sort((ee,en)=>ee-en),en=e$.deviceSizes.sort((ee,en)=>ee-en);er={...e$,allSizes:ee,deviceSizes:en}}let eU=eP.loader||eF;delete eP.loader,delete eP.srcSet;let eW="__next_img_default"in eU;if(eW){if("custom"===er.loader)throw Error('Image with src "'+eh+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let ee=eU;eU=en=>{let{config:er,...ei}=en;return ee(ei)}}if(eN){"fill"===eN&&(e_=!0);let ee={responsive:"100vw",fill:"100vw"},en={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[eN];en&&(ej={...ej,...en});let er=ee[eN];er&&!em&&(em=er)}let ez="",eH=ed(ew),eG=ed(ek);if(ec(eh)){let ee=es(eh)?eh.default:eh;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(eu=ee.blurWidth,ef=ee.blurHeight,eT=eT||ee.blurDataURL,ez=ee.src,!e_){if(eH||eG){if(eH&&!eG){let en=eH/ee.width;eG=Math.round(ee.height*en)}else if(!eH&&eG){let en=eG/ee.height;eH=Math.round(ee.width*en)}}else eH=ee.width,eG=ee.height}}let eB=!eg&&("lazy"===ev||void 0===ev);(!(eh="string"==typeof eh?eh:ez)||eh.startsWith("data:")||eh.startsWith("blob:"))&&(ex=!0,eB=!1),er.unoptimized&&(ex=!0),eW&&eh.endsWith(".svg")&&!er.dangerouslyAllowSVG&&(ex=!0),eg&&(eS="high");let eV=ed(eb),eK=Object.assign(e_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:eI,objectPosition:eR}:{},eZ?{}:{color:"transparent"},ej),eQ=eD||"empty"===eC?null:"blur"===eC?'url("data:image/svg+xml;charset=utf-8,'+(0,ei.getImageBlurSvg)({widthInt:eH,heightInt:eG,blurWidth:eu,blurHeight:ef,blurDataURL:eT||"",objectFit:eK.objectFit})+'")':'url("'+eC+'")',eJ=eQ?{backgroundSize:eK.objectFit||"cover",backgroundPosition:eK.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eQ}:{},eY=ep({config:er,src:eh,unoptimized:ex,width:eH,quality:eV,sizes:em,loader:eU});return{props:{...eP,loading:eB?"lazy":ev,fetchPriority:eS,width:eH,height:eG,decoding:"async",className:ey,style:{...eK,...eJ},sizes:eY.sizes,srcSet:eY.srcSet,src:eY.src},meta:{unoptimized:ex,priority:eg,placeholder:eC,fill:e_}}}},3099:function(ee,en){"use strict";function er(ee){let{widthInt:en,heightInt:er,blurWidth:ei,blurHeight:eo,blurDataURL:es,objectFit:eu}=ee,ec=ei?40*ei:en,ed=eo?40*eo:er,ef=ec&&ed?"viewBox='0 0 "+ec+" "+ed+"'":"",ep=ef?"none":"contain"===eu?"xMidYMid":"cover"===eu?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+ef+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+ep+"' style='filter: url(%23b);' href='"+es+"'/%3E%3C/svg%3E"}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"getImageBlurSvg",{enumerable:!0,get:function(){return er}})},1936:function(ee,en,er){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),function(ee,en){for(var er in en)Object.defineProperty(ee,er,{enumerable:!0,get:en[er]})}(en,{unstable_getImgProps:function(){return ed},default:function(){return ef}});let ei=er(7597),eo=er(5458),es=er(4178),eu=er(6590),ec=ei._(er(8958)),ed=ee=>{(0,es.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:en}=(0,eo.getImgProps)(ee,{defaultLoader:ec.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[ee,er]of Object.entries(en))void 0===er&&delete en[ee];return{props:en}},ef=eu.Image},8958:function(ee,en){"use strict";function er(ee){let{config:en,src:er,width:ei,quality:eo}=ee;return en.path+"?url="+encodeURIComponent(er)+"&w="+ei+"&q="+(eo||75)}Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"default",{enumerable:!0,get:function(){return ei}}),er.__next_img_default=!0;let ei=er},1199:function(){},9568:function(ee){var en="/";!function(){"use strict";var er={114:function(ee){function en(ee){if("string"!=typeof ee)throw TypeError("Path must be a string. Received "+JSON.stringify(ee))}function er(ee,en){for(var er,ei="",eo=0,es=-1,eu=0,ec=0;ec<=ee.length;++ec){if(ec2){var ed=ei.lastIndexOf("/");if(ed!==ei.length-1){-1===ed?(ei="",eo=0):eo=(ei=ei.slice(0,ed)).length-1-ei.lastIndexOf("/"),es=ec,eu=0;continue}}else if(2===ei.length||1===ei.length){ei="",eo=0,es=ec,eu=0;continue}}en&&(ei.length>0?ei+="/..":ei="..",eo=2)}else ei.length>0?ei+="/"+ee.slice(es+1,ec):ei=ee.slice(es+1,ec),eo=ec-es-1;es=ec,eu=0}else 46===er&&-1!==eu?++eu:eu=-1}return ei}function ei(ee,en){var er=en.dir||en.root,ei=en.base||(en.name||"")+(en.ext||"");return er?er===en.root?er+ei:er+ee+ei:ei}var eo={resolve:function(){for(var ee,ei,eo="",es=!1,eu=arguments.length-1;eu>=-1&&!es;eu--)eu>=0?ei=arguments[eu]:(void 0===ee&&(ee=""),ei=ee),en(ei),0!==ei.length&&(eo=ei+"/"+eo,es=47===ei.charCodeAt(0));return(eo=er(eo,!es),es)?eo.length>0?"/"+eo:"/":eo.length>0?eo:"."},normalize:function(ee){if(en(ee),0===ee.length)return".";var ei=47===ee.charCodeAt(0),eo=47===ee.charCodeAt(ee.length-1);return(0!==(ee=er(ee,!ei)).length||ei||(ee="."),ee.length>0&&eo&&(ee+="/"),ei)?"/"+ee:ee},isAbsolute:function(ee){return en(ee),ee.length>0&&47===ee.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var ee,er=0;er0&&(void 0===ee?ee=ei:ee+="/"+ei)}return void 0===ee?".":eo.normalize(ee)},relative:function(ee,er){if(en(ee),en(er),ee===er||(ee=eo.resolve(ee))===(er=eo.resolve(er)))return"";for(var ei=1;eief){if(47===er.charCodeAt(ec+eh))return er.slice(ec+eh+1);if(0===eh)return er.slice(ec+eh)}else eu>ef&&(47===ee.charCodeAt(ei+eh)?ep=eh:0===eh&&(ep=0));break}var em=ee.charCodeAt(ei+eh);if(em!==er.charCodeAt(ec+eh))break;47===em&&(ep=eh)}var ex="";for(eh=ei+ep+1;eh<=es;++eh)(eh===es||47===ee.charCodeAt(eh))&&(0===ex.length?ex+="..":ex+="/..");return ex.length>0?ex+er.slice(ec+ep):(ec+=ep,47===er.charCodeAt(ec)&&++ec,er.slice(ec))},_makeLong:function(ee){return ee},dirname:function(ee){if(en(ee),0===ee.length)return".";for(var er=ee.charCodeAt(0),ei=47===er,eo=-1,es=!0,eu=ee.length-1;eu>=1;--eu)if(47===(er=ee.charCodeAt(eu))){if(!es){eo=eu;break}}else es=!1;return -1===eo?ei?"/":".":ei&&1===eo?"//":ee.slice(0,eo)},basename:function(ee,er){if(void 0!==er&&"string"!=typeof er)throw TypeError('"ext" argument must be a string');en(ee);var ei,eo=0,es=-1,eu=!0;if(void 0!==er&&er.length>0&&er.length<=ee.length){if(er.length===ee.length&&er===ee)return"";var ec=er.length-1,ed=-1;for(ei=ee.length-1;ei>=0;--ei){var ef=ee.charCodeAt(ei);if(47===ef){if(!eu){eo=ei+1;break}}else -1===ed&&(eu=!1,ed=ei+1),ec>=0&&(ef===er.charCodeAt(ec)?-1==--ec&&(es=ei):(ec=-1,es=ed))}return eo===es?es=ed:-1===es&&(es=ee.length),ee.slice(eo,es)}for(ei=ee.length-1;ei>=0;--ei)if(47===ee.charCodeAt(ei)){if(!eu){eo=ei+1;break}}else -1===es&&(eu=!1,es=ei+1);return -1===es?"":ee.slice(eo,es)},extname:function(ee){en(ee);for(var er=-1,ei=0,eo=-1,es=!0,eu=0,ec=ee.length-1;ec>=0;--ec){var ed=ee.charCodeAt(ec);if(47===ed){if(!es){ei=ec+1;break}continue}-1===eo&&(es=!1,eo=ec+1),46===ed?-1===er?er=ec:1!==eu&&(eu=1):-1!==er&&(eu=-1)}return -1===er||-1===eo||0===eu||1===eu&&er===eo-1&&er===ei+1?"":ee.slice(er,eo)},format:function(ee){if(null===ee||"object"!=typeof ee)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ee);return ei("/",ee)},parse:function(ee){en(ee);var er,ei={root:"",dir:"",base:"",ext:"",name:""};if(0===ee.length)return ei;var eo=ee.charCodeAt(0),es=47===eo;es?(ei.root="/",er=1):er=0;for(var eu=-1,ec=0,ed=-1,ef=!0,ep=ee.length-1,eh=0;ep>=er;--ep){if(47===(eo=ee.charCodeAt(ep))){if(!ef){ec=ep+1;break}continue}-1===ed&&(ef=!1,ed=ep+1),46===eo?-1===eu?eu=ep:1!==eh&&(eh=1):-1!==eu&&(eh=-1)}return -1===eu||-1===ed||0===eh||1===eh&&eu===ed-1&&eu===ec+1?-1!==ed&&(0===ec&&es?ei.base=ei.name=ee.slice(1,ed):ei.base=ei.name=ee.slice(ec,ed)):(0===ec&&es?(ei.name=ee.slice(1,eu),ei.base=ee.slice(1,ed)):(ei.name=ee.slice(ec,eu),ei.base=ee.slice(ec,ed)),ei.ext=ee.slice(eu,ed)),ec>0?ei.dir=ee.slice(0,ec-1):es&&(ei.dir="/"),ei},sep:"/",delimiter:":",win32:null,posix:null};eo.posix=eo,ee.exports=eo}},ei={};function eo(ee){var en=ei[ee];if(void 0!==en)return en.exports;var es=ei[ee]={exports:{}},eu=!0;try{er[ee](es,es.exports,eo),eu=!1}finally{eu&&delete ei[ee]}return es.exports}eo.ab=en+"/";var es=eo(114);ee.exports=es}()},9528:function(ee){var en="/";!function(){var er={229:function(ee){var en,er,ei,eo=ee.exports={};function es(){throw Error("setTimeout has not been defined")}function eu(){throw Error("clearTimeout has not been defined")}function ec(ee){if(en===setTimeout)return setTimeout(ee,0);if((en===es||!en)&&setTimeout)return en=setTimeout,setTimeout(ee,0);try{return en(ee,0)}catch(er){try{return en.call(null,ee,0)}catch(er){return en.call(this,ee,0)}}}function ed(ee){if(er===clearTimeout)return clearTimeout(ee);if((er===eu||!er)&&clearTimeout)return er=clearTimeout,clearTimeout(ee);try{return er(ee)}catch(en){try{return er.call(null,ee)}catch(en){return er.call(this,ee)}}}!function(){try{en="function"==typeof setTimeout?setTimeout:es}catch(ee){en=es}try{er="function"==typeof clearTimeout?clearTimeout:eu}catch(ee){er=eu}}();var ef=[],ep=!1,eh=-1;function em(){ep&&ei&&(ep=!1,ei.length?ef=ei.concat(ef):eh=-1,ef.length&&ex())}function ex(){if(!ep){var ee=ec(em);ep=!0;for(var en=ef.length;en;){for(ei=ef,ef=[];++eh1)for(var er=1;er{en(!0)},[]),ee}var e$=er(2083),eU="https://nextra.vercel.app",eW=()=>{let{locale:ee=e$.ZW,asPath:en,route:er}=(0,eP.useRouter)();return(0,eM.useMemo)(()=>{let ei=e$.hV.has(er)?er:en,{pathname:eo}=new URL(ei,eU);return(ee?eo.replace(RegExp(`\\.${ee}(\\/|$)`),"$1"):eo).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[en,ee,er])},ez=er(483),eH=er(5250);function eG({pathClassName:ee,...en}){return(0,eH.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...en,children:(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5l7 7-7 7",className:ee})})}function eB(ee){return(0,eH.jsx)("svg",{viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor",...ee,children:(0,eH.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function eV(ee){return(0,eH.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",...ee,children:[(0,eH.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,eH.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function eK(ee){return(0,eH.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 30.67 23.25",...ee,children:[(0,eH.jsx)("title",{children:"Discord"}),(0,eH.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]})}function eQ({isOpen:ee,...en}){return(0,eH.jsxs)("svg",{height:"12",width:"12",viewBox:"0 0 16 16",fill:"currentColor",...en,children:[(0,eH.jsx)("path",{fillRule:"evenodd",d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z",className:ee?"":"nx-origin-[35%] nx-rotate-180"}),(0,eH.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]})}function eJ(ee){return(0,eH.jsxs)("svg",{width:"24",height:"24",fill:"currentColor",viewBox:"3 3 18 18",...ee,children:[(0,eH.jsx)("title",{children:"GitHub"}),(0,eH.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]})}function eY(ee){return(0,eH.jsx)("svg",{viewBox:"2 2 16 16",width:"12",height:"12",fill:"currentColor",...ee,children:(0,eH.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})})}function eX(ee){return(0,eH.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20",...ee,children:(0,eH.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})})}function e0(ee){return(0,eH.jsxs)("svg",{fill:"none",width:"24",height:"24",viewBox:"0 0 24 24",stroke:"currentColor",...ee,children:[(0,eH.jsx)("g",{children:(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16"})}),(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 12h16"}),(0,eH.jsx)("g",{children:(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 18h16"})})]})}function e1(ee){return(0,eH.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})}function e2(ee){return(0,eH.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:[(0,eH.jsx)("circle",{className:"nx-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,eH.jsx)("path",{className:"nx-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function e4(ee){return(0,eH.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:"12",height:"12",stroke:"currentColor",...ee,children:(0,eH.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}function e5(ee){return(0,eH.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",...ee,children:(0,eH.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}function e3(ee){return(0,eH.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",...ee,children:(0,eH.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}!function(ee){function en(ee){}function er(ee){throw Error()}function ei(ee,en=" | "){return ee.map(ee=>"string"==typeof ee?`'${ee}'`:ee).join(en)}ee.assertEqual=ee=>ee,ee.assertIs=en,ee.assertNever=er,ee.arrayToEnum=ee=>{let en={};for(let er of ee)en[er]=er;return en},ee.getValidEnumValues=en=>{let er=ee.objectKeys(en).filter(ee=>"number"!=typeof en[en[ee]]),ei={};for(let ee of er)ei[ee]=en[ee];return ee.objectValues(ei)},ee.objectValues=en=>ee.objectKeys(en).map(function(ee){return en[ee]}),ee.objectKeys="function"==typeof Object.keys?ee=>Object.keys(ee):ee=>{let en=[];for(let er in ee)Object.prototype.hasOwnProperty.call(ee,er)&&en.push(er);return en},ee.find=(ee,en)=>{for(let er of ee)if(en(er))return er},ee.isInteger="function"==typeof Number.isInteger?ee=>Number.isInteger(ee):ee=>"number"==typeof ee&&isFinite(ee)&&Math.floor(ee)===ee,ee.joinValues=ei,ee.jsonStringifyReplacer=(ee,en)=>"bigint"==typeof en?en.toString():en}(eS||(eS={})),function(ee){ee.mergeShapes=(ee,en)=>({...ee,...en})}(eN||(eN={}));let e7=eS.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),e6=ee=>{switch(typeof ee){case"undefined":return e7.undefined;case"string":return e7.string;case"number":return isNaN(ee)?e7.nan:e7.number;case"boolean":return e7.boolean;case"function":return e7.function;case"bigint":return e7.bigint;case"symbol":return e7.symbol;case"object":if(Array.isArray(ee))return e7.array;if(null===ee)return e7.null;if(ee.then&&"function"==typeof ee.then&&ee.catch&&"function"==typeof ee.catch)return e7.promise;if("undefined"!=typeof Map&&ee instanceof Map)return e7.map;if("undefined"!=typeof Set&&ee instanceof Set)return e7.set;if("undefined"!=typeof Date&&ee instanceof Date)return e7.date;return e7.object;default:return e7.unknown}},e9=eS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),e8=ee=>JSON.stringify(ee,null,2).replace(/"([^"]+)":/g,"$1:");class tn extends Error{constructor(ee){super(),this.issues=[],this.addIssue=ee=>{this.issues=[...this.issues,ee]},this.addIssues=(ee=[])=>{this.issues=[...this.issues,...ee]};let en=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,en):this.__proto__=en,this.name="ZodError",this.issues=ee}get errors(){return this.issues}format(ee){let en=ee||function(ee){return ee.message},er={_errors:[]},ei=ee=>{for(let eo of ee.issues)if("invalid_union"===eo.code)eo.unionErrors.map(ei);else if("invalid_return_type"===eo.code)ei(eo.returnTypeError);else if("invalid_arguments"===eo.code)ei(eo.argumentsError);else if(0===eo.path.length)er._errors.push(en(eo));else{let ee=er,ei=0;for(;eiee.message){let en={},er=[];for(let ei of this.issues)ei.path.length>0?(en[ei.path[0]]=en[ei.path[0]]||[],en[ei.path[0]].push(ee(ei))):er.push(ee(ei));return{formErrors:er,fieldErrors:en}}get formErrors(){return this.flatten()}}tn.create=ee=>new tn(ee);let tr=(ee,en)=>{let er;switch(ee.code){case e9.invalid_type:er=ee.received===e7.undefined?"Required":`Expected ${ee.expected}, received ${ee.received}`;break;case e9.invalid_literal:er=`Invalid literal value, expected ${JSON.stringify(ee.expected,eS.jsonStringifyReplacer)}`;break;case e9.unrecognized_keys:er=`Unrecognized key(s) in object: ${eS.joinValues(ee.keys,", ")}`;break;case e9.invalid_union:er="Invalid input";break;case e9.invalid_union_discriminator:er=`Invalid discriminator value. Expected ${eS.joinValues(ee.options)}`;break;case e9.invalid_enum_value:er=`Invalid enum value. Expected ${eS.joinValues(ee.options)}, received '${ee.received}'`;break;case e9.invalid_arguments:er="Invalid function arguments";break;case e9.invalid_return_type:er="Invalid function return type";break;case e9.invalid_date:er="Invalid date";break;case e9.invalid_string:"object"==typeof ee.validation?"includes"in ee.validation?(er=`Invalid input: must include "${ee.validation.includes}"`,"number"==typeof ee.validation.position&&(er=`${er} at one or more positions greater than or equal to ${ee.validation.position}`)):"startsWith"in ee.validation?er=`Invalid input: must start with "${ee.validation.startsWith}"`:"endsWith"in ee.validation?er=`Invalid input: must end with "${ee.validation.endsWith}"`:eS.assertNever(ee.validation):er="regex"!==ee.validation?`Invalid ${ee.validation}`:"Invalid";break;case e9.too_small:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at least":"more than"} ${ee.minimum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at least":"over"} ${ee.minimum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${ee.minimum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly equal to ":ee.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(ee.minimum))}`:"Invalid input";break;case e9.too_big:er="array"===ee.type?`Array must contain ${ee.exact?"exactly":ee.inclusive?"at most":"less than"} ${ee.maximum} element(s)`:"string"===ee.type?`String must contain ${ee.exact?"exactly":ee.inclusive?"at most":"under"} ${ee.maximum} character(s)`:"number"===ee.type?`Number must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"bigint"===ee.type?`BigInt must be ${ee.exact?"exactly":ee.inclusive?"less than or equal to":"less than"} ${ee.maximum}`:"date"===ee.type?`Date must be ${ee.exact?"exactly":ee.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(ee.maximum))}`:"Invalid input";break;case e9.custom:er="Invalid input";break;case e9.invalid_intersection_types:er="Intersection results could not be merged";break;case e9.not_multiple_of:er=`Number must be a multiple of ${ee.multipleOf}`;break;case e9.not_finite:er="Number must be finite";break;default:er=en.defaultError,eS.assertNever(ee)}return{message:er}},ti=tr;function to(ee){ti=ee}function ts(){return ti}let tl=ee=>{let{data:en,path:er,errorMaps:ei,issueData:eo}=ee,es=[...er,...eo.path||[]],eu={...eo,path:es},ec="";for(let ee of ei.filter(ee=>!!ee).slice().reverse())ec=ee(eu,{data:en,defaultError:ec}).message;return{...eo,path:es,message:eo.message||ec}},tu=[];function tc(ee,en){let er=tl({issueData:en,data:ee.data,path:ee.path,errorMaps:[ee.common.contextualErrorMap,ee.schemaErrorMap,ts(),tr].filter(ee=>!!ee)});ee.common.issues.push(er)}class td{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(ee,en){let er=[];for(let ei of en){if("aborted"===ei.status)return tf;"dirty"===ei.status&&ee.dirty(),er.push(ei.value)}return{status:ee.value,value:er}}static async mergeObjectAsync(ee,en){let er=[];for(let ee of en)er.push({key:await ee.key,value:await ee.value});return td.mergeObjectSync(ee,er)}static mergeObjectSync(ee,en){let er={};for(let ei of en){let{key:en,value:eo}=ei;if("aborted"===en.status||"aborted"===eo.status)return tf;"dirty"===en.status&&ee.dirty(),"dirty"===eo.status&&ee.dirty(),"__proto__"!==en.value&&(void 0!==eo.value||ei.alwaysSet)&&(er[en.value]=eo.value)}return{status:ee.value,value:er}}}let tf=Object.freeze({status:"aborted"}),tp=ee=>({status:"dirty",value:ee}),th=ee=>({status:"valid",value:ee}),tm=ee=>"aborted"===ee.status,tx=ee=>"dirty"===ee.status,tg=ee=>"valid"===ee.status,tv=ee=>"undefined"!=typeof Promise&&ee instanceof Promise;!function(ee){ee.errToObj=ee=>"string"==typeof ee?{message:ee}:ee||{},ee.toString=ee=>"string"==typeof ee?ee:null==ee?void 0:ee.message}(eI||(eI={}));class ty{constructor(ee,en,er,ei){this._cachedPath=[],this.parent=ee,this.data=en,this._path=er,this._key=ei}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let tb=(ee,en)=>{if(tg(en))return{success:!0,data:en.value};if(!ee.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let en=new tn(ee.common.issues);return this._error=en,this._error}}};function tw(ee){if(!ee)return{};let{errorMap:en,invalid_type_error:er,required_error:ei,description:eo}=ee;if(en&&(er||ei))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return en?{errorMap:en,description:eo}:{errorMap:(ee,en)=>"invalid_type"!==ee.code?{message:en.defaultError}:void 0===en.data?{message:null!=ei?ei:en.defaultError}:{message:null!=er?er:en.defaultError},description:eo}}class tk{constructor(ee){this.spa=this.safeParseAsync,this._def=ee,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(ee){return e6(ee.data)}_getOrReturnCtx(ee,en){return en||{common:ee.parent.common,data:ee.data,parsedType:e6(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}_processInputParams(ee){return{status:new td,ctx:{common:ee.parent.common,data:ee.data,parsedType:e6(ee.data),schemaErrorMap:this._def.errorMap,path:ee.path,parent:ee.parent}}}_parseSync(ee){let en=this._parse(ee);if(tv(en))throw Error("Synchronous parse encountered promise.");return en}_parseAsync(ee){return Promise.resolve(this._parse(ee))}parse(ee,en){let er=this.safeParse(ee,en);if(er.success)return er.data;throw er.error}safeParse(ee,en){var er;let ei={common:{issues:[],async:null!==(er=null==en?void 0:en.async)&&void 0!==er&&er,contextualErrorMap:null==en?void 0:en.errorMap},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:e6(ee)},eo=this._parseSync({data:ee,path:ei.path,parent:ei});return tb(ei,eo)}async parseAsync(ee,en){let er=await this.safeParseAsync(ee,en);if(er.success)return er.data;throw er.error}async safeParseAsync(ee,en){let er={common:{issues:[],contextualErrorMap:null==en?void 0:en.errorMap,async:!0},path:(null==en?void 0:en.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:ee,parsedType:e6(ee)},ei=this._parse({data:ee,path:er.path,parent:er});return tb(er,await (tv(ei)?ei:Promise.resolve(ei)))}refine(ee,en){let er=ee=>"string"==typeof en||void 0===en?{message:en}:"function"==typeof en?en(ee):en;return this._refinement((en,ei)=>{let eo=ee(en),es=()=>ei.addIssue({code:e9.custom,...er(en)});return"undefined"!=typeof Promise&&eo instanceof Promise?eo.then(ee=>!!ee||(es(),!1)):!!eo||(es(),!1)})}refinement(ee,en){return this._refinement((er,ei)=>!!ee(er)||(ei.addIssue("function"==typeof en?en(er,ei):en),!1))}_refinement(ee){return new nt({schema:this,typeName:eR.ZodEffects,effect:{type:"refinement",refinement:ee}})}superRefine(ee){return this._refinement(ee)}optional(){return nn.create(this,this._def)}nullable(){return nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tB.create(this,this._def)}promise(){return ne.create(this,this._def)}or(ee){return tK.create([this,ee],this._def)}and(ee){return tX.create(this,ee,this._def)}transform(ee){return new nt({...tw(this._def),schema:this,typeName:eR.ZodEffects,effect:{type:"transform",transform:ee}})}default(ee){let en="function"==typeof ee?ee:()=>ee;return new ni({...tw(this._def),innerType:this,defaultValue:en,typeName:eR.ZodDefault})}brand(){return new nu({typeName:eR.ZodBranded,type:this,...tw(this._def)})}catch(ee){let en="function"==typeof ee?ee:()=>ee;return new no({...tw(this._def),innerType:this,catchValue:en,typeName:eR.ZodCatch})}describe(ee){return new this.constructor({...this._def,description:ee})}pipe(ee){return nc.create(this,ee)}readonly(){return nd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let t_=/^c[^\s-]{8,}$/i,tj=/^[a-z][a-z0-9]*$/,tE=/^[0-9A-HJKMNP-TV-Z]{26}$/,tO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,tC=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",tS=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,tN=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,tI=ee=>ee.precision?ee.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${ee.precision}}Z$`):0===ee.precision?ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):ee.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function tR(ee,en){return!!(("v4"===en||!en)&&tS.test(ee)||("v6"===en||!en)&&tN.test(ee))}class tA extends tk{_parse(ee){let en;if(this._def.coerce&&(ee.data=String(ee.data)),this._getType(ee)!==e7.string){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.string,received:en.parsedType}),tf}let er=new td;for(let eo of this._def.checks)if("min"===eo.kind)ee.data.lengtheo.value&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.too_big,maximum:eo.value,type:"string",inclusive:!0,exact:!1,message:eo.message}),er.dirty());else if("length"===eo.kind){let ei=ee.data.length>eo.value,es=ee.data.lengthee.test(en),{validation:en,code:e9.invalid_string,...eI.errToObj(er)})}_addCheck(ee){return new tA({...this._def,checks:[...this._def.checks,ee]})}email(ee){return this._addCheck({kind:"email",...eI.errToObj(ee)})}url(ee){return this._addCheck({kind:"url",...eI.errToObj(ee)})}emoji(ee){return this._addCheck({kind:"emoji",...eI.errToObj(ee)})}uuid(ee){return this._addCheck({kind:"uuid",...eI.errToObj(ee)})}cuid(ee){return this._addCheck({kind:"cuid",...eI.errToObj(ee)})}cuid2(ee){return this._addCheck({kind:"cuid2",...eI.errToObj(ee)})}ulid(ee){return this._addCheck({kind:"ulid",...eI.errToObj(ee)})}ip(ee){return this._addCheck({kind:"ip",...eI.errToObj(ee)})}datetime(ee){var en;return"string"==typeof ee?this._addCheck({kind:"datetime",precision:null,offset:!1,message:ee}):this._addCheck({kind:"datetime",precision:void 0===(null==ee?void 0:ee.precision)?null:null==ee?void 0:ee.precision,offset:null!==(en=null==ee?void 0:ee.offset)&&void 0!==en&&en,...eI.errToObj(null==ee?void 0:ee.message)})}regex(ee,en){return this._addCheck({kind:"regex",regex:ee,...eI.errToObj(en)})}includes(ee,en){return this._addCheck({kind:"includes",value:ee,position:null==en?void 0:en.position,...eI.errToObj(null==en?void 0:en.message)})}startsWith(ee,en){return this._addCheck({kind:"startsWith",value:ee,...eI.errToObj(en)})}endsWith(ee,en){return this._addCheck({kind:"endsWith",value:ee,...eI.errToObj(en)})}min(ee,en){return this._addCheck({kind:"min",value:ee,...eI.errToObj(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee,...eI.errToObj(en)})}length(ee,en){return this._addCheck({kind:"length",value:ee,...eI.errToObj(en)})}nonempty(ee){return this.min(1,eI.errToObj(ee))}trim(){return new tA({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new tA({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new tA({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(ee=>"datetime"===ee.kind)}get isEmail(){return!!this._def.checks.find(ee=>"email"===ee.kind)}get isURL(){return!!this._def.checks.find(ee=>"url"===ee.kind)}get isEmoji(){return!!this._def.checks.find(ee=>"emoji"===ee.kind)}get isUUID(){return!!this._def.checks.find(ee=>"uuid"===ee.kind)}get isCUID(){return!!this._def.checks.find(ee=>"cuid"===ee.kind)}get isCUID2(){return!!this._def.checks.find(ee=>"cuid2"===ee.kind)}get isULID(){return!!this._def.checks.find(ee=>"ulid"===ee.kind)}get isIP(){return!!this._def.checks.find(ee=>"ip"===ee.kind)}get minLength(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxLength(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valueei?er:ei;return parseInt(ee.toFixed(eo).replace(".",""))%parseInt(en.toFixed(eo).replace(".",""))/Math.pow(10,eo)}tA.create=ee=>{var en;return new tA({checks:[],typeName:eR.ZodString,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...tw(ee)})};class tP extends tk{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(ee){let en;if(this._def.coerce&&(ee.data=Number(ee.data)),this._getType(ee)!==e7.number){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.number,received:en.parsedType}),tf}let er=new td;for(let ei of this._def.checks)"int"===ei.kind?eS.isInteger(ee.data)||(tc(en=this._getOrReturnCtx(ee,en),{code:e9.invalid_type,expected:"integer",received:"float",message:ei.message}),er.dirty()):"min"===ei.kind?(ei.inclusive?ee.dataei.value:ee.data>=ei.value)&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.too_big,maximum:ei.value,type:"number",inclusive:ei.inclusive,exact:!1,message:ei.message}),er.dirty()):"multipleOf"===ei.kind?0!==tL(ee.data,ei.value)&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.not_multiple_of,multipleOf:ei.value,message:ei.message}),er.dirty()):"finite"===ei.kind?Number.isFinite(ee.data)||(tc(en=this._getOrReturnCtx(ee,en),{code:e9.not_finite,message:ei.message}),er.dirty()):eS.assertNever(ei);return{status:er.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,eI.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,eI.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,eI.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,eI.toString(en))}setLimit(ee,en,er,ei){return new tP({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:eI.toString(ei)}]})}_addCheck(ee){return new tP({...this._def,checks:[...this._def.checks,ee]})}int(ee){return this._addCheck({kind:"int",message:eI.toString(ee)})}positive(ee){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eI.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eI.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eI.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eI.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:eI.toString(en)})}finite(ee){return this._addCheck({kind:"finite",message:eI.toString(ee)})}safe(ee){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:eI.toString(ee)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:eI.toString(ee)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value"int"===ee.kind||"multipleOf"===ee.kind&&eS.isInteger(ee.value))}get isFinite(){let ee=null,en=null;for(let er of this._def.checks){if("finite"===er.kind||"int"===er.kind||"multipleOf"===er.kind)return!0;"min"===er.kind?(null===en||er.value>en)&&(en=er.value):"max"===er.kind&&(null===ee||er.valuenew tP({checks:[],typeName:eR.ZodNumber,coerce:(null==ee?void 0:ee.coerce)||!1,...tw(ee)});class tM extends tk{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(ee){let en;if(this._def.coerce&&(ee.data=BigInt(ee.data)),this._getType(ee)!==e7.bigint){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.bigint,received:en.parsedType}),tf}let er=new td;for(let ei of this._def.checks)"min"===ei.kind?(ei.inclusive?ee.dataei.value:ee.data>=ei.value)&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.too_big,type:"bigint",maximum:ei.value,inclusive:ei.inclusive,message:ei.message}),er.dirty()):"multipleOf"===ei.kind?ee.data%ei.value!==BigInt(0)&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.not_multiple_of,multipleOf:ei.value,message:ei.message}),er.dirty()):eS.assertNever(ei);return{status:er.value,value:ee.data}}gte(ee,en){return this.setLimit("min",ee,!0,eI.toString(en))}gt(ee,en){return this.setLimit("min",ee,!1,eI.toString(en))}lte(ee,en){return this.setLimit("max",ee,!0,eI.toString(en))}lt(ee,en){return this.setLimit("max",ee,!1,eI.toString(en))}setLimit(ee,en,er,ei){return new tM({...this._def,checks:[...this._def.checks,{kind:ee,value:en,inclusive:er,message:eI.toString(ei)}]})}_addCheck(ee){return new tM({...this._def,checks:[...this._def.checks,ee]})}positive(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:eI.toString(ee)})}negative(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:eI.toString(ee)})}nonpositive(ee){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:eI.toString(ee)})}nonnegative(ee){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:eI.toString(ee)})}multipleOf(ee,en){return this._addCheck({kind:"multipleOf",value:ee,message:eI.toString(en)})}get minValue(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return ee}get maxValue(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.value{var en;return new tM({checks:[],typeName:eR.ZodBigInt,coerce:null!==(en=null==ee?void 0:ee.coerce)&&void 0!==en&&en,...tw(ee)})};class tZ extends tk{_parse(ee){if(this._def.coerce&&(ee.data=!!ee.data),this._getType(ee)!==e7.boolean){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.boolean,received:en.parsedType}),tf}return th(ee.data)}}tZ.create=ee=>new tZ({typeName:eR.ZodBoolean,coerce:(null==ee?void 0:ee.coerce)||!1,...tw(ee)});class tD extends tk{_parse(ee){let en;if(this._def.coerce&&(ee.data=new Date(ee.data)),this._getType(ee)!==e7.date){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.date,received:en.parsedType}),tf}if(isNaN(ee.data.getTime()))return tc(this._getOrReturnCtx(ee),{code:e9.invalid_date}),tf;let er=new td;for(let ei of this._def.checks)"min"===ei.kind?ee.data.getTime()ei.value&&(tc(en=this._getOrReturnCtx(ee,en),{code:e9.too_big,message:ei.message,inclusive:!0,exact:!1,maximum:ei.value,type:"date"}),er.dirty()):eS.assertNever(ei);return{status:er.value,value:new Date(ee.data.getTime())}}_addCheck(ee){return new tD({...this._def,checks:[...this._def.checks,ee]})}min(ee,en){return this._addCheck({kind:"min",value:ee.getTime(),message:eI.toString(en)})}max(ee,en){return this._addCheck({kind:"max",value:ee.getTime(),message:eI.toString(en)})}get minDate(){let ee=null;for(let en of this._def.checks)"min"===en.kind&&(null===ee||en.value>ee)&&(ee=en.value);return null!=ee?new Date(ee):null}get maxDate(){let ee=null;for(let en of this._def.checks)"max"===en.kind&&(null===ee||en.valuenew tD({checks:[],coerce:(null==ee?void 0:ee.coerce)||!1,typeName:eR.ZodDate,...tw(ee)});class tF extends tk{_parse(ee){if(this._getType(ee)!==e7.symbol){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.symbol,received:en.parsedType}),tf}return th(ee.data)}}tF.create=ee=>new tF({typeName:eR.ZodSymbol,...tw(ee)});class t$ extends tk{_parse(ee){if(this._getType(ee)!==e7.undefined){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.undefined,received:en.parsedType}),tf}return th(ee.data)}}t$.create=ee=>new t$({typeName:eR.ZodUndefined,...tw(ee)});class tU extends tk{_parse(ee){if(this._getType(ee)!==e7.null){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.null,received:en.parsedType}),tf}return th(ee.data)}}tU.create=ee=>new tU({typeName:eR.ZodNull,...tw(ee)});class tW extends tk{constructor(){super(...arguments),this._any=!0}_parse(ee){return th(ee.data)}}tW.create=ee=>new tW({typeName:eR.ZodAny,...tw(ee)});class tz extends tk{constructor(){super(...arguments),this._unknown=!0}_parse(ee){return th(ee.data)}}tz.create=ee=>new tz({typeName:eR.ZodUnknown,...tw(ee)});class tH extends tk{_parse(ee){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.never,received:en.parsedType}),tf}}tH.create=ee=>new tH({typeName:eR.ZodNever,...tw(ee)});class tG extends tk{_parse(ee){if(this._getType(ee)!==e7.undefined){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.void,received:en.parsedType}),tf}return th(ee.data)}}tG.create=ee=>new tG({typeName:eR.ZodVoid,...tw(ee)});class tB extends tk{_parse(ee){let{ctx:en,status:er}=this._processInputParams(ee),ei=this._def;if(en.parsedType!==e7.array)return tc(en,{code:e9.invalid_type,expected:e7.array,received:en.parsedType}),tf;if(null!==ei.exactLength){let ee=en.data.length>ei.exactLength.value,eo=en.data.lengthei.maxLength.value&&(tc(en,{code:e9.too_big,maximum:ei.maxLength.value,type:"array",inclusive:!0,exact:!1,message:ei.maxLength.message}),er.dirty()),en.common.async)return Promise.all([...en.data].map((ee,er)=>ei.type._parseAsync(new ty(en,ee,en.path,er)))).then(ee=>td.mergeArray(er,ee));let eo=[...en.data].map((ee,er)=>ei.type._parseSync(new ty(en,ee,en.path,er)));return td.mergeArray(er,eo)}get element(){return this._def.type}min(ee,en){return new tB({...this._def,minLength:{value:ee,message:eI.toString(en)}})}max(ee,en){return new tB({...this._def,maxLength:{value:ee,message:eI.toString(en)}})}length(ee,en){return new tB({...this._def,exactLength:{value:ee,message:eI.toString(en)}})}nonempty(ee){return this.min(1,ee)}}function tV(ee){if(ee instanceof tq){let en={};for(let er in ee.shape){let ei=ee.shape[er];en[er]=nn.create(tV(ei))}return new tq({...ee._def,shape:()=>en})}return ee instanceof tB?new tB({...ee._def,type:tV(ee.element)}):ee instanceof nn?nn.create(tV(ee.unwrap())):ee instanceof nr?nr.create(tV(ee.unwrap())):ee instanceof t0?t0.create(ee.items.map(ee=>tV(ee))):ee}tB.create=(ee,en)=>new tB({type:ee,minLength:null,maxLength:null,exactLength:null,typeName:eR.ZodArray,...tw(en)});class tq extends tk{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let ee=this._def.shape(),en=eS.objectKeys(ee);return this._cached={shape:ee,keys:en}}_parse(ee){if(this._getType(ee)!==e7.object){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.object,received:en.parsedType}),tf}let{status:en,ctx:er}=this._processInputParams(ee),{shape:ei,keys:eo}=this._getCached(),es=[];if(!(this._def.catchall instanceof tH&&"strip"===this._def.unknownKeys))for(let ee in er.data)eo.includes(ee)||es.push(ee);let eu=[];for(let ee of eo){let en=ei[ee],eo=er.data[ee];eu.push({key:{status:"valid",value:ee},value:en._parse(new ty(er,eo,er.path,ee)),alwaysSet:ee in er.data})}if(this._def.catchall instanceof tH){let ee=this._def.unknownKeys;if("passthrough"===ee)for(let ee of es)eu.push({key:{status:"valid",value:ee},value:{status:"valid",value:er.data[ee]}});else if("strict"===ee)es.length>0&&(tc(er,{code:e9.unrecognized_keys,keys:es}),en.dirty());else if("strip"===ee);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let ee=this._def.catchall;for(let en of es){let ei=er.data[en];eu.push({key:{status:"valid",value:en},value:ee._parse(new ty(er,ei,er.path,en)),alwaysSet:en in er.data})}}return er.common.async?Promise.resolve().then(async()=>{let ee=[];for(let en of eu){let er=await en.key;ee.push({key:er,value:await en.value,alwaysSet:en.alwaysSet})}return ee}).then(ee=>td.mergeObjectSync(en,ee)):td.mergeObjectSync(en,eu)}get shape(){return this._def.shape()}strict(ee){return eI.errToObj,new tq({...this._def,unknownKeys:"strict",...void 0!==ee?{errorMap:(en,er)=>{var ei,eo,es,eu;let ec=null!==(es=null===(eo=(ei=this._def).errorMap)||void 0===eo?void 0:eo.call(ei,en,er).message)&&void 0!==es?es:er.defaultError;return"unrecognized_keys"===en.code?{message:null!==(eu=eI.errToObj(ee).message)&&void 0!==eu?eu:ec}:{message:ec}}}:{}})}strip(){return new tq({...this._def,unknownKeys:"strip"})}passthrough(){return new tq({...this._def,unknownKeys:"passthrough"})}extend(ee){return new tq({...this._def,shape:()=>({...this._def.shape(),...ee})})}merge(ee){return new tq({unknownKeys:ee._def.unknownKeys,catchall:ee._def.catchall,shape:()=>({...this._def.shape(),...ee._def.shape()}),typeName:eR.ZodObject})}setKey(ee,en){return this.augment({[ee]:en})}catchall(ee){return new tq({...this._def,catchall:ee})}pick(ee){let en={};return eS.objectKeys(ee).forEach(er=>{ee[er]&&this.shape[er]&&(en[er]=this.shape[er])}),new tq({...this._def,shape:()=>en})}omit(ee){let en={};return eS.objectKeys(this.shape).forEach(er=>{ee[er]||(en[er]=this.shape[er])}),new tq({...this._def,shape:()=>en})}deepPartial(){return tV(this)}partial(ee){let en={};return eS.objectKeys(this.shape).forEach(er=>{let ei=this.shape[er];ee&&!ee[er]?en[er]=ei:en[er]=ei.optional()}),new tq({...this._def,shape:()=>en})}required(ee){let en={};return eS.objectKeys(this.shape).forEach(er=>{if(ee&&!ee[er])en[er]=this.shape[er];else{let ee=this.shape[er];for(;ee instanceof nn;)ee=ee._def.innerType;en[er]=ee}}),new tq({...this._def,shape:()=>en})}keyof(){return t6(eS.objectKeys(this.shape))}}tq.create=(ee,en)=>new tq({shape:()=>ee,unknownKeys:"strip",catchall:tH.create(),typeName:eR.ZodObject,...tw(en)}),tq.strictCreate=(ee,en)=>new tq({shape:()=>ee,unknownKeys:"strict",catchall:tH.create(),typeName:eR.ZodObject,...tw(en)}),tq.lazycreate=(ee,en)=>new tq({shape:ee,unknownKeys:"strip",catchall:tH.create(),typeName:eR.ZodObject,...tw(en)});class tK extends tk{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=this._def.options;function ei(ee){for(let en of ee)if("valid"===en.result.status)return en.result;for(let er of ee)if("dirty"===er.result.status)return en.common.issues.push(...er.ctx.common.issues),er.result;let er=ee.map(ee=>new tn(ee.ctx.common.issues));return tc(en,{code:e9.invalid_union,unionErrors:er}),tf}if(en.common.async)return Promise.all(er.map(async ee=>{let er={...en,common:{...en.common,issues:[]},parent:null};return{result:await ee._parseAsync({data:en.data,path:en.path,parent:er}),ctx:er}})).then(ei);{let ee;let ei=[];for(let eo of er){let er={...en,common:{...en.common,issues:[]},parent:null},es=eo._parseSync({data:en.data,path:en.path,parent:er});if("valid"===es.status)return es;"dirty"!==es.status||ee||(ee={result:es,ctx:er}),er.common.issues.length&&ei.push(er.common.issues)}if(ee)return en.common.issues.push(...ee.ctx.common.issues),ee.result;let eo=ei.map(ee=>new tn(ee));return tc(en,{code:e9.invalid_union,unionErrors:eo}),tf}}get options(){return this._def.options}}tK.create=(ee,en)=>new tK({options:ee,typeName:eR.ZodUnion,...tw(en)});let tQ=ee=>{if(ee instanceof t3)return tQ(ee.schema);if(ee instanceof nt)return tQ(ee.innerType());if(ee instanceof t7)return[ee.value];if(ee instanceof t9)return ee.options;if(ee instanceof t8)return Object.keys(ee.enum);if(ee instanceof ni)return tQ(ee._def.innerType);if(ee instanceof t$)return[void 0];else if(ee instanceof tU)return[null];else return null};class tJ extends tk{_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==e7.object)return tc(en,{code:e9.invalid_type,expected:e7.object,received:en.parsedType}),tf;let er=this.discriminator,ei=en.data[er],eo=this.optionsMap.get(ei);return eo?en.common.async?eo._parseAsync({data:en.data,path:en.path,parent:en}):eo._parseSync({data:en.data,path:en.path,parent:en}):(tc(en,{code:e9.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[er]}),tf)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(ee,en,er){let ei=new Map;for(let er of en){let en=tQ(er.shape[ee]);if(!en)throw Error(`A discriminator value for key \`${ee}\` could not be extracted from all schema options`);for(let eo of en){if(ei.has(eo))throw Error(`Discriminator property ${String(ee)} has duplicate value ${String(eo)}`);ei.set(eo,er)}}return new tJ({typeName:eR.ZodDiscriminatedUnion,discriminator:ee,options:en,optionsMap:ei,...tw(er)})}}function tY(ee,en){let er=e6(ee),ei=e6(en);if(ee===en)return{valid:!0,data:ee};if(er===e7.object&&ei===e7.object){let er=eS.objectKeys(en),ei=eS.objectKeys(ee).filter(ee=>-1!==er.indexOf(ee)),eo={...ee,...en};for(let er of ei){let ei=tY(ee[er],en[er]);if(!ei.valid)return{valid:!1};eo[er]=ei.data}return{valid:!0,data:eo}}if(er===e7.array&&ei===e7.array){if(ee.length!==en.length)return{valid:!1};let er=[];for(let ei=0;ei{if(tm(ee)||tm(ei))return tf;let eo=tY(ee.value,ei.value);return eo.valid?((tx(ee)||tx(ei))&&en.dirty(),{status:en.value,value:eo.data}):(tc(er,{code:e9.invalid_intersection_types}),tf)};return er.common.async?Promise.all([this._def.left._parseAsync({data:er.data,path:er.path,parent:er}),this._def.right._parseAsync({data:er.data,path:er.path,parent:er})]).then(([ee,en])=>ei(ee,en)):ei(this._def.left._parseSync({data:er.data,path:er.path,parent:er}),this._def.right._parseSync({data:er.data,path:er.path,parent:er}))}}tX.create=(ee,en,er)=>new tX({left:ee,right:en,typeName:eR.ZodIntersection,...tw(er)});class t0 extends tk{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==e7.array)return tc(er,{code:e9.invalid_type,expected:e7.array,received:er.parsedType}),tf;if(er.data.lengththis._def.items.length&&(tc(er,{code:e9.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),en.dirty());let ei=[...er.data].map((ee,en)=>{let ei=this._def.items[en]||this._def.rest;return ei?ei._parse(new ty(er,ee,er.path,en)):null}).filter(ee=>!!ee);return er.common.async?Promise.all(ei).then(ee=>td.mergeArray(en,ee)):td.mergeArray(en,ei)}get items(){return this._def.items}rest(ee){return new t0({...this._def,rest:ee})}}t0.create=(ee,en)=>{if(!Array.isArray(ee))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new t0({items:ee,typeName:eR.ZodTuple,rest:null,...tw(en)})};class t1 extends tk{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==e7.object)return tc(er,{code:e9.invalid_type,expected:e7.object,received:er.parsedType}),tf;let ei=[],eo=this._def.keyType,es=this._def.valueType;for(let ee in er.data)ei.push({key:eo._parse(new ty(er,ee,er.path,ee)),value:es._parse(new ty(er,er.data[ee],er.path,ee))});return er.common.async?td.mergeObjectAsync(en,ei):td.mergeObjectSync(en,ei)}get element(){return this._def.valueType}static create(ee,en,er){return new t1(en instanceof tk?{keyType:ee,valueType:en,typeName:eR.ZodRecord,...tw(er)}:{keyType:tA.create(),valueType:ee,typeName:eR.ZodRecord,...tw(en)})}}class t2 extends tk{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==e7.map)return tc(er,{code:e9.invalid_type,expected:e7.map,received:er.parsedType}),tf;let ei=this._def.keyType,eo=this._def.valueType,es=[...er.data.entries()].map(([ee,en],es)=>({key:ei._parse(new ty(er,ee,er.path,[es,"key"])),value:eo._parse(new ty(er,en,er.path,[es,"value"]))}));if(er.common.async){let ee=new Map;return Promise.resolve().then(async()=>{for(let er of es){let ei=await er.key,eo=await er.value;if("aborted"===ei.status||"aborted"===eo.status)return tf;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}})}{let ee=new Map;for(let er of es){let ei=er.key,eo=er.value;if("aborted"===ei.status||"aborted"===eo.status)return tf;("dirty"===ei.status||"dirty"===eo.status)&&en.dirty(),ee.set(ei.value,eo.value)}return{status:en.value,value:ee}}}}t2.create=(ee,en,er)=>new t2({valueType:en,keyType:ee,typeName:eR.ZodMap,...tw(er)});class t4 extends tk{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.parsedType!==e7.set)return tc(er,{code:e9.invalid_type,expected:e7.set,received:er.parsedType}),tf;let ei=this._def;null!==ei.minSize&&er.data.sizeei.maxSize.value&&(tc(er,{code:e9.too_big,maximum:ei.maxSize.value,type:"set",inclusive:!0,exact:!1,message:ei.maxSize.message}),en.dirty());let eo=this._def.valueType;function es(ee){let er=new Set;for(let ei of ee){if("aborted"===ei.status)return tf;"dirty"===ei.status&&en.dirty(),er.add(ei.value)}return{status:en.value,value:er}}let eu=[...er.data.values()].map((ee,en)=>eo._parse(new ty(er,ee,er.path,en)));return er.common.async?Promise.all(eu).then(ee=>es(ee)):es(eu)}min(ee,en){return new t4({...this._def,minSize:{value:ee,message:eI.toString(en)}})}max(ee,en){return new t4({...this._def,maxSize:{value:ee,message:eI.toString(en)}})}size(ee,en){return this.min(ee,en).max(ee,en)}nonempty(ee){return this.min(1,ee)}}t4.create=(ee,en)=>new t4({valueType:ee,minSize:null,maxSize:null,typeName:eR.ZodSet,...tw(en)});class t5 extends tk{constructor(){super(...arguments),this.validate=this.implement}_parse(ee){let{ctx:en}=this._processInputParams(ee);if(en.parsedType!==e7.function)return tc(en,{code:e9.invalid_type,expected:e7.function,received:en.parsedType}),tf;function er(ee,er){return tl({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,ts(),tr].filter(ee=>!!ee),issueData:{code:e9.invalid_arguments,argumentsError:er}})}function ei(ee,er){return tl({data:ee,path:en.path,errorMaps:[en.common.contextualErrorMap,en.schemaErrorMap,ts(),tr].filter(ee=>!!ee),issueData:{code:e9.invalid_return_type,returnTypeError:er}})}let eo={errorMap:en.common.contextualErrorMap},es=en.data;if(this._def.returns instanceof ne){let ee=this;return th(async function(...en){let eu=new tn([]),ec=await ee._def.args.parseAsync(en,eo).catch(ee=>{throw eu.addIssue(er(en,ee)),eu}),ed=await Reflect.apply(es,this,ec);return await ee._def.returns._def.type.parseAsync(ed,eo).catch(ee=>{throw eu.addIssue(ei(ed,ee)),eu})})}{let ee=this;return th(function(...en){let eu=ee._def.args.safeParse(en,eo);if(!eu.success)throw new tn([er(en,eu.error)]);let ec=Reflect.apply(es,this,eu.data),ed=ee._def.returns.safeParse(ec,eo);if(!ed.success)throw new tn([ei(ec,ed.error)]);return ed.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...ee){return new t5({...this._def,args:t0.create(ee).rest(tz.create())})}returns(ee){return new t5({...this._def,returns:ee})}implement(ee){return this.parse(ee)}strictImplement(ee){return this.parse(ee)}static create(ee,en,er){return new t5({args:ee||t0.create([]).rest(tz.create()),returns:en||tz.create(),typeName:eR.ZodFunction,...tw(er)})}}class t3 extends tk{get schema(){return this._def.getter()}_parse(ee){let{ctx:en}=this._processInputParams(ee);return this._def.getter()._parse({data:en.data,path:en.path,parent:en})}}t3.create=(ee,en)=>new t3({getter:ee,typeName:eR.ZodLazy,...tw(en)});class t7 extends tk{_parse(ee){if(ee.data!==this._def.value){let en=this._getOrReturnCtx(ee);return tc(en,{received:en.data,code:e9.invalid_literal,expected:this._def.value}),tf}return{status:"valid",value:ee.data}}get value(){return this._def.value}}function t6(ee,en){return new t9({values:ee,typeName:eR.ZodEnum,...tw(en)})}t7.create=(ee,en)=>new t7({value:ee,typeName:eR.ZodLiteral,...tw(en)});class t9 extends tk{_parse(ee){if("string"!=typeof ee.data){let en=this._getOrReturnCtx(ee),er=this._def.values;return tc(en,{expected:eS.joinValues(er),received:en.parsedType,code:e9.invalid_type}),tf}if(-1===this._def.values.indexOf(ee.data)){let en=this._getOrReturnCtx(ee),er=this._def.values;return tc(en,{received:en.data,code:e9.invalid_enum_value,options:er}),tf}return th(ee.data)}get options(){return this._def.values}get enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Values(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}get Enum(){let ee={};for(let en of this._def.values)ee[en]=en;return ee}extract(ee){return t9.create(ee)}exclude(ee){return t9.create(this.options.filter(en=>!ee.includes(en)))}}t9.create=t6;class t8 extends tk{_parse(ee){let en=eS.getValidEnumValues(this._def.values),er=this._getOrReturnCtx(ee);if(er.parsedType!==e7.string&&er.parsedType!==e7.number){let ee=eS.objectValues(en);return tc(er,{expected:eS.joinValues(ee),received:er.parsedType,code:e9.invalid_type}),tf}if(-1===en.indexOf(ee.data)){let ee=eS.objectValues(en);return tc(er,{received:er.data,code:e9.invalid_enum_value,options:ee}),tf}return th(ee.data)}get enum(){return this._def.values}}t8.create=(ee,en)=>new t8({values:ee,typeName:eR.ZodNativeEnum,...tw(en)});class ne extends tk{unwrap(){return this._def.type}_parse(ee){let{ctx:en}=this._processInputParams(ee);return en.parsedType!==e7.promise&&!1===en.common.async?(tc(en,{code:e9.invalid_type,expected:e7.promise,received:en.parsedType}),tf):th((en.parsedType===e7.promise?en.data:Promise.resolve(en.data)).then(ee=>this._def.type.parseAsync(ee,{path:en.path,errorMap:en.common.contextualErrorMap})))}}ne.create=(ee,en)=>new ne({type:ee,typeName:eR.ZodPromise,...tw(en)});class nt extends tk{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eR.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee),ei=this._def.effect||null,eo={addIssue:ee=>{tc(er,ee),ee.fatal?en.abort():en.dirty()},get path(){return er.path}};if(eo.addIssue=eo.addIssue.bind(eo),"preprocess"===ei.type){let ee=ei.transform(er.data,eo);return er.common.issues.length?{status:"dirty",value:er.data}:er.common.async?Promise.resolve(ee).then(ee=>this._def.schema._parseAsync({data:ee,path:er.path,parent:er})):this._def.schema._parseSync({data:ee,path:er.path,parent:er})}if("refinement"===ei.type){let ee=ee=>{let en=ei.refinement(ee,eo);if(er.common.async)return Promise.resolve(en);if(en instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return ee};if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(er=>"aborted"===er.status?tf:("dirty"===er.status&&en.dirty(),ee(er.value).then(()=>({status:en.value,value:er.value}))));{let ei=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ei.status?tf:("dirty"===ei.status&&en.dirty(),ee(ei.value),{status:en.value,value:ei.value})}}if("transform"===ei.type){if(!1!==er.common.async)return this._def.schema._parseAsync({data:er.data,path:er.path,parent:er}).then(ee=>tg(ee)?Promise.resolve(ei.transform(ee.value,eo)).then(ee=>({status:en.value,value:ee})):ee);{let ee=this._def.schema._parseSync({data:er.data,path:er.path,parent:er});if(!tg(ee))return ee;let es=ei.transform(ee.value,eo);if(es instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:en.value,value:es}}}eS.assertNever(ei)}}nt.create=(ee,en,er)=>new nt({schema:ee,typeName:eR.ZodEffects,effect:en,...tw(er)}),nt.createWithPreprocess=(ee,en,er)=>new nt({schema:en,effect:{type:"preprocess",transform:ee},typeName:eR.ZodEffects,...tw(er)});class nn extends tk{_parse(ee){return this._getType(ee)===e7.undefined?th(void 0):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}}nn.create=(ee,en)=>new nn({innerType:ee,typeName:eR.ZodOptional,...tw(en)});class nr extends tk{_parse(ee){return this._getType(ee)===e7.null?th(null):this._def.innerType._parse(ee)}unwrap(){return this._def.innerType}}nr.create=(ee,en)=>new nr({innerType:ee,typeName:eR.ZodNullable,...tw(en)});class ni extends tk{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return en.parsedType===e7.undefined&&(er=this._def.defaultValue()),this._def.innerType._parse({data:er,path:en.path,parent:en})}removeDefault(){return this._def.innerType}}ni.create=(ee,en)=>new ni({innerType:ee,typeName:eR.ZodDefault,defaultValue:"function"==typeof en.default?en.default:()=>en.default,...tw(en)});class no extends tk{_parse(ee){let{ctx:en}=this._processInputParams(ee),er={...en,common:{...en.common,issues:[]}},ei=this._def.innerType._parse({data:er.data,path:er.path,parent:{...er}});return tv(ei)?ei.then(ee=>({status:"valid",value:"valid"===ee.status?ee.value:this._def.catchValue({get error(){return new tn(er.common.issues)},input:er.data})})):{status:"valid",value:"valid"===ei.status?ei.value:this._def.catchValue({get error(){return new tn(er.common.issues)},input:er.data})}}removeCatch(){return this._def.innerType}}no.create=(ee,en)=>new no({innerType:ee,typeName:eR.ZodCatch,catchValue:"function"==typeof en.catch?en.catch:()=>en.catch,...tw(en)});class ns extends tk{_parse(ee){if(this._getType(ee)!==e7.nan){let en=this._getOrReturnCtx(ee);return tc(en,{code:e9.invalid_type,expected:e7.nan,received:en.parsedType}),tf}return{status:"valid",value:ee.data}}}ns.create=ee=>new ns({typeName:eR.ZodNaN,...tw(ee)});let nl=Symbol("zod_brand");class nu extends tk{_parse(ee){let{ctx:en}=this._processInputParams(ee),er=en.data;return this._def.type._parse({data:er,path:en.path,parent:en})}unwrap(){return this._def.type}}class nc extends tk{_parse(ee){let{status:en,ctx:er}=this._processInputParams(ee);if(er.common.async)return(async()=>{let ee=await this._def.in._parseAsync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?tf:"dirty"===ee.status?(en.dirty(),tp(ee.value)):this._def.out._parseAsync({data:ee.value,path:er.path,parent:er})})();{let ee=this._def.in._parseSync({data:er.data,path:er.path,parent:er});return"aborted"===ee.status?tf:"dirty"===ee.status?(en.dirty(),{status:"dirty",value:ee.value}):this._def.out._parseSync({data:ee.value,path:er.path,parent:er})}}static create(ee,en){return new nc({in:ee,out:en,typeName:eR.ZodPipeline})}}class nd extends tk{_parse(ee){let en=this._def.innerType._parse(ee);return tg(en)&&(en.value=Object.freeze(en.value)),en}}nd.create=(ee,en)=>new nd({innerType:ee,typeName:eR.ZodReadonly,...tw(en)});let nf=(ee,en={},er)=>ee?tW.create().superRefine((ei,eo)=>{var es,eu;if(!ee(ei)){let ee="function"==typeof en?en(ei):"string"==typeof en?{message:en}:en,ec=null===(eu=null!==(es=ee.fatal)&&void 0!==es?es:er)||void 0===eu||eu,ed="string"==typeof ee?{message:ee}:ee;eo.addIssue({code:"custom",...ed,fatal:ec})}}):tW.create(),np={object:tq.lazycreate};!function(ee){ee.ZodString="ZodString",ee.ZodNumber="ZodNumber",ee.ZodNaN="ZodNaN",ee.ZodBigInt="ZodBigInt",ee.ZodBoolean="ZodBoolean",ee.ZodDate="ZodDate",ee.ZodSymbol="ZodSymbol",ee.ZodUndefined="ZodUndefined",ee.ZodNull="ZodNull",ee.ZodAny="ZodAny",ee.ZodUnknown="ZodUnknown",ee.ZodNever="ZodNever",ee.ZodVoid="ZodVoid",ee.ZodArray="ZodArray",ee.ZodObject="ZodObject",ee.ZodUnion="ZodUnion",ee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ee.ZodIntersection="ZodIntersection",ee.ZodTuple="ZodTuple",ee.ZodRecord="ZodRecord",ee.ZodMap="ZodMap",ee.ZodSet="ZodSet",ee.ZodFunction="ZodFunction",ee.ZodLazy="ZodLazy",ee.ZodLiteral="ZodLiteral",ee.ZodEnum="ZodEnum",ee.ZodEffects="ZodEffects",ee.ZodNativeEnum="ZodNativeEnum",ee.ZodOptional="ZodOptional",ee.ZodNullable="ZodNullable",ee.ZodDefault="ZodDefault",ee.ZodCatch="ZodCatch",ee.ZodPromise="ZodPromise",ee.ZodBranded="ZodBranded",ee.ZodPipeline="ZodPipeline",ee.ZodReadonly="ZodReadonly"}(eR||(eR={}));let nh=(ee,en={message:`Input not instance of ${ee.name}`})=>nf(en=>en instanceof ee,en),nm=tA.create,nx=tP.create,ng=ns.create,nv=tM.create,ny=tZ.create,nb=tD.create,nw=tF.create,nk=t$.create,n_=tU.create,nj=tW.create,nE=tz.create,nO=tH.create,nC=tG.create,nT=tB.create,nS=tq.create,nN=tq.strictCreate,nI=tK.create,nR=tJ.create,nA=tX.create,nL=t0.create,nP=t1.create,nM=t2.create,nZ=t4.create,nD=t5.create,nF=t3.create,n$=t7.create,nU=t9.create,nW=t8.create,nz=ne.create,nH=nt.create,nG=nn.create,nB=nr.create,nV=nt.createWithPreprocess,nq=nc.create,nK=()=>nx().optional(),nQ=()=>ny().optional(),nJ={string:ee=>tA.create({...ee,coerce:!0}),number:ee=>tP.create({...ee,coerce:!0}),boolean:ee=>tZ.create({...ee,coerce:!0}),bigint:ee=>tM.create({...ee,coerce:!0}),date:ee=>tD.create({...ee,coerce:!0})},nY=tf;var nX=Object.freeze({__proto__:null,defaultErrorMap:tr,setErrorMap:to,getErrorMap:ts,makeIssue:tl,EMPTY_PATH:tu,addIssueToContext:tc,ParseStatus:td,INVALID:tf,DIRTY:tp,OK:th,isAborted:tm,isDirty:tx,isValid:tg,isAsync:tv,get util(){return eS},get objectUtil(){return eN},ZodParsedType:e7,getParsedType:e6,ZodType:tk,ZodString:tA,ZodNumber:tP,ZodBigInt:tM,ZodBoolean:tZ,ZodDate:tD,ZodSymbol:tF,ZodUndefined:t$,ZodNull:tU,ZodAny:tW,ZodUnknown:tz,ZodNever:tH,ZodVoid:tG,ZodArray:tB,ZodObject:tq,ZodUnion:tK,ZodDiscriminatedUnion:tJ,ZodIntersection:tX,ZodTuple:t0,ZodRecord:t1,ZodMap:t2,ZodSet:t4,ZodFunction:t5,ZodLazy:t3,ZodLiteral:t7,ZodEnum:t9,ZodNativeEnum:t8,ZodPromise:ne,ZodEffects:nt,ZodTransformer:nt,ZodOptional:nn,ZodNullable:nr,ZodDefault:ni,ZodCatch:no,ZodNaN:ns,BRAND:nl,ZodBranded:nu,ZodPipeline:nc,ZodReadonly:nd,custom:nf,Schema:tk,ZodSchema:tk,late:np,get ZodFirstPartyTypeKind(){return eR},coerce:nJ,any:nj,array:nT,bigint:nv,boolean:ny,date:nb,discriminatedUnion:nR,effect:nH,enum:nU,function:nD,instanceof:nh,intersection:nA,lazy:nF,literal:n$,map:nM,nan:ng,nativeEnum:nW,never:nO,null:n_,nullable:nB,number:nx,object:nS,oboolean:nQ,onumber:nK,optional:nG,ostring:()=>nm().optional(),pipeline:nq,preprocess:nV,promise:nz,record:nP,set:nZ,strictObject:nN,string:nm,symbol:nw,transformer:nH,tuple:nL,undefined:nk,union:nI,unknown:nE,void:nC,NEVER:nY,ZodIssueCode:e9,quotelessJson:e8,ZodError:tn}),n0=er(6265),n1=er.n(n0),n2={i8:"14.0.4"};er(3067);var n4=er(8407),n5={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"},n3=nX.strictObject({breadcrumb:nX.boolean(),collapsed:nX.boolean(),footer:nX.boolean(),layout:nX.enum(["default","full","raw"]),navbar:nX.boolean(),pagination:nX.boolean(),sidebar:nX.boolean(),timestamp:nX.boolean(),toc:nX.boolean(),typesetting:nX.enum(["default","article"])}),n7=nX.enum(["normal","hidden","children"]),n6=nX.string(),n9=nX.strictObject({href:nX.string(),newWindow:nX.boolean(),title:n6}),n8=nX.strictObject({display:n7.optional(),items:nX.record(n9.partial({href:!0,newWindow:!0})),title:n6,type:nX.literal("menu")}),rt=nX.strictObject({title:n6,type:nX.literal("separator")}),rn=n9.extend({display:n7,theme:n3,title:n6,type:nX.enum(["page","doc"])}).deepPartial();function rr(ee={},en){"string"==typeof ee&&(ee={title:ee});let er=Object.assign({},en.theme,ee.theme);return Object.assign({},en,ee,{theme:er})}function ri(ee){for(let en of ee){if(en.route)return en.route;if(en.children){let ee=ri(en.children);if(ee)return ee}}}function ro({list:ee,locale:en,defaultLocale:er,route:ei,docsRoot:eo="",underCurrentDocsRoot:es=!1,pageThemeContext:eu=n5}){let ec,ed;for(let er of ee)if("Meta"===er.kind){if(er.locale===en){ec=er.data;break}ec||(ec=er.data)}let ef=ec||{},ep=Object.keys(ef);for(let ee of ep)"string"==typeof ef[ee]&&(ef[ee]={title:ef[ee]});let eh=[],em=[],ex=[],eg=[],ev=[],ey=0,eb=eu,ew=[],ek=-1,e_=ef["*"]||{};delete e_.title,delete e_.href;let ej=ee.filter(ee=>"Meta"!==ee.kind&&!ee.name.startsWith("_")&&(!("locale"in ee)||!ee.locale||[en,er].includes(ee.locale))).sort((ee,en)=>{let er=ep.indexOf(ee.name),ei=ep.indexOf(en.name);return -1===er&&-1===ei?ee.name{let en;let er=[],ei=ep.indexOf(ee.name);if(-1!==ei){for(let ee=ek+1;ee({...ec,type:eE,...eS&&{title:eS},...ek&&{display:ek},...eT&&{children:[]}}),eI=eN(),eR=eN(),eA=eN();if(eR.isUnderCurrentDocsTree=eC,"separator"===eE&&(eI.isUnderCurrentDocsTree=eC),ec.route===ei)switch(ew=[eI],ed=eE,eb={...eb,...eO},eE){case"page":case"menu":ey=ev.length;break;case"doc":ey=eg.length}if(!("hidden"===ek&&"Folder"!==eI.kind||e$.hV.has(ec.route))){if(eT){if(void 0!==eT.activeIndex&&void 0!==eT.activeType){switch(eb=eT.activeThemeContext,ed=eT.activeType,ew=[eI,...eT.activePath],ed){case"page":case"menu":ey=ev.length+eT.activeIndex;break;case"doc":ey=eg.length+eT.activeIndex}ec.withIndexPage&&"doc"===eE&&ey++}switch(eE){case"page":case"menu":eA.children.push(...eT.directories),ex.push(...eT.docsDirectories),eT.flatDirectories.length?(eA.firstChildRoute=ri(eT.flatDirectories),ev.push(eA)):eA.withIndexPage&&ev.push(eA);break;case"doc":Array.isArray(eR.children)&&eR.children.push(...eT.docsDirectories),eI.withIndexPage&&"children"!==ek&&eg.push(eR)}em.push(...eT.flatDirectories),eg.push(...eT.flatDocsDirectories),Array.isArray(eI.children)&&eI.children.push(...eT.directories)}else switch(em.push(eI),eE){case"page":case"menu":ev.push(eA);break;case"doc":eg.push(eR)}switch("doc"===eE&&"children"===ek?eR.children&&(eh.push(...eR.children),ex.push(...eR.children)):eh.push(eI),eE){case"page":case"menu":ex.push(eA);break;case"doc":"children"!==ek&&ex.push(eR);break;case"separator":ex.push(eI)}}}return{activeType:ed,activeIndex:ey,activeThemeContext:eb,activePath:ew,directories:eh,flatDirectories:em,docsDirectories:ex,flatDocsDirectories:eg,topLevelNavbarItems:ev}}nX.string().or(n8).or(rt).or(rn);var rs=er(7043),rl=er.n(rs);function ru(ee){if(null==ee)return window;if("[object Window]"!==ee.toString()){var en=ee.ownerDocument;return en&&en.defaultView||window}return ee}function rc(ee){var en=ru(ee).Element;return ee instanceof en||ee instanceof Element}function rd(ee){var en=ru(ee).HTMLElement;return ee instanceof en||ee instanceof HTMLElement}function rf(ee){if("undefined"==typeof ShadowRoot)return!1;var en=ru(ee).ShadowRoot;return ee instanceof en||ee instanceof ShadowRoot}var rp=Math.max,rh=Math.min,rm=Math.round;function rx(){var ee=navigator.userAgentData;return null!=ee&&ee.brands&&Array.isArray(ee.brands)?ee.brands.map(function(ee){return ee.brand+"/"+ee.version}).join(" "):navigator.userAgent}function rg(){return!/^((?!chrome|android).)*safari/i.test(rx())}function rv(ee,en,er){void 0===en&&(en=!1),void 0===er&&(er=!1);var ei=ee.getBoundingClientRect(),eo=1,es=1;en&&rd(ee)&&(eo=ee.offsetWidth>0&&rm(ei.width)/ee.offsetWidth||1,es=ee.offsetHeight>0&&rm(ei.height)/ee.offsetHeight||1);var eu=(rc(ee)?ru(ee):window).visualViewport,ec=!rg()&&er,ed=(ei.left+(ec&&eu?eu.offsetLeft:0))/eo,ef=(ei.top+(ec&&eu?eu.offsetTop:0))/es,ep=ei.width/eo,eh=ei.height/es;return{width:ep,height:eh,top:ef,right:ed+ep,bottom:ef+eh,left:ed,x:ed,y:ef}}function ry(ee){var en=ru(ee);return{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function rb(ee){return{scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop}}function rw(ee){return ee!==ru(ee)&&rd(ee)?rb(ee):ry(ee)}function rk(ee){return ee?(ee.nodeName||"").toLowerCase():null}function r_(ee){return((rc(ee)?ee.ownerDocument:ee.document)||window.document).documentElement}function rj(ee){return rv(r_(ee)).left+ry(ee).scrollLeft}function rE(ee){return ru(ee).getComputedStyle(ee)}function rO(ee){var en=rE(ee),er=en.overflow,ei=en.overflowX,eo=en.overflowY;return/auto|scroll|overlay|hidden/.test(er+eo+ei)}function rC(ee){var en=ee.getBoundingClientRect(),er=rm(en.width)/ee.offsetWidth||1,ei=rm(en.height)/ee.offsetHeight||1;return 1!==er||1!==ei}function rT(ee,en,er){void 0===er&&(er=!1);var ei=rd(en),eo=rd(en)&&rC(en),es=r_(en),eu=rv(ee,eo,er),ec={scrollLeft:0,scrollTop:0},ed={x:0,y:0};return(ei||!ei&&!er)&&(("body"!==rk(en)||rO(es))&&(ec=rw(en)),rd(en)?(ed=rv(en,!0),ed.x+=en.clientLeft,ed.y+=en.clientTop):es&&(ed.x=rj(es))),{x:eu.left+ec.scrollLeft-ed.x,y:eu.top+ec.scrollTop-ed.y,width:eu.width,height:eu.height}}function rS(ee){var en=rv(ee),er=ee.offsetWidth,ei=ee.offsetHeight;return 1>=Math.abs(en.width-er)&&(er=en.width),1>=Math.abs(en.height-ei)&&(ei=en.height),{x:ee.offsetLeft,y:ee.offsetTop,width:er,height:ei}}function rN(ee){return"html"===rk(ee)?ee:ee.assignedSlot||ee.parentNode||(rf(ee)?ee.host:null)||r_(ee)}function rI(ee){return["html","body","#document"].indexOf(rk(ee))>=0?ee.ownerDocument.body:rd(ee)&&rO(ee)?ee:rI(rN(ee))}function rR(ee,en){void 0===en&&(en=[]);var er,ei=rI(ee),eo=ei===(null==(er=ee.ownerDocument)?void 0:er.body),es=ru(ei),eu=eo?[es].concat(es.visualViewport||[],rO(ei)?ei:[]):ei,ec=en.concat(eu);return eo?ec:ec.concat(rR(rN(eu)))}function rA(ee){return["table","td","th"].indexOf(rk(ee))>=0}function rL(ee){return rd(ee)&&"fixed"!==rE(ee).position?ee.offsetParent:null}function rP(ee){var en=/firefox/i.test(rx());if(/Trident/i.test(rx())&&rd(ee)&&"fixed"===rE(ee).position)return null;var er=rN(ee);for(rf(er)&&(er=er.host);rd(er)&&0>["html","body"].indexOf(rk(er));){var ei=rE(er);if("none"!==ei.transform||"none"!==ei.perspective||"paint"===ei.contain||-1!==["transform","perspective"].indexOf(ei.willChange)||en&&"filter"===ei.willChange||en&&ei.filter&&"none"!==ei.filter)return er;er=er.parentNode}return null}function rM(ee){for(var en=ru(ee),er=rL(ee);er&&rA(er)&&"static"===rE(er).position;)er=rL(er);return er&&("html"===rk(er)||"body"===rk(er)&&"static"===rE(er).position)?en:er||rP(ee)||en}var rZ="top",rD="bottom",rF="right",r$="left",rU="auto",rW=[rZ,rD,rF,r$],rz="start",rH="end",rG="clippingParents",rB="viewport",rV="popper",rq="reference",rK=rW.reduce(function(ee,en){return ee.concat([en+"-"+rz,en+"-"+rH])},[]),rQ=[].concat(rW,[rU]).reduce(function(ee,en){return ee.concat([en,en+"-"+rz,en+"-"+rH])},[]),rJ=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rY(ee){var en=new Map,er=new Set,ei=[];function eo(ee){er.add(ee.name),[].concat(ee.requires||[],ee.requiresIfExists||[]).forEach(function(ee){if(!er.has(ee)){var ei=en.get(ee);ei&&eo(ei)}}),ei.push(ee)}return ee.forEach(function(ee){en.set(ee.name,ee)}),ee.forEach(function(ee){er.has(ee.name)||eo(ee)}),ei}function rX(ee){var en=rY(ee);return rJ.reduce(function(ee,er){return ee.concat(en.filter(function(ee){return ee.phase===er}))},[])}function r0(ee){var en;return function(){return en||(en=new Promise(function(er){Promise.resolve().then(function(){en=void 0,er(ee())})})),en}}function r1(ee){var en=ee.reduce(function(ee,en){var er=ee[en.name];return ee[en.name]=er?Object.assign({},er,en,{options:Object.assign({},er.options,en.options),data:Object.assign({},er.data,en.data)}):en,ee},{});return Object.keys(en).map(function(ee){return en[ee]})}var r2={placement:"bottom",modifiers:[],strategy:"absolute"};function r4(){for(var ee=arguments.length,en=Array(ee),er=0;er=0?"x":"y"}function r9(ee){var en,er=ee.reference,ei=ee.element,eo=ee.placement,es=eo?r3(eo):null,eu=eo?r7(eo):null,ec=er.x+er.width/2-ei.width/2,ed=er.y+er.height/2-ei.height/2;switch(es){case rZ:en={x:ec,y:er.y-ei.height};break;case rD:en={x:ec,y:er.y+er.height};break;case rF:en={x:er.x+er.width,y:ed};break;case r$:en={x:er.x-ei.width,y:ed};break;default:en={x:er.x,y:er.y}}var ef=es?r6(es):null;if(null!=ef){var ep="y"===ef?"height":"width";switch(eu){case rz:en[ef]=en[ef]-(er[ep]/2-ei[ep]/2);break;case rH:en[ef]=en[ef]+(er[ep]/2-ei[ep]/2)}}return en}var r8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(ee,en){var er=ee.x,ei=ee.y,eo=en.devicePixelRatio||1;return{x:rm(er*eo)/eo||0,y:rm(ei*eo)/eo||0}}function ir(ee){var en,er,ei=ee.popper,eo=ee.popperRect,es=ee.placement,eu=ee.variation,ec=ee.offsets,ed=ee.position,ef=ee.gpuAcceleration,ep=ee.adaptive,eh=ee.roundOffsets,em=ee.isFixed,ex=ec.x,eg=void 0===ex?0:ex,ev=ec.y,ey=void 0===ev?0:ev,eb="function"==typeof eh?eh({x:eg,y:ey}):{x:eg,y:ey};eg=eb.x,ey=eb.y;var ew=ec.hasOwnProperty("x"),ek=ec.hasOwnProperty("y"),e_=r$,ej=rZ,eE=window;if(ep){var eO=rM(ei),eC="clientHeight",eT="clientWidth";eO===ru(ei)&&"static"!==rE(eO=r_(ei)).position&&"absolute"===ed&&(eC="scrollHeight",eT="scrollWidth"),(es===rZ||(es===r$||es===rF)&&eu===rH)&&(ej=rD,ey-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.height:eO[eC])-eo.height,ey*=ef?1:-1),(es===r$||(es===rZ||es===rD)&&eu===rH)&&(e_=rF,eg-=(em&&eO===eE&&eE.visualViewport?eE.visualViewport.width:eO[eT])-eo.width,eg*=ef?1:-1)}var eS=Object.assign({position:ed},ep&&r8),eN=!0===eh?it({x:eg,y:ey},ru(ei)):{x:eg,y:ey};return(eg=eN.x,ey=eN.y,ef)?Object.assign({},eS,((er={})[ej]=ek?"0":"",er[e_]=ew?"0":"",er.transform=1>=(eE.devicePixelRatio||1)?"translate("+eg+"px, "+ey+"px)":"translate3d("+eg+"px, "+ey+"px, 0)",er)):Object.assign({},eS,((en={})[ej]=ek?ey+"px":"",en[e_]=ew?eg+"px":"",en.transform="",en))}function ii(ee,en,er){var ei=r3(ee),eo=[r$,rZ].indexOf(ei)>=0?-1:1,es="function"==typeof er?er(Object.assign({},en,{placement:ee})):er,eu=es[0],ec=es[1];return eu=eu||0,ec=(ec||0)*eo,[r$,rF].indexOf(ei)>=0?{x:ec,y:eu}:{x:eu,y:ec}}var io={left:"right",right:"left",bottom:"top",top:"bottom"};function is(ee){return ee.replace(/left|right|bottom|top/g,function(ee){return io[ee]})}var il={start:"end",end:"start"};function iu(ee){return ee.replace(/start|end/g,function(ee){return il[ee]})}function ic(ee,en){var er=ru(ee),ei=r_(ee),eo=er.visualViewport,es=ei.clientWidth,eu=ei.clientHeight,ec=0,ed=0;if(eo){es=eo.width,eu=eo.height;var ef=rg();(ef||!ef&&"fixed"===en)&&(ec=eo.offsetLeft,ed=eo.offsetTop)}return{width:es,height:eu,x:ec+rj(ee),y:ed}}function ih(ee){var en,er=r_(ee),ei=ry(ee),eo=null==(en=ee.ownerDocument)?void 0:en.body,es=rp(er.scrollWidth,er.clientWidth,eo?eo.scrollWidth:0,eo?eo.clientWidth:0),eu=rp(er.scrollHeight,er.clientHeight,eo?eo.scrollHeight:0,eo?eo.clientHeight:0),ec=-ei.scrollLeft+rj(ee),ed=-ei.scrollTop;return"rtl"===rE(eo||er).direction&&(ec+=rp(er.clientWidth,eo?eo.clientWidth:0)-es),{width:es,height:eu,x:ec,y:ed}}function im(ee,en){var er=en.getRootNode&&en.getRootNode();if(ee.contains(en))return!0;if(er&&rf(er)){var ei=en;do{if(ei&&ee.isSameNode(ei))return!0;ei=ei.parentNode||ei.host}while(ei)}return!1}function ix(ee){return Object.assign({},ee,{left:ee.x,top:ee.y,right:ee.x+ee.width,bottom:ee.y+ee.height})}function ig(ee,en){var er=rv(ee,!1,"fixed"===en);return er.top=er.top+ee.clientTop,er.left=er.left+ee.clientLeft,er.bottom=er.top+ee.clientHeight,er.right=er.left+ee.clientWidth,er.width=ee.clientWidth,er.height=ee.clientHeight,er.x=er.left,er.y=er.top,er}function iv(ee,en,er){return en===rB?ix(ic(ee,er)):rc(en)?ig(en,er):ix(ih(r_(ee)))}function iy(ee){var en=rR(rN(ee)),er=["absolute","fixed"].indexOf(rE(ee).position)>=0&&rd(ee)?rM(ee):ee;return rc(er)?en.filter(function(ee){return rc(ee)&&im(ee,er)&&"body"!==rk(ee)}):[]}function ib(ee,en,er,ei){var eo=[].concat("clippingParents"===en?iy(ee):[].concat(en),[er]),es=eo[0],eu=eo.reduce(function(en,er){var eo=iv(ee,er,ei);return en.top=rp(eo.top,en.top),en.right=rh(eo.right,en.right),en.bottom=rh(eo.bottom,en.bottom),en.left=rp(eo.left,en.left),en},iv(ee,es,ei));return eu.width=eu.right-eu.left,eu.height=eu.bottom-eu.top,eu.x=eu.left,eu.y=eu.top,eu}function iw(){return{top:0,right:0,bottom:0,left:0}}function ik(ee){return Object.assign({},iw(),ee)}function i_(ee,en){return en.reduce(function(en,er){return en[er]=ee,en},{})}function ij(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=void 0===ei?ee.placement:ei,es=er.strategy,eu=void 0===es?ee.strategy:es,ec=er.boundary,ed=void 0===ec?rG:ec,ef=er.rootBoundary,ep=void 0===ef?rB:ef,eh=er.elementContext,em=void 0===eh?rV:eh,ex=er.altBoundary,eg=void 0!==ex&&ex,ev=er.padding,ey=void 0===ev?0:ev,eb=ik("number"!=typeof ey?ey:i_(ey,rW)),ew=em===rV?rq:rV,ek=ee.rects.popper,e_=ee.elements[eg?ew:em],ej=ib(rc(e_)?e_:e_.contextElement||r_(ee.elements.popper),ed,ep,eu),eE=rv(ee.elements.reference),eO=r9({reference:eE,element:ek,strategy:"absolute",placement:eo}),eC=ix(Object.assign({},ek,eO)),eT=em===rV?eC:eE,eS={top:ej.top-eT.top+eb.top,bottom:eT.bottom-ej.bottom+eb.bottom,left:ej.left-eT.left+eb.left,right:eT.right-ej.right+eb.right},eN=ee.modifiersData.offset;if(em===rV&&eN){var eI=eN[eo];Object.keys(eS).forEach(function(ee){var en=[rF,rD].indexOf(ee)>=0?1:-1,er=[rZ,rD].indexOf(ee)>=0?"y":"x";eS[ee]+=eI[er]*en})}return eS}function iE(ee,en){void 0===en&&(en={});var er=en,ei=er.placement,eo=er.boundary,es=er.rootBoundary,eu=er.padding,ec=er.flipVariations,ed=er.allowedAutoPlacements,ef=void 0===ed?rQ:ed,ep=r7(ei),eh=ep?ec?rK:rK.filter(function(ee){return r7(ee)===ep}):rW,em=eh.filter(function(ee){return ef.indexOf(ee)>=0});0===em.length&&(em=eh);var ex=em.reduce(function(en,er){return en[er]=ij(ee,{placement:er,boundary:eo,rootBoundary:es,padding:eu})[r3(er)],en},{});return Object.keys(ex).sort(function(ee,en){return ex[ee]-ex[en]})}function iO(ee){if(r3(ee)===rU)return[];var en=is(ee);return[iu(ee),en,iu(en)]}function iC(ee){return"x"===ee?"y":"x"}function iT(ee,en,er){return rp(ee,rh(en,er))}function iS(ee,en,er){var ei=iT(ee,en,er);return ei>er?er:ei}var iN=function(ee,en){return ik("number"!=typeof(ee="function"==typeof ee?ee(Object.assign({},en.rects,{placement:en.placement})):ee)?ee:i_(ee,rW))};function iI(ee,en,er){return void 0===er&&(er={x:0,y:0}),{top:ee.top-en.height-er.y,right:ee.right-en.width+er.x,bottom:ee.bottom-en.height+er.y,left:ee.left-en.width-er.x}}function iR(ee){return[rZ,rF,rD,r$].some(function(en){return ee[en]>=0})}var iA=function(ee){void 0===ee&&(ee={});var en=ee,er=en.defaultModifiers,ei=void 0===er?[]:er,eo=en.defaultOptions,es=void 0===eo?r2:eo;return function(ee,en,er){void 0===er&&(er=es);var eo={placement:"bottom",orderedModifiers:[],options:Object.assign({},r2,es),modifiersData:{},elements:{reference:ee,popper:en},attributes:{},styles:{}},eu=[],ec=!1,ed={state:eo,setOptions:function(er){var eu="function"==typeof er?er(eo.options):er;ep(),eo.options=Object.assign({},es,eo.options,eu),eo.scrollParents={reference:rc(ee)?rR(ee):ee.contextElement?rR(ee.contextElement):[],popper:rR(en)};var ec=rX(r1([].concat(ei,eo.options.modifiers)));return eo.orderedModifiers=ec.filter(function(ee){return ee.enabled}),ef(),ed.update()},forceUpdate:function(){if(!ec){var ee=eo.elements,en=ee.reference,er=ee.popper;if(r4(en,er)){eo.rects={reference:rT(en,rM(er),"fixed"===eo.options.strategy),popper:rS(er)},eo.reset=!1,eo.placement=eo.options.placement,eo.orderedModifiers.forEach(function(ee){return eo.modifiersData[ee.name]=Object.assign({},ee.data)});for(var ei=0;ei=0,eA=eR?"width":"height",eL=ij(en,{placement:eS,boundary:ep,rootBoundary:eh,altBoundary:em,padding:ef}),eP=eR?eI?rF:r$:eI?rD:rZ;e_[eA]>ej[eA]&&(eP=is(eP));var eM=is(eP),eZ=[];if(es&&eZ.push(eL[eN]<=0),ec&&eZ.push(eL[eP]<=0,eL[eM]<=0),eZ.every(function(ee){return ee})){eC=eS,eO=!1;break}eE.set(eS,eZ)}if(eO)for(var eD=eg?3:1,eF=function(ee){var en=ek.find(function(en){var er=eE.get(en);if(er)return er.slice(0,ee).every(function(ee){return ee})});if(en)return eC=en,"break"},e$=eD;e$>0&&"break"!==eF(e$);e$--);en.placement!==eC&&(en.modifiersData[ei]._skip=!0,en.placement=eC,en.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(ee){var en=ee.state,er=ee.options,ei=ee.name,eo=er.mainAxis,es=void 0===eo||eo,eu=er.altAxis,ec=void 0!==eu&&eu,ed=er.boundary,ef=er.rootBoundary,ep=er.altBoundary,eh=er.padding,em=er.tether,ex=void 0===em||em,eg=er.tetherOffset,ev=void 0===eg?0:eg,ey=ij(en,{boundary:ed,rootBoundary:ef,padding:eh,altBoundary:ep}),eb=r3(en.placement),ew=r7(en.placement),ek=!ew,e_=r6(eb),ej=iC(e_),eE=en.modifiersData.popperOffsets,eO=en.rects.reference,eC=en.rects.popper,eT="function"==typeof ev?ev(Object.assign({},en.rects,{placement:en.placement})):ev,eS="number"==typeof eT?{mainAxis:eT,altAxis:eT}:Object.assign({mainAxis:0,altAxis:0},eT),eN=en.modifiersData.offset?en.modifiersData.offset[en.placement]:null,eI={x:0,y:0};if(eE){if(es){var eR,eA="y"===e_?rZ:r$,eL="y"===e_?rD:rF,eP="y"===e_?"height":"width",eM=eE[e_],eZ=eM+ey[eA],eD=eM-ey[eL],eF=ex?-eC[eP]/2:0,e$=ew===rz?eO[eP]:eC[eP],eU=ew===rz?-eC[eP]:-eO[eP],eW=en.elements.arrow,ez=ex&&eW?rS(eW):{width:0,height:0},eH=en.modifiersData["arrow#persistent"]?en.modifiersData["arrow#persistent"].padding:iw(),eG=eH[eA],eB=eH[eL],eV=iT(0,eO[eP],ez[eP]),eK=ek?eO[eP]/2-eF-eV-eG-eS.mainAxis:e$-eV-eG-eS.mainAxis,eQ=ek?-eO[eP]/2+eF+eV+eB+eS.mainAxis:eU+eV+eB+eS.mainAxis,eJ=en.elements.arrow&&rM(en.elements.arrow),eY=eJ?"y"===e_?eJ.clientTop||0:eJ.clientLeft||0:0,eX=null!=(eR=null==eN?void 0:eN[e_])?eR:0,e0=eM+eK-eX-eY,e1=eM+eQ-eX,e2=iT(ex?rh(eZ,e0):eZ,eM,ex?rp(eD,e1):eD);eE[e_]=e2,eI[e_]=e2-eM}if(ec){var e4,e5="x"===e_?rZ:r$,e3="x"===e_?rD:rF,e7=eE[ej],e6="y"===ej?"height":"width",e9=e7+ey[e5],e8=e7-ey[e3],tn=-1!==[rZ,r$].indexOf(eb),tr=null!=(e4=null==eN?void 0:eN[ej])?e4:0,ti=tn?e9:e7-eO[e6]-eC[e6]-tr+eS.altAxis,to=tn?e7+eO[e6]+eC[e6]-tr-eS.altAxis:e8,ts=ex&&tn?iS(ti,e7,to):iT(ex?ti:e9,e7,ex?to:e8);eE[ej]=ts,eI[ej]=ts-e7}en.modifiersData[ei]=eI}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(ee){var en,er=ee.state,ei=ee.name,eo=ee.options,es=er.elements.arrow,eu=er.modifiersData.popperOffsets,ec=r3(er.placement),ed=r6(ec),ef=[r$,rF].indexOf(ec)>=0?"height":"width";if(es&&eu){var ep=iN(eo.padding,er),eh=rS(es),em="y"===ed?rZ:r$,ex="y"===ed?rD:rF,eg=er.rects.reference[ef]+er.rects.reference[ed]-eu[ed]-er.rects.popper[ef],ev=eu[ed]-er.rects.reference[ed],ey=rM(es),eb=ey?"y"===ed?ey.clientHeight||0:ey.clientWidth||0:0,ew=eg/2-ev/2,ek=ep[em],e_=eb-eh[ef]-ep[ex],ej=eb/2-eh[ef]/2+ew,eE=iT(ek,ej,e_),eO=ed;er.modifiersData[ei]=((en={})[eO]=eE,en.centerOffset=eE-ej,en)}},effect:function(ee){var en=ee.state,er=ee.options.element,ei=void 0===er?"[data-popper-arrow]":er;null!=ei&&("string"!=typeof ei||(ei=en.elements.popper.querySelector(ei)))&&im(en.elements.popper,ei)&&(en.elements.arrow=ei)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(ee){var en=ee.state,er=ee.name,ei=en.rects.reference,eo=en.rects.popper,es=en.modifiersData.preventOverflow,eu=ij(en,{elementContext:"reference"}),ec=ij(en,{altBoundary:!0}),ed=iI(eu,ei),ef=iI(ec,eo,es),ep=iR(ed),eh=iR(ef);en.modifiersData[er]={referenceClippingOffsets:ed,popperEscapeOffsets:ef,isReferenceHidden:ep,hasPopperEscaped:eh},en.attributes.popper=Object.assign({},en.attributes.popper,{"data-popper-reference-hidden":ep,"data-popper-escaped":eh})}}]}),iL=er(2775),iP=er.n(iL);function iM(ee){if("string"!=typeof ee)throw TypeError("Expected a string");return ee.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function iZ(...ee){return Array.from(new Set(ee.flatMap(ee=>"string"==typeof ee?ee.split(" "):[]))).filter(Boolean).join(" ")}function iD(ee,en,...er){if(ee in en){let ei=en[ee];return"function"==typeof ei?ei(...er):ei}let ei=Error(`Tried to handle "${ee}" but there is no handler defined. Only defined handlers are: ${Object.keys(en).map(ee=>`"${ee}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(ei,iD),ei}var iF=((eo=iF||{})[eo.None=0]="None",eo[eo.RenderStrategy=1]="RenderStrategy",eo[eo.Static=2]="Static",eo),i$=((es=i$||{})[es.Unmount=0]="Unmount",es[es.Hidden=1]="Hidden",es);function iU({ourProps:ee,theirProps:en,slot:er,defaultTag:ei,features:eo,visible:es=!0,name:eu}){let ec=iH(en,ee);if(es)return iW(ec,er,ei,eu);let ed=null!=eo?eo:0;if(2&ed){let{static:ee=!1,...en}=ec;if(ee)return iW(en,er,ei,eu)}if(1&ed){let{unmount:ee=!0,...en}=ec;return iD(ee?0:1,{0:()=>null,1:()=>iW({...en,hidden:!0,style:{display:"none"}},er,ei,eu)})}return iW(ec,er,ei,eu)}function iW(ee,en={},er,ei){let{as:eo=er,children:es,refName:eu="ref",...ec}=iV(ee,["unmount","static"]),ed=void 0!==ee.ref?{[eu]:ee.ref}:{},ef="function"==typeof es?es(en):es;"className"in ec&&ec.className&&"function"==typeof ec.className&&(ec.className=ec.className(en));let ep={};if(en){let ee=!1,er=[];for(let[ei,eo]of Object.entries(en))"boolean"==typeof eo&&(ee=!0),!0===eo&&er.push(ei);ee&&(ep["data-headlessui-state"]=er.join(" "))}if(eo===eM.Fragment&&Object.keys(iB(ec)).length>0){if(!(0,eM.isValidElement)(ef)||Array.isArray(ef)&&ef.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${ei} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ec).map(ee=>` - ${ee}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(ee=>` - ${ee}`).join(` +`)].join(` +`));let ee=ef.props,en="function"==typeof(null==ee?void 0:ee.className)?(...en)=>iZ(null==ee?void 0:ee.className(...en),ec.className):iZ(null==ee?void 0:ee.className,ec.className),er=en?{className:en}:{};return(0,eM.cloneElement)(ef,Object.assign({},iH(ef.props,iB(iV(ec,["ref"]))),ep,ed,iz(ef.ref,ed.ref),er))}return(0,eM.createElement)(eo,Object.assign({},iV(ec,["ref"]),eo!==eM.Fragment&&ed,eo!==eM.Fragment&&ep),ef)}function iz(...ee){return{ref:ee.every(ee=>null==ee)?void 0:en=>{for(let er of ee)null!=er&&("function"==typeof er?er(en):er.current=en)}}}function iH(...ee){var en;if(0===ee.length)return{};if(1===ee.length)return ee[0];let er={},ei={};for(let eo of ee)for(let ee in eo)ee.startsWith("on")&&"function"==typeof eo[ee]?(null!=(en=ei[ee])||(ei[ee]=[]),ei[ee].push(eo[ee])):er[ee]=eo[ee];if(er.disabled||er["aria-disabled"])return Object.assign(er,Object.fromEntries(Object.keys(ei).map(ee=>[ee,void 0])));for(let ee in ei)Object.assign(er,{[ee](en,...er){for(let eo of ei[ee]){if((en instanceof Event||(null==en?void 0:en.nativeEvent)instanceof Event)&&en.defaultPrevented)return;eo(en,...er)}}});return er}function iG(ee){var en;return Object.assign((0,eM.forwardRef)(ee),{displayName:null!=(en=ee.displayName)?en:ee.name})}function iB(ee){let en=Object.assign({},ee);for(let ee in en)void 0===en[ee]&&delete en[ee];return en}function iV(ee,en=[]){let er=Object.assign({},ee);for(let ee of en)ee in er&&delete er[ee];return er}let iq=(0,eM.createContext)(null);iq.displayName="OpenClosedContext";var iK=((eu=iK||{})[eu.Open=1]="Open",eu[eu.Closed=2]="Closed",eu[eu.Closing=4]="Closing",eu[eu.Opening=8]="Opening",eu);function iQ(){return(0,eM.useContext)(iq)}function iJ({value:ee,children:en}){return eM.createElement(iq.Provider,{value:ee},en)}var iY=Object.defineProperty,iX=(ee,en,er)=>en in ee?iY(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,i0=(ee,en,er)=>(iX(ee,"symbol"!=typeof en?en+"":en,er),er);class i1{constructor(){i0(this,"current",this.detect()),i0(this,"handoffState","pending"),i0(this,"currentId",0)}set(ee){this.current!==ee&&(this.handoffState="pending",this.currentId=0,this.current=ee)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let i2=new i1,i4=(ee,en)=>{i2.isServer?(0,eM.useEffect)(ee,en):(0,eM.useLayoutEffect)(ee,en)};function i5(){let ee=(0,eM.useRef)(!1);return i4(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ee}function i3(ee){let en=(0,eM.useRef)(ee);return i4(()=>{en.current=ee},[ee]),en}function i7(){let ee="undefined"==typeof document;return(0,eZ.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!ee)}function i6(){let ee=i7(),[en,er]=eM.useState(i2.isHandoffComplete);return en&&!1===i2.isHandoffComplete&&er(!1),eM.useEffect(()=>{!0!==en&&er(!0)},[en]),eM.useEffect(()=>i2.handoff(),[]),!ee&&en}let i9=function(ee){let en=i3(ee);return eM.useCallback((...ee)=>en.current(...ee),[en])},i8=Symbol();function at(...ee){let en=(0,eM.useRef)(ee);(0,eM.useEffect)(()=>{en.current=ee},[ee]);let er=i9(ee=>{for(let er of en.current)null!=er&&("function"==typeof er?er(ee):er.current=ee)});return ee.every(ee=>null==ee||(null==ee?void 0:ee[i8]))?void 0:er}function an(ee){let en={called:!1};return(...er)=>{if(!en.called)return en.called=!0,ee(...er)}}function ar(ee){"function"==typeof queueMicrotask?queueMicrotask(ee):Promise.resolve().then(ee).catch(ee=>setTimeout(()=>{throw ee}))}function ai(){let ee=[],en={addEventListener:(ee,er,ei,eo)=>(ee.addEventListener(er,ei,eo),en.add(()=>ee.removeEventListener(er,ei,eo))),requestAnimationFrame(...ee){let er=requestAnimationFrame(...ee);return en.add(()=>cancelAnimationFrame(er))},nextFrame:(...ee)=>en.requestAnimationFrame(()=>en.requestAnimationFrame(...ee)),setTimeout(...ee){let er=setTimeout(...ee);return en.add(()=>clearTimeout(er))},microTask(...ee){let er={current:!0};return ar(()=>{er.current&&ee[0]()}),en.add(()=>{er.current=!1})},style(ee,en,er){let ei=ee.style.getPropertyValue(en);return Object.assign(ee.style,{[en]:er}),this.add(()=>{Object.assign(ee.style,{[en]:ei})})},group(ee){let en=ai();return ee(en),this.add(()=>en.dispose())},add:en=>(ee.push(en),()=>{let er=ee.indexOf(en);if(er>=0)for(let en of ee.splice(er,1))en()}),dispose(){for(let en of ee.splice(0))en()}};return en}function ao(ee,...en){ee&&en.length>0&&ee.classList.add(...en)}function al(ee,...en){ee&&en.length>0&&ee.classList.remove(...en)}function au(ee,en){let er=ai();if(!ee)return er.dispose;let{transitionDuration:ei,transitionDelay:eo}=getComputedStyle(ee),[es,eu]=[ei,eo].map(ee=>{let[en=0]=ee.split(",").filter(Boolean).map(ee=>ee.includes("ms")?parseFloat(ee):1e3*parseFloat(ee)).sort((ee,en)=>en-ee);return en}),ec=es+eu;if(0!==ec){er.group(er=>{er.setTimeout(()=>{en(),er.dispose()},ec),er.addEventListener(ee,"transitionrun",ee=>{ee.target===ee.currentTarget&&er.dispose()})});let ei=er.addEventListener(ee,"transitionend",ee=>{ee.target===ee.currentTarget&&(en(),ei())})}else en();return er.add(()=>en()),er.dispose}function ac(ee,en,er,ei){let eo=er?"enter":"leave",es=ai(),eu=void 0!==ei?an(ei):()=>{};"enter"===eo&&(ee.removeAttribute("hidden"),ee.style.display="");let ec=iD(eo,{enter:()=>en.enter,leave:()=>en.leave}),ed=iD(eo,{enter:()=>en.enterTo,leave:()=>en.leaveTo}),ef=iD(eo,{enter:()=>en.enterFrom,leave:()=>en.leaveFrom});return al(ee,...en.base,...en.enter,...en.enterTo,...en.enterFrom,...en.leave,...en.leaveFrom,...en.leaveTo,...en.entered),ao(ee,...en.base,...ec,...ef),es.nextFrame(()=>{al(ee,...en.base,...ec,...ef),ao(ee,...en.base,...ec,...ed),au(ee,()=>(al(ee,...en.base,...ec),ao(ee,...en.base,...en.entered),eu()))}),es.dispose}function ad(){let[ee]=(0,eM.useState)(ai);return(0,eM.useEffect)(()=>()=>ee.dispose(),[ee]),ee}function af({immediate:ee,container:en,direction:er,classes:ei,onStart:eo,onStop:es}){let eu=i5(),ec=ad(),ed=i3(er);i4(()=>{ee&&(ed.current="enter")},[ee]),i4(()=>{let ee=ai();ec.add(ee.dispose);let er=en.current;if(er&&"idle"!==ed.current&&eu.current)return ee.dispose(),eo.current(ed.current),ee.add(ac(er,ei.current,"enter"===ed.current,()=>{ee.dispose(),es.current(ed.current)})),ee.dispose},[er])}function ap(ee=0){let[en,er]=(0,eM.useState)(ee),ei=i5(),eo=(0,eM.useCallback)(ee=>{ei.current&&er(en=>en|ee)},[en,ei]),es=(0,eM.useCallback)(ee=>!!(en&ee),[en]);return{flags:en,addFlag:eo,hasFlag:es,removeFlag:(0,eM.useCallback)(ee=>{ei.current&&er(en=>en&~ee)},[er,ei]),toggleFlag:(0,eM.useCallback)(ee=>{ei.current&&er(en=>en^ee)},[er])}}function ah(ee=""){return ee.split(" ").filter(ee=>ee.trim().length>1)}let am=(0,eM.createContext)(null);am.displayName="TransitionContext";var ax=((ec=ax||{}).Visible="visible",ec.Hidden="hidden",ec);function ag(){let ee=(0,eM.useContext)(am);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}function av(){let ee=(0,eM.useContext)(ay);if(null===ee)throw Error("A is used but it is missing a parent or .");return ee}let ay=(0,eM.createContext)(null);function ab(ee){return"children"in ee?ab(ee.children):ee.current.filter(({el:ee})=>null!==ee.current).filter(({state:ee})=>"visible"===ee).length>0}function aw(ee,en){let er=i3(ee),ei=(0,eM.useRef)([]),eo=i5(),es=ad(),eu=i9((ee,en=i$.Hidden)=>{let eu=ei.current.findIndex(({el:en})=>en===ee);-1!==eu&&(iD(en,{[i$.Unmount](){ei.current.splice(eu,1)},[i$.Hidden](){ei.current[eu].state="hidden"}}),es.microTask(()=>{var ee;!ab(ei)&&eo.current&&(null==(ee=er.current)||ee.call(er))}))}),ec=i9(ee=>{let en=ei.current.find(({el:en})=>en===ee);return en?"visible"!==en.state&&(en.state="visible"):ei.current.push({el:ee,state:"visible"}),()=>eu(ee,i$.Unmount)}),ed=(0,eM.useRef)([]),ef=(0,eM.useRef)(Promise.resolve()),ep=(0,eM.useRef)({enter:[],leave:[],idle:[]}),eh=i9((ee,er,ei)=>{ed.current.splice(0),en&&(en.chains.current[er]=en.chains.current[er].filter(([en])=>en!==ee)),null==en||en.chains.current[er].push([ee,new Promise(ee=>{ed.current.push(ee)})]),null==en||en.chains.current[er].push([ee,new Promise(ee=>{Promise.all(ep.current[er].map(([ee,en])=>en)).then(()=>ee())})]),"enter"===er?ef.current=ef.current.then(()=>null==en?void 0:en.wait.current).then(()=>ei(er)):ei(er)}),em=i9((ee,en,er)=>{Promise.all(ep.current[en].splice(0).map(([ee,en])=>en)).then(()=>{var ee;null==(ee=ed.current.shift())||ee()}).then(()=>er(en))});return(0,eM.useMemo)(()=>({children:ei,register:ec,unregister:eu,onStart:eh,onStop:em,wait:ef,chains:ep}),[ec,eu,ei,eh,em,ep,ef])}function ak(){}ay.displayName="NestingContext";let a_=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function aj(ee){var en;let er={};for(let ei of a_)er[ei]=null!=(en=ee[ei])?en:ak;return er}function aE(ee){let en=(0,eM.useRef)(aj(ee));return(0,eM.useEffect)(()=>{en.current=aj(ee)},[ee]),en}let aO="div",aC=iF.RenderStrategy;function aT(ee,en){var er,ei;let{beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec,enter:ed,enterFrom:ef,enterTo:ep,entered:eh,leave:em,leaveFrom:ex,leaveTo:eg,...ev}=ee,ey=(0,eM.useRef)(null),eb=at(ey,en),ew=null==(er=ev.unmount)||er?i$.Unmount:i$.Hidden,{show:ek,appear:e_,initial:ej}=ag(),[eE,eO]=(0,eM.useState)(ek?"visible":"hidden"),eC=av(),{register:eT,unregister:eS}=eC;(0,eM.useEffect)(()=>eT(ey),[eT,ey]),(0,eM.useEffect)(()=>{if(ew===i$.Hidden&&ey.current){if(ek&&"visible"!==eE){eO("visible");return}return iD(eE,{hidden:()=>eS(ey),visible:()=>eT(ey)})}},[eE,ey,eT,eS,ek,ew]);let eN=i3({base:ah(ev.className),enter:ah(ed),enterFrom:ah(ef),enterTo:ah(ep),entered:ah(eh),leave:ah(em),leaveFrom:ah(ex),leaveTo:ah(eg)}),eI=aE({beforeEnter:eo,afterEnter:es,beforeLeave:eu,afterLeave:ec}),eR=i6();(0,eM.useEffect)(()=>{if(eR&&"visible"===eE&&null===ey.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[ey,eE,eR]);let eA=ej&&!e_,eL=e_&&ek&&ej,eP=!eR||eA?"idle":ek?"enter":"leave",eZ=ap(0),eD=i9(ee=>iD(ee,{enter:()=>{eZ.addFlag(iK.Opening),eI.current.beforeEnter()},leave:()=>{eZ.addFlag(iK.Closing),eI.current.beforeLeave()},idle:()=>{}})),eF=i9(ee=>iD(ee,{enter:()=>{eZ.removeFlag(iK.Opening),eI.current.afterEnter()},leave:()=>{eZ.removeFlag(iK.Closing),eI.current.afterLeave()},idle:()=>{}})),e$=aw(()=>{eO("hidden"),eS(ey)},eC);af({immediate:eL,container:ey,classes:eN,direction:eP,onStart:i3(ee=>{e$.onStart(ey,ee,eD)}),onStop:i3(ee=>{e$.onStop(ey,ee,eF),"leave"!==ee||ab(e$)||(eO("hidden"),eS(ey))})});let eU=ev,eW={ref:eb};return eL?eU={...eU,className:iZ(ev.className,...eN.current.enter,...eN.current.enterFrom)}:(eU.className=iZ(ev.className,null==(ei=ey.current)?void 0:ei.className),""===eU.className&&delete eU.className),eM.createElement(ay.Provider,{value:e$},eM.createElement(iJ,{value:iD(eE,{visible:iK.Open,hidden:iK.Closed})|eZ.flags},iU({ourProps:eW,theirProps:eU,defaultTag:aO,features:aC,visible:"visible"===eE,name:"Transition.Child"})))}function aS(ee,en){let er=null!==(0,eM.useContext)(am),ei=null!==iQ();return eM.createElement(eM.Fragment,null,!er&&ei?eM.createElement(aN,{ref:en,...ee}):eM.createElement(aI,{ref:en,...ee}))}let aN=iG(function(ee,en){let{show:er,appear:ei=!1,unmount:eo=!0,...es}=ee,eu=(0,eM.useRef)(null),ec=at(eu,en);i6();let ed=iQ();if(void 0===er&&null!==ed&&(er=(ed&iK.Open)===iK.Open),![!0,!1].includes(er))throw Error("A is used but it is missing a `show={true | false}` prop.");let[ef,ep]=(0,eM.useState)(er?"visible":"hidden"),eh=aw(()=>{ep("hidden")}),[em,ex]=(0,eM.useState)(!0),eg=(0,eM.useRef)([er]);i4(()=>{!1!==em&&eg.current[eg.current.length-1]!==er&&(eg.current.push(er),ex(!1))},[eg,er]);let ev=(0,eM.useMemo)(()=>({show:er,appear:ei,initial:em}),[er,ei,em]);(0,eM.useEffect)(()=>{if(er)ep("visible");else if(ab(eh)){let ee=eu.current;if(!ee)return;let en=ee.getBoundingClientRect();0===en.x&&0===en.y&&0===en.width&&0===en.height&&ep("hidden")}else ep("hidden")},[er,eh]);let ey={unmount:eo},eb=i9(()=>{var en;em&&ex(!1),null==(en=ee.beforeEnter)||en.call(ee)}),ew=i9(()=>{var en;em&&ex(!1),null==(en=ee.beforeLeave)||en.call(ee)});return eM.createElement(ay.Provider,{value:eh},eM.createElement(am.Provider,{value:ev},iU({ourProps:{...ey,as:eM.Fragment,children:eM.createElement(aI,{ref:ec,...ey,...es,beforeEnter:eb,beforeLeave:ew})},theirProps:{},defaultTag:eM.Fragment,features:aC,visible:"visible"===ef,name:"Transition"})))}),aI=iG(aT),aR=Object.assign(aN,{Child:iG(aS),Root:aN});var aA=er(5674);let aL=null!=(eA=eM.useId)?eA:function(){let ee=i6(),[en,er]=eM.useState(ee?()=>i2.nextId():null);return i4(()=>{null===en&&er(i2.nextId())},[en]),null!=en?""+en:void 0};function aP(ee,en){let[er,ei]=(0,eM.useState)(ee),eo=i3(ee);return i4(()=>ei(eo.current),[eo,ei,...en]),er}var aM=((ed=aM||{}).Space=" ",ed.Enter="Enter",ed.Escape="Escape",ed.Backspace="Backspace",ed.Delete="Delete",ed.ArrowLeft="ArrowLeft",ed.ArrowUp="ArrowUp",ed.ArrowRight="ArrowRight",ed.ArrowDown="ArrowDown",ed.Home="Home",ed.End="End",ed.PageUp="PageUp",ed.PageDown="PageDown",ed.Tab="Tab",ed);function aZ(ee){throw Error("Unexpected object: "+ee)}var aD=((ef=aD||{})[ef.First=0]="First",ef[ef.Previous=1]="Previous",ef[ef.Next=2]="Next",ef[ef.Last=3]="Last",ef[ef.Specific=4]="Specific",ef[ef.Nothing=5]="Nothing",ef);function aF(ee,en){let er=en.resolveItems();if(er.length<=0)return null;let ei=en.resolveActiveIndex(),eo=null!=ei?ei:-1,es=(()=>{switch(ee.focus){case 0:return er.findIndex(ee=>!en.resolveDisabled(ee));case 1:{let ee=er.slice().reverse().findIndex((ee,er,ei)=>(-1===eo||!(ei.length-er-1>=eo))&&!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 2:return er.findIndex((ee,er)=>!(er<=eo)&&!en.resolveDisabled(ee));case 3:{let ee=er.slice().reverse().findIndex(ee=>!en.resolveDisabled(ee));return -1===ee?ee:er.length-1-ee}case 4:return er.findIndex(er=>en.resolveId(er)===ee.id);case 5:return null;default:aZ(ee)}})();return -1===es?ei:es}function a$(ee){let en=ee.parentElement,er=null;for(;en&&!(en instanceof HTMLFieldSetElement);)en instanceof HTMLLegendElement&&(er=en),en=en.parentElement;let ei=(null==en?void 0:en.getAttribute("disabled"))==="";return!(ei&&aU(er))&&ei}function aU(ee){if(!ee)return!1;let en=ee.previousElementSibling;for(;null!==en;){if(en instanceof HTMLLegendElement)return!1;en=en.previousElementSibling}return!0}function aW(ee){return i2.isServer?null:ee instanceof Node?ee.ownerDocument:null!=ee&&ee.hasOwnProperty("current")&&ee.current instanceof Node?ee.current.ownerDocument:document}let az=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(ee=>`${ee}:not([tabindex='-1'])`).join(",");var aH=((ep=aH||{})[ep.First=1]="First",ep[ep.Previous=2]="Previous",ep[ep.Next=4]="Next",ep[ep.Last=8]="Last",ep[ep.WrapAround=16]="WrapAround",ep[ep.NoScroll=32]="NoScroll",ep),aG=((eh=aG||{})[eh.Error=0]="Error",eh[eh.Overflow=1]="Overflow",eh[eh.Success=2]="Success",eh[eh.Underflow=3]="Underflow",eh),aB=((em=aB||{})[em.Previous=-1]="Previous",em[em.Next=1]="Next",em);function aV(ee=document.body){return null==ee?[]:Array.from(ee.querySelectorAll(az)).sort((ee,en)=>Math.sign((ee.tabIndex||Number.MAX_SAFE_INTEGER)-(en.tabIndex||Number.MAX_SAFE_INTEGER)))}var aq=((ex=aq||{})[ex.Strict=0]="Strict",ex[ex.Loose=1]="Loose",ex);function aK(ee,en=0){var er;return ee!==(null==(er=aW(ee))?void 0:er.body)&&iD(en,{0:()=>ee.matches(az),1(){let en=ee;for(;null!==en;){if(en.matches(az))return!0;en=en.parentElement}return!1}})}function aQ(ee){let en=aW(ee);ai().nextFrame(()=>{en&&!aK(en.activeElement,0)&&aY(ee)})}var aJ=((eg=aJ||{})[eg.Keyboard=0]="Keyboard",eg[eg.Mouse=1]="Mouse",eg);function aY(ee){null==ee||ee.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",ee=>{ee.metaKey||ee.altKey||ee.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",ee=>{1===ee.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===ee.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let aX="textarea,input";function a0(ee){var en,er;return null!=(er=null==(en=null==ee?void 0:ee.matches)?void 0:en.call(ee,aX))&&er}function a1(ee,en=ee=>ee){return ee.slice().sort((ee,er)=>{let ei=en(ee),eo=en(er);if(null===ei||null===eo)return 0;let es=ei.compareDocumentPosition(eo);return es&Node.DOCUMENT_POSITION_FOLLOWING?-1:es&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function a2(ee,en){return a4(aV(),en,{relativeTo:ee})}function a4(ee,en,{sorted:er=!0,relativeTo:ei=null,skipElements:eo=[]}={}){let es=Array.isArray(ee)?ee.length>0?ee[0].ownerDocument:document:ee.ownerDocument,eu=Array.isArray(ee)?er?a1(ee):ee:aV(ee);eo.length>0&&eu.length>1&&(eu=eu.filter(ee=>!eo.includes(ee))),ei=null!=ei?ei:es.activeElement;let ec=(()=>{if(5&en)return 1;if(10&en)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ed=(()=>{if(1&en)return 0;if(2&en)return Math.max(0,eu.indexOf(ei))-1;if(4&en)return Math.max(0,eu.indexOf(ei))+1;if(8&en)return eu.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ef=32&en?{preventScroll:!0}:{},ep=0,eh=eu.length,em;do{if(ep>=eh||ep+eh<=0)return 0;let ee=ed+ep;if(16&en)ee=(ee+eh)%eh;else{if(ee<0)return 3;if(ee>=eh)return 1}null==(em=eu[ee])||em.focus(ef),ep+=ec}while(em!==es.activeElement);return 6&en&&a0(em)&&em.select(),2}function a5(ee){var en;if(ee.type)return ee.type;let er=null!=(en=ee.as)?en:"button";if("string"==typeof er&&"button"===er.toLowerCase())return"button"}function a3(ee,en){let[er,ei]=(0,eM.useState)(()=>a5(ee));return i4(()=>{ei(a5(ee))},[ee.type,ee.as]),i4(()=>{er||en.current&&en.current instanceof HTMLButtonElement&&!en.current.hasAttribute("type")&&ei("button")},[er,en]),er}function a7(ee,en,er){let ei=i3(en);(0,eM.useEffect)(()=>{function en(ee){ei.current(ee)}return document.addEventListener(ee,en,er),()=>document.removeEventListener(ee,en,er)},[ee,er])}function a6(ee,en,er){let ei=i3(en);(0,eM.useEffect)(()=>{function en(ee){ei.current(ee)}return window.addEventListener(ee,en,er),()=>window.removeEventListener(ee,en,er)},[ee,er])}function a9(ee,en,er=!0){let ei=(0,eM.useRef)(!1);function eo(er,eo){if(!ei.current||er.defaultPrevented)return;let es=eo(er);if(null!==es&&es.getRootNode().contains(es)&&es.isConnected){for(let en of function ee(en){return"function"==typeof en?ee(en()):Array.isArray(en)||en instanceof Set?en:[en]}(ee)){if(null===en)continue;let ee=en instanceof HTMLElement?en:en.current;if(null!=ee&&ee.contains(es)||er.composed&&er.composedPath().includes(ee))return}return aK(es,aq.Loose)||-1===es.tabIndex||er.preventDefault(),en(er,es)}}(0,eM.useEffect)(()=>{requestAnimationFrame(()=>{ei.current=er})},[er]);let es=(0,eM.useRef)(null);a7("pointerdown",ee=>{var en,er;ei.current&&(es.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),a7("mousedown",ee=>{var en,er;ei.current&&(es.current=(null==(er=null==(en=ee.composedPath)?void 0:en.call(ee))?void 0:er[0])||ee.target)},!0),a7("click",ee=>{es.current&&(eo(ee,()=>es.current),es.current=null)},!0),a7("touchend",ee=>eo(ee,()=>ee.target instanceof HTMLElement?ee.target:null),!0),a6("blur",ee=>eo(ee,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let a8="div";var ot=((ev=ot||{})[ev.None=1]="None",ev[ev.Focusable=2]="Focusable",ev[ev.Hidden=4]="Hidden",ev);let on=iG(function(ee,en){let{features:er=1,...ei}=ee;return iU({ourProps:{ref:en,"aria-hidden":(2&er)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&er)==4&&(2&er)!=2&&{display:"none"}}},theirProps:ei,slot:{},defaultTag:a8,name:"Hidden"})});function or(ee={},en=null,er=[]){for(let[ei,eo]of Object.entries(ee))oo(er,oi(en,ei),eo);return er}function oi(ee,en){return ee?ee+"["+en+"]":en}function oo(ee,en,er){if(Array.isArray(er))for(let[ei,eo]of er.entries())oo(ee,oi(en,ei.toString()),eo);else er instanceof Date?ee.push([en,er.toISOString()]):"boolean"==typeof er?ee.push([en,er?"1":"0"]):"string"==typeof er?ee.push([en,er]):"number"==typeof er?ee.push([en,`${er}`]):null==er?ee.push([en,""]):or(er,en,ee)}function os(ee,en,er){let[ei,eo]=(0,eM.useState)(er),es=void 0!==ee,eu=(0,eM.useRef)(es),ec=(0,eM.useRef)(!1),ed=(0,eM.useRef)(!1);return!es||eu.current||ec.current?es||!eu.current||ed.current||(ed.current=!0,eu.current=es,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(ec.current=!0,eu.current=es,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[es?ee:ei,i9(ee=>(es||eo(ee),null==en?void 0:en(ee)))]}function ol(ee){return[ee.screenX,ee.screenY]}function ou(){let ee=(0,eM.useRef)([-1,-1]);return{wasMoved(en){let er=ol(en);return(ee.current[0]!==er[0]||ee.current[1]!==er[1])&&(ee.current=er,!0)},update(en){ee.current=ol(en)}}}let oc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function od(ee){var en,er;let ei=null!=(en=ee.innerText)?en:"",eo=ee.cloneNode(!0);if(!(eo instanceof HTMLElement))return ei;let es=!1;for(let ee of eo.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))ee.remove(),es=!0;let eu=es?null!=(er=eo.innerText)?er:"":ei;return oc.test(eu)&&(eu=eu.replace(oc,"")),eu}function of(ee){let en=ee.getAttribute("aria-label");if("string"==typeof en)return en.trim();let er=ee.getAttribute("aria-labelledby");if(er){let ee=er.split(" ").map(ee=>{let en=document.getElementById(ee);if(en){let ee=en.getAttribute("aria-label");return"string"==typeof ee?ee.trim():od(en).trim()}return null}).filter(Boolean);if(ee.length>0)return ee.join(", ")}return od(ee).trim()}function op(ee){let en=(0,eM.useRef)(""),er=(0,eM.useRef)("");return i9(()=>{let ei=ee.current;if(!ei)return"";let eo=ei.innerText;if(en.current===eo)return er.current;let es=of(ei).trim().toLowerCase();return en.current=eo,er.current=es,es})}var oh=((ey=oh||{})[ey.Open=0]="Open",ey[ey.Closed=1]="Closed",ey),om=((eb=om||{})[eb.Single=0]="Single",eb[eb.Multi=1]="Multi",eb),ox=((ew=ox||{})[ew.Pointer=0]="Pointer",ew[ew.Other=1]="Other",ew),og=((ek=og||{})[ek.OpenListbox=0]="OpenListbox",ek[ek.CloseListbox=1]="CloseListbox",ek[ek.GoToOption=2]="GoToOption",ek[ek.Search=3]="Search",ek[ek.ClearSearch=4]="ClearSearch",ek[ek.RegisterOption=5]="RegisterOption",ek[ek.UnregisterOption=6]="UnregisterOption",ek[ek.RegisterLabel=7]="RegisterLabel",ek);function ov(ee,en=ee=>ee){let er=null!==ee.activeOptionIndex?ee.options[ee.activeOptionIndex]:null,ei=a1(en(ee.options.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{options:ei,activeOptionIndex:eo}}let oy={1:ee=>ee.dataRef.current.disabled||1===ee.listboxState?ee:{...ee,activeOptionIndex:null,listboxState:1},0(ee){if(ee.dataRef.current.disabled||0===ee.listboxState)return ee;let en=ee.activeOptionIndex,{isSelected:er}=ee.dataRef.current,ei=ee.options.findIndex(ee=>er(ee.dataRef.current.value));return -1!==ei&&(en=ei),{...ee,listboxState:0,activeOptionIndex:en}},2(ee,en){var er;if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let ei=ov(ee),eo=aF(en,{resolveItems:()=>ei.options,resolveActiveIndex:()=>ei.activeOptionIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeOptionIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{if(ee.dataRef.current.disabled||1===ee.listboxState)return ee;let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeOptionIndex?ee.options.slice(ee.activeOptionIndex+er).concat(ee.options.slice(0,ee.activeOptionIndex+er)):ee.options).find(ee=>{var en;return!ee.dataRef.current.disabled&&(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))}),es=eo?ee.options.indexOf(eo):-1;return -1===es||es===ee.activeOptionIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeOptionIndex:es,activationTrigger:1}},4:ee=>ee.dataRef.current.disabled||1===ee.listboxState||""===ee.searchQuery?ee:{...ee,searchQuery:""},5:(ee,en)=>{let er={id:en.id,dataRef:en.dataRef},ei=ov(ee,ee=>[...ee,er]);return null===ee.activeOptionIndex&&ee.dataRef.current.isSelected(en.dataRef.current.value)&&(ei.activeOptionIndex=ei.options.indexOf(er)),{...ee,...ei}},6:(ee,en)=>{let er=ov(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}},7:(ee,en)=>({...ee,labelId:en.id})},ob=(0,eM.createContext)(null);function ow(ee){let en=(0,eM.useContext)(ob);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,ow),en}return en}ob.displayName="ListboxActionsContext";let ok=(0,eM.createContext)(null);function o_(ee){let en=(0,eM.useContext)(ok);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,o_),en}return en}function oj(ee,en){return iD(en.type,oy,ee,en)}ok.displayName="ListboxDataContext";let oE=eM.Fragment;function oO(ee,en){let{value:er,defaultValue:ei,form:eo,name:es,onChange:eu,by:ec=(ee,en)=>ee===en,disabled:ed=!1,horizontal:ef=!1,multiple:ep=!1,...eh}=ee,em=ef?"horizontal":"vertical",ex=at(en),[eg=ep?[]:void 0,ev]=os(er,eu,ei),[ey,eb]=(0,eM.useReducer)(oj,{dataRef:(0,eM.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),ew=(0,eM.useRef)({static:!1,hold:!1}),ek=(0,eM.useRef)(null),e_=(0,eM.useRef)(null),ej=(0,eM.useRef)(null),eE=i9("string"==typeof ec?(ee,en)=>{let er=ec;return(null==ee?void 0:ee[er])===(null==en?void 0:en[er])}:ec),eO=(0,eM.useCallback)(ee=>iD(eC.mode,{1:()=>eg.some(en=>eE(en,ee)),0:()=>eE(eg,ee)}),[eg]),eC=(0,eM.useMemo)(()=>({...ey,value:eg,disabled:ed,mode:ep?1:0,orientation:em,compare:eE,isSelected:eO,optionsPropsRef:ew,labelRef:ek,buttonRef:e_,optionsRef:ej}),[eg,ed,ep,ey]);i4(()=>{ey.dataRef.current=eC},[eC]),a9([eC.buttonRef,eC.optionsRef],(ee,en)=>{var er;eb({type:1}),aK(en,aq.Loose)||(ee.preventDefault(),null==(er=eC.buttonRef.current)||er.focus())},0===eC.listboxState);let eT=(0,eM.useMemo)(()=>({open:0===eC.listboxState,disabled:ed,value:eg}),[eC,ed,eg]),eS=i9(ee=>{let en=eC.options.find(en=>en.id===ee);en&&eZ(en.dataRef.current.value)}),eN=i9(()=>{if(null!==eC.activeOptionIndex){let{dataRef:ee,id:en}=eC.options[eC.activeOptionIndex];eZ(ee.current.value),eb({type:2,focus:aD.Specific,id:en})}}),eI=i9(()=>eb({type:0})),eR=i9(()=>eb({type:1})),eA=i9((ee,en,er)=>ee===aD.Specific?eb({type:2,focus:aD.Specific,id:en,trigger:er}):eb({type:2,focus:ee,trigger:er})),eL=i9((ee,en)=>(eb({type:5,id:ee,dataRef:en}),()=>eb({type:6,id:ee}))),eP=i9(ee=>(eb({type:7,id:ee}),()=>eb({type:7,id:null}))),eZ=i9(ee=>iD(eC.mode,{0:()=>null==ev?void 0:ev(ee),1(){let en=eC.value.slice(),er=en.findIndex(en=>eE(en,ee));return -1===er?en.push(ee):en.splice(er,1),null==ev?void 0:ev(en)}})),eD=i9(ee=>eb({type:3,value:ee})),eF=i9(()=>eb({type:4})),e$=(0,eM.useMemo)(()=>({onChange:eZ,registerOption:eL,registerLabel:eP,goToOption:eA,closeListbox:eR,openListbox:eI,selectActiveOption:eN,selectOption:eS,search:eD,clearSearch:eF}),[]),eU={ref:ex},eW=(0,eM.useRef)(null),ez=ad();return(0,eM.useEffect)(()=>{eW.current&&void 0!==ei&&ez.addEventListener(eW.current,"reset",()=>{null==ev||ev(ei)})},[eW,ev]),eM.createElement(ob.Provider,{value:e$},eM.createElement(ok.Provider,{value:eC},eM.createElement(iJ,{value:iD(eC.listboxState,{0:iK.Open,1:iK.Closed})},null!=es&&null!=eg&&or({[es]:eg}).map(([ee,en],er)=>eM.createElement(on,{features:ot.Hidden,ref:0===er?ee=>{var en;eW.current=null!=(en=null==ee?void 0:ee.closest("form"))?en:null}:void 0,...iB({key:ee,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:eo,name:ee,value:en})})),iU({ourProps:eU,theirProps:eh,slot:eT,defaultTag:oE,name:"Listbox"}))))}let oC="button";function oT(ee,en){var er;let ei=aL(),{id:eo=`headlessui-listbox-button-${ei}`,...es}=ee,eu=o_("Listbox.Button"),ec=ow("Listbox.Button"),ed=at(eu.buttonRef,en),ef=ad(),ep=i9(ee=>{switch(ee.key){case aM.Space:case aM.Enter:case aM.ArrowDown:ee.preventDefault(),ec.openListbox(),ef.nextFrame(()=>{eu.value||ec.goToOption(aD.First)});break;case aM.ArrowUp:ee.preventDefault(),ec.openListbox(),ef.nextFrame(()=>{eu.value||ec.goToOption(aD.Last)})}}),eh=i9(ee=>{ee.key===aM.Space&&ee.preventDefault()}),em=i9(ee=>{if(a$(ee.currentTarget))return ee.preventDefault();0===eu.listboxState?(ec.closeListbox(),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(ee.preventDefault(),ec.openListbox())}),ex=aP(()=>{if(eu.labelId)return[eu.labelId,eo].join(" ")},[eu.labelId,eo]),eg=(0,eM.useMemo)(()=>({open:0===eu.listboxState,disabled:eu.disabled,value:eu.value}),[eu]);return iU({ourProps:{ref:ed,id:eo,type:a3(ee,eu.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(er=eu.optionsRef.current)?void 0:er.id,"aria-expanded":0===eu.listboxState,"aria-labelledby":ex,disabled:eu.disabled,onKeyDown:ep,onKeyUp:eh,onClick:em},theirProps:es,slot:eg,defaultTag:oC,name:"Listbox.Button"})}let oS="label";function oN(ee,en){let er=aL(),{id:ei=`headlessui-listbox-label-${er}`,...eo}=ee,es=o_("Listbox.Label"),eu=ow("Listbox.Label"),ec=at(es.labelRef,en);return i4(()=>eu.registerLabel(ei),[ei]),iU({ourProps:{ref:ec,id:ei,onClick:i9(()=>{var ee;return null==(ee=es.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})},theirProps:eo,slot:(0,eM.useMemo)(()=>({open:0===es.listboxState,disabled:es.disabled}),[es]),defaultTag:oS,name:"Listbox.Label"})}let oI="ul",oR=iF.RenderStrategy|iF.Static;function oA(ee,en){var er;let ei=aL(),{id:eo=`headlessui-listbox-options-${ei}`,...es}=ee,eu=o_("Listbox.Options"),ec=ow("Listbox.Options"),ed=at(eu.optionsRef,en),ef=ad(),ep=ad(),eh=iQ(),em=null!==eh?(eh&iK.Open)===iK.Open:0===eu.listboxState;(0,eM.useEffect)(()=>{var ee;let en=eu.optionsRef.current;en&&0===eu.listboxState&&en!==(null==(ee=aW(en))?void 0:ee.activeElement)&&en.focus({preventScroll:!0})},[eu.listboxState,eu.optionsRef]);let ex=i9(ee=>{switch(ep.dispose(),ee.key){case aM.Space:if(""!==eu.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ec.search(ee.key);case aM.Enter:if(ee.preventDefault(),ee.stopPropagation(),null!==eu.activeOptionIndex){let{dataRef:ee}=eu.options[eu.activeOptionIndex];ec.onChange(ee.current.value)}0===eu.mode&&(ec.closeListbox(),ai().nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}));break;case iD(eu.orientation,{vertical:aM.ArrowDown,horizontal:aM.ArrowRight}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(aD.Next);case iD(eu.orientation,{vertical:aM.ArrowUp,horizontal:aM.ArrowLeft}):return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(aD.Previous);case aM.Home:case aM.PageUp:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(aD.First);case aM.End:case aM.PageDown:return ee.preventDefault(),ee.stopPropagation(),ec.goToOption(aD.Last);case aM.Escape:return ee.preventDefault(),ee.stopPropagation(),ec.closeListbox(),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});case aM.Tab:ee.preventDefault(),ee.stopPropagation();break;default:1===ee.key.length&&(ec.search(ee.key),ep.setTimeout(()=>ec.clearSearch(),350))}}),eg=aP(()=>{var ee,en,er;return null!=(er=null==(ee=eu.labelRef.current)?void 0:ee.id)?er:null==(en=eu.buttonRef.current)?void 0:en.id},[eu.labelRef.current,eu.buttonRef.current]),ev=(0,eM.useMemo)(()=>({open:0===eu.listboxState}),[eu]);return iU({ourProps:{"aria-activedescendant":null===eu.activeOptionIndex||null==(er=eu.options[eu.activeOptionIndex])?void 0:er.id,"aria-multiselectable":1===eu.mode||void 0,"aria-labelledby":eg,"aria-orientation":eu.orientation,id:eo,onKeyDown:ex,role:"listbox",tabIndex:0,ref:ed},theirProps:es,slot:ev,defaultTag:oI,features:oR,visible:em,name:"Listbox.Options"})}let oL="li";function oP(ee,en){let er=aL(),{id:ei=`headlessui-listbox-option-${er}`,disabled:eo=!1,value:es,...eu}=ee,ec=o_("Listbox.Option"),ed=ow("Listbox.Option"),ef=null!==ec.activeOptionIndex&&ec.options[ec.activeOptionIndex].id===ei,ep=ec.isSelected(es),eh=(0,eM.useRef)(null),em=op(eh),ex=i3({disabled:eo,value:es,domRef:eh,get textValue(){return em()}}),eg=at(en,eh);i4(()=>{if(0!==ec.listboxState||!ef||0===ec.activationTrigger)return;let ee=ai();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=eh.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eh,ef,ec.listboxState,ec.activationTrigger,ec.activeOptionIndex]),i4(()=>ed.registerOption(ei,ex),[ex,ei]);let ev=i9(ee=>{if(eo)return ee.preventDefault();ed.onChange(es),0===ec.mode&&(ed.closeListbox(),ai().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})}))}),ey=i9(()=>{if(eo)return ed.goToOption(aD.Nothing);ed.goToOption(aD.Specific,ei)}),eb=ou(),ew=i9(ee=>eb.update(ee)),ek=i9(ee=>{eb.wasMoved(ee)&&(eo||ef||ed.goToOption(aD.Specific,ei,0))}),e_=i9(ee=>{eb.wasMoved(ee)&&(eo||ef&&ed.goToOption(aD.Nothing))}),ej=(0,eM.useMemo)(()=>({active:ef,selected:ep,disabled:eo}),[ef,ep,eo]);return iU({ourProps:{id:ei,ref:eg,role:"option",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,"aria-selected":ep,disabled:void 0,onClick:ev,onFocus:ey,onPointerEnter:ew,onMouseEnter:ew,onPointerMove:ek,onMouseMove:ek,onPointerLeave:e_,onMouseLeave:e_},theirProps:eu,slot:ej,defaultTag:oL,name:"Listbox.Option"})}let oM=Object.assign(iG(oO),{Button:iG(oT),Label:iG(oN),Options:iG(oA),Option:iG(oP)});var oZ=er(9581),oD=er(1893),oF=er.n(oD);function o$(){return(o$=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=0||(eo[er]=ee[er]);return eo}var oW=["keyOverride"],oz=["crossOrigin"],oH={templateTitle:"",noindex:!1,nofollow:!1,norobots:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},oG=function(ee,en,er){void 0===en&&(en=[]);var ei=void 0===er?{}:er,eo=ei.defaultWidth,es=ei.defaultHeight;return en.reduce(function(en,er,ei){return en.push(eM.createElement("meta",{key:"og:"+ee+":0"+ei,property:"og:"+ee,content:er.url})),er.alt&&en.push(eM.createElement("meta",{key:"og:"+ee+":alt0"+ei,property:"og:"+ee+":alt",content:er.alt})),er.secureUrl&&en.push(eM.createElement("meta",{key:"og:"+ee+":secure_url0"+ei,property:"og:"+ee+":secure_url",content:er.secureUrl.toString()})),er.type&&en.push(eM.createElement("meta",{key:"og:"+ee+":type0"+ei,property:"og:"+ee+":type",content:er.type.toString()})),er.width?en.push(eM.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:er.width.toString()})):eo&&en.push(eM.createElement("meta",{key:"og:"+ee+":width0"+ei,property:"og:"+ee+":width",content:eo.toString()})),er.height?en.push(eM.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:er.height.toString()})):es&&en.push(eM.createElement("meta",{key:"og:"+ee+":height"+ei,property:"og:"+ee+":height",content:es.toString()})),en},[])},oB=function(ee){var en,er,ei,eo,es,eu=[];ee.titleTemplate&&(oH.templateTitle=ee.titleTemplate);var ec="";ee.title?(ec=ee.title,oH.templateTitle&&(ec=oH.templateTitle.replace(/%s/g,function(){return ec}))):ee.defaultTitle&&(ec=ee.defaultTitle),ec&&eu.push(eM.createElement("title",{key:"title"},ec));var ed=void 0===ee.noindex?oH.noindex||ee.dangerouslySetAllPagesToNoIndex:ee.noindex,ef=void 0===ee.nofollow?oH.nofollow||ee.dangerouslySetAllPagesToNoFollow:ee.nofollow,ep=ee.norobots||oH.norobots,eh="";if(ee.robotsProps){var em=ee.robotsProps,ex=em.nosnippet,eg=em.maxSnippet,ev=em.maxImagePreview,ey=em.maxVideoPreview,eb=em.noarchive,ew=em.noimageindex,ek=em.notranslate,e_=em.unavailableAfter;eh=(ex?",nosnippet":"")+(eg?",max-snippet:"+eg:"")+(ev?",max-image-preview:"+ev:"")+(eb?",noarchive":"")+(e_?",unavailable_after:"+e_:"")+(ew?",noimageindex":"")+(ey?",max-video-preview:"+ey:"")+(ek?",notranslate":"")}if(ee.norobots&&(oH.norobots=!0),ed||ef?(ee.dangerouslySetAllPagesToNoIndex&&(oH.noindex=!0),ee.dangerouslySetAllPagesToNoFollow&&(oH.nofollow=!0),eu.push(eM.createElement("meta",{key:"robots",name:"robots",content:(ed?"noindex":"index")+","+(ef?"nofollow":"follow")+eh}))):(!ep||eh)&&eu.push(eM.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+eh})),ee.description&&eu.push(eM.createElement("meta",{key:"description",name:"description",content:ee.description})),ee.themeColor&&eu.push(eM.createElement("meta",{key:"theme-color",name:"theme-color",content:ee.themeColor})),ee.mobileAlternate&&eu.push(eM.createElement("link",{rel:"alternate",key:"mobileAlternate",media:ee.mobileAlternate.media,href:ee.mobileAlternate.href})),ee.languageAlternates&&ee.languageAlternates.length>0&&ee.languageAlternates.forEach(function(ee){eu.push(eM.createElement("link",{rel:"alternate",key:"languageAlternate-"+ee.hrefLang,hrefLang:ee.hrefLang,href:ee.href}))}),ee.twitter&&(ee.twitter.cardType&&eu.push(eM.createElement("meta",{key:"twitter:card",name:"twitter:card",content:ee.twitter.cardType})),ee.twitter.site&&eu.push(eM.createElement("meta",{key:"twitter:site",name:"twitter:site",content:ee.twitter.site})),ee.twitter.handle&&eu.push(eM.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:ee.twitter.handle}))),ee.facebook&&ee.facebook.appId&&eu.push(eM.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:ee.facebook.appId})),(null!=(en=ee.openGraph)&&en.title||ec)&&eu.push(eM.createElement("meta",{key:"og:title",property:"og:title",content:(null==(eo=ee.openGraph)?void 0:eo.title)||ec})),(null!=(er=ee.openGraph)&&er.description||ee.description)&&eu.push(eM.createElement("meta",{key:"og:description",property:"og:description",content:(null==(es=ee.openGraph)?void 0:es.description)||ee.description})),ee.openGraph){if((ee.openGraph.url||ee.canonical)&&eu.push(eM.createElement("meta",{key:"og:url",property:"og:url",content:ee.openGraph.url||ee.canonical})),ee.openGraph.type){var ej=ee.openGraph.type.toLowerCase();eu.push(eM.createElement("meta",{key:"og:type",property:"og:type",content:ej})),"profile"===ej&&ee.openGraph.profile?(ee.openGraph.profile.firstName&&eu.push(eM.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:ee.openGraph.profile.firstName})),ee.openGraph.profile.lastName&&eu.push(eM.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:ee.openGraph.profile.lastName})),ee.openGraph.profile.username&&eu.push(eM.createElement("meta",{key:"profile:username",property:"profile:username",content:ee.openGraph.profile.username})),ee.openGraph.profile.gender&&eu.push(eM.createElement("meta",{key:"profile:gender",property:"profile:gender",content:ee.openGraph.profile.gender}))):"book"===ej&&ee.openGraph.book?(ee.openGraph.book.authors&&ee.openGraph.book.authors.length&&ee.openGraph.book.authors.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"book:author:0"+en,property:"book:author",content:ee}))}),ee.openGraph.book.isbn&&eu.push(eM.createElement("meta",{key:"book:isbn",property:"book:isbn",content:ee.openGraph.book.isbn})),ee.openGraph.book.releaseDate&&eu.push(eM.createElement("meta",{key:"book:release_date",property:"book:release_date",content:ee.openGraph.book.releaseDate})),ee.openGraph.book.tags&&ee.openGraph.book.tags.length&&ee.openGraph.book.tags.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"book:tag:0"+en,property:"book:tag",content:ee}))})):"article"===ej&&ee.openGraph.article?(ee.openGraph.article.publishedTime&&eu.push(eM.createElement("meta",{key:"article:published_time",property:"article:published_time",content:ee.openGraph.article.publishedTime})),ee.openGraph.article.modifiedTime&&eu.push(eM.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:ee.openGraph.article.modifiedTime})),ee.openGraph.article.expirationTime&&eu.push(eM.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:ee.openGraph.article.expirationTime})),ee.openGraph.article.authors&&ee.openGraph.article.authors.length&&ee.openGraph.article.authors.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"article:author:0"+en,property:"article:author",content:ee}))}),ee.openGraph.article.section&&eu.push(eM.createElement("meta",{key:"article:section",property:"article:section",content:ee.openGraph.article.section})),ee.openGraph.article.tags&&ee.openGraph.article.tags.length&&ee.openGraph.article.tags.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"article:tag:0"+en,property:"article:tag",content:ee}))})):("video.movie"===ej||"video.episode"===ej||"video.tv_show"===ej||"video.other"===ej)&&ee.openGraph.video&&(ee.openGraph.video.actors&&ee.openGraph.video.actors.length&&ee.openGraph.video.actors.forEach(function(ee,en){ee.profile&&eu.push(eM.createElement("meta",{key:"video:actor:0"+en,property:"video:actor",content:ee.profile})),ee.role&&eu.push(eM.createElement("meta",{key:"video:actor:role:0"+en,property:"video:actor:role",content:ee.role}))}),ee.openGraph.video.directors&&ee.openGraph.video.directors.length&&ee.openGraph.video.directors.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"video:director:0"+en,property:"video:director",content:ee}))}),ee.openGraph.video.writers&&ee.openGraph.video.writers.length&&ee.openGraph.video.writers.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"video:writer:0"+en,property:"video:writer",content:ee}))}),ee.openGraph.video.duration&&eu.push(eM.createElement("meta",{key:"video:duration",property:"video:duration",content:ee.openGraph.video.duration.toString()})),ee.openGraph.video.releaseDate&&eu.push(eM.createElement("meta",{key:"video:release_date",property:"video:release_date",content:ee.openGraph.video.releaseDate})),ee.openGraph.video.tags&&ee.openGraph.video.tags.length&&ee.openGraph.video.tags.forEach(function(ee,en){eu.push(eM.createElement("meta",{key:"video:tag:0"+en,property:"video:tag",content:ee}))}),ee.openGraph.video.series&&eu.push(eM.createElement("meta",{key:"video:series",property:"video:series",content:ee.openGraph.video.series})))}ee.defaultOpenGraphImageWidth&&(oH.defaultOpenGraphImageWidth=ee.defaultOpenGraphImageWidth),ee.defaultOpenGraphImageHeight&&(oH.defaultOpenGraphImageHeight=ee.defaultOpenGraphImageHeight),ee.openGraph.images&&ee.openGraph.images.length&&eu.push.apply(eu,oG("image",ee.openGraph.images,{defaultWidth:oH.defaultOpenGraphImageWidth,defaultHeight:oH.defaultOpenGraphImageHeight})),ee.defaultOpenGraphVideoWidth&&(oH.defaultOpenGraphVideoWidth=ee.defaultOpenGraphVideoWidth),ee.defaultOpenGraphVideoHeight&&(oH.defaultOpenGraphVideoHeight=ee.defaultOpenGraphVideoHeight),ee.openGraph.videos&&ee.openGraph.videos.length&&eu.push.apply(eu,oG("video",ee.openGraph.videos,{defaultWidth:oH.defaultOpenGraphVideoWidth,defaultHeight:oH.defaultOpenGraphVideoHeight})),ee.openGraph.audio&&eu.push.apply(eu,oG("audio",ee.openGraph.audio)),ee.openGraph.locale&&eu.push(eM.createElement("meta",{key:"og:locale",property:"og:locale",content:ee.openGraph.locale})),(ee.openGraph.siteName||ee.openGraph.site_name)&&eu.push(eM.createElement("meta",{key:"og:site_name",property:"og:site_name",content:ee.openGraph.siteName||ee.openGraph.site_name}))}return ee.canonical&&eu.push(eM.createElement("link",{rel:"canonical",href:ee.canonical,key:"canonical"})),ee.additionalMetaTags&&ee.additionalMetaTags.length>0&&ee.additionalMetaTags.forEach(function(ee){var en,er,ei=ee.keyOverride,eo=oU(ee,oW);eu.push(eM.createElement("meta",o$({key:"meta:"+(null!=(en=null!=(er=null!=ei?ei:eo.name)?er:eo.property)?en:eo.httpEquiv)},eo)))}),null!=(ei=ee.additionalLinkTags)&&ei.length&&ee.additionalLinkTags.forEach(function(ee){var en,er=ee.crossOrigin,ei=oU(ee,oz),eo="anonymous"===er||"use-credentials"===er||""===er?er:void 0;eu.push(eM.createElement("link",o$({key:"link"+(null!=(en=ei.keyOverride)?en:ei.href)+ei.rel},ei,{crossOrigin:eo})))}),eu},oV=function(ee){return eM.createElement(oF(),null,oB(ee))},oq=function(ee){var en=ee.title,er=ee.themeColor,ei=ee.noindex,eo=ee.nofollow,es=ee.robotsProps,eu=ee.description,ec=ee.canonical,ed=ee.openGraph,ef=ee.facebook,ep=ee.twitter,eh=ee.additionalMetaTags,em=ee.titleTemplate,ex=ee.defaultTitle,eg=ee.mobileAlternate,ev=ee.languageAlternates,ey=ee.additionalLinkTags;return eM.createElement(eM.Fragment,null,eM.createElement(oV,{title:en,themeColor:er,noindex:ei,nofollow:eo,robotsProps:es,description:eu,canonical:ec,facebook:ef,openGraph:ed,additionalMetaTags:eh,twitter:ep,titleTemplate:em,defaultTitle:ex,mobileAlternate:eg,languageAlternates:ev,additionalLinkTags:ey}))};function oK({container:ee,accept:en,walk:er,enabled:ei=!0}){let eo=(0,eM.useRef)(en),es=(0,eM.useRef)(er);(0,eM.useEffect)(()=>{eo.current=en,es.current=er},[en,er]),i4(()=>{if(!ee||!ei)return;let en=aW(ee);if(!en)return;let er=eo.current,eu=es.current,ec=Object.assign(ee=>er(ee),{acceptNode:er}),ed=en.createTreeWalker(ee,NodeFilter.SHOW_ELEMENT,ec,!1);for(;ed.nextNode();)eu(ed.currentNode)},[ee,ei,eo,es])}function oQ(...ee){return(0,eM.useMemo)(()=>aW(...ee),[...ee])}RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g");var oJ=((e_=oJ||{})[e_.Open=0]="Open",e_[e_.Closed=1]="Closed",e_),oY=((ej=oY||{})[ej.Pointer=0]="Pointer",ej[ej.Other=1]="Other",ej),oX=((eE=oX||{})[eE.OpenMenu=0]="OpenMenu",eE[eE.CloseMenu=1]="CloseMenu",eE[eE.GoToItem=2]="GoToItem",eE[eE.Search=3]="Search",eE[eE.ClearSearch=4]="ClearSearch",eE[eE.RegisterItem=5]="RegisterItem",eE[eE.UnregisterItem=6]="UnregisterItem",eE);function o0(ee,en=ee=>ee){let er=null!==ee.activeItemIndex?ee.items[ee.activeItemIndex]:null,ei=a1(en(ee.items.slice()),ee=>ee.dataRef.current.domRef.current),eo=er?ei.indexOf(er):null;return -1===eo&&(eo=null),{items:ei,activeItemIndex:eo}}let o1={1:ee=>1===ee.menuState?ee:{...ee,activeItemIndex:null,menuState:1},0:ee=>0===ee.menuState?ee:{...ee,__demoMode:!1,menuState:0},2:(ee,en)=>{var er;let ei=o0(ee),eo=aF(en,{resolveItems:()=>ei.items,resolveActiveIndex:()=>ei.activeItemIndex,resolveId:ee=>ee.id,resolveDisabled:ee=>ee.dataRef.current.disabled});return{...ee,...ei,searchQuery:"",activeItemIndex:eo,activationTrigger:null!=(er=en.trigger)?er:1}},3:(ee,en)=>{let er=""!==ee.searchQuery?0:1,ei=ee.searchQuery+en.value.toLowerCase(),eo=(null!==ee.activeItemIndex?ee.items.slice(ee.activeItemIndex+er).concat(ee.items.slice(0,ee.activeItemIndex+er)):ee.items).find(ee=>{var en;return(null==(en=ee.dataRef.current.textValue)?void 0:en.startsWith(ei))&&!ee.dataRef.current.disabled}),es=eo?ee.items.indexOf(eo):-1;return -1===es||es===ee.activeItemIndex?{...ee,searchQuery:ei}:{...ee,searchQuery:ei,activeItemIndex:es,activationTrigger:1}},4:ee=>""===ee.searchQuery?ee:{...ee,searchQuery:"",searchActiveItemIndex:null},5:(ee,en)=>{let er=o0(ee,ee=>[...ee,{id:en.id,dataRef:en.dataRef}]);return{...ee,...er}},6:(ee,en)=>{let er=o0(ee,ee=>{let er=ee.findIndex(ee=>ee.id===en.id);return -1!==er&&ee.splice(er,1),ee});return{...ee,...er,activationTrigger:1}}},o2=(0,eM.createContext)(null);function o4(ee){let en=(0,eM.useContext)(o2);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,o4),en}return en}function o5(ee,en){return iD(en.type,o1,ee,en)}o2.displayName="MenuContext";let o3=eM.Fragment;function o7(ee,en){let{__demoMode:er=!1,...ei}=ee,eo=(0,eM.useReducer)(o5,{__demoMode:er,menuState:er?0:1,buttonRef:(0,eM.createRef)(),itemsRef:(0,eM.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:es,itemsRef:eu,buttonRef:ec},ed]=eo,ef=at(en);a9([ec,eu],(ee,en)=>{var er;ed({type:1}),aK(en,aq.Loose)||(ee.preventDefault(),null==(er=ec.current)||er.focus())},0===es);let ep=i9(()=>{ed({type:1})}),eh=(0,eM.useMemo)(()=>({open:0===es,close:ep}),[es,ep]),em={ref:ef};return eM.createElement(o2.Provider,{value:eo},eM.createElement(iJ,{value:iD(es,{0:iK.Open,1:iK.Closed})},iU({ourProps:em,theirProps:ei,slot:eh,defaultTag:o3,name:"Menu"})))}let o6="button";function o9(ee,en){var er;let ei=aL(),{id:eo=`headlessui-menu-button-${ei}`,...es}=ee,[eu,ec]=o4("Menu.Button"),ed=at(eu.buttonRef,en),ef=ad(),ep=i9(ee=>{switch(ee.key){case aM.Space:case aM.Enter:case aM.ArrowDown:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ef.nextFrame(()=>ec({type:2,focus:aD.First}));break;case aM.ArrowUp:ee.preventDefault(),ee.stopPropagation(),ec({type:0}),ef.nextFrame(()=>ec({type:2,focus:aD.Last}))}}),eh=i9(ee=>{ee.key===aM.Space&&ee.preventDefault()}),em=i9(en=>{if(a$(en.currentTarget))return en.preventDefault();ee.disabled||(0===eu.menuState?(ec({type:1}),ef.nextFrame(()=>{var ee;return null==(ee=eu.buttonRef.current)?void 0:ee.focus({preventScroll:!0})})):(en.preventDefault(),ec({type:0})))}),ex=(0,eM.useMemo)(()=>({open:0===eu.menuState}),[eu]);return iU({ourProps:{ref:ed,id:eo,type:a3(ee,eu.buttonRef),"aria-haspopup":"menu","aria-controls":null==(er=eu.itemsRef.current)?void 0:er.id,"aria-expanded":0===eu.menuState,onKeyDown:ep,onKeyUp:eh,onClick:em},theirProps:es,slot:ex,defaultTag:o6,name:"Menu.Button"})}let o8="div",st=iF.RenderStrategy|iF.Static;function sn(ee,en){var er,ei;let eo=aL(),{id:es=`headlessui-menu-items-${eo}`,...eu}=ee,[ec,ed]=o4("Menu.Items"),ef=at(ec.itemsRef,en),ep=oQ(ec.itemsRef),eh=ad(),em=iQ(),ex=null!==em?(em&iK.Open)===iK.Open:0===ec.menuState;(0,eM.useEffect)(()=>{let ee=ec.itemsRef.current;ee&&0===ec.menuState&&ee!==(null==ep?void 0:ep.activeElement)&&ee.focus({preventScroll:!0})},[ec.menuState,ec.itemsRef,ep]),oK({container:ec.itemsRef.current,enabled:0===ec.menuState,accept:ee=>"menuitem"===ee.getAttribute("role")?NodeFilter.FILTER_REJECT:ee.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(ee){ee.setAttribute("role","none")}});let eg=i9(ee=>{var en,er;switch(eh.dispose(),ee.key){case aM.Space:if(""!==ec.searchQuery)return ee.preventDefault(),ee.stopPropagation(),ed({type:3,value:ee.key});case aM.Enter:if(ee.preventDefault(),ee.stopPropagation(),ed({type:1}),null!==ec.activeItemIndex){let{dataRef:ee}=ec.items[ec.activeItemIndex];null==(er=null==(en=ee.current)?void 0:en.domRef.current)||er.click()}aQ(ec.buttonRef.current);break;case aM.ArrowDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:aD.Next});case aM.ArrowUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:aD.Previous});case aM.Home:case aM.PageUp:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:aD.First});case aM.End:case aM.PageDown:return ee.preventDefault(),ee.stopPropagation(),ed({type:2,focus:aD.Last});case aM.Escape:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),ai().nextFrame(()=>{var ee;return null==(ee=ec.buttonRef.current)?void 0:ee.focus({preventScroll:!0})});break;case aM.Tab:ee.preventDefault(),ee.stopPropagation(),ed({type:1}),ai().nextFrame(()=>{a2(ec.buttonRef.current,ee.shiftKey?aH.Previous:aH.Next)});break;default:1===ee.key.length&&(ed({type:3,value:ee.key}),eh.setTimeout(()=>ed({type:4}),350))}}),ev=i9(ee=>{ee.key===aM.Space&&ee.preventDefault()}),ey=(0,eM.useMemo)(()=>({open:0===ec.menuState}),[ec]);return iU({ourProps:{"aria-activedescendant":null===ec.activeItemIndex||null==(er=ec.items[ec.activeItemIndex])?void 0:er.id,"aria-labelledby":null==(ei=ec.buttonRef.current)?void 0:ei.id,id:es,onKeyDown:eg,onKeyUp:ev,role:"menu",tabIndex:0,ref:ef},theirProps:eu,slot:ey,defaultTag:o8,features:st,visible:ex,name:"Menu.Items"})}let sr=eM.Fragment;function si(ee,en){let er=aL(),{id:ei=`headlessui-menu-item-${er}`,disabled:eo=!1,...es}=ee,[eu,ec]=o4("Menu.Item"),ed=null!==eu.activeItemIndex&&eu.items[eu.activeItemIndex].id===ei,ef=(0,eM.useRef)(null),ep=at(en,ef);i4(()=>{if(eu.__demoMode||0!==eu.menuState||!ed||0===eu.activationTrigger)return;let ee=ai();return ee.requestAnimationFrame(()=>{var ee,en;null==(en=null==(ee=ef.current)?void 0:ee.scrollIntoView)||en.call(ee,{block:"nearest"})}),ee.dispose},[eu.__demoMode,ef,ed,eu.menuState,eu.activationTrigger,eu.activeItemIndex]);let eh=op(ef),em=(0,eM.useRef)({disabled:eo,domRef:ef,get textValue(){return eh()}});i4(()=>{em.current.disabled=eo},[em,eo]),i4(()=>(ec({type:5,id:ei,dataRef:em}),()=>ec({type:6,id:ei})),[em,ei]);let ex=i9(()=>{ec({type:1})}),eg=i9(ee=>{if(eo)return ee.preventDefault();ec({type:1}),aQ(eu.buttonRef.current)}),ev=i9(()=>{if(eo)return ec({type:2,focus:aD.Nothing});ec({type:2,focus:aD.Specific,id:ei})}),ey=ou(),eb=i9(ee=>ey.update(ee)),ew=i9(ee=>{ey.wasMoved(ee)&&(eo||ed||ec({type:2,focus:aD.Specific,id:ei,trigger:0}))}),ek=i9(ee=>{ey.wasMoved(ee)&&(eo||ed&&ec({type:2,focus:aD.Nothing}))}),e_=(0,eM.useMemo)(()=>({active:ed,disabled:eo,close:ex}),[ed,eo,ex]);return iU({ourProps:{id:ei,ref:ep,role:"menuitem",tabIndex:!0===eo?void 0:-1,"aria-disabled":!0===eo||void 0,disabled:void 0,onClick:eg,onFocus:ev,onPointerEnter:eb,onMouseEnter:eb,onPointerMove:ew,onMouseMove:ew,onPointerLeave:ek,onMouseLeave:ek},theirProps:es,slot:e_,defaultTag:sr,name:"Menu.Item"})}let so=Object.assign(iG(o7),{Button:iG(o9),Items:iG(sn),Item:iG(si)}),ss=ee=>"object"==typeof ee&&null!=ee&&1===ee.nodeType,sl=(ee,en)=>(!en||"hidden"!==ee)&&"visible"!==ee&&"clip"!==ee,su=(ee,en)=>{if(ee.clientHeight{let en=(ee=>{if(!ee.ownerDocument||!ee.ownerDocument.defaultView)return null;try{return ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ee);return!!en&&(en.clientHeightesen||es>ee&&eu=en&&ec>=er?es-ee-ei:eu>en&&ecer?eu-en+eo:0,sd=ee=>{let en=ee.parentElement;return null==en?ee.getRootNode().host||null:en},sf=(ee,en)=>{var er,ei,eo,es;if("undefined"==typeof document)return[];let{scrollMode:eu,block:ec,inline:ed,boundary:ef,skipOverflowHiddenElements:ep}=en,eh="function"==typeof ef?ef:ee=>ee!==ef;if(!ss(ee))throw TypeError("Invalid target");let em=document.scrollingElement||document.documentElement,ex=[],eg=ee;for(;ss(eg)&&eh(eg);){if((eg=sd(eg))===em){ex.push(eg);break}null!=eg&&eg===document.body&&su(eg)&&!su(document.documentElement)||null!=eg&&su(eg,ep)&&ex.push(eg)}let ev=null!=(ei=null==(er=window.visualViewport)?void 0:er.width)?ei:innerWidth,ey=null!=(es=null==(eo=window.visualViewport)?void 0:eo.height)?es:innerHeight,{scrollX:eb,scrollY:ew}=window,{height:ek,width:e_,top:ej,right:eE,bottom:eO,left:eC}=ee.getBoundingClientRect(),{top:eT,right:eS,bottom:eN,left:eI}=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee),eR="start"===ec||"nearest"===ec?ej-eT:"end"===ec?eO+eN:ej+ek/2-eT+eN,eA="center"===ed?eC+e_/2-eI+eS:"end"===ed?eE+eS:eC-eI,eL=[];for(let ee=0;ee=0&&eC>=0&&eO<=ey&&eE<=ev&&ej>=eo&&eO<=ef&&eC>=ep&&eE<=es)break;let eh=getComputedStyle(en),eg=parseInt(eh.borderLeftWidth,10),eT=parseInt(eh.borderTopWidth,10),eS=parseInt(eh.borderRightWidth,10),eN=parseInt(eh.borderBottomWidth,10),eI=0,eP=0,eM="offsetWidth"in en?en.offsetWidth-en.clientWidth-eg-eS:0,eZ="offsetHeight"in en?en.offsetHeight-en.clientHeight-eT-eN:0,eD="offsetWidth"in en?0===en.offsetWidth?0:ei/en.offsetWidth:0,eF="offsetHeight"in en?0===en.offsetHeight?0:er/en.offsetHeight:0;if(em===en)eI="start"===ec?eR:"end"===ec?eR-ey:"nearest"===ec?sc(ew,ew+ey,ey,eT,eN,ew+eR,ew+eR+ek,ek):eR-ey/2,eP="start"===ed?eA:"center"===ed?eA-ev/2:"end"===ed?eA-ev:sc(eb,eb+ev,ev,eg,eS,eb+eA,eb+eA+e_,e_),eI=Math.max(0,eI+ew),eP=Math.max(0,eP+eb);else{eI="start"===ec?eR-eo-eT:"end"===ec?eR-ef+eN+eZ:"nearest"===ec?sc(eo,ef,er,eT,eN+eZ,eR,eR+ek,ek):eR-(eo+er/2)+eZ/2,eP="start"===ed?eA-ep-eg:"center"===ed?eA-(ep+ei/2)+eM/2:"end"===ed?eA-es+eS+eM:sc(ep,es,ei,eg,eS+eM,eA,eA+e_,e_);let{scrollLeft:ee,scrollTop:eu}=en;eI=0===eF?0:Math.max(0,Math.min(eu+eI/eF,en.scrollHeight-er/eF+eZ)),eP=0===eD?0:Math.max(0,Math.min(ee+eP/eD,en.scrollWidth-ei/eD+eM)),eR+=eu-eI,eA+=ee-eP}eL.push({el:en,top:eI,left:eP})}return eL},sp=ee=>{var en;return!1===ee?{block:"end",inline:"nearest"}:(en=ee)===Object(en)&&0!==Object.keys(en).length?ee:{block:"start",inline:"nearest"}};function sh(ee,en){var er;if(!ee.isConnected||!(ee=>{let en=ee;for(;en&&en.parentNode;){if(en.parentNode===document)return!0;en=en.parentNode instanceof ShadowRoot?en.parentNode.host:en.parentNode}return!1})(ee))return;let ei=(ee=>{let en=window.getComputedStyle(ee);return{top:parseFloat(en.scrollMarginTop)||0,right:parseFloat(en.scrollMarginRight)||0,bottom:parseFloat(en.scrollMarginBottom)||0,left:parseFloat(en.scrollMarginLeft)||0}})(ee);if("object"==typeof(er=en)&&"function"==typeof er.behavior)return en.behavior(sf(ee,en));let eo="boolean"==typeof en||null==en?void 0:en.behavior;for(let{el:er,top:es,left:eu}of sf(ee,sp(en))){let ee=es-ei.top+ei.bottom,en=eu-ei.left+ei.right;er.scroll({top:ee,left:en,behavior:eo})}}function sm(){return(sm=Object.assign?Object.assign.bind():function(ee){for(var en=1;en=(void 0===ef?eu:ef)&&ee.push(sm({},ec,{item:ei,index:es})),ee}}function sw(ee,en,er,ei){if(!en){var eo=ee;return{rankedValue:eo,rank:sk(eo,er,ei),keyIndex:-1,keyThreshold:ei.threshold}}return sS(ee,en).reduce(function(ee,en,eo){var es=ee.rank,eu=ee.rankedValue,ec=ee.keyIndex,ed=ee.keyThreshold,ef=en.itemValue,ep=en.attributes,eh=sk(ef,er,ei),em=eu,ex=ep.minRanking,eg=ep.maxRanking,ev=ep.threshold;return eh=sv.MATCHES?eh=ex:eh>eg&&(eh=eg),eh>es&&(es=eh,ec=eo,ed=ev,em=ef),{rankedValue:em,rank:es,keyIndex:ec,keyThreshold:ed}},{rankedValue:ee,rank:sv.NO_MATCH,keyIndex:-1,keyThreshold:ei.threshold})}function sk(ee,en,er){return(ee=sO(ee,er),(en=sO(en,er)).length>ee.length)?sv.NO_MATCH:ee===en?sv.CASE_SENSITIVE_EQUAL:(ee=ee.toLowerCase())===(en=en.toLowerCase())?sv.EQUAL:ee.startsWith(en)?sv.STARTS_WITH:ee.includes(" "+en)?sv.WORD_STARTS_WITH:ee.includes(en)?sv.CONTAINS:1===en.length?sv.NO_MATCH:s_(ee).includes(en)?sv.ACRONYM:sj(ee,en)}function s_(ee){var en="";return ee.split(" ").forEach(function(ee){ee.split("-").forEach(function(ee){en+=ee.substr(0,1)})}),en}function sj(ee,en){var er=0,ei=0;function eo(ee,en,ei){for(var eo=ei,es=en.length;eo-1))return sv.NO_MATCH;return es(ei-eu)}function sE(ee,en,er){var ei=-1,eo=1,es=ee.rank,eu=ee.keyIndex,ec=en.rank,ed=en.keyIndex;return es!==ec?es>ec?ei:eo:eu===ed?er(ee,en):eu(0,eH.jsx)("button",{className:(0,eD.Z)("nextra-button nx-transition-all active:nx-opacity-50","nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5","dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50",en),...er,children:ee});(0,eD.Z)("nx-border-orange-100 nx-bg-orange-50 nx-text-orange-800 dark:nx-border-orange-400/30 dark:nx-bg-orange-400/20 dark:nx-text-orange-300"),(0,eD.Z)("nx-border-red-200 nx-bg-red-100 nx-text-red-900 dark:nx-border-red-200/30 dark:nx-bg-red-900/30 dark:nx-text-red-200"),(0,eD.Z)("nx-border-blue-200 nx-bg-blue-100 nx-text-blue-900 dark:nx-border-blue-200/30 dark:nx-bg-blue-900/30 dark:nx-text-blue-200"),(0,eD.Z)("nx-border-yellow-100 nx-bg-yellow-50 nx-text-yellow-900 dark:nx-border-yellow-200/30 dark:nx-bg-yellow-700/30 dark:nx-text-yellow-200");var sA=({getValue:ee,...en})=>{let[er,ei]=(0,eM.useState)(!1);(0,eM.useEffect)(()=>{if(!er)return;let ee=setTimeout(()=>{ei(!1)},2e3);return()=>{clearTimeout(ee)}},[er]);let eo=(0,eM.useCallback)(async()=>{ei(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(ee())}catch{console.error("Failed to copy!")}},[ee]),es=er?eB:eV;return(0,eH.jsx)(sR,{onClick:eo,title:"Copy code",tabIndex:0,...en,children:(0,eH.jsx)(es,{className:"nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4"})})},sL=({children:ee,className:en,...er})=>{let ei="data-line-numbers"in er;return(0,eH.jsx)("code",{className:(0,eD.Z)("nx-border-black nx-border-opacity-[0.04] nx-bg-opacity-[0.03] nx-bg-black nx-break-words nx-rounded-md nx-border nx-py-0.5 nx-px-[.25em] nx-text-[.9em]","dark:nx-border-white/10 dark:nx-bg-white/10",ei&&"[counter-reset:line]",en),dir:"ltr",...er,children:ee})},sP=({children:ee,className:en,hasCopyCode:er,filename:ei,...eo})=>{let es=(0,eM.useRef)(null),eu=(0,eM.useCallback)(()=>{let ee=document.documentElement.dataset;"nextraWordWrap"in ee?delete ee.nextraWordWrap:ee.nextraWordWrap=""},[]);return(0,eH.jsxs)("div",{className:"nextra-code-block nx-relative nx-mt-6 first:nx-mt-0",children:[ei&&(0,eH.jsx)("div",{className:"nx-absolute nx-top-0 nx-z-[1] nx-w-full nx-truncate nx-rounded-t-xl nx-bg-primary-700/5 nx-py-2 nx-px-4 nx-text-xs nx-text-gray-700 dark:nx-bg-primary-300/10 dark:nx-text-gray-200",children:ei}),(0,eH.jsx)("pre",{className:(0,eD.Z)("nx-bg-primary-700/5 nx-mb-4 nx-overflow-x-auto nx-rounded-xl nx-subpixel-antialiased dark:nx-bg-primary-300/10 nx-text-[.9em]","contrast-more:nx-border contrast-more:nx-border-primary-900/20 contrast-more:nx-contrast-150 contrast-more:dark:nx-border-primary-100/40",ei?"nx-pt-12 nx-pb-4":"nx-py-4",en),ref:es,...eo,children:ee}),(0,eH.jsxs)("div",{className:(0,eD.Z)("nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100","nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0",ei?"nx-top-8":"nx-top-0"),children:[(0,eH.jsx)(sR,{onClick:eu,className:"md:nx-hidden",title:"Toggle word wrap",children:(0,eH.jsx)(e5,{className:"nx-pointer-events-none nx-h-4 nx-w-4"})}),er&&(0,eH.jsx)(sA,{getValue:()=>es.current?.querySelector("code")?.textContent||""})]})]})};function sM({onFocus:ee}){let[en,er]=(0,eM.useState)(!0),ei=i5();return en?eM.createElement(on,{as:"button",type:"button",features:ot.Focusable,onFocus:en=>{en.preventDefault();let eo,es=50;function eu(){if(es--<=0){eo&&cancelAnimationFrame(eo);return}if(ee()){if(cancelAnimationFrame(eo),!ei.current)return;er(!1);return}eo=requestAnimationFrame(eu)}eo=requestAnimationFrame(eu)}}):null}let sZ=eM.createContext(null);function sD(){return{groups:new Map,get(ee,en){var er;let ei=this.groups.get(ee);ei||(ei=new Map,this.groups.set(ee,ei));let eo=null!=(er=ei.get(en))?er:0;function es(){let ee=ei.get(en);ee>1?ei.set(en,ee-1):ei.delete(en)}return ei.set(en,eo+1),[Array.from(ei.keys()).indexOf(en),es]}}}function sF({children:ee}){let en=eM.useRef(sD());return eM.createElement(sZ.Provider,{value:en},ee)}function s$(ee){let en=eM.useContext(sZ);if(!en)throw Error("You must wrap your component in a ");let er=sU(),[ei,eo]=en.current.get(ee,er);return eM.useEffect(()=>eo,[]),ei}function sU(){var ee,en,er;let ei=null!=(er=null==(en=null==(ee=eM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:ee.ReactCurrentOwner)?void 0:en.current)?er:null;if(!ei)return Symbol();let eo=[],es=ei;for(;es;)eo.push(es.index),es=es.return;return"$."+eo.join(".")}var sW=((eO=sW||{})[eO.Forwards=0]="Forwards",eO[eO.Backwards=1]="Backwards",eO),sz=((eC=sz||{})[eC.Less=-1]="Less",eC[eC.Equal=0]="Equal",eC[eC.Greater=1]="Greater",eC),sH=((eT=sH||{})[eT.SetSelectedIndex=0]="SetSelectedIndex",eT[eT.RegisterTab=1]="RegisterTab",eT[eT.UnregisterTab=2]="UnregisterTab",eT[eT.RegisterPanel=3]="RegisterPanel",eT[eT.UnregisterPanel=4]="UnregisterPanel",eT);let sG={0(ee,en){var er;let ei=a1(ee.tabs,ee=>ee.current),eo=a1(ee.panels,ee=>ee.current),es=ei.filter(ee=>{var en;return!(null!=(en=ee.current)&&en.hasAttribute("disabled"))}),eu={...ee,tabs:ei,panels:eo};if(en.index<0||en.index>ei.length-1){let er=iD(Math.sign(en.index-ee.selectedIndex),{[-1]:()=>1,0:()=>iD(Math.sign(en.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===es.length)return eu;let eo=iD(er,{0:()=>ei.indexOf(es[0]),1:()=>ei.indexOf(es[es.length-1])});return{...eu,selectedIndex:-1===eo?ee.selectedIndex:eo}}let ec=ei.slice(0,en.index),ed=[...ei.slice(en.index),...ec].find(ee=>es.includes(ee));if(!ed)return eu;let ef=null!=(er=ei.indexOf(ed))?er:ee.selectedIndex;return -1===ef&&(ef=ee.selectedIndex),{...eu,selectedIndex:ef}},1(ee,en){var er;if(ee.tabs.includes(en.tab))return ee;let ei=ee.tabs[ee.selectedIndex],eo=a1([...ee.tabs,en.tab],ee=>ee.current),es=null!=(er=eo.indexOf(ei))?er:ee.selectedIndex;return -1===es&&(es=ee.selectedIndex),{...ee,tabs:eo,selectedIndex:es}},2:(ee,en)=>({...ee,tabs:ee.tabs.filter(ee=>ee!==en.tab)}),3:(ee,en)=>ee.panels.includes(en.panel)?ee:{...ee,panels:a1([...ee.panels,en.panel],ee=>ee.current)},4:(ee,en)=>({...ee,panels:ee.panels.filter(ee=>ee!==en.panel)})},sB=(0,eM.createContext)(null);function sV(ee){let en=(0,eM.useContext)(sB);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,sV),en}return en}sB.displayName="TabsDataContext";let sq=(0,eM.createContext)(null);function sK(ee){let en=(0,eM.useContext)(sq);if(null===en){let en=Error(`<${ee} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(en,sK),en}return en}function sQ(ee,en){return iD(en.type,sG,ee,en)}sq.displayName="TabsActionsContext";let sJ=eM.Fragment;function sY(ee,en){let{defaultIndex:er=0,vertical:ei=!1,manual:eo=!1,onChange:es,selectedIndex:eu=null,...ec}=ee,ed=ei?"vertical":"horizontal",ef=eo?"manual":"auto",ep=null!==eu,eh=at(en),[em,ex]=(0,eM.useReducer)(sQ,{selectedIndex:null!=eu?eu:er,tabs:[],panels:[]}),eg=(0,eM.useMemo)(()=>({selectedIndex:em.selectedIndex}),[em.selectedIndex]),ev=i3(es||(()=>{})),ey=i3(em.tabs),eb=(0,eM.useMemo)(()=>({orientation:ed,activation:ef,...em}),[ed,ef,em]),ew=i9(ee=>(ex({type:1,tab:ee}),()=>ex({type:2,tab:ee}))),ek=i9(ee=>(ex({type:3,panel:ee}),()=>ex({type:4,panel:ee}))),e_=i9(ee=>{ej.current!==ee&&ev.current(ee),ep||ex({type:0,index:ee})}),ej=i3(ep?ee.selectedIndex:em.selectedIndex),eE=(0,eM.useMemo)(()=>({registerTab:ew,registerPanel:ek,change:e_}),[]);i4(()=>{ex({type:0,index:null!=eu?eu:er})},[eu]),i4(()=>{if(void 0===ej.current||em.tabs.length<=0)return;let ee=a1(em.tabs,ee=>ee.current);ee.some((ee,en)=>em.tabs[en]!==ee)&&e_(ee.indexOf(em.tabs[ej.current]))});let eO={ref:eh};return eM.createElement(sF,null,eM.createElement(sq.Provider,{value:eE},eM.createElement(sB.Provider,{value:eb},eb.tabs.length<=0&&eM.createElement(sM,{onFocus:()=>{var ee,en;for(let er of ey.current)if((null==(ee=er.current)?void 0:ee.tabIndex)===0)return null==(en=er.current)||en.focus(),!0;return!1}}),iU({ourProps:eO,theirProps:ec,slot:eg,defaultTag:sJ,name:"Tabs"}))))}let sX="div";function s0(ee,en){let{orientation:er,selectedIndex:ei}=sV("Tab.List");return iU({ourProps:{ref:at(en),role:"tablist","aria-orientation":er},theirProps:ee,slot:{selectedIndex:ei},defaultTag:sX,name:"Tabs.List"})}let s1="button";function s2(ee,en){var er,ei;let eo=aL(),{id:es=`headlessui-tabs-tab-${eo}`,...eu}=ee,{orientation:ec,activation:ed,selectedIndex:ef,tabs:ep,panels:eh}=sV("Tab"),em=sK("Tab"),ex=sV("Tab"),eg=(0,eM.useRef)(null),ev=at(eg,en);i4(()=>em.registerTab(eg),[em,eg]);let ey=s$("tabs"),eb=ep.indexOf(eg);-1===eb&&(eb=ey);let ew=eb===ef,ek=i9(ee=>{var en;let er=ee();if(er===aG.Success&&"auto"===ed){let ee=null==(en=aW(eg))?void 0:en.activeElement,er=ex.tabs.findIndex(en=>en.current===ee);-1!==er&&em.change(er)}return er}),e_=i9(ee=>{let en=ep.map(ee=>ee.current).filter(Boolean);if(ee.key===aM.Space||ee.key===aM.Enter){ee.preventDefault(),ee.stopPropagation(),em.change(eb);return}switch(ee.key){case aM.Home:case aM.PageUp:return ee.preventDefault(),ee.stopPropagation(),ek(()=>a4(en,aH.First));case aM.End:case aM.PageDown:return ee.preventDefault(),ee.stopPropagation(),ek(()=>a4(en,aH.Last))}if(ek(()=>iD(ec,{vertical:()=>ee.key===aM.ArrowUp?a4(en,aH.Previous|aH.WrapAround):ee.key===aM.ArrowDown?a4(en,aH.Next|aH.WrapAround):aG.Error,horizontal:()=>ee.key===aM.ArrowLeft?a4(en,aH.Previous|aH.WrapAround):ee.key===aM.ArrowRight?a4(en,aH.Next|aH.WrapAround):aG.Error}))===aG.Success)return ee.preventDefault()}),ej=(0,eM.useRef)(!1),eE=i9(()=>{var ee;ej.current||(ej.current=!0,null==(ee=eg.current)||ee.focus({preventScroll:!0}),em.change(eb),ar(()=>{ej.current=!1}))}),eO=i9(ee=>{ee.preventDefault()}),eC=(0,eM.useMemo)(()=>({selected:ew}),[ew]);return iU({ourProps:{ref:ev,onKeyDown:e_,onMouseDown:eO,onClick:eE,id:es,role:"tab",type:a3(ee,eg),"aria-controls":null==(ei=null==(er=eh[eb])?void 0:er.current)?void 0:ei.id,"aria-selected":ew,tabIndex:ew?0:-1},theirProps:eu,slot:eC,defaultTag:s1,name:"Tabs.Tab"})}let s4="div";function s5(ee,en){let{selectedIndex:er}=sV("Tab.Panels");return iU({ourProps:{ref:at(en)},theirProps:ee,slot:(0,eM.useMemo)(()=>({selectedIndex:er}),[er]),defaultTag:s4,name:"Tabs.Panels"})}let s3="div",s7=iF.RenderStrategy|iF.Static;function s6(ee,en){var er,ei,eo,es;let eu=aL(),{id:ec=`headlessui-tabs-panel-${eu}`,tabIndex:ed=0,...ef}=ee,{selectedIndex:ep,tabs:eh,panels:em}=sV("Tab.Panel"),ex=sK("Tab.Panel"),eg=(0,eM.useRef)(null),ev=at(eg,en);i4(()=>ex.registerPanel(eg),[ex,eg]);let ey=s$("panels"),eb=em.indexOf(eg);-1===eb&&(eb=ey);let ew=eb===ep,ek=(0,eM.useMemo)(()=>({selected:ew}),[ew]),e_={ref:ev,id:ec,role:"tabpanel","aria-labelledby":null==(ei=null==(er=eh[eb])?void 0:er.current)?void 0:ei.id,tabIndex:ew?ed:-1};return ew||null!=(eo=ef.unmount)&&!eo||null!=(es=ef.static)&&es?iU({ourProps:e_,theirProps:ef,slot:ek,defaultTag:s3,features:s7,visible:ew,name:"Tabs.Panel"}):eM.createElement(on,{as:"span",...e_})}let s9=Object.assign(iG(s2),{Group:iG(sY),List:iG(s0),Panels:iG(s5),Panel:iG(s6)});function s8(ee){return!!ee&&"object"==typeof ee&&"label"in ee}Object.assign(function({items:ee,selectedIndex:en,defaultIndex:er=0,onChange:ei,children:eo,storageKey:es}){let[eu,ec]=(0,eM.useState)(er);(0,eM.useEffect)(()=>{void 0!==en&&ec(en)},[en]),(0,eM.useEffect)(()=>{if(!es)return;function ee(ee){ee.key===es&&ec(Number(ee.newValue))}let en=Number(localStorage.getItem(es));return ec(Number.isNaN(en)?0:en),window.addEventListener("storage",ee),()=>{window.removeEventListener("storage",ee)}},[]);let ed=(0,eM.useCallback)(ee=>{if(es){let en=String(ee);localStorage.setItem(es,en),window.dispatchEvent(new StorageEvent("storage",{key:es,newValue:en}));return}ec(ee),ei?.(ee)},[]);return(0,eH.jsxs)(s9.Group,{selectedIndex:eu,defaultIndex:er,onChange:ed,children:[(0,eH.jsx)("div",{className:"nextra-scrollbar nx-overflow-x-auto nx-overflow-y-hidden nx-overscroll-x-contain",children:(0,eH.jsx)(s9.List,{className:"nx-mt-4 nx-flex nx-w-max nx-min-w-full nx-border-b nx-border-gray-200 nx-pb-px dark:nx-border-neutral-800",children:ee.map((ee,en)=>{let er=s8(ee)&&ee.disabled;return(0,eH.jsx)(s9,{disabled:er,className:({selected:ee})=>(0,eD.Z)("nx-mr-2 nx-rounded-t nx-p-2 nx-font-medium nx-leading-5 nx-transition-colors","-nx-mb-0.5 nx-select-none nx-border-b-2",ee?"nx-border-primary-500 nx-text-primary-600":"nx-border-transparent nx-text-gray-600 hover:nx-border-gray-200 hover:nx-text-black dark:nx-text-gray-200 dark:hover:nx-border-neutral-800 dark:hover:nx-text-white",er&&"nx-pointer-events-none nx-text-gray-400 dark:nx-text-neutral-600"),children:s8(ee)?ee.label:ee},en)})})}),(0,eH.jsx)(s9.Panels,{children:eo})]})},{displayName:"Tabs",Tab:function({children:ee,...en}){return(0,eH.jsx)(s9.Panel,{...en,className:"nx-rounded nx-pt-6",children:ee})}});var lt=({className:ee="",...en})=>(0,eH.jsx)("td",{className:(0,eD.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 dark:nx-border-gray-600",ee),...en}),ln=({className:ee="",...en})=>(0,eH.jsx)("table",{className:(0,eD.Z)("nx-block nx-overflow-x-scroll",ee),...en}),lr=({className:ee="",...en})=>(0,eH.jsx)("th",{className:(0,eD.Z)("nx-m-0 nx-border nx-border-gray-300 nx-px-4 nx-py-2 nx-font-semibold dark:nx-border-gray-600",ee),...en}),li=({className:ee="",...en})=>(0,eH.jsx)("tr",{className:(0,eD.Z)("nx-m-0 nx-border-t nx-border-gray-300 nx-p-0 dark:nx-border-gray-600","even:nx-bg-gray-100 even:dark:nx-bg-gray-600/20",ee),...en}),lo={cards:(0,eD.Z)("nextra-cards nx-mt-4 nx-gap-4 nx-grid","nx-not-prose"),card:(0,eD.Z)("nextra-card nx-group nx-flex nx-flex-col nx-justify-start nx-overflow-hidden nx-rounded-lg nx-border nx-border-gray-200","nx-text-current nx-no-underline dark:nx-shadow-none","hover:nx-shadow-gray-100 dark:hover:nx-shadow-none nx-shadow-gray-100","active:nx-shadow-sm active:nx-shadow-gray-200","nx-transition-all nx-duration-200 hover:nx-border-gray-300"),title:(0,eD.Z)("nx-flex nx-font-semibold nx-items-start nx-gap-2 nx-p-4 nx-text-gray-700 hover:nx-text-gray-900")},ls=(0,eH.jsx)("span",{className:"nx-transition-transform nx-duration-75 group-hover:nx-translate-x-[2px]",children:"→"});Object.assign(function({children:ee,num:en=3,className:er,style:ei,...eo}){return(0,eH.jsx)("div",{className:(0,eD.Z)(lo.cards,er),...eo,style:{...ei,"--rows":en},children:ee})},{displayName:"Cards",Card:function({children:ee,title:en,icon:er,image:ei,arrow:eo,href:es,...eu}){let ec=eo?ls:null;return ei?(0,eH.jsxs)(n1(),{href:es,className:(0,eD.Z)(lo.card,"nx-bg-gray-100 nx-shadow dark:nx-border-neutral-700 dark:nx-bg-neutral-800 dark:nx-text-gray-50 hover:nx-shadow-lg dark:hover:nx-border-neutral-500 dark:hover:nx-bg-neutral-700"),...eu,children:[ee,(0,eH.jsxs)("span",{className:(0,eD.Z)(lo.title,"dark:nx-text-gray-300 dark:hover:nx-text-gray-100"),children:[er,(0,eH.jsxs)("span",{className:"nx-flex nx-gap-1",children:[en,ec]})]})]}):(0,eH.jsx)(n1(),{href:es,className:(0,eD.Z)(lo.card,"nx-bg-transparent nx-shadow-sm dark:nx-border-neutral-800 hover:nx-bg-slate-50 hover:nx-shadow-md dark:hover:nx-border-neutral-700 dark:hover:nx-bg-neutral-900"),...eu,children:(0,eH.jsxs)("span",{className:(0,eD.Z)(lo.title,"dark:nx-text-neutral-200 dark:hover:nx-text-neutral-50 nx-flex nx-items-center"),children:[er,en,ec]})})}});var ll=(0,eM.createContext)(0);function lu(){return(0,eM.useContext)(ll)}function lc({children:ee}){return(0,eH.jsx)("div",{className:(0,eD.Z)("nextra-filetree nx-mt-6 nx-select-none nx-text-sm nx-text-gray-800 dark:nx-text-gray-300","nx-not-prose"),children:(0,eH.jsx)("div",{className:"nx-inline-block nx-rounded-lg nx-border nx-px-4 nx-py-2 dark:nx-border-neutral-800",children:ee})})}function ld(){let ee=lu();return(0,eH.jsx)(eH.Fragment,{children:Array.from({length:ee},(ee,en)=>(0,eH.jsx)("span",{className:"nx-w-5"},en))})}var lf=(0,eM.memo)(({label:ee,name:en,open:er,children:ei,defaultOpen:eo=!1,onToggle:es})=>{let eu=lu(),[ec,ed]=(0,eM.useState)(eo),ef=(0,eM.useCallback)(()=>{es?.(!ec),ed(!ec)},[ec,es]),ep=void 0===er?ec:er;return(0,eH.jsxs)("li",{className:"nx-flex nx-list-none nx-flex-col",children:[(0,eH.jsxs)("button",{onClick:ef,title:en,className:"nx-inline-flex nx-cursor-pointer nx-items-center nx-py-1 hover:nx-opacity-60",children:[(0,eH.jsx)(ld,{}),(0,eH.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eH.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:ep?"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1M5 19h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2Z":"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2Z"})}),(0,eH.jsx)("span",{className:"nx-ml-1",children:ee??en})]}),ep&&(0,eH.jsx)("ul",{children:(0,eH.jsx)(ll.Provider,{value:eu+1,children:ei})})]})});lf.displayName="Folder";var lp=(0,eM.memo)(({label:ee,name:en,active:er})=>(0,eH.jsx)("li",{className:(0,eD.Z)("nx-flex nx-list-none",er&&"nx-text-primary-600 contrast-more:nx-underline"),children:(0,eH.jsxs)("span",{className:"nx-inline-flex nx-cursor-default nx-items-center nx-py-1",children:[(0,eH.jsx)(ld,{}),(0,eH.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",children:(0,eH.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"})}),(0,eH.jsx)("span",{className:"nx-ml-1",children:ee??en})]})}));lp.displayName="File",Object.assign(lc,{Folder:lf,File:lp});var lh=Object.defineProperty,lm=Object.defineProperties,lx=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,lv=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,lb=(ee,en,er)=>en in ee?lh(ee,en,{enumerable:!0,configurable:!0,writable:!0,value:er}):ee[en]=er,lw=(ee,en)=>{for(var er in en||(en={}))lv.call(en,er)&&lb(ee,er,en[er]);if(lg)for(var er of lg(en))ly.call(en,er)&&lb(ee,er,en[er]);return ee},lk=(ee,en)=>lm(ee,lx(en)),l_=(ee,en)=>{var er={};for(var ei in ee)lv.call(ee,ei)&&0>en.indexOf(ei)&&(er[ei]=ee[ei]);if(null!=ee&&lg)for(var ei of lg(ee))0>en.indexOf(ei)&&ly.call(ee,ei)&&(er[ei]=ee[ei]);return er},lj=(ee,en,er)=>new Promise((ei,eo)=>{var es=ee=>{try{ec(er.next(ee))}catch(ee){eo(ee)}},eu=ee=>{try{ec(er.throw(ee))}catch(ee){eo(ee)}},ec=ee=>ee.done?ei(ee.value):Promise.resolve(ee.value).then(es,eu);ec((er=er.apply(ee,en)).next())}),lE=(0,eM.createContext)({}),lO=(0,eM.createContext)(ee=>ee),lC=(0,eM.createContext)(null),lT=new WeakMap,lS=(0,eM.createContext)(lT),lN=()=>(0,eM.useContext)(lE),lI=()=>(0,eM.useContext)(lO),lR=()=>(0,eM.useContext)(lC),lA=()=>(0,eM.useContext)(lS),lL=({children:ee})=>{let[en,er]=(0,eM.useState)({}),ei=(0,eM.useRef)(null);return uA&&!ei.current&&(ei.current=new IntersectionObserver(ee=>{er(en=>{let er=lw({},en);for(let en of ee)if((null==en?void 0:en.rootBounds)&&lT.has(en.target)){let[ee,ei]=lT.get(en.target),eo=en.boundingClientRect.y+en.boundingClientRect.height<=en.rootBounds.y+en.rootBounds.height,es=en.intersectionRatio>0;er[ee]={index:ei,aboveHalfViewport:eo,insideHalfViewport:es}}let ei="",eo=1/0,es=-1;for(let ee in er)er[ee].isActive=!1,er[ee].insideHalfViewport&&er[ee].indexes&&(es=er[ee].index,ei=ee);return er[ei]&&(er[ei].isActive=!0),er})},{rootMargin:"0px 0px -50%",threshold:[0,1]})),(0,eH.jsx)(lE.Provider,{value:en,children:(0,eH.jsx)(lO.Provider,{value:er,children:(0,eH.jsx)(lS.Provider,{value:lT,children:(0,eH.jsx)(lC.Provider,{value:ei.current,children:ee})})})})},lP=(0,eM.createContext)({menu:!1,setMenu:()=>!1}),lM=()=>(0,eM.useContext)(lP),lZ=lP.Provider,lD=(0,eM.createContext)(lw({title:"",frontMatter:{}},uU));function lF(){return(0,eM.useContext)(lD)}var l$=({children:ee,value:{themeConfig:en,pageOpts:er}})=>{let[ei,eo]=(0,eM.useState)(!1);eL||(eL=lw(lw({},uU),Object.fromEntries(Object.entries(en).map(([ee,en])=>[ee,en&&"object"==typeof en&&uW.includes(ee)?lw(lw({},uU[ee]),en):en]))));let es=lk(lw(lk(lw({},eL),{flexsearch:er.flexsearch}),"boolean"==typeof er.newNextLinkBehavior&&{newNextLinkBehavior:er.newNextLinkBehavior}),{title:er.title,frontMatter:er.frontMatter}),{nextThemes:eu}=es;return(0,eH.jsx)(n4.f,{attribute:"class",disableTransitionOnChange:!0,defaultTheme:eu.defaultTheme,storageKey:eu.storageKey,forcedTheme:eu.forcedTheme,children:(0,eH.jsx)(lD.Provider,{value:es,children:(0,eH.jsx)(lZ,{value:{menu:ei,setMenu:eo},children:ee})})})},lU=(0,eM.createContext)(ee=>ee),lW=()=>(0,eM.useContext)(lU),lz=lU.Provider,lH=Number(n2.i8.split(".")[0]),lG=(0,eM.forwardRef)(function(ee,en){var er=ee,{href:ei="",children:eo,newWindow:es}=er,eu=l_(er,["href","children","newWindow"]);let ec=lF();return es?(0,eH.jsxs)("a",lk(lw({ref:en,href:ei,target:"_blank",rel:"noreferrer"},eu),{children:[eo,(0,eH.jsx)("span",{className:"nx-sr-only nx-select-none",children:" (opens in a new tab)"})]})):ei?lH>12||ec.newNextLinkBehavior?(0,eH.jsx)(n1(),lk(lw({ref:en,href:ei},eu),{children:eo})):(0,eH.jsx)(n1(),{href:ei,passHref:!0,children:(0,eH.jsx)("a",lk(lw({ref:en},eu),{children:eo}))}):(0,eH.jsx)("a",lk(lw({ref:en},eu),{children:eo}))});lG.displayName="Anchor";var lB=({repository:ee="",title:en,labels:er})=>{let ei=rl()(ee);if(!ei)throw Error("Invalid `docsRepositoryBase` URL!");return ei.resource.includes("gitlab")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/-/issues/new?issue[title]=${encodeURIComponent(en)}${er?`&issue[description]=/label${encodeURIComponent(` ~${er} +`)}`:""}`:ei.resource.includes("github")?`${ei.protocol}://${ei.resource}/${ei.owner}/${ei.name}/issues/new?title=${encodeURIComponent(en)}&labels=${er||""}`:"#"};function lV(ee,en){return ee?"function"!=typeof ee?ee:(0,eH.jsx)(ee,lw({},en)):null}function lq(ee,en={}){return("function"==typeof ee?ee(en):ee)||""}function lK(ee){let en=(0,eM.useRef)(null),er=(0,eM.useRef)(null),ei=(0,eM.useRef)(),eo=(0,eM.useCallback)(()=>{var eo;en.current&&er.current&&(null==(eo=ei.current)||eo.call(ei),ei.current=iA(en.current,er.current,ee).destroy)},[en,er,ei,ee]);return(0,eM.useMemo)(()=>[ee=>{en.current=ee,eo()},ee=>{er.current=ee,eo()}],[en,er,eo])}function lQ(ee=""){let en=lF(),er=rl()(en.docsRepositoryBase||"");if(!er)throw Error("Invalid `docsRepositoryBase` URL!");return`${er.href}/${ee}`}function lJ(){let{banner:ee}=lF();if(!ee.text)return null;let en=`try{if(localStorage.getItem(${JSON.stringify(ee.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("script",{dangerouslySetInnerHTML:{__html:en}}),(0,eH.jsxs)("div",{className:(0,eD.Z)("nextra-banner-container nx-sticky nx-top-0 nx-z-20 nx-flex nx-items-center md:nx-relative","nx-h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:nx-hidden","nx-text-slate-50 dark:nx-text-white nx-bg-neutral-900 dark:nx-bg-[linear-gradient(1deg,#383838,#212121)]","nx-px-2 ltr:nx-pl-10 rtl:nx-pr-10 print:nx-hidden"),children:[(0,eH.jsx)("div",{className:"nx-w-full nx-truncate nx-px-4 nx-text-center nx-font-medium nx-text-sm",children:lV(ee.text)}),ee.dismissible&&(0,eH.jsx)("button",{type:"button","aria-label":"Dismiss banner",className:"nx-w-8 nx-h-8 nx-opacity-80 hover:nx-opacity-100",onClick:()=>{try{localStorage.setItem(ee.key,"0")}catch(ee){}document.body.classList.add("nextra-banner-hidden")},children:(0,eH.jsx)(e3,{className:"nx-mx-auto nx-h-4 nx-w-4"})})]})]})}function lY({activePath:ee}){return(0,eH.jsx)("div",{className:"nextra-breadcrumb nx-mt-1.5 nx-flex nx-items-center nx-gap-1 nx-overflow-hidden nx-text-sm nx-text-gray-500 dark:nx-text-gray-400 contrast-more:nx-text-current",children:ee.map((en,er)=>{let ei=!en.children||en.withIndexPage,eo=er===ee.length-1;return(0,eH.jsxs)(eM.Fragment,{children:[er>0&&(0,eH.jsx)(eG,{className:"nx-w-3.5 nx-shrink-0"}),(0,eH.jsx)("div",{className:(0,eD.Z)("nx-whitespace-nowrap nx-transition-colors",eo?"nx-font-medium nx-text-gray-700 contrast-more:nx-font-bold contrast-more:nx-text-current dark:nx-text-gray-100 contrast-more:dark:nx-text-current":["nx-min-w-[24px] nx-overflow-hidden nx-text-ellipsis",ei&&"hover:nx-text-gray-900 dark:hover:nx-text-gray-100"]),title:en.title,children:ei&&!eo?(0,eH.jsx)(lG,{href:en.route,children:en.title}):en.title})]},en.route+en.name)})})}function lX({children:ee,className:en,isOpen:er,horizontal:ei=!1}){let eo=(0,eM.useRef)(null),es=(0,eM.useRef)(null),eu=(0,eM.useRef)(0),ec=(0,eM.useRef)(er),ed=(0,eM.useRef)(!0);return(0,eM.useEffect)(()=>{let ee=eo.current,en=es.current,ec=eu.current;ec&&clearTimeout(ec),!ed.current&&ee&&en&&(ee.classList.toggle("nx-duration-500",!er),ee.classList.toggle("nx-duration-300",er),ei?(en.style.width=`${en.clientWidth}px`,ee.style.width=`${en.clientWidth}px`):ee.style.height=`${en.clientHeight}px`,er?eu.current=window.setTimeout(()=>{ee.style.removeProperty("height")},300):setTimeout(()=>{ei?ee.style.width="0px":ee.style.height="0px"},0))},[ei,er]),(0,eM.useEffect)(()=>{ed.current=!1},[]),(0,eH.jsx)("div",{ref:eo,className:"nx-transform-gpu nx-overflow-hidden nx-transition-all nx-ease-in-out motion-reduce:nx-transition-none",style:ec.current||ei?void 0:{height:0},children:(0,eH.jsx)("div",{ref:es,className:(0,eD.Z)("nx-transition-opacity nx-duration-500 nx-ease-in-out motion-reduce:nx-transition-none",er?"nx-opacity-100":"nx-opacity-0",en),children:ee})})}var l0=(0,eM.memo)(function({value:ee,match:en}){let er;if(!ee)return null;let ei=ee.split(""),eo=RegExp(iM(en.trim()).replaceAll(" ","|"),"ig"),es=0,eu=[];for(;(er=eo.exec(ee))&&0!==eo.lastIndex;){let ee=ei.splice(0,er.index-es).join(""),en=ei.splice(0,eo.lastIndex-er.index).join("");eu.push(ee,(0,eH.jsx)("span",{className:"nx-text-primary-600",children:en},er.index)),es=eo.lastIndex}return(0,eH.jsxs)(eH.Fragment,{children:[eu,ei.join("")]})}),l1=(0,eM.forwardRef)((ee,en)=>{var er=ee,{className:ei,suffix:eo}=er,es=l_(er,["className","suffix"]);return(0,eH.jsxs)("div",{className:"nx-relative nx-flex nx-items-center nx-text-gray-900 contrast-more:nx-text-gray-800 dark:nx-text-gray-300 contrast-more:dark:nx-text-gray-300",children:[(0,eH.jsx)("input",lw({ref:en,spellCheck:!1,className:(0,eD.Z)(ei,"nx-block nx-w-full nx-appearance-none nx-rounded-lg nx-px-3 nx-py-2 nx-transition-colors","nx-text-base nx-leading-tight md:nx-text-sm","nx-bg-black/[.05] dark:nx-bg-gray-50/10","focus:nx-bg-white dark:focus:nx-bg-dark","placeholder:nx-text-gray-500 dark:placeholder:nx-text-gray-400","contrast-more:nx-border contrast-more:nx-border-current")},es)),eo]})});l1.displayName="Input";var l2=["input","select","button","textarea"];function l4({className:ee,overlayClassName:en,value:er,onChange:ei,onActive:eo,loading:es,error:eu,results:ec}){let[ed,ef]=(0,eM.useState)(!1),ep=lF(),[eh,em]=(0,eM.useState)(0),ex=(0,eP.useRouter)(),{setMenu:eg}=lM(),ev=(0,eM.useRef)(null),ey=(0,eM.useRef)(null),[eb,ew]=(0,eM.useState)(!1),[ek,e_]=(0,eM.useState)(!0);(0,eM.useEffect)(()=>{em(0)},[er]),(0,eM.useEffect)(()=>{let ee=ee=>{let en=document.activeElement,er=null==en?void 0:en.tagName.toLowerCase();!ev.current||!er||l2.includes(er)||null!=en&&en.isContentEditable||("/"===ee.key||"k"===ee.key&&(ee.metaKey||ee.ctrlKey)?(ee.preventDefault(),ev.current.focus({preventScroll:!0})):"Escape"===ee.key&&(ef(!1),ev.current.blur()))};return window.addEventListener("keydown",ee),()=>{window.removeEventListener("keydown",ee)}},[]);let ej=(0,eM.useCallback)(()=>{var ee;null==(ee=ev.current)||ee.blur(),ei(""),ef(!1),eg(!1)},[ei,eg]),eE=(0,eM.useCallback)(ee=>{let{index:en}=ee.currentTarget.dataset;em(Number(en))},[]),eO=(0,eM.useCallback)(function(ee){var en,er,ei;switch(ee.key){case"ArrowDown":if(eh+1 a`);er&&(ee.preventDefault(),eE({currentTarget:er}),er.focus())}break;case"ArrowUp":if(eh-1>=0){let en=null==(er=ey.current)?void 0:er.querySelector(`li:nth-of-type(${eh}) > a`);en&&(ee.preventDefault(),eE({currentTarget:en}),en.focus())}break;case"Enter":{let ee=ec[eh];ee&&ek&&(ex.push(ee.route),ej());break}case"Escape":ef(!1),null==(ei=ev.current)||ei.blur()}},[eh,ec,ex,ej,eE,ek]),eC=eF(),eT=ed&&!!er,eS=(0,eH.jsx)(aR,{show:eC&&(!ed||!!er),as:eM.Fragment,enter:"nx-transition-opacity",enterFrom:"nx-opacity-0",enterTo:"nx-opacity-100",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eH.jsx)("kbd",{className:(0,eD.Z)("nx-absolute nx-my-1.5 nx-select-none ltr:nx-right-1.5 rtl:nx-left-1.5","nx-h-5 nx-rounded nx-bg-white nx-px-1.5 nx-font-mono nx-text-[10px] nx-font-medium nx-text-gray-500","nx-border dark:nx-border-gray-100/20 dark:nx-bg-dark/50","contrast-more:nx-border-current contrast-more:nx-text-current contrast-more:dark:nx-border-current","nx-items-center nx-gap-1 nx-transition-opacity",er?"nx-z-20 nx-flex nx-cursor-pointer hover:nx-opacity-70":"nx-pointer-events-none nx-hidden sm:nx-flex"),title:er?"Clear":void 0,onClick:()=>{ei("")},children:er&&eb?"ESC":eC&&(navigator.userAgent.includes("Macintosh")?(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("span",{className:"nx-text-xs",children:"⌘"}),"K"]}):"CTRL K")})}),eN=(0,eM.useCallback)(ee=>{e_("compositionend"===ee.type)},[]);return(0,eH.jsxs)("div",{className:(0,eD.Z)("nextra-search nx-relative md:nx-w-64",ee),children:[eT&&(0,eH.jsx)("div",{className:"nx-fixed nx-inset-0 nx-z-10",onClick:()=>ef(!1)}),(0,eH.jsx)(l1,{ref:ev,value:er,onChange:ee=>{let{value:en}=ee.target;ei(en),ef(!!en)},onFocus:()=>{null==eo||eo(!0),ew(!0)},onBlur:()=>{ew(!1)},onCompositionStart:eN,onCompositionEnd:eN,type:"search",placeholder:lq(ep.search.placeholder),onKeyDown:eO,suffix:eS}),(0,eH.jsx)(aR,{show:eT,as:aR.Child,leave:"nx-transition-opacity nx-duration-100",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eH.jsx)("ul",{className:(0,eD.Z)("nextra-scrollbar","nx-border nx-border-gray-200 nx-bg-white nx-text-gray-100 dark:nx-border-neutral-800 dark:nx-bg-neutral-900","nx-absolute nx-top-full nx-z-20 nx-mt-2 nx-overflow-auto nx-overscroll-contain nx-rounded-xl nx-py-2.5 nx-shadow-xl","nx-max-h-[min(calc(50vh-11rem-env(safe-area-inset-bottom)),400px)]","md:nx-max-h-[min(calc(100vh-5rem-env(safe-area-inset-bottom)),400px)]","nx-inset-x-0 ltr:md:nx-left-auto rtl:md:nx-right-auto","contrast-more:nx-border contrast-more:nx-border-gray-900 contrast-more:dark:nx-border-gray-50",en),ref:ey,style:{transition:"max-height .2s ease"},children:eu?(0,eH.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-red-500",children:[(0,eH.jsx)(eX,{className:"nx-h-5 nx-w-5"}),lq(ep.search.error)]}):es?(0,eH.jsxs)("span",{className:"nx-flex nx-select-none nx-justify-center nx-gap-2 nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:[(0,eH.jsx)(e2,{className:"nx-h-5 nx-w-5 nx-animate-spin"}),lV(ep.search.loading)]}):ec.length>0?ec.map(({route:ee,prefix:en,children:er,id:ei},eo)=>(0,eH.jsxs)(eM.Fragment,{children:[en,(0,eH.jsx)("li",{className:(0,eD.Z)("nx-mx-2.5 nx-break-words nx-rounded-md","contrast-more:nx-border",eo===eh?"nx-bg-primary-500/10 nx-text-primary-600 contrast-more:nx-border-primary-500":"nx-text-gray-800 contrast-more:nx-border-transparent dark:nx-text-gray-300"),children:(0,eH.jsx)(lG,{className:"nx-block nx-scroll-m-12 nx-px-2.5 nx-py-2",href:ee,"data-index":eo,onFocus:eE,onMouseMove:eE,onClick:ej,onKeyDown:eO,children:er})})]},ei)):lV(ep.search.emptyResult)})})]})}var l5={},l3=new Map,l7=(ee,en)=>{let er=ee+"@"+en;if(l3.has(er))return l3.get(er);let ei=l6(ee,en);return l3.set(er,ei),ei},l6=(ee,en)=>lj(void 0,null,function*(){let er=yield fetch(`${ee}/_next/static/chunks/nextra-data-${en}.json`),ei=yield er.json(),eo=new(iP()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),es=new(iP()).Document({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),eu=0;for(let[ee,en]of Object.entries(ei)){let er="";for(let[ei,eo]of(++eu,Object.entries(en.data))){let[ec,ed]=ei.split("#"),ef=ee+(ec?"#"+ec:""),ep=ed||en.title,eh=eo.split("\n");es.add(lw({id:ef,url:ef,title:ep,pageId:`page_${eu}`,content:ep},eh[0]&&{display:eh[0]}));for(let ee=0;ee{var er,ei;if(!ee)return;let[eo,es]=l5[en],eu=(null==(er=eo.search(ee,5,{enrich:!0,suggest:!0})[0])?void 0:er.result)||[],ec=[],ef={};for(let en=0;enee._page_rk===en._page_rk?ee._section_rk-en._section_rk:ef[ee._page_rk]!==ef[en._page_rk]?ef[en._page_rk]-ef[ee._page_rk]:ee._page_rk-en._page_rk).map(ee=>({id:`${ee._page_rk}_${ee._section_rk}`,route:ee.route,prefix:ee.prefix,children:ee.children})))},em=(0,eM.useCallback)(ee=>lj(this,null,function*(){if(ee&&!l5[en]){eo(!0);try{yield l7(er,en)}catch(ee){eu(!0)}eo(!1)}}),[en,er]),ex=ee=>lj(this,null,function*(){if(ep(ee),!ei){if(!l5[en]){eo(!0);try{yield l7(er,en)}catch(ee){eu(!0)}eo(!1)}eh(ee)}});return(0,eH.jsx)(l4,{loading:ei,error:es,value:ef,onChange:ex,onActive:em,className:ee,overlayClassName:"nx-w-screen nx-min-h-[100px] nx-max-w-[min(calc(100vw-2rem),calc(100%+20rem))]",results:ec})}function l8({options:ee,selected:en,onChange:er,title:ei,className:eo}){let[es,eu]=lK({strategy:"fixed",placement:"top-start",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn({state:ee}){ee.styles.popper.minWidth=`${ee.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return(0,eH.jsx)(oM,{value:en,onChange:er,children:({open:er})=>(0,eH.jsxs)(oM.Button,{ref:es,title:ei,className:(0,eD.Z)("nx-h-7 nx-rounded-md nx-px-2 nx-text-left nx-text-xs nx-font-medium nx-text-gray-600 nx-transition-colors dark:nx-text-gray-400",er?"nx-bg-gray-200 nx-text-gray-900 dark:nx-bg-primary-100/10 dark:nx-text-gray-50":"hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",eo),children:[en.name,(0,eH.jsx)(ut,{children:(0,eH.jsx)(aR,{ref:eu,show:er,as:oM.Options,className:"nx-z-20 nx-max-h-64 nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:ee.map(ee=>(0,eH.jsxs)(oM.Option,{value:ee,className:({active:ee})=>(0,eD.Z)(ee?"nx-bg-primary-50 nx-text-primary-600 dark:nx-bg-primary-500/10":"nx-text-gray-800 dark:nx-text-gray-100","nx-relative nx-cursor-pointer nx-whitespace-nowrap nx-py-1.5","nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),children:[ee.name,ee.key===en.key&&(0,eH.jsx)("span",{className:"nx-absolute nx-inset-y-0 nx-flex nx-items-center ltr:nx-right-3 rtl:nx-left-3",children:(0,eH.jsx)(eB,{})})]},ee.key))})})]})})}function ut(ee){return eF()?(0,oZ.createPortal)(ee.children,document.body):null}function un({lite:ee,className:en}){let er=lF(),{locale:ei,asPath:eo}=(0,eP.useRouter)(),es=er.i18n;if(!es.length)return null;let eu=es.find(ee=>ei===ee.locale);return(0,eH.jsx)(l8,{title:"Change language",className:en,onChange:ee=>{let en=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${ee.key}; expires=${en.toUTCString()}; path=/`,location.href=(0,aA.addBasePath)(eo)},selected:{key:(null==eu?void 0:eu.locale)||"",name:(0,eH.jsxs)("span",{className:"nx-flex nx-items-center nx-gap-2",children:[(0,eH.jsx)(eY,{}),(0,eH.jsx)("span",{className:ee?"nx-hidden":"",children:null==eu?void 0:eu.text})]})},options:es.map(ee=>({key:ee.locale,name:ee.text}))})}function ur({menu:ee}){let en=lF();return(0,eH.jsxs)("footer",{className:"nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent",children:[(0,eH.jsxs)("div",{className:(0,eD.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-gap-2 nx-py-2 nx-px-4",ee&&(en.i18n.length>0||en.darkMode)?"nx-flex":"nx-hidden"),children:[(0,eH.jsx)(un,{}),en.darkMode&&lV(en.themeSwitch.component)]}),(0,eH.jsx)("hr",{className:"dark:nx-border-neutral-800"}),(0,eH.jsx)("div",{className:(0,eD.Z)("nx-mx-auto nx-flex nx-max-w-[90rem] nx-justify-center nx-py-12 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start","nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:lV(en.footer.text)})]})}function ui(){var ee;let en=lF(),{resolvedTheme:er}=(0,n4.F)(),ei=eF(),eo="function"==typeof en.head?en.head({}):en.head,{primaryHue:es,primarySaturation:eu}=en,{dark:ec,light:ed}="number"==typeof es?{dark:es,light:es}:es,{dark:ef,light:ep}="number"==typeof eu?{dark:eu,light:eu}:eu,eh=en.frontMatter;return(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)(oq,lw({title:en.title,description:eh.description,canonical:eh.canonical,openGraph:eh.openGraph},null==(ee=en.useNextSeoProps)?void 0:ee.call(en))),(0,eH.jsxs)(oF(),{children:[en.faviconGlyph?(0,eH.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${en.faviconGlyph}`}):null,ei?(0,eH.jsx)("meta",{name:"theme-color",content:"dark"===er?"#111":"#fff"}):(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,eH.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,eH.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,eH.jsx)("style",{children:` + :root { + --nextra-primary-hue: ${ed}deg; + --nextra-primary-saturation: ${ep}%; + --nextra-navbar-height: 4rem; + --nextra-menu-height: 3.75rem; + --nextra-banner-height: 2.5rem; + } + + .dark { + --nextra-primary-hue: ${ec}deg; + --nextra-primary-saturation: ${ef}%; + } + `}),eo]})]})}var uo={link:(0,eD.Z)("nx-flex nx-max-w-[50%] nx-items-center nx-gap-1 nx-py-4 nx-text-base nx-font-medium nx-text-gray-600 nx-transition-colors [word-break:break-word] hover:nx-text-primary-600 dark:nx-text-gray-300 md:nx-text-lg"),icon:(0,eD.Z)("nx-inline nx-h-5 nx-shrink-0")},us=({flatDirectories:ee,currentIndex:en})=>{let er=lF().navigation,ei="boolean"==typeof er?{prev:er,next:er}:er,eo=ei.prev&&ee[en-1],es=ei.next&&ee[en+1];return(eo&&!eo.isUnderCurrentDocsTree&&(eo=!1),es&&!es.isUnderCurrentDocsTree&&(es=!1),eo||es)?(0,eH.jsxs)("div",{className:(0,eD.Z)("nx-mb-8 nx-flex nx-items-center nx-border-t nx-pt-8 dark:nx-border-neutral-800","contrast-more:nx-border-neutral-400 dark:contrast-more:nx-border-neutral-400","print:nx-hidden"),children:[eo&&(0,eH.jsxs)(lG,{href:eo.route,title:eo.title,className:(0,eD.Z)(uo.link,"ltr:nx-pr-4 rtl:nx-pl-4"),children:[(0,eH.jsx)(eG,{className:(0,eD.Z)(uo.icon,"ltr:nx-rotate-180")}),eo.title]}),es&&(0,eH.jsxs)(lG,{href:es.route,title:es.title,className:(0,eD.Z)(uo.link,"ltr:nx-ml-auto ltr:nx-pl-4 ltr:nx-text-right rtl:nx-mr-auto rtl:nx-pr-4 rtl:nx-text-left"),children:[es.title,(0,eH.jsx)(eG,{className:(0,eD.Z)(uo.icon,"rtl:nx-rotate-180")})]})]}):null},ul={link:(0,eD.Z)("nx-text-sm contrast-more:nx-text-gray-700 contrast-more:dark:nx-text-gray-100"),active:(0,eD.Z)("nx-font-medium nx-subpixel-antialiased"),inactive:(0,eD.Z)("nx-text-gray-600 hover:nx-text-gray-800 dark:nx-text-gray-400 dark:hover:nx-text-gray-200")};function uu({className:ee,menu:en,children:er}){let{items:ei}=en,eo=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));return(0,eH.jsx)("div",{className:"nx-relative nx-inline-block",children:(0,eH.jsxs)(so,{children:[(0,eH.jsx)(so.Button,{className:(0,eD.Z)(ee,"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex",ul.inactive),children:er}),(0,eH.jsx)(aR,{leave:"nx-transition-opacity",leaveFrom:"nx-opacity-100",leaveTo:"nx-opacity-0",children:(0,eH.jsx)(so.Items,{className:"nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800",tabIndex:0,children:Object.entries(ei||{}).map(([ee,er])=>{var ei;return(0,eH.jsx)(so.Item,{children:(0,eH.jsx)(lG,{href:er.href||(null==(ei=eo[ee])?void 0:ei.route)||en.route+"/"+ee,className:(0,eD.Z)("nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block","nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9"),newWindow:er.newWindow,children:er.title||ee})},ee)})})})]})})}function uc({flatDirectories:ee,items:en}){let er=lF(),ei=eW(),{menu:eo,setMenu:es}=lM();return(0,eH.jsxs)("div",{className:"nextra-nav-container nx-sticky nx-top-0 nx-z-20 nx-w-full nx-bg-transparent print:nx-hidden",children:[(0,eH.jsx)("div",{className:(0,eD.Z)("nextra-nav-container-blur","nx-pointer-events-none nx-absolute nx-z-[-1] nx-h-full nx-w-full nx-bg-white dark:nx-bg-dark","nx-shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] dark:nx-shadow-[0_-1px_0_rgba(255,255,255,.1)_inset]","contrast-more:nx-shadow-[0_0_0_1px_#000] contrast-more:dark:nx-shadow-[0_0_0_1px_#fff]")}),(0,eH.jsxs)("nav",{className:"nx-mx-auto nx-flex nx-h-[var(--nextra-navbar-height)] nx-max-w-[90rem] nx-items-center nx-justify-end nx-gap-2 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]",children:[er.logoLink?(0,eH.jsx)(lG,{href:"string"==typeof er.logoLink?er.logoLink:"/",className:"nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto",children:lV(er.logo)}):(0,eH.jsx)("div",{className:"nx-flex nx-items-center ltr:nx-mr-auto rtl:nx-ml-auto",children:lV(er.logo)}),en.map(ee=>{if("hidden"===ee.display)return null;if("menu"===ee.type){let en=ee;return(0,eH.jsxs)(uu,{className:(0,eD.Z)(ul.link,"nx-flex nx-gap-1",ul.inactive),menu:en,children:[en.title,(0,eH.jsx)(eG,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5",pathClassName:"nx-origin-center nx-transition-transform nx-rotate-90"})]},en.title)}let en=ee,er=en.href||en.route||"#";en.children&&(er=(en.withIndexPage?en.route:en.firstChildRoute)||er);let eo=en.route===ei||ei.startsWith(en.route+"/");return(0,eH.jsxs)(lG,{href:er,className:(0,eD.Z)(ul.link,"nx-relative -nx-ml-2 nx-hidden nx-whitespace-nowrap nx-p-2 md:nx-inline-block",!eo||en.newWindow?ul.inactive:ul.active),newWindow:en.newWindow,"aria-current":!en.newWindow&&eo,children:[(0,eH.jsx)("span",{className:"nx-absolute nx-inset-x-0 nx-text-center",children:en.title}),(0,eH.jsx)("span",{className:"nx-invisible nx-font-medium",children:en.title})]},er)}),lV(er.search.component,{directories:ee,className:"nx-hidden md:nx-inline-block mx-min-w-[200px]"}),er.project.link?(0,eH.jsx)(lG,{className:"nx-p-2 nx-text-current",href:er.project.link,newWindow:!0,children:lV(er.project.icon)}):null,er.chat.link?(0,eH.jsx)(lG,{className:"nx-p-2 nx-text-current",href:er.chat.link,newWindow:!0,children:lV(er.chat.icon)}):null,lV(er.navbar.extraContent),(0,eH.jsx)("button",{type:"button","aria-label":"Menu",className:"nextra-hamburger -nx-mr-2 nx-rounded nx-p-2 active:nx-bg-gray-400/20 md:nx-hidden",onClick:()=>es(!eo),children:(0,eH.jsx)(e0,{className:(0,eD.Z)({open:eo})})})]})]})}var ud=Object.create(null),uf=(0,eM.createContext)(null),up=(0,eM.createContext)(null),uh=(0,eM.createContext)(0),um=(0,eM.memo)(function(ee){let en=(0,eM.useContext)(uh);return(0,eH.jsx)(uh.Provider,{value:en+1,children:(0,eH.jsx)(ug,lw({},ee))})}),ux={link:(0,eD.Z)("nx-flex nx-rounded nx-px-2 nx-py-1.5 nx-text-sm nx-transition-colors [word-break:break-word]","nx-cursor-pointer [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] contrast-more:nx-border"),inactive:(0,eD.Z)("nx-text-gray-500 hover:nx-bg-gray-100 hover:nx-text-gray-900","dark:nx-text-neutral-400 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50","contrast-more:nx-text-gray-900 contrast-more:dark:nx-text-gray-50","contrast-more:nx-border-transparent contrast-more:hover:nx-border-gray-900 contrast-more:dark:hover:nx-border-gray-50"),active:(0,eD.Z)("nx-bg-primary-100 nx-font-semibold nx-text-primary-800 dark:nx-bg-primary-400/10 dark:nx-text-primary-600","contrast-more:nx-border-primary-500 contrast-more:dark:nx-border-primary-500"),list:(0,eD.Z)("nx-flex nx-flex-col nx-gap-1"),border:(0,eD.Z)("nx-relative before:nx-absolute before:nx-inset-y-1",'before:nx-w-px before:nx-bg-gray-200 before:nx-content-[""] dark:before:nx-bg-neutral-800',"ltr:nx-pl-3 ltr:before:nx-left-0 rtl:nx-pr-3 rtl:before:nx-right-0")};function ug({item:ee,anchors:en}){let[er]=eW().split("#"),ei=[er,er+"/"].includes(ee.route+"/"),eo=ei||er.startsWith(ee.route+"/"),es=(0,eM.useContext)(uf),eu=!!(null==es?void 0:es.startsWith(ee.route+"/")),ec=(0,eM.useContext)(uh),{setMenu:ed}=lM(),ef=lF(),{theme:ep}=ee,eh=void 0===ud[ee.route]?ei||eo||eu||(ep&&"collapsed"in ep?!ep.collapsed:ec{let en=()=>{(eo||eu)&&(ud[ee.route]=!0)},er=()=>{eo&&eu?ud[ee.route]=!0:delete ud[ee.route]};ef.sidebar.autoCollapse?er():en()},[eo,eu,ee.route,ef.sidebar.autoCollapse]),"menu"===ee.type){let en=ee,er=Object.fromEntries((en.children||[]).map(ee=>[ee.name,ee]));ee.children=Object.entries(en.items||{}).map(([ee,ei])=>{let eo=er[ee]||lk(lw({name:ee},"locale"in en&&{locale:en.locale}),{route:en.route+"/"+ee});return lw(lw({},eo),ei)})}let ex="withIndexPage"in ee&&ee.withIndexPage,eg=ex?lG:"button";return(0,eH.jsxs)("li",{className:(0,eD.Z)({open:eh,active:ei}),children:[(0,eH.jsxs)(eg,{href:ex?ee.route:void 0,className:(0,eD.Z)("nx-items-center nx-justify-between nx-gap-2",!ex&&"nx-text-left nx-w-full",ux.link,ei?ux.active:ux.inactive),onClick:en=>{let er=["svg","path"].includes(en.target.tagName.toLowerCase());if(er&&en.preventDefault(),ex){ei||er?ud[ee.route]=!eh:(ud[ee.route]=!0,ed(!1)),em({});return}ei||(ud[ee.route]=!eh,em({}))},children:[lV(ef.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route}),(0,eH.jsx)(eG,{className:"nx-h-[18px] nx-min-w-[18px] nx-rounded-sm nx-p-0.5 hover:nx-bg-gray-800/5 dark:hover:nx-bg-gray-100/5",pathClassName:(0,eD.Z)("nx-origin-center nx-transition-transform rtl:-nx-rotate-180",eh&&"ltr:nx-rotate-90 rtl:nx-rotate-[-270deg]")})]}),(0,eH.jsx)(lX,{className:"ltr:nx-pr-0 rtl:nx-pl-0 nx-pt-1",isOpen:eh,children:Array.isArray(ee.children)?(0,eH.jsx)(ub,{className:(0,eD.Z)(ux.border,"ltr:nx-ml-3 rtl:nx-mr-3"),directories:ee.children,base:ee.route,anchors:en}):null})]})}function uv({title:ee}){let en=lF();return(0,eH.jsx)("li",{className:(0,eD.Z)("[word-break:break-word]",ee?"nx-mt-5 nx-mb-2 nx-px-2 nx-py-1.5 nx-text-sm nx-font-semibold nx-text-gray-900 first:nx-mt-0 dark:nx-text-gray-100":"nx-my-4"),children:ee?lV(en.sidebar.titleComponent,{title:ee,type:"separator",route:""}):(0,eH.jsx)("hr",{className:"nx-mx-2 nx-border-t nx-border-gray-200 dark:nx-border-primary-100/10"})})}function uy({item:ee,anchors:en}){let er=eW(),ei=(0,eM.useContext)(up),eo=ee.route&&[er,er+"/"].includes(ee.route+"/"),es=lN(),{setMenu:eu}=lM(),ec=lF();return"separator"===ee.type?(0,eH.jsx)(uv,{title:ee.title}):(0,eH.jsxs)("li",{className:(0,eD.Z)(ux.list,{active:eo}),children:[(0,eH.jsx)(lG,{href:ee.href||ee.route,newWindow:ee.newWindow,className:(0,eD.Z)(ux.link,eo?ux.active:ux.inactive),onClick:()=>{eu(!1)},onFocus:()=>{null==ei||ei(ee.route)},onBlur:()=>{null==ei||ei(null)},children:lV(ec.sidebar.titleComponent,{title:ee.title,type:ee.type,route:ee.route})}),eo&&en.length>0&&(0,eH.jsx)("ul",{className:(0,eD.Z)(ux.list,ux.border,"ltr:nx-ml-3 rtl:nx-mr-3"),children:en.map(({id:ee,value:en})=>{var er;return(0,eH.jsx)("li",{children:(0,eH.jsx)("a",{href:`#${ee}`,className:(0,eD.Z)(ux.link,'nx-flex nx-gap-2 before:nx-opacity-25 before:nx-content-["#"]',(null==(er=es[ee])?void 0:er.isActive)?ux.active:ux.inactive),onClick:()=>{eu(!1)},children:en})},ee)})})]})}function ub({directories:ee,anchors:en,className:er,onlyCurrentDocs:ei}){return(0,eH.jsx)("ul",{className:(0,eD.Z)(ux.list,er),children:ee.map(ee=>!ei||ee.isUnderCurrentDocsTree?"menu"===ee.type||ee.children&&(ee.children.length||!ee.withIndexPage)?(0,eH.jsx)(um,{item:ee,anchors:en},ee.name):(0,eH.jsx)(uy,{item:ee,anchors:en},ee.name):null)})}function uw({docsDirectories:ee,flatDirectories:en,fullDirectories:er,asPopover:ei=!1,headings:eo,includePlaceholder:es}){let eu=lF(),{menu:ec,setMenu:ed}=lM(),ef=(0,eP.useRouter)(),[ep,eh]=(0,eM.useState)(null),[em,ex]=(0,eM.useState)(!0),[eg,ev]=(0,eM.useState)(!1),ey=(0,eM.useMemo)(()=>eo.filter(ee=>2===ee.depth),[eo]),eb=(0,eM.useRef)(null),ew=(0,eM.useRef)(null),ek=eF();(0,eM.useEffect)(()=>{ec?document.body.classList.add("nx-overflow-hidden","md:nx-overflow-auto"):document.body.classList.remove("nx-overflow-hidden","md:nx-overflow-auto")},[ec]),(0,eM.useEffect)(()=>{var ee;let en=null==(ee=eb.current)?void 0:ee.querySelector("li.active");if(en&&(window.innerWidth>767||ec)){let ee=()=>{sh(en,{block:"center",inline:"center",scrollMode:"always",boundary:ew.current})};ec?setTimeout(ee,300):ee()}},[ec]),(0,eM.useEffect)(()=>{ed(!1)},[ef.asPath,ed]);let e_=eu.i18n.length>0,ej=eu.darkMode||e_||eu.sidebar.toggleButton;return(0,eH.jsxs)(eH.Fragment,{children:[es&&ei?(0,eH.jsx)("div",{className:"max-xl:nx-hidden nx-h-0 nx-w-64 nx-shrink-0"}):null,(0,eH.jsx)("div",{className:(0,eD.Z)("motion-reduce:nx-transition-none [transition:background-color_1.5s_ease]",ec?"nx-fixed nx-inset-0 nx-z-10 nx-bg-black/80 dark:nx-bg-black/60":"nx-bg-transparent"),onClick:()=>ed(!1)}),(0,eH.jsxs)("aside",{className:(0,eD.Z)("nextra-sidebar-container nx-flex nx-flex-col","md:nx-top-16 md:nx-shrink-0 motion-reduce:nx-transform-none","nx-transform-gpu nx-transition-all nx-ease-in-out","print:nx-hidden",em?"md:nx-w-64":"md:nx-w-20",ei?"md:nx-hidden":"md:nx-sticky md:nx-self-start",ec?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:ew,children:[(0,eH.jsx)("div",{className:"nx-px-4 nx-pt-4 md:nx-hidden",children:lV(eu.search.component,{directories:en})}),(0,eH.jsx)(uf.Provider,{value:ep,children:(0,eH.jsx)(up.Provider,{value:ee=>{eh(ee)},children:(0,eH.jsxs)("div",{className:(0,eD.Z)("nx-overflow-y-auto nx-overflow-x-hidden","nx-p-4 nx-grow md:nx-h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",em?"nextra-scrollbar":"no-scrollbar"),ref:eb,children:[(!ei||!em)&&(0,eH.jsx)(lX,{isOpen:em,horizontal:!0,children:(0,eH.jsx)(ub,{className:"nextra-menu-desktop max-md:nx-hidden",directories:ee,anchors:eu.toc.float?[]:ey,onlyCurrentDocs:!0})}),ek&&window.innerWidth<768&&(0,eH.jsx)(ub,{className:"nextra-menu-mobile md:nx-hidden",directories:er,anchors:ey})]})})}),ej&&(0,eH.jsxs)("div",{className:(0,eD.Z)("nx-sticky nx-bottom-0","nx-bg-white dark:nx-bg-dark","nx-mx-4 nx-py-4 nx-shadow-[0_-12px_16px_#fff]","nx-flex nx-items-center nx-gap-2","dark:nx-border-neutral-800 dark:nx-shadow-[0_-12px_16px_#111]","contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-shadow-none",em?(0,eD.Z)(e_&&"nx-justify-end","nx-border-t"):"nx-py-4 nx-flex-wrap nx-justify-center"),"data-toggle-animation":eg?em?"show":"hide":"off",children:[(0,eH.jsx)(un,{lite:!em,className:(0,eD.Z)(em?"nx-grow":"max-md:nx-grow")}),eu.darkMode&&(0,eH.jsx)("div",{className:em&&!e_?"nx-grow nx-flex nx-flex-col":"",children:lV(eu.themeSwitch.component,{lite:!em||e_})}),eu.sidebar.toggleButton&&(0,eH.jsx)("button",{title:em?"Hide sidebar":"Show sidebar",className:"max-md:nx-hidden nx-h-7 nx-rounded-md nx-transition-colors nx-text-gray-600 dark:nx-text-gray-400 nx-px-2 hover:nx-bg-gray-100 hover:nx-text-gray-900 dark:hover:nx-bg-primary-100/5 dark:hover:nx-text-gray-50",onClick:()=>{ex(!em),ev(!0)},children:(0,eH.jsx)(eQ,{isOpen:em})})]})]})]})}var uk="reach-skip-nav",u_="Skip to content";(0,eM.forwardRef)(function(ee,en){var er=ee,{className:ei,id:eo,label:es=u_,styled:eu}=er,ec=l_(er,["className","id","label","styled"]);let ed=void 0===ei?eu?(0,eD.Z)("nx-sr-only","focus:nx-not-sr-only focus:nx-fixed focus:nx-z-50 focus:nx-m-3 focus:nx-ml-4 focus:nx-h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:nx-rounded-lg focus:nx-border focus:nx-px-3 focus:nx-py-2 focus:nx-align-middle focus:nx-text-sm focus:nx-font-bold","focus:nx-text-gray-900 focus:dark:nx-text-gray-100","focus:nx-bg-white focus:dark:nx-bg-neutral-900","focus:nx-border-neutral-400 focus:dark:nx-border-neutral-800"):"":ei;return(0,eH.jsx)("a",lk(lw({},ec),{ref:en,href:`#${eo||uk}`,className:ed,"data-reach-skip-link":"",children:es}))}).displayName="SkipNavLink";var uj=(0,eM.forwardRef)(function(ee,en){var er=ee,{id:ei}=er,eo=l_(er,["id"]);return(0,eH.jsx)("div",lk(lw({},eo),{ref:en,id:ei||uk}))});uj.displayName="SkipNavContent";var uE=nX.strictObject({light:nX.string(),dark:nX.string(),system:nX.string()});function uO({lite:ee,className:en}){let{setTheme:er,resolvedTheme:ei,theme:eo=""}=(0,n4.F)(),es=eF(),eu=lF().themeSwitch,ec=es&&"dark"===ei?e1:e4,ed="function"==typeof eu.useOptions?eu.useOptions():eu.useOptions;return(0,eH.jsx)(l8,{className:en,title:"Change theme",options:[{key:"light",name:ed.light},{key:"dark",name:ed.dark},{key:"system",name:ed.system}],onChange:ee=>{er(ee.key)},selected:{key:eo,name:(0,eH.jsxs)("div",{className:"nx-flex nx-items-center nx-gap-2 nx-capitalize",children:[(0,eH.jsx)(ec,{}),(0,eH.jsx)("span",{className:ee?"md:nx-hidden":"",children:es?ed[eo]:ed.light})]})}})}function uC(){window.scrollTo({top:0,behavior:"smooth"})}function uT({className:ee}){let en=(0,eM.useRef)(null);return(0,eM.useEffect)(()=>{function ee(){var ee;let{scrollTop:er}=document.documentElement;null==(ee=en.current)||ee.classList.toggle("nx-opacity-0",er<300)}return window.addEventListener("scroll",ee),()=>{window.removeEventListener("scroll",ee)}},[]),(0,eH.jsxs)("button",{ref:en,"aria-hidden":"true",onClick:uC,className:(0,eD.Z)("nx-flex nx-items-center nx-gap-1.5 nx-transition nx-opacity-0",ee),children:["Scroll to top",(0,eH.jsx)(eG,{className:"-nx-rotate-90 nx-w-3.5 nx-h-3.5 nx-border nx-rounded-full nx-border-current"})]})}var uS=(0,eD.Z)("nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100","contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50");function uN({headings:ee,filePath:en}){var er;let ei=lN(),eo=lF(),es=(0,eM.useRef)(null),eu=(0,eM.useMemo)(()=>ee.filter(ee=>ee.depth>1),[ee]),ec=eu.length>0,ed=!!(eo.feedback.content||eo.editLink.component||eo.toc.extraContent),ef=null==(er=Object.entries(ei).find(([,{isActive:ee}])=>ee))?void 0:er[0];return(0,eM.useEffect)(()=>{var ee;if(!ef)return;let en=null==(ee=es.current)?void 0:ee.querySelector(`li > a[href="#${ef}"]`);en&&sh(en,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:es.current})},[ef]),(0,eH.jsxs)("div",{ref:es,className:(0,eD.Z)("nextra-scrollbar nx-sticky nx-top-16 nx-overflow-y-auto nx-pr-4 nx-pt-6 nx-text-sm [hyphens:auto]","nx-max-h-[calc(100vh-var(--nextra-navbar-height)-env(safe-area-inset-bottom))] ltr:-nx-mr-4 rtl:-nx-ml-4"),children:[ec&&(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("p",{className:"nx-mb-4 nx-font-semibold nx-tracking-tight",children:lV(eo.toc.title)}),(0,eH.jsx)("ul",{children:eu.map(({id:ee,value:en,depth:er})=>{var es,eu,ec,ed;return(0,eH.jsx)("li",{className:"nx-my-2 nx-scroll-my-6 nx-scroll-py-6",children:(0,eH.jsx)("a",{href:`#${ee}`,className:(0,eD.Z)({2:"nx-font-semibold",3:"ltr:nx-pl-4 rtl:nx-pr-4",4:"ltr:nx-pl-8 rtl:nx-pr-8",5:"ltr:nx-pl-12 rtl:nx-pr-12",6:"ltr:nx-pl-16 rtl:nx-pr-16"}[er],"nx-inline-block",(null==(es=ei[ee])?void 0:es.isActive)?"nx-text-primary-600 nx-subpixel-antialiased contrast-more:!nx-text-primary-600":"nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-300","contrast-more:nx-text-gray-900 contrast-more:nx-underline contrast-more:dark:nx-text-gray-50 nx-w-full nx-break-words"),children:null!=(ed=null==(ec=(eu=eo.toc).headingComponent)?void 0:ec.call(eu,{id:ee,children:en}))?ed:en})},ee)})})]}),ed&&(0,eH.jsxs)("div",{className:(0,eD.Z)(ec&&"nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111]","nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800","contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400"),children:[eo.feedback.content?(0,eH.jsx)(lG,{className:uS,href:eo.feedback.useLink(),newWindow:!0,children:lV(eo.feedback.content)}):null,lV(eo.editLink.component,{filePath:en,className:uS,children:lV(eo.editLink.text)}),lV(eo.toc.extraContent),eo.toc.backToTop&&(0,eH.jsx)(uT,{className:uS})]})]})}function uI({className:ee,directories:en}){let[er,ei]=(0,eM.useState)(""),eo=(0,eM.useMemo)(()=>er?sb(en,er,{keys:["title"]}).map(({route:ee,title:en})=>({id:ee+en,route:ee,children:(0,eH.jsx)(l0,{value:en,match:er})})):[],[er,en]);return(0,eH.jsx)(l4,{value:er,onChange:ei,className:ee,overlayClassName:"nx-w-full",results:eo})}var uR="en-US",uA="undefined"!=typeof window;function uL(ee){return null==ee||"string"==typeof ee||uP(ee)||(0,eM.isValidElement)(ee)}function uP(ee){return"function"==typeof ee}var uM=nX.array(nX.strictObject({direction:nX.enum(["ltr","rtl"]).optional(),locale:nX.string(),text:nX.string()})),uZ=[uL,{message:"Must be React.ReactNode or React.FC"}],uD=[uP,{message:"Must be React.FC"}];nX.strictObject({banner:nX.strictObject({dismissible:nX.boolean(),key:nX.string(),text:nX.custom(...uZ).optional()}),chat:nX.strictObject({icon:nX.custom(...uZ),link:nX.string().startsWith("https://").optional()}),components:nX.record(nX.custom(...uD)).optional(),darkMode:nX.boolean(),direction:nX.enum(["ltr","rtl"]),docsRepositoryBase:nX.string().startsWith("https://"),editLink:nX.strictObject({component:nX.custom(...uD),text:nX.custom(...uZ)}),faviconGlyph:nX.string().optional(),feedback:nX.strictObject({content:nX.custom(...uZ),labels:nX.string(),useLink:nX.function().returns(nX.string())}),footer:nX.strictObject({component:nX.custom(...uZ),text:nX.custom(...uZ)}),gitTimestamp:nX.custom(...uZ),head:nX.custom(...uZ),i18n:uM,logo:nX.custom(...uZ),logoLink:nX.boolean().or(nX.string()),main:nX.custom(...uD).optional(),navbar:nX.strictObject({component:nX.custom(...uZ),extraContent:nX.custom(...uZ).optional()}),navigation:nX.boolean().or(nX.strictObject({next:nX.boolean(),prev:nX.boolean()})),nextThemes:nX.strictObject({defaultTheme:nX.string(),forcedTheme:nX.string().optional(),storageKey:nX.string()}),notFound:nX.strictObject({content:nX.custom(...uZ),labels:nX.string()}),primaryHue:nX.number().or(nX.strictObject({dark:nX.number(),light:nX.number()})),primarySaturation:nX.number().or(nX.strictObject({dark:nX.number(),light:nX.number()})),project:nX.strictObject({icon:nX.custom(...uZ),link:nX.string().startsWith("https://").optional()}),search:nX.strictObject({component:nX.custom(...uZ),emptyResult:nX.custom(...uZ),error:nX.string().or(nX.function().returns(nX.string())),loading:nX.custom(...uZ),placeholder:nX.string().or(nX.function().returns(nX.string()))}),serverSideError:nX.strictObject({content:nX.custom(...uZ),labels:nX.string()}),sidebar:nX.strictObject({autoCollapse:nX.boolean().optional(),defaultMenuCollapseLevel:nX.number().min(1).int(),titleComponent:nX.custom(...uZ),toggleButton:nX.boolean()}),themeSwitch:nX.strictObject({component:nX.custom(...uZ),useOptions:uE.or(nX.function().returns(uE))}),toc:nX.strictObject({backToTop:nX.boolean(),component:nX.custom(...uZ),extraContent:nX.custom(...uZ),float:nX.boolean(),headingComponent:nX.custom(...uD).optional(),title:nX.custom(...uZ)}),useNextSeoProps:nX.custom(uP)}).deepPartial().extend({i18n:uM.optional()});var uF={"en-US":"Loading",fr:"Сhargement",ru:"Загрузка","zh-CN":"正在加载"},u$={"en-US":"Search documentation",fr:"Rechercher documents",ru:"Поиск документации","zh-CN":"搜索文档"},uU={banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)(eK,{}),(0,eH.jsx)("span",{className:"nx-sr-only",children:"Discord"})]})},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:ee,filePath:en,children:er}){let ei=lQ(en);return ei?(0,eH.jsx)(lG,{className:ee,href:ei,children:er}):null},text:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let ee=lF();return lB({labels:ee.feedback.labels,repository:ee.docsRepositoryBase,title:`Feedback for \u201C${ee.title}\u201D`})}},footer:{component:ur,text:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:ee}){let{locale:en=uR}=(0,eP.useRouter)();return(0,eH.jsxs)(eH.Fragment,{children:["Last updated on"," ",(0,eH.jsx)("time",{dateTime:ee.toISOString(),children:ee.toLocaleDateString(en,{day:"numeric",month:"long",year:"numeric"})})]})},head:(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("meta",{name:"msapplication-TileColor",content:"#fff"}),(0,eH.jsx)("meta",{httpEquiv:"Content-Language",content:"en"}),(0,eH.jsx)("meta",{name:"description",content:"Nextra: the next docs builder"}),(0,eH.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,eH.jsx)("meta",{name:"twitter:site",content:"@shuding_"}),(0,eH.jsx)("meta",{property:"og:title",content:"Nextra: the next docs builder"}),(0,eH.jsx)("meta",{property:"og:description",content:"Nextra: the next docs builder"}),(0,eH.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Nextra"})]}),i18n:[],logo:(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)("span",{className:"nx-font-extrabold",children:"Nextra"}),(0,eH.jsx)("span",{className:"nx-ml-2 nx-hidden nx-font-normal nx-text-gray-600 md:nx-inline",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:uc},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},primaryHue:{dark:204,light:212},primarySaturation:{dark:100,light:100},project:{icon:(0,eH.jsxs)(eH.Fragment,{children:[(0,eH.jsx)(eJ,{}),(0,eH.jsx)("span",{className:"nx-sr-only",children:"GitHub"})]})},search:{component:function({className:ee,directories:en}){return lF().flexsearch?(0,eH.jsx)(l9,{className:ee}):(0,eH.jsx)(uI,{className:ee,directories:en})},emptyResult:(0,eH.jsx)("span",{className:"nx-block nx-select-none nx-p-8 nx-text-center nx-text-sm nx-text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:function(){let{locale:ee,defaultLocale:en=uR}=(0,eP.useRouter)(),er=ee&&uF[ee]||uF[en];return(0,eH.jsxs)(eH.Fragment,{children:[er,"…"]})},placeholder:function(){let{locale:ee,defaultLocale:en=uR}=(0,eP.useRouter)(),er=ee&&u$[ee]||u$[en];return`${er}\u2026`}},serverSideError:{content:"Submit an issue about error in url →",labels:"bug"},sidebar:{defaultMenuCollapseLevel:2,titleComponent:({title:ee})=>(0,eH.jsx)(eH.Fragment,{children:ee}),toggleButton:!1},themeSwitch:{component:uO,useOptions(){let{locale:ee}=(0,eP.useRouter)();return"zh-CN"===ee?{dark:"深色主题",light:"浅色主题",system:"系统默认"}:{dark:"Dark",light:"Light",system:"System"}}},toc:{backToTop:!1,component:uN,float:!0,title:"On This Page"},useNextSeoProps:()=>({titleTemplate:"%s – Nextra"})},uW=Object.entries(uU).map(([ee,en])=>{if(en&&"object"==typeof en&&!Array.isArray(en)&&!(0,eM.isValidElement)(en))return ee}).filter(Boolean);if(uA){let ee;let en=()=>{document.body.classList.add("resizing"),clearTimeout(ee),ee=setTimeout(()=>{document.body.classList.remove("resizing")},200)};window.addEventListener("resize",en)}function uz(ee){var en=ee,{tag:er,context:ei,children:eo,id:es,className:eu}=en,ec=l_(en,["tag","context","children","id","className"]);let ed=lI(),ef=lA(),ep=lR(),eh=(0,eM.useRef)(null);return(0,eM.useEffect)(()=>{if(!es)return;let ee=eh.current;if(ee)return ef.set(ee,[es,ei.index+=1]),null==ep||ep.observe(ee),()=>{null==ep||ep.disconnect(),ef.delete(ee),ed(ee=>{let en=lw({},ee);return delete en[es],en})}},[es,ei,ef,ep,ed]),(0,eH.jsxs)(er,lk(lw({className:"sr-only"===eu?"nx-sr-only":(0,eD.Z)("nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100",{h2:"nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400",h3:"nx-mt-8 nx-text-2xl",h4:"nx-mt-8 nx-text-xl",h5:"nx-mt-8 nx-text-lg",h6:"nx-mt-8 nx-text-base"}[er])},ec),{children:[eo,es&&(0,eH.jsx)("a",{href:`#${es}`,id:es,className:"subheading-anchor","aria-label":"Permalink for this section",ref:eh})]}))}var uH=ee=>{let en=null,er=[];return eM.Children.forEach(ee,(ee,ei)=>{var eo;if(ee&&ee.type===uB){en||(en=ee);return}let es=ee;if(!en&&ee&&"object"==typeof ee&&ee.type!==uG&&"props"in ee&&ee.props){let er=uH(ee.props.children);en=er[0],es=(0,eM.cloneElement)(ee,lk(lw({},ee.props),{children:(null==(eo=er[1])?void 0:eo.length)?er[1]:void 0,key:ei}))}er.push(es)}),[en,er]},uG=ee=>{var en=ee,{children:er,open:ei}=en,eo=l_(en,["children","open"]);let[es,eu]=(0,eM.useState)(!!ei),[ec,ed]=uH(er),[ef,ep]=(0,eM.useState)(es);return(0,eM.useEffect)(()=>{if(es)ep(!0);else{let ee=setTimeout(()=>ep(es),500);return()=>clearTimeout(ee)}},[es]),(0,eH.jsxs)("details",lk(lw(lk(lw({className:"nx-my-4 nx-rounded nx-border nx-border-gray-200 nx-bg-white nx-p-2 nx-shadow-sm first:nx-mt-0 dark:nx-border-neutral-800 dark:nx-bg-neutral-900"},eo),{open:ef}),es&&{"data-expanded":!0}),{children:[(0,eH.jsx)(lz,{value:eu,children:ec}),(0,eH.jsx)(lX,{isOpen:es,children:ed})]}))},uB=ee=>{let en=lW();return(0,eH.jsx)("summary",lk(lw({className:(0,eD.Z)("nx-flex nx-items-center nx-cursor-pointer nx-list-none nx-p-1 nx-transition-colors hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800","before:nx-mr-1 before:nx-inline-block before:nx-transition-transform before:nx-content-[''] dark:before:nx-invert before:nx-shrink-0","rtl:before:nx-rotate-180 [[data-expanded]>&]:before:nx-rotate-90")},ee),{onClick:ee=>{ee.preventDefault(),en(ee=>!ee)}}))},uV=/https?:\/\//,uq=ee=>{var en=ee,{href:er="",className:ei}=en,eo=l_(en,["href","className"]);return(0,eH.jsx)(lG,lw({href:er,newWindow:uV.test(er),className:(0,eD.Z)("nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]",ei)},eo))},uK=ee=>{var en=ee,{href:er=""}=en,ei=l_(en,["href"]);return(0,eH.jsx)(lG,lw({href:er,newWindow:uV.test(er)},ei))},uQ=({isRawLayout:ee,components:en})=>{if(ee)return{a:uK};let er={index:0};return lw({h1:ee=>(0,eH.jsx)("h1",lw({className:"nx-mt-2 nx-text-4xl nx-font-bold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100"},ee)),h2:ee=>(0,eH.jsx)(uz,lw({tag:"h2",context:er},ee)),h3:ee=>(0,eH.jsx)(uz,lw({tag:"h3",context:er},ee)),h4:ee=>(0,eH.jsx)(uz,lw({tag:"h4",context:er},ee)),h5:ee=>(0,eH.jsx)(uz,lw({tag:"h5",context:er},ee)),h6:ee=>(0,eH.jsx)(uz,lw({tag:"h6",context:er},ee)),ul:ee=>(0,eH.jsx)("ul",lw({className:"nx-mt-6 nx-list-disc first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),ol:ee=>(0,eH.jsx)("ol",lw({className:"nx-mt-6 nx-list-decimal first:nx-mt-0 ltr:nx-ml-6 rtl:nx-mr-6"},ee)),li:ee=>(0,eH.jsx)("li",lw({className:"nx-my-2"},ee)),blockquote:ee=>(0,eH.jsx)("blockquote",lw({className:(0,eD.Z)("nx-mt-6 nx-border-gray-300 nx-italic nx-text-gray-700 dark:nx-border-gray-700 dark:nx-text-gray-400","first:nx-mt-0 ltr:nx-border-l-2 ltr:nx-pl-6 rtl:nx-border-r-2 rtl:nx-pr-6")},ee)),hr:ee=>(0,eH.jsx)("hr",lw({className:"nx-my-8 nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400"},ee)),a:uq,table:ee=>(0,eH.jsx)(ln,lw({className:"nextra-scrollbar nx-mt-6 nx-p-0 first:nx-mt-0"},ee)),p:ee=>(0,eH.jsx)("p",lw({className:"nx-mt-6 nx-leading-7 first:nx-mt-0"},ee)),tr:li,th:lr,td:lt,details:uG,summary:uB,pre:sP,code:sL},en)},uJ={toc:(0,eD.Z)("nextra-toc nx-order-last nx-hidden nx-w-64 nx-shrink-0 xl:nx-block print:nx-hidden"),main:(0,eD.Z)("nx-w-full nx-break-words")},uY=({themeContext:ee,breadcrumb:en,timestamp:er,navigation:ei,children:eo})=>{var es;let eu=lF(),ec=eF();if("raw"===ee.layout)return(0,eH.jsx)("div",{className:uJ.main,children:eo});let ed=ee.timestamp&&eu.gitTimestamp&&er?new Date(er):null,ef=ec&&ed?(0,eH.jsx)("div",{className:"nx-mt-12 nx-mb-8 nx-block nx-text-xs nx-text-gray-500 ltr:nx-text-right rtl:nx-text-left dark:nx-text-gray-400",children:lV(eu.gitTimestamp,{timestamp:ed})}):(0,eH.jsx)("div",{className:"nx-mt-16"}),ep=(0,eH.jsxs)(eH.Fragment,{children:[eo,ef,ei]}),eh=(null==(es=eu.main)?void 0:es.call(eu,{children:ep}))||ep;return"full"===ee.layout?(0,eH.jsx)("article",{className:(0,eD.Z)(uJ.main,"nextra-content nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]"),children:eh}):(0,eH.jsx)("article",{className:(0,eD.Z)(uJ.main,"nextra-content nx-flex nx-min-h-[calc(100vh-var(--nextra-navbar-height))] nx-min-w-0 nx-justify-center nx-pb-8 nx-pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===ee.typesetting&&"nextra-body-typesetting-article"),children:(0,eH.jsxs)("main",{className:"nx-w-full nx-min-w-0 nx-max-w-6xl nx-px-6 nx-pt-4 md:nx-px-12",children:[en,eh]})})},uX=({filePath:ee,pageMap:en,frontMatter:er,headings:ei,timestamp:eo,children:es})=>{let eu=lF(),{locale:ec=uR,defaultLocale:ed}=(0,eP.useRouter)(),ef=eW(),{activeType:ep,activeIndex:eh,activeThemeContext:em,activePath:ex,topLevelNavbarItems:eg,docsDirectories:ev,flatDirectories:ey,flatDocsDirectories:eb,directories:ew}=(0,eM.useMemo)(()=>ro({list:en,locale:ec,defaultLocale:ed,route:ef}),[en,ec,ed,ef]),ek=lw(lw({},em),er),e_=!ek.sidebar||"raw"===ek.layout||"page"===ep,ej="page"!==ep&&ek.toc&&"default"===ek.layout?(0,eH.jsx)("nav",{className:(0,eD.Z)(uJ.toc,"nx-px-4"),"aria-label":"table of contents",children:lV(eu.toc.component,{headings:eu.toc.float?ei:[],filePath:ee})}):"full"!==ek.layout&&"raw"!==ek.layout&&(0,eH.jsx)("nav",{className:uJ.toc,"aria-label":"table of contents"}),eE=eu.i18n.find(ee=>ee.locale===ec),eO=(eE?"rtl"===eE.direction:"rtl"===eu.direction)?"rtl":"ltr";return(0,eH.jsxs)("div",{dir:eO,children:[(0,eH.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${eO}')`}}),(0,eH.jsx)(ui,{}),(0,eH.jsx)(lJ,{}),ek.navbar&&lV(eu.navbar.component,{flatDirectories:ey,items:eg}),(0,eH.jsx)("div",{className:(0,eD.Z)("nx-mx-auto nx-flex","raw"!==ek.layout&&"nx-max-w-[90rem]"),children:(0,eH.jsxs)(lL,{children:[(0,eH.jsx)(uw,{docsDirectories:ev,flatDirectories:ey,fullDirectories:ew,headings:ei,asPopover:e_,includePlaceholder:"default"===ek.layout}),ej,(0,eH.jsx)(uj,{}),(0,eH.jsx)(uY,{themeContext:ek,breadcrumb:"page"!==ep&&ek.breadcrumb?(0,eH.jsx)(lY,{activePath:ex}):null,timestamp:eo,navigation:"page"!==ep&&ek.pagination?(0,eH.jsx)(us,{flatDirectories:eb,currentIndex:eh}):null,children:(0,eH.jsx)(ez.Z,{components:uQ({isRawLayout:"raw"===ek.layout,components:eu.components}),children:es})})]})}),ek.footer&&lV(eu.footer.component,{menu:e_})]})};function u0(ee){var en=ee,{children:er}=en,ei=l_(en,["children"]);return(0,eH.jsx)(l$,{value:ei,children:(0,eH.jsx)(uX,lk(lw({},ei.pageOpts),{children:er}))})}},483:function(ee,en,er){"use strict";er.d(en,{Z:function(){return ec},a:function(){return eh}});var ei=er(79);let eo=ei.createContext({});function es(ee){let en=ei.useContext(eo);return ei.useMemo(()=>"function"==typeof ee?ee(en):{...en,...ee},[en,ee])}let eu={};function ec({components:ee,children:en,disableParentContext:er}){let ec;return ec=er?"function"==typeof ee?ee({}):ee||eu:es(ee),ei.createElement(eo.Provider,{value:ec},en)}var ed=er(7860),ef=er.n(ed),ep={img:ee=>(0,ei.createElement)("object"==typeof ee.src?ef():"img",ee)},eh=ee=>es({...ep,...ee})},4475:function(ee,en,er){"use strict";er.d(en,{j:function(){return ej}});var ei,eo=er(4619),es=er.n(eo),eu=er(2083),ec=er(79);er(9851),"undefined"!=typeof window&&(window.requestIdleCallback=window.requestIdleCallback||function(ee){var en=Date.now();return setTimeout(function(){ee({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-en))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(ee){clearTimeout(ee)}),er(483);var ed=er(5250),ef=(0,ec.createContext)(!1),ep=er(3509);function eh(){let ee=globalThis[eu.eZ],{route:en}=(0,ep.useRouter)();(0,ec.useState)({})[1];let er=ee.context[en];if(!er)throw Error("No content found for the current route. This is a Nextra bug.");return{context:er,Layout:ee.Layout}}function em({__nextra_pageMap:ee,__nextra_dynamic_opts:en,...er}){let{context:ei,Layout:eo}=eh(),{Content:es,...eu}=ei;if(ee&&(eu.pageOpts={...eu.pageOpts,pageMap:ee}),en){let{headings:ee,title:er,frontMatter:ei}=JSON.parse(en);eu.pageOpts={...eu.pageOpts,headings:ee,title:er,frontMatter:ei}}return(0,ed.jsx)(eo,{...eu,pageProps:er,children:(0,ed.jsx)(ef.Provider,{value:er,children:(0,ed.jsx)(es,{...er})})})}var ex=er(9568),eg=er(9199),ev=er(439);function ey(ee,en){return eg(ex.join(ee,en.replace(/^index$/,"")))}function eb(ee){return ev(ee.replaceAll(/[-_]/g," "))}function ew(ee){return!!ee&&"object"==typeof ee&&"folder"===ee.type}function ek(ee){return Object.fromEntries(Object.entries(ee).map(([ee,en])=>{if(ew(en)){let er=ee.replace("/","");return[er,en.title||eb(er)]}return[ee,en||eb(ee)]}))}function e_(ee,en,er=!0){if(er){e_(ee,{kind:"Meta",data:en.data,locale:en.locale},!1),en.data=ek(en.data);return}for(let[er,ei]of Object.entries(en.data)){if(!ew(ei)){if("*"===er)continue;ee.children.push({kind:"MdxPage",...en.locale&&{locale:en.locale},name:er,route:ey(ee.route,er)});continue}let eo=er.replace("/",""),es={kind:"Folder",name:eo,route:`${ee.route}/${eo}`,children:[{kind:"Meta",...en.locale&&{locale:en.locale},data:ek(ei.items)}]};ee.children.push(es),e_(es,{kind:"Meta",data:ei.items,locale:en.locale},!1)}}function ej({pageNextRoute:ee,pageOpts:en,nextraLayout:er,themeConfig:eo,MDXContent:ec,hot:ed,pageOptsChecksum:ef,dynamicMetaModules:ep=[]}){var eh;"undefined"==typeof window&&(globalThis.__nextra_resolvePageMap=async()=>{if(ei)return ei;let ee=JSON.parse(JSON.stringify(ex.pageMap));return await Promise.all(ep.map(async([en,{metaObjectKeyPath:er,metaParentKeyPath:ei}])=>{let eo=await en,eu=await eo.default(),ec=es()(ee,er);ec.data=eu,e_(es()(ee,ei),ec)})),ei=ee});let ex=globalThis[eh=eu.eZ]||(globalThis[eh]=Object.create(null));return en.pageMap?(ex.pageMap=en.pageMap,ex.Layout=er):(en={...en,pageMap:ex.pageMap,flexsearch:ex.flexsearch},eo=ex.themeConfig),en={frontMatter:{},...en},ex.route=en.route,ex.context||(ex.context=Object.create(null)),ex.context[ee]={Content:ec,pageOpts:en,themeConfig:eo},em}},2513:function(ee,en,er){"use strict";var ei=er(3155);function eo(ee){var en={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:ee,query:{},parse_failed:!1};try{var er=new URL(ee);en.protocols=ei(er),en.protocol=en.protocols[0],en.port=er.port,en.resource=er.hostname,en.host=er.host,en.user=er.username||"",en.password=er.password||"",en.pathname=er.pathname,en.hash=er.hash.slice(1),en.search=er.search.slice(1),en.href=er.href,en.query=Object.fromEntries(er.searchParams)}catch(er){en.protocols=["file"],en.protocol=en.protocols[0],en.port="",en.resource="",en.user="",en.pathname="",en.hash="",en.search="",en.href=ee,en.query={},en.parse_failed=!0}return en}ee.exports=eo},2343:function(ee,en,er){"use strict";var ei=function(ee){return ee&&"object"==typeof ee&&"default"in ee?ee:{default:ee}}(er(2513));let eo="text/plain",es="us-ascii",eu=(ee,en)=>en.some(en=>en instanceof RegExp?en.test(ee):en===ee),ec=(ee,{stripHash:en})=>{let er=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(ee);if(!er)throw Error(`Invalid URL: ${ee}`);let{type:ei,data:eu,hash:ec}=er.groups,ed=ei.split(";");ec=en?"":ec;let ef=!1;"base64"===ed[ed.length-1]&&(ed.pop(),ef=!0);let ep=(ed.shift()||"").toLowerCase(),eh=[...ed.map(ee=>{let[en,er=""]=ee.split("=").map(ee=>ee.trim());return"charset"===en&&(er=er.toLowerCase())===es?"":`${en}${er?`=${er}`:""}`}).filter(Boolean)];return ef&&eh.push("base64"),(eh.length>0||ep&&ep!==eo)&&eh.unshift(ep),`data:${eh.join(";")},${ef?eu.trim():eu}${ec?`#${ec}`:""}`};function ed(ee,en){if(en={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...en},ee=ee.trim(),/^data:/i.test(ee))return ec(ee,en);if(/^view-source:/i.test(ee))throw Error("`view-source:` is not supported as it is a non-standard protocol");let er=ee.startsWith("//");!er&&/^\.*\//.test(ee)||(ee=ee.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,en.defaultProtocol));let ei=new URL(ee);if(en.forceHttp&&en.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(en.forceHttp&&"https:"===ei.protocol&&(ei.protocol="http:"),en.forceHttps&&"http:"===ei.protocol&&(ei.protocol="https:"),en.stripAuthentication&&(ei.username="",ei.password=""),en.stripHash?ei.hash="":en.stripTextFragment&&(ei.hash=ei.hash.replace(/#?:~:text.*?$/i,"")),ei.pathname){let ee=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,en=0,er="";for(;;){let eo=ee.exec(ei.pathname);if(!eo)break;let es=eo[0],eu=eo.index;er+=ei.pathname.slice(en,eu).replace(/\/{2,}/g,"/")+es,en=eu+es.length}er+=ei.pathname.slice(en,ei.pathname.length).replace(/\/{2,}/g,"/"),ei.pathname=er}if(ei.pathname)try{ei.pathname=decodeURI(ei.pathname)}catch{}if(!0===en.removeDirectoryIndex&&(en.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(en.removeDirectoryIndex)&&en.removeDirectoryIndex.length>0){let ee=ei.pathname.split("/");eu(ee[ee.length-1],en.removeDirectoryIndex)&&(ee=ee.slice(0,-1),ei.pathname=ee.slice(1).join("/")+"/")}if(ei.hostname&&(ei.hostname=ei.hostname.replace(/\.$/,""),en.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(ei.hostname)&&(ei.hostname=ei.hostname.replace(/^www\./,""))),Array.isArray(en.removeQueryParameters))for(let ee of[...ei.searchParams.keys()])eu(ee,en.removeQueryParameters)&&ei.searchParams.delete(ee);if(!0===en.removeQueryParameters&&(ei.search=""),en.sortQueryParameters){ei.searchParams.sort();try{ei.search=decodeURIComponent(ei.search)}catch{}}en.removeTrailingSlash&&(ei.pathname=ei.pathname.replace(/\/$/,""));let eo=ee;return ee=ei.toString(),en.removeSingleSlash||"/"!==ei.pathname||eo.endsWith("/")||""!==ei.hash||(ee=ee.replace(/\/$/,"")),(en.removeTrailingSlash||"/"===ei.pathname)&&""===ei.hash&&en.removeSingleSlash&&(ee=ee.replace(/\/$/,"")),er&&!en.normalizeProtocol&&(ee=ee.replace(/^http:\/\//,"//")),en.stripProtocol&&(ee=ee.replace(/^(?:https?:)?\/\//,"")),ee}let ef=(ee,en=!1)=>{let er=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,eo=en=>{let er=Error(en);throw er.subject_url=ee,er};"string"==typeof ee&&ee.trim()||eo("Invalid url."),ee.length>ef.MAX_INPUT_LENGTH&&eo("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),en&&("object"!=typeof en&&(en={stripHash:!1}),ee=ed(ee,en));let es=ei.default(ee);if(es.parse_failed){let ee=es.href.match(er);ee?(es.protocols=["ssh"],es.protocol="ssh",es.resource=ee[2],es.host=ee[2],es.user=ee[1],es.pathname=`/${ee[3]}`,es.parse_failed=!1):eo("URL parsing failed.")}return es};ef.MAX_INPUT_LENGTH=2048,ee.exports=ef},3155:function(ee){"use strict";ee.exports=function(ee,en){!0===en&&(en=0);var er="";if("string"==typeof ee)try{er=new URL(ee).protocol}catch(ee){}else ee&&ee.constructor===URL&&(er=ee.protocol);var ei=er.split(/\:|\+/).filter(Boolean);return"number"==typeof en?ei[en]:ei}},5454:function(ee){var en={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},er=Object.keys(en).join("|"),ei=RegExp(er,"g"),eo=RegExp(er,""),es=function(ee){return ee.replace(ei,function(ee){return en[ee]})},eu=function(ee){return!!ee.match(eo)};ee.exports=es,ee.exports.has=eu,ee.exports.remove=es},9199:function(ee){"use strict";ee.exports=ee=>{let en=/^\\\\\?\\/.test(ee),er=/[^\u0000-\u0080]+/.test(ee);return en||er?ee:ee.replace(/\\/g,"/")}},439:function(ee,en,er){let ei=er(415),eo=er(6184),es="[^\\s'’\\(\\)!?;:\"-]",eu=RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${es}))|(${es}))(${es}*[’']*${es}*)`,"g"),ec=ee=>ee.map(ee=>[RegExp(`\\b${ee}\\b`,"gi"),ee]);function ed(ee){let en=ee[0];return/\s/.test(en)?ee.slice(1):/[\(\)]/.test(en)?null:ee}ee.exports=(ee,en={})=>(ee=ee.toLowerCase().replace(eu,(ee,en="",er,eo,es,eu,ec)=>{let ef=ee.length+eu>=ec.length,ep=ed(ee);if(!ep)return ee;if(!er){let ee=eo+es;if(ei.has(ee)&&!ef)return ep}return en+(eo||er).toUpperCase()+es}),ec([...eo,...en.special||[]]).forEach(([en,er])=>{ee=ee.replace(en,er)}),ee)},415:function(ee){let en=["for","and","nor","but","or","yet","so"],er=["a","an","the"],ei=["aboard","about","above","across","after","against","along","amid","among","anti","around","as","at","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","considering","despite","down","during","except","excepting","excluding","following","for","from","in","inside","into","like","minus","near","of","off","on","onto","opposite","over","past","per","plus","regarding","round","save","since","than","through","to","toward","towards","under","underneath","unlike","until","up","upon","versus","via","with","within","without"];ee.exports=new Set([...en,...er,...ei])},6184:function(ee){let en=["ZEIT","ZEIT Inc.","Vercel","Vercel Inc.","CLI","API","HTTP","HTTPS","JSX","DNS","URL","now.sh","now.json","vercel.app","vercel.json","CI","CD","CDN","package.json","package.lock","yarn.lock","GitHub","GitLab","CSS","Sass","JS","JavaScript","TypeScript","HTML","WordPress","Next.js","Node.js","Webpack","Docker","Bash","Kubernetes","SWR","TinaCMS","UI","UX","TS","TSX","iPhone","iPad","watchOS","iOS","iPadOS","macOS","PHP","composer.json","composer.lock","CMS","SQL","C","C#","GraphQL","GraphiQL","JWT","JWTs"];ee.exports=en},9851:function(ee,en,er){er(5250)},7443:function(ee,en,er){"use strict";function ei(){return"u">typeof window?navigator.userAgent.toLowerCase():""}er.d(en,{sk:function(){return es}}),typeof navigator>"u"||navigator.clipboard;let eo="u">typeof window,es=!eo;function eu(ee){try{return"production"===ee}catch{return!1}}/Android/i.test(ei()),/iPhone|iPod|iPad|iOS/i.test(ei()),/uni-app|html5plus/.test(ei()),/MicroMessenger/i.test(ei()),/\sQQ|mqqbrowser|qzone|qqbrowser/i.test(ei()),/mqqbrowser|qqbrowser/i.test(ei()),/qzone\/.*_qz_([\d.]+)/i.test(ei()),/(weibo).*weibo__([\d.]+)/i.test(ei()),/(baiduboxapp)\/([\d.]+)/i.test(ei()),eo&&window.matchMedia("(prefers-color-scheme: dark)"),eo&&window.matchMedia("(prefers-color-scheme: light)"),eo&&window.matchMedia("(orientation: portrait)"),eo&&window.matchMedia("(orientation: landscape)"),eu("development"),eu("test"),eu("production")},3230:function(ee,en,er){"use strict";function ei(ee){var en,er,eo="";if("string"==typeof ee||"number"==typeof ee)eo+=ee;else if("object"==typeof ee){if(Array.isArray(ee))for(en=0;en