1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62],{6624:function(e,t,r){let n,a,i,s,o,u;r.d(t,{V:function(){return ec}});var l,d,c=r(2265),f=r.t(c,2),h=r(945),p=r(8036),m=r(6802),v=r(3394),g=r(9417),y=r(48),_=r(2238),b=r(3689),w=r(8369);function k(e,t){let r=(0,c.useRef)([]),n=(0,p.z)(e);(0,c.useEffect)(()=>{let e=[...r.current];for(let[a,i]of t.entries())if(r.current[a]!==i){let a=n(t,e);return r.current=t,a}},[n,...t])}var E=r(8198);let x=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&x[0]!==e.target&&(x.unshift(e.target),(x=x.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var T=r(7105),O=r(4536),C=r(6822),A=r(7847);function S(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var N=((n=N||{})[n.None=1]="None",n[n.InitialFocus=2]="InitialFocus",n[n.TabLock=4]="TabLock",n[n.FocusLock=8]="FocusLock",n[n.RestoreFocus=16]="RestoreFocus",n[n.All=30]="All",n);let P=Object.assign((0,A.yV)(function(e,t){let r=(0,c.useRef)(null),n=(0,b.T)(r,t),{initialFocus:a,containers:i,features:s=30,...o}=e;(0,_.H)()||(s=1);let u=(0,y.i)(r);!function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,c.useRef)(x.slice());return k((e,r)=>
1{let[n]=e,[a]=r;!0===a&&!1===n&&(0,C.Y)(()=>{t.current.splice(0)}),!1===a&&!0===n&&(t.current=x.slice())},[e,x,t]),(0,p.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);k(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&(0,T.C5)(n())},[t]),(0,g.L)(()=>{t&&(0,T.C5)(n())})}({ownerDocument:u},!!(16&s));let l=function(e,t){let{ownerDocument:r,container:n,initialFocus:a}=e,i=(0,c.useRef)(null),s=(0,v.t)();return k(()=>{if(!t)return;let e=n.current;e&&(0,C.Y)(()=>{if(!s.current)return;let t=null==r?void 0:r.activeElement;if(null!=a&&a.current){if((null==a?void 0:a.current)===t){i.current=t;return}}else if(e.contains(t)){i.current=t;return}null!=a&&a.current?(0,T.C5)(a.current):(0,T.jA)(e,T.TO.First)===T.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==r?void 0:r.activeElement})},[t]),i}({ownerDocument:u,container:r,initialFocus:a},!!(2&s));!function(e,t){let{ownerDocument:r,container:n,containers:a,previousActiveElement:i}=e,s=(0,v.t)();(0,m.O)(null==r?void 0:r.defaultView,"focus",e=>{if(!t||!s.current)return;let r=S(a);n.current instanceof HTMLElement&&r.add(n.current);let o=i.current;if(!o)return;let u=e.target;u&&u instanceof HTMLElement?R(r,u)?(i.current=u,(0,T.C5)(u)):(e.preventDefault(),e.stopPropagation(),(0,T.C5)(o)):(0,T.C5)(i.current)},!0)}({ownerDocument:u,container:r,containers:i,previousActiveElement:l},!!(8&s));let d=(0,w.l)(),f=(0,p.z)(e=>{let t=r.current;t&&(0,O.E)(d.current,{[w.N.Forwards]:()=>{(0,T.jA)(t,T.TO.First,{skipElements:[e.relatedTarget]})},[w.N.Backwards]:()=>{(0,T.jA)(t,T.TO.Last,{skipElements:[e.relatedTarget]})}})}),N=(0,h.G)(),P=(0,c.useRef)(!1);return c.createElement(c.Fragment,null,!!(4&s)&&c.createElement(E._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:E.A.Focusable}),(0,A.sY)({ourProps:{ref:n,onKeyDown(e){"Tab"==e.key&&(P.current=!0,N.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){let t=S(i);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(R(t,n)||(P.current?(0,T.jA)(r.current,(0,O.E)(d.current,{[w.N.Forwards]:()=>T.TO.Next,[w.N.Backwards]:()=>T.TO.Previous})|T.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,T.C5)(e.target)))}},theirProps:o,defaultTag:"div",name:"FocusTrap"}),!!(4&s)&&c.createElement(E._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:E.A.Focusable}))}),{features:N});function R(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var Z=r(1094);let{useState:L,useEffect:j,useLayoutEffect:F,useDebugValue:M}=f;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let I=f.useSyncExternalStore;var D=r(4518),$=r(5473),z=r(2108);let V=(l=()=>new Map,d={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,$.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:r,d:n,meta:a}=e,i={doc:r,d:n,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(a)},s=[(0,z.gn)()?{before(e){let{doc:t,d:r,meta:n}=e;function a(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,$.k)();e.style(t.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>e.dispose()))}let n=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;r.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),s=t.querySelector(n);s&&!a(s)&&(i=s)}catch(e){}},!0),r.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(a(e.target)){let t=e.target;for(;t.parentElement&&a(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")}}),r.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(a(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var r;let{doc:n}=e,a=n.documentElement;t=(null!=(r=n.defaultView)?r:window).innerWidth-a.clientWidth},after(e){let{doc:r,d:n}=e,a=r.documentElement,i=a.clientWidth-a.offsetWidth,s=t-i;n.style(a,"paddingRight","".concat(s,"px"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,"overflow","hidden")}}];
1s.forEach(e=>{let{before:t}=e;return null==t?void 0:t(i)}),s.forEach(e=>{let{after:t}=e;return null==t?void 0:t(i)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},a=l(),i=new Set,{getSnapshot:()=>a,subscribe:e=>(i.add(e),()=>i.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let s=d[e].call(a,...r);s&&(a=s,i.forEach(e=>e()))}});V.subscribe(()=>{let e=V.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&V.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&V.dispatch("TEARDOWN",r)}});var H=r(7684);let U=new Map,B=new Map;function W(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,D.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let a=null!=(r=B.get(n))?r:0;return B.set(n,a+1),0!==a||(U.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=B.get(n))?e:1;if(1===t?B.delete(n):B.set(n,t-1),1!==t)return;let r=U.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,U.delete(n))}},[e,t])}var Y=r(2539),K=r(8851),q=r(7863),G=r(7988);let J=(0,c.createContext)(()=>{});J.displayName="StackContext";var X=((s=X||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function Q(e){let{children:t,onUpdate:r,type:n,element:a,enabled:i}=e,s=(0,c.useContext)(J),o=(0,p.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),s(...t)});return(0,D.e)(()=>{let e=void 0===i||!0===i;return e&&o(0,n,a),()=>{e&&o(1,n,a)}},[o,n,a,i]),c.createElement(J.Provider,{value:o},t)}var ee=r(7634);let et=(0,c.createContext)(null),er=Object.assign((0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-description-".concat(r),...a}=e,i=function e(){let t=(0,c.useContext)(et);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=(0,b.T)(t);(0,D.e)(()=>i.register(n),[n,i.register]);let o={ref:s,...i.props,id:n};return(0,A.sY)({ourProps:o,theirProps:a,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})}),{});var en=r(7388),ea=((o=ea||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),ei=((u=ei||{})[u.SetTitleId=0]="SetTitleId",u);let es={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eo=(0,c.createContext)(null);function eu(e){let t=(0,c.useContext)(eo);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eu),t}return t}function el(e,t){return(0,O.E)(t.type,es,e,t)}eo.displayName="DialogContext";let ed=A.AN.RenderStrategy|A.AN.Static,ec=Object.assign((0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-dialog-".concat(r),open:a,onClose:i,initialFocus:s,role:o="dialog",__demoMode:u=!1,...l}=e,[d,f]=(0,c.useState)(0),h=(0,c.useRef)(!1);o="dialog"===o||"alertdialog"===o?o:(h.current||(h.current=!0,console.warn("Invalid role [".concat(o,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let v=(0,q.oJ)();void 0===a&&null!==v&&(a=(v&q.ZM.Open)===q.ZM.Open);let g=(0,c.useRef)(null),w=(0,b.T)(g,t),k=(0,y.i)(g),E=e.hasOwnProperty("open")||null!==v,x=e.hasOwnProperty("onClose");if(!E&&!x)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!E)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof a)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(a));if("function"!=typeof i)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(i));let T=a?0:1,[C,S]=(0,c.useReducer)(el,{titleId:null,descriptionId:null,panelRef:(0,c.createRef)()}),N=(0,p.z)(()=>i(!1)),R=(0,p.z)(e=>S({type:0,id:e})),L=!!(0,_.H)()&&!u&&0===T,j=d>1,F=null!==(0,c.useContext)(eo),[M,$]=(0,Z.k)(),{resolveContainers:z,mainTreeNodeRef:U,MainTreeNode:B}=(0,K.v)({portals:M,defaultContainers:[{get current(){var J;return null!=(J=C.panelRef.current)?J:g.current}}]}),ee=null!==v&&(v&q.ZM.Closing)===q.ZM.Closing,er=!F&&!ee&&L;W((0,c.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==k?void 0:k.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(U.current)&&e instanceof HTMLElement))?t:null},[U]),er);let ea=!!j||L;W((0,c.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==k?void 0:k.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(U.current)&&e instanceof HTMLElement))?t:null},[U]),ea);let ei=!(!L||j);(0,Y.O)(z,e=>{e.preventDefault(),N()},ei);let es=!(j||0!==T);(0,m.O)(null==k?void 0:k.defaultView,"keydown",e=>{es&&(e.defaultPrevented||e.key===en.R.Escape&&(e.preventDefault(),e.stopPropagation(),N()))}),function(e,t){var r;let n,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;
1return{containers:[...null!=(t=e.containers)?t:[],i]}},n=I(V.subscribe,V.getSnapshot,V.getSnapshot),(a=e?n.get(e):void 0)&&a.count,(0,D.e)(()=>{if(!(!e||!t))return V.dispatch("PUSH",e,r),()=>V.dispatch("POP",e,r)},[t,e])}(k,!(ee||0!==T||F),z),(0,c.useEffect)(()=>{if(0!==T||!g.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&N()}});return e.observe(g.current),()=>e.disconnect()},[T,g,N]);let[eu,ec]=function(){let[e,t]=(0,c.useState)([]);return[e.length>0?e.join(" "):void 0,(0,c.useMemo)(()=>function(e){let r=(0,p.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,c.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return c.createElement(et.Provider,{value:n},e.children)},[t])]}(),ef=(0,c.useMemo)(()=>[{dialogState:T,close:N,setTitleId:R},C],[T,C,N,R]),eh=(0,c.useMemo)(()=>({open:0===T}),[T]),ep={ref:w,id:n,role:o,"aria-modal":0===T||void 0,"aria-labelledby":C.titleId,"aria-describedby":eu};return c.createElement(Q,{type:"Dialog",enabled:0===T,element:g,onUpdate:(0,p.z)((e,t)=>{"Dialog"===t&&(0,O.E)(e,{[X.Add]:()=>f(e=>e+1),[X.Remove]:()=>f(e=>e-1)})})},c.createElement(G.O,{force:!0},c.createElement(Z.h,null,c.createElement(eo.Provider,{value:ef},c.createElement(Z.h.Group,{target:g},c.createElement(G.O,{force:!1},c.createElement(ec,{slot:eh,name:"Dialog.Description"},c.createElement(P,{initialFocus:s,containers:z,features:L?(0,O.E)(j?"parent":"leaf",{parent:P.features.RestoreFocus,leaf:P.features.All&~P.features.FocusLock}):P.features.None},c.createElement($,null,(0,A.sY)({ourProps:ep,theirProps:l,slot:eh,defaultTag:"div",features:ed,visible:0===T,name:"Dialog"}))))))))),c.createElement(B,null))}),{Backdrop:(0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-dialog-backdrop-".concat(r),...a}=e,[{dialogState:i},s]=eu("Dialog.Backdrop"),o=(0,b.T)(t);(0,c.useEffect)(()=>{if(null===s.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let u=(0,c.useMemo)(()=>({open:0===i}),[i]);return c.createElement(G.O,{force:!0},c.createElement(Z.h,null,(0,A.sY)({ourProps:{ref:o,id:n,"aria-hidden":!0},theirProps:a,slot:u,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-dialog-panel-".concat(r),...a}=e,[{dialogState:i},s]=eu("Dialog.Panel"),o=(0,b.T)(t,s.panelRef),u=(0,c.useMemo)(()=>({open:0===i}),[i]),l=(0,p.z)(e=>{e.stopPropagation()});return(0,A.sY)({ourProps:{ref:o,id:n,onClick:l},theirProps:a,slot:u,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-dialog-overlay-".concat(r),...a}=e,[{dialogState:i,close:s}]=eu("Dialog.Overlay"),o=(0,b.T)(t),u=(0,p.z)(e=>{if(e.target===e.currentTarget){if((0,ee.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}),l=(0,c.useMemo)(()=>({open:0===i}),[i]);return(0,A.sY)({ourProps:{ref:o,id:n,"aria-hidden":!0,onClick:u},theirProps:a,slot:l,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,A.yV)(function(e,t){let r=(0,H.M)(),{id:n="headlessui-dialog-title-".concat(r),...a}=e,[{dialogState:i,setTitleId:s}]=eu("Dialog.Title"),o=(0,b.T)(t);(0,c.useEffect)(()=>(s(n),()=>s(null)),[n,s]);let u=(0,c.useMemo)(()=>({open:0===i}),[i]);return(0,A.sY)({ourProps:{ref:o,id:n},theirProps:a,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),Description:er})},7388:function(e,t,r){let n;r.d(t,{R:function(){return a}});var a=((n=a||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},1094:function(e,t,r){r.d(t,{h:function(){return _},k:function(){return y}});var n=r(2265),a=r(4887),i=r(8036),s=r(4518),o=r(9417),u=r(48),l=r(2238),d=r(3689),c=r(7988),f=r(1424),h=r(7847);let p=n.Fragment,m=n.Fragment,v=(0,n.createContext)(null),g=(0,n.createContext)(null);function y(){let e=(0,n.useContext)(g),t=(0,n.useRef)([]),r=(0,i.z)(r=>(t.current.push(r),e&&e.register(r),()=>a(r))),a=(0,i.z)(r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)}),s=(0,n.useMemo)(()=>({register:r,unregister:a,portals:t}),[r,a,t]);return[t,(0,n.useMemo)(()=>function(e){let{children:t}=e;return n.createElement(g.Provider,{value:s},t)},[s])]}let _=Object.assign((0,h.yV)(function(e,t){let r=(0,n.useRef)(null),i=(0,d.T)((0,d.h)(e=>{r.current=e}),t),m=(0,u.i)(r),y=function(e){let t=(0,c.n)(),r=(0,n.useContext)(v),a=(0,u.i)(e),[i,s]=(0,n.use
1State)(()=>{if(!t&&null!==r||f.O.isServer)return null;let e=null==a?void 0:a.getElementById("headlessui-portal-root");if(e)return e;if(null===a)return null;let n=a.createElement("div");return n.setAttribute("id","headlessui-portal-root"),a.body.appendChild(n)});return(0,n.useEffect)(()=>{null!==i&&(null!=a&&a.body.contains(i)||null==a||a.body.appendChild(i))},[i,a]),(0,n.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),i}(r),[_]=(0,n.useState)(()=>{var e;return f.O.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),b=(0,n.useContext)(g),w=(0,l.H)();return(0,s.e)(()=>{!y||!_||y.contains(_)||(_.setAttribute("data-headlessui-portal",""),y.appendChild(_))},[y,_]),(0,s.e)(()=>{if(_&&b)return b.register(_)},[b,_]),(0,o.L)(()=>{var e;y&&_&&(_ instanceof Node&&y.contains(_)&&y.removeChild(_),y.childNodes.length<=0&&(null==(e=y.parentElement)||e.removeChild(y)))}),w&&y&&_?(0,a.createPortal)((0,h.sY)({ourProps:{ref:i},theirProps:e,defaultTag:p,name:"Portal"}),_):null}),{Group:(0,h.yV)(function(e,t){let{target:r,...a}=e,i={ref:(0,d.T)(t)};return n.createElement(v.Provider,{value:r},(0,h.sY)({ourProps:i,theirProps:a,defaultTag:m,name:"Popover.Group"}))})})},3044:function(e,t,r){let n;r.d(t,{u:function(){return R}});var a=r(2265),i=r(945),s=r(8036),o=r(3394),u=r(4518),l=r(1948),d=r(2238),c=r(3689),f=r(5473),h=r(4536);function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var v=r(7863),g=r(2120),y=r(7847);function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let b=(0,a.createContext)(null);b.displayName="TransitionContext";var w=((n=w||{}).Visible="visible",n.Hidden="hidden",n);let k=(0,a.createContext)(null);function E(e){return"children"in e?E(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function x(e,t){let r=(0,l.E)(e),n=(0,a.useRef)([]),u=(0,o.t)(),d=(0,i.G)(),c=(0,s.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.l4.Hidden,a=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==a&&((0,h.E)(t,{[y.l4.Unmount](){n.current.splice(a,1)},[y.l4.Hidden](){n.current[a].state="hidden"}}),d.microTask(()=>{var e;!E(n)&&u.current&&(null==(e=r.current)||e.call(r))}))}),f=(0,s.z)(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>c(e,y.l4.Unmount)}),p=(0,a.useRef)([]),m=(0,a.useRef)(Promise.resolve()),v=(0,a.useRef)({enter:[],leave:[],idle:[]}),g=(0,s.z)((e,r,n)=>{p.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(v.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())}
1)]),"enter"===r?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),_=(0,s.z)((e,t,r)=>{Promise.all(v.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>r(t))});return(0,a.useMemo)(()=>({children:n,register:f,unregister:c,onStart:g,onStop:_,wait:m,chains:v}),[f,c,n,g,_,v,m])}function T(){}k.displayName="NestingContext";let O=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function C(e){var t;let r={};for(let n of O)r[n]=null!=(t=e[n])?t:T;return r}let A=y.AN.RenderStrategy,S=(0,y.yV)(function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,l=(0,a.useRef)(null),f=(0,c.T)(l,t);(0,d.H)();let h=(0,v.oJ)();if(void 0===r&&null!==h&&(r=(h&v.ZM.Open)===v.ZM.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,m]=(0,a.useState)(r?"visible":"hidden"),g=x(()=>{m("hidden")}),[_,w]=(0,a.useState)(!0),T=(0,a.useRef)([r]);(0,u.e)(()=>{!1!==_&&T.current[T.current.length-1]!==r&&(T.current.push(r),w(!1))},[T,r]);let O=(0,a.useMemo)(()=>({show:r,appear:n,initial:_}),[r,n,_]);(0,a.useEffect)(()=>{if(r)m("visible");else if(E(g)){let e=l.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,g]);let C={unmount:i},S=(0,s.z)(()=>{var t;_&&w(!1),null==(t=e.beforeEnter)||t.call(e)}),P=(0,s.z)(()=>{var t;_&&w(!1),null==(t=e.beforeLeave)||t.call(e)});return a.createElement(k.Provider,{value:g},a.createElement(b.Provider,{value:O},(0,y.sY)({ourProps:{...C,as:a.Fragment,children:a.createElement(N,{ref:f,...C,...o,beforeEnter:S,beforeLeave:P})},theirProps:{},defaultTag:a.Fragment,features:A,visible:"visible"===p,name:"Transition"})))}),N=(0,y.yV)(function(e,t){var r,n,w;let T;let{beforeEnter:O,afterEnter:S,beforeLeave:N,afterLeave:P,enter:R,enterFrom:Z,enterTo:L,entered:j,leave:F,leaveFrom:M,leaveTo:I,...D}=e,$=(0,a.useRef)(null),z=(0,c.T)($,t),V=null==(r=D.unmount)||r?y.l4.Unmount:y.l4.Hidden,{show:H,appear:U,initial:B}=function(){let e=(0,a.useContext)(b);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[W,Y]=(0,a.useState)(H?"visible":"hidden"),K=function(){let e=(0,a.useContext)(k);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:q,unregister:G}=K;(0,a.useEffect)(()=>q($),[q,$]),(0,a.useEffect)(()=>{if(V===y.l4.Hidden&&$.current){if(H&&"visible"!==W){Y("visible");return}return(0,h.E)(W,{hidden:()=>G($),visible:()=>q($)})}},[W,$,q,G,H,V]);let J=(0,l.E)({base:_(D.className),enter:_(R),enterFrom:_(Z),enterTo:_(L),entered:_(j),leave:_(F),leaveFrom:_(M),leaveTo:_(I)}),X=(w={beforeEnter:O,afterEnter:S,beforeLeave:N,afterLeave:P},T=(0,a.useRef)(C(w)),(0,a.useEffect)(()=>{T.current=C(w)},[w]),T),Q=(0,d.H)();(0,a.useEffect)(()=>{if(Q&&"visible"===W&&null===$.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[$,W,Q]);let ee=U&&H&&B,et=Q&&(!B||U)?H?"enter":"leave":"idle",er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,a.useState)(e),n=(0,o.t)(),i=(0,a.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),s=(0,a.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:(0,a.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,a.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),en=(0,s.z)(e=>(0,h.E)(e,{enter:()=>{er.addFlag(v.ZM.Opening),X.current.beforeEnter()},leave:()=>{er.addFlag(v.ZM.Closing),X.current.beforeLeave()},idle:()=>{}})),ea=(0,s.z)(e=>(0,h.E)(e,{enter:()=>{er.removeFlag(v.ZM.Opening),X.current.afterEnter()},leave:()=>{er.removeFlag(v.ZM.Closing),X.current.afterLeave()},idle:()=>{}})),ei=x(()=>{Y("hidden"),G($)},K),es=(0,a.useRef)(!1);!function(e){let{immediate:t,container:r,direction:n,classes:a,onStart:s,onStop:d}=e,c=(0,o.t)(),v=(0,i.G)(),g=(0,l.E)(n);(0,u.e)(()=>{t&&(g.current="enter")},[t]),(0,u.e)(()=>{let e=(0,f.k)();v.add(e.dispose);let t=r.current;if(t&&"idle"!==g.current&&c.current){var n,i,o;let r,u,l,c,v,y,_;return e.dispose(),s.current(g.current),e.add((n=a.current,i="enter"===g.current,o=()=>{e.dispose(),d.current(g.current)},u=i?"enter":"leave",l=(0,f.k)(),c=void 0!==o?(r={called:!1},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!r.called)return r.called=!0,o(...t)}):()=>{}
1,"enter"===u&&(t.removeAttribute("hidden"),t.style.display=""),v=(0,h.E)(u,{enter:()=>n.enter,leave:()=>n.leave}),y=(0,h.E)(u,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),_=(0,h.E)(u,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom}),m(t,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),p(t,...n.base,...v,..._),l.nextFrame(()=>{m(t,...n.base,...v,..._),p(t,...n.base,...v,...y),function(e,t){let r=(0,f.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:a}=getComputedStyle(e),[i,s]=[n,a].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),o=i+s;if(0!==o){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},o),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(t,()=>(m(t,...n.base,...v),p(t,...n.base,...n.entered),c()))}),l.dispose)),e.dispose}},[n])}
1({immediate:ee,container:$,classes:J,direction:et,onStart:(0,l.E)(e=>{es.current=!0,ei.onStart($,e,en)}),onStop:(0,l.E)(e=>{es.current=!1,ei.onStop($,e,ea),"leave"!==e||E(ei)||(Y("hidden"),G($))})});let eo=D;return ee?eo={...eo,className:(0,g.A)(D.className,...J.current.enter,...J.current.enterFrom)}:es.current&&(eo.className=(0,g.A)(D.className,null==(n=$.current)?void 0:n.className),""===eo.className&&delete eo.className),a.createElement(k.Provider,{value:ei},a.createElement(v.up,{value:(0,h.E)(W,{visible:v.ZM.Open,hidden:v.ZM.Closed})|er.flags},(0,y.sY)({ourProps:{ref:z},theirProps:eo,defaultTag:"div",features:A,visible:"visible"===W,name:"Transition.Child"})))}),P=(0,y.yV)(function(e,t){let r=null!==(0,a.useContext)(b),n=null!==(0,v.oJ)();return a.createElement(a.Fragment,null,!r&&n?a.createElement(S,{ref:t,...e}):a.createElement(N,{ref:t,...e}))}),R=Object.assign(S,{Child:P,Root:S})},945:function(e,t,r){r.d(t,{G:function(){return i}});var n=r(2265),a=r(5473);function i(){let[e]=(0,n.useState)(a.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},6802:function(e,t,r){r.d(t,{O:function(){return i}});var n=r(2265),a=r(1948);function i(e,t,r,i){let s=(0,a.E)(r);(0,n.useEffect)(()=>{function r(e){s.current(e)}return(e=null!=e?e:window).addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)},[e,t,i])}},8036:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(2265),a=r(1948);let i=function(e){let t=(0,a.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},7684:function(e,t,r){r.d(t,{M:function(){return u}});var n,a=r(2265),i=r(1424),s=r(4518),o=r(2238);let u=null!=(n=a.useId)?n:function(){let e=(0,o.H)(),[t,r]=a.useState(e?()=>i.O.nextId():null);return(0,s.e)(()=>{null===t&&r(i.O.nextId())},[t]),null!=t?""+t:void 0}},3394:function(e,t,r){r.d(t,{t:function(){return i}});var n=r(2265),a=r(4518);function i(){let e=(0,n.useRef)(!1);return(0,a.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},4518:function(e,t,r){r.d(t,{e:function(){return i}});var n=r(2265),a=r(1424);let i=(e,t)=>{a.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},1948:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(2265),a=r(4518);function i(e){let t=(0,n.useRef)(e);return(0,a.e)(()=>{t.current=e},[e]),t}},9417:function(e,t,r){r.d(t,{L:function(){return s}});var n=r(2265),a=r(6822),i=r(8036);function s(e){let t=(0,i.z)(e),r=(0,n.useRef)(!1);(0,n.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,a.Y)(()=>{r.current&&t()})}),[t])}},2539:function(e,t,r){r.d(t,{O:function(){return l}});var n=r(2265),a=r(7105),i=r(2108),s=r(1948);function o(e,t,r){let a=(0,s.E)(t);(0,n.useEffect)(()=>{function t(e){a.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var u=r(3141);function l(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,n.useRef)(!1);function l(r,n){if(!s.current||r.defaultPrevented)return;let i=n(r);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||r.composed&&r.composedPath().includes(e))return}return(0,a.sP)(i,a.tJ.Loose)||-1===i.tabIndex||r.preventDefault(),t(r,i)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{s.current=r})},[r]);let d=(0,n.useRef)(null);o("pointerdown",e=>{var t,r;s.current&&(d.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("mousedown",e=>{var t,r;s.current&&(d.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("click",e=>{(0,i.tq)()||d.current&&(l(e,()=>d.current),d.current=null)},!0),o("touchend",e=>l(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,u.s)("blur",e=>l(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},48:function(e,t,r){r.d(t,{i:function(){return i}});var n=r(2265),a=r(293);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>(0,a.r)(...t),[...t])}},8851:function(e,t,r){r.d(t,{H:function(){return u},v:function(){return o}});var n=r(2265),a=r(8198),i=r(8036),s=r(48);function o(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=(0,n.useRef)(null!=(e=null==o?void 0:o.current)?e:null),l=(0,s.i)(u),d=(0,i.z)(()=>{var e,n,a;let i=[];for(let e of t)null!==e&&(e instanceof HTMLElement?i.push(e):"current"in e&&e.current instanceof HTMLElement&&i.push(e.current));if(null!=r&&r.current)for(let e of r.current)i.push(e);for(let t of null!=(e=null==l?void 0:l.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(u.current)||t.contains(null==(a=null==(n=u.current)?void 0:n.getRootNode())?void 0:a.host)||i.some(e=>t.contains(e))||i.push(t));return i});
1return{resolveContainers:d,contains:(0,i.z)(e=>d().some(t=>t.contains(e))),mainTreeNodeRef:u,MainTreeNode:(0,n.useMemo)(()=>function(){return null!=o?null:n.createElement(a._,{features:a.A.Hidden,ref:u})},[u,o])}}function u(){let e=(0,n.useRef)(null);return{mainTreeNodeRef:e,MainTreeNode:(0,n.useMemo)(()=>function(){return n.createElement(a._,{features:a.A.Hidden,ref:e})},[e])}}},2238:function(e,t,r){r.d(t,{H:function(){return s}});var n,a=r(2265),i=r(1424);function s(){let e;let t=(e="undefined"==typeof document,(0,(n||(n=r.t(a,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[s,o]=a.useState(i.O.isHandoffComplete);return s&&!1===i.O.isHandoffComplete&&o(!1),a.useEffect(()=>{!0!==s&&o(!0)},[s]),a.useEffect(()=>i.O.handoff(),[]),!t&&s}},3689:function(e,t,r){r.d(t,{T:function(){return o},h:function(){return s}});var n=r(2265),a=r(8036);let i=Symbol();function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let s=(0,n.useRef)(t);(0,n.useEffect)(()=>{s.current=t},[t]);let o=(0,a.z)(e=>{for(let t of s.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:o}},8369:function(e,t,r){let n;r.d(t,{N:function(){return s},l:function(){return o}});var a=r(2265),i=r(3141),s=((n=s||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n);function o(){let e=(0,a.useRef)(0);return(0,i.s)("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},3141:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(2265),a=r(1948);function i(e,t,r){let i=(0,a.E)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},8198:function(e,t,r){let n;r.d(t,{A:function(){return i},_:function(){return s}});var a=r(7847),i=((n=i||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let s=(0,a.yV)(function(e,t){var r;let{features:n=1,...i}=e,s={ref:t,"aria-hidden":(2&n)==2||(null!=(r=i["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,a.sY)({ourProps:s,theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})})},7863:function(e,t,r){let n;r.d(t,{ZM:function(){return s},oJ:function(){return o},up:function(){return u}});var a=r(2265);let i=(0,a.createContext)(null);i.displayName="OpenClosedContext";var s=((n=s||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function o(){return(0,a.useContext)(i)}function u(e){let{value:t,children:r}=e;return a.createElement(i.Provider,{value:t},r)}},7988:function(e,t,r){r.d(t,{O:function(){return s},n:function(){return i}});var n=r(2265);let a=(0,n.createContext)(!1);function i(){return(0,n.useContext)(a)}function s(e){return n.createElement(a.Provider,{value:e.force},e.children)}},7634:function(e,t,r){function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},2120:function(e,t,r){r.d(t,{A:function(){return n}});function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}},5473:function(e,t,r){r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,a)=>(e.addEventListener(t,n,a),r.add(()=>e.removeEventListener(t,n,a))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(a))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=setTimeout(...t);return r.add(()=>clearTimeout(a))},microTask(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let i={current:!0};return(0,n.Y)(()=>{i.current&&t[0]()}),r.add(()=>{i.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(6822)},1424:function(e,t,r){r.d(t,{O:function(){return o}});var n=Object.defineProperty,a=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>(a(e,"symbol"!=typeof t?t+"":t,r),r);class s{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"
1:"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let o=new s},7105:function(e,t,r){let n,a,i,s,o;r.d(t,{C5:function(){return y},GO:function(){return p},TO:function(){return c},fE:function(){return f},jA:function(){return _},sP:function(){return v},tJ:function(){return m}});var u=r(4536),l=r(293);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var c=((n=c||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),f=((a=f||{})[a.Error=0]="Error",a[a.Overflow=1]="Overflow",a[a.Success=2]="Success",a[a.Underflow=3]="Underflow",a),h=((i=h||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((s=m||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s);function v(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,l.r)(e))?void 0:t.body)&&(0,u.E)(r,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}var g=((o=g||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function y(e){null==e||e.focus({preventScroll:!0})}function _(e,t){var r,n,a;let{sorted:i=!0,relativeTo:s=null,skipElements:o=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?i?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let i=n.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:p(e);o.length>0&&l.length>1&&(l=l.filter(e=>!o.includes(e))),s=null!=s?s:u.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,l.indexOf(s))-1;if(4&t)return Math.max(0,l.indexOf(s))+1;if(8&t)return l.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,m=l.length,v;do{if(h>=m||h+m<=0)return 0;let e=c+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(v=l[e])||v.focus(f),h+=d}while(v!==u.activeElement);return 6&t&&null!=(a=null==(n=null==(r=v)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&a&&v.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},4536:function(e,t,r){r.d(t,{E:function(){return n}});function n(e,t){for(var r=arguments.length,a=Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];if(e in t){let r=t[e];return"function"==typeof r?r(...a):r}let s=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(s,n),s}},6822:function(e,t,r){r.d(t,{Y:function(){return n}});function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},293:function(e,t,r){r.d(t,{r:function(){return a}});var n=r(1424);function a(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},2108:function(e,t,r){function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function a(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,{gn:function(){return n},tq:function(){return a}})},7847:function(e,t,r){let n,a;r.d(t,{AN:function(){return u},Y2:function(){return f},l4:function(){return l},sY:function(){return d},yV:function(){return m}});var i=r(2265),s=r(2120),o=r(4536),u=((n=u||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),l=((a=l||{})[a.Unmount=0]="Unmount",a[a.Hidden=1]="Hidden",a);function d(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:a,features:i,visible:s=!0,name:u,mergeRefs:l}=e;l=null!=l?l:h;let d=p(r,t);if(s)return c(d,n,a,u,l);let f=null!=i?i:0;if(2&f){let{static:e=!1,...t}=d;if(e)return c(t,n,a,u,l)}if(1&f){let{unmount:e=!0,...t}=d;return(0,o.E)(e?0:1,{0:()=>null,1:()=>c({...t,hidden:!0,style:{display:"none"}},n,a,u,l)})}return c(d,n,a,u,l)}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,{as:o=r,children:u,refName:l="ref",...d}=g(e,["unmount","static"]),c=void 0!==e.ref?{[l]:e.ref}:{},f="function"==typeof u?u(t):u;"className"in d&&d.className&&"function"==typeof d.className&&(d.className=d.className(t));let h={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n);e&&(h["data-headlessui-state"]=r.join(" "))}if(o===i.Fragment&&Object.keys(v(d)).length>0){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(d).map(e=>" - ".concat(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=>" - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,s.A)(null==e?void 0:e.className(...r),d.className)}:(0,s.A)(null==e?void 0:e.className,d.className);return(0,i.cloneElement)(f,Object.assign({},p(f.props,v(g(d,["ref"]))),h,c,{ref:a(f.ref,c.ref)},t?{className:t}:{}))}return(0,i.createElement)(o,Object.assign({},g(d,["ref"]),o!==i.Fragment&&c,o!==i.Fragment&&h),f)}function f(){let e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];if(!n.every(e=>null==e))return e.current=n,t}}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},a={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=a[t]||(a[t]=[]),a[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(a).map(e=>[e,void 0])));for(let e in a)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(let r of a[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},1442:function(e,t,r){var n=r(2265);let a=n.forwardRef(function(e,t){let{title:r,titleId:a,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},i),r?n.createElement("title",{id:a},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=a},301:function(e,t,r){var n=r(2265);let a=n.forwardRef(function(e,t){let{title:r,titleId:a,...i}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":a},i),r?n.createElement("title",{id:a},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=a},7119:function(e,t,r){let n;r.d(t,{Km:function(){return eZ},Ry:function(){return eR},Z_:function(){return eP}}),(d=c||(c={})).assertEqual=e=>{},d.assertIs=function(e){},d.assertNever=function(e){throw Error()},d.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},d.getValidEnumValues=e=>{let t=d.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return d.objectValues(r)},d.objectValues=e=>d.objectKeys(e).map(function(t){return e[t]}),d.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},d.find=(e,t)=>{for(let r of e)if(t(r))return r},d.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,d.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},d.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(f||(f={})).mergeShapes=(e,t)=>({...e,...t});let a=c.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return a.undefined;case"string":return a.string;case"number":return Number.isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}}
1,s=c.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 o 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]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(n);else if("invalid_return_type"===a.code)n(a.returnTypeError);else if("invalid_arguments"===a.code)n(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,n=0;for(;n<a.path.length;){let r=a.path[n];n===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,c.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);var u,l,d,c,f,h,p,m=(e,t)=>{let r;switch(e.code){case s.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,c.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:r=`Unrecognized key(s) in object: ${c.joinValues(e.keys,", ")}`;break;case s.invalid_union:r="Invalid input";break;case s.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${c.joinValues(e.options)}`;break;case s.invalid_enum_value:r=`Invalid enum value. Expected ${c.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:r="Invalid function arguments";break;case s.invalid_return_type:r="Invalid function return type";break;case s.invalid_date:r="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:c.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:r="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}`:"bigint"===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 s.too_big:r="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 s.custom:r="Invalid input";break;case s.invalid_intersection_types:r="Intersection results could not be merged";break;case s.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:r="Number must be finite";break;default:r=t.defaultError,c.assertNever(e)}return{message:r}};(u=h||(h={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},u.toString=e=>"string"==typeof e?e:e?.message;let v=e=>{let{data:t,path:r,errorMaps:n,issueData:a}=e,i=[...r,...a.path||[]],s={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...a,path:i,message:o}};function g(e,t){let r=v({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,m,m==m?void 0:m].filter(e=>!!e)});e.common.issues.push(r)}class y{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return _;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return y.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:a}=n;
vendor: 5,803 bytes, line 1
1if("aborted"===t.status||"aborted"===a.status)return _;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==a.value||n.alwaysSet)&&(r[t.value]=a.value)}return{status:e.value,value:r}}}let _=Object.freeze({status:"aborted"}),b=e=>({status:"dirty",value:e}),w=e=>({status:"valid",value:e}),k=e=>"aborted"===e.status,E=e=>"dirty"===e.status,x=e=>"valid"===e.status,T=e=>"undefined"!=typeof Promise&&e instanceof Promise;class O{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let C=(e,t)=>{if(x(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function A(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??a.defaultError}:void 0===a.data?{message:i??n??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:i??r??a.defaultError}},description:a}}class S{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new y,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(T(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parseSync({data:e,path:r.path,parent:r});return C(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return x(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>x(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r});return C(r,await (T(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let a=e(t),i=()=>n.addIssue({code:s.custom,...r(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(i(),!1)):!!a||(i(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ek({schema:this,typeName:p.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 eE.create(this,this._def)}nullable(){return ex.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ei.create(this)}promise(){return ew.create(this,this._def)}or(e){return eo.create([this,e],this._def)}and(e){return ed.create(this,e,this._def)}transform(e){return new ek({...A(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eT({...A(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:p.ZodDefault})}brand(){return new eA({typeName:p.ZodBranded,type:this,...A(this._def)})}catch(e){return new eO({...A(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:p.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eS.create(this,e)}readonly(){return eN.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let N=/^c[^\s-]{8,}
vendor: 26,278 bytes, line 1
1$/i,P=/^[0-9a-z]+$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Z=/^[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,L=/^[a-z0-9_-]{21}$/i,j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,F=/^[-+]?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)?)??$/,M=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,I=/^(?:(?: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])$/,D=/^(?:(?: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])$/,$=/^(([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]))$/,z=/^(([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])$/,V=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,H=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,U="((\\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])))",B=RegExp(`^${U}$`);function W(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class Y extends S{_parse(e){var t,r,i,o;let u;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==a.string){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.string,received:t.parsedType}),_}let l=new y;for(let a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(g(u=this._getOrReturnCtx(e,u),{code:s.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),l.dirty());else if("max"===a.kind)e.data.length>a.value&&(g(u=this._getOrReturnCtx(e,u),{code:s.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),l.dirty());else if("length"===a.kind){let t=e.data.length>a.value,r=e.data.length<a.value;(t||r)&&(u=this._getOrReturnCtx(e,u),t?g(u,{code:s.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&g(u,{code:s.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),l.dirty())}else if("email"===a.kind)M.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"email",code:s.invalid_string,message:a.message}),l.dirty());else if("emoji"===a.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"emoji",code:s.invalid_string,message:a.message}),l.dirty());else if("uuid"===a.kind)Z.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"uuid",code:s.invalid_string,message:a.message}),l.dirty());else if("nanoid"===a.kind)L.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"nanoid",code:s.invalid_string,message:a.message}),l.dirty());else if("cuid"===a.kind)N.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"cuid",code:s.invalid_string,message:a.message}),l.dirty());else if("cuid2"===a.kind)P.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"cuid2",code:s.invalid_string,message:a.message}),l.dirty());else if("ulid"===a.kind)R.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"ulid",code:s.invalid_string,message:a.message}),l.dirty());else if("url"===a.kind)try{new URL(e.data)}catch{g(u=this._getOrReturnCtx(e,u),{validation:"url",code:s.invalid_string,message:a.message}),l.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"regex",code:s.invalid_string,message:a.message}),l.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),l.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:{startsWith:a.value},message:a.message}),l.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:{endsWith:a.value},message:a.message}),l.dirty()):"datetime"===a.kind?(function(e){let t=`${U}T${W(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(a).test(e.data)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:"datetime",message:a.message}),l.dirty()):"date"===a.kind?B.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:"date",message:a.message}),l.dirty()):"time"===a.kind?RegExp(`^${W(a)}$`).test(e.data)||(g(u=this._getOrReturnCtx(e,u),{code:s.invalid_string,validation:"time",message:a.message}),l.dirty()):"duration"===a.kind?F.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"duration",code:s.invalid_string,message:a.message}),l.dirty()):"ip"===a.kind?(t=e.data,("v4"===(r=a.version)||!r)&&I.test(t)||("v6"===r||!r)&&$.test(t)||(g(u=this._getOrReturnCtx(e,u),{validation:"ip",code:s.invalid_string,message:a.message}),l.dirty())):"jwt"===a.kind?!function(e,t){if(!j.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));if("object"!=typeof a||null===a||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)return!1;return!0}catch{return!1}}(e.data,a.alg)&&(g(u=this._getOrReturnCtx(e,u),{validation:"jwt",code:s.invalid_string,message:a.message}),l.dirty()):"cidr"===a.kind?(i=e.data,("v4"===(o=a.version)||!o)&&D.test(i)||("v6"===o||!o)&&z.test(i)||(g(u=this._getOrReturnCtx(e,u),{validation:"cidr",code:s.invalid_string,message:a.message}),l.dirty())):"base64"===a.kind?V.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"base64",code:s.invalid_string,message:a.message}),l.dirty()):"base64url"===a.kind?H.test(e.data)||(g(u=this._getOrReturnCtx(e,u),{validation:"base64url",code:s.invalid_string,message:a.message}),l.dirty()):c.assertNever(a);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:s.invalid_string,...h.errToObj(r)})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...h.errToObj(e)})}url(e){return this._addCheck({kind:"url",...h.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...h.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...h.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...h.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...h.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...h.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...h.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...h.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...h.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...h.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...h.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...h.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...h.errToObj(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===e?.precision?null:e?.precision,...h.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...h.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...h.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...h.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...h.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...h.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...h.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...h.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...h.errToObj(t)})}nonempty(e){return this.min(1,h.errToObj(e))}trim(){return new Y({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Y({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Y({...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(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>new Y({checks:[],typeName:p.ZodString,coerce:e?.coerce??!1,...A(e)});class K extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==a.number){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.number,received:t.parsedType}),_}let r=new y;for(let n of this._def.checks)"int"===n.kind?c.isInteger(e.data)||(g(t=this._getOrReturnCtx(e,t),{code:s.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(e.data,n.value)&&(g(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(g(t=this._getOrReturnCtx(e,t),{code:s.not_finite,message:n.message}),r.dirty()):c.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,r,n){return new K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:h.toString(n)}]})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:h.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:h.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:h.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:h.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&c.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}K.create=e=>new K({checks:[],typeName:p.ZodNumber,coerce:e?.coerce||!1,...A(e)});class q extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==a.bigint)return this._getInvalidInput(e);let r=new y;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(g(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):c.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.bigint,received:t.parsedType}),_}gte(e,t){return this.setLimit("min",e,!0,h.toString(t))}gt(e,t){return this.setLimit("min",e,!1,h.toString(t))}lte(e,t){return this.setLimit("max",e,!0,h.toString(t))}lt(e,t){return this.setLimit("max",e,!1,h.toString(t))}setLimit(e,t,r,n){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:h.toString(n)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:h.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:h.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:h.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:h.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:h.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>new q({checks:[],typeName:p.ZodBigInt,coerce:e?.coerce??!1,...A(e)});class G extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==a.boolean){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.boolean,received:t.parsedType}),_}return w(e.data)}}G.create=e=>new G({typeName:p.ZodBoolean,coerce:e?.coerce||!1,...A(e)});class J extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==a.date){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.date,received:t.parsedType}),_}if(Number.isNaN(e.data.getTime()))return g(this._getOrReturnCtx(e),{code:s.invalid_date}),_;let r=new y;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(g(t=this._getOrReturnCtx(e,t),{code:s.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):c.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:h.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:h.toString(t)})}get minDate(){let e=null;for(let 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(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}J.create=e=>new J({checks:[],coerce:e?.coerce||!1,typeName:p.ZodDate,...A(e)});class X extends S{_parse(e){if(this._getType(e)!==a.symbol){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.symbol,received:t.parsedType}),_}return w(e.data)}}X.create=e=>new X({typeName:p.ZodSymbol,...A(e)});class Q extends S{_parse(e){if(this._getType(e)!==a.undefined){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.undefined,received:t.parsedType}),_}return w(e.data)}}Q.create=e=>new Q({typeName:p.ZodUndefined,...A(e)});class ee extends S{_parse(e){if(this._getType(e)!==a.null){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.null,received:t.parsedType}),_}return w(e.data)}}ee.create=e=>new ee({typeName:p.ZodNull,...A(e)});class et extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return w(e.data)}}et.create=e=>new et({typeName:p.ZodAny,...A(e)});class er extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return w(e.data)}}er.create=e=>new er({typeName:p.ZodUnknown,...A(e)});class en extends S{_parse(e){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.never,received:t.parsedType}),_}}en.create=e=>new en({typeName:p.ZodNever,...A(e)});class ea extends S{_parse(e){if(this._getType(e)!==a.undefined){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.void,received:t.parsedType}),_}return w(e.data)}}ea.create=e=>new ea({typeName:p.ZodVoid,...A(e)});class ei extends S{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==a.array)return g(t,{code:s.invalid_type,expected:a.array,received:t.parsedType}),_;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,a=t.data.length<n.exactLength.value;(e||a)&&(g(t,{code:e?s.too_big:s.too_small,minimum:a?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(g(t,{code:s.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(g(t,{code:s.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new O(t,e,t.path,r)))).then(e=>y.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new O(t,e,t.path,r)));return y.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new ei({...this._def,minLength:{value:e,message:h.toString(t)}})}max(e,t){return new ei({...this._def,maxLength:{value:e,message:h.toString(t)}})}length(e,t){return new ei({...this._def,exactLength:{value:e,message:h.toString(t)}})}nonempty(e){return this.min(1,e)}}ei.create=(e,t)=>new ei({type:e,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...A(t)});class es extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=c.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==a.object){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.object,received:t.parsedType}),_}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof en&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let u=[];for(let e of i){let t=n[e],a=r.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new O(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof en){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)u.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(g(r,{code:s.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new O(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>y.mergeObjectSync(t,e)):y.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return h.errToObj,new es({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:h.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new es({...this._def,unknownKeys:"strip"})}passthrough(){return new es({...this._def,unknownKeys:"passthrough"})}extend(e){return new es({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new es({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new es({...this._def,catchall:e})}pick(e){let t={};for(let r of c.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new es({...this._def,shape:()=>t})}omit(e){let t={};for(let r of c.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new es({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof es){let r={};for(let n in t.shape){let a=t.shape[n];r[n]=eE.create(e(a))}return new es({...t._def,shape:()=>r})}return t instanceof ei?new ei({...t._def,type:e(t.element)}):t instanceof eE?eE.create(e(t.unwrap())):t instanceof ex?ex.create(e(t.unwrap())):t instanceof ec?ec.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};for(let r of c.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new es({...this._def,shape:()=>t})}required(e){let t={};for(let r of c.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eE;)e=e._def.innerType;t[r]=e}return new es({...this._def,shape:()=>t})}keyof(){return ey(c.objectKeys(this.shape))}}es.create=(e,t)=>new es({shape:()=>e,unknownKeys:"strip",catchall:en.create(),typeName:p.ZodObject,...A(t)}),es.strictCreate=(e,t)=>new es({shape:()=>e,unknownKeys:"strict",catchall:en.create(),typeName:p.ZodObject,...A(t)}),es.lazycreate=(e,t)=>new es({shape:e,unknownKeys:"strip",catchall:en.create(),typeName:p.ZodObject,...A(t)});class eo extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o(e.ctx.common.issues));return g(t,{code:s.invalid_union,unionErrors:r}),_});{let e;let n=[];for(let a of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=n.map(e=>new o(e));return g(t,{code:s.invalid_union,unionErrors:a}),_}}get options(){return this._def.options}}eo.create=(e,t)=>
1new eo({options:e,typeName:p.ZodUnion,...A(t)});let eu=e=>{if(e instanceof ev)return eu(e.schema);if(e instanceof ek)return eu(e.innerType());if(e instanceof eg)return[e.value];if(e instanceof e_)return e.options;if(e instanceof eb)return c.objectValues(e.enum);if(e instanceof eT)return eu(e._def.innerType);if(e instanceof Q)return[void 0];else if(e instanceof ee)return[null];else if(e instanceof eE)return[void 0,...eu(e.unwrap())];else if(e instanceof ex)return[null,...eu(e.unwrap())];else if(e instanceof eA)return eu(e.unwrap());else if(e instanceof eN)return eu(e.unwrap());else if(e instanceof eO)return eu(e._def.innerType);else return[]};class el extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return g(t,{code:s.invalid_type,expected:a.object,received:t.parsedType}),_;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);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}):(g(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),_)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eu(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of t){if(n.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);n.set(a,r)}}return new el({typeName:p.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...A(r)})}}class ed extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(k(e)||k(n))return _;let o=function e(t,r){let n=i(t),s=i(r);if(t===r)return{valid:!0,data:t};if(n===a.object&&s===a.object){let n=c.objectKeys(r),a=c.objectKeys(t).filter(e=>-1!==n.indexOf(e)),i={...t,...r};for(let n of a){let a=e(t[n],r[n]);if(!a.valid)return{valid:!1};i[n]=a.data}return{valid:!0,data:i}}if(n===a.array&&s===a.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let a=0;a<t.length;a++){let i=e(t[a],r[a]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===a.date&&s===a.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return o.valid?((E(e)||E(n))&&t.dirty(),{status:t.value,value:o.data}):(g(r,{code:s.invalid_intersection_types}),_)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ed.create=(e,t,r)=>new ed({left:e,right:t,typeName:p.ZodIntersection,...A(r)});class ec extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return g(r,{code:s.invalid_type,expected:a.array,received:r.parsedType}),_;if(r.data.length<this._def.items.length)return g(r,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_;!this._def.rest&&r.data.length>this._def.items.length&&(g(r,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new O(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>y.mergeArray(t,e)):y.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ec({...this._def,rest:e})}}ec.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ec({items:e,typeName:p.ZodTuple,rest:null,...A(t)})};class ef extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return g(r,{code:s.invalid_type,expected:a.object,received:r.parsedType}),_;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new O(r,e,r.path,e)),value:o._parse(new O(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?y.mergeObjectAsync(t,n):y.mergeObjectSync(t,n)}
1get element(){return this._def.valueType}static create(e,t,r){return new ef(t instanceof S?{keyType:e,valueType:t,typeName:p.ZodRecord,...A(r)}:{keyType:Y.create(),valueType:e,typeName:p.ZodRecord,...A(t)})}}class eh extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return g(r,{code:s.invalid_type,expected:a.map,received:r.parsedType}),_;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new O(r,e,r.path,[a,"key"])),value:i._parse(new O(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,a=await r.value;if("aborted"===n.status||"aborted"===a.status)return _;("dirty"===n.status||"dirty"===a.status)&&t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,a=r.value;if("aborted"===n.status||"aborted"===a.status)return _;("dirty"===n.status||"dirty"===a.status)&&t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}}}eh.create=(e,t,r)=>new eh({valueType:t,keyType:e,typeName:p.ZodMap,...A(r)});class ep extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return g(r,{code:s.invalid_type,expected:a.set,received:r.parsedType}),_;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(g(r,{code:s.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(g(r,{code:s.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return _;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let u=[...r.data.values()].map((e,t)=>i._parse(new O(r,e,r.path,t)));return r.common.async?Promise.all(u).then(e=>o(e)):o(u)}min(e,t){return new ep({...this._def,minSize:{value:e,message:h.toString(t)}})}max(e,t){return new ep({...this._def,maxSize:{value:e,message:h.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ep.create=(e,t)=>new ep({valueType:e,minSize:null,maxSize:null,typeName:p.ZodSet,...A(t)});class em extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return g(t,{code:s.invalid_type,expected:a.function,received:t.parsedType}),_;function r(e,r){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,m,m].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:r}})}function n(e,r){return v({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,m,m].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof ew){let e=this;return w(async function(...t){let a=new o([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(u,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw a.addIssue(n(l,e)),a})})}{let e=this;return w(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new o([r(t,a.error)]);let s=Reflect.apply(u,this,a.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new o([n(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new em({...this._def,args:ec.create(e).rest(er.create())})}returns(e){return new em({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new em({args:e||ec.create([]).rest(er.create()),returns:t||er.create(),typeName:p.ZodFunction,...A(r)})}}class ev extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ev.create=(e,t)=>
1new ev({getter:e,typeName:p.ZodLazy,...A(t)});class eg extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return g(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),_}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ey(e,t){return new e_({values:e,typeName:p.ZodEnum,...A(t)})}eg.create=(e,t)=>new eg({value:e,typeName:p.ZodLiteral,...A(t)});class e_ extends S{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return g(t,{expected:c.joinValues(r),received:t.parsedType,code:s.invalid_type}),_}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return g(t,{received:t.data,code:s.invalid_enum_value,options:r}),_}return w(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return e_.create(e,{...this._def,...t})}exclude(e,t=this._def){return e_.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}e_.create=ey;class eb extends S{_parse(e){let t=c.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=c.objectValues(t);return g(r,{expected:c.joinValues(e),received:r.parsedType,code:s.invalid_type}),_}if(this._cache||(this._cache=new Set(c.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=c.objectValues(t);return g(r,{received:r.data,code:s.invalid_enum_value,options:e}),_}return w(e.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:p.ZodNativeEnum,...A(t)});class ew extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==a.promise&&!1===t.common.async?(g(t,{code:s.invalid_type,expected:a.promise,received:t.parsedType}),_):w((t.parsedType===a.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ew.create=(e,t)=>new ew({type:e,typeName:p.ZodPromise,...A(t)});class ek extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:e=>{g(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===n.type){let e=n.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return _;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?_:"dirty"===n.status||"dirty"===t.value?b(n.value):n});{if("aborted"===t.value)return _;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?_:"dirty"===n.status||"dirty"===t.value?b(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?_:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?_:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>x(e)?Promise.resolve(n.transform(e.value,a)).then(e=>({status:t.value,value:e})):_);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!x(e))return _;let i=n.transform(e.value,a);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}c.assertNever(n)}}ek.create=(e,t,r)=>new ek({schema:e,typeName:p.ZodEffects,effect:t,...A(r)}),ek.createWithPreprocess=(e,t,r)=>new ek({schema:t,effect:{type:"preprocess",transform:e},typeName:p.ZodEffects,...A(r)});class eE extends S{_parse(e){return this._getType(e)===a.undefined?w(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eE.create=(e,t)=>
1new eE({innerType:e,typeName:p.ZodOptional,...A(t)});class ex extends S{_parse(e){return this._getType(e)===a.null?w(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:p.ZodNullable,...A(t)});class eT extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:p.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...A(t)});class eO extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return T(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:p.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...A(t)});class eC extends S{_parse(e){if(this._getType(e)!==a.nan){let t=this._getOrReturnCtx(e);return g(t,{code:s.invalid_type,expected:a.nan,received:t.parsedType}),_}return{status:"valid",value:e.data}}}eC.create=e=>new eC({typeName:p.ZodNaN,...A(e)}),Symbol("zod_brand");class eA extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eS extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?_:"dirty"===e.status?(t.dirty(),b(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?_:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eS({in:e,out:t,typeName:p.ZodPipeline})}}class eN extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(x(e)&&(e.value=Object.freeze(e.value)),e);return T(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eN.create=(e,t)=>new eN({innerType:e,typeName:p.ZodReadonly,...A(t)}),es.lazycreate,(l=p||(p={})).ZodString="ZodString",l.ZodNumber="ZodNumber",l.ZodNaN="ZodNaN",l.ZodBigInt="ZodBigInt",l.ZodBoolean="ZodBoolean",l.ZodDate="ZodDate",l.ZodSymbol="ZodSymbol",l.ZodUndefined="ZodUndefined",l.ZodNull="ZodNull",l.ZodAny="ZodAny",l.ZodUnknown="ZodUnknown",l.ZodNever="ZodNever",l.ZodVoid="ZodVoid",l.ZodArray="ZodArray",l.ZodObject="ZodObject",l.ZodUnion="ZodUnion",l.ZodDiscriminatedUnion="ZodDiscriminatedUnion",l.ZodIntersection="ZodIntersection",l.ZodTuple="ZodTuple",l.ZodRecord="ZodRecord",l.ZodMap="ZodMap",l.ZodSet="ZodSet",l.ZodFunction="ZodFunction",l.ZodLazy="ZodLazy",l.ZodLiteral="ZodLiteral",l.ZodEnum="ZodEnum",l.ZodEffects="ZodEffects",l.ZodNativeEnum="ZodNativeEnum",l.ZodOptional="ZodOptional",l.ZodNullable="ZodNullable",l.ZodDefault="ZodDefault",l.ZodCatch="ZodCatch",l.ZodPromise="ZodPromise",l.ZodBranded="ZodBranded",l.ZodPipeline="ZodPipeline",l.ZodReadonly="ZodReadonly";let eP=Y.create;K.create,eC.create,q.create,G.create,J.create,X.create,Q.create,ee.create,et.create,er.create,en.create,ea.create,ei.create;let eR=es.create;es.strictCreate,eo.create,el.create,ed.create,ec.create,ef.create,eh.create,ep.create,em.create,ev.create,eg.create;let eZ=e_.create;eb.create,ew.create,ek.create,eE.create,ex.create,ek.createWithPreprocess,eS.create}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.