const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppContent-yrWEKsQj.js","assets/editor-Cwx9l8yx.js","assets/react-vendor-DheN6AAz.js","assets/editor-A8ePGOjz.css","assets/mui-core-lo-PEDgk.js","assets/LanguageSwitcher-DJmDV8sg.js","assets/i18n-BtgcL0iY.js","assets/mui-icons-D6F70ZRF.js","assets/shareUtils-BpjESd7t.js","assets/Home-WgDogWsu.js","assets/LandingPages-Ce894KUR.js","assets/CookieToolPage-VZbpXPq7.js","assets/CookieToolPanel-CNizrNw_.js","assets/ShareButton-D9RxF1kE.js","assets/PrivacyPolicy-BmRJ9NmG.js","assets/TermsOfUse-CdP8NzOF.js"])))=>i.map(i=>d[i]); var e,t,n=Object.defineProperty,r=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);import{j as i,B as o,C as a,d as s,T as l,f as c}from"./mui-core-lo-PEDgk.js";import{d as u,g as d,u as p,r as f,b as m,O as h,f as g,N as v,h as y,i as S}from"./react-vendor-DheN6AAz.js";import{_ as b}from"./editor-Cwx9l8yx.js";import{u as k,i as _,a as w}from"./i18n-BtgcL0iY.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var O={},N=u;O.createRoot=N.createRoot,O.hydrateRoot=N.hydrateRoot;var x={},J={},T={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=r||"";return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(o=r.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,n,r){return n>0&&n+e.length!==r.length&&e.search(t)>-1&&":"!==r.charAt(n-2)&&("-"!==r.charAt(n+e.length)||"-"===r.charAt(n-1))&&r.charAt(n-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))),i&&(o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")}(e=o)?n:e),o};var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i,n="REDACTED (Potential Email Address)"}(C),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=a(T),n=a(C),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],o=["page","hitType"];function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!a._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="".concat(n,"?id=").concat(e),t&&r.setAttribute("nonce",t),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},a._hasLoadedGA=!0}})),m(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n,2),i=r[0],o=r[1];return t[i]?e[t[i]]=o:e[i]=o,e}),{})}})),m(this,"initialize",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var n="string"==typeof e?[{trackingId:e}]:e;a._currentMeasurementId=n[0].trackingId;var r=t.gaOptions,i=t.gtagOptions,o=t.nonce,s=t.testMode,l=void 0!==s&&s,u=t.gtagUrl;if(a._testMode=l,l||a._loadGA(a._currentMeasurementId,o,u),a.isInitialized||(a._gtag("js",new Date),n.forEach((function(e){var t=d(d(d({},a._toGtagOptions(d(d({},r),e.gaOptions))),i),e.gtagOptions);Object.keys(t).length?a._gtag("config",e.trackingId,t):a._gtag("config",e.trackingId)}))),a.isInitialized=!0,!l){var p=c(a._queueGtag);for(a._queueGtag=[],a._isQueuing=!1;p.length;){var f=p.shift();a._gtag.apply(a,c(f)),"get"===f[0]&&(a._isQueuing=!0)}}})),m(this,"set",(function(e){e&&"object"===l(e)&&(Object.keys(e).length,a._gaCommand("set",e))})),m(this,"_gaCommandSendEvent",(function(e,t,n,r,i){a._gtag("event",t,d(d({event_category:e,event_label:n,value:r},i&&{non_interaction:i.nonInteraction}),a._toGtagOptions(i)))})),m(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r{var n;n={category:"Tool Usage",action:t,label:e},E.event(n)},I=()=>{const e=p();return f.useEffect((()=>{var t;t=e.pathname+e.search,E.send({hitType:"pageview",page:t})}),[e]),null};var j="undefined"!=typeof Element,z="function"==typeof Map,L="function"==typeof Set,M="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function R(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!R(e[r],t[r]))return!1;return!0}if(z&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!R(r.value[1],t.get(r.value[0])))return!1;return!0}if(L&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(M&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(j&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==i[r]&&"__v"!==i[r]&&"__o"!==i[r]||!e.$$typeof)&&!R(e[i[r]],t[i[r]]))return!1;return!0}return e!=e&&t!=t}var F=function(e,t){try{return R(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}};const V=d(F);var W=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}};const q=d(W),U=d((function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(G||{}),H={rel:["amphtml","canonical","alternate"]},B={type:["application/ld+json"]},$={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Z=Object.values(G),K={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Y=Object.entries(K).reduce(((e,[t,n])=>(e[n]=t,e)),{}),X="data-rh",Q=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ee=e=>{let t=Q(e,"title");const n=Q(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=Q(e,"defaultTitle");return t||r||void 0},te=e=>Q(e,"onChangeClientState")||(()=>{}),ne=(e,t)=>t.filter((t=>void 0!==t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),re=(e,t)=>t.filter((e=>void 0!==e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i{const r={};return n.filter((t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1))).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;re.push(t)));const o=Object.keys(i);for(let t=0;t{if(Array.isArray(e)&&e.length)for(let n=0;nArray.isArray(e)?e.join(""):e,se=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r({...e,[t]:void 0}),ce=["noscript","script","style"],ue=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),de=e=>Object.keys(e).reduce(((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),pe=(e,t={})=>Object.keys(e).reduce(((t,n)=>(t[K[n]||n]=e[n],t)),t),fe=(e,t)=>t.map(((t,n)=>{const r={key:n,[X]:!0};return Object.keys(t).forEach((e=>{const n=K[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]})),m.createElement(e,r)})),me=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=pe(n,{key:t,[X]:!0});return[m.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=de(n),o=ae(t);return i?`<${e} ${X}="true" ${i}>${ue(o,r)}`:`<${e} ${X}="true">${ue(o,r)}`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>pe(t),toString:()=>de(t)};default:return{toComponent:()=>fe(e,t),toString:()=>((e,t,n=!0)=>t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r=void 0===i[t]?t:`${t}="${ue(i[t],n)}"`;return e?`${e} ${r}`:r}),""),a=i.innerHTML||i.cssText||"",s=-1===ce.indexOf(e);return`${t}<${e} ${X}="true" ${o}${s?"/>":`>${a}`}`}),""))(e,t,n)}}},he=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:p}=e,f={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:f,linkTags:u,metaTags:d,scriptTags:p}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=se(e,$),o=se(t,H),a=se(n,B);return{priorityMethods:{toComponent:()=>[...fe("meta",i.priority),...fe("link",o.priority),...fe("script",a.priority)],toString:()=>`${me("meta",i.priority,r)} ${me("link",o.priority,r)} ${me("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}})(e)),{priority:f,base:me("base",t,r),bodyAttributes:me("bodyAttributes",n,r),htmlAttributes:me("htmlAttributes",i,r),link:me("link",u,r),meta:me("meta",d,r),noscript:me("noscript",o,r),script:me("script",p,r),style:me("style",a,r),title:me("title",{title:s,titleAttributes:l},r)}},ge=[],ve=!("undefined"==typeof window||!window.document||!window.document.createElement),ye=class{constructor(e,t){r(this,"instances",[]),r(this,"canUseDOM",ve),r(this,"context"),r(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ge:this.instances,add:e=>{(this.canUseDOM?ge:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ge:this.instances).indexOf(e);(this.canUseDOM?ge:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=he({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Se=m.createContext({}),be=(e=class extends f.Component{constructor(t){super(t),r(this,"helmetData"),this.helmetData=new ye(this.props.context||{},e.canUseDOM)}render(){return m.createElement(Se.Provider,{value:this.helmetData.value},this.props.children)}},r(e,"canUseDOM",ve),e),ke=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${X}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i=void 0===t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(X,"true"),i.some(((e,t)=>(a=t,n.isEqualNode(e))))?i.splice(a,1):o.push(n)})),i.forEach((e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},_e=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(X),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===i.indexOf(s)&&i.push(s);const r=o.indexOf(s);-1!==r&&o.splice(r,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(X):n.getAttribute(X)!==a.join(",")&&n.setAttribute(X,a.join(","))},we=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:p}=e;_e("body",r),_e("html",i),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=ae(e)),_e("title",t)})(d,p);const f={baseTag:ke("base",n),linkTags:ke("link",o),metaTags:ke("meta",a),noscriptTags:ke("noscript",s),scriptTags:ke("script",c),styleTags:ke("style",u)},m={},h={};Object.keys(f).forEach((e=>{const{newTags:t,oldTags:n}=f[e];t.length&&(m[e]=t),n.length&&(h[e]=f[e].oldTags)})),t&&t(),l(e,m,h)},Oe=null,Ne=class extends f.Component{constructor(){super(...arguments),r(this,"rendered",!1)}shouldComponentUpdate(e){return!U(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:re(["href"],i),bodyAttributes:ne("bodyAttributes",i),defer:Q(i,"defer"),encode:Q(i,"encodeSpecialCharacters"),htmlAttributes:ne("htmlAttributes",i),linkTags:ie("link",["rel","href"],i),metaTags:ie("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:ie("noscript",["innerHTML"],i),onChangeClientState:te(i),scriptTags:ie("script",["src","innerHTML"],i),styleTags:ie("style",["cssText"],i),title:ee(i),titleAttributes:ne("titleAttributes",i),prioritizeSeoTags:oe(i,"prioritizeSeoTags")});var i,o;be.canUseDOM?(o=r,Oe&&cancelAnimationFrame(Oe),o.defer?Oe=requestAnimationFrame((()=>{we(o,(()=>{Oe=null}))})):(we(o),Oe=null)):he&&(n=he(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},xe=(t=class extends f.Component{shouldComponentUpdate(e){return!V(le(this.props,"helmetData"),le(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return q(Z.some((t=>e.type===t)),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Z.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),q(!t||"string"==typeof t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return m.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[Y[t]||t]=i[t],e)),{});let{type:a}=e;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,o,r);break;default:t=this.mapObjectTypeChildren(e,t,o,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),!r||r instanceof ye||(r=new ye(r.context,!0),delete n.helmetData),r?m.createElement(Ne,{...n,context:r.value}):m.createElement(Se.Consumer,null,(e=>m.createElement(Ne,{...n,context:e})))}},r(t,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),t);const Je=({title:e,description:t,keywords:n,image:r,noindex:o=!1,nofollow:a=!1})=>{const s=`https://jsongeeks.dev${p().pathname}`;return i.jsxs(xe,{children:[e&&i.jsx("title",{children:e}),e&&i.jsx("meta",{property:"og:title",content:e}),e&&i.jsx("meta",{name:"twitter:title",content:e}),t&&i.jsx("meta",{name:"description",content:t}),t&&i.jsx("meta",{property:"og:description",content:t}),t&&i.jsx("meta",{name:"twitter:description",content:t}),n&&n.length>0&&i.jsx("meta",{name:"keywords",content:n.join(", ")}),r&&i.jsx("meta",{property:"og:image",content:r}),r&&i.jsx("meta",{name:"twitter:image",content:r}),o||a?i.jsx("meta",{name:"robots",content:`${o?"noindex":"index"}, ${a?"nofollow":"follow"}`}):null,i.jsx("link",{rel:"canonical",href:s}),i.jsx("meta",{property:"og:url",content:s}),i.jsx("meta",{property:"twitter:url",content:s})]})};var Te,Ce,Ee,Ae,Pe,De,Ie,je,ze,Le,Me,Re,Fe={},Ve=[],We=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qe=Array.isArray;function Ue(e,t){for(var n in t)e[n]=t[n];return e}function Ge(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function He(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Te.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)null==a[o]&&(a[o]=e.defaultProps[o]);return Be(e,a,r,i,null)}function Be(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++Ee:i,__i:-1,__u:0};return null==i&&null!=Ce.vnode&&Ce.vnode(o),o}function $e(){return{current:null}}function Ze(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function Ye(e,t){if(null==t)return e.__?Ye(e.__,e.__i+1):null;for(var n;ts&&Ae.sort(Ie),e=Ae.shift(),s=Ae.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],a=[],t.__P&&((n=Ue({},r)).__v=r.__v+1,Ce.vnode&&Ce.vnode(n),lt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,null==i?Ye(r):i,!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,ct(o,n,a),n.__e!=i&&Xe(n)));et.__r=0}function tt(e,t,n,r,i,o,a,s,l,c,u){var d,p,f,m,h,g,v=r&&r.__k||Ve,y=t.length;for(l=function(e,t,n,r,i){var o,a,s,l,c,u=n.length,d=u,p=0;for(e.__k=new Array(i),o=0;o0?Be(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=it(a,n,l,d))&&(d--,(s=n[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(i>u?p--:il?p--:p++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o(null==l||2&l.__u?0:1))for(i=n-1,o=n+1;i>=0||o=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s==l.type)return i;i--}if(o0?e:qe(e)?e.map(ut):Ue({},e)}function dt(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){Ce.__e(i,n)}}function pt(e,t,n){var r,i;if(Ce.unmount&&Ce.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||dt(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Ce.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i2&&(s.children=arguments.length>3?Te.call(arguments,2):n),Be(e.type,s,r||e.key,i||e.ref,null)}function vt(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,Qe(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+Re++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}Te=Ve.slice,Ce={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Ee=0,Ke.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Ue({},this.state),"function"==typeof e&&(e=e(Ue({},n),this.props)),e&&Ue(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Qe(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qe(this))},Ke.prototype.render=Ze,Ae=[],De="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ie=function(e,t){return e.__v.__b-t.__v.__b},et.__r=0,je=/(PointerCapture)$|Capture$/i,ze=0,Le=st(!1),Me=st(!0),Re=0;var yt=0;function St(e,t,n,r,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)"ref"==s?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--yt,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return Ce.vnode&&Ce.vnode(c),c}var bt,kt,_t,wt,Ot=0,Nt=[],xt=Ce,Jt=xt.__b,Tt=xt.__r,Ct=xt.diffed,Et=xt.__c,At=xt.unmount,Pt=xt.__;function Dt(e,t){xt.__h&&xt.__h(kt,e,Ot||t),Ot=0;var n=kt.__H||(kt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function It(e){return Ot=1,jt(Yt,e)}function jt(e,t,n){var r=Dt(bt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Yt(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=kt,!kt.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=r.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),o&&o.call(this,e,t,n)||a};kt.__f=!0;var o=kt.shouldComponentUpdate,a=kt.componentWillUpdate;kt.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},kt.shouldComponentUpdate=i}return r.__N||r.__}function zt(e,t){var n=Dt(bt++,3);!xt.__s&&Kt(n.__H,t)&&(n.__=e,n.u=t,kt.__H.__h.push(n))}function Lt(e,t){var n=Dt(bt++,4);!xt.__s&&Kt(n.__H,t)&&(n.__=e,n.u=t,kt.__h.push(n))}function Mt(e){return Ot=5,Ft((function(){return{current:e}}),[])}function Rt(e,t,n){Ot=6,Lt((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function Ft(e,t){var n=Dt(bt++,7);return Kt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Vt(e,t){return Ot=8,Ft((function(){return e}),t)}function Wt(e){var t=kt.context[e.__c],n=Dt(bt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(kt)),t.props.value):e.__}function qt(e,t){xt.useDebugValue&&xt.useDebugValue(t?t(e):e)}function Ut(){var e=Dt(bt++,11);if(!e.__){for(var t=kt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Gt(){for(var e;e=Nt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($t),e.__H.__h.forEach(Zt),e.__H.__h=[]}catch(kc){e.__H.__h=[],xt.__e(kc,e.__v)}}xt.__b=function(e){kt=null,Jt&&Jt(e)},xt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pt&&Pt(e,t)},xt.__r=function(e){Tt&&Tt(e),bt=0;var t=(kt=e.__c).__H;t&&(_t===kt?(t.__h=[],kt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach($t),t.__h.forEach(Zt),t.__h=[],bt=0)),_t=kt},xt.diffed=function(e){Ct&&Ct(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Nt.push(t)&&wt===xt.requestAnimationFrame||((wt=xt.requestAnimationFrame)||Bt)(Gt)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),_t=kt=null},xt.__c=function(e,t){t.some((function(e){try{e.__h.forEach($t),e.__h=e.__h.filter((function(e){return!e.__||Zt(e)}))}catch(rc){t.some((function(e){e.__h&&(e.__h=[])})),t=[],xt.__e(rc,e.__v)}})),Et&&Et(e,t)},xt.unmount=function(e){At&&At(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{$t(e)}catch(n){t=n}})),n.__H=void 0,t&&xt.__e(t,n.__v))};var Ht="function"==typeof requestAnimationFrame;function Bt(e){var t,n=function(){clearTimeout(r),Ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ht&&(t=requestAnimationFrame(n))}function $t(e){var t=kt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),kt=t}function Zt(e){var t=kt;e.__c=e.__(),kt=t}function Kt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Yt(e,t){return"function"==typeof t?t(e):t}function Xt(e,t){for(var n in t)e[n]=t[n];return e}function Qt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function en(e,t){var n=t(),r=It({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Lt((function(){i.__=n,i.u=t,tn(i)&&o({t:i})}),[e,n,t]),zt((function(){return tn(i)&&o({t:i}),e((function(){tn(i)&&o({t:i})}))}),[e]),n}function tn(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}function nn(e){e()}function rn(e){return e}function on(){return[!1,nn]}vt([]);var an=Lt;function sn(e,t){this.props=e,this.context=t}function ln(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Qt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,He(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(sn.prototype=new Ke).isPureReactComponent=!0,sn.prototype.shouldComponentUpdate=function(e,t){return Qt(this.props,e)||Qt(this.state,t)};var cn=Ce.__b;Ce.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cn&&cn(e)};var un="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function dn(e){function t(t){var n=Xt({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=un,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pn=function(e,t){return null==e?null:rt(rt(e).map(t))},fn={map:pn,forEach:pn,count:function(e){return e?rt(e).length:0},only:function(e){var t=rt(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:rt},mn=Ce.__e;Ce.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);mn(e,t,n,r)};var hn=Ce.unmount;function gn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Xt({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return gn(e,t,n)}))),e}function vn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return vn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function yn(){this.__u=0,this.o=null,this.__b=null}function Sn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function bn(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return He(n,i)}return i.displayName="Lazy",i.__f=!0,i}function kn(){this.i=null,this.l=null}Ce.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),hn&&hn(e)},(yn.prototype=new Ke).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var i=Sn(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=vn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},yn.prototype.componentWillUnmount=function(){this.o=[]},yn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=gn(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&He(Ze,null,e.fallback);return i&&(i.__u&=-33),[He(Ze,null,t.__a?null:e.children),i]};var _n=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(e)}}}mt(He(wn,{context:t.context},e.__v),t.v)}function Nn(e,t){var n=He(On,{__v:e,h:t});return n.containerInfo=t,n}(kn.prototype=new Ke).__a=function(e){var t=this,n=Sn(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),_n(t,e,r)):i()};n?n(o):o()}},kn.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},kn.prototype.componentDidUpdate=kn.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){_n(e,n,t)}))};var xn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Jn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cn=/[A-Z0-9]/g,En="undefined"!=typeof document,An=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Pn(e,t,n){return null==t.__k&&(t.textContent=""),mt(e,t),"function"==typeof n&&n(),e?e.__c:null}function Dn(e,t,n){return ht(e,t),"function"==typeof n&&n(),e?e.__c:null}Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var In=Ce.event;function jn(){}function zn(){return this.cancelBubble}function Ln(){return this.defaultPrevented}Ce.event=function(e){return In&&(e=In(e)),e.persist=jn,e.isPropagationStopped=zn,e.isDefaultPrevented=Ln,e.nativeEvent=e};var Mn,Rn={enumerable:!1,configurable:!0,get:function(){return this.class}},Fn=Ce.vnode;Ce.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||En&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||An(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":Tn.test(o)&&(o=s):s=o="oninput":i&&Jn.test(o)?o=o.replace(Cn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=rt(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=rt(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Rn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=xn,Fn&&Fn(e)};var Vn=Ce.__r;Ce.__r=function(e){Vn&&Vn(e),Mn=e.__c};var Wn=Ce.diffed;Ce.diffed=function(e){Wn&&Wn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Mn=null};var qn={ReactCurrentDispatcher:{current:{readContext:function(e){return Mn.__n[e.__c].props.value},useCallback:Vt,useContext:Wt,useDebugValue:qt,useDeferredValue:rn,useEffect:zt,useId:Ut,useImperativeHandle:Rt,useInsertionEffect:an,useLayoutEffect:Lt,useMemo:Ft,useReducer:jt,useRef:Mt,useState:It,useSyncExternalStore:en,useTransition:on}}};function Un(e){return He.bind(null,e)}function Gn(e){return!!e&&e.$$typeof===xn}function Hn(e){return Gn(e)&&e.type===Ze}function Bn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $n(e){return Gn(e)?gt.apply(null,arguments):e}function Zn(e){return!!e.__k&&(mt(null,e),!0)}function Kn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Yn=function(e,t){return e(t)},Xn=function(e,t){return e(t)},Qn=Ze,er=Gn,tr={useState:It,useId:Ut,useReducer:jt,useEffect:zt,useLayoutEffect:Lt,useInsertionEffect:an,useTransition:on,useDeferredValue:rn,useSyncExternalStore:en,startTransition:nn,useRef:Mt,useImperativeHandle:Rt,useMemo:Ft,useCallback:Vt,useContext:Wt,useDebugValue:qt,version:"18.3.1",Children:fn,render:Pn,hydrate:Dn,unmountComponentAtNode:Zn,createPortal:Nn,createElement:He,createContext:vt,createFactory:Un,cloneElement:$n,createRef:$e,Fragment:Ze,isValidElement:Gn,isElement:er,isFragment:Hn,isMemo:Bn,findDOMNode:Kn,Component:Ke,PureComponent:sn,memo:ln,forwardRef:dn,flushSync:Xn,unstable_batchedUpdates:Yn,StrictMode:Qn,Suspense:yn,SuspenseList:kn,lazy:bn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qn};const nr=Object.freeze(Object.defineProperty({__proto__:null,Children:fn,Component:Ke,Fragment:Ze,PureComponent:sn,StrictMode:Qn,Suspense:yn,SuspenseList:kn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qn,cloneElement:$n,createContext:vt,createElement:He,createFactory:Un,createPortal:Nn,createRef:$e,default:tr,findDOMNode:Kn,flushSync:Xn,forwardRef:dn,hydrate:Dn,isElement:er,isFragment:Hn,isMemo:Bn,isValidElement:Gn,lazy:bn,memo:ln,render:Pn,startTransition:nn,unmountComponentAtNode:Zn,unstable_batchedUpdates:Yn,useCallback:Vt,useContext:Wt,useDebugValue:qt,useDeferredValue:rn,useEffect:zt,useErrorBoundary:function(e){var t=Dt(bt++,10),n=It();return t.__=e,kt.componentDidCatch||(kt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ut,useImperativeHandle:Rt,useInsertionEffect:an,useLayoutEffect:Lt,useMemo:Ft,useReducer:jt,useRef:Mt,useState:It,useSyncExternalStore:en,useTransition:on,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var rr,ir,or,ar=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}));"undefined"!=typeof window?window.WebSocket:ar("ws").WebSocket,"undefined"!=typeof window?window.WebSocket:ar("ws").WebSocket,(ir=rr||(rr={})).assertEqual=e=>e,ir.assertIs=function(e){},ir.assertNever=function(e){throw new Error},ir.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},ir.getValidEnumValues=e=>{const t=ir.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const r of t)n[r]=e[r];return ir.objectValues(n)},ir.objectValues=e=>ir.objectKeys(e).map((function(t){return e[t]})),ir.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},ir.find=(e,t)=>{for(const n of e)if(t(n))return n},ir.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,ir.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},ir.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(or||(or={})).mergeShapes=(e,t)=>({...e,...t});const sr=rr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),lr=e=>{switch(typeof e){case"undefined":return sr.undefined;case"string":return sr.string;case"number":return isNaN(e)?sr.nan:sr.number;case"boolean":return sr.boolean;case"function":return sr.function;case"bigint":return sr.bigint;case"symbol":return sr.symbol;case"object":return Array.isArray(e)?sr.array:null===e?sr.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?sr.promise:"undefined"!=typeof Map&&e instanceof Map?sr.map:"undefined"!=typeof Set&&e instanceof Set?sr.set:"undefined"!=typeof Date&&e instanceof Date?sr.date:sr.object;default:return sr.unknown}},cr=rr.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"]);class ur extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}ur.create=e=>new ur(e);const dr=(e,t)=>{let n;switch(e.code){case cr.invalid_type:n=e.received===sr.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case cr.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,rr.jsonStringifyReplacer)}`;break;case cr.unrecognized_keys:n=`Unrecognized key(s) in object: ${rr.joinValues(e.keys,", ")}`;break;case cr.invalid_union:n="Invalid input";break;case cr.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${rr.joinValues(e.options)}`;break;case cr.invalid_enum_value:n=`Invalid enum value. Expected ${rr.joinValues(e.options)}, received '${e.received}'`;break;case cr.invalid_arguments:n="Invalid function arguments";break;case cr.invalid_return_type:n="Invalid function return type";break;case cr.invalid_date:n="Invalid date";break;case cr.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:rr.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case cr.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case cr.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case cr.custom:n="Invalid input";break;case cr.invalid_intersection_types:n="Intersection results could not be merged";break;case cr.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case cr.not_finite:n="Number must be finite";break;default:n=t.defaultError,rr.assertNever(e)}return{message:n}};let pr=dr;function fr(){return pr}const mr=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function hr(e,t){const n=fr(),r=mr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dr?void 0:dr].filter((e=>!!e))});e.common.issues.push(r)}class gr{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return vr;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return gr.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return vr;if("aborted"===i.status)return vr;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||void 0===i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const vr=Object.freeze({status:"aborted"}),yr=e=>({status:"dirty",value:e}),Sr=e=>({status:"valid",value:e}),br=e=>"aborted"===e.status,kr=e=>"dirty"===e.status,_r=e=>"valid"===e.status,wr=e=>"undefined"!=typeof Promise&&e instanceof Promise;function Or(e,t,n,r){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Nr(e,t,n,r,i){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var xr,Jr,Tr,Cr;"function"==typeof SuppressedError&&SuppressedError,(Jr=xr||(xr={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},Jr.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Er{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}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}}const Ar=(e,t)=>{if(_r(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ur(e.common.issues);return this._error=t,this._error}}};function Pr(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}},description:i}}class Dr{get description(){return this._def.description}_getType(e){return lr(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:lr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new gr,ctx:{common:e.parent.common,data:e.data,parsedType:lr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(wr(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:lr(e)},i=this._parseSync({data:e,path:r.path,parent:r});return Ar(r,i)}"~validate"(e){var t,n;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:lr(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:r});return _r(t)?{value:t.value}:{issues:r.common.issues}}catch(i){(null===(n=null===(t=null==i?void 0:i.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((e=>_r(e)?{value:e.value}:{issues:r.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:lr(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(wr(r)?r:Promise.resolve(r));return Ar(n,i)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:cr.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new Di({schema:this,typeName:Hi.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,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),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ii.create(this,this._def)}nullable(){return ji.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mi.create(this)}promise(){return Pi.create(this,this._def)}or(e){return vi.create([this,e],this._def)}and(e){return ki.create(this,e,this._def)}transform(e){return new Di({...Pr(this._def),schema:this,typeName:Hi.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new zi({...Pr(this._def),innerType:this,defaultValue:t,typeName:Hi.ZodDefault})}brand(){return new Fi({typeName:Hi.ZodBranded,type:this,...Pr(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Li({...Pr(this._def),innerType:this,catchValue:t,typeName:Hi.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Vi.create(this,e)}readonly(){return Wi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ir=/^c[^\s-]{8,}$/i,jr=/^[0-9a-z]+$/,zr=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lr=/^[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,Mr=/^[a-z0-9_-]{21}$/i,Rr=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Fr=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vr=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Wr;const qr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ur=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Gr=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Hr=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Br=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$r=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Zr="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Kr=new RegExp(`^${Zr}$`);function Yr(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Xr(e){let t=`${Zr}T${Yr(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Qr(e,t){if(!Rr.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)}catch(n){return!1}}function ei(e,t){return!("v4"!==t&&t||!Ur.test(e))||!("v6"!==t&&t||!Hr.test(e))}class ti extends Dr{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==sr.string){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.string,received:t.parsedType}),vr}const t=new gr;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.lengtha.value&&(n=this._getOrReturnCtx(e,n),hr(n,{code:cr.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const r=e.data.length>a.value,i=e.data.lengthe.test(t)),{validation:t,code:cr.invalid_string,...xr.errToObj(n)})}_addCheck(e){return new ti({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...xr.errToObj(e)})}url(e){return this._addCheck({kind:"url",...xr.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...xr.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...xr.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...xr.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...xr.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...xr.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...xr.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...xr.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...xr.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...xr.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...xr.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...xr.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...xr.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...xr.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...xr.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...xr.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...xr.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...xr.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...xr.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...xr.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...xr.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...xr.errToObj(t)})}nonempty(e){return this.min(1,xr.errToObj(e))}trim(){return new ti({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ti({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ti({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}ti.create=e=>{var t;return new ti({checks:[],typeName:Hi.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Pr(e)})};class ri extends Dr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==sr.number){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.number,received:t.parsedType}),vr}let t;const n=new gr;for(const r of this._def.checks)"int"===r.kind?rr.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==ni(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.not_finite,message:r.message}),n.dirty()):rr.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,xr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xr.toString(t))}setLimit(e,t,n,r){return new ri({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:xr.toString(r)}]})}_addCheck(e){return new ri({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:xr.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xr.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:xr.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xr.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xr.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&rr.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew ri({checks:[],typeName:Hi.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...Pr(e)});class ii extends Dr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(r){return this._getInvalidInput(e)}if(this._getType(e)!==sr.bigint)return this._getInvalidInput(e);let t;const n=new gr;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.datai.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),hr(t,{code:cr.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):rr.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.bigint,received:t.parsedType}),vr}gte(e,t){return this.setLimit("min",e,!0,xr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,xr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,xr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,xr.toString(t))}setLimit(e,t,n,r){return new ii({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:xr.toString(r)}]})}_addCheck(e){return new ii({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:xr.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new ii({checks:[],typeName:Hi.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Pr(e)})};class oi extends Dr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==sr.boolean){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.boolean,received:t.parsedType}),vr}return Sr(e.data)}}oi.create=e=>new oi({typeName:Hi.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...Pr(e)});class ai extends Dr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==sr.date){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.date,received:t.parsedType}),vr}if(isNaN(e.data.getTime()))return hr(this._getOrReturnCtx(e),{code:cr.invalid_date}),vr;const t=new gr;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),hr(n,{code:cr.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):rr.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ai({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:xr.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:xr.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew ai({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Hi.ZodDate,...Pr(e)});class si extends Dr{_parse(e){if(this._getType(e)!==sr.symbol){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.symbol,received:t.parsedType}),vr}return Sr(e.data)}}si.create=e=>new si({typeName:Hi.ZodSymbol,...Pr(e)});class li extends Dr{_parse(e){if(this._getType(e)!==sr.undefined){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.undefined,received:t.parsedType}),vr}return Sr(e.data)}}li.create=e=>new li({typeName:Hi.ZodUndefined,...Pr(e)});class ci extends Dr{_parse(e){if(this._getType(e)!==sr.null){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.null,received:t.parsedType}),vr}return Sr(e.data)}}ci.create=e=>new ci({typeName:Hi.ZodNull,...Pr(e)});class ui extends Dr{constructor(){super(...arguments),this._any=!0}_parse(e){return Sr(e.data)}}ui.create=e=>new ui({typeName:Hi.ZodAny,...Pr(e)});class di extends Dr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Sr(e.data)}}di.create=e=>new di({typeName:Hi.ZodUnknown,...Pr(e)});class pi extends Dr{_parse(e){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.never,received:t.parsedType}),vr}}pi.create=e=>new pi({typeName:Hi.ZodNever,...Pr(e)});class fi extends Dr{_parse(e){if(this._getType(e)!==sr.undefined){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.void,received:t.parsedType}),vr}return Sr(e.data)}}fi.create=e=>new fi({typeName:Hi.ZodVoid,...Pr(e)});class mi extends Dr{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==sr.array)return hr(t,{code:cr.invalid_type,expected:sr.array,received:t.parsedType}),vr;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(hr(t,{code:cr.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Er(t,e,t.path,n))))).then((e=>gr.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new Er(t,e,t.path,n))));return gr.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new mi({...this._def,minLength:{value:e,message:xr.toString(t)}})}max(e,t){return new mi({...this._def,maxLength:{value:e,message:xr.toString(t)}})}length(e,t){return new mi({...this._def,exactLength:{value:e,message:xr.toString(t)}})}nonempty(e){return this.min(1,e)}}function hi(e){if(e instanceof gi){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ii.create(hi(r))}return new gi({...e._def,shape:()=>t})}return e instanceof mi?new mi({...e._def,type:hi(e.element)}):e instanceof Ii?Ii.create(hi(e.unwrap())):e instanceof ji?ji.create(hi(e.unwrap())):e instanceof _i?_i.create(e.items.map((e=>hi(e)))):e}mi.create=(e,t)=>new mi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Hi.ZodArray,...Pr(t)});class gi extends Dr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=rr.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==sr.object){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.object,received:t.parsedType}),vr}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof pi&&"strip"===this._def.unknownKeys))for(const s in n.data)i.includes(s)||o.push(s);const a=[];for(const s of i){const e=r[s],t=n.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new Er(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof pi){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)a.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)o.length>0&&(hr(n,{code:cr.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Er(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>gr.mergeObjectSync(t,e))):gr.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return xr.errToObj,new gi({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,a;const s=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=xr.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new gi({...this._def,unknownKeys:"strip"})}passthrough(){return new gi({...this._def,unknownKeys:"passthrough"})}extend(e){return new gi({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new gi({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Hi.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new gi({...this._def,catchall:e})}pick(e){const t={};return rr.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new gi({...this._def,shape:()=>t})}omit(e){const t={};return rr.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new gi({...this._def,shape:()=>t})}deepPartial(){return hi(this)}partial(e){const t={};return rr.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new gi({...this._def,shape:()=>t})}required(e){const t={};return rr.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ii;)e=e._def.innerType;t[n]=e}})),new gi({...this._def,shape:()=>t})}keyof(){return Ci(rr.objectKeys(this.shape))}}gi.create=(e,t)=>new gi({shape:()=>e,unknownKeys:"strip",catchall:pi.create(),typeName:Hi.ZodObject,...Pr(t)}),gi.strictCreate=(e,t)=>new gi({shape:()=>e,unknownKeys:"strict",catchall:pi.create(),typeName:Hi.ZodObject,...Pr(t)}),gi.lazycreate=(e,t)=>new gi({shape:e,unknownKeys:"strip",catchall:pi.create(),typeName:Hi.ZodObject,...Pr(t)});class vi extends Dr{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new ur(e.ctx.common.issues)));return hr(t,{code:cr.invalid_union,unionErrors:n}),vr}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new ur(e)));return hr(t,{code:cr.invalid_union,unionErrors:i}),vr}}get options(){return this._def.options}}vi.create=(e,t)=>new vi({options:e,typeName:Hi.ZodUnion,...Pr(t)});const yi=e=>e instanceof Ji?yi(e.schema):e instanceof Di?yi(e.innerType()):e instanceof Ti?[e.value]:e instanceof Ei?e.options:e instanceof Ai?rr.objectValues(e.enum):e instanceof zi?yi(e._def.innerType):e instanceof li?[void 0]:e instanceof ci?[null]:e instanceof Ii?[void 0,...yi(e.unwrap())]:e instanceof ji?[null,...yi(e.unwrap())]:e instanceof Fi||e instanceof Wi?yi(e.unwrap()):e instanceof Li?yi(e._def.innerType):[];class Si extends Dr{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sr.object)return hr(t,{code:cr.invalid_type,expected:sr.object,received:t.parsedType}),vr;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(hr(t,{code:cr.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),vr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=yi(i.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new Si({typeName:Hi.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Pr(n)})}}function bi(e,t){const n=lr(e),r=lr(t);if(e===t)return{valid:!0,data:e};if(n===sr.object&&r===sr.object){const n=rr.objectKeys(t),r=rr.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const o of r){const n=bi(e[o],t[o]);if(!n.valid)return{valid:!1};i[o]=n.data}return{valid:!0,data:i}}if(n===sr.array&&r===sr.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r{if(br(e)||br(r))return vr;const i=bi(e.value,r.value);return i.valid?((kr(e)||kr(r))&&t.dirty(),{status:t.value,value:i.data}):(hr(n,{code:cr.invalid_intersection_types}),vr)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ki.create=(e,t,n)=>new ki({left:e,right:t,typeName:Hi.ZodIntersection,...Pr(n)});class _i extends Dr{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sr.array)return hr(n,{code:cr.invalid_type,expected:sr.array,received:n.parsedType}),vr;if(n.data.lengththis._def.items.length&&(hr(n,{code:cr.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new Er(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>gr.mergeArray(t,e))):gr.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new _i({...this._def,rest:e})}}_i.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _i({items:e,typeName:Hi.ZodTuple,rest:null,...Pr(t)})};class wi extends Dr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sr.object)return hr(n,{code:cr.invalid_type,expected:sr.object,received:n.parsedType}),vr;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in n.data)r.push({key:i._parse(new Er(n,a,n.path,a)),value:o._parse(new Er(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?gr.mergeObjectAsync(t,r):gr.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new wi(t instanceof Dr?{keyType:e,valueType:t,typeName:Hi.ZodRecord,...Pr(n)}:{keyType:ti.create(),valueType:e,typeName:Hi.ZodRecord,...Pr(t)})}}class Oi extends Dr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sr.map)return hr(n,{code:cr.invalid_type,expected:sr.map,received:n.parsedType}),vr;const r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new Er(n,e,n.path,[o,"key"])),value:i._parse(new Er(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of o){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return vr;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of o){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return vr;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}Oi.create=(e,t,n)=>new Oi({valueType:t,keyType:e,typeName:Hi.ZodMap,...Pr(n)});class Ni extends Dr{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sr.set)return hr(n,{code:cr.invalid_type,expected:sr.set,received:n.parsedType}),vr;const r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(hr(n,{code:cr.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const n=new Set;for(const r of e){if("aborted"===r.status)return vr;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>i._parse(new Er(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new Ni({...this._def,minSize:{value:e,message:xr.toString(t)}})}max(e,t){return new Ni({...this._def,maxSize:{value:e,message:xr.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ni.create=(e,t)=>new Ni({valueType:e,minSize:null,maxSize:null,typeName:Hi.ZodSet,...Pr(t)});class xi extends Dr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sr.function)return hr(t,{code:cr.invalid_type,expected:sr.function,received:t.parsedType}),vr;function n(e,n){return mr({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,fr(),dr].filter((e=>!!e)),issueData:{code:cr.invalid_arguments,argumentsError:n}})}function r(e,n){return mr({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,fr(),dr].filter((e=>!!e)),issueData:{code:cr.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Pi){const e=this;return Sr((async function(...t){const a=new ur([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw a.addIssue(n(t,e)),a})),l=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch((e=>{throw a.addIssue(r(l,e)),a}))}))}{const e=this;return Sr((function(...t){const a=e._def.args.safeParse(t,i);if(!a.success)throw new ur([n(t,a.error)]);const s=Reflect.apply(o,this,a.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new ur([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new xi({...this._def,args:_i.create(e).rest(di.create())})}returns(e){return new xi({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new xi({args:e||_i.create([]).rest(di.create()),returns:t||di.create(),typeName:Hi.ZodFunction,...Pr(n)})}}class Ji extends Dr{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ji.create=(e,t)=>new Ji({getter:e,typeName:Hi.ZodLazy,...Pr(t)});class Ti extends Dr{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return hr(t,{received:t.data,code:cr.invalid_literal,expected:this._def.value}),vr}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ci(e,t){return new Ei({values:e,typeName:Hi.ZodEnum,...Pr(t)})}Ti.create=(e,t)=>new Ti({value:e,typeName:Hi.ZodLiteral,...Pr(t)});class Ei extends Dr{constructor(){super(...arguments),Tr.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return hr(t,{expected:rr.joinValues(n),received:t.parsedType,code:cr.invalid_type}),vr}if(Or(this,Tr)||Nr(this,Tr,new Set(this._def.values)),!Or(this,Tr).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return hr(t,{received:t.data,code:cr.invalid_enum_value,options:n}),vr}return Sr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ei.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ei.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}Tr=new WeakMap,Ei.create=Ci;class Ai extends Dr{constructor(){super(...arguments),Cr.set(this,void 0)}_parse(e){const t=rr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==sr.string&&n.parsedType!==sr.number){const e=rr.objectValues(t);return hr(n,{expected:rr.joinValues(e),received:n.parsedType,code:cr.invalid_type}),vr}if(Or(this,Cr)||Nr(this,Cr,new Set(rr.getValidEnumValues(this._def.values))),!Or(this,Cr).has(e.data)){const e=rr.objectValues(t);return hr(n,{received:n.data,code:cr.invalid_enum_value,options:e}),vr}return Sr(e.data)}get enum(){return this._def.values}}Cr=new WeakMap,Ai.create=(e,t)=>new Ai({values:e,typeName:Hi.ZodNativeEnum,...Pr(t)});class Pi extends Dr{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sr.promise&&!1===t.common.async)return hr(t,{code:cr.invalid_type,expected:sr.promise,received:t.parsedType}),vr;const n=t.parsedType===sr.promise?t.data:Promise.resolve(t.data);return Sr(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pi.create=(e,t)=>new Pi({type:e,typeName:Hi.ZodPromise,...Pr(t)});class Di extends Dr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Hi.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{hr(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return vr;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?vr:"dirty"===r.status||"dirty"===t.value?yr(r.value):r}));{if("aborted"===t.value)return vr;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?vr:"dirty"===r.status||"dirty"===t.value?yr(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?vr:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?vr:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!_r(e))return e;const o=r.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>_r(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}rr.assertNever(r)}}Di.create=(e,t,n)=>new Di({schema:e,typeName:Hi.ZodEffects,effect:t,...Pr(n)}),Di.createWithPreprocess=(e,t,n)=>new Di({schema:t,effect:{type:"preprocess",transform:e},typeName:Hi.ZodEffects,...Pr(n)});class Ii extends Dr{_parse(e){return this._getType(e)===sr.undefined?Sr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ii.create=(e,t)=>new Ii({innerType:e,typeName:Hi.ZodOptional,...Pr(t)});class ji extends Dr{_parse(e){return this._getType(e)===sr.null?Sr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(e,t)=>new ji({innerType:e,typeName:Hi.ZodNullable,...Pr(t)});class zi extends Dr{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===sr.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}zi.create=(e,t)=>new zi({innerType:e,typeName:Hi.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Pr(t)});class Li extends Dr{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return wr(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ur(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new ur(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Li.create=(e,t)=>new Li({innerType:e,typeName:Hi.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Pr(t)});class Mi extends Dr{_parse(e){if(this._getType(e)!==sr.nan){const t=this._getOrReturnCtx(e);return hr(t,{code:cr.invalid_type,expected:sr.nan,received:t.parsedType}),vr}return{status:"valid",value:e.data}}}Mi.create=e=>new Mi({typeName:Hi.ZodNaN,...Pr(e)});const Ri=Symbol("zod_brand");class Fi extends Dr{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Vi extends Dr{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?vr:"dirty"===e.status?(t.dirty(),yr(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?vr:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Vi({in:e,out:t,typeName:Hi.ZodPipeline})}}class Wi extends Dr{_parse(e){const t=this._def.innerType._parse(e),n=e=>(_r(e)&&(e.value=Object.freeze(e.value)),e);return wr(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function qi(e,t){const n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function Ui(e,t={},n){return e?ui.create().superRefine(((r,i)=>{var o,a;const s=e(r);if(s instanceof Promise)return s.then((e=>{var o,a;if(!e){const e=qi(t,r),s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a;i.addIssue({code:"custom",...e,fatal:s})}}));if(!s){const e=qi(t,r),s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===a||a;i.addIssue({code:"custom",...e,fatal:s})}})):ui.create()}Wi.create=(e,t)=>new Wi({innerType:e,typeName:Hi.ZodReadonly,...Pr(t)});const Gi={object:gi.lazycreate};var Hi,Bi;(Bi=Hi||(Hi={})).ZodString="ZodString",Bi.ZodNumber="ZodNumber",Bi.ZodNaN="ZodNaN",Bi.ZodBigInt="ZodBigInt",Bi.ZodBoolean="ZodBoolean",Bi.ZodDate="ZodDate",Bi.ZodSymbol="ZodSymbol",Bi.ZodUndefined="ZodUndefined",Bi.ZodNull="ZodNull",Bi.ZodAny="ZodAny",Bi.ZodUnknown="ZodUnknown",Bi.ZodNever="ZodNever",Bi.ZodVoid="ZodVoid",Bi.ZodArray="ZodArray",Bi.ZodObject="ZodObject",Bi.ZodUnion="ZodUnion",Bi.ZodDiscriminatedUnion="ZodDiscriminatedUnion",Bi.ZodIntersection="ZodIntersection",Bi.ZodTuple="ZodTuple",Bi.ZodRecord="ZodRecord",Bi.ZodMap="ZodMap",Bi.ZodSet="ZodSet",Bi.ZodFunction="ZodFunction",Bi.ZodLazy="ZodLazy",Bi.ZodLiteral="ZodLiteral",Bi.ZodEnum="ZodEnum",Bi.ZodEffects="ZodEffects",Bi.ZodNativeEnum="ZodNativeEnum",Bi.ZodOptional="ZodOptional",Bi.ZodNullable="ZodNullable",Bi.ZodDefault="ZodDefault",Bi.ZodCatch="ZodCatch",Bi.ZodPromise="ZodPromise",Bi.ZodBranded="ZodBranded",Bi.ZodPipeline="ZodPipeline",Bi.ZodReadonly="ZodReadonly";const $i=ti.create,Zi=ri.create,Ki=Mi.create,Yi=ii.create,Xi=oi.create,Qi=ai.create,eo=si.create,to=li.create,no=ci.create,ro=ui.create,io=di.create,oo=pi.create,ao=fi.create,so=mi.create,lo=gi.create,co=gi.strictCreate,uo=vi.create,po=Si.create,fo=ki.create,mo=_i.create,ho=wi.create,go=Oi.create,vo=Ni.create,yo=xi.create,So=Ji.create,bo=Ti.create,ko=Ei.create,_o=Ai.create,wo=Pi.create,Oo=Di.create,No=Ii.create,xo=ji.create,Jo=Di.createWithPreprocess,To=Vi.create,Co={string:e=>ti.create({...e,coerce:!0}),number:e=>ri.create({...e,coerce:!0}),boolean:e=>oi.create({...e,coerce:!0}),bigint:e=>ii.create({...e,coerce:!0}),date:e=>ai.create({...e,coerce:!0})},Eo=vr;var Ao=Object.freeze({__proto__:null,defaultErrorMap:dr,setErrorMap:function(e){pr=e},getErrorMap:fr,makeIssue:mr,EMPTY_PATH:[],addIssueToContext:hr,ParseStatus:gr,INVALID:vr,DIRTY:yr,OK:Sr,isAborted:br,isDirty:kr,isValid:_r,isAsync:wr,get util(){return rr},get objectUtil(){return or},ZodParsedType:sr,getParsedType:lr,ZodType:Dr,datetimeRegex:Xr,ZodString:ti,ZodNumber:ri,ZodBigInt:ii,ZodBoolean:oi,ZodDate:ai,ZodSymbol:si,ZodUndefined:li,ZodNull:ci,ZodAny:ui,ZodUnknown:di,ZodNever:pi,ZodVoid:fi,ZodArray:mi,ZodObject:gi,ZodUnion:vi,ZodDiscriminatedUnion:Si,ZodIntersection:ki,ZodTuple:_i,ZodRecord:wi,ZodMap:Oi,ZodSet:Ni,ZodFunction:xi,ZodLazy:Ji,ZodLiteral:Ti,ZodEnum:Ei,ZodNativeEnum:Ai,ZodPromise:Pi,ZodEffects:Di,ZodTransformer:Di,ZodOptional:Ii,ZodNullable:ji,ZodDefault:zi,ZodCatch:Li,ZodNaN:Mi,BRAND:Ri,ZodBranded:Fi,ZodPipeline:Vi,ZodReadonly:Wi,custom:Ui,Schema:Dr,ZodSchema:Dr,late:Gi,get ZodFirstPartyTypeKind(){return Hi},coerce:Co,any:ro,array:so,bigint:Yi,boolean:Xi,date:Qi,discriminatedUnion:po,effect:Oo,enum:ko,function:yo,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ui((t=>t instanceof e),t),intersection:fo,lazy:So,literal:bo,map:go,nan:Ki,nativeEnum:_o,never:oo,null:no,nullable:xo,number:Zi,object:lo,oboolean:()=>Xi().optional(),onumber:()=>Zi().optional(),optional:No,ostring:()=>$i().optional(),pipeline:To,preprocess:Jo,promise:wo,record:ho,set:vo,strictObject:co,string:$i,symbol:eo,transformer:Oo,tuple:mo,undefined:to,union:uo,unknown:io,void:ao,NEVER:Eo,ZodIssueCode:cr,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:ur});Ao.object({prompt:Ao.string()}),Ao.object({result:Ao.object({success:Ao.boolean(),error:Ao.string().optional(),output:Ao.string().optional()})}),Ao.object({updateText:Ao.string()}),vt({bridge:null,isConnecting:!1,error:null});const Po=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},Do=e=>e;class Io{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class jo{constructor(e){this.generateIdentifier=e,this.kv=new Io}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class zo extends jo{constructor(){super((e=>e.name)),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function Lo(e,t){Object.entries(e).forEach((([e,n])=>t(n,e)))}function Mo(e,t){return-1!==e.indexOf(t)}function Ro(e,t){for(let n=0;nt.isApplicable(e)))}findByName(e){return this.transfomers[e]}}const Vo=e=>void 0===e,Wo=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),qo=e=>Wo(e)&&0===Object.keys(e).length,Uo=e=>Array.isArray(e),Go=e=>e instanceof Map,Ho=e=>e instanceof Set,Bo=e=>"Symbol"===(e=>Object.prototype.toString.call(e).slice(8,-1))(e),$o=e=>"number"==typeof e&&isNaN(e),Zo=e=>e.replace(/\./g,"\\."),Ko=e=>e.map(String).map(Zo).join("."),Yo=e=>{const t=[];let n="";for(let i=0;inull),(()=>{})),Xo((e=>"bigint"==typeof e),"bigint",(e=>e.toString()),(e=>"undefined"!=typeof BigInt?BigInt(e):e)),Xo((e=>e instanceof Date&&!isNaN(e.valueOf())),"Date",(e=>e.toISOString()),(e=>new Date(e))),Xo((e=>e instanceof Error),"Error",((e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach((t=>{n[t]=e[t]})),n}),((e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach((t=>{n[t]=e[t]})),n})),Xo((e=>e instanceof RegExp),"regexp",(e=>""+e),(e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)})),Xo(Ho,"set",(e=>[...e.values()]),(e=>new Set(e))),Xo(Go,"map",(e=>[...e.entries()]),(e=>new Map(e))),Xo((e=>{return $o(e)||(t=e)===1/0||t===-1/0;var t}),"number",(e=>$o(e)?"NaN":e>0?"Infinity":"-Infinity"),Number),Xo((e=>0===e&&1/e==-1/0),"number",(()=>"-0"),Number),Xo((e=>e instanceof URL),"URL",(e=>e.toString()),(e=>new URL(e)))];function ea(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const ta=ea(((e,t)=>!!Bo(e)&&!!t.symbolRegistry.getIdentifier(e)),((e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)]),(e=>e.description),((e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r})),na=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(((e,t)=>(e[t.name]=t,e)),{}),ra=ea((e=>ArrayBuffer.isView(e)&&!(e instanceof DataView)),(e=>["typed-array",e.constructor.name]),(e=>[...e]),((e,t)=>{const n=na[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)}));function ia(e,t){return!!(null==e?void 0:e.constructor)&&!!t.classRegistry.getIdentifier(e.constructor)}const oa=ea(ia,((e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)]),((e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach((t=>{r[t]=e[t]})),r}),((e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)})),aa=ea(((e,t)=>!!t.customTransformerRegistry.findApplicable(e)),((e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name]),((e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e)),((e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)})),sa=[oa,ta,aa,ra],la=(e,t)=>{const n=Ro(sa,(n=>n.isApplicable(e,t)));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ro(Qo,(n=>n.isApplicable(e,t)));return r?{value:r.transform(e,t),type:r.annotation}:void 0},ca={};Qo.forEach((e=>{ca[e.annotation]=e}));const ua=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function da(e){if(Mo(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Mo(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Mo(e,"constructor"))throw new Error("constructor is not allowed as a property")}const pa=(e,t,n)=>{if(da(t),0===t.length)return n(e);let r=e;for(let o=0;ofa(e,t,[...n,...Yo(r)])));const[r,i]=e;i&&Lo(i,((e,r)=>{fa(e,t,[...n,...Yo(r)])})),t(r,n)}function ma(e,t,n){return fa(t,((t,r)=>{e=pa(e,r,(e=>((e,t,n)=>{if(!Uo(t)){const r=ca[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}switch(t[0]){case"symbol":return ta.untransform(e,t,n);case"class":return oa.untransform(e,t,n);case"custom":return aa.untransform(e,t,n);case"typed-array":return ra.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}})(e,t,n)))})),e}const ha=(e,t,n,r,i=[],o=[],a=new Map)=>{const s=(e=>"boolean"==typeof e)(l=e)||(e=>null===e)(l)||Vo(l)||(e=>"number"==typeof e&&!isNaN(e))(l)||(e=>"string"==typeof e)(l)||Bo(l);var l;if(!s){!function(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}(e,i,t);const n=a.get(e);if(n)return r?{transformedValue:null}:n}if(!((e,t)=>Wo(e)||Uo(e)||Go(e)||Ho(e)||ia(e,t))(e,n)){const t=la(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||a.set(e,r),r}if(Mo(o,e))return{transformedValue:null};const c=la(e,n),u=(null==c?void 0:c.value)??e,d=Uo(u)?[]:{},p={};Lo(u,((s,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)throw new Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);const c=ha(s,t,n,r,[...i,l],[...o,e],a);d[l]=c.transformedValue,Uo(c.annotations)?p[l]=c.annotations:Wo(c.annotations)&&Lo(c.annotations,((e,t)=>{p[Zo(l)+"."+t]=e}))}));const f=qo(p)?{transformedValue:d,annotations:c?[c.type]:void 0}:{transformedValue:d,annotations:c?[c.type,p]:p};return s||a.set(e,f),f};function ga(e){return Object.prototype.toString.call(e).slice(8,-1)}function va(e){return"Array"===ga(e)}function ya(e,t={}){return va(e)?e.map((e=>ya(e,t))):function(e){if("Object"!==ga(e))return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce(((n,r)=>(va(t.props)&&!t.props.includes(r)||function(e,t,n,r,i){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,ya(e[r],t),e,t.nonenumerable),n)),{}):e}class Sa{constructor({dedupe:e=!1}={}){this.classRegistry=new zo,this.symbolRegistry=new jo((e=>e.description??"")),this.customTransformerRegistry=new Fo,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=ha(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const i=function(e,t){const n={};let r;return e.forEach((e=>{if(e.length<=1)return;t||(e=e.map((e=>e.map(String))).sort(((e,t)=>e.length-t.length)));const[i,...o]=e;0===i.length?r=o.map(Ko):n[Ko(i)]=o.map(Ko)})),r?qo(n)?[r]:[r,n]:qo(n)?void 0:n}(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){const{json:t,meta:n}=e;let r=ya(t);return(null==n?void 0:n.values)&&(r=ma(r,n.values,this)),(null==n?void 0:n.referentialEqualities)&&(r=function(e,t){function n(t,n){const r=((e,t)=>{da(t);for(let n=0;n{e=pa(e,t,(()=>r))}))}if(Uo(t)){const[r,i]=t;r.forEach((t=>{e=pa(e,Yo(t),(()=>e))})),i&&Lo(i,n)}else Lo(t,n);return e}(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}function ba(e,t){let n;try{n=e()}catch(zl){return}return{getItem:e=>{var t;const r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=n.getItem(e))?t:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}Sa.defaultInstance=new Sa,Sa.serialize=Sa.defaultInstance.serialize.bind(Sa.defaultInstance),Sa.deserialize=Sa.defaultInstance.deserialize.bind(Sa.defaultInstance),Sa.stringify=Sa.defaultInstance.stringify.bind(Sa.defaultInstance),Sa.parse=Sa.defaultInstance.parse.bind(Sa.defaultInstance),Sa.registerClass=Sa.defaultInstance.registerClass.bind(Sa.defaultInstance),Sa.registerSymbol=Sa.defaultInstance.registerSymbol.bind(Sa.defaultInstance),Sa.registerCustom=Sa.defaultInstance.registerCustom.bind(Sa.defaultInstance),Sa.allowErrorProps=Sa.defaultInstance.allowErrorProps.bind(Sa.defaultInstance),Sa.serialize,Sa.deserialize,Sa.stringify,Sa.parse,Sa.registerClass,Sa.registerCustom,Sa.registerSymbol,Sa.allowErrorProps;const ka=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>ka(e)(n),catch(e){return this}}}catch(zl){return{then(e){return this},catch:t=>ka(t)(zl)}}};var _a,wa,Oa,Na;Oa=e=>{const t=e;return{appBlockRequestList:[],appUnblockRequestList:[],lastBlockRequestNumber:0,lastUnblockRequestNumber:0,isMainAppBlocked:!1,requestMainAppBlock:()=>{let e=0;return t((t=>(e=t.lastBlockRequestNumber+1,{appBlockRequestList:[...t.appBlockRequestList,e],lastBlockRequestNumber:e,isMainAppBlocked:0===t.appUnblockRequestList.length}))),e},requestMainAppUnblock:()=>{let e=0;return t((t=>(e=t.lastUnblockRequestNumber+1,{appUnblockRequestList:[...t.appUnblockRequestList,e],lastUnblockRequestNumber:e,isMainAppBlocked:!1}))),e},discardMainAppBlock:e=>{t((t=>{const n=t.appBlockRequestList.filter((t=>t!==e));return{appBlockRequestList:n,isMainAppBlocked:n.length>0&&0===t.appUnblockRequestList.length}}))},discardMainAppUnblock:e=>{t((t=>{const n=t.appUnblockRequestList.filter((t=>t!==e));return{appUnblockRequestList:n,isMainAppBlocked:t.appBlockRequestList.length>0&&0===n.length}}))},toolbarPosition:4,setToolbarPosition:e=>t((()=>({toolbarPosition:e}))),toolbarBoxRef:{current:null},setToolbarBoxRef:e=>t((()=>({toolbarBoxRef:e}))),unsetToolbarBoxRef:()=>t((()=>({toolbarBoxRef:{current:null}}))),minimized:!1,minimize:()=>t((()=>({minimized:!0}))),expand:()=>t((()=>({minimized:!1}))),promotedOnStartup:!1,promotionFinished:()=>t((()=>({promotedOnStartup:!0})))}},Na={name:"stgws:companion",storage:(wa=sessionStorage,{getItem:e=>{const t=wa.getItem(e);return t?Sa.parse(t):null},setItem:(e,t)=>{wa.setItem(e,Sa.stringify(t))},removeItem:e=>wa.removeItem(e)}),partialize:e=>({toolbarPosition:e.toolbarPosition})},(_a=(e,t,n)=>{let r={storage:ba((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...Na},i=!1;const o=new Set,a=new Set;let s=r.storage;if(!s)return Oa(((...t)=>{e(...t)}),t,n);const l=()=>{const e=r.partialize({...t()});return s.setItem(r.name,{state:e,version:r.version})},c=n.setState;n.setState=(e,t)=>{c(e,t),l()};const u=Oa(((...t)=>{e(...t),l()}),t,n);let d;n.getInitialState=()=>u;const p=()=>{var n,c;if(!s)return;i=!1,o.forEach((e=>{var n;return e(null!=(n=t())?n:u)}));const p=(null==(c=r.onRehydrateStorage)?void 0:c.call(r,null!=(n=t())?n:u))||void 0;return ka(s.getItem.bind(s))(r.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===r.version)return[!1,e.state];if(r.migrate){const t=r.migrate(e.state,e.version);return t instanceof Promise?t.then((e=>[!0,e])):[!0,t]}}return[!1,void 0]})).then((n=>{var i;const[o,a]=n;if(d=r.merge(a,null!=(i=t())?i:u),e(d,!0),o)return l()})).then((()=>{null==p||p(d,void 0),d=t(),i=!0,a.forEach((e=>e(d)))})).catch((e=>{null==p||p(void 0,e)}))};return n.persist={setOptions:e=>{r={...r,...e},e.storage&&(s=e.storage)},clearStorage:()=>{null==s||s.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:e=>(o.add(e),()=>{o.delete(e)}),onFinishHydration:e=>(a.add(e),()=>{a.delete(e)})},r.skipHydration||p(),d||u})&&(e=>{const t=(e=>e?Po(e):Po)(e),n=e=>function(e,t=Do){const n=tr.useSyncExternalStore(e.subscribe,(()=>t(e.getState())),(()=>t(e.getInitialState())));return tr.useDebugValue(n),n}(t,e);Object.assign(n,t)})(_a);const xa=vt({chats:[],currentChatId:null,createChat:()=>"",deleteChat:()=>{},setCurrentChat:()=>{},setChatInput:()=>{},addChatDomContext:()=>{},removeChatDomContext:()=>{},addMessage:()=>{},chatAreaState:"hidden",setChatAreaState:()=>{},isPromptCreationActive:!1,startPromptCreation:()=>{},stopPromptCreation:()=>{}});function Ja(){const e=Wt(xa);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e}function Ta(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=Da(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ea(n,t)||Pa(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},Ea=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),o=i?Ea(e.slice(1),i):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId},Aa=/^\[(.+)\]$/,Pa=e=>{if(Aa.test(e)){const t=Aa.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Da=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)Ia(n[i],r,i,t);return r},Ia=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return za(e)?void Ia(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,i])=>{Ia(i,ja(t,e),n,r)}))}else(""===e?t:ja(t,e)).classGroupId=n}))},ja=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},za=e=>e.isThemeGetter,La=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Ma=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,o=0;for(let l=0;lo?n-o:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Ra=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Fa=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},Va=/\s+/;function Wa(){let e,t,n=0,r="";for(;n{if("string"==typeof e)return e;let t,n="";for(let r=0;rt(e)),e());return n=(e=>({cache:La(e.cacheSize),parseClassName:Ma(e),sortModifiers:Fa(e),...Ca(e)}))(l),r=n.cache.get,i=n.cache.set,o=a,a(s)};function a(e){const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(Va);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let m=!!f,h=r(m?p.substring(0,f):p);if(!h){if(!m){l=e+(l.length>0?" "+l:l);continue}if(h=r(p),!h){l=e+(l.length>0?" "+l:l);continue}m=!1}const g=o(u).join(":"),v=d?g+"!":g,y=v+h;if(a.includes(y))continue;a.push(y);const S=i(h,m);for(let n=0;n0?" "+l:l)}return l})(e,n);return i(e,o),o}return function(){return o(Wa.apply(null,arguments))}}const Ga=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ha=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ba=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$a=/^\d+\/\d+$/,Za=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ka=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ya=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,es=e=>$a.test(e),ts=e=>!!e&&!Number.isNaN(Number(e)),ns=e=>!!e&&Number.isInteger(Number(e)),rs=e=>e.endsWith("%")&&ts(e.slice(0,-1)),is=e=>Za.test(e),os=()=>!0,as=e=>Ka.test(e)&&!Ya.test(e),ss=()=>!1,ls=e=>Xa.test(e),cs=e=>Qa.test(e),us=e=>!ps(e)&&!ys(e),ds=e=>Ns(e,Cs,ss),ps=e=>Ha.test(e),fs=e=>Ns(e,Es,as),ms=e=>Ns(e,As,ts),hs=e=>Ns(e,Js,ss),gs=e=>Ns(e,Ts,cs),vs=e=>Ns(e,Ds,ls),ys=e=>Ba.test(e),Ss=e=>xs(e,Es),bs=e=>xs(e,Ps),ks=e=>xs(e,Js),_s=e=>xs(e,Cs),ws=e=>xs(e,Ts),Os=e=>xs(e,Ds,!0),Ns=(e,t,n)=>{const r=Ha.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},xs=(e,t,n=!1)=>{const r=Ba.exec(e);return!!r&&(r[1]?t(r[1]):n)},Js=e=>"position"===e||"percentage"===e,Ts=e=>"image"===e||"url"===e,Cs=e=>"length"===e||"size"===e||"bg-size"===e,Es=e=>"length"===e,As=e=>"number"===e,Ps=e=>"family-name"===e,Ds=e=>"shadow"===e,Is=()=>{const e=Ga("color"),t=Ga("font"),n=Ga("text"),r=Ga("font-weight"),i=Ga("tracking"),o=Ga("leading"),a=Ga("breakpoint"),s=Ga("container"),l=Ga("spacing"),c=Ga("radius"),u=Ga("shadow"),d=Ga("inset-shadow"),p=Ga("text-shadow"),f=Ga("drop-shadow"),m=Ga("blur"),h=Ga("perspective"),g=Ga("aspect"),v=Ga("ease"),y=Ga("animate"),S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ys,ps],b=()=>[ys,ps,l],k=()=>[es,"full","auto",...b()],_=()=>[ns,"none","subgrid",ys,ps],w=()=>["auto",{span:["full",ns,ys,ps]},ns,ys,ps],O=()=>[ns,"auto",ys,ps],N=()=>["auto","min","max","fr",ys,ps],x=()=>["auto",...b()],J=()=>[es,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],T=()=>[e,ys,ps],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ks,hs,{position:[ys,ps]}],E=()=>["auto","cover","contain",_s,ds,{size:[ys,ps]}],A=()=>[rs,Ss,fs],P=()=>["","none","full",c,ys,ps],D=()=>["",ts,Ss,fs],I=()=>[ts,rs,ks,hs],j=()=>["","none",m,ys,ps],z=()=>["none",ts,ys,ps],L=()=>["none",ts,ys,ps],M=()=>[ts,ys,ps],R=()=>[es,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[is],breakpoint:[is],color:[os],container:[is],"drop-shadow":[is],ease:["in","out","in-out"],font:[us],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[is],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[is],shadow:[is],spacing:["px",ts],text:[is],"text-shadow":[is],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",es,ps,ys,g]}],container:["container"],columns:[{columns:[ts,ps,ys,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[ns,"auto",ys,ps]}],basis:[{basis:[es,"full","auto",s,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ts,es,"auto","initial","none",ps]}],grow:[{grow:["",ts,ys,ps]}],shrink:[{shrink:["",ts,ys,ps]}],order:[{order:[ns,"first","last","none",ys,ps]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:x()}],mx:[{mx:x()}],my:[{my:x()}],ms:[{ms:x()}],me:[{me:x()}],mt:[{mt:x()}],mr:[{mr:x()}],mb:[{mb:x()}],ml:[{ml:x()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[s,"screen",...J()]}],"min-w":[{"min-w":[s,"screen","none",...J()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,Ss,fs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ys,ms]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rs,ps]}],"font-family":[{font:[bs,ps,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ys,ps]}],"line-clamp":[{"line-clamp":[ts,"none",ys,ms]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",ys,ps]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ys,ps]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ts,"from-font","auto",ys,fs]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ts,"auto",ys,ps]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ys,ps]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ys,ps]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ns,ys,ps],radial:["",ys,ps],conic:[ns,ys,ps]},ws,gs]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ts,ys,ps]}],"outline-w":[{outline:["",ts,Ss,fs]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,Os,vs]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,Os,vs]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ts,fs]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,Os,vs]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ts,ys,ps]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ts]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ys,ps]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[ts]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ys,ps]}],filter:[{filter:["","none",ys,ps]}],blur:[{blur:j()}],brightness:[{brightness:[ts,ys,ps]}],contrast:[{contrast:[ts,ys,ps]}],"drop-shadow":[{"drop-shadow":["","none",f,Os,vs]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ts,ys,ps]}],"hue-rotate":[{"hue-rotate":[ts,ys,ps]}],invert:[{invert:["",ts,ys,ps]}],saturate:[{saturate:[ts,ys,ps]}],sepia:[{sepia:["",ts,ys,ps]}],"backdrop-filter":[{"backdrop-filter":["","none",ys,ps]}],"backdrop-blur":[{"backdrop-blur":j()}],"backdrop-brightness":[{"backdrop-brightness":[ts,ys,ps]}],"backdrop-contrast":[{"backdrop-contrast":[ts,ys,ps]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ts,ys,ps]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ts,ys,ps]}],"backdrop-invert":[{"backdrop-invert":["",ts,ys,ps]}],"backdrop-opacity":[{"backdrop-opacity":[ts,ys,ps]}],"backdrop-saturate":[{"backdrop-saturate":[ts,ys,ps]}],"backdrop-sepia":[{"backdrop-sepia":["",ts,ys,ps]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ys,ps]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ts,"initial",ys,ps]}],ease:[{ease:["linear","initial",v,ys,ps]}],delay:[{delay:[ts,ys,ps]}],animate:[{animate:["none",y,ys,ps]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ys,ps]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[ys,ps,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ys,ps]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ys,ps]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ts,Ss,fs,ms]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},js=(e,t,n)=>{void 0!==n&&(e[t]=n)},zs=(e,t)=>{if(t)for(const n in t)js(e,n,t[n])},Ls=(e,t)=>{if(t)for(const n in t)Ms(e,t,n)},Ms=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Rs=((e,...t)=>"function"==typeof e?Ua(Is,e,...t):Ua((()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:o={}})=>(js(e,"cacheSize",t),js(e,"prefix",n),js(e,"experimentalParseClassName",r),zs(e.theme,o.theme),zs(e.classGroups,o.classGroups),zs(e.conflictingClassGroups,o.conflictingClassGroups),zs(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),js(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Ls(e.theme,i.theme),Ls(e.classGroups,i.classGroups),Ls(e.conflictingClassGroups,i.conflictingClassGroups),Ls(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ms(e,i,"orderSensitiveModifiers"),e))(Is(),e)),...t))({extend:{classGroups:{"bg-image":["bg-gradient","bg-gradient-light-1","bg-gradient-light-2","bg-gradient-light-3"]}}});function Fs(...e){return Rs(function(){for(var e,t,n=0,r="",i=arguments.length;n{},Ws=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},qs=e=>e&&"window"in e&&e.window===e?e:Ws(e).defaultView||window;function Us(e,t){return!(!t||!e)&&e.contains(t)}const Gs=(e=document)=>e.activeElement;function Hs(e){return e.target}function Bs(e){let t=null;return()=>(null==t&&(t=e()),t)}const $s=Bs((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),Zs=Bs((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));function Ks(){let e=Mt(new Map),t=Vt(((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)}),[]),n=Vt(((t,n,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,a,i),e.current.delete(r)}),[]),r=Vt((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return zt((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ys(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Xs(e){let t=Mt({isFocused:!1,observer:null});Vs((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Mt(null);return Vs((()=>{t.current=e}),[e]),Vt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Vt((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{if(t.current.isFocused=!1,r.disabled){let t=Ys(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let Qs=null,el=new Set,tl=new Map,nl=!1,rl=!1;const il={Tab:!0,Escape:!0};function ol(e,t){for(let n of el)n(e,t)}function al(e){nl=!0,function(e){return!(e.metaKey||!$s()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Qs="keyboard",ol("keyboard",e))}function sl(e){Qs="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(nl=!0,ol("pointer",e))}function ll(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Zs()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(nl=!0,Qs="virtual")}function cl(e){e.target!==window&&e.target!==document&&e.isTrusted&&(nl||rl||(Qs="virtual",ol("virtual",e)),nl=!1,rl=!1)}function ul(){nl=!1,rl=!0}function dl(e){if("undefined"==typeof window||tl.get(qs(e)))return;const t=qs(e),n=Ws(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nl=!0,r.apply(this,arguments)},n.addEventListener("keydown",al,!0),n.addEventListener("keyup",al,!0),n.addEventListener("click",ll,!0),t.addEventListener("focus",cl,!0),t.addEventListener("blur",ul,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",sl,!0),n.addEventListener("pointermove",sl,!0),n.addEventListener("pointerup",sl,!0)),t.addEventListener("beforeunload",(()=>{pl(e)}),{once:!0}),tl.set(t,{focus:r})}const pl=(e,t)=>{const n=qs(e),r=Ws(e);t&&r.removeEventListener("DOMContentLoaded",t),tl.has(n)&&(n.HTMLElement.prototype.focus=tl.get(n).focus,r.removeEventListener("keydown",al,!0),r.removeEventListener("keyup",al,!0),r.removeEventListener("click",ll,!0),n.removeEventListener("focus",cl,!0),n.removeEventListener("blur",ul,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",sl,!0),r.removeEventListener("pointermove",sl,!0),r.removeEventListener("pointerup",sl,!0)),tl.delete(n))};function fl(){return"pointer"!==Qs}"undefined"!=typeof document&&function(e){const t=Ws(e);let n;"loading"!==t.readyState?dl(e):(n=()=>{dl(e)},t.addEventListener("DOMContentLoaded",n))}();const ml=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let hl=!1,gl=0;function vl(e){"touch"===e.pointerType&&(hl=!0,setTimeout((()=>{hl=!1}),50))}function yl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",vl),gl++,()=>{gl--,gl>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",vl)}}function Sl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=It(!1),s=Mt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;zt(yl,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Ks(),{hoverProps:u,triggerHoverEnd:d}=Ft((()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=r=>{hl&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let c=r.currentTarget;s.target=c,l(Ws(r.target),"pointerover",(t=>{s.isHovered&&s.target&&!Us(s.target,t.target)&&e(0,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),n&&n(!0),a(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(0,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}}),[t,n,r,i,s,l,c]);return zt((()=>{i&&d({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:u,isHovered:o}}function bl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Mt({isFocused:!1,isFocusVisible:t||fl()}),[o,a]=It(!1),[s,l]=It((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Vt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Vt((e=>{i.current.isFocused=e,a(e),c()}),[c]);var d,p,f;d=e=>{i.current.isFocusVisible=e,c()},p=[],f={isTextInput:n},dl(),zt((()=>{let e=(e,t)=>{(function(e,t,n){let r=Ws(null==n?void 0:n.target);const i="undefined"!=typeof window?qs(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?qs(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?qs(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?qs(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!ml.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!il[n.key])})(!!(null==f?void 0:f.isTextInput),e,t)&&d(fl())};return el.add(e),()=>{el.delete(e)}}),p);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Vt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Xs(o),s=Vt((e=>{const t=Ws(e.target),r=t?Gs(t):Gs();e.target===e.currentTarget&&r===Hs(e.nativeEvent)&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:h}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Mt({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Ks(),l=Vt((e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))}),[n,i,o,s]),c=Xs(l),u=Vt((e=>{if(!e.currentTarget.contains(e.target))return;const t=Ws(e.target),n=Gs(t);if(!o.current.isFocusWithin&&n===Hs(e.nativeEvent)){r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,c(e);let n=e.currentTarget;a(t,"focus",(e=>{if(o.current.isFocusWithin&&!Us(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let i=Ys(r);l(i)}}),{capture:!0})}}),[r,i,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?h:m}}var kl=Object.defineProperty,_l=(e,t,n)=>(((e,t,n)=>{t in e?kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let wl=new class{constructor(){_l(this,"current",this.detect()),_l(this,"handoffState","pending"),_l(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}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}};function Ol(e){var t,n;return wl.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}function Nl(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function xl(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Nl((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=xl();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Jl(){let[e]=It(xl);return zt((()=>()=>e.dispose()),[e]),e}let Tl=(e,t)=>{wl.isServer?zt(e,t):Lt(e,t)};function Cl(e){let t=Mt(e);return Tl((()=>{t.current=e}),[e]),t}let El=function(e){let t=Cl(e);return tr.useCallback(((...e)=>t.current(...e)),[t])};function Al({disabled:e=!1}={}){let t=Mt(null),[n,r]=It(!1),i=Jl(),o=El((()=>{t.current=null,r(!1),i.dispose()})),a=El((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Ol(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.rightt.right||e.bottomt.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let Pl=vt(void 0);function Dl(){return Wt(Pl)}function Il(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function jl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jl),r}var zl,Ll,Ml=((Ll=Ml||{})[Ll.None=0]="None",Ll[Ll.RenderStrategy=1]="RenderStrategy",Ll[Ll.Static=2]="Static",Ll),Rl=((zl=Rl||{})[zl.Unmount=0]="Unmount",zl[zl.Hidden=1]="Hidden",zl);function Fl(){let e=function(){let e=Mt([]),t=Vt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Vt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Wl;let l=ql(t,e);if(o)return Vl(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Vl(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return jl(e?0:1,{0:()=>null,1:()=>Vl({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Vl(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Vl(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Bl(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===Ze&&(Object.keys(Hl(l)).length>0||Object.keys(Hl(d)).length>0)){if(Gn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Il(t(...e),l.className):Il(t,l.className),r=n?{className:n}:{},o=ql(u.props,Hl(Bl(l,["ref"])));for(let i in d)i in o&&delete d[i];return $n(u,Object.assign({},o,d,c,{ref:i($l(u),c.ref)},r))}if(Object.keys(Hl(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Hl(l)).concat(Object.keys(Hl(d))).map((e=>` - ${e}`)).join("\n"),"","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((e=>` - ${e}`)).join("\n")].join("\n"))}return He(o,Object.assign({},Bl(l,["ref"]),o!==Ze&&c,o!==Ze&&d),u)}function Wl(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ql(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Ul(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function Gl(e){var t;return Object.assign(dn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Hl(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Bl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $l(e){return tr.version.split(".")[0]>="19"?e.props.ref:e.ref}let Zl=Gl((function(e,t){var n;let r=Dl(),{disabled:i=r||!1,autoFocus:o=!1,...a}=e,{isFocusVisible:s,focusProps:l}=bl({autoFocus:o}),{isHovered:c,hoverProps:u}=Sl({isDisabled:i}),{pressed:d,pressProps:p}=Al({disabled:i}),f=Ul({ref:t,type:null!=(n=a.type)?n:"button",disabled:i||void 0,autoFocus:o},l,u,p),m=Ft((()=>({disabled:i,hover:c,focus:s,active:d,autofocus:o})),[i,c,s,d,o]);return Fl()({ourProps:f,theirProps:a,slot:m,defaultTag:"button",name:"Button"})})),Kl=vt(void 0);function Yl(){return Wt(Kl)}let Xl=Symbol();function Ql(...e){let t=Mt(e);zt((()=>{t.current=e}),[e]);let n=El((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Xl])))?void 0:n}let ec=vt(null);function tc(){let e=Wt(ec);if(null===e){let e=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,tc),e}return e}ec.displayName="DescriptionContext";let nc=Gl((function(e,t){let n=Ut(),r=Dl(),{id:i=`headlessui-description-${n}`,...o}=e,a=tc(),s=Ql(t);Tl((()=>a.register(i)),[i,a.register]);let l=r||!1,c=Ft((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return Fl()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(nc,{});var rc,ic=((rc=ic||{}).Space=" ",rc.Enter="Enter",rc.Escape="Escape",rc.Backspace="Backspace",rc.Delete="Delete",rc.ArrowLeft="ArrowLeft",rc.ArrowUp="ArrowUp",rc.ArrowRight="ArrowRight",rc.ArrowDown="ArrowDown",rc.Home="Home",rc.End="End",rc.PageUp="PageUp",rc.PageDown="PageDown",rc.Tab="Tab",rc);let oc=vt(null);function ac(){let e=Wt(oc);if(null===e){let e=new Error("You used a