@tapflowio/relay 0.20.1 → 0.22.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.
- package/dist/RelayServer.d.ts +33 -0
- package/dist/RelayServer.d.ts.map +1 -1
- package/dist/RelayServer.js +173 -26
- package/dist/RelayServer.js.map +1 -1
- package/dist/api/team.d.ts +2 -1
- package/dist/api/team.d.ts.map +1 -1
- package/dist/api/team.js +7 -5
- package/dist/api/team.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/buildTickets.d.ts +50 -0
- package/dist/lib/buildTickets.d.ts.map +1 -0
- package/dist/lib/buildTickets.js +47 -0
- package/dist/lib/buildTickets.js.map +1 -0
- package/dist/lib/lanAddress.d.ts +10 -0
- package/dist/lib/lanAddress.d.ts.map +1 -1
- package/dist/lib/lanAddress.js +13 -0
- package/dist/lib/lanAddress.js.map +1 -1
- package/dist/lib/proxyConfig.d.ts +4 -2
- package/dist/lib/proxyConfig.d.ts.map +1 -1
- package/dist/lib/proxyConfig.js +22 -13
- package/dist/lib/proxyConfig.js.map +1 -1
- package/dist/lib/publicUrl.d.ts +31 -1
- package/dist/lib/publicUrl.d.ts.map +1 -1
- package/dist/lib/publicUrl.js +51 -9
- package/dist/lib/publicUrl.js.map +1 -1
- package/dist/server.js +7 -1
- package/dist/server.js.map +1 -1
- package/package.json +4 -4
- package/public/assets/{AppCenter-DtF_g4F7.js → AppCenter-gbsJscjW.js} +5 -5
- package/public/assets/AppCenter-gbsJscjW.js.br +0 -0
- package/public/assets/AppCenter-gbsJscjW.js.gz +0 -0
- package/public/assets/{Default-C_p-ZWS6.js → Default-2rFTkbo9.js} +1 -1
- package/public/assets/Default-2rFTkbo9.js.br +0 -0
- package/public/assets/Default-2rFTkbo9.js.gz +0 -0
- package/public/assets/{Invite-DKT4qT6M.js → Invite-aN4DXJyM.js} +1 -1
- package/public/assets/Invite-aN4DXJyM.js.br +0 -0
- package/public/assets/Invite-aN4DXJyM.js.gz +0 -0
- package/public/assets/MacResources-D3IlesXU.js +3 -0
- package/public/assets/MacResources-D3IlesXU.js.br +0 -0
- package/public/assets/MacResources-D3IlesXU.js.gz +0 -0
- package/public/assets/NotFound-BoDDivK5.js.gz +0 -0
- package/public/assets/QASession-U29t9j0E.js +140 -0
- package/public/assets/QASession-U29t9j0E.js.br +0 -0
- package/public/assets/QASession-U29t9j0E.js.gz +0 -0
- package/public/assets/{ResetPassword-BnmE9MfY.js → ResetPassword-DPc5kwQU.js} +1 -1
- package/public/assets/ResetPassword-DPc5kwQU.js.br +0 -0
- package/public/assets/ResetPassword-DPc5kwQU.js.gz +0 -0
- package/public/assets/{Setup-I6nFcwNZ.js → Setup-CwPx_e_O.js} +1 -1
- package/public/assets/Setup-CwPx_e_O.js.br +0 -0
- package/public/assets/Setup-CwPx_e_O.js.gz +0 -0
- package/public/assets/Team-DD9li-7M.js +6 -0
- package/public/assets/Team-DD9li-7M.js.br +0 -0
- package/public/assets/Team-DD9li-7M.js.gz +0 -0
- package/public/assets/Tokens-DdMMke73.js +1 -0
- package/public/assets/Tokens-DdMMke73.js.br +0 -0
- package/public/assets/Tokens-DdMMke73.js.gz +0 -0
- package/public/assets/{alert-dialog-CLhPOSdB.js → alert-dialog-DADd1jHN.js} +1 -1
- package/public/assets/alert-dialog-DADd1jHN.js.br +0 -0
- package/public/assets/alert-dialog-DADd1jHN.js.gz +0 -0
- package/public/assets/{badge-CP-xbjo3.js → badge-CMf8d5RJ.js} +1 -1
- package/public/assets/badge-CMf8d5RJ.js.br +0 -0
- package/public/assets/badge-CMf8d5RJ.js.gz +0 -0
- package/public/assets/{build-format-DO1zN4vW.js → build-format-lp_8kSvq.js} +3 -3
- package/public/assets/build-format-lp_8kSvq.js.br +0 -0
- package/public/assets/build-format-lp_8kSvq.js.gz +0 -0
- package/public/assets/{dialog-BGH9MPcH.js → dialog-pS8vHXXv.js} +3 -3
- package/public/assets/dialog-pS8vHXXv.js.br +0 -0
- package/public/assets/dialog-pS8vHXXv.js.gz +0 -0
- package/public/assets/index-Bxs7CdEi.css +1 -0
- package/public/assets/index-Bxs7CdEi.css.br +0 -0
- package/public/assets/index-Bxs7CdEi.css.gz +0 -0
- package/public/assets/{index-O-Temo_p.js → index-Cajf0T-5.js} +23 -23
- package/public/assets/index-Cajf0T-5.js.br +0 -0
- package/public/assets/index-Cajf0T-5.js.gz +0 -0
- package/public/assets/{pencil-0UYCdq7e.js → pencil-LD1ga-Kk.js} +2 -2
- package/public/assets/pencil-LD1ga-Kk.js.br +0 -0
- package/public/assets/pencil-LD1ga-Kk.js.gz +0 -0
- package/public/assets/publicLink-D6zKS_wu.js +1 -0
- package/public/assets/publicLink-D6zKS_wu.js.br +0 -0
- package/public/assets/publicLink-D6zKS_wu.js.gz +0 -0
- package/public/assets/resource-health-BScurILF.js +1 -0
- package/public/assets/resource-health-BScurILF.js.br +0 -0
- package/public/assets/resource-health-BScurILF.js.gz +0 -0
- package/public/assets/{table-4DnBixRm.js → table-CL9AvoTp.js} +1 -1
- package/public/assets/table-CL9AvoTp.js.br +0 -0
- package/public/assets/table-CL9AvoTp.js.gz +0 -0
- package/public/assets/tinyh264.worker-DiJ50Hai.js.gz +0 -0
- package/public/assets/{trash-2-CAhMuWgg.js → trash-mvVp4nwq.js} +4 -4
- package/public/assets/trash-mvVp4nwq.js.br +0 -0
- package/public/assets/trash-mvVp4nwq.js.gz +0 -0
- package/public/assets/vendor-charts-8kVeHLwY.js +5 -0
- package/public/assets/vendor-charts-8kVeHLwY.js.br +0 -0
- package/public/assets/vendor-charts-8kVeHLwY.js.gz +0 -0
- package/public/assets/vendor-react-AJpf4YZ0.js.gz +0 -0
- package/public/assets/vendor-router-BFibuab1.js.gz +0 -0
- package/public/favicon.svg.gz +0 -0
- package/public/index.html +2 -2
- package/public/index.html.br +0 -0
- package/public/index.html.gz +0 -0
- package/public/logo-dark.svg.gz +0 -0
- package/public/logo.svg.gz +0 -0
- package/public/assets/AppCenter-DtF_g4F7.js.br +0 -0
- package/public/assets/Default-C_p-ZWS6.js.br +0 -0
- package/public/assets/Invite-DKT4qT6M.js.br +0 -0
- package/public/assets/MacResources-D8T_KpPV.js +0 -1
- package/public/assets/MacResources-D8T_KpPV.js.br +0 -0
- package/public/assets/QASession-Daup7RGP.js +0 -140
- package/public/assets/QASession-Daup7RGP.js.br +0 -0
- package/public/assets/ResetPassword-BnmE9MfY.js.br +0 -0
- package/public/assets/Setup-I6nFcwNZ.js.br +0 -0
- package/public/assets/Team-JhXhGt1H.js +0 -6
- package/public/assets/Team-JhXhGt1H.js.br +0 -0
- package/public/assets/Tokens-KAKIDZ0V.js +0 -1
- package/public/assets/Tokens-KAKIDZ0V.js.br +0 -0
- package/public/assets/alert-dialog-CLhPOSdB.js.br +0 -0
- package/public/assets/badge-CP-xbjo3.js.br +0 -0
- package/public/assets/build-format-DO1zN4vW.js.br +0 -0
- package/public/assets/dialog-BGH9MPcH.js.br +0 -0
- package/public/assets/index-ClHUQm-F.css +0 -1
- package/public/assets/index-ClHUQm-F.css.br +0 -0
- package/public/assets/index-O-Temo_p.js.br +0 -0
- package/public/assets/pencil-0UYCdq7e.js.br +0 -0
- package/public/assets/table-4DnBixRm.js.br +0 -0
- package/public/assets/tabs-DwiCx3dV.js +0 -1
- package/public/assets/tabs-DwiCx3dV.js.br +0 -0
- package/public/assets/trash-2-CAhMuWgg.js.br +0 -0
- package/public/assets/vendor-charts-DyX5CBcf.js +0 -5
- package/public/assets/vendor-charts-DyX5CBcf.js.br +0 -0
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Setup-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Setup-CwPx_e_O.js","assets/vendor-react-AJpf4YZ0.js","assets/vendor-router-BFibuab1.js","assets/Invite-aN4DXJyM.js","assets/pencil-LD1ga-Kk.js","assets/ResetPassword-DPc5kwQU.js","assets/AppCenter-gbsJscjW.js","assets/build-format-lp_8kSvq.js","assets/dialog-pS8vHXXv.js","assets/trash-mvVp4nwq.js","assets/badge-CMf8d5RJ.js","assets/alert-dialog-DADd1jHN.js","assets/QASession-U29t9j0E.js","assets/resource-health-BScurILF.js","assets/publicLink-D6zKS_wu.js","assets/MacResources-D3IlesXU.js","assets/vendor-charts-8kVeHLwY.js","assets/Default-2rFTkbo9.js","assets/Team-DD9li-7M.js","assets/table-CL9AvoTp.js","assets/Tokens-DdMMke73.js","assets/NotFound-BoDDivK5.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Us=e=>{throw TypeError(e)};var Bs=(e,t,n)=>t.has(e)||Us("Cannot "+n);var Ze=(e,t,n)=>(Bs(e,t,"read from private field"),n?n.call(e):t.get(e)),Ws=(e,t,n)=>t.has(e)?Us("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Yr=(e,t,n,r)=>(Bs(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{i as d,R as P,b as Zu,a as gn,j as h,r as da,u as Uu,o as Bu,s as Wu,f as Hu,k as Ku,c as Gu,h as Yu,l as Ju,d as qu,e as Xu}from"./vendor-react-AJpf4YZ0.js";import{b as es,u as fa,L as Kn,N as pa,O as Qu,B as ed,a as td,R as Xe}from"./vendor-router-BFibuab1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var nd=(e,t,n,r,o,s,i,a)=>{let l=document.documentElement,u=["light","dark"];function f(g){(Array.isArray(e)?e:[e]).forEach(m=>{let v=m==="class",y=v&&s?o.map(x=>s[x]||x):o;v?(l.classList.remove(...y),l.classList.add(s&&s[g]?s[g]:g)):l.setAttribute(m,g)}),c(g)}function c(g){a&&u.includes(g)&&(l.style.colorScheme=g)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)f(r);else try{let g=localStorage.getItem(t)||n,m=i&&g==="system"?p():g;f(m)}catch{}},Hs=["light","dark"],ha="(prefers-color-scheme: dark)",rd=typeof window>"u",ts=d.createContext(void 0),od={setTheme:e=>{},themes:[]},Pr=()=>{var e;return(e=d.useContext(ts))!=null?e:od},sd=e=>d.useContext(ts)?d.createElement(d.Fragment,null,e.children):d.createElement(ad,{...e}),id=["light","dark"],ad=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:s=id,defaultTheme:i=n?"system":"light",attribute:a="data-theme",value:l,children:u,nonce:f,scriptProps:c})=>{let[p,g]=d.useState(()=>ld(o,i)),[m,v]=d.useState(()=>p==="system"?Jr():p),y=l?Object.values(l):s,x=d.useCallback(C=>{let T=C;if(!T)return;C==="system"&&n&&(T=Jr());let N=l?l[T]:T,F=t?ud(f):null,A=document.documentElement,W=H=>{H==="class"?(A.classList.remove(...y),N&&A.classList.add(N)):H.startsWith("data-")&&(N?A.setAttribute(H,N):A.removeAttribute(H))};if(Array.isArray(a)?a.forEach(W):W(a),r){let H=Hs.includes(i)?i:null,$=Hs.includes(T)?T:H;A.style.colorScheme=$}F==null||F()},[f]),w=d.useCallback(C=>{let T=typeof C=="function"?C(p):C;g(T);try{localStorage.setItem(o,T)}catch{}},[p]),k=d.useCallback(C=>{let T=Jr(C);v(T),p==="system"&&n&&!e&&x("system")},[p,e]);d.useEffect(()=>{let C=window.matchMedia(ha);return C.addListener(k),k(C),()=>C.removeListener(k)},[k]),d.useEffect(()=>{let C=T=>{T.key===o&&(T.newValue?g(T.newValue):w(i))};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[w]),d.useEffect(()=>{x(e??p)},[e,p]);let E=d.useMemo(()=>({theme:p,setTheme:w,forcedTheme:e,resolvedTheme:p==="system"?m:p,themes:n?[...s,"system"]:s,systemTheme:n?m:void 0}),[p,w,e,m,n,s]);return d.createElement(ts.Provider,{value:E},d.createElement(cd,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:i,value:l,themes:s,nonce:f,scriptProps:c}),u)},cd=d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,themes:a,nonce:l,scriptProps:u})=>{let f=JSON.stringify([n,t,s,e,a,i,r,o]).slice(1,-1);return d.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${nd.toString()})(${f})`}})}),ld=(e,t)=>{if(rd)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},ud=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Jr=e=>(e||(e=window.matchMedia(ha)),e.matches?"dark":"light");const dd="modulepreload",fd=function(e){return"/"+e},Ks={},St=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=i(n.map(u=>{if(u=fd(u),u in Ks)return;Ks[u]=!0;const f=u.endsWith(".css"),c=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":dd,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function pd(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const hd=e=>{switch(e){case"success":return vd;case"info":return yd;case"warning":return bd;case"error":return wd;default:return null}},md=Array(12).fill(0),gd=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},md.map((n,r)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),vd=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),bd=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),yd=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),wd=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),xd=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_d=()=>{const[e,t]=P.useState(document.hidden);return P.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e};let Sd=1;const Ed=100,Gs=e=>{var t;return typeof(e==null?void 0:e.id)=="number"||(e==null||(t=e.id)==null?void 0:t.length)>0?e.id:Sd++};class Cd{constructor(){this.subscribe=t=>(this.subscribers.push(t),this.getActiveToasts().forEach(n=>t(n)),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t],this.trimHistory()},this.trimHistory=()=>{let t=this.toasts.length-Ed;t<=0||(this.toasts=this.toasts.filter(n=>t>0&&this.dismissedToasts.has(n.id)?(this.dismissedToasts.delete(n.id),t--,!1):!0))},this.create=t=>{const{message:n,...r}=t,o=Gs(t),s=this.pendingDismissals.get(o);s!==void 0&&(cancelAnimationFrame(s),this.pendingDismissals.delete(o),this.dismissedToasts.delete(o));const i=this.dismissedToasts.has(o),a=t.dismissible===void 0?!0:t.dismissible;return i&&(this.dismissedToasts.delete(o),this.toasts=this.toasts.filter(u=>u.id!==o)),(i?void 0:this.toasts.find(u=>u.id===o))?this.toasts=this.toasts.map(u=>u.id===o?(this.publish({...u,...t,id:o,title:n}),{...u,...t,id:o,dismissible:a,title:n}):u):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=t=>{if(t==null)return this.getActiveToasts().forEach(r=>{this.dismissedToasts.add(r.id),this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),t;this.dismissedToasts.add(t);const n=this.pendingDismissals.get(t);return n!==void 0&&cancelAnimationFrame(n),this.pendingDismissals.set(t,requestAnimationFrame(()=>{this.pendingDismissals.delete(t),this.subscribers.forEach(r=>r({id:t,dismiss:!0}))})),t},this.message=(t,n)=>this.create({...n,message:t,type:void 0}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const a=o.then(async u=>{if(i=["resolve",u],P.isValidElement(u))s=!1,this.create({id:r,type:"default",message:u});else if(Pd(u)&&!u.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,p=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,m=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...m})}else if(u instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(u):n.error,p=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:p,...m})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(u):n.success,p=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!P.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:p,...m})}}).catch(async u=>{if(i=["reject",u],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,g=typeof f=="object"&&!P.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...g})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>a.then(()=>i[0]==="reject"?f(i[1]):u(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=Gs(n);return this.create({...n,jsx:t(r),id:r,type:void 0}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}const Ge=new Cd,kd=(e,t)=>Ge.message(e,t),Pd=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Od=kd,Rd=()=>Ge.toasts,Td=()=>Ge.getActiveToasts(),D_=Object.assign(Od,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:Rd,getToasts:Td});pd("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Gn(e){return e.label!==void 0}const Id=3,Ad="24px",Dd="16px",Ys=4e3,jd=356,Nd=14,Md=45,zd=200;function yt(...e){return e.filter(Boolean).join(" ")}function $d(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Fd=e=>{var t,n,r,o,s,i,a,l,u;const{invert:f,toast:c,unstyled:p,interacting:g,setHeights:m,visibleToasts:v,heights:y,index:x,toasts:w,expanded:k,removeToast:E,defaultRichColors:C,closeButton:T,style:N,cancelButtonStyle:F,actionButtonStyle:A,className:W="",descriptionClassName:H="",duration:$,position:U,gap:L,expandByDefault:q,classNames:B,icons:G,closeButtonAriaLabel:oe="Close toast"}=e,[re,V]=P.useState(null),[ee,me]=P.useState(null),[ge,ne]=P.useState(!1),[ce,se]=P.useState(!1),[xe,Pe]=P.useState(!1),[ie,_e]=P.useState(!1),[rt,gt]=P.useState(!1),[lt,Ct]=P.useState(0),[kt,Nt]=P.useState(0),ut=P.useRef(c.duration||$||Ys),nn=P.useRef(null),Be=P.useRef(null),rn=x===0,Kt=x+1<=v,ve=c.type,Bn=ve??"default",Pt=c.dismissible!==!1,Wr=c.className||"",Wn=c.descriptionClassName||"",Gt=P.useMemo(()=>y.findIndex(Y=>Y.toastId===c.id)||0,[y,c.id]),Hr=P.useMemo(()=>{var Y;return(Y=c.closeButton)!=null?Y:T},[c.closeButton,T]),_n=P.useMemo(()=>c.duration||$||Ys,[c.duration,$]),Hn=P.useRef(0),Yt=P.useRef(0),Sn=P.useRef(0),b=P.useRef(null),[S,_]=U.split("-"),O=P.useMemo(()=>y.reduce((Y,Oe,Se)=>Se>=Gt?Y:Y+Oe.height,0),[y,Gt]),I=_d(),D=P.useMemo(()=>{var Y;return(Y=e.swipeDirections)!=null?Y:$d(U)},[e.swipeDirections,U]),z=c.invert||f,M=ve==="loading";Yt.current=P.useMemo(()=>Gt*L+O,[Gt,O]),P.useEffect(()=>{ut.current=_n},[_n]),P.useEffect(()=>{ne(!0)},[]),P.useEffect(()=>{const Y=Be.current;if(Y){const Oe=Y.getBoundingClientRect().height;return Nt(Oe),m(Se=>[{toastId:c.id,height:Oe,position:c.position},...Se]),()=>m(Se=>Se.filter(Ve=>Ve.toastId!==c.id))}},[m,c.id]),P.useLayoutEffect(()=>{if(!ge)return;const Y=Be.current,Oe=Y.style.height;Y.style.height="auto";const Se=Y.getBoundingClientRect().height;Y.style.height=Oe,Nt(Se),m(Ve=>Ve.find(ze=>ze.toastId===c.id)?Ve.map(ze=>ze.toastId===c.id?{...ze,height:Se}:ze):[{toastId:c.id,height:Se,position:c.position},...Ve])},[ge,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const Z=P.useCallback(()=>{se(!0),Ct(Yt.current),m(Y=>Y.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{E(c)},zd)},[c,E,m,Yt]);P.useEffect(()=>{if(c.promise&&ve==="loading"||c.duration===1/0||c.type==="loading")return;let Y;return k||g||I?(()=>{if(Sn.current<Hn.current){const Ve=new Date().getTime()-Hn.current;ut.current=ut.current-Ve}Sn.current=new Date().getTime()})():(()=>{ut.current!==1/0&&(Hn.current=new Date().getTime(),Y=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Z()},ut.current))})(),()=>clearTimeout(Y)},[k,g,c,ve,I,Z]),P.useEffect(()=>{c.delete&&(Z(),c.onDismiss==null||c.onDismiss.call(c,c))},[Z,c.delete]);function K(){var Y;if(G!=null&&G.loading){var Oe;return P.createElement("div",{className:yt(B==null?void 0:B.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":ve==="loading"},G.loading)}return P.createElement(gd,{className:yt(B==null?void 0:B.loader,c==null||(Y=c.classNames)==null?void 0:Y.loader),visible:ve==="loading"})}const pe=c.icon||(G==null?void 0:G[ve])||hd(ve);var Le,Ke;return P.createElement("li",{tabIndex:0,ref:Be,className:yt(W,Wr,B==null?void 0:B.toast,c==null||(t=c.classNames)==null?void 0:t.toast,B==null?void 0:B[Bn],c==null||(n=c.classNames)==null?void 0:n[Bn]),"data-sonner-toast":"","data-rich-colors":(Le=c.richColors)!=null?Le:C,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":ge,"data-promise":!!c.promise,"data-swiped":rt,"data-removed":ce,"data-visible":Kt,"data-y-position":S,"data-x-position":_,"data-index":x,"data-front":rn,"data-swiping":xe,"data-dismissible":Pt,"data-type":ve,"data-invert":z,"data-swipe-out":ie,"data-swipe-direction":ee,"data-expanded":!!(k||q&&ge),"data-testid":c.testId,style:{"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":`${ce?lt:Yt.current}px`,"--initial-height":q?"auto":`${kt}px`,...N,...c.style},onDragEnd:()=>{Pe(!1),V(null),b.current=null},onPointerDown:Y=>{Y.button!==2&&(M||!Pt||(nn.current=new Date,Ct(Yt.current),Y.target.setPointerCapture(Y.pointerId),Y.target.tagName!=="BUTTON"&&(Pe(!0),b.current={x:Y.clientX,y:Y.clientY})))},onPointerUp:()=>{var Y,Oe,Se;if(ie||!Pt)return;b.current=null;const Ve=Number(((Y=Be.current)==null?void 0:Y.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mt=Number(((Oe=Be.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Se=nn.current)==null?void 0:Se.getTime()),ot=re==="x"?Ve:Mt,vt=Math.abs(ot)/ze;if((re==="x"?D.includes(Ve>0?"right":"left"):D.includes(Mt>0?"bottom":"top"))&&(Math.abs(ot)>=Md||vt>.11)){Ct(Yt.current),c.onDismiss==null||c.onDismiss.call(c,c),me(re==="x"?Ve>0?"right":"left":Mt>0?"down":"up"),Z(),_e(!0);return}else{var bt,Gr;(bt=Be.current)==null||bt.style.setProperty("--swipe-amount-x","0px"),(Gr=Be.current)==null||Gr.style.setProperty("--swipe-amount-y","0px")}gt(!1),Pe(!1),V(null)},onPointerMove:Y=>{var Oe,Se,Ve;if(!b.current||!Pt||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const ze=Y.clientY-b.current.y,ot=Y.clientX-b.current.x;!re&&(Math.abs(ot)>1||Math.abs(ze)>1)&&V(Math.abs(ot)>Math.abs(ze)?"x":"y");let vt={x:0,y:0};const Kr=bt=>1/(1.5+Math.abs(bt)/20);if(re==="y"){if(D.includes("top")||D.includes("bottom"))if(D.includes("top")&&ze<0||D.includes("bottom")&&ze>0)vt.y=ze;else{const bt=ze*Kr(ze);vt.y=Math.abs(bt)<Math.abs(ze)?bt:ze}}else if(re==="x"&&(D.includes("left")||D.includes("right")))if(D.includes("left")&&ot<0||D.includes("right")&&ot>0)vt.x=ot;else{const bt=ot*Kr(ot);vt.x=Math.abs(bt)<Math.abs(ot)?bt:ot}(Math.abs(vt.x)>0||Math.abs(vt.y)>0)&>(!0),(Se=Be.current)==null||Se.style.setProperty("--swipe-amount-x",`${vt.x}px`),(Ve=Be.current)==null||Ve.style.setProperty("--swipe-amount-y",`${vt.y}px`)}},Hr&&!c.jsx&&ve!=="loading"?P.createElement("button",{"aria-label":oe,"data-disabled":M,"data-close-button":!0,onClick:M||!Pt?()=>{}:()=>{Z(),c.onDismiss==null||c.onDismiss.call(c,c)},className:yt(B==null?void 0:B.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Ke=G==null?void 0:G.close)!=null?Ke:xd):null,(ve||c.icon||c.promise)&&c.icon!==null&&((G==null?void 0:G[ve])!==null||c.icon)?P.createElement("div",{"data-icon":"",className:yt(B==null?void 0:B.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},ve==="loading"?c.icon||K():c.promise?K():null,ve!=="loading"?pe:null):null,P.createElement("div",{"data-content":"",className:yt(B==null?void 0:B.content,c==null||(s=c.classNames)==null?void 0:s.content)},P.createElement("div",{"data-title":"",className:yt(B==null?void 0:B.title,c==null||(i=c.classNames)==null?void 0:i.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?P.createElement("div",{"data-description":"",className:yt(H,Wn,B==null?void 0:B.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),P.isValidElement(c.cancel)?c.cancel:c.cancel&&Gn(c.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||F,onClick:Y=>{Gn(c.cancel)&&Pt&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Y),Z())},className:yt(B==null?void 0:B.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,P.isValidElement(c.action)?c.action:c.action&&Gn(c.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||A,onClick:Y=>{Gn(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Y),!Y.defaultPrevented&&Z())},className:yt(B==null?void 0:B.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Js(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Ld(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,i=s?"--mobile-offset":"--offset",a=s?Dd:Ad;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}const Vd=P.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:l,className:u,offset:f,mobileOffset:c,theme:p="light",richColors:g,duration:m,style:v,visibleToasts:y=Id,toastOptions:x,dir:w=Js(),gap:k=Nd,icons:E,customAriaLabel:C,containerAriaLabel:T="Notifications"}=t,[N,F]=P.useState([]),A=P.useMemo(()=>r?N.filter(ne=>ne.toasterId===r):N.filter(ne=>!ne.toasterId),[N,r]),W=P.useMemo(()=>Array.from(new Set([s].concat(A.filter(ne=>ne.position).map(ne=>ne.position)))),[A,s]),[H,$]=P.useState([]),[U,L]=P.useState(!1),[q,B]=P.useState(!1),[G,oe]=P.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),re=P.useRef(null),V=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),ee=P.useRef(null),me=P.useRef(!1),ge=P.useCallback(ne=>{F(ce=>{var se;return(se=ce.find(xe=>xe.id===ne.id))!=null&&se.delete||Ge.dismiss(ne.id),ce.filter(({id:xe})=>xe!==ne.id)})},[]);return P.useEffect(()=>Ge.subscribe(ne=>{if(ne.dismiss){requestAnimationFrame(()=>{F(ce=>ce.map(se=>se.id===ne.id?{...se,delete:!0}:se))});return}setTimeout(()=>{Zu.flushSync(()=>{F(ce=>{const se=ce.findIndex(xe=>xe.id===ne.id);return se!==-1?[...ce.slice(0,se),{...ce[se],...ne},...ce.slice(se+1)]:[ne,...ce]})})})}),[]),P.useEffect(()=>{if(p!=="system"){oe(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window>"u")return;const ne=window.matchMedia("(prefers-color-scheme: dark)");try{ne.addEventListener("change",({matches:ce})=>{oe(ce?"dark":"light")})}catch{ne.addListener(({matches:se})=>{try{oe(se?"dark":"light")}catch(xe){console.error(xe)}})}},[p]),P.useEffect(()=>{N.length<=1&&L(!1)},[N]),P.useEffect(()=>{const ne=ce=>{var se;if(i.length>0&&i.every(ie=>ce[ie]||ce.code===ie)){var Pe;L(!0),(Pe=re.current)==null||Pe.focus()}ce.code==="Escape"&&(document.activeElement===re.current||(se=re.current)!=null&&se.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[i]),P.useEffect(()=>{if(re.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,me.current=!1)}},[re.current]),P.createElement("section",{ref:n,"aria-label":C??`${T} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},W.map((ne,ce)=>{var se;const[xe,Pe]=ne.split("-");return A.length?P.createElement("ol",{key:ne,dir:w==="auto"?Js():w,tabIndex:-1,ref:re,className:u,"data-sonner-toaster":!0,"data-sonner-theme":G,"data-y-position":xe,"data-x-position":Pe,style:{"--front-toast-height":`${((se=H[0])==null?void 0:se.height)||0}px`,"--width":`${jd}px`,"--gap":`${k}px`,...v,...Ld(f,c)},onBlur:ie=>{me.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(me.current=!1,ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||me.current||(me.current=!0,ee.current=ie.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{q||L(!1)},onDragEnd:()=>L(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},A.filter(ie=>!ie.position&&ce===0||ie.position===ne).map((ie,_e)=>{var rt,gt;return P.createElement(Fd,{key:ie.id,icons:E,index:_e,toast:ie,defaultRichColors:g,duration:(rt=x==null?void 0:x.duration)!=null?rt:m,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:o,visibleToasts:y,closeButton:(gt=x==null?void 0:x.closeButton)!=null?gt:l,interacting:q,position:ne,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,closeButtonAriaLabel:x==null?void 0:x.closeButtonAriaLabel,removeToast:ge,toasts:A.filter(lt=>lt.position==ie.position),heights:H.filter(lt=>lt.position==ie.position),setHeights:$,expandByDefault:a,gap:k,expanded:U,swipeDirections:t.swipeDirections})})):null}))});var Zd=Object.defineProperty,ns=(e,t)=>Zd(e,"name",{value:t,configurable:!0});function bo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ns(bo,"setRef");function ma(...e){return t=>{let n=!1;const r=e.map(o=>{const s=bo(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():bo(e[o],null)}}}}ns(ma,"composeRefs");function be(...e){return d.useCallback(ma(...e),e)}ns(be,"useComposedRefs");var Ud=Object.defineProperty,ht=(e,t)=>Ud(e,"name",{value:t,configurable:!0});function Tt(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n,i=null,a=!1;const l=[];yo(o)&&typeof Yn=="function"&&(o=Yn(o._payload)),d.Children.forEach(o,p=>{var g;if(wa(p)){a=!0;const m=p;let v="child"in m.props?m.props.child:m.props.children;yo(v)&&typeof Yn=="function"&&(v=Yn(v._payload)),i=Bd(m,v),l.push((g=i==null?void 0:i.props)==null?void 0:g.children)}else l.push(p)}),i?i=d.cloneElement(i,void 0,l):!a&&d.Children.count(o)===1&&d.isValidElement(o)&&(i=o);const u=i?ya(i):void 0,f=be(r,u);if(!i){if(o||o===0)throw new Error(a?Kd(e):Hd(e));return o}const c=ba(s,i.props??{});return i.type!==d.Fragment&&(c.ref=r?f:u),d.cloneElement(i,c)});return t.displayName=`${e}.Slot`,t}ht(Tt,"createSlot");var vn=Tt("Slot"),ga=Symbol.for("radix.slottable");function va(e){const t=ht(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ga,t}ht(va,"createSlottable");var Bd=ht((e,t)=>{if("child"in e.props){const n=e.props.child;return d.isValidElement(n)?d.cloneElement(n,void 0,e.props.children(n.props.children)):null}return d.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ba(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}ht(ba,"mergeProps");function ya(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ht(ya,"getElementRef");function wa(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ga}ht(wa,"isSlottable");var Wd=Symbol.for("react.lazy");function yo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Wd&&"_payload"in e&&xa(e._payload)}ht(yo,"isLazyComponent");function xa(e){return typeof e=="object"&&e!==null&&"then"in e}ht(xa,"isPromiseLike");var Hd=ht(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Kd=ht(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Yn=gn[" use ".trim().toString()];function _a(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_a(e))&&(r&&(r+=" "),r+=t);return r}const qs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xs=Sa,zn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Xs(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],c=s==null?void 0:s[u];if(f===null)return null;const p=qs(f)||qs(c);return o[u][p]}),a=n&&Object.entries(n).reduce((u,f)=>{let[c,p]=f;return p===void 0||(u[c]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:p,...g}=f;return Object.entries(g).every(m=>{let[v,y]=m;return Array.isArray(y)?y.includes({...s,...a}[v]):{...s,...a}[v]===y})?[...u,c,p]:u},[]);return Xs(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
3
|
-
* @license lucide-react v1.
|
|
3
|
+
* @license lucide-react v1.41.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/const Ea=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
8
|
-
* @license lucide-react v1.
|
|
8
|
+
* @license lucide-react v1.41.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/const Gd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
13
|
-
* @license lucide-react v1.
|
|
13
|
+
* @license lucide-react v1.41.0 - ISC
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/const Yd=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
18
|
-
* @license lucide-react v1.
|
|
18
|
+
* @license lucide-react v1.41.0 - ISC
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/const Qs=e=>{const t=Yd(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
23
|
-
* @license lucide-react v1.
|
|
23
|
+
* @license lucide-react v1.41.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/var qr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
28
|
-
* @license lucide-react v1.
|
|
28
|
+
* @license lucide-react v1.41.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
32
|
*/const Jd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},qd=d.createContext({}),Xd=()=>d.useContext(qd),Qd=d.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>{const{size:u=24,strokeWidth:f=2,absoluteStrokeWidth:c=!1,color:p="currentColor",className:g=""}=Xd()??{},m=r??c?Number(n??f)*24/Number(t??u):n??f;return d.createElement("svg",{ref:l,...qr,width:t??u??qr.width,height:t??u??qr.height,stroke:e??p,strokeWidth:m,className:Ea("lucide",g,o),...!s&&!Jd(a)&&{"aria-hidden":"true"},...a},[...i.map(([v,y])=>d.createElement(v,y)),...Array.isArray(s)?s:[s]])});/**
|
|
33
|
-
* @license lucide-react v1.
|
|
33
|
+
* @license lucide-react v1.41.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/const qe=(e,t)=>{const n=d.forwardRef(({className:r,...o},s)=>d.createElement(Qd,{ref:s,iconNode:t,className:Ea(`lucide-${Gd(Qs(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Qs(e),n};/**
|
|
38
|
-
* @license lucide-react v1.
|
|
38
|
+
* @license lucide-react v1.41.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/const ef=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],tf=qe("book-open",ef);/**
|
|
43
|
-
* @license lucide-react v1.
|
|
43
|
+
* @license lucide-react v1.41.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/const nf=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rf=qe("check",nf);/**
|
|
48
|
-
* @license lucide-react v1.
|
|
48
|
+
* @license lucide-react v1.41.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/const of=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sf=qe("chevron-right",of);/**
|
|
53
|
-
* @license lucide-react v1.
|
|
53
|
+
* @license lucide-react v1.41.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/const af=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cf=qe("circle",af);/**
|
|
58
|
-
* @license lucide-react v1.
|
|
58
|
+
* @license lucide-react v1.41.0 - ISC
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/const lf=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],uf=qe("key-round",lf);/**
|
|
63
|
-
* @license lucide-react v1.
|
|
63
|
+
* @license lucide-react v1.41.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/const df=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],ff=qe("layout-grid",df);/**
|
|
68
|
-
* @license lucide-react v1.
|
|
68
|
+
* @license lucide-react v1.41.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
72
|
*/const pf=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],hf=qe("log-out",pf);/**
|
|
73
|
-
* @license lucide-react v1.
|
|
73
|
+
* @license lucide-react v1.41.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/const mf=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],gf=qe("monitor",mf);/**
|
|
78
|
-
* @license lucide-react v1.
|
|
78
|
+
* @license lucide-react v1.41.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
82
|
*/const vf=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],bf=qe("moon",vf);/**
|
|
83
|
-
* @license lucide-react v1.
|
|
83
|
+
* @license lucide-react v1.41.0 - ISC
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the ISC license.
|
|
86
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
87
87
|
*/const yf=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],wf=qe("panel-left",yf);/**
|
|
88
|
-
* @license lucide-react v1.
|
|
88
|
+
* @license lucide-react v1.41.0 - ISC
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
92
|
*/const xf=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ca=qe("settings",xf);/**
|
|
93
|
-
* @license lucide-react v1.
|
|
93
|
+
* @license lucide-react v1.41.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
97
|
*/const _f=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Sf=qe("sun",_f);/**
|
|
98
|
-
* @license lucide-react v1.
|
|
98
|
+
* @license lucide-react v1.41.0 - ISC
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the ISC license.
|
|
101
101
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
102
|
*/const Ef=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Cf=qe("users",Ef);/**
|
|
103
|
-
* @license lucide-react v1.
|
|
103
|
+
* @license lucide-react v1.41.0 - ISC
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the ISC license.
|
|
106
106
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -195,4 +195,4 @@ ${n.join(`
|
|
|
195
195
|
|
|
196
196
|
`)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()};let i;const a=Sr,l=!_t.jitless,f=l&&fb.value,c=t.catchall;let p;e._zod.parse=(g,m)=>{p??(p=r.value);const v=g.value;return a(v)?l&&f&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(i||(i=s(t.shape)),g=i(g,m),c?yu([],v,g,m,p,e):g):n(g,m):(g.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),g)}});function Wi(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!un(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>wn(i,r,Ht())))}),t)}const bw=R("$ZodUnion",(e,t)=>{Te.init(e,t),de(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),de(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),de(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),de(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){const o=r.def.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>js(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let s=!1;const i=[];for(const a of t.options){const l=a._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)i.push(l),s=!0;else{if(l.issues.length===0)return l;i.push(l)}}return s?Promise.all(i).then(a=>Wi(a,r,e,o)):Wi(i,r,e,o)}}),yw=R("$ZodIntersection",(e,t)=>{Te.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([l,u])=>Hi(n,l,u)):Hi(n,s,i)}});function Go(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Nn(e)&&Nn(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(const s of r){if(s==="__proto__")continue;const i=Go(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=Go(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Hi(e,t,n){const r=new Map;let o;const s=new Map,i=(u,f)=>{var p,g;let c;if(u.code==="unrecognized_keys"&&!((p=u.path)!=null&&p.length))o??(o=u),c=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&((g=u.path)==null?void 0:g.length)===1){const m=String(u.path[0]);s.has(m)||s.set(m,u),c=[m]}else return!1;for(const m of c)r.has(m)||r.set(m,{}),r.get(m)[f]=!0;return!0};for(const u of t.issues)i(u,"l")||e.issues.push(u);for(const u of n.issues)i(u,"r")||e.issues.push(u);const a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){const u=o?a.filter(f=>o.keys.includes(f)):[];u.length&&e.issues.push({...o,keys:u});for(const f of a)!u.includes(f)&&s.has(f)&&e.issues.push(s.get(f))}const l=Go(t.value,n.value);if(!l.valid){if(un(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}const ww=R("$ZodEnum",(e,t)=>{Te.init(e,t);const n=tu(t.entries),r=new Set(n);e._zod.values=r;const o=n.filter(s=>pb.has(typeof s));e._zod.pattern=new RegExp(o.length?`^(${o.map(s=>Lr(s.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(s,i)=>{const a=s.value;return r.has(a)||s.issues.push({code:"invalid_value",values:n,input:a,inst:e}),s}}),xw=R("$ZodTransform",(e,t)=>{var n;Te.init(e,t),e._zod.optin="optional",(n=_t.memoizer)==null||n.guard(e),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new au(e.constructor.name);const s=t.transform(r.value,r);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(a=>(r.value=a,r));if(s instanceof Promise)throw new pn;return r.value=s,r}});function Ki(e,t){return e.value=t.issues.length?void 0:t.value,e}const wu=R("$ZodOptional",(e,t)=>{Te.init(e,t),de(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",de(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),de(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${js(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>Ki(n,s)):Ki(n,o)}return t.innerType._zod.run(n,r)}}),_w=R("$ZodExactOptional",(e,t)=>{wu.init(e,t),de(e,"values",n=>n.def.innerType._zod.values),de(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Sw=R("$ZodNullable",(e,t)=>{Te.init(e,t),de(e,"optin",n=>n.def.innerType._zod.optin),de(e,"optout",n=>n.def.innerType._zod.optout),de(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${js(r.source)}|null)$`):void 0}),de(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ew=R("$ZodDefault",(e,t)=>{Te.init(e,t),e._zod.optin="defaulted",de(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Gi(s,t)):Gi(o,t)}});function Gi(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Cw=R("$ZodPrefault",(e,t)=>{Te.init(e,t),e._zod.optin="defaulted",de(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),kw=R("$ZodNonOptional",(e,t)=>{Te.init(e,t),de(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Yi(s,e)):Yi(o,e)}});function Yi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function Ji(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>wn(o,r,Ht()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}const Pw=R("$ZodCatch",(e,t)=>{Te.init(e,t),de(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),de(e,"optout",n=>n.def.innerType._zod.optout),de(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(s=>Ji(n,s,t,r)):Ji(n,o,t,r)}}),Ow=R("$ZodPipe",(e,t)=>{Te.init(e,t),de(e,"values",n=>n.def.in._zod.values),de(e,"optin",n=>n.def.in._zod.optin),de(e,"optout",n=>n.def.out._zod.optout),de(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>or(i,t.in,r)):or(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>or(s,t.out,r)):or(o,t.out,r)}});function or(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Rw=R("$ZodReadonly",(e,t)=>{Te.init(e,t),de(e,"propValues",n=>n.def.innerType._zod.propValues),de(e,"values",n=>n.def.innerType._zod.values),de(e,"optin",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optin}),de(e,"optout",n=>{var r,o;return(o=(r=n.def.innerType)==null?void 0:r._zod)==null?void 0:o.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(qi):qi(o)}});function qi(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Tw=R("$ZodCustom",(e,t)=>{Et.init(e,t),Te.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>Xi(s,n,r,e));Xi(o,n,r,e)}});function Xi(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Mn(o))}}class Iw extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}const Yo="~memo",Qi=[];function vo(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}const ea=new WeakMap;function xu(e,t){const n=ea.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let r=!1;const o=a=>{!r&&(a!=null&&a._zod)&&xu(a,t)&&(r=!0)},s=e._zod.def;switch(s.type){case"object":{for(const a of Reflect.ownKeys(s.shape))o(s.shape[a]);o(s.catchall);break}case"array":o(s.element);break;case"tuple":for(const a of s.items)o(a);o(s.rest);break;case"record":case"map":o(s.keyType),o(s.valueType);break;case"set":o(s.valueType);break;case"union":for(const a of s.options)o(a);break;case"intersection":o(s.left),o(s.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(s.innerType);break;case"pipe":o(s.in),o(s.out);break;case"function":o(s.input),o(s.output);break;case"lazy":o(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const a in s){const l=Object.getOwnPropertyDescriptor(s,a);if(!l||l.get)continue;const u=l.value;if(!(!u||typeof u!="object")){if(u._zod)o(u);else if(Array.isArray(u))for(const f of u)o(f)}}}return t.delete(e),ea.set(e,r),r}function Aw(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}let sr;const ir=[],Dw={alloc(e,t,n){const r=sr;if(!r)return n;sr=void 0;const o={value:n,issues:null};return r.set(t.value,o),ir.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(o,s)=>{if(s.direction!=="backward"&&Nw(s,o.value))throw new Iw;return n(o,s)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,i=(a,l)=>{if(n===void 0&&(n=xu(e,new Set),!n))return e._zod.parse=s,e._zod.run===i&&(e._zod.run=s),s(a,l);const u=a.value;if(u===null||typeof u!="object")return s(a,l);let f=l[Yo];f||(f={buckets:new Map,backEdges:void 0},l[Yo]=f);let c;r===l?c=o:(c=Aw(f,e),r=l,o=c);const p=c.get(u);if(p)return a.value=p.value,p.issues?p.issues.length&&a.issues.push(...vo(p.issues)):(a.memo=!0,f.backEdges??(f.backEdges=new Set),f.backEdges.add(p.value)),a;sr=c;const g=ir.length,m=s(a,l);sr=void 0;const v=ir.length>g?ir.pop():void 0;return m instanceof Promise?m.then(y=>(v&&(v.issues=y.issues.length?vo(y.issues):Qi),y)):(v&&(v.issues=m.issues.length?vo(m.issues):Qi),m)};e._zod.parse=i,e._zod.run===s&&(e._zod.run=i)})}};function jw(){return Dw}function Nw(e,t){var r;const n=(r=e[Yo])==null?void 0:r.backEdges;return n!==void 0&&t!==null&&typeof t=="object"&&n.has(t)}const Mw=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(s){return e[s]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(s,i){return s==="number"&&typeof i=="number"&&!Number.isFinite(i)?String(i):r[s]??s}return s=>{switch(s.code){case"invalid_type":{const i=o(s.expected),a=Sb(s.input),l=o(a,s.input);return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return s.values.length===1?`Invalid input: expected ${ou(s.values[0])}`:`Invalid option: expected one of ${Ni(s.values,"|")}`;case"too_big":{const i=s.exact?"exactly ":s.inclusive?"<=":"<",a=t(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${i}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${i}${s.maximum.toString()}`}case"too_small":{const i=s.exact?"exactly ":s.inclusive?">=":">",a=t(s.origin);return a?`Too small: expected ${s.origin} to have ${i}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${i}${s.minimum.toString()}`}case"invalid_format":{const i=s;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${Ni(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Invalid discriminator value. Expected ${s.options.map(a=>`'${a}'`).join(" | ")}`:s.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function zw(){return{localeError:Mw()}}var ta;class $w{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Fw(){return new $w}(ta=globalThis).__zod_globalRegistry??(ta.__zod_globalRegistry=Fw());const On=globalThis.__zod_globalRegistry;function Lw(e,t){return new e({type:"string",...X(t)})}function Vw(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...X(t)})}function Zw(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...X(t)})}function Uw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...X(t)})}function Bw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...X(t)})}function Ww(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...X(t)})}function Hw(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...X(t)})}function Kw(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...X(t)})}function Gw(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...X(t)})}function Yw(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...X(t)})}function Jw(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...X(t)})}function qw(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...X(t)})}function Xw(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...X(t)})}function Qw(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...X(t)})}function ex(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...X(t)})}function tx(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...X(t)})}function nx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...X(t)})}function rx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...X(t)})}function ox(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...X(t)})}function sx(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...X(t)})}function ix(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...X(t)})}function ax(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...X(t)})}function cx(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...X(t)})}function lx(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...X(t)})}function ux(e,t){return new e({type:"string",format:"date",check:"string_format",...X(t)})}function dx(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...X(t)})}function fx(e,t){return new e({type:"string",format:"duration",check:"string_format",...X(t)})}function px(e,t){return new e({type:"boolean",...X(t)})}function hx(e){return new e({type:"unknown"})}function mx(e,t){return new e({type:"never",...X(t)})}function _u(e,t){return new xy({check:"max_length",...X(t),maximum:e})}function Cr(e,t){return new _y({check:"min_length",...X(t),minimum:e})}function Su(e,t){return new Sy({check:"length_equals",...X(t),length:e})}function gx(e,t){return new Ey({check:"string_format",format:"regex",...X(t),pattern:e})}function vx(e){return new Cy({check:"string_format",format:"lowercase",...X(e)})}function bx(e){return new ky({check:"string_format",format:"uppercase",...X(e)})}function yx(e,t){return new Py({check:"string_format",format:"includes",...X(t),includes:e})}function wx(e,t){return new Oy({check:"string_format",format:"starts_with",...X(t),prefix:e})}function xx(e,t){return new Ry({check:"string_format",format:"ends_with",...X(t),suffix:e})}function xn(e){return new Ty({check:"overwrite",tx:e})}function _x(e){return xn(t=>t.normalize(e))}function Sx(){return xn(e=>e.trim())}function Ex(){return xn(e=>e.toLowerCase())}function Cx(){return xn(e=>e.toUpperCase())}function kx(){return xn(e=>db(e))}function Px(e,t,n){return new e({type:"array",element:t,...X(n)})}function Ox(e,t,n){return new e({type:"custom",check:"custom",fn:t,...X(n)})}function Rx(e,t){const n=Tx(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Mn(o,r.value,n._zod.def));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Mn(s))}},e(r.value,r)),t);return n}function Tx(e,t){const n=new Et({check:"custom",...X(t)});return n._zod.check=e,n}function Tn(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&tt(e,r,n[r]);return e}function Eu(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??On,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",intersections:[],deferred:[],external:(e==null?void 0:e.external)??void 0}}function Un(e,t,n,r,o){const s=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(s==="any")return!1;if(s===void 0||s==="throw")throw new Error(o);return Object.assign(n,s),!0}function Fe(e,t,n={path:[],schemaPath:[]}){var f,c;var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const a=(c=(f=e._zod).toJSONSchema)==null?void 0:c.call(f);if(a)i.schema=a;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const m=i.schema,v=t.processors[o.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);v(e,t,m,p)}const g=e._zod.parent;g&&(i.ref||(i.ref=g),Fe(g,t,p),t.seen.get(g).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Tn(i.schema,l),t.io==="input"&&We(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function na(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Cu(e,t){var i,a,l,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const f of e.seen.entries()){const c=(i=e.metadataRegistry.get(f[0]))==null?void 0:i.id;if(c){const p=r.get(c);if(p&&p!==f[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(c,f[0])}}const o=f=>{var v;const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=(v=e.external.registry.get(f[0]))==null?void 0:v.id,x=e.external.uri??(k=>k);if(y)return{ref:x(y)};const w=f[1].defId??f[1].schema.id??`schema${e.counter++}`;return f[1].defId=w,{defId:w,ref:`${x("__shared")}#/${c}/${na(w)}`}}const p="#",g=`${p}/${c}/`;if(f[1]===n&&!f[1].schema.id)return{ref:p};const m=f[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:g+na(m)}},s=f=>{if(f[1].schema.$ref)return;const c=f[1],{ref:p,defId:g}=o(f);c.def={...c.schema},g&&(c.defId=g);const m=c.schema;for(const v in m)delete m[v];m.$ref=p};if(e.cycles==="throw")for(const f of e.seen.entries()){const c=f[1];if(c.cycle)throw new Error(`Cycle detected: #/${(a=c.cycle)==null?void 0:a.join("/")}/<root>
|
|
197
197
|
|
|
198
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const f of e.seen.entries()){const c=f[1];if(t===f[0]){s(f);continue}if(e.external){const g=(l=e.external.registry.get(f[0]))==null?void 0:l.id;if(t!==f[0]&&g){s(f);continue}}if((u=e.metadataRegistry.get(f[0]))==null?void 0:u.id){s(f);continue}if(c.cycle){s(f);continue}if(c.count>1&&e.reused==="ref"){s(f);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function ku(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;ku(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const s=r.type;for(const i of Array.isArray(s)?s:[s]){if(typeof i!="string")return;n.includes(i)||n.push(i)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const Pu=new Set(["type","properties","required","additionalProperties"]),ra=["oneOf","anyOf"];function oa(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Jo(e){var s;const t=[];for(const i of e){if(typeof i!="object"||i.type!=="object")return null;for(const a in i)if(!Pu.has(a))return null;t.push(i)}const n={},r=new Set;for(const i of t){for(const a in i.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;const l=[];for(const f of t){const c=((s=f.properties)==null?void 0:s[a])??oa(f);c!=null&&(l.some(p=>JSON.stringify(p)===JSON.stringify(c))||l.push(c))}const u=l.length===1?l[0]:Jo(l)??{allOf:l};tt(n,a,u)}for(const a of i.required??[])r.add(a)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{const i=[];for(const a of t){const l=oa(a);l&&!i.some(u=>JSON.stringify(u)===JSON.stringify(l))&&i.push(l)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function Ix(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of Pu)if(o in e)return;const n=t.filter(o=>ra.some(s=>Array.isArray(o[s])));let r=null;if(!n.length)r=Jo(t);else{const o=n[0],s=ra.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;const i=t.filter(l=>l!==o),a=o[s].map(l=>Jo([...i,l]));if(a.some(l=>!l))return;r={[s]:a}}r&&(delete e.allOf,Tn(e,r))}function Ou(e,t){var a,l,u,f;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const p=e.seen.get(c);if(p.ref===null)return;const g=p.def??p.schema,m={...g},v=p.ref;if(p.ref=null,v){r(v);const x=e.seen.get(v),w=x.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(g.allOf=g.allOf??[],g.allOf.push(w)):Tn(g,w),Tn(g,m),c._zod.parent===v)for(const E in g)E==="$ref"||E==="allOf"||E in m||delete g[E];if(w.$ref&&x.def)for(const E in g)E==="$ref"||E==="allOf"||E in x.def&&JSON.stringify(g[E])===JSON.stringify(x.def[E])&&delete g[E]}const y=c._zod.parent;if(y&&y!==v){r(y);const x=e.seen.get(y);if(x!=null&&x.schema.$ref&&(g.$ref=x.schema.$ref,x.def))for(const w in g)w==="$ref"||w==="allOf"||w in x.def&&JSON.stringify(g[w])===JSON.stringify(x.def[w])&&delete g[w]}e.override({zodSchema:c,jsonSchema:g,path:p.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const c of[...e.seen.entries()].reverse())r(c[0]);if(e.target!=="openapi-3.0")for(const c of e.seen.entries())ku(c[1].def??c[1].schema);for(const c of e.deferred)c();if(e.intersections.length){const c=new Map;for(const p of e.seen.values())for(const g of[p.schema,p.def]){const m=g==null?void 0:g.allOf;if(!Array.isArray(m))continue;const v=c.get(m);v?v.push(g):c.set(m,[g])}for(const p of e.intersections)for(const g of c.get(p)??[])Ix(g)}}const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const c=(l=e.external.registry.get(t))==null?void 0:l.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Tn(o,n.defId?n.schema:n.def??n.schema);const s=(u=e.metadataRegistry.get(t))==null?void 0:u.id;s!==void 0&&o.id===s&&delete o.id;const i=((f=e.external)==null?void 0:f.defs)??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const c of e.seen.entries()){const p=c[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,tt(i,p.defId,p.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:kr(t,"input",e.processors),output:kr(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function We(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return We(r.element,n);if(r.type==="set")return We(r.valueType,n);if(r.type==="lazy")return We(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"||r.type==="catch")return We(r.innerType,n);if(r.type==="intersection")return We(r.left,n)||We(r.right,n);if(r.type==="record"||r.type==="map")return We(r.keyType,n)||We(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:We(r.in,n)||We(r.out,n);if(r.type==="object"){for(const o in r.shape)if(We(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(We(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(We(o,n))return!0;return!!(r.rest&&We(r.rest,n))}return!1}const Ax=(e,t={})=>n=>{const r=Eu({...n,processors:t});return Fe(e,r),Cu(r,e),Ou(r,e)},kr=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=Eu({...o??{},target:s,io:t,processors:n});return Fe(e,i),Cu(i,e),Ou(i,e)},Dx={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jx=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:l,contentEncoding:u,laxFormat:f}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=Dx[a]??a,o.format===""&&delete o.format,(a==="time"||f)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Nx=(e,t,n,r)=>{n.type="boolean"},Mx=(e,t,n,r)=>{n.not={}},zx=(e,t,n,r)=>{},$x=(e,t,n,r)=>{const o=e._zod.def,s=tu(o.entries);if(s.length===0){n.not={};return}s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},Fx=(e,t,n,r)=>{Un(e,t,n,r,"Custom types cannot be represented in JSON Schema")},Lx=(e,t,n,r)=>{Un(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Vx=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Fe(s.element,t,{...r,path:[...r.path,"items"]})};function qo(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?qo(t.out):t.type==="catch"?qo(t.innerType):e._zod.optin}const Zx=(e,t,n,r)=>{var f;const o=n,s=e._zod.def,i=s.shape;if(Object.getOwnPropertySymbols(i).length&&Un(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const c in i)tt(o.properties,c,Fe(i[c],t,{...r,path:[...r.path,"properties",c]}));const l=new Set(Object.keys(i)),u=new Set([...l].filter(c=>{const p=s.shape[c];return t.io==="input"?qo(p)===void 0:p._zod.optout===void 0}));u.size>0&&(o.required=Array.from(u)),((f=s.catchall)==null?void 0:f._zod.def.type)==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Fe(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Ux=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,l)=>Fe(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",l]}));s?n.oneOf=i:n.anyOf=i},Bx=(e,t,n,r)=>{const o=e._zod.def,s=Fe(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Fe(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=l,t.intersections.push(l)},Wx=(e,t,n,r)=>{const o=e._zod.def,s=Fe(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},Hx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Vs=Symbol();function Ru(e,t,n,r,o){let s=!1;const i=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(s=!0,null));return s?(Un(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Vs):JSON.parse(i)}const Kx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;const i=Ru(o.defaultValue,e,t,n,r);i!==Vs&&(n.default=i)},Gx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);if(s.ref=o.innerType,t.io!=="input")return;const i=Ru(o.defaultValue,e,t,n,r);i!==Vs&&(n._prefault=i)},Yx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{Un(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i},Jx=(e,t,n,r)=>{const o=e._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?s?o.out:o.in:o.out;Fe(i,t,r);const a=t.seen.get(e);a.ref=i},qx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},Tu=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},sa=new WeakSet([Object.prototype,Error.prototype]);function ar(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const Xx=(e,t)=>{lu.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);sa.has(n)||(sa.add(n),ar(n,"format",r=>o=>zb(r,o)),ar(n,"flatten",r=>o=>Mb(r,o)),ar(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Ho,2)}),ar(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Ho,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ct=R("ZodError",Xx,void 0,{Parent:Error}),Qx=zs(ct),e0=$s(ct),t0=Zr(ct),n0=Ur(ct),r0=Lb(ct),o0=Vb(ct),s0=Zb(ct),i0=Ub(ct),a0=Bb(ct),c0=Wb(ct),l0=Hb(ct),u0=Kb(ct);function d0(){_t.localeError||Ht(zw())}function Zs(){_t.memoizer||Ht({memoizer:jw()})}const Ie=R("ZodType",(e,t)=>(d0(),Te.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Bt(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Wt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(c_(e,t))},superRefine(e,t){return this.check(l_(e,t))},overwrite(e){return this.check(xn(e))},optional(){return ca(this)},exactOptional(){return J0(this)},nullable(){return la(this)},nullish(){return ca(la(this))},nonoptional(e){return n_(this,e)},array(){return L0(this)},or(e){return B0([this,e])},and(e){return H0(this,e)},transform(e){return ua(this,Y0(e))},default(e){return Q0(this,e)},prefault(e){return t_(this,e)},catch(e){return o_(this,e)},pipe(e){return ua(this,e)},readonly(){return a_(this)},describe(e){const t=this.clone();return On.add(t,{description:e}),t},meta(...e){if(e.length===0)return On.get(this);const t=this.clone();return On.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return iu(this,"~standard",{...pu(this),jsonSchema:{input:kr(this,"input"),output:kr(this,"output")}})},set"~standard"(e){mn(this,"~standard",e)},parse:function e(t,n){return Qx(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await e0(this,t,n,{callee:e})},safeParse(e,t){return t0(this,e,t)},async safeParseAsync(e,t){return n0(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){mn(this,"spa",e)},encode:function e(t,n){return r0(this,t,n,{callee:e})},decode:function e(t,n){return o0(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await s0(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await i0(this,t,n,{callee:e})},safeEncode(e,t){return a0(this,e,t)},safeDecode(e,t){return c0(this,e,t)},async safeEncodeAsync(e,t){return l0(this,e,t)},async safeDecodeAsync(e,t){return u0(this,e,t)},toJSONSchema(e){return Ax(this,{})(e)},get description(){var e;return(e=On.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),Iu=R("_ZodString",(e,t)=>{Ls.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(r,o,s)=>jx(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(gx(...e))},includes(...e){return this.check(yx(...e))},startsWith(...e){return this.check(wx(...e))},endsWith(...e){return this.check(xx(...e))},min(...e){return this.check(Cr(...e))},max(...e){return this.check(_u(...e))},length(...e){return this.check(Su(...e))},nonempty(...e){return this.check(Cr(1,...e))},lowercase(e){return this.check(vx(e))},uppercase(e){return this.check(bx(e))},trim(){return this.check(Sx())},normalize(...e){return this.check(_x(...e))},toLowerCase(){return this.check(Ex())},toUpperCase(){return this.check(Cx())},slugify(){return this.check(kx())}}),f0=R("ZodString",(e,t)=>{Ls.init(e,t),Iu.init(e,t)},{email(e){return this.check(Vw(v0,e))},url(e){return this.check(Kw(y0,e))},jwt(e){return this.check(cx(j0,e))},emoji(e){return this.check(Gw(w0,e))},guid(e){return this.check(Zw(b0,e))},uuid(e){return this.check(Uw(cr,e))},uuidv4(e){return this.check(Bw(cr,e))},uuidv6(e){return this.check(Ww(cr,e))},uuidv7(e){return this.check(Hw(cr,e))},nanoid(e){return this.check(Yw(x0,e))},cuid(e){return this.check(Jw(_0,e))},cuid2(e){return this.check(qw(S0,e))},ulid(e){return this.check(Xw(E0,e))},base64(e){return this.check(sx(I0,e))},base64url(e){return this.check(ix(A0,e))},xid(e){return this.check(Qw(C0,e))},ksuid(e){return this.check(ex(k0,e))},ipv4(e){return this.check(tx(P0,e))},ipv6(e){return this.check(nx(O0,e))},cidrv4(e){return this.check(rx(R0,e))},cidrv6(e){return this.check(ox(T0,e))},e164(e){return this.check(ax(D0,e))},datetime(e){return this.check(lx(p0,e))},date(e){return this.check(ux(h0,e))},time(e){return this.check(dx(m0,e))},duration(e){return this.check(fx(g0,e))}});function ia(e){return Lw(f0,e)}const we=R("ZodStringFormat",(e,t)=>{ye.init(e,t),Iu.init(e,t)}),p0=R("ZodISODateTime",(e,t)=>{Yy.init(e,t),we.init(e,t)}),h0=R("ZodISODate",(e,t)=>{Jy.init(e,t),we.init(e,t)}),m0=R("ZodISOTime",(e,t)=>{qy.init(e,t),we.init(e,t)}),g0=R("ZodISODuration",(e,t)=>{Xy.init(e,t),we.init(e,t)}),v0=R("ZodEmail",(e,t)=>{Ny.init(e,t),we.init(e,t)}),b0=R("ZodGUID",(e,t)=>{Dy.init(e,t),we.init(e,t)}),cr=R("ZodUUID",(e,t)=>{jy.init(e,t),we.init(e,t)}),y0=R("ZodURL",(e,t)=>{Vy.init(e,t),we.init(e,t)}),w0=R("ZodEmoji",(e,t)=>{Zy.init(e,t),we.init(e,t)}),x0=R("ZodNanoID",(e,t)=>{Uy.init(e,t),we.init(e,t)}),_0=R("ZodCUID",(e,t)=>{By.init(e,t),we.init(e,t)}),S0=R("ZodCUID2",(e,t)=>{Wy.init(e,t),we.init(e,t)}),E0=R("ZodULID",(e,t)=>{Hy.init(e,t),we.init(e,t)}),C0=R("ZodXID",(e,t)=>{Ky.init(e,t),we.init(e,t)}),k0=R("ZodKSUID",(e,t)=>{Gy.init(e,t),we.init(e,t)}),P0=R("ZodIPv4",(e,t)=>{Qy.init(e,t),we.init(e,t)}),O0=R("ZodIPv6",(e,t)=>{tw.init(e,t),we.init(e,t)}),R0=R("ZodCIDRv4",(e,t)=>{nw.init(e,t),we.init(e,t)}),T0=R("ZodCIDRv6",(e,t)=>{ow.init(e,t),we.init(e,t)}),I0=R("ZodBase64",(e,t)=>{sw.init(e,t),we.init(e,t)}),A0=R("ZodBase64URL",(e,t)=>{aw.init(e,t),we.init(e,t)}),D0=R("ZodE164",(e,t)=>{cw.init(e,t),we.init(e,t)}),j0=R("ZodJWT",(e,t)=>{uw.init(e,t),we.init(e,t)}),N0=R("ZodBoolean",(e,t)=>{dw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Nx(e,n,r)});function Z_(e){return px(N0,e)}const M0=R("ZodUnknown",(e,t)=>{fw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zx()});function aa(){return hx(M0)}const z0=R("ZodNever",(e,t)=>{pw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mx(e,n,r)});function $0(e){return mx(z0,e)}const F0=R("ZodArray",(e,t)=>{Zs(),hw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vx(e,n,r,o),e.element=t.element},{min(e,t){return this.check(Cr(e,t))},nonempty(e){return this.check(Cr(1,e))},max(e,t){return this.check(_u(e,t))},length(e,t){return this.check(Su(e,t))},unwrap(){return this.element}});function L0(e,t){return Px(F0,e,t)}const V0=R("ZodObject",(e,t)=>{Zs(),vw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zx(e,n,r,o),Ob(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return K0(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:aa()})},loose(){return this.clone({...this._zod.def,catchall:aa()})},strict(){return this.clone({...this._zod.def,catchall:$0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return vb(this,e)},safeExtend(e){return bb(this,e)},merge(e){return yb(this,e)},pick(e){return mb(this,e)},omit(e){return gb(this,e)},partial(...e){return Mi(Au,this,e[0])},exactPartial(...e){return Mi(Du,this,e[0],"exactPartial")},required(...e){return wb(ju,this,e[0])}});function Z0(e,t){const n={type:"object",shape:e??{},...X(t)};return new V0(n)}const U0=R("ZodUnion",(e,t)=>{bw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ux(e,n,r,o),e.options=t.options});function B0(e,t){return new U0({type:"union",options:e,...X(t)})}const W0=R("ZodIntersection",(e,t)=>{yw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bx(e,n,r,o)});function H0(e,t){return new W0({type:"intersection",left:e,right:t})}const Xo=R("ZodEnum",(e,t)=>{ww.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(r,o,s)=>$x(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Xo({...t,checks:[],...X(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Xo({...t,checks:[],...X(o),entries:s})}});function K0(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Xo({type:"enum",entries:n,...X(t)})}const G0=R("ZodTransform",(e,t)=>{Zs(),xw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lx(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new au(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Mn(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Mn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Y0(e){return new G0({type:"transform",transform:e})}const Au=R("ZodOptional",(e,t)=>{wu.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tu(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ca(e){return new Au({type:"optional",innerType:e})}const Du=R("ZodExactOptional",(e,t)=>{_w.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tu(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function J0(e){return new Du({type:"optional",innerType:e})}const q0=R("ZodNullable",(e,t)=>{Sw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function la(e){return new q0({type:"nullable",innerType:e})}const X0=R("ZodDefault",(e,t)=>{Ew.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q0(e,t){return new X0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ru(t)}})}const e_=R("ZodPrefault",(e,t)=>{Cw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function t_(e,t){return new e_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ru(t)}})}const ju=R("ZodNonOptional",(e,t)=>{kw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function n_(e,t){return new ju({type:"nonoptional",innerType:e,...X(t)})}const r_=R("ZodCatch",(e,t)=>{Pw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function o_(e,t){return new r_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Tb(t)})}const s_=R("ZodPipe",(e,t)=>{Ow.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jx(e,n,r,o),e.in=t.in,e.out=t.out});function ua(e,t){return new s_({type:"pipe",in:e,out:t})}const i_=R("ZodReadonly",(e,t)=>{Rw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function a_(e){return new i_({type:"readonly",innerType:e})}const Nu=R("ZodCustom",(e,t)=>{Tw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fx(e,n,r,o)});function c_(e,t={}){return Ox(Nu,e,t)}function l_(e,t){return Rx(e,t)}function U_(e,t={}){const n=new Nu({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...X(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var u_=Object.defineProperty,d_=(e,t)=>u_(e,"name",{value:t,configurable:!0}),f_=d.forwardRef(d_(function(t,n){return h.jsx(ke.label,{...t,ref:n,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),Mu=f_;const p_=zn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qo=d.forwardRef(({className:e,...t},n)=>h.jsx(Mu,{ref:n,className:J(p_(),e),...t}));Qo.displayName=Mu.displayName;const h_=zn("rounded-lg bg-card text-card-foreground",{variants:{level:{0:"",1:"shadow-card-1",2:"shadow-card-2",3:"shadow-card-3",4:"shadow-card-4"}},defaultVariants:{level:2}}),zu=d.forwardRef(({className:e,level:t,...n},r)=>h.jsx("div",{ref:r,className:J(h_({level:t}),e),...n}));zu.displayName="Card";const $u=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("flex flex-col space-y-1.5 p-6",e),...t}));$u.displayName="CardHeader";const Fu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("text-2xl font-semibold leading-none tracking-tight",e),...t}));Fu.displayName="CardTitle";const Lu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("text-sm text-muted-foreground",e),...t}));Lu.displayName="CardDescription";const Vu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("p-6 pt-0",e),...t}));Vu.displayName="CardContent";const m_=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("flex items-center p-6 pt-0",e),...t}));m_.displayName="CardFooter";const g_=Z0({email:ia().email(),password:ia().min(8)});function v_(){const e=es(),{resolvedTheme:t}=Pr(),n=t==="dark"?"/logo-dark.svg":"/logo.svg";d.useEffect(()=>{fetch("/api/v1/auth/status").then(u=>u.json()).then(({initialized:u})=>{u||e("/setup",{replace:!0})}).catch(()=>{})},[e]);const{register:r,handleSubmit:o,setError:s,formState:{errors:i,isSubmitting:a}}=ob({resolver:cb(g_),mode:"onBlur"});async function l(u){try{const{status:f}=await zl.post("/api/v1/auth/login",{email:u.email,password:u.password});if(f!==200){s("root",{message:"Invalid email or password"});return}e("/app-center",{replace:!0})}catch{s("root",{message:"Network error. Please try again."})}}return h.jsx("div",{className:"flex min-h-svh items-center justify-center overflow-hidden p-4",children:h.jsxs("div",{className:"flex flex-col items-center gap-6 w-full max-w-sm",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("img",{src:n,alt:"tapflow",className:"w-6 h-6"}),h.jsx("span",{className:"text-base font-semibold tracking-tight",children:"tapflow"})]}),h.jsxs(zu,{level:4,className:"w-full",children:[h.jsxs($u,{className:"text-center",children:[h.jsx(Fu,{className:"text-2xl tracking-display-md",children:"Welcome back"}),h.jsx(Lu,{children:"Sign in to your team workspace"})]}),h.jsx(Vu,{children:h.jsxs("form",{onSubmit:o(l),className:"flex flex-col gap-4",children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(Qo,{htmlFor:"email",children:"Email"}),h.jsx(yr,{id:"email",type:"email",placeholder:"you@company.com",autoComplete:"email",...r("email")}),i.email&&h.jsx("p",{className:"text-sm text-destructive",children:i.email.message})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(Qo,{htmlFor:"password",children:"Password"}),h.jsx(yr,{id:"password",type:"password",autoComplete:"current-password",...r("password")}),i.password&&h.jsx("p",{className:"text-sm text-destructive",children:i.password.message})]}),i.root&&h.jsx("p",{className:"text-sm text-destructive",children:i.root.message}),h.jsx(Or,{type:"submit",size:"lg",disabled:a,className:"w-full mt-1",children:a?"Signing in…":"Sign in"})]})})]})]})})}const b_=d.lazy(()=>St(()=>import("./Setup-I6nFcwNZ.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.Setup}))),y_=d.lazy(()=>St(()=>import("./Invite-DKT4qT6M.js"),__vite__mapDeps([3,1,2,4])).then(e=>({default:e.Invite}))),w_=d.lazy(()=>St(()=>import("./ResetPassword-BnmE9MfY.js"),__vite__mapDeps([5,1,2])).then(e=>({default:e.ResetPassword}))),x_=d.lazy(()=>St(()=>import("./AppCenter-DtF_g4F7.js"),__vite__mapDeps([6,1,7,8,9,10,11,2])).then(e=>({default:e.AppCenter}))),__=d.lazy(()=>St(()=>import("./QASession-Daup7RGP.js"),__vite__mapDeps([12,1,7,13,2,11,8,10])).then(e=>({default:e.QASession}))),S_=d.lazy(()=>St(()=>import("./MacResources-D8T_KpPV.js"),__vite__mapDeps([14,1,13,15,2])).then(e=>({default:e.MacResources}))),E_=d.lazy(()=>St(()=>import("./Default-C_p-ZWS6.js"),__vite__mapDeps([16,1,10,11,4,2])).then(e=>({default:e.DefaultSettings}))),C_=d.lazy(()=>St(()=>import("./Team-JhXhGt1H.js"),__vite__mapDeps([17,1,8,11,18,2])).then(e=>({default:e.TeamSettings}))),k_=d.lazy(()=>St(()=>import("./Tokens-KAKIDZ0V.js"),__vite__mapDeps([19,1,10,11,8,18,9,2])).then(e=>({default:e.TokenSettings}))),P_=d.lazy(()=>St(()=>import("./NotFound-BoDDivK5.js"),__vite__mapDeps([20,1])).then(e=>({default:e.NotFound}))),O_=h.jsx("div",{className:"flex h-screen w-full items-center justify-center text-sm text-muted-foreground",children:"Loading…"}),lr=e=>h.jsx(d.Suspense,{fallback:O_,children:e});function R_(){const{resolvedTheme:e}=Pr();return h.jsxs(ed,{children:[h.jsxs(td,{children:[h.jsx(Xe,{path:"/login",element:h.jsx(v_,{})}),h.jsx(Xe,{path:"/setup",element:lr(h.jsx(b_,{}))}),h.jsx(Xe,{path:"/invite",element:lr(h.jsx(y_,{}))}),h.jsx(Xe,{path:"/reset-password",element:lr(h.jsx(w_,{}))}),h.jsxs(Xe,{element:h.jsx(Dv,{}),children:[h.jsx(Xe,{index:!0,element:h.jsx(pa,{to:"/app-center",replace:!0})}),h.jsx(Xe,{path:"/app-center",element:h.jsx(x_,{})}),h.jsx(Xe,{path:"/app-center/build",element:h.jsx(__,{})}),h.jsx(Xe,{path:"/mac-resources",element:h.jsx(S_,{})}),h.jsx(Xe,{path:"/settings/default",element:h.jsx(E_,{})}),h.jsx(Xe,{path:"/settings/team",element:h.jsx(C_,{})}),h.jsx(Xe,{path:"/settings/tokens",element:h.jsx(k_,{})})]}),h.jsx(Xe,{path:"*",element:lr(h.jsx(P_,{}))})]}),h.jsx(Vd,{position:"bottom-right",richColors:!0,theme:e})]})}Xu.createRoot(document.getElementById("root")).render(h.jsx(d.StrictMode,{children:h.jsx(sd,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:h.jsx(R_,{})})}));export{Tt as $,Ic as A,Or as B,zu as C,kh as D,Sv as E,Wa as F,Z_ as G,ap as H,yr as I,J,Q as K,Qo as L,gf as M,ms as N,Dt as O,cs as P,j_ as Q,us as R,wr as S,xm as T,Ev as U,Qh as V,qe as W,Pf as X,Ar as Y,il as Z,U_ as _,Vu as a,zn as a0,uc as a1,Z0 as a2,ia as a3,D_ as a4,cb as a5,$l as a6,Iv as a7,It as a8,be as a9,Fn as aa,vs as ab,Rr as ac,ob as ad,Zt as ae,Je as af,Ec as ag,Fv as ah,Pr as ai,Lu as b,$u as c,Fu as d,rf as e,sf as f,Ac as g,V_ as h,zh as i,mc as j,bc as k,hc as l,Rh as m,vc as n,N_ as o,ss as p,sg as q,ff as r,jt as s,ke as t,og as u,Tc as v,vn as w,Zc as x,wm as y,_m as z};
|
|
198
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const f of e.seen.entries()){const c=f[1];if(t===f[0]){s(f);continue}if(e.external){const g=(l=e.external.registry.get(f[0]))==null?void 0:l.id;if(t!==f[0]&&g){s(f);continue}}if((u=e.metadataRegistry.get(f[0]))==null?void 0:u.id){s(f);continue}if(c.cycle){s(f);continue}if(c.count>1&&e.reused==="ref"){s(f);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function ku(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;ku(r);const o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;const s=r.type;for(const i of Array.isArray(s)?s:[s]){if(typeof i!="string")return;n.includes(i)||n.push(i)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const Pu=new Set(["type","properties","required","additionalProperties"]),ra=["oneOf","anyOf"];function oa(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Jo(e){var s;const t=[];for(const i of e){if(typeof i!="object"||i.type!=="object")return null;for(const a in i)if(!Pu.has(a))return null;t.push(i)}const n={},r=new Set;for(const i of t){for(const a in i.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;const l=[];for(const f of t){const c=((s=f.properties)==null?void 0:s[a])??oa(f);c!=null&&(l.some(p=>JSON.stringify(p)===JSON.stringify(c))||l.push(c))}const u=l.length===1?l[0]:Jo(l)??{allOf:l};tt(n,a,u)}for(const a of i.required??[])r.add(a)}const o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{const i=[];for(const a of t){const l=oa(a);l&&!i.some(u=>JSON.stringify(u)===JSON.stringify(l))&&i.push(l)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function Ix(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const o of Pu)if(o in e)return;const n=t.filter(o=>ra.some(s=>Array.isArray(o[s])));let r=null;if(!n.length)r=Jo(t);else{const o=n[0],s=ra.find(l=>Array.isArray(o[l]));if(Object.keys(o).length!==1)return;const i=t.filter(l=>l!==o),a=o[s].map(l=>Jo([...i,l]));if(a.some(l=>!l))return;r={[s]:a}}r&&(delete e.allOf,Tn(e,r))}function Ou(e,t){var a,l,u,f;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const p=e.seen.get(c);if(p.ref===null)return;const g=p.def??p.schema,m={...g},v=p.ref;if(p.ref=null,v){r(v);const x=e.seen.get(v),w=x.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(g.allOf=g.allOf??[],g.allOf.push(w)):Tn(g,w),Tn(g,m),c._zod.parent===v)for(const E in g)E==="$ref"||E==="allOf"||E in m||delete g[E];if(w.$ref&&x.def)for(const E in g)E==="$ref"||E==="allOf"||E in x.def&&JSON.stringify(g[E])===JSON.stringify(x.def[E])&&delete g[E]}const y=c._zod.parent;if(y&&y!==v){r(y);const x=e.seen.get(y);if(x!=null&&x.schema.$ref&&(g.$ref=x.schema.$ref,x.def))for(const w in g)w==="$ref"||w==="allOf"||w in x.def&&JSON.stringify(g[w])===JSON.stringify(x.def[w])&&delete g[w]}e.override({zodSchema:c,jsonSchema:g,path:p.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const c of[...e.seen.entries()].reverse())r(c[0]);if(e.target!=="openapi-3.0")for(const c of e.seen.entries())ku(c[1].def??c[1].schema);for(const c of e.deferred)c();if(e.intersections.length){const c=new Map;for(const p of e.seen.values())for(const g of[p.schema,p.def]){const m=g==null?void 0:g.allOf;if(!Array.isArray(m))continue;const v=c.get(m);v?v.push(g):c.set(m,[g])}for(const p of e.intersections)for(const g of c.get(p)??[])Ix(g)}}const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const c=(l=e.external.registry.get(t))==null?void 0:l.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Tn(o,n.defId?n.schema:n.def??n.schema);const s=(u=e.metadataRegistry.get(t))==null?void 0:u.id;s!==void 0&&o.id===s&&delete o.id;const i=((f=e.external)==null?void 0:f.defs)??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const c of e.seen.entries()){const p=c[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,tt(i,p.defId,p.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:kr(t,"input",e.processors),output:kr(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function We(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return We(r.element,n);if(r.type==="set")return We(r.valueType,n);if(r.type==="lazy")return We(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"||r.type==="catch")return We(r.innerType,n);if(r.type==="intersection")return We(r.left,n)||We(r.right,n);if(r.type==="record"||r.type==="map")return We(r.keyType,n)||We(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:We(r.in,n)||We(r.out,n);if(r.type==="object"){for(const o in r.shape)if(We(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(We(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(We(o,n))return!0;return!!(r.rest&&We(r.rest,n))}return!1}const Ax=(e,t={})=>n=>{const r=Eu({...n,processors:t});return Fe(e,r),Cu(r,e),Ou(r,e)},kr=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=Eu({...o??{},target:s,io:t,processors:n});return Fe(e,i),Cu(i,e),Ou(i,e)},Dx={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jx=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:l,contentEncoding:u,laxFormat:f}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=Dx[a]??a,o.format===""&&delete o.format,(a==="time"||f)&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Nx=(e,t,n,r)=>{n.type="boolean"},Mx=(e,t,n,r)=>{n.not={}},zx=(e,t,n,r)=>{},$x=(e,t,n,r)=>{const o=e._zod.def,s=tu(o.entries);if(s.length===0){n.not={};return}s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},Fx=(e,t,n,r)=>{Un(e,t,n,r,"Custom types cannot be represented in JSON Schema")},Lx=(e,t,n,r)=>{Un(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Vx=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Fe(s.element,t,{...r,path:[...r.path,"items"]})};function qo(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?qo(t.out):t.type==="catch"?qo(t.innerType):e._zod.optin}const Zx=(e,t,n,r)=>{var f;const o=n,s=e._zod.def,i=s.shape;if(Object.getOwnPropertySymbols(i).length&&Un(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(const c in i)tt(o.properties,c,Fe(i[c],t,{...r,path:[...r.path,"properties",c]}));const l=new Set(Object.keys(i)),u=new Set([...l].filter(c=>{const p=s.shape[c];return t.io==="input"?qo(p)===void 0:p._zod.optout===void 0}));u.size>0&&(o.required=Array.from(u)),((f=s.catchall)==null?void 0:f._zod.def.type)==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Fe(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Ux=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,l)=>Fe(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",l]}));s?n.oneOf=i:n.anyOf=i},Bx=(e,t,n,r)=>{const o=e._zod.def,s=Fe(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Fe(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=l,t.intersections.push(l)},Wx=(e,t,n,r)=>{const o=e._zod.def,s=Fe(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},Hx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Vs=Symbol();function Ru(e,t,n,r,o){let s=!1;const i=JSON.stringify(e,(a,l)=>typeof l!="bigint"?l:(s=!0,null));return s?(Un(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Vs):JSON.parse(i)}const Kx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;const i=Ru(o.defaultValue,e,t,n,r);i!==Vs&&(n.default=i)},Gx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);if(s.ref=o.innerType,t.io!=="input")return;const i=Ru(o.defaultValue,e,t,n,r);i!==Vs&&(n._prefault=i)},Yx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{Un(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i},Jx=(e,t,n,r)=>{const o=e._zod.def,s=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?s?o.out:o.in:o.out;Fe(i,t,r);const a=t.seen.get(e);a.ref=i},qx=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},Tu=(e,t,n,r)=>{const o=e._zod.def;Fe(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},sa=new WeakSet([Object.prototype,Error.prototype]);function ar(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}const Xx=(e,t)=>{lu.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);sa.has(n)||(sa.add(n),ar(n,"format",r=>o=>zb(r,o)),ar(n,"flatten",r=>o=>Mb(r,o)),ar(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Ho,2)}),ar(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Ho,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ct=R("ZodError",Xx,void 0,{Parent:Error}),Qx=zs(ct),e0=$s(ct),t0=Zr(ct),n0=Ur(ct),r0=Lb(ct),o0=Vb(ct),s0=Zb(ct),i0=Ub(ct),a0=Bb(ct),c0=Wb(ct),l0=Hb(ct),u0=Kb(ct);function d0(){_t.localeError||Ht(zw())}function Zs(){_t.memoizer||Ht({memoizer:jw()})}const Ie=R("ZodType",(e,t)=>(d0(),Te.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Bt(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Wt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(c_(e,t))},superRefine(e,t){return this.check(l_(e,t))},overwrite(e){return this.check(xn(e))},optional(){return ca(this)},exactOptional(){return J0(this)},nullable(){return la(this)},nullish(){return ca(la(this))},nonoptional(e){return n_(this,e)},array(){return L0(this)},or(e){return B0([this,e])},and(e){return H0(this,e)},transform(e){return ua(this,Y0(e))},default(e){return Q0(this,e)},prefault(e){return t_(this,e)},catch(e){return o_(this,e)},pipe(e){return ua(this,e)},readonly(){return a_(this)},describe(e){const t=this.clone();return On.add(t,{description:e}),t},meta(...e){if(e.length===0)return On.get(this);const t=this.clone();return On.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return iu(this,"~standard",{...pu(this),jsonSchema:{input:kr(this,"input"),output:kr(this,"output")}})},set"~standard"(e){mn(this,"~standard",e)},parse:function e(t,n){return Qx(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await e0(this,t,n,{callee:e})},safeParse(e,t){return t0(this,e,t)},async safeParseAsync(e,t){return n0(this,e,t)},get spa(){return this==null?void 0:this.safeParseAsync},set spa(e){mn(this,"spa",e)},encode:function e(t,n){return r0(this,t,n,{callee:e})},decode:function e(t,n){return o0(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await s0(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await i0(this,t,n,{callee:e})},safeEncode(e,t){return a0(this,e,t)},safeDecode(e,t){return c0(this,e,t)},async safeEncodeAsync(e,t){return l0(this,e,t)},async safeDecodeAsync(e,t){return u0(this,e,t)},toJSONSchema(e){return Ax(this,{})(e)},get description(){var e;return(e=On.get(this))==null?void 0:e.description},get _def(){return this._zod.def}}),Iu=R("_ZodString",(e,t)=>{Ls.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(r,o,s)=>jx(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(gx(...e))},includes(...e){return this.check(yx(...e))},startsWith(...e){return this.check(wx(...e))},endsWith(...e){return this.check(xx(...e))},min(...e){return this.check(Cr(...e))},max(...e){return this.check(_u(...e))},length(...e){return this.check(Su(...e))},nonempty(...e){return this.check(Cr(1,...e))},lowercase(e){return this.check(vx(e))},uppercase(e){return this.check(bx(e))},trim(){return this.check(Sx())},normalize(...e){return this.check(_x(...e))},toLowerCase(){return this.check(Ex())},toUpperCase(){return this.check(Cx())},slugify(){return this.check(kx())}}),f0=R("ZodString",(e,t)=>{Ls.init(e,t),Iu.init(e,t)},{email(e){return this.check(Vw(v0,e))},url(e){return this.check(Kw(y0,e))},jwt(e){return this.check(cx(j0,e))},emoji(e){return this.check(Gw(w0,e))},guid(e){return this.check(Zw(b0,e))},uuid(e){return this.check(Uw(cr,e))},uuidv4(e){return this.check(Bw(cr,e))},uuidv6(e){return this.check(Ww(cr,e))},uuidv7(e){return this.check(Hw(cr,e))},nanoid(e){return this.check(Yw(x0,e))},cuid(e){return this.check(Jw(_0,e))},cuid2(e){return this.check(qw(S0,e))},ulid(e){return this.check(Xw(E0,e))},base64(e){return this.check(sx(I0,e))},base64url(e){return this.check(ix(A0,e))},xid(e){return this.check(Qw(C0,e))},ksuid(e){return this.check(ex(k0,e))},ipv4(e){return this.check(tx(P0,e))},ipv6(e){return this.check(nx(O0,e))},cidrv4(e){return this.check(rx(R0,e))},cidrv6(e){return this.check(ox(T0,e))},e164(e){return this.check(ax(D0,e))},datetime(e){return this.check(lx(p0,e))},date(e){return this.check(ux(h0,e))},time(e){return this.check(dx(m0,e))},duration(e){return this.check(fx(g0,e))}});function ia(e){return Lw(f0,e)}const we=R("ZodStringFormat",(e,t)=>{ye.init(e,t),Iu.init(e,t)}),p0=R("ZodISODateTime",(e,t)=>{Yy.init(e,t),we.init(e,t)}),h0=R("ZodISODate",(e,t)=>{Jy.init(e,t),we.init(e,t)}),m0=R("ZodISOTime",(e,t)=>{qy.init(e,t),we.init(e,t)}),g0=R("ZodISODuration",(e,t)=>{Xy.init(e,t),we.init(e,t)}),v0=R("ZodEmail",(e,t)=>{Ny.init(e,t),we.init(e,t)}),b0=R("ZodGUID",(e,t)=>{Dy.init(e,t),we.init(e,t)}),cr=R("ZodUUID",(e,t)=>{jy.init(e,t),we.init(e,t)}),y0=R("ZodURL",(e,t)=>{Vy.init(e,t),we.init(e,t)}),w0=R("ZodEmoji",(e,t)=>{Zy.init(e,t),we.init(e,t)}),x0=R("ZodNanoID",(e,t)=>{Uy.init(e,t),we.init(e,t)}),_0=R("ZodCUID",(e,t)=>{By.init(e,t),we.init(e,t)}),S0=R("ZodCUID2",(e,t)=>{Wy.init(e,t),we.init(e,t)}),E0=R("ZodULID",(e,t)=>{Hy.init(e,t),we.init(e,t)}),C0=R("ZodXID",(e,t)=>{Ky.init(e,t),we.init(e,t)}),k0=R("ZodKSUID",(e,t)=>{Gy.init(e,t),we.init(e,t)}),P0=R("ZodIPv4",(e,t)=>{Qy.init(e,t),we.init(e,t)}),O0=R("ZodIPv6",(e,t)=>{tw.init(e,t),we.init(e,t)}),R0=R("ZodCIDRv4",(e,t)=>{nw.init(e,t),we.init(e,t)}),T0=R("ZodCIDRv6",(e,t)=>{ow.init(e,t),we.init(e,t)}),I0=R("ZodBase64",(e,t)=>{sw.init(e,t),we.init(e,t)}),A0=R("ZodBase64URL",(e,t)=>{aw.init(e,t),we.init(e,t)}),D0=R("ZodE164",(e,t)=>{cw.init(e,t),we.init(e,t)}),j0=R("ZodJWT",(e,t)=>{uw.init(e,t),we.init(e,t)}),N0=R("ZodBoolean",(e,t)=>{dw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Nx(e,n,r)});function Z_(e){return px(N0,e)}const M0=R("ZodUnknown",(e,t)=>{fw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zx()});function aa(){return hx(M0)}const z0=R("ZodNever",(e,t)=>{pw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mx(e,n,r)});function $0(e){return mx(z0,e)}const F0=R("ZodArray",(e,t)=>{Zs(),hw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vx(e,n,r,o),e.element=t.element},{min(e,t){return this.check(Cr(e,t))},nonempty(e){return this.check(Cr(1,e))},max(e,t){return this.check(_u(e,t))},length(e,t){return this.check(Su(e,t))},unwrap(){return this.element}});function L0(e,t){return Px(F0,e,t)}const V0=R("ZodObject",(e,t)=>{Zs(),vw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zx(e,n,r,o),Ob(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return K0(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:aa()})},loose(){return this.clone({...this._zod.def,catchall:aa()})},strict(){return this.clone({...this._zod.def,catchall:$0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return vb(this,e)},safeExtend(e){return bb(this,e)},merge(e){return yb(this,e)},pick(e){return mb(this,e)},omit(e){return gb(this,e)},partial(...e){return Mi(Au,this,e[0])},exactPartial(...e){return Mi(Du,this,e[0],"exactPartial")},required(...e){return wb(ju,this,e[0])}});function Z0(e,t){const n={type:"object",shape:e??{},...X(t)};return new V0(n)}const U0=R("ZodUnion",(e,t)=>{bw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ux(e,n,r,o),e.options=t.options});function B0(e,t){return new U0({type:"union",options:e,...X(t)})}const W0=R("ZodIntersection",(e,t)=>{yw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bx(e,n,r,o)});function H0(e,t){return new W0({type:"intersection",left:e,right:t})}const Xo=R("ZodEnum",(e,t)=>{ww.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(r,o,s)=>$x(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Xo({...t,checks:[],...X(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Xo({...t,checks:[],...X(o),entries:s})}});function K0(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Xo({type:"enum",entries:n,...X(t)})}const G0=R("ZodTransform",(e,t)=>{Zs(),xw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lx(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new au(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Mn(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Mn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Y0(e){return new G0({type:"transform",transform:e})}const Au=R("ZodOptional",(e,t)=>{wu.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tu(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ca(e){return new Au({type:"optional",innerType:e})}const Du=R("ZodExactOptional",(e,t)=>{_w.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tu(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function J0(e){return new Du({type:"optional",innerType:e})}const q0=R("ZodNullable",(e,t)=>{Sw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function la(e){return new q0({type:"nullable",innerType:e})}const X0=R("ZodDefault",(e,t)=>{Ew.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Q0(e,t){return new X0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ru(t)}})}const e_=R("ZodPrefault",(e,t)=>{Cw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function t_(e,t){return new e_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ru(t)}})}const ju=R("ZodNonOptional",(e,t)=>{kw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function n_(e,t){return new ju({type:"nonoptional",innerType:e,...X(t)})}const r_=R("ZodCatch",(e,t)=>{Pw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function o_(e,t){return new r_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Tb(t)})}const s_=R("ZodPipe",(e,t)=>{Ow.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jx(e,n,r,o),e.in=t.in,e.out=t.out});function ua(e,t){return new s_({type:"pipe",in:e,out:t})}const i_=R("ZodReadonly",(e,t)=>{Rw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qx(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function a_(e){return new i_({type:"readonly",innerType:e})}const Nu=R("ZodCustom",(e,t)=>{Tw.init(e,t),Ie.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fx(e,n,r,o)});function c_(e,t={}){return Ox(Nu,e,t)}function l_(e,t){return Rx(e,t)}function U_(e,t={}){const n=new Nu({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...X(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var u_=Object.defineProperty,d_=(e,t)=>u_(e,"name",{value:t,configurable:!0}),f_=d.forwardRef(d_(function(t,n){return h.jsx(ke.label,{...t,ref:n,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),Mu=f_;const p_=zn("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qo=d.forwardRef(({className:e,...t},n)=>h.jsx(Mu,{ref:n,className:J(p_(),e),...t}));Qo.displayName=Mu.displayName;const h_=zn("rounded-lg bg-card text-card-foreground",{variants:{level:{0:"",1:"shadow-card-1",2:"shadow-card-2",3:"shadow-card-3",4:"shadow-card-4"}},defaultVariants:{level:2}}),zu=d.forwardRef(({className:e,level:t,...n},r)=>h.jsx("div",{ref:r,className:J(h_({level:t}),e),...n}));zu.displayName="Card";const $u=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("flex flex-col space-y-1.5 p-6",e),...t}));$u.displayName="CardHeader";const Fu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("text-2xl font-semibold leading-none tracking-tight",e),...t}));Fu.displayName="CardTitle";const Lu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("text-sm text-muted-foreground",e),...t}));Lu.displayName="CardDescription";const Vu=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("p-6 pt-0",e),...t}));Vu.displayName="CardContent";const m_=d.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:J("flex items-center p-6 pt-0",e),...t}));m_.displayName="CardFooter";const g_=Z0({email:ia().email(),password:ia().min(8)});function v_(){const e=es(),{resolvedTheme:t}=Pr(),n=t==="dark"?"/logo-dark.svg":"/logo.svg";d.useEffect(()=>{fetch("/api/v1/auth/status").then(u=>u.json()).then(({initialized:u})=>{u||e("/setup",{replace:!0})}).catch(()=>{})},[e]);const{register:r,handleSubmit:o,setError:s,formState:{errors:i,isSubmitting:a}}=ob({resolver:cb(g_),mode:"onBlur"});async function l(u){try{const{status:f}=await zl.post("/api/v1/auth/login",{email:u.email,password:u.password});if(f!==200){s("root",{message:"Invalid email or password"});return}e("/app-center",{replace:!0})}catch{s("root",{message:"Network error. Please try again."})}}return h.jsx("div",{className:"flex min-h-svh items-center justify-center overflow-hidden p-4",children:h.jsxs("div",{className:"flex flex-col items-center gap-6 w-full max-w-sm",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("img",{src:n,alt:"tapflow",className:"w-6 h-6"}),h.jsx("span",{className:"text-base font-semibold tracking-tight",children:"tapflow"})]}),h.jsxs(zu,{level:4,className:"w-full",children:[h.jsxs($u,{className:"text-center",children:[h.jsx(Fu,{className:"text-2xl tracking-display-md",children:"Welcome back"}),h.jsx(Lu,{children:"Sign in to your team workspace"})]}),h.jsx(Vu,{children:h.jsxs("form",{onSubmit:o(l),className:"flex flex-col gap-4",children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(Qo,{htmlFor:"email",children:"Email"}),h.jsx(yr,{id:"email",type:"email",placeholder:"you@company.com",autoComplete:"email",...r("email")}),i.email&&h.jsx("p",{className:"text-sm text-destructive",children:i.email.message})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(Qo,{htmlFor:"password",children:"Password"}),h.jsx(yr,{id:"password",type:"password",autoComplete:"current-password",...r("password")}),i.password&&h.jsx("p",{className:"text-sm text-destructive",children:i.password.message})]}),i.root&&h.jsx("p",{className:"text-sm text-destructive",children:i.root.message}),h.jsx(Or,{type:"submit",size:"lg",disabled:a,className:"w-full mt-1",children:a?"Signing in…":"Sign in"})]})})]})]})})}const b_=d.lazy(()=>St(()=>import("./Setup-CwPx_e_O.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.Setup}))),y_=d.lazy(()=>St(()=>import("./Invite-aN4DXJyM.js"),__vite__mapDeps([3,1,2,4])).then(e=>({default:e.Invite}))),w_=d.lazy(()=>St(()=>import("./ResetPassword-DPc5kwQU.js"),__vite__mapDeps([5,1,2])).then(e=>({default:e.ResetPassword}))),x_=d.lazy(()=>St(()=>import("./AppCenter-gbsJscjW.js"),__vite__mapDeps([6,1,7,8,9,10,11,2])).then(e=>({default:e.AppCenter}))),__=d.lazy(()=>St(()=>import("./QASession-U29t9j0E.js"),__vite__mapDeps([12,1,7,13,2,11,8,14,10])).then(e=>({default:e.QASession}))),S_=d.lazy(()=>St(()=>import("./MacResources-D3IlesXU.js"),__vite__mapDeps([15,1,13,16,2])).then(e=>({default:e.MacResources}))),E_=d.lazy(()=>St(()=>import("./Default-2rFTkbo9.js"),__vite__mapDeps([17,1,10,11,4,2])).then(e=>({default:e.DefaultSettings}))),C_=d.lazy(()=>St(()=>import("./Team-DD9li-7M.js"),__vite__mapDeps([18,1,8,11,19,14,2])).then(e=>({default:e.TeamSettings}))),k_=d.lazy(()=>St(()=>import("./Tokens-DdMMke73.js"),__vite__mapDeps([20,1,10,11,8,19,14,9,2])).then(e=>({default:e.TokenSettings}))),P_=d.lazy(()=>St(()=>import("./NotFound-BoDDivK5.js"),__vite__mapDeps([21,1])).then(e=>({default:e.NotFound}))),O_=h.jsx("div",{className:"flex h-screen w-full items-center justify-center text-sm text-muted-foreground",children:"Loading…"}),lr=e=>h.jsx(d.Suspense,{fallback:O_,children:e});function R_(){const{resolvedTheme:e}=Pr();return h.jsxs(ed,{children:[h.jsxs(td,{children:[h.jsx(Xe,{path:"/login",element:h.jsx(v_,{})}),h.jsx(Xe,{path:"/setup",element:lr(h.jsx(b_,{}))}),h.jsx(Xe,{path:"/invite",element:lr(h.jsx(y_,{}))}),h.jsx(Xe,{path:"/reset-password",element:lr(h.jsx(w_,{}))}),h.jsxs(Xe,{element:h.jsx(Dv,{}),children:[h.jsx(Xe,{index:!0,element:h.jsx(pa,{to:"/app-center",replace:!0})}),h.jsx(Xe,{path:"/app-center",element:h.jsx(x_,{})}),h.jsx(Xe,{path:"/app-center/build",element:h.jsx(__,{})}),h.jsx(Xe,{path:"/mac-resources",element:h.jsx(S_,{})}),h.jsx(Xe,{path:"/settings/default",element:h.jsx(E_,{})}),h.jsx(Xe,{path:"/settings/team",element:h.jsx(C_,{})}),h.jsx(Xe,{path:"/settings/tokens",element:h.jsx(k_,{})})]}),h.jsx(Xe,{path:"*",element:lr(h.jsx(P_,{}))})]}),h.jsx(Vd,{position:"bottom-right",richColors:!0,theme:e})]})}Xu.createRoot(document.getElementById("root")).render(h.jsx(d.StrictMode,{children:h.jsx(sd,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:h.jsx(R_,{})})}));export{Tt as $,Ic as A,Or as B,zu as C,kh as D,Sv as E,Wa as F,Z_ as G,ap as H,yr as I,J,Q as K,Qo as L,gf as M,ms as N,Dt as O,cs as P,j_ as Q,us as R,wr as S,xm as T,Ev as U,Qh as V,qe as W,Pf as X,Ar as Y,il as Z,U_ as _,Vu as a,zn as a0,uc as a1,Z0 as a2,ia as a3,D_ as a4,cb as a5,$l as a6,Iv as a7,It as a8,be as a9,Fn as aa,vs as ab,Rr as ac,ob as ad,Zt as ae,Je as af,Ec as ag,Fv as ah,Pr as ai,Lu as b,$u as c,Fu as d,rf as e,sf as f,Ac as g,V_ as h,zh as i,mc as j,bc as k,hc as l,Rh as m,vc as n,N_ as o,ss as p,sg as q,ff as r,jt as s,ke as t,og as u,Tc as v,vn as w,Zc as x,wm as y,_m as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{W as a}from"./index-
|
|
2
|
-
* @license lucide-react v1.
|
|
1
|
+
import{W as a}from"./index-Cajf0T-5.js";/**
|
|
2
|
+
* @license lucide-react v1.41.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const c=["localhost","127.0.0.1","[::1]"];function u(t,l){const e=l.protocol==="https:"?"wss":"ws",s=t!=null&&t.lanHost&&c.includes(l.hostname)?`${t.lanHost}:${t.port}`:null;return{linkBase:(t==null?void 0:t.publicBaseUrl)??(s?`${l.protocol}//${s}`:l.origin),agentWsBase:(t==null?void 0:t.agentRelayUrl)??(s?`${e}://${s}`:`${e}://${l.host}`)}}function $(t,l){return`${t.replace(/\/+$/,"")}${l.startsWith("/")?l:`/${l}`}`}let o=null;const h=3e3;function m(){if(o)return o;const t=new AbortController,l=setTimeout(()=>t.abort(),h);return o=fetch("/api/v1/relay/host",{credentials:"include",signal:t.signal}).then(e=>e.ok?e.json():Promise.reject(new Error(`relay host lookup: ${e.status}`))).catch(()=>(o=null,null)).finally(()=>clearTimeout(l)).then(e=>{const{protocol:s,hostname:n,host:a,origin:r}=window.location;return u(e,{protocol:s,hostname:n,host:a,origin:r})}),o}export{$ as j,m as l};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r,j as g}from"./vendor-react-AJpf4YZ0.js";import{u as P,t as m,q as j,K as p,s as L,Z as _,O as k,ab as O,aa as M,ae as D,J as R}from"./index-Cajf0T-5.js";function $(){const e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}const U=location.protocol==="https:"?"wss:":"ws:",V=`${U}//${location.host}`,F=2e3,G=$();function H(){const e=new URL(V);return e.searchParams.set("client",G),e.toString()}function se(e,t){const n=r.useRef(null),[f,a]=r.useState(!1),s=r.useRef(e),u=r.useRef(t);return r.useLayoutEffect(()=>{s.current=e,u.current=t},[e,t]),r.useEffect(()=>{let l=!1;const b=()=>{if(l)return;const d=new WebSocket(H());d.binaryType="arraybuffer",n.current=d,d.onopen=()=>a(!0),d.onclose=()=>{a(!1),l||setTimeout(b,F)},d.onmessage=c=>{var o;if(c.data instanceof ArrayBuffer){(o=u.current)==null||o.call(u,c.data);return}try{s.current(JSON.parse(c.data))}catch{}}};return b(),()=>{var d;l=!0,(d=n.current)==null||d.close()}},[]),{send:r.useCallback(l=>{var b;((b=n.current)==null?void 0:b.readyState)===WebSocket.OPEN&&n.current.send(JSON.stringify(l))},[]),connected:f}}var K=Object.defineProperty,T=(e,t)=>K(e,"name",{value:t,configurable:!0}),y="Tabs",[q,ie]=k(y,[_]),w=_(),[B,C]=q(y),J=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,onValueChange:s,defaultValue:u,orientation:i="horizontal",dir:l,activationMode:b="automatic",...d}=t,c=O(l),[o,v]=M({prop:a,onChange:s,defaultProp:u??"",caller:y});return g.jsx(B,{scope:f,baseId:D(),value:o,onValueChange:v,orientation:i,dir:c,activationMode:b,children:g.jsx(m.div,{dir:c,"data-orientation":i,...d,ref:n})})},"Tabs")),W="TabsList",Y=r.forwardRef(T(function(t,n){const{__scopeTabs:f,loop:a=!0,...s}=t,u=C(W,f),i=w(f);return g.jsx(P,{asChild:!0,...i,orientation:u.orientation,dir:u.dir,loop:a,children:g.jsx(m.div,{role:"tablist","aria-orientation":u.orientation,...s,ref:n})})},"TabsList")),z="TabsTrigger",Z=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,disabled:s=!1,...u}=t,i=C(z,f),l=w(f),b=x(i.baseId,a),d=E(i.baseId,a),c=a===i.value;return g.jsx(j,{asChild:!0,...l,focusable:!s,active:c,children:g.jsx(m.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:b,...u,ref:n,onMouseDown:p(t.onMouseDown,o=>{!s&&o.button===0&&o.ctrlKey===!1?i.onValueChange(a):o.preventDefault()}),onKeyDown:p(t.onKeyDown,o=>{s||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&i.onValueChange(a)}),onFocus:p(t.onFocus,()=>{const o=i.activationMode!=="manual";!c&&!s&&o&&i.onValueChange(a)})})})},"TabsTrigger")),Q="TabsContent",X=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,forceMount:s,children:u,...i}=t,l=C(Q,f),b=x(l.baseId,a),d=E(l.baseId,a),c=a===l.value,o=r.useRef(c);return r.useEffect(()=>{const v=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(v)},[]),g.jsx(L,{present:s||c,children:({present:v})=>g.jsx(m.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":b,hidden:!v,id:d,tabIndex:0,...i,ref:n,style:{...t.style,animationDuration:o.current?"0s":void 0},children:v&&u})})},"TabsContent"));function x(e,t){return`${e}-trigger-${t}`}T(x,"makeTriggerId");function E(e,t){return`${e}-content-${t}`}T(E,"makeContentId");var ee=J,N=Y,I=Z,A=X;const ce=ee,te=r.forwardRef(({className:e,...t},n)=>g.jsx(N,{ref:n,className:R("inline-flex h-9 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));te.displayName=N.displayName;const ne=r.forwardRef(({className:e,...t},n)=>g.jsx(I,{ref:n,className:R("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ne.displayName=I.displayName;const ae=r.forwardRef(({className:e,...t},n)=>g.jsx(A,{ref:n,className:R("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ae.displayName=A.displayName;const S=70,h=80,ue=3e4;function le(e,t){if(!e||t)return"unknown";const n=e.memUsedMB/e.memTotalMB*100;return e.cpuPercent>h||n>h?"overloaded":e.cpuPercent>=S||n>=S?"warning":"healthy"}export{ue as R,ce as T,ae as a,te as b,ne as c,le as g,$ as n,se as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as o,j as t}from"./vendor-react-AJpf4YZ0.js";import{J as l}from"./index-
|
|
1
|
+
import{i as o,j as t}from"./vendor-react-AJpf4YZ0.js";import{J as l}from"./index-Cajf0T-5.js";const r=o.forwardRef(({className:e,...a},s)=>t.jsx("div",{className:"relative w-full overflow-auto",children:t.jsx("table",{ref:s,className:l("w-full caption-bottom text-sm",e),...a})}));r.displayName="Table";const d=o.forwardRef(({className:e,...a},s)=>t.jsx("thead",{ref:s,className:l("[&_tr]:border-b",e),...a}));d.displayName="TableHeader";const m=o.forwardRef(({className:e,...a},s)=>t.jsx("tbody",{ref:s,className:l("[&_tr:last-child]:border-0",e),...a}));m.displayName="TableBody";const b=o.forwardRef(({className:e,...a},s)=>t.jsx("tfoot",{ref:s,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));b.displayName="TableFooter";const c=o.forwardRef(({className:e,...a},s)=>t.jsx("tr",{ref:s,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));c.displayName="TableRow";const i=o.forwardRef(({className:e,...a},s)=>t.jsx("th",{ref:s,className:l("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...a}));i.displayName="TableHead";const f=o.forwardRef(({className:e,...a},s)=>t.jsx("td",{ref:s,className:l("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...a}));f.displayName="TableCell";const n=o.forwardRef(({className:e,...a},s)=>t.jsx("caption",{ref:s,className:l("mt-4 text-sm text-muted-foreground",e),...a}));n.displayName="TableCaption";export{r as T,m as a,f as b,i as c,d,c as e};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{W as a}from"./index-
|
|
2
|
-
* @license lucide-react v1.
|
|
1
|
+
import{W as a}from"./index-Cajf0T-5.js";/**
|
|
2
|
+
* @license lucide-react v1.41.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const t=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],h=a("plus",t);/**
|
|
7
|
-
* @license lucide-react v1.
|
|
7
|
+
* @license lucide-react v1.41.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const e=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=a("trash
|
|
11
|
+
*/const e=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=a("trash",e);export{h as P,s as T};
|
|
Binary file
|
|
Binary file
|