github-stars-organizer 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/app/THIRD-PARTY-LICENSES.txt +52 -0
  2. package/dist/app/assets/backups-r4Hq-y_s.js +1 -0
  3. package/dist/app/assets/{badge-BI8BnSpx.js → badge-DWmLT6OI.js} +1 -1
  4. package/dist/app/assets/button-C0MQwO-R.js +14 -0
  5. package/dist/app/assets/coerce-D595RIhb.js +1 -0
  6. package/dist/app/assets/{explore-c7E93yLq.js → explore-Cizp4zKW.js} +5 -5
  7. package/dist/app/assets/{history-CwU1iI1t.js → history-OZ9l4TiG.js} +1 -1
  8. package/dist/app/assets/index-BD7Q-Iqo.js +10 -0
  9. package/dist/app/assets/index-DR-cW8P1.css +2 -0
  10. package/dist/app/assets/list._listId-C5TBL1sd.js +2 -0
  11. package/dist/app/assets/list._listId-Cq8rSqKM.js +1 -0
  12. package/dist/app/assets/local-backups-BGSAd5Gu.js +1 -0
  13. package/dist/app/assets/{local-sync-93kiPKY6.js → local-sync-Dd3hEb9I.js} +1 -1
  14. package/dist/app/assets/registry-DZ4hp3Pl.js +4 -0
  15. package/dist/app/assets/routes-C8TmhzRl.js +2 -0
  16. package/dist/app/assets/routes-CXgqVl-F.js +3 -0
  17. package/dist/app/assets/schemas-B0gCwksU.js +39 -0
  18. package/dist/app/assets/{star-DX2rWFRo.js → star-BoN7NVgv.js} +2 -2
  19. package/dist/app/assets/triangle-alert-Cgw2r-Xm.js +1 -0
  20. package/dist/app/index.html +9 -9
  21. package/dist/cli.js +7 -3
  22. package/package.json +1 -1
  23. package/dist/app/assets/backups-bxixTSN9.js +0 -1
  24. package/dist/app/assets/button-j3ddoMPG.js +0 -14
  25. package/dist/app/assets/coerce-CLwOVTKZ.js +0 -1
  26. package/dist/app/assets/download-BE4lcLN2.js +0 -1
  27. package/dist/app/assets/index-B6vy4QhK.css +0 -2
  28. package/dist/app/assets/index-D00n1Vsd.js +0 -10
  29. package/dist/app/assets/list._listId-B_ZPye2o.js +0 -1
  30. package/dist/app/assets/list._listId-DQE4KiA8.js +0 -2
  31. package/dist/app/assets/registry-CFdu_QCX.js +0 -4
  32. package/dist/app/assets/routes-DkgX4EzU.js +0 -1
  33. package/dist/app/assets/routes-DnP52mv4.js +0 -2
  34. package/dist/app/assets/schemas-D4rG9WO5.js +0 -39
  35. /package/dist/app/assets/{esm-hHQKpih6.js → esm-Cyyp48ez.js} +0 -0
@@ -1,39 +0,0 @@
1
- import{$ as e,A as t,C as n,D as r,E as i,L as a,M as o,N as s,P as c,Q as l,R as u,X as d,Z as f,_ as p,a as m,c as h,d as g,et as _,g as v,h as y,j as b,k as x,l as S,p as C,rt as w,s as T,u as ee,v as E,y as te}from"./button-j3ddoMPG.js";var ne=u(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),D=w(_()),re=0;function ie(e,t=`mui`){let[n,r]=D.useState(e),i=e||n;return D.useEffect(()=>{n??(re+=1,r(`${t}-${re}`))},[n,t]),i}var O=v.useId;function k(e,t){if(O!==void 0){let n=O();return e??(t?`${t}-${n}`:n)}return ie(e,t)}function A(e){return k(e,`base-ui`)}function j(e){return e?.ownerDocument||document}var M=typeof navigator<`u`,ae=de(),oe=I(),N=fe(),se=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),P=ae.platform===`MacIntel`&&ae.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(ae.platform);M&&/firefox/i.test(N);var ce=M&&/apple/i.test(navigator.vendor);M&&/Edg/i.test(N);var F=M&&/android/i.test(oe)||/android/i.test(N),le=M&&oe.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,ue=N.includes(`jsdom/`);function de(){if(!M)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function fe(){if(!M)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function I(){if(!M)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var L=l(),pe=`data-base-ui-focusable`,R=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,me=`ArrowLeft`,he=`ArrowRight`,ge=`ArrowUp`,_e=`ArrowDown`;function ve(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&c(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ye(e){return`composedPath`in e?e.composedPath()[0]:e.target}function be(e,t){if(!x(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(z(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function xe(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Se(e){return e.matches(`html,body`)}function Ce(e){return t(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function we(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${R}`)!=null}function Te(e){return e?e.getAttribute(`role`)===`combobox`&&Ce(e):!1}function Ee(e){if(!e||ue)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function De(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Oe(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Oe(e,t.id,n)])}function ke(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Ae(e){e.preventDefault(),e.stopPropagation()}function je(e){return`nativeEvent`in e}function Me(e){return e.pointerType===``&&e.isTrusted?!0:F&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ne(e){return ue?!1:!F&&e.width===0&&e.height===0||F&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pe(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Fe(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Ie=[`top`,`right`,`bottom`,`left`],Le=Math.min,Re=Math.max,ze=Math.round,Be=Math.floor,Ve=e=>({x:e,y:e}),He={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ue(e,t,n){return Re(e,Le(t,n))}function We(e,t){return typeof e==`function`?e(t):e}function Ge(e){return e.split(`-`)[0]}function Ke(e){return e.split(`-`)[1]}function qe(e){return e===`x`?`y`:`x`}function Je(e){return e===`y`?`height`:`width`}function Ye(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Xe(e){return qe(Ye(e))}function Ze(e,t,n){n===void 0&&(n=!1);let r=Ke(e),i=Xe(e),a=Je(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ot(o)),[o,ot(o)]}function Qe(e){let t=ot(e);return[$e(e),t,$e(t)]}function $e(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var et=[`left`,`right`],tt=[`right`,`left`],nt=[`top`,`bottom`],rt=[`bottom`,`top`];function it(e,t,n){switch(e){case`top`:case`bottom`:return n?t?tt:et:t?et:tt;case`left`:case`right`:return t?nt:rt;default:return[]}}function at(e,t,n,r){let i=Ke(e),a=it(Ge(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map($e)))),a}function ot(e){let t=Ge(e);return He[t]+e.slice(t.length)}function st(e){return{top:0,right:0,bottom:0,left:0,...e}}function ct(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:st(e)}function lt(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ut(e,t,n){return Math.floor(e/t)!==n}function dt(e,t){return t<0||t>=e.length}function ft(e,t){return B(e.current,{disabledIndices:t})}function pt(e,t){return B(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function B(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&vt(e,a,r));return a}function mt(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!vt(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Be(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!vt(e,r,s))return r}};d&&Ae(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=B(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=B(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}dt(e,f)&&(f=u)}if(n===`both`){let n=Be(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Ae(t),u%o===o-1?r&&(f=B(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=B(e,{startingIndex:u,disabledIndices:s}),r&&ut(f,o,n)&&(f=B(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),ut(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Ae(t),u%o===0?r&&(f=B(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=B(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&ut(f,o,n)&&(f=B(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),ut(f,o,n)&&(f=u));let c=Be(l/o)===n;dt(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:B(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function ht(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function gt(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function _t(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function vt(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?bt(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function yt(e){return e.visibility===`hidden`||e.visibility===`collapse`}function bt(e,t=e?te(e):null){return!e||!e.isConnected||!t||yt(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var xt=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function St(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return c(n)?n.host:null}function Ct(e){for(let t of Array.from(e.children))if(n(t)===`summary`)return t;return null}function wt(e,t){let n=Ct(t);return!!n&&(e===n||z(n,e))}function Tt(e){let t=e?n(e):``;return e!=null&&e.matches(xt)&&(t!==`summary`||e.parentElement!=null&&n(e.parentElement)===`details`&&Ct(e.parentElement)===e)&&(t!==`details`||Ct(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Et(e){if(!Tt(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=St(t)){let r=t!==e,i=n(t)===`slot`;if(t.hasAttribute(`inert`)||r&&n(t)===`details`&&!t.open&&!wt(e,t)||t.hasAttribute(`hidden`)||!i&&!Dt(t,r))return!1}return!0}function Dt(e,t){let n=te(e);return t?n.display!==`none`:bt(e,n)}function Ot(e){let r=e.tabIndex;if(r<0){let r=n(e);if(r===`details`||r===`audio`||r===`video`||t(e)&&e.isContentEditable)return 0}return r}function kt(e){if(n(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function At(e,t){let n=kt(e);if(!n)return!0;let r=t.find(e=>{let t=kt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=kt(e);return t?.name===n.name&&t.form===n.form})===n}function jt(e){if(t(e)&&n(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return t(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Mt(e,t){jt(e).forEach(e=>{Tt(e)&&t.push(e),Mt(e,t)})}function Nt(e,n,r){jt(e).forEach(e=>{t(e)&&e.matches(n)&&r.push(e),Nt(e,n,r)})}function Pt(e){return Et(e)&&Ot(e)>=0}function Ft(e){let t=[];return Mt(e,t),t.filter(Et)}function It(e){let t=Ft(e);return t.filter(e=>Ot(e)>=0&&At(e,t))}function Lt(e,t){let n=It(e),r=n.length;if(r===0)return;let i=ve(j(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Rt(e){return Lt(j(e).body,1)||e}function zt(e){return Lt(j(e).body,-1)||e}function Bt(e,t){if(!e)return null;let n=It(j(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Vt(e){return Bt(e,1)}function Ht(e){return Bt(e,-1)}function Ut(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!z(n,r)}function Wt(e){It(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Gt(e){let t=[];Nt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Kt=[];function qt(e){D.useEffect(e,Kt)}var Jt=0,Yt=class e{static create(){return new e}currentId=Jt;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Jt,t()},e)}isStarted(){return this.currentId!==Jt}clear=()=>{this.currentId!==Jt&&(clearTimeout(this.currentId),this.currentId=Jt)};disposeEffect=()=>this.clear};function Xt(){let e=E(Yt.create).current;return qt(e.disposeEffect),e}var Zt=null;globalThis.requestAnimationFrame;var Qt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},$t=class e{static create(){return new e}static request(e){return Qt.request(e)}static cancel(e){return Qt.cancel(e)}currentId=Zt;request(e){this.cancel(),this.currentId=Qt.request(()=>{this.currentId=Zt,e()})}cancel=()=>{this.currentId!==Zt&&(Qt.cancel(this.currentId),this.currentId=Zt)};disposeEffect=()=>this.cancel};function en(){let e=E($t.create).current;return qt(e.disposeEffect),e}var tn=w(e());function nn(e){return e==null?e:`current`in e?e.current:e}var rn=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),an={[rn.startingStyle]:``},on={[rn.endingStyle]:``},sn={transitionStatus(e){return e===`starting`?an:e===`ending`?on:null}},cn=f(),ln=d();function un(e,t=!1,n=!0){let r=en();return p((i,a=null)=>{r.cancel();let o=nn(e);if(o==null)return;let s=o,c=()=>{tn.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=rn.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function dn(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=p(i),o=un(r,n,!1);D.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function fn(e,t=!1,n=!1){let[r,i]=D.useState(e&&t?`idle`:void 0),[a,o]=D.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),y(()=>{if(!e&&a&&r!==`ending`&&n){let e=$t.request(()=>{i(`ending`)});return()=>{$t.cancel(e)}}},[e,a,r,n]),y(()=>{if(!e||t)return;let n=$t.request(()=>{i(void 0)});return()=>{$t.cancel(n)}},[t,e]),y(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=$t.request(()=>{i(`idle`)});return()=>{$t.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var pn=`none`,mn=`trigger-press`,hn=`trigger-hover`,gn=`trigger-focus`,_n=`outside-press`,vn=`item-press`,yn=`close-press`,bn=`focus-out`,xn=`escape-key`,Sn=`list-navigation`,Cn=`cancel-open`,wn=`sibling-open`,Tn=`imperative-action`;function En(e,t,n,r){let i=!1,a=!1,o=r??T;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var Dn=D.createContext(void 0);function On(e){let t=D.useContext(Dn);if(e===!1&&t===void 0)throw Error(C(27));return t}var kn=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=rn.startingStyle]=`startingStyle`,e[e.endingStyle=rn.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),An=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),jn={[An.popupOpen]:``},Mn={[An.popupOpen]:``,[An.pressed]:``},Nn={[kn.open]:``},Pn={[kn.closed]:``},Fn={[kn.anchorHidden]:``},In={open(e){return e?jn:null}},Ln={open(e){return e?Mn:null}},Rn={open(e){return e?Nn:Pn},anchorHidden(e){return e?Fn:null}},zn={...Rn,...sn},Bn=D.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=On(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return m(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:zn,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Vn=D.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{store:c}=On(),l=c.useState(`open`);function u(e){l&&c.setOpen(!1,En(yn,e.nativeEvent))}let{getButtonProps:d,buttonRef:f}=g({disabled:i,native:a});return m(`button`,e,{state:{disabled:i},ref:[t,f],props:[{onClick:u},s,d]})}),Hn=D.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=On(),c=A(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),m(`p`,e,{ref:t,props:[{id:c},o]})});function V(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Un(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Wn(e){let t=E(Gn,e).current;return t.next=e,y(t.effect),t}function Gn(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Kn={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},qn={...Kn,position:`fixed`,top:0,left:0},Jn={...Kn,position:`absolute`},Yn=D.forwardRef(function(e,t){let[n,r]=D.useState();y(()=>{ce&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,L.jsx)(`span`,{...e,ref:t,style:qn,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Xn(e){return`data-base-ui-${e}`}var Zn=0;function Qn(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Zn);let a=()=>e?.focus({preventScroll:n});if(i)return a(),h;let o=requestAnimationFrame(a);return Zn=o,()=>{Zn===o&&(cancelAnimationFrame(o),Zn=0)}}var $n={inert:new WeakMap,"aria-hidden":new WeakMap},er=`data-base-ui-inert`,tr={inert:new WeakSet,"aria-hidden":new WeakSet},nr=new WeakMap,rr=0;function ir(e){return tr[e]}function ar(e){return e?c(e)?e.host:ar(e.parentNode):null}var or=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=ar(t);return e.contains(n)?n:null}).filter(e=>e!=null),sr=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},cr=(e,t,r)=>{let i=[],a=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{n(e)!==`script`&&(t.has(e)?a(e):i.push(e))})};return a(e),i};function lr(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=or(t,e),u=i?or(t,a):[],d=new Set(u),f=i?cr(t,sr(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=$n[o],n=ir(o);c=n,s=e;let r=or(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);cr(t,sr(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(nr.get(e)||0)+1;nr.set(e,t),m.push(e),t===1&&e.setAttribute(er,``)}),rr+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(nr.get(e)||0)-1;nr.set(e,t),t||e.removeAttribute(er)}),--rr,rr||($n.inert=new WeakMap,$n[`aria-hidden`]=new WeakMap,tr.inert=new WeakSet,tr[`aria-hidden`]=new WeakSet,nr=new WeakMap)}}function ur(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=j(e[0]).body;return lr(e,o,n,r,{mark:i,markerIgnoreElements:a})}var dr={style:{transition:`none`}},fr=`data-base-ui-click-trigger`,pr={fallbackAxisSide:`none`},mr={fallbackAxisSide:`end`},hr={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},gr=D.createContext(null),_r=()=>D.useContext(gr),vr=Xn(`portal`);function yr(e={}){let{ref:t,container:n,componentProps:r=T,elementProps:i}=e,a=k(),s=_r()?.portalNode,[c,l]=D.useState(null),[u,d]=D.useState(null),f=p(e=>{e!==null&&d(e)}),h=D.useRef(null);y(()=>{if(n===null){h.current&&(h.current=null,d(null),l(null));return}if(a==null)return;let e=(n&&(o(n)?n:n.current))??s??document.body;if(e==null){h.current&&(h.current=null,d(null),l(null));return}h.current!==e&&(h.current=e,d(null),l(e))},[n,s,a]);let g=m(`div`,r,{ref:[t,f],props:[{id:a,[vr]:``},i]});return{portalNode:u,portalSubtree:c&&g?tn.createPortal(g,c):null}}var br=D.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=yr({container:r,ref:t,componentProps:e,elementProps:c}),d=D.useRef(null),f=D.useRef(null),p=D.useRef(null),m=D.useRef(null),[h,g]=D.useState(null),_=D.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;D.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Ut(e)&&(e.type===`focusin`?_.current&&=(Gt(l),!1):(Wt(l),_.current=!0))}return Un(V(l,`focusin`,e,!0),V(l,`focusout`,e,!0))},[l,v]),D.useEffect(()=>{!l||y!==!1||(Gt(l),_.current=!1)},[y,l]);let x=D.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,L.jsxs)(D.Fragment,{children:[u,(0,L.jsxs)(gr.Provider,{value:x,children:[b&&l&&(0,L.jsx)(Yn,{"data-type":`outside`,ref:d,onFocus:e=>{Ut(e,l)?p.current?.focus():zt(h?h.domReference:null)?.focus()}}),b&&l&&(0,L.jsx)(`span`,{"aria-owns":l.id,style:hr}),l&&tn.createPortal(n,l),b&&l&&(0,L.jsx)(Yn,{"data-type":`outside`,ref:f,onFocus:e=>{Ut(e,l)?m.current?.focus():(Rt(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,En(`focus-out`,e.nativeEvent)))}})]})]})});function xr(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Sr=class{nodesRef={current:[]};events=xr();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Cr=D.createContext(null),wr=D.createContext(null),Tr=()=>D.useContext(Cr)?.id||null,Er=e=>{let t=D.useContext(wr);return e??t};function Dr(e){let t=k(),n=Er(e),r=Tr();return y(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Or(e){let{children:t,id:n}=e,r=Tr();return(0,L.jsx)(Cr.Provider,{value:D.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function kr(e){let{children:t,externalTree:n}=e,r=E(()=>n??new Sr).current;return(0,L.jsx)(wr.Provider,{value:r,children:t})}function Ar(e,t){let n=r(ye(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var jr=20,Mr=[];function Nr(){Mr=Mr.filter(e=>e.deref()?.isConnected)}function Pr(e){Nr(),e&&n(e)!==`body`&&(Mr.push(new WeakRef(e)),Mr.length>jr&&(Mr=Mr.slice(-jr)))}function Fr(){return Nr(),Mr[Mr.length-1]?.deref()}function Ir(e){return e?Pt(e)?e:It(e)[0]||e:null}function Lr(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Ft(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Pt(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Rr(e){let{context:n,children:r,disabled:i=!1,initialFocus:a=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:m,externalTree:h,getInsideElements:g}=e,_=`rootStore`in n?n.rootStore:n,v=_.useState(`open`),b=_.useState(`domReferenceElement`),x=_.useState(`floatingElement`),{events:S,dataRef:C}=_.context,w=p(()=>C.current.floatingContext?.nodeId),T=a===!1,E=Te(b)&&T,te=D.useRef([`content`]),ne=Wn(a),re=Wn(o),ie=Wn(u),O=Er(h),k=_r(),A=D.useRef(!1),M=D.useRef(!1),ae=D.useRef(!1),oe=D.useRef(null),N=D.useRef(``),P=D.useRef(``),ce=D.useRef(null),F=D.useRef(null),le=ee(ce,m,k?.beforeInsideRef),ue=ee(F,k?.afterInsideRef),de=Xt(),fe=Xt(),I=en(),pe=k!=null,R=De(x),me=p((e=R)=>e?It(e):[]),he=p(()=>g?.().filter(e=>e!=null)??[]);D.useEffect(()=>{if(i||!c)return;function e(e){e.key===`Tab`&&z(R,ve(j(R)))&&me().length===0&&!E&&Ae(e)}return V(j(R),`keydown`,e)},[i,b,R,c,te,E,me]),D.useEffect(()=>{if(i||!v)return;let e=j(R);function t(){ae.current=!1}function n(e){let t=ye(e),n=he();ae.current=!(z(x,t)||z(b,t)||z(k?.portalNode,t)||n.some(e=>e===t||z(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function r(){P.current=`keyboard`}return Un(V(e,`pointerdown`,n,!0),V(e,`pointerup`,t,!0),V(e,`pointercancel`,t,!0),V(e,`keydown`,r,!0))},[i,x,b,R,v,k,he]),D.useEffect(()=>{if(i||!l)return;let e=j(R);function n(){M.current=!0,fe.start(0,()=>{M.current=!1})}function r(e){let t=ye(e);Pt(t)&&(oe.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=ye(n);queueMicrotask(()=>{let o=w(),l=_.context.triggerElements,u=he(),p=r?.hasAttribute(Xn(`focus-guard`))&&[ce.current,F.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,nn(f),nn(d)].includes(r),m=!(z(b,r)||z(x,r)||z(r,x)||z(k?.portalNode,r)||u.some(e=>e===r||z(e,r))||r!=null&&l.hasElement(r)||l.hasMatchingElement(e=>z(e,r))||p||O&&(Oe(O.nodesRef.current,o).find(e=>z(e.context?.elements.floating,r)||z(e.context?.elements.domReference,r))||ke(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,De(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===b&&R&&Lr(R,te),s&&i!==b&&!bt(a)&&ve(e)===e.body){if(t(R)&&(R.focus(),s===`popup`)){I.request(()=>{R.focus()});return}let e=me(),n=oe.current,r=(n&&e.includes(n)?n:null)||e[e.length-1]||R;t(r)&&r.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(E||!c)&&r&&m&&!M.current&&(E||r!==Fr())&&(A.current=!0,_.setOpen(!1,En(bn,n)))})}function o(){ae.current||(C.current.insideReactTree=!0,de.start(0,()=>{C.current.insideReactTree=!1}))}let u=t(b)?b:null;if(!(!x&&!u))return Un(u&&V(u,`focusout`,a),u&&V(u,`pointerdown`,n),x&&V(x,`focusin`,r),x&&V(x,`focusout`,a),x&&k&&V(x,`focusout`,o,!0))},[i,b,x,R,c,O,k,_,l,s,me,E,w,te,C,de,fe,I,d,f,he]),D.useEffect(()=>{if(i||!x||!v)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Xn(`portal`)}]`)||[]),t=(O?ke(O.nodesRef.current,w()):[]).find(e=>Te(e.context?.elements.domReference||null))?.context?.elements.domReference,n=ur([...[x,...e,ce.current,F.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...he()],t,nn(f),nn(d),E?b:null].filter(e=>e!=null),{ariaHidden:c||E,mark:!1}),r=ur([x,...e].filter(e=>e!=null));return()=>{r(),n()}},[v,i,b,x,c,te,k,E,O,w,d,f,he]),y(()=>{if(!v||i||!t(R))return;let e=ve(j(R));queueMicrotask(()=>{let t=ne.current,n=typeof t==`function`?t(ie.current||``):t;if(n===void 0||n===!1||z(R,e))return;let r=null,i=()=>(r??=me(R),r[0]||R),a;a=n===!0||n===null?i():nn(n),a||=i(),Qn(a,{preventScroll:a===R})})},[i,v,R,T,me,ne,ie]),y(()=>{if(i||!R)return;let e=j(R);Pr(ve(e));function n(e){if(e.open||(N.current=Ar(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(Me(e.nativeEvent)||Ne(e.nativeEvent))A.current=!1;else{let e=!1;j(R).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}S.on(`openchange`,n);function r(){let e=re.current,t=typeof e==`function`?e(N.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=b||Fr();return e&&e.isConnected?e:null}let n=b||Fr();return nn(t)||n||null}return()=>{S.off(`openchange`,n);let i=ve(e),a=he(),o=z(x,i)||a.some(e=>e===i||z(e,i))||O&&Oe(O.nodesRef.current,w(),!1).some(e=>z(e.context?.elements.floating,i)),s=re.current,c=r();queueMicrotask(()=>{let n=Ir(c),r=typeof s!=`boolean`;s&&!A.current&&t(n)&&(!(!r&&n!==i&&i!==e.body)||o)&&n.focus({preventScroll:!0}),A.current=!1})}},[i,x,R,re,C,S,O,b,w,he]),y(()=>{if(!se||v||!x)return;let e=ve(j(x));!t(e)||!Ce(e)||z(x,e)&&e.blur()},[v,x]),y(()=>{if(!(i||!k))return k.setFocusManagerState({modal:c,closeOnFocusOut:l,open:v,onOpenChange:_.setOpen,domReference:b}),()=>{k.setFocusManagerState(null)}},[i,k,c,v,_,l,b]),y(()=>{if(!(i||!R))return Lr(R,te),()=>{queueMicrotask(Nr)}},[i,R,te]);let ge=!i&&(c?!E:!0)&&(pe||c);return(0,L.jsxs)(D.Fragment,{children:[ge&&(0,L.jsx)(Yn,{"data-type":`inside`,ref:le,onFocus:e=>{if(c){let e=me();Qn(e[e.length-1])}else k?.portalNode&&(A.current=!1,Ut(e,k.portalNode)?Rt(b)?.focus():nn(f??k.beforeOutsideRef)?.focus())}}),r,ge&&(0,L.jsx)(Yn,{"data-type":`inside`,ref:ue,onFocus:e=>{c?Qn(me()[0]):k?.portalNode&&(l&&(A.current=!0),Ut(e,k.portalNode)?zt(b)?.focus():nn(d??k.afterOutsideRef)?.focus())}})]})}var zr={intentional:`onClick`,sloppy:`onPointerDown`};function Br(){return!1}function Vr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Hr(e,n={}){let r=`rootStore`in e?e.rootStore:e,o=r.useState(`open`),s=r.useState(`floatingElement`),{dataRef:l}=r.context,{enabled:u=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:m=`sloppy`,referencePress:h=Br,referencePressEvent:g=`sloppy`,bubbles:_,externalTree:v}=n,y=Er(v),S=p(typeof f==`function`?f:()=>!1),C=typeof f==`function`?S:f,w=C!==!1,T=p(()=>m),ee=D.useRef(!1),E=D.useRef(!1),ne=D.useRef(!1),{escapeKey:re,outsidePress:ie}=Vr(_),O=D.useRef(null),k=Xt(),A=Xt(),M=p(()=>{A.clear(),l.current.insideReactTree=!1}),ae=D.useRef(!1),oe=D.useRef(``),N=p(h),se=p(e=>{if(!o||!u||!d||e.key!==`Escape`||ae.current)return;let t=l.current.floatingContext?.nodeId,n=y?Oe(y.nodesRef.current,t):[];if(!re&&n.length>0){let e=!0;if(n.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let i=En(xn,je(e)?e.nativeEvent:e);r.setOpen(!1,i),!re&&!i.isPropagationAllowed&&e.stopPropagation()}),P=p(()=>{l.current.insideReactTree=!0,A.start(0,M)});D.useEffect(()=>{if(!o||!u)return;l.current.__escapeKeyBubbles=re,l.current.__outsidePressBubbles=ie;let e=new Yt,n=new Yt;function f(){e.clear(),ae.current=!0}function p(){e.start(a()?5:0,()=>{ae.current=!1})}function m(){ne.current=!0,n.start(0,()=>{ne.current=!1})}function h(){ee.current=!1,E.current=!1}function g(){let e=oe.current,t=e===`pen`||!e?`mouse`:e,n=T(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function _(e){let t=g();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function v(e){let t=l.current.floatingContext?.nodeId,n=y&&Oe(y.nodesRef.current,t).some(t=>xe(e,t.context?.elements.floating));return xe(e,r.select(`floatingElement`))||xe(e,r.select(`domReferenceElement`))||n}function S(e){if(_(e)){M();return}if(l.current.insideReactTree){M();return}let a=ye(e),o=`[${Xn(`inert`)}]`,s=x(a)?a.getRootNode():null,u=Array.from((c(s)?s:j(r.select(`floatingElement`))).querySelectorAll(o)),d=r.context.triggerElements;if(a&&(d.hasElement(a)||d.hasMatchingElement(e=>z(e,a))))return;let f=x(a)?a:null;for(;f&&!b(f);){let e=i(f);if(b(e)||!x(e))break;f=e}if(u.length&&x(a)&&!Se(a)&&!z(a,r.select(`floatingElement`))&&u.every(e=>!z(f,e)))return;if(t(a)&&!(`touches`in e)){let t=b(a),n=te(a),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),s=i&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,c=o&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=s&&e.offsetY>a.clientHeight;if(u||d)return}if(v(e))return;if(g()===`intentional`&&ne.current){n.clear(),ne.current=!1;return}if(typeof C==`function`&&!C(e))return;let p=l.current.floatingContext?.nodeId,m=y?Oe(y.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r.setOpen(!1,En(_n,e)),M()}function D(e){g()!==`sloppy`||e.pointerType===`touch`||!r.select(`open`)||!u||xe(e,r.select(`floatingElement`))||xe(e,r.select(`domReferenceElement`))||S(e)}function A(e){if(g()!==`sloppy`||!r.select(`open`)||!u||xe(e,r.select(`floatingElement`))||xe(e,r.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(O.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}function N(e,t){let n=ye(e);if(!n)return;let r=V(n,e.type,()=>{t(e),r()})}function P(e){oe.current=`touch`,N(e,A)}function ce(e){k.clear(),e.type===`pointerdown`&&(oe.current=e.pointerType),!(e.type===`mousedown`&&O.current&&!O.current.dismissOnMouseDown)&&N(e,e=>{e.type===`pointerdown`?D(e):S(e)})}function F(e){if(!ee.current)return;let t=E.current;if(h(),g()===`intentional`){if(e.type===`pointercancel`){t&&m();return}if(!v(e)){if(t){m();return}typeof C==`function`&&!C(e)||(n.clear(),ne.current=!0,M())}}}function le(e){if(g()!==`sloppy`||!O.current||xe(e,r.select(`floatingElement`))||xe(e,r.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-O.current.startX),i=Math.abs(t.clientY-O.current.startY),a=Math.sqrt(n*n+i*i);a>5&&(O.current.dismissOnTouchEnd=!0),a>10&&(S(e),k.clear(),O.current=null)}function ue(e){N(e,le)}function de(e){g()!==`sloppy`||!O.current||xe(e,r.select(`floatingElement`))||xe(e,r.select(`domReferenceElement`))||(O.current.dismissOnTouchEnd&&S(e),k.clear(),O.current=null)}function fe(e){N(e,de)}let I=j(s),L=Un(d&&Un(V(I,`keydown`,se),V(I,`compositionstart`,f),V(I,`compositionend`,p)),w&&Un(V(I,`click`,ce,!0),V(I,`pointerdown`,ce,!0),V(I,`pointerup`,F,!0),V(I,`pointercancel`,F,!0),V(I,`mousedown`,ce,!0),V(I,`mouseup`,F,!0),V(I,`touchstart`,P,!0),V(I,`touchmove`,ue,!0),V(I,`touchend`,fe,!0)));return()=>{L(),e.clear(),n.clear(),h(),ne.current=!1}},[l,s,d,w,C,o,u,re,ie,se,M,T,y,r,k]),D.useEffect(M,[C,M]);let ce=D.useMemo(()=>({onKeyDown:se,[zr[g]]:e=>{N()&&r.setOpen(!1,En(mn,e.nativeEvent))},...g!==`intentional`&&{onClick(e){N()&&r.setOpen(!1,En(`trigger-press`,e.nativeEvent))}}}),[se,r,g,N]),F=p(e=>{if(!o||!u||e.button!==0)return;let t=ye(e.nativeEvent);z(r.select(`floatingElement`),t)&&(ee.current||(ee.current=!0,E.current=!1))}),le=p(e=>{!o||!u||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&ee.current&&(E.current=!0)}),ue=D.useMemo(()=>({onKeyDown:se,onPointerDown:le,onMouseDown:le,onClickCapture:P,onMouseDownCapture(e){P(),F(e)},onPointerDownCapture(e){P(),F(e)},onMouseUpCapture:P,onTouchEndCapture:P,onTouchMoveCapture:P}),[se,P,F,le]);return D.useMemo(()=>u?{reference:ce,floating:ue,trigger:ce}:{},[u,ce,ue])}var H=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(C(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Ur=[],Wr=void 0;function Gr(){return Wr}function Kr(e){Ur.push(e)}function qr(e){let t=(t,n)=>{let r=E(Yr).current,i;try{Wr=r;for(let e of Ur)e.before(r);i=e(t,n);for(let e of Ur)e.after(r);r.didInitialize=!0}finally{Wr=void 0}return i};return t.displayName=e.displayName||e.name,t}function Jr(e){return D.forwardRef(qr(e))}function Yr(){return{didInitialize:!1}}var Xr=S(19)?$r:ei;function Zr(e,t,n,r,i){return Xr(e,t,n,r,i)}function Qr(e,t,n,r,i){let a=D.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,cn.useSyncExternalStore)(e.subscribe,a,a)}Kr({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,cn.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function $r(e,t,n,r,i){let a=Gr();if(!a)return Qr(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function ei(e,t,n,r,i){return(0,ln.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ti=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Zr(this,e,t,n,r)}},ni=class extends ti{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){D.useDebugValue(e),y(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){D.useDebugValue(e);let n=t!==void 0;y(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return D.useDebugValue(e),Zr(this,this.selectors[e],t,n,r)}useContextCallback(e,t){D.useDebugValue(e);let n=p(t??h);this.context[e]=n}useStateSetter(e){let t=D.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},ri={open:H(e=>e.open),transitionStatus:H(e=>e.transitionStatus),domReferenceElement:H(e=>e.domReferenceElement),referenceElement:H(e=>e.positionReference??e.referenceElement),floatingElement:H(e=>e.floatingElement),floatingId:H(e=>e.floatingId)},ii=class extends ni{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:xr(),nested:n,triggerElements:i},ri),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Fe(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function ai(e,t){let n=D.useRef(null),r=D.useRef(null);return D.useCallback(i=>{if(e!==void 0){if(n.current!==null){let e=n.current,i=r.current,a=t.context.triggerElements.getById(e);i&&a===i&&t.context.triggerElements.delete(e),n.current=null,r.current=null}i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i))}},[t,e])}function oi(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=ai(e,n),o=p(t=>{if(a(t),!t||!n.select(`open`))return;let i=n.select(`activeTriggerId`);if(i===e){n.update({activeTriggerElement:t,...r});return}i??n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return y(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function si(e){let t=e.useState(`open`);y(()=>{if(t&&!e.select(`activeTriggerId`)&&e.context.triggerElements.size===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])}function ci(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=fn(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=p(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return dn({enabled:!t.useState(`preventUnmountingOnClose`),open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}var li=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function ui(){return new ii({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new li,floatingId:``,syncOnly:!1,nested:!1,onOpenChange:void 0})}function di(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ui(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:T,inactiveTriggerProps:T,popupProps:T}}var fi=H(e=>e.triggerIdProp??e.activeTriggerId),pi={open:H(e=>e.openProp??e.open),mounted:H(e=>e.mounted),transitionStatus:H(e=>e.transitionStatus),floatingRootContext:H(e=>e.floatingRootContext),preventUnmountingOnClose:H(e=>e.preventUnmountingOnClose),payload:H(e=>e.payload),activeTriggerId:fi,activeTriggerElement:H(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:H((e,t)=>t!==void 0&&fi(e)===t),isOpenedByTrigger:H((e,t)=>t!==void 0&&fi(e)===t&&e.open),isMountedByTrigger:H((e,t)=>t!==void 0&&fi(e)===t&&e.mounted),triggerProps:H((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:H(e=>e.popupProps),popupElement:H(e=>e.popupElement),positionerElement:H(e=>e.positionerElement)};function mi(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,onOpenChange:r}=e,i=k(),a=Tr()!=null,o=t.useState(`open`),s=t.useState(`activeTriggerElement`),c=t.useState(n?`popupElement`:`positionerElement`),l=t.context.triggerElements,u=E(()=>new ii({open:o,transitionStatus:void 0,referenceElement:s,floatingElement:c,triggerElements:l,onOpenChange:r,floatingId:i,syncOnly:!0,nested:a})).current;return y(()=>{let e={open:o,floatingId:i,referenceElement:s,floatingElement:c};x(s)&&(e.domReferenceElement=s),u.state.positionReference===u.state.referenceElement&&(e.positionReference=s),u.update(e)},[o,i,s,c,u]),u.context.onOpenChange=r,u.context.nested=a,u}function hi(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=D.useCallback(t=>gi(t,e,`reference`),t),o=D.useCallback(t=>gi(t,e,`floating`),n),s=D.useCallback(t=>gi(t,e,`item`),r),c=D.useCallback(t=>gi(t,e,`trigger`),i);return D.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function gi(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[pe]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;o<t.length;o+=1){let s,c=t[o]?.[n];s=typeof c==`function`?e?c(e):null:c,s&&_i(a,s,i,r)}return _i(a,e,i,r),a}function _i(e,t,n,r){for(let i in t){let a=t[i];n&&(i===`active`||i===`selected`)||(i.startsWith(`on`)?(r.has(i)||r.set(i,[]),typeof a==`function`&&(r.get(i)?.push(a),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var vi=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function yi(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingId`),a=n.useState(`domReferenceElement`),o=n.useState(`floatingElement`),{role:s=`dialog`}=t,c=k(),l=a?.id||c,u=D.useMemo(()=>De(o)?.id||i,[o,i]),d=vi.get(s)??s,f=Tr()!=null,p=D.useMemo(()=>d===`tooltip`||s===`label`?T:{"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-expanded":`false`,...d===`listbox`&&{role:`combobox`},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,f,s]),m=D.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-${s===`label`?`labelledby`:`describedby`}`]:r?u:void 0}:{...p,"aria-expanded":r?`true`:`false`,"aria-controls":r?u:void 0,...d===`menu`&&{id:l}},[d,u,r,l,s,p]),h=D.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),g=D.useCallback(({active:e,selected:t})=>{let n={role:`option`,...e&&{id:`${u}-fui-option`}};switch(s){case`select`:case`combobox`:return{...n,"aria-selected":t};default:}return{}},[u,s]);return D.useMemo(()=>({reference:m,floating:h,item:g,trigger:p}),[m,h,p,g])}var bi=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),xi=function(e){return e[e.open=kn.open]=`open`,e[e.closed=kn.closed]=`closed`,e[e.startingStyle=kn.startingStyle]=`startingStyle`,e[e.endingStyle=kn.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Si=D.createContext(void 0);function Ci(){let e=D.useContext(Si);if(e===void 0)throw Error(C(26));return e}var wi=`ArrowUp`,Ti=`ArrowDown`,Ei=`ArrowLeft`,Di=`ArrowRight`,Oi=`Home`,ki=new Set([Ei,Di]),Ai=new Set([wi,Ti]),ji=new Set([...ki,...Ai]);new Set([...ji,Oi,`End`]);var Mi=new Set([wi,Ti,Ei,Di,Oi,`End`]),Ni={...Rn,...sn,nestedDialogOpen(e){return e?{[xi.nestedDialogOpen]:``}:null}},Pi=D.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:a,style:o,...s}=e,{store:c}=On(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),h=c.useState(`mounted`),g=c.useState(`nested`),_=c.useState(`nestedOpenDialogCount`),v=c.useState(`open`),y=c.useState(`openMethod`),b=c.useState(`titleElementId`),x=c.useState(`transitionStatus`),S=c.useState(`role`);Ci(),dn({open:v,ref:c.context.popupRef,onComplete(){v&&c.context.onOpenChangeComplete?.(!0)}});function C(e){return e===`touch`?c.context.popupRef.current:!0}let w=i===void 0?C:i,T=m(`div`,e,{state:{open:v,nested:g,transitionStatus:x,nestedDialogOpen:_>0},props:[f,{"aria-labelledby":b??void 0,"aria-describedby":l??void 0,role:S,tabIndex:-1,hidden:!h,onKeyDown(e){Mi.has(e.key)&&e.stopPropagation()},style:{[bi.nestedDialogs]:_}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:Ni});return(0,L.jsx)(Rr,{context:d,openInteractionType:y,disabled:!h,closeOnFocusOut:!u,initialFocus:w,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:T})});function Fi(e){return S(19)?e:e?`true`:void 0}var Ii=D.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,L.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Li=D.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=On(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,L.jsx)(Si.Provider,{value:n,children:(0,L.jsxs)(br,{ref:t,...r,children:[a&&o===!0&&(0,L.jsx)(Ii,{ref:i.context.internalBackdropRef,inert:Fi(!s)}),e.children]})}):null});function Ri(e){let t=D.useRef(!0);t.current&&(t.current=!1,e())}var zi={},Bi={},Vi=``;function Hi(e){if(typeof document>`u`)return!1;let t=j(e);return r(t).innerWidth-t.documentElement.clientWidth>0}function Ui(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=j(e),n=t.documentElement,r=t.body,i=s(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let c=i.offsetWidth;i.style.overflowY=`hidden`;let l=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,c===l}function Wi(e){let t=j(e),n=t.documentElement,r=t.body,i=s(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Gi(e){let t=j(e),n=t.documentElement,i=t.body,a=r(n),o=0,c=0,l=!1,u=$t.create();if(se&&(a.visualViewport?.scale??1)!==1)return()=>{};function d(){let t=a.getComputedStyle(n),r=a.getComputedStyle(i),u=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;o=n.scrollTop,c=n.scrollLeft,zi={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Vi=n.style.scrollBehavior,Bi={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};let d=n.scrollHeight>n.clientHeight,f=n.scrollWidth>n.clientWidth,p=t.overflowY===`scroll`||r.overflowY===`scroll`,m=t.overflowX===`scroll`||r.overflowX===`scroll`,h=Math.max(0,a.innerWidth-i.clientWidth),g=Math.max(0,a.innerHeight-i.clientHeight),_=parseFloat(r.marginTop)+parseFloat(r.marginBottom),v=parseFloat(r.marginLeft)+parseFloat(r.marginRight),y=s(n)?n:i;if(l=Ui(e),l){n.style.scrollbarGutter=u,y.style.overflowY=`hidden`,y.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:u,overflowY:`hidden`,overflowX:`hidden`}),(d||p)&&(n.style.overflowY=`scroll`),(f||m)&&(n.style.overflowX=`scroll`),Object.assign(i.style,{position:`relative`,height:_||g?`calc(100dvh - ${_+g}px)`:`100dvh`,width:v||h?`calc(100vw - ${v+h}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),i.scrollTop=o,i.scrollLeft=c,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function f(){Object.assign(n.style,zi),Object.assign(i.style,Bi),l||(n.scrollTop=o,n.scrollLeft=c,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Vi)}function p(){f(),u.request(d)}d();let m=V(a,`resize`,p);return()=>{u.cancel(),f(),typeof a.removeEventListener==`function`&&m()}}var Ki=new class{lockCount=0;restore=null;timeoutLock=Yt.create();timeoutUnlock=Yt.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=j(e).documentElement,n=r(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=h;return}let i=P||!Hi(e);this.restore=i?Wi(e):Gi(e)}};function qi(e=!0,t=null){y(()=>{if(e)return Ki.acquire(t)},[e,t])}function Ji(e){let t=D.useRef(``),n=D.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:D.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Yi(e,t){let n=D.useRef(e),r=p(t);y(()=>{n.current!==e&&r(n.current)},[e,r]),y(()=>{n.current=e},[e])}function Xi(e){let[t,n]=D.useState(null),r=p((t,r)=>{e||n(r||(P?`touch`:``))});Yi(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Ji(r);return D.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Zi(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),c=t.useState(`popupElement`),{openMethod:l,triggerProps:u}=Xi(a);si(t);let{forceUnmount:d}=ci(a,t),f=D.useCallback(()=>{t.setOpen(!1,En(Tn))},[t]);D.useImperativeHandle(r,()=>({unmount:d,close:f}),[d,f]);let p=mi({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[m,h]=D.useState(0),[g,_]=D.useState(0),v=m===0,y=yi(p),b=Hr(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=ye(e);if(v&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||z(e,c)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:v});qi(a&&s===!0,c);let{getReferenceProps:x,getFloatingProps:S,getTriggerProps:C}=hi([y,b]);t.useContextCallback(`onNestedDialogOpen`,(e,t)=>{h(e),_(t)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0),_(0)}),D.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(m+1,g+ +!!i),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[i,a,m,g,n]);let w=D.useMemo(()=>x(u),[x,u]),T=D.useMemo(()=>C(u),[C,u]),ee=D.useMemo(()=>S(),[S]);t.useSyncedValues({openMethod:l,activeTriggerProps:w,inactiveTriggerProps:T,popupProps:ee,floatingRootContext:p,nestedOpenDialogCount:m,nestedOpenDrawerCount:g})}var Qi={...pi,modal:H(e=>e.modal),nested:H(e=>e.nested),nestedOpenDialogCount:H(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:H(e=>e.nestedOpenDrawerCount),disablePointerDismissal:H(e=>e.disablePointerDismissal),openMethod:H(e=>e.openMethod),descriptionElementId:H(e=>e.descriptionElementId),titleElementId:H(e=>e.titleElementId),viewportElement:H(e=>e.viewportElement),role:H(e=>e.role)},$i=class e extends ni{constructor(e){super(ea(e),{popupRef:D.createRef(),backdropRef:D.createRef(),internalBackdropRef:D.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new li,onOpenChange:void 0,onOpenChangeComplete:void 0},Qi)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(t,n){let r=E(()=>new e(n)).current;return t??r}};function ea(e={}){return{...di(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}var ta=D.createContext(!1);function na(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=On(!0),p=D.useContext(ta),m=!!f,h=$i.useStore(l?.store,{open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:m});Ri(()=>{n===void 0&&h.state.open===!1&&r===!0&&h.update({open:!0,activeTriggerId:d})}),h.useControlledProp(`openProp`,n),h.useControlledProp(`triggerIdProp`,u),h.useSyncedValues({disablePointerDismissal:o,nested:m,modal:s}),h.useContextCallback(`onOpenChange`,i),h.useContextCallback(`onOpenChangeComplete`,a);let g=h.useState(`payload`);Zi({store:h,actionsRef:c,parentContext:f?.store.context,isDrawer:p,onOpenChange:i,triggerIdProp:u});let _=D.useMemo(()=>({store:h}),[h]);return(0,L.jsx)(ta.Provider,{value:!1,children:(0,L.jsx)(Dn.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})})}var ra=D.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=On(),c=A(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),m(`h2`,e,{ref:t,props:[{id:c},o]})});Object.freeze({status:`aborted`});function U(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ia=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},aa=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},oa={};function sa(e){return e&&Object.assign(oa,e),oa}function ca(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function la(e,t){return typeof t==`bigint`?t.toString():t}function ua(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function da(e){return e==null}function fa(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function pa(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var ma=Symbol(`evaluating`);function W(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ma)return r===void 0&&(r=ma,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ha(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function _a(e){return JSON.stringify(e)}function va(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ya=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ba(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var xa=ua(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Sa(e){if(ba(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ba(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Ca(e){return Sa(e)?{...e}:Array.isArray(e)?[...e]:e}var wa=new Set([`string`,`number`,`symbol`]);function Ta(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ea(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Da(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Oa={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ka(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ea(e,ga(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ha(this,`shape`,e),e},checks:[]}))}function Aa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ea(e,ga(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ha(this,`shape`,r),r},checks:[]}))}function ja(e,t){if(!Sa(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ea(e,ga(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ha(this,`shape`,n),n}}))}function Ma(e,t){if(!Sa(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ea(e,ga(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ha(this,`shape`,n),n}}))}function Na(e,t){return Ea(e,ga(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ha(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Pa(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ea(t,ga(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ha(this,`shape`,i),i},checks:[]}))}function Fa(e,t,n){return Ea(t,ga(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ha(this,`shape`,i),i}}))}function Ia(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function La(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ra(e){return typeof e==`string`?e:e?.message}function za(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ra(e.inst?._zod.def?.error?.(e))??Ra(t?.error?.(e))??Ra(n.customError?.(e))??Ra(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Ba(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Va(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ha=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,la,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ua=U(`$ZodError`,Ha),Wa=U(`$ZodError`,Ha,{Parent:Error});function Ga(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ka(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var qa=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ia;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>za(e,a,sa())));throw ya(t,i?.callee),t}return o.value},Ja=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>za(e,a,sa())));throw ya(t,i?.callee),t}return o.value},Ya=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ia;return a.issues.length?{success:!1,error:new(e??Ua)(a.issues.map(e=>za(e,i,sa())))}:{success:!0,data:a.value}},Xa=Ya(Wa),Za=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>za(e,i,sa())))}:{success:!0,data:a.value}},Qa=Za(Wa),$a=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return qa(e)(t,n,i)},eo=e=>(t,n,r)=>qa(e)(t,n,r),to=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ja(e)(t,n,i)},no=e=>async(t,n,r)=>Ja(e)(t,n,r),ro=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ya(e)(t,n,i)},io=e=>(t,n,r)=>Ya(e)(t,n,r),ao=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Za(e)(t,n,i)},oo=e=>async(t,n,r)=>Za(e)(t,n,r),so=/^[cC][^\s-]{8,}$/,co=/^[0-9a-z]+$/,lo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uo=/^[0-9a-vA-V]{20}$/,fo=/^[A-Za-z0-9]{27}$/,po=/^[a-zA-Z0-9_-]{21}$/,mo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ho=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,go=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_o=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vo=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function yo(){return new RegExp(vo,`u`)}var bo=/^(?:(?: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])$/,xo=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,So=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Co=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,To=/^[A-Za-z0-9_-]*$/,Eo=/^\+[1-9]\d{6,14}$/,Do=`(?:(?:\\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])))`,Oo=RegExp(`^${Do}$`);function ko(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ao(e){return RegExp(`^${ko(e)}$`)}function jo(e){let t=ko({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Do}T(?:${r})$`)}var Mo=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},No=/^-?\d+$/,Po=/^-?\d+(?:\.\d+)?$/,Fo=/^(?:true|false)$/i,Io=/^[^A-Z]*$/,Lo=/^[^a-z]*$/,K=U(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ro={number:`number`,bigint:`bigint`,object:`date`},zo=U(`$ZodCheckLessThan`,(e,t)=>{K.init(e,t);let n=Ro[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bo=U(`$ZodCheckGreaterThan`,(e,t)=>{K.init(e,t);let n=Ro[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vo=U(`$ZodCheckMultipleOf`,(e,t)=>{K.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):pa(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ho=U(`$ZodCheckNumberFormat`,(e,t)=>{K.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Oa[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=No)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Uo=U(`$ZodCheckMaxLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!da(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Ba(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wo=U(`$ZodCheckMinLength`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!da(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ba(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Go=U(`$ZodCheckLengthEquals`,(e,t)=>{var n;K.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!da(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ba(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ko=U(`$ZodCheckStringFormat`,(e,t)=>{var n,r;K.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qo=U(`$ZodCheckRegex`,(e,t)=>{Ko.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Jo=U(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Io,Ko.init(e,t)}),Yo=U(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Lo,Ko.init(e,t)}),Xo=U(`$ZodCheckIncludes`,(e,t)=>{K.init(e,t);let n=Ta(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Zo=U(`$ZodCheckStartsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`^${Ta(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Qo=U(`$ZodCheckEndsWith`,(e,t)=>{K.init(e,t);let n=RegExp(`.*${Ta(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),$o=U(`$ZodCheckOverwrite`,(e,t)=>{K.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),es=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
2
- `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
3
- `))}},ts={major:4,minor:3,patch:6},q=U(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ts;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ia(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ia;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ia(e,t))});else{if(e.issues.length===t)continue;r||=Ia(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ia(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ia;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ia;return o.then(e=>t(e,r,a))}return t(o,r,a)}}W(e,`~standard`,()=>({validate:t=>{try{let n=Xa(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Qa(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),ns=U(`$ZodString`,(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Mo(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),J=U(`$ZodStringFormat`,(e,t)=>{Ko.init(e,t),ns.init(e,t)}),rs=U(`$ZodGUID`,(e,t)=>{t.pattern??=ho,J.init(e,t)}),is=U(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=go(e)}else t.pattern??=go();J.init(e,t)}),as=U(`$ZodEmail`,(e,t)=>{t.pattern??=_o,J.init(e,t)}),os=U(`$ZodURL`,(e,t)=>{J.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ss=U(`$ZodEmoji`,(e,t)=>{t.pattern??=yo(),J.init(e,t)}),cs=U(`$ZodNanoID`,(e,t)=>{t.pattern??=po,J.init(e,t)}),ls=U(`$ZodCUID`,(e,t)=>{t.pattern??=so,J.init(e,t)}),us=U(`$ZodCUID2`,(e,t)=>{t.pattern??=co,J.init(e,t)}),ds=U(`$ZodULID`,(e,t)=>{t.pattern??=lo,J.init(e,t)}),fs=U(`$ZodXID`,(e,t)=>{t.pattern??=uo,J.init(e,t)}),ps=U(`$ZodKSUID`,(e,t)=>{t.pattern??=fo,J.init(e,t)}),ms=U(`$ZodISODateTime`,(e,t)=>{t.pattern??=jo(t),J.init(e,t)}),hs=U(`$ZodISODate`,(e,t)=>{t.pattern??=Oo,J.init(e,t)}),gs=U(`$ZodISOTime`,(e,t)=>{t.pattern??=Ao(t),J.init(e,t)}),_s=U(`$ZodISODuration`,(e,t)=>{t.pattern??=mo,J.init(e,t)}),vs=U(`$ZodIPv4`,(e,t)=>{t.pattern??=bo,J.init(e,t),e._zod.bag.format=`ipv4`}),ys=U(`$ZodIPv6`,(e,t)=>{t.pattern??=xo,J.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),bs=U(`$ZodCIDRv4`,(e,t)=>{t.pattern??=So,J.init(e,t)}),xs=U(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Co,J.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Ss(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Cs=U(`$ZodBase64`,(e,t)=>{t.pattern??=wo,J.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Ss(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function ws(e){if(!To.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Ss(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Ts=U(`$ZodBase64URL`,(e,t)=>{t.pattern??=To,J.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{ws(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Es=U(`$ZodE164`,(e,t)=>{t.pattern??=Eo,J.init(e,t)});function Ds(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Os=U(`$ZodJWT`,(e,t)=>{J.init(e,t),e._zod.check=n=>{Ds(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),ks=U(`$ZodNumber`,(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??Po,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),As=U(`$ZodNumberFormat`,(e,t)=>{Ho.init(e,t),ks.init(e,t)}),js=U(`$ZodBoolean`,(e,t)=>{q.init(e,t),e._zod.pattern=Fo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ms=U(`$ZodUnknown`,(e,t)=>{q.init(e,t),e._zod.parse=e=>e}),Ns=U(`$ZodNever`,(e,t)=>{q.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Ps(e,t,n){e.issues.length&&t.issues.push(...La(n,e.issues)),t.value[n]=e.value}var Fs=U(`$ZodArray`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Ps(t,n,e))):Ps(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Is(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...La(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Ls(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Da(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Rs(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Is(e,n,i,t,u))):Is(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var zs=U(`$ZodObject`,(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ua(()=>Ls(t));W(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ba,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Is(n,t,e,s,r))):Is(i,t,e,s,r)}return i?Rs(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Bs=U(`$ZodObjectJIT`,(e,t)=>{zs.init(e,t);let n=e._zod.parse,r=ua(()=>Ls(t)),i=e=>{let t=new es([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=_a(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=_a(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
4
- if (${n}.issues.length) {
5
- if (${o} in input) {
6
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
7
- ...iss,
8
- path: iss.path ? [${o}, ...iss.path] : [${o}]
9
- })));
10
- }
11
- }
12
-
13
- if (${n}.value === undefined) {
14
- if (${o} in input) {
15
- newResult[${o}] = undefined;
16
- }
17
- } else {
18
- newResult[${o}] = ${n}.value;
19
- }
20
-
21
- `):t.write(`
22
- if (${n}.issues.length) {
23
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
24
- ...iss,
25
- path: iss.path ? [${o}, ...iss.path] : [${o}]
26
- })));
27
- }
28
-
29
- if (${n}.value === undefined) {
30
- if (${o} in input) {
31
- newResult[${o}] = undefined;
32
- }
33
- } else {
34
- newResult[${o}] = ${n}.value;
35
- }
36
-
37
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ba,s=!oa.jitless,c=s&&xa.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Rs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Vs(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ia(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>za(e,r,sa())))}),t)}var Hs=U(`$ZodUnion`,(e,t)=>{q.init(e,t),W(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),W(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),W(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),W(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>fa(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Vs(t,i,e,a)):Vs(s,i,e,a)}}),Us=U(`$ZodIntersection`,(e,t)=>{q.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Gs(e,t,n)):Gs(e,i,a)}});function Ws(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Sa(e)&&Sa(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ws(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ws(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Gs(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ia(e))return e;let o=Ws(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Ks=U(`$ZodEnum`,(e,t)=>{q.init(e,t);let n=ca(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>wa.has(typeof e)).map(e=>typeof e==`string`?Ta(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),qs=U(`$ZodLiteral`,(e,t)=>{if(q.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Ta(e):e?Ta(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Js=U(`$ZodTransform`,(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new aa(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ia;return n.value=i,n}});function Ys(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Xs=U(`$ZodOptional`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fa(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ys(t,e.value)):Ys(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Zs=U(`$ZodExactOptional`,(e,t)=>{Xs.init(e,t),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Qs=U(`$ZodNullable`,(e,t)=>{q.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${fa(e.source)}|null)$`):void 0}),W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),$s=U(`$ZodDefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ec(e,t)):ec(r,t)}});function ec(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var tc=U(`$ZodPrefault`,(e,t)=>{q.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),nc=U(`$ZodNonOptional`,(e,t)=>{q.init(e,t),W(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>rc(t,e)):rc(i,e)}});function rc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ic=U(`$ZodCatch`,(e,t)=>{q.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>za(e,n,sa()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>za(e,n,sa()))},input:e.value}),e.issues=[]),e)}}),ac=U(`$ZodPipe`,(e,t)=>{q.init(e,t),W(e._zod,`values`,()=>t.in._zod.values),W(e._zod,`optin`,()=>t.in._zod.optin),W(e._zod,`optout`,()=>t.out._zod.optout),W(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>oc(e,t.in,n)):oc(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>oc(e,t.out,n)):oc(r,t.out,n)}});function oc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var sc=U(`$ZodReadonly`,(e,t)=>{q.init(e,t),W(e._zod,`propValues`,()=>t.innerType._zod.propValues),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`optin`,()=>t.innerType?._zod?.optin),W(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(cc):cc(r)}});function cc(e){return e.value=Object.freeze(e.value),e}var lc=U(`$ZodCustom`,(e,t)=>{K.init(e,t),q.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>uc(t,n,r,e));uc(i,n,r,e)}});function uc(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Va(e))}}var dc,fc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function pc(){return new fc}(dc=globalThis).__zod_globalRegistry??(dc.__zod_globalRegistry=pc());var mc=globalThis.__zod_globalRegistry;function hc(e,t){return new e({type:`string`,...G(t)})}function gc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...G(t)})}function _c(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...G(t)})}function vc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...G(t)})}function yc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...G(t)})}function bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...G(t)})}function xc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...G(t)})}function Sc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...G(t)})}function Cc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...G(t)})}function wc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...G(t)})}function Tc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...G(t)})}function Ec(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...G(t)})}function Dc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...G(t)})}function Oc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...G(t)})}function kc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...G(t)})}function Ac(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...G(t)})}function jc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...G(t)})}function Mc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...G(t)})}function Nc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...G(t)})}function Pc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...G(t)})}function Fc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...G(t)})}function Ic(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...G(t)})}function Lc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...G(t)})}function Rc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...G(t)})}function zc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...G(t)})}function Bc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...G(t)})}function Vc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...G(t)})}function Hc(e,t){return new e({type:`number`,checks:[],...G(t)})}function Uc(e,t){return new e({type:`number`,coerce:!0,checks:[],...G(t)})}function Wc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...G(t)})}function Gc(e,t){return new e({type:`boolean`,...G(t)})}function Kc(e){return new e({type:`unknown`})}function qc(e,t){return new e({type:`never`,...G(t)})}function Jc(e,t){return new zo({check:`less_than`,...G(t),value:e,inclusive:!1})}function Yc(e,t){return new zo({check:`less_than`,...G(t),value:e,inclusive:!0})}function Xc(e,t){return new Bo({check:`greater_than`,...G(t),value:e,inclusive:!1})}function Zc(e,t){return new Bo({check:`greater_than`,...G(t),value:e,inclusive:!0})}function Qc(e,t){return new Vo({check:`multiple_of`,...G(t),value:e})}function $c(e,t){return new Uo({check:`max_length`,...G(t),maximum:e})}function el(e,t){return new Wo({check:`min_length`,...G(t),minimum:e})}function tl(e,t){return new Go({check:`length_equals`,...G(t),length:e})}function nl(e,t){return new qo({check:`string_format`,format:`regex`,...G(t),pattern:e})}function rl(e){return new Jo({check:`string_format`,format:`lowercase`,...G(e)})}function il(e){return new Yo({check:`string_format`,format:`uppercase`,...G(e)})}function al(e,t){return new Xo({check:`string_format`,format:`includes`,...G(t),includes:e})}function ol(e,t){return new Zo({check:`string_format`,format:`starts_with`,...G(t),prefix:e})}function sl(e,t){return new Qo({check:`string_format`,format:`ends_with`,...G(t),suffix:e})}function cl(e){return new $o({check:`overwrite`,tx:e})}function ll(e){return cl(t=>t.normalize(e))}function ul(){return cl(e=>e.trim())}function dl(){return cl(e=>e.toLowerCase())}function fl(){return cl(e=>e.toUpperCase())}function pl(){return cl(e=>va(e))}function ml(e,t,n){return new e({type:`array`,element:t,...G(n)})}function hl(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...G(n)})}function gl(e){let t=_l(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Va(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Va(r))}},e(n.value,n)));return t}function _l(e,t){let n=new K({check:`custom`,...G(t)});return n._zod.check=e,n}function vl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??mc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Y(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Y(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&X(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function yl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
38
-
39
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function bl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Sl(t,`input`,e.processors),output:Sl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function X(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return X(r.element,n);if(r.type===`set`)return X(r.valueType,n);if(r.type===`lazy`)return X(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return X(r.innerType,n);if(r.type===`intersection`)return X(r.left,n)||X(r.right,n);if(r.type===`record`||r.type===`map`)return X(r.keyType,n)||X(r.valueType,n);if(r.type===`pipe`)return X(r.in,n)||X(r.out,n);if(r.type===`object`){for(let e in r.shape)if(X(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(X(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(X(e,n))return!0;return!!(r.rest&&X(r.rest,n))}return!1}var xl=(e,t={})=>n=>{let r=vl({...n,processors:t});return Y(e,r),yl(r,e),bl(r,e)},Sl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=vl({...i??{},target:a,io:t,processors:n});return Y(e,o),yl(o,e),bl(o,e)},Cl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},wl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Cl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Tl=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},El=(e,t,n,r)=>{n.type=`boolean`},Dl=(e,t,n,r)=>{n.not={}},Ol=(e,t,n,r)=>{let i=e._zod.def,a=ca(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},kl=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Al=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},jl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ml=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y(a.element,t,{...r,path:[...r.path,`items`]})},Nl=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Pl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Fl=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Il=(e,t,n,r)=>{let i=e._zod.def,a=Y(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ll=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Rl=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},zl=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Bl=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Vl=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Y(a,t,r);let o=t.seen.get(e);o.ref=a},Hl=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ul=(e,t,n,r)=>{let i=e._zod.def;Y(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Wl=U(`ZodISODateTime`,(e,t)=>{ms.init(e,t),$.init(e,t)});function Gl(e){return Rc(Wl,e)}var Kl=U(`ZodISODate`,(e,t)=>{hs.init(e,t),$.init(e,t)});function ql(e){return zc(Kl,e)}var Jl=U(`ZodISOTime`,(e,t)=>{gs.init(e,t),$.init(e,t)});function Yl(e){return Bc(Jl,e)}var Xl=U(`ZodISODuration`,(e,t)=>{_s.init(e,t),$.init(e,t)});function Zl(e){return Vc(Xl,e)}var Ql=(e,t)=>{Ua.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ka(e,t)},flatten:{value:t=>Ga(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,la,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,la,2)}},isEmpty:{get(){return e.issues.length===0}}})};U(`ZodError`,Ql);var Z=U(`ZodError`,Ql,{Parent:Error}),$l=qa(Z),eu=Ja(Z),tu=Ya(Z),nu=Za(Z),ru=$a(Z),iu=eo(Z),au=to(Z),ou=no(Z),su=ro(Z),cu=io(Z),lu=ao(Z),uu=oo(Z),Q=U(`ZodType`,(e,t)=>(q.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Sl(e,`input`),output:Sl(e,`output`)}}),e.toJSONSchema=xl(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(ga(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Ea(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>$l(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>tu(e,t,n),e.parseAsync=async(t,n)=>eu(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>nu(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ru(e,t,n),e.decode=(t,n)=>iu(e,t,n),e.encodeAsync=async(t,n)=>au(e,t,n),e.decodeAsync=async(t,n)=>ou(e,t,n),e.safeEncode=(t,n)=>su(e,t,n),e.safeDecode=(t,n)=>cu(e,t,n),e.safeEncodeAsync=async(t,n)=>lu(e,t,n),e.safeDecodeAsync=async(t,n)=>uu(e,t,n),e.refine=(t,n)=>e.check(Sd(t,n)),e.superRefine=t=>e.check(Cd(t)),e.overwrite=t=>e.check(cl(t)),e.optional=()=>id(e),e.exactOptional=()=>od(e),e.nullable=()=>cd(e),e.nullish=()=>id(cd(e)),e.nonoptional=t=>md(e,t),e.array=()=>Wu(e),e.or=t=>Ju([e,t]),e.and=t=>Xu(e,t),e.transform=t=>vd(e,nd(t)),e.default=t=>ud(e,t),e.prefault=t=>fd(e,t),e.catch=t=>gd(e,t),e.pipe=t=>vd(e,t),e.readonly=()=>bd(e),e.describe=t=>{let n=e.clone();return mc.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return mc.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return mc.get(e);let n=e.clone();return mc.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),du=U(`_ZodString`,(e,t)=>{ns.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(nl(...t)),e.includes=(...t)=>e.check(al(...t)),e.startsWith=(...t)=>e.check(ol(...t)),e.endsWith=(...t)=>e.check(sl(...t)),e.min=(...t)=>e.check(el(...t)),e.max=(...t)=>e.check($c(...t)),e.length=(...t)=>e.check(tl(...t)),e.nonempty=(...t)=>e.check(el(1,...t)),e.lowercase=t=>e.check(rl(t)),e.uppercase=t=>e.check(il(t)),e.trim=()=>e.check(ul()),e.normalize=(...t)=>e.check(ll(...t)),e.toLowerCase=()=>e.check(dl()),e.toUpperCase=()=>e.check(fl()),e.slugify=()=>e.check(pl())}),fu=U(`ZodString`,(e,t)=>{ns.init(e,t),du.init(e,t),e.email=t=>e.check(gc(mu,t)),e.url=t=>e.check(Sc(_u,t)),e.jwt=t=>e.check(Lc(Mu,t)),e.emoji=t=>e.check(Cc(vu,t)),e.guid=t=>e.check(_c(hu,t)),e.uuid=t=>e.check(vc(gu,t)),e.uuidv4=t=>e.check(yc(gu,t)),e.uuidv6=t=>e.check(bc(gu,t)),e.uuidv7=t=>e.check(xc(gu,t)),e.nanoid=t=>e.check(wc(yu,t)),e.guid=t=>e.check(_c(hu,t)),e.cuid=t=>e.check(Tc(bu,t)),e.cuid2=t=>e.check(Ec(xu,t)),e.ulid=t=>e.check(Dc(Su,t)),e.base64=t=>e.check(Pc(ku,t)),e.base64url=t=>e.check(Fc(Au,t)),e.xid=t=>e.check(Oc(Cu,t)),e.ksuid=t=>e.check(kc(wu,t)),e.ipv4=t=>e.check(Ac(Tu,t)),e.ipv6=t=>e.check(jc(Eu,t)),e.cidrv4=t=>e.check(Mc(Du,t)),e.cidrv6=t=>e.check(Nc(Ou,t)),e.e164=t=>e.check(Ic(ju,t)),e.datetime=t=>e.check(Gl(t)),e.date=t=>e.check(ql(t)),e.time=t=>e.check(Yl(t)),e.duration=t=>e.check(Zl(t))});function pu(e){return hc(fu,e)}var $=U(`ZodStringFormat`,(e,t)=>{J.init(e,t),du.init(e,t)}),mu=U(`ZodEmail`,(e,t)=>{as.init(e,t),$.init(e,t)}),hu=U(`ZodGUID`,(e,t)=>{rs.init(e,t),$.init(e,t)}),gu=U(`ZodUUID`,(e,t)=>{is.init(e,t),$.init(e,t)}),_u=U(`ZodURL`,(e,t)=>{os.init(e,t),$.init(e,t)}),vu=U(`ZodEmoji`,(e,t)=>{ss.init(e,t),$.init(e,t)}),yu=U(`ZodNanoID`,(e,t)=>{cs.init(e,t),$.init(e,t)}),bu=U(`ZodCUID`,(e,t)=>{ls.init(e,t),$.init(e,t)}),xu=U(`ZodCUID2`,(e,t)=>{us.init(e,t),$.init(e,t)}),Su=U(`ZodULID`,(e,t)=>{ds.init(e,t),$.init(e,t)}),Cu=U(`ZodXID`,(e,t)=>{fs.init(e,t),$.init(e,t)}),wu=U(`ZodKSUID`,(e,t)=>{ps.init(e,t),$.init(e,t)}),Tu=U(`ZodIPv4`,(e,t)=>{vs.init(e,t),$.init(e,t)}),Eu=U(`ZodIPv6`,(e,t)=>{ys.init(e,t),$.init(e,t)}),Du=U(`ZodCIDRv4`,(e,t)=>{bs.init(e,t),$.init(e,t)}),Ou=U(`ZodCIDRv6`,(e,t)=>{xs.init(e,t),$.init(e,t)}),ku=U(`ZodBase64`,(e,t)=>{Cs.init(e,t),$.init(e,t)}),Au=U(`ZodBase64URL`,(e,t)=>{Ts.init(e,t),$.init(e,t)}),ju=U(`ZodE164`,(e,t)=>{Es.init(e,t),$.init(e,t)}),Mu=U(`ZodJWT`,(e,t)=>{Os.init(e,t),$.init(e,t)}),Nu=U(`ZodNumber`,(e,t)=>{ks.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r),e.gt=(t,n)=>e.check(Xc(t,n)),e.gte=(t,n)=>e.check(Zc(t,n)),e.min=(t,n)=>e.check(Zc(t,n)),e.lt=(t,n)=>e.check(Jc(t,n)),e.lte=(t,n)=>e.check(Yc(t,n)),e.max=(t,n)=>e.check(Yc(t,n)),e.int=t=>e.check(Iu(t)),e.safe=t=>e.check(Iu(t)),e.positive=t=>e.check(Xc(0,t)),e.nonnegative=t=>e.check(Zc(0,t)),e.negative=t=>e.check(Jc(0,t)),e.nonpositive=t=>e.check(Yc(0,t)),e.multipleOf=(t,n)=>e.check(Qc(t,n)),e.step=(t,n)=>e.check(Qc(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Pu(e){return Hc(Nu,e)}var Fu=U(`ZodNumberFormat`,(e,t)=>{As.init(e,t),Nu.init(e,t)});function Iu(e){return Wc(Fu,e)}var Lu=U(`ZodBoolean`,(e,t)=>{js.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r)});function Ru(e){return Gc(Lu,e)}var zu=U(`ZodUnknown`,(e,t)=>{Ms.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Bu(){return Kc(zu)}var Vu=U(`ZodNever`,(e,t)=>{Ns.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dl(e,t,n,r)});function Hu(e){return qc(Vu,e)}var Uu=U(`ZodArray`,(e,t)=>{Fs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ml(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(el(t,n)),e.nonempty=t=>e.check(el(1,t)),e.max=(t,n)=>e.check($c(t,n)),e.length=(t,n)=>e.check(tl(t,n)),e.unwrap=()=>e.element});function Wu(e,t){return ml(Uu,e,t)}var Gu=U(`ZodObject`,(e,t)=>{Bs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nl(e,t,n,r),W(e,`shape`,()=>t.shape),e.keyof=()=>Qu(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Bu()}),e.loose=()=>e.clone({...e._zod.def,catchall:Bu()}),e.strict=()=>e.clone({...e._zod.def,catchall:Hu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ja(e,t),e.safeExtend=t=>Ma(e,t),e.merge=t=>Na(e,t),e.pick=t=>ka(e,t),e.omit=t=>Aa(e,t),e.partial=(...t)=>Pa(rd,e,t[0]),e.required=(...t)=>Fa(pd,e,t[0])});function Ku(e,t){return new Gu({type:`object`,shape:e??{},...G(t)})}var qu=U(`ZodUnion`,(e,t)=>{Hs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pl(e,t,n,r),e.options=t.options});function Ju(e,t){return new qu({type:`union`,options:e,...G(t)})}var Yu=U(`ZodIntersection`,(e,t)=>{Us.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fl(e,t,n,r)});function Xu(e,t){return new Yu({type:`intersection`,left:e,right:t})}var Zu=U(`ZodEnum`,(e,t)=>{Ks.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ol(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Zu({...t,checks:[],...G(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Zu({...t,checks:[],...G(r),entries:i})}});function Qu(e,t){return new Zu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...G(t)})}var $u=U(`ZodLiteral`,(e,t)=>{qs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kl(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ed(e,t){return new $u({type:`literal`,values:Array.isArray(e)?e:[e],...G(t)})}var td=U(`ZodTransform`,(e,t)=>{Js.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jl(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new aa(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Va(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Va(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function nd(e){return new td({type:`transform`,transform:e})}var rd=U(`ZodOptional`,(e,t)=>{Xs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function id(e){return new rd({type:`optional`,innerType:e})}var ad=U(`ZodExactOptional`,(e,t)=>{Zs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function od(e){return new ad({type:`optional`,innerType:e})}var sd=U(`ZodNullable`,(e,t)=>{Qs.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cd(e){return new sd({type:`nullable`,innerType:e})}var ld=U(`ZodDefault`,(e,t)=>{$s.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ud(e,t){return new ld({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ca(t)}})}var dd=U(`ZodPrefault`,(e,t)=>{tc.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function fd(e,t){return new dd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ca(t)}})}var pd=U(`ZodNonOptional`,(e,t)=>{nc.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function md(e,t){return new pd({type:`nonoptional`,innerType:e,...G(t)})}var hd=U(`ZodCatch`,(e,t)=>{ic.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function gd(e,t){return new hd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var _d=U(`ZodPipe`,(e,t)=>{ac.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vl(e,t,n,r),e.in=t.in,e.out=t.out});function vd(e,t){return new _d({type:`pipe`,in:e,out:t})}var yd=U(`ZodReadonly`,(e,t)=>{sc.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bd(e){return new yd({type:`readonly`,innerType:e})}var xd=U(`ZodCustom`,(e,t)=>{lc.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Al(e,t,n,r)});function Sd(e,t={}){return hl(xd,e,t)}function Cd(e){return gl(e)}export{Jn as $,qe as $t,ai as A,ce as An,Rt as At,Dr as B,ft as Bt,mi as C,z as Cn,dn as Ct,si as D,he as Dn,Yt as Dt,li as E,me as En,en as Et,H as F,B as Ft,fr as G,Ve as Gt,Er as H,dt as Ht,Hr as I,gt as It,mr as J,Ke as Jt,dr as K,We as Kt,Rr as L,_t as Lt,ni as M,A as Mn,Ht as Mt,qr as N,k as Nn,Ut as Nt,ci as O,ge as On,Xt as Ot,Jr as P,ne as Pn,ht as Pt,qn as Q,Qe as Qt,Or as R,mt as Rt,hi as S,ve as Sn,fn as St,pi as T,_e as Tn,sn as Tt,Sr as U,vt as Ut,Tr as V,bt as Vt,br as W,Ue as Wt,Xn as X,Ze as Xt,Qn as Y,Xe as Yt,Yn as Z,Je as Zt,Ii as _,we as _n,_n as _t,ed as a,Re as an,Bn as at,Mi as b,Ce as bn,hn as bt,pu as c,ze as cn,In as ct,na as d,Pe as dn,xn as dt,at as en,Wn as et,Xi as f,Me as fn,bn as ft,Li as g,De as gn,pn as gt,Ri as h,Oe as hn,Sn as ht,Ru as i,Ye as in,Vn as it,ii as j,j as jn,Vt as jt,oi as k,le as kn,qt as kt,Uc as l,Ie as ln,En as lt,qi as m,Ae as mn,vn as mt,Qu as n,ct as nn,V as nt,Pu as o,Le as on,Rn as ot,Yi as p,Ne as pn,Tn as pt,pr as q,Be as qt,Wu as r,Ge as rn,Hn as rt,Ku as s,lt as sn,Ln as st,Nu as t,ot as tn,Un as tt,ra as u,Fe as un,Cn as ut,Fi as v,be as vn,wn as vt,di as w,ye as wn,un as wt,yi as x,Ee as xn,mn as xt,Pi as y,Te as yn,gn as yt,kr as z,pt as zt};