videobook 0.3.1 → 0.3.2

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.
@@ -1,4 +1,4 @@
1
- import{W as ap,X as cp}from"./vendor-BWf-WCsY.js";const up="modulepreload",lp=function(e){return"/"+e},Ui={},SR=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(l=>Promise.resolve(l).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");r=u(n.map(d=>{if(d=lp(d),d in Ui)return;Ui[d]=!0;const l=d.endsWith(".css"),p=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":up,l||(h.as="script"),h.crossOrigin="",h.href=d,a&&h.setAttribute("nonce",a),document.head.appendChild(h),l)return new Promise((f,S)=>{h.addEventListener("load",f),h.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function is(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function ji(e,t="|"){return e.map(n=>sc(n)).join(t)}function as(e,t){return typeof t=="bigint"?t.toString():t}class dp{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function Pr(e){return new dp(e)}function pp(e){return e==null}function ks(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function hp(e,t){const n=e/t,o=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Di=Symbol("evaluating");function mp(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Di)return o===void 0&&(o=Di,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function ut(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ts(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function mt(e){return Ts(e._zod.def)??e._zod.def.shape}function tc(e,t,n){Object.defineProperty(e,t,{get(){const o=n();return ut(this,t,o),o},enumerable:!0,configurable:!0})}function nc(e,t,n){t in e?ut(e,t,n):e[t]=n}function Zt(e,t,n,o){const r=mt(t);for(const s of n){const i=Object.getOwnPropertyDescriptor(r,s);i.enumerable&&(i.get?tc(e,s,()=>{const a=t._zod.def.shape[s];return o?o(a,s):a}):nc(e,s,o?o(i.value,s):i.value))}}function fp(e,t){for(const n of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,n);o.enumerable&&(o.get?tc(e,n,()=>t[n]):nc(e,n,o.value))}}function ze(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Sp(e){return JSON.stringify(e)}function gp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const oc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function yo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const _p=Pr(()=>{if(Ve.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function vn(e){if(yo(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(yo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rc(e){return vn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const vp=new Set(["string","number","symbol"]);function yn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function N(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function sc(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function yp(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const ic={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bp={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Rp(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s={};return Zt(s,e,$r(e,t)),kt(e,ze(n,{shape:s,checks:[]}))}function $r(e,t){const n=mt(e),o=[];for(const r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&o.push(r)}return o}function wp(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=new Set($r(e,t)),i={};return Zt(i,e,Reflect.ownKeys(mt(e)).filter(a=>!s.has(a))),kt(e,ze(n,{shape:i,checks:[]}))}function Pp(e,t){if(!vn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=mt(e);for(const s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return kt(e,ze(e._zod.def,{shape:ac(e,t)}))}function ac(e,t){const n={};return Zt(n,e,Reflect.ownKeys(mt(e))),fp(n,t),n}function $p(e,t){if(!vn(t))throw new Error("Invalid input to safeExtend: expected a plain object");return kt(e,ze(e._zod.def,{shape:ac(e,t)}))}function kp(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};Zt(n,e,Reflect.ownKeys(mt(e))),Zt(n,t,Reflect.ownKeys(mt(t)));const o=ze(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return kt(e,o)}function Zi(e,t,n,o="partial"){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);const a=n?new Set($r(t,n)):void 0,u={};return Zt(u,t,Reflect.ownKeys(mt(t)),e&&((d,l)=>a&&!a.has(l)?d:new e({type:"optional",innerType:d}))),kt(t,ze(t._zod.def,{shape:u,checks:[]}))}function Tp(e,t,n){const o=n?new Set($r(t,n)):void 0,r={};return Zt(r,t,Reflect.ownKeys(mt(t)),(s,i)=>o&&!o.has(i)?s:new e({type:"nonoptional",innerType:s})),kt(t,ze(t._zod.def,{shape:r}))}function Ge(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ep(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ht(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function ao(e){return typeof e=="string"?e:e?.message}function Fi(e){const t=[];for(const n of e??[]){const o=n._zod.def;if(!/_(length|size)$|_equals$/.test(o.check))break;const r=o.maximum??o.length??o.size;r>=0&&t.push([r,n])}return t}function cs(e,t,n){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=n)}function wt(e,t,n){var o;const r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);const s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:ao(e.inst?._zod.def?.error?.(e))??ao(s?.(e))??ao(t?.error?.(e))??ao(n.customError?.(e))??ao(n.localeError?.(e))??"Invalid input",a={};for(const u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(a[u]=e[u]);return a.path??(a.path=[]),a.message=i,t?.reportInput&&(a.input=e.input),a}const Cp=/[\uD800-\uDBFF]/;function Es(e){const t=e.length;if(!Cp.test(e))return t;let n=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(n--,o++);return n}function Cs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ip(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function bo(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}function Op(e,t){for(const n in t){const o=Object.getOwnPropertyDescriptor(t,n);o.get?Object.defineProperty(e,n,{...o,enumerable:!1}):qp(e,n,o.value)}}function Pt(e,t,n,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:n}),n}function Is(e,t,n){return Pt(e,t,n,!1)}function cc(e,t){for(const n in e){const o=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Pt(this,n,o(this))},set(r){Pt(this,n,r)}})}return t}function qp(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Pt(this,t,n.bind(this))},set(o){Pt(this,t,o)}})}function Np(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Vr,vt=!1;const Mp={configurable:!0,get(){vt=!0}};function W(e,t,n){const o=Object.getPrototypeOf(e._zod);if(t in o&&Vr!==e._zod){Vr=void 0;return}Vr=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Mp);const r=vt;vt=!1;try{const s=n(this);return vt?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),vt=vt||r,s}catch(s){throw delete this[t],vt=vt||r,s}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function xp(e,t,n,o){const r=Np(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:s})}})}const zp="~constantCatch";function Ap(e){const t=()=>e;return t[zp]=!0,t}var Vi;const Lp=Object.freeze({status:"aborted"}),Hr={value:void 0,enumerable:!1};let Hi="captureStackTrace"in Error?Error:null;function Up(e){const t=Hi;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Hi=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function b(e,t,n,o){const r={};function s(h){this.def=h,this.constr=p,this.traits=new Set}s.prototype=r;const i=n,a=i&&new WeakSet;function u(h,f){if(h._zod){if(h._zod.traits.has(e))return}else{Hr.value=new s(f);try{Object.defineProperty(h,"_zod",Hr)}finally{Hr.value=void 0}}if(h._zod.traits.add(e),t(h,f),a){const v=Object.getPrototypeOf(h),y=h._zod.constr.prototype;let w=v;for(;w&&w!==y;)w=Object.getPrototypeOf(w);const x=w??v;a.has(x)||(a.add(x),Op(x,i))}const S=p.prototype;for(const v in S)Object.prototype.hasOwnProperty.call(S,v)&&(v in h||(h[v]=S[v].bind(h)))}const d=o?.Parent??Object;class l extends d{}Object.defineProperty(l,"name",{value:e});function p(h){const f=o?.Parent?Up(l):this;u(f,h);const S=f._zod.deferred;if(S){for(const y of S)y();f._zod.deferred=void 0}const v=globalThis.__zod_globalConfig?.postProcessor;return v&&v(f),f}return Object.defineProperty(p,"init",{value:u}),Object.defineProperty(p,Symbol.hasInstance,{value:h=>o?.Parent&&h instanceof o.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(p,"name",{value:e}),p}class Ut extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class uc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Vi=globalThis).__zod_globalConfig??(Vi.__zod_globalConfig={});const Ve=globalThis.__zod_globalConfig;function at(e){return e&&Object.assign(Ve,e),Ve}function jp(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,as,2)),e.message}function Dp(e){this._zod.message=e}const Zp={get:jp,set:Dp,enumerable:!0,configurable:!0},Jr={value:void 0,enumerable:!1},Ji=new WeakSet([Object.prototype,Error.prototype]),Fp=(e,t)=>{e.name="$ZodError",Jr.value=t,Object.defineProperty(e,"issues",Jr),Jr.value=void 0,Object.defineProperty(e,"message",Zp);const n=Object.getPrototypeOf(e);Ji.has(n)||(Ji.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},Vp=b("$ZodError",Fp);function Hp(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jp(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?Hp(n,r.path[0],()=>[]).push(t(r)):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Bp(e,t=n=>n.message){const n={_errors:[]},o=(r,s=[])=>{for(const i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a},[...s,...i.path]));else if(i.code==="invalid_key")o({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")o({issues:i.issues},[...s,...i.path]);else{const a=[...s,...i.path];if(a.length===0)n._errors.push(t(i));else{let u=n,d=0;for(;d<a.length;){const l=a[d],p=d===a.length-1;if(l==="_errors"){p&&u._errors.push(t(i)),d++;continue}Object.prototype.hasOwnProperty.call(u,l)||Object.defineProperty(u,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=u[l];p&&h._errors.push(t(i)),u=h,d++}}}};return o(e),n}function kr(e,t){return{callee:t?.callee??e,Err:t?.Err}}const Os=e=>{const t=(n,o,r,s)=>{const i=r?{...r,async:!1}:{async:!1},a=n._zod.run({value:o,issues:[]},i);if(a instanceof Promise)throw new Ut;if(a.issues.length){const u=new(s?.Err??e)(a.issues.map(d=>wt(d,i,at())));throw oc(u,s?.callee??t),u}return a.value};return t},qs=e=>{const t=async(n,o,r,s)=>{const i=r?{...r,async:!0}:{async:!0};let a=n._zod.run({value:o,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const u=new(s?.Err??e)(a.issues.map(d=>wt(d,i,at())));throw oc(u,s?.callee??t),u}return a.value};return t},Ns=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new Ut;return s.issues.length?lc(e,s.issues,r):{success:!0,data:s.value}};function lc(e,t,n){let o;return{success:!1,get error(){return o||(o=new e(t.map(r=>wt(r,n,at()))),t=void 0,n=void 0),o},set error(r){o=r,t=void 0,n=void 0}}}const Ms=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?lc(e,s.issues,r):{success:!0,data:s.value}},Wp=Symbol.for("zod.compile.invalid"),Gp=Symbol.for("zod.compile.fallback"),Kp=((e,t,n)=>{const o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==Wp)return!0;if(o.definite===!0&&n===void 0)return!1}return Yp(e,t,n)});function Yp(e,t,n){const o=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun;let s;if(r?(o[Gp]=!0,s=r({value:t,issues:[]},o)):s=e._zod.run({value:t,issues:[]},o),s instanceof Promise)throw new Ut;return s.issues.length===0}const Xp=async(e,t,n)=>{const o=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let r=e._zod.run({value:t,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length===0},Qp=e=>{const t=Os(e),n=(o,r,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return t(o,r,a,kr(n,i))};return n},eh=e=>{const t=Os(e),n=(o,r,s,i)=>t(o,r,s,kr(n,i));return n},th=e=>{const t=qs(e),n=async(o,r,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return await t(o,r,a,kr(n,i))};return n},nh=e=>{const t=qs(e),n=async(o,r,s,i)=>await t(o,r,s,kr(n,i));return n},oh=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ns(e)(t,n,r)},rh=e=>(t,n,o)=>Ns(e)(t,n,o),sh=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ms(e)(t,n,r)},ih=e=>async(t,n,o)=>Ms(e)(t,n,o),ah=/^[cC][0-9a-z]{6,}$/,ch=/^[0-9a-z]+$/,uh=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,lh=/^[0-9a-vA-V]{20}$/,dh=/^[A-Za-z0-9]{27}$/,ph=/^[a-zA-Z0-9_-]{21}$/;function hh(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const mh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Sh=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gh="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function _h(){return new RegExp(gh,"u")}const vh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,yh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,bh=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Rh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ph=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,$h=/^https?$/,kh=/^\+[1-9]\d{6,14}$/,dc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Th(e){return new RegExp(`^${e}$`)}const Eh=Th(dc);function us(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ch(e){return new RegExp(`^${us(e)}$`)}function Ih(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${us({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${n}|${us({precision:e.precision})}`:n;return new RegExp(`^${dc}T(?:${o})$`)}const Oh=/^[\s\S]{0,}$/,qh=/^-?\d+$/,xs=/^-?\d+(?:\.\d+)?$/,Nh=/^(?:true|false)$/i,Mh=/^null$/i,xh=/^[^A-Z]*$/,zh=/^[^a-z]*$/,$e=b("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),zs=e=>{const t=e.value;return!pp(t)&&t.length!==void 0},pr={number:"number",bigint:"bigint",object:"date"},pc=b("$ZodCheckLessThan",(e,t)=>{$e.init(e,t);const n=pr[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:pr[typeof o.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=b("$ZodCheckGreaterThan",(e,t)=>{$e.init(e,t);const n=pr[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:pr[typeof o.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ah=b("$ZodCheckMultipleOf",(e,t)=>{$e.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):hp(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Lh=b("$ZodCheckNumberFormat",(e,t)=>{$e.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),o=n?"int":"number",[r,s]=ic[t.format];e._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}a<r&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Uh=b("$ZodCheckMaxLength",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length;if((typeof r=="string"&&s>t.maximum?Es(r):s)<=t.maximum)return;const a=Cs(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jh=b("$ZodCheckMinLength",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length;if((typeof r=="string"&&s>=t.minimum&&s<t.minimum*2?Es(r):s)>=t.minimum)return;const a=Cs(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dh=b("$ZodCheckLengthEquals",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length,i=typeof r=="string"&&s>=t.length&&s<=t.length*2?Es(r):s;if(i===t.length)return;const a=Cs(r),u=i>t.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Tr=b("$ZodCheckStringFormat",(e,t)=>{var n,o;$e.init(e,t),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Zh=b("$ZodCheckRegex",(e,t)=>{Tr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Fh=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xh),Tr.init(e,t)}),Vh=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zh),Tr.init(e,t)}),Hh=b("$ZodCheckIncludes",(e,t)=>{$e.init(e,t);const n=yn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=o,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Jh=b("$ZodCheckStartsWith",(e,t)=>{$e.init(e,t);const n=new RegExp(`^${yn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Bh=b("$ZodCheckEndsWith",(e,t)=>{$e.init(e,t);const n=new RegExp(`.*${yn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Wi(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues))}const Wh=b("$ZodCheckProperties",(e,t)=>{$e.init(e,t),Is(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=o=>{if(o.value==null){o.issues.push({expected:"object",code:"invalid_type",input:o.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(i=>[i,t.shape[i]]));const r=o.value;let s;for(const[i,a]of n){const u=a._zod.run({value:r[i],issues:[]},{});u instanceof Promise?(s??(s=[]),s.push(u.then(d=>Wi(d,o,i)))):Wi(u,o,i)}if(s)return Promise.all(s).then(()=>{})}}),Gh=b("$ZodCheckOverwrite",(e,t)=>{$e.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Kh{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
1
+ import{W as ap,X as cp}from"./vendor-Ca2-b3hB.js";const up="modulepreload",lp=function(e){return"/"+e},Ui={},SR=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(l=>Promise.resolve(l).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");r=u(n.map(d=>{if(d=lp(d),d in Ui)return;Ui[d]=!0;const l=d.endsWith(".css"),p=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":up,l||(h.as="script"),h.crossOrigin="",h.href=d,a&&h.setAttribute("nonce",a),document.head.appendChild(h),l)return new Promise((f,S)=>{h.addEventListener("load",f),h.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function is(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function ji(e,t="|"){return e.map(n=>sc(n)).join(t)}function as(e,t){return typeof t=="bigint"?t.toString():t}class dp{constructor(t){this._getter=t,this._value=void 0}get value(){const t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}}function Pr(e){return new dp(e)}function pp(e){return e==null}function ks(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function hp(e,t){const n=e/t,o=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Di=Symbol("evaluating");function mp(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Di)return o===void 0&&(o=Di,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function ut(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ts(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function mt(e){return Ts(e._zod.def)??e._zod.def.shape}function tc(e,t,n){Object.defineProperty(e,t,{get(){const o=n();return ut(this,t,o),o},enumerable:!0,configurable:!0})}function nc(e,t,n){t in e?ut(e,t,n):e[t]=n}function Zt(e,t,n,o){const r=mt(t);for(const s of n){const i=Object.getOwnPropertyDescriptor(r,s);i.enumerable&&(i.get?tc(e,s,()=>{const a=t._zod.def.shape[s];return o?o(a,s):a}):nc(e,s,o?o(i.value,s):i.value))}}function fp(e,t){for(const n of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,n);o.enumerable&&(o.get?tc(e,n,()=>t[n]):nc(e,n,o.value))}}function ze(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Sp(e){return JSON.stringify(e)}function gp(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const oc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function yo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const _p=Pr(()=>{if(Ve.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function vn(e){if(yo(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(yo(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rc(e){return vn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const vp=new Set(["string","number","symbol"]);function yn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function N(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function sc(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function yp(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}const ic={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},bp={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Rp(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s={};return Zt(s,e,$r(e,t)),kt(e,ze(n,{shape:s,checks:[]}))}function $r(e,t){const n=mt(e),o=[];for(const r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&o.push(r)}return o}function wp(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=new Set($r(e,t)),i={};return Zt(i,e,Reflect.ownKeys(mt(e)).filter(a=>!s.has(a))),kt(e,ze(n,{shape:i,checks:[]}))}function Pp(e,t){if(!vn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=mt(e);for(const s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return kt(e,ze(e._zod.def,{shape:ac(e,t)}))}function ac(e,t){const n={};return Zt(n,e,Reflect.ownKeys(mt(e))),fp(n,t),n}function $p(e,t){if(!vn(t))throw new Error("Invalid input to safeExtend: expected a plain object");return kt(e,ze(e._zod.def,{shape:ac(e,t)}))}function kp(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};Zt(n,e,Reflect.ownKeys(mt(e))),Zt(n,t,Reflect.ownKeys(mt(t)));const o=ze(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return kt(e,o)}function Zi(e,t,n,o="partial"){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);const a=n?new Set($r(t,n)):void 0,u={};return Zt(u,t,Reflect.ownKeys(mt(t)),e&&((d,l)=>a&&!a.has(l)?d:new e({type:"optional",innerType:d}))),kt(t,ze(t._zod.def,{shape:u,checks:[]}))}function Tp(e,t,n){const o=n?new Set($r(t,n)):void 0,r={};return Zt(r,t,Reflect.ownKeys(mt(t)),(s,i)=>o&&!o.has(i)?s:new e({type:"nonoptional",innerType:s})),kt(t,ze(t._zod.def,{shape:r}))}function Ge(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ep(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ht(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function ao(e){return typeof e=="string"?e:e?.message}function Fi(e){const t=[];for(const n of e??[]){const o=n._zod.def;if(!/_(length|size)$|_equals$/.test(o.check))break;const r=o.maximum??o.length??o.size;r>=0&&t.push([r,n])}return t}function cs(e,t,n){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=n)}function wt(e,t,n){var o;const r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);const s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:ao(e.inst?._zod.def?.error?.(e))??ao(s?.(e))??ao(t?.error?.(e))??ao(n.customError?.(e))??ao(n.localeError?.(e))??"Invalid input",a={};for(const u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(a[u]=e[u]);return a.path??(a.path=[]),a.message=i,t?.reportInput&&(a.input=e.input),a}const Cp=/[\uD800-\uDBFF]/;function Es(e){const t=e.length;if(!Cp.test(e))return t;let n=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(n--,o++);return n}function Cs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ip(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function bo(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}function Op(e,t){for(const n in t){const o=Object.getOwnPropertyDescriptor(t,n);o.get?Object.defineProperty(e,n,{...o,enumerable:!1}):qp(e,n,o.value)}}function Pt(e,t,n,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:n}),n}function Is(e,t,n){return Pt(e,t,n,!1)}function cc(e,t){for(const n in e){const o=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Pt(this,n,o(this))},set(r){Pt(this,n,r)}})}return t}function qp(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Pt(this,t,n.bind(this))},set(o){Pt(this,t,o)}})}function Np(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}let Vr,vt=!1;const Mp={configurable:!0,get(){vt=!0}};function W(e,t,n){const o=Object.getPrototypeOf(e._zod);if(t in o&&Vr!==e._zod){Vr=void 0;return}Vr=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Mp);const r=vt;vt=!1;try{const s=n(this);return vt?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),vt=vt||r,s}catch(s){throw delete this[t],vt=vt||r,s}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function xp(e,t,n,o){const r=Np(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){const s={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:s})}})}const zp="~constantCatch";function Ap(e){const t=()=>e;return t[zp]=!0,t}var Vi;const Lp=Object.freeze({status:"aborted"}),Hr={value:void 0,enumerable:!1};let Hi="captureStackTrace"in Error?Error:null;function Up(e){const t=Hi;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Hi=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function b(e,t,n,o){const r={};function s(h){this.def=h,this.constr=p,this.traits=new Set}s.prototype=r;const i=n,a=i&&new WeakSet;function u(h,f){if(h._zod){if(h._zod.traits.has(e))return}else{Hr.value=new s(f);try{Object.defineProperty(h,"_zod",Hr)}finally{Hr.value=void 0}}if(h._zod.traits.add(e),t(h,f),a){const v=Object.getPrototypeOf(h),y=h._zod.constr.prototype;let w=v;for(;w&&w!==y;)w=Object.getPrototypeOf(w);const x=w??v;a.has(x)||(a.add(x),Op(x,i))}const S=p.prototype;for(const v in S)Object.prototype.hasOwnProperty.call(S,v)&&(v in h||(h[v]=S[v].bind(h)))}const d=o?.Parent??Object;class l extends d{}Object.defineProperty(l,"name",{value:e});function p(h){const f=o?.Parent?Up(l):this;u(f,h);const S=f._zod.deferred;if(S){for(const y of S)y();f._zod.deferred=void 0}const v=globalThis.__zod_globalConfig?.postProcessor;return v&&v(f),f}return Object.defineProperty(p,"init",{value:u}),Object.defineProperty(p,Symbol.hasInstance,{value:h=>o?.Parent&&h instanceof o.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(p,"name",{value:e}),p}class Ut extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class uc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Vi=globalThis).__zod_globalConfig??(Vi.__zod_globalConfig={});const Ve=globalThis.__zod_globalConfig;function at(e){return e&&Object.assign(Ve,e),Ve}function jp(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,as,2)),e.message}function Dp(e){this._zod.message=e}const Zp={get:jp,set:Dp,enumerable:!0,configurable:!0},Jr={value:void 0,enumerable:!1},Ji=new WeakSet([Object.prototype,Error.prototype]),Fp=(e,t)=>{e.name="$ZodError",Jr.value=t,Object.defineProperty(e,"issues",Jr),Jr.value=void 0,Object.defineProperty(e,"message",Zp);const n=Object.getPrototypeOf(e);Ji.has(n)||(Ji.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},Vp=b("$ZodError",Fp);function Hp(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Jp(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?Hp(n,r.path[0],()=>[]).push(t(r)):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Bp(e,t=n=>n.message){const n={_errors:[]},o=(r,s=[])=>{for(const i of r.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a},[...s,...i.path]));else if(i.code==="invalid_key")o({issues:i.issues},[...s,...i.path]);else if(i.code==="invalid_element")o({issues:i.issues},[...s,...i.path]);else{const a=[...s,...i.path];if(a.length===0)n._errors.push(t(i));else{let u=n,d=0;for(;d<a.length;){const l=a[d],p=d===a.length-1;if(l==="_errors"){p&&u._errors.push(t(i)),d++;continue}Object.prototype.hasOwnProperty.call(u,l)||Object.defineProperty(u,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=u[l];p&&h._errors.push(t(i)),u=h,d++}}}};return o(e),n}function kr(e,t){return{callee:t?.callee??e,Err:t?.Err}}const Os=e=>{const t=(n,o,r,s)=>{const i=r?{...r,async:!1}:{async:!1},a=n._zod.run({value:o,issues:[]},i);if(a instanceof Promise)throw new Ut;if(a.issues.length){const u=new(s?.Err??e)(a.issues.map(d=>wt(d,i,at())));throw oc(u,s?.callee??t),u}return a.value};return t},qs=e=>{const t=async(n,o,r,s)=>{const i=r?{...r,async:!0}:{async:!0};let a=n._zod.run({value:o,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const u=new(s?.Err??e)(a.issues.map(d=>wt(d,i,at())));throw oc(u,s?.callee??t),u}return a.value};return t},Ns=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new Ut;return s.issues.length?lc(e,s.issues,r):{success:!0,data:s.value}};function lc(e,t,n){let o;return{success:!1,get error(){return o||(o=new e(t.map(r=>wt(r,n,at()))),t=void 0,n=void 0),o},set error(r){o=r,t=void 0,n=void 0}}}const Ms=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?lc(e,s.issues,r):{success:!0,data:s.value}},Wp=Symbol.for("zod.compile.invalid"),Gp=Symbol.for("zod.compile.fallback"),Kp=((e,t,n)=>{const o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==Wp)return!0;if(o.definite===!0&&n===void 0)return!1}return Yp(e,t,n)});function Yp(e,t,n){const o=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun;let s;if(r?(o[Gp]=!0,s=r({value:t,issues:[]},o)):s=e._zod.run({value:t,issues:[]},o),s instanceof Promise)throw new Ut;return s.issues.length===0}const Xp=async(e,t,n)=>{const o=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let r=e._zod.run({value:t,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length===0},Qp=e=>{const t=Os(e),n=(o,r,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return t(o,r,a,kr(n,i))};return n},eh=e=>{const t=Os(e),n=(o,r,s,i)=>t(o,r,s,kr(n,i));return n},th=e=>{const t=qs(e),n=async(o,r,s,i)=>{const a=s?{...s,direction:"backward"}:{direction:"backward"};return await t(o,r,a,kr(n,i))};return n},nh=e=>{const t=qs(e),n=async(o,r,s,i)=>await t(o,r,s,kr(n,i));return n},oh=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ns(e)(t,n,r)},rh=e=>(t,n,o)=>Ns(e)(t,n,o),sh=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ms(e)(t,n,r)},ih=e=>async(t,n,o)=>Ms(e)(t,n,o),ah=/^[cC][0-9a-z]{6,}$/,ch=/^[0-9a-z]+$/,uh=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,lh=/^[0-9a-vA-V]{20}$/,dh=/^[A-Za-z0-9]{27}$/,ph=/^[a-zA-Z0-9_-]{21}$/;function hh(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const mh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Sh=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gh="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function _h(){return new RegExp(gh,"u")}const vh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,yh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,bh=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Rh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ph=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,$h=/^https?$/,kh=/^\+[1-9]\d{6,14}$/,dc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Th(e){return new RegExp(`^${e}$`)}const Eh=Th(dc);function us(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ch(e){return new RegExp(`^${us(e)}$`)}function Ih(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${us({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${n}|${us({precision:e.precision})}`:n;return new RegExp(`^${dc}T(?:${o})$`)}const Oh=/^[\s\S]{0,}$/,qh=/^-?\d+$/,xs=/^-?\d+(?:\.\d+)?$/,Nh=/^(?:true|false)$/i,Mh=/^null$/i,xh=/^[^A-Z]*$/,zh=/^[^a-z]*$/,$e=b("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),zs=e=>{const t=e.value;return!pp(t)&&t.length!==void 0},pr={number:"number",bigint:"bigint",object:"date"},pc=b("$ZodCheckLessThan",(e,t)=>{$e.init(e,t);const n=pr[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:pr[typeof o.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=b("$ZodCheckGreaterThan",(e,t)=>{$e.init(e,t);const n=pr[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:pr[typeof o.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ah=b("$ZodCheckMultipleOf",(e,t)=>{$e.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):hp(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Lh=b("$ZodCheckNumberFormat",(e,t)=>{$e.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),o=n?"int":"number",[r,s]=ic[t.format];e._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}a<r&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Uh=b("$ZodCheckMaxLength",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length;if((typeof r=="string"&&s>t.maximum?Es(r):s)<=t.maximum)return;const a=Cs(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jh=b("$ZodCheckMinLength",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length;if((typeof r=="string"&&s>=t.minimum&&s<t.minimum*2?Es(r):s)>=t.minimum)return;const a=Cs(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dh=b("$ZodCheckLengthEquals",(e,t)=>{var n;$e.init(e,t),(n=e._zod.def).when??(n.when=zs),e._zod.check=o=>{const r=o.value,s=r.length,i=typeof r=="string"&&s>=t.length&&s<=t.length*2?Es(r):s;if(i===t.length)return;const a=Cs(r),u=i>t.length;o.issues.push({origin:a,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Tr=b("$ZodCheckStringFormat",(e,t)=>{var n,o;$e.init(e,t),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Zh=b("$ZodCheckRegex",(e,t)=>{Tr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Fh=b("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xh),Tr.init(e,t)}),Vh=b("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zh),Tr.init(e,t)}),Hh=b("$ZodCheckIncludes",(e,t)=>{$e.init(e,t);const n=yn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=o,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Jh=b("$ZodCheckStartsWith",(e,t)=>{$e.init(e,t);const n=new RegExp(`^${yn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Bh=b("$ZodCheckEndsWith",(e,t)=>{$e.init(e,t);const n=new RegExp(`.*${yn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Wi(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues))}const Wh=b("$ZodCheckProperties",(e,t)=>{$e.init(e,t),Is(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=o=>{if(o.value==null){o.issues.push({expected:"object",code:"invalid_type",input:o.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(i=>[i,t.shape[i]]));const r=o.value;let s;for(const[i,a]of n){const u=a._zod.run({value:r[i],issues:[]},{});u instanceof Promise?(s??(s=[]),s.push(u.then(d=>Wi(d,o,i)))):Wi(u,o,i)}if(s)return Promise.all(s).then(()=>{})}}),Gh=b("$ZodCheckOverwrite",(e,t)=>{$e.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Kh{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
2
2
  `).filter(i=>i),r=Math.min(...o.map(i=>i.length-i.trimStart().length)),s=o.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
3
3
  ${n.join(`
4
4
  `)}