@farthershore/cli 0.7.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +126 -124
  2. package/dist/index.js +92 -242
  3. package/dist/mcp.js +43 -181
  4. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,275 +1,120 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module";const require=__createRequire(import.meta.url);
3
- var uk=Object.create;var ts=Object.defineProperty;var lk=Object.getOwnPropertyDescriptor;var dk=Object.getOwnPropertyNames;var fk=Object.getPrototypeOf,mk=Object.prototype.hasOwnProperty;var Je=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var x=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),We=(t,e)=>{for(var r in e)ts(t,r,{get:e[r],enumerable:!0})},pk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of dk(e))!mk.call(t,n)&&n!==r&&ts(t,n,{get:()=>e[n],enumerable:!(i=lk(e,n))||i.enumerable});return t};var ii=(t,e,r)=>(r=t!=null?uk(fk(t)):{},pk(e||!t||!t.__esModule?ts(r,"default",{value:t,enumerable:!0}):r,t));var Fn=x(rs=>{var oi=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},ns=class extends oi{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};rs.CommanderError=oi;rs.InvalidArgumentError=ns});var ai=x(os=>{var{InvalidArgumentError:gk}=Fn(),is=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new gk(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function hk(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}os.Argument=is;os.humanReadableArgName=hk});var cs=x(ss=>{var{humanReadableArgName:vk}=ai(),as=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden),i=e._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,o)=>n.name().localeCompare(o.name())),r}compareOptions(e,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(r))}visibleOptions(e){let r=e.options.filter(n=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),o=i.long&&e._findOption(i.long);!n&&!o?r.push(i):i.long&&!o?r.push(e.createOption(i.long,i.description)):i.short&&!n&&r.push(e.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(o=>!o.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(i=>vk(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),n=r.helpWidth??80;function o(d,m){return r.formatItem(d,i,m,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(e))}`,""],s=r.commandDescription(e);s.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let c=r.visibleArguments(e).map(d=>o(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d))));c.length>0&&(a=a.concat([r.styleTitle("Arguments:"),...c,""]));let u=r.visibleOptions(e).map(d=>o(r.styleOptionTerm(r.optionTerm(d)),r.styleOptionDescription(r.optionDescription(d))));if(u.length>0&&(a=a.concat([r.styleTitle("Options:"),...u,""])),r.showGlobalOptions){let d=r.visibleGlobalOptions(e).map(m=>o(r.styleOptionTerm(r.optionTerm(m)),r.styleOptionDescription(r.optionDescription(m))));d.length>0&&(a=a.concat([r.styleTitle("Global Options:"),...d,""]))}let l=r.visibleCommands(e).map(d=>o(r.styleSubcommandTerm(r.subcommandTerm(d)),r.styleSubcommandDescription(r.subcommandDescription(d))));return l.length>0&&(a=a.concat([r.styleTitle("Commands:"),...l,""])),a.join(`
4
- `)}displayWidth(e){return Np(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,r,i,n){let a=" ".repeat(2);if(!i)return a+e;let s=e.padEnd(r+e.length-n.displayWidth(e)),c=2,l=(this.helpWidth??80)-r-c-2,d;return l<this.minWidthToWrap||n.preformatted(i)?d=i:d=n.boxWrap(i,l).replace(/\n/g,`
5
- `+" ".repeat(r+c)),a+s+" ".repeat(c)+d.replace(/\n/g,`
6
- ${a}`)}boxWrap(e,r){if(r<this.minWidthToWrap)return e;let i=e.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,o=[];return i.forEach(a=>{let s=a.match(n);if(s===null){o.push("");return}let c=[s.shift()],u=this.displayWidth(c[0]);s.forEach(l=>{let d=this.displayWidth(l);if(u+d<=r){c.push(l),u+=d;return}o.push(c.join(""));let m=l.trimStart();c=[m],u=this.displayWidth(m)}),o.push(c.join(""))}),o.join(`
7
- `)}};function Np(t){let e=/\x1b\[\d*(;\d*)*m/g;return t.replace(e,"")}ss.Help=as;ss.stripColor=Np});var fs=x(ds=>{var{InvalidArgumentError:yk}=Fn(),us=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let i=_k(e);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new yk(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?zp(this.name().replace(/^no-/,"")):zp(this.name())}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ls=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(e,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,o=n!==void 0?n:!1;return r.negate===(o===e)}};function zp(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function _k(t){let e,r,i=/^-[^-]$/,n=/^--[^-]/,o=t.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(e=o.shift()),n.test(o[0])&&(r=o.shift()),!e&&i.test(o[0])&&(e=o.shift()),!e&&n.test(o[0])&&(e=r,r=o.shift()),o[0].startsWith("-")){let a=o[0],s=`option creation failed due to '${a}' in option flags '${t}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
3
+ var Hg=Object.create;var Ni=Object.defineProperty;var Gg=Object.getOwnPropertyDescriptor;var Wg=Object.getOwnPropertyNames;var Jg=Object.getPrototypeOf,qg=Object.prototype.hasOwnProperty;var Rt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Me=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),$e=(t,r)=>{for(var n in r)Ni(t,n,{get:r[n],enumerable:!0})},Kg=(t,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of Wg(r))!qg.call(t,e)&&e!==n&&Ni(t,e,{get:()=>r[e],enumerable:!(o=Gg(r,e))||o.enumerable});return t};var Yg=(t,r,n)=>(n=t!=null?Hg(Jg(t)):{},Kg(r||!t||!t.__esModule?Ni(n,"default",{value:t,enumerable:!0}):n,t));var Zt=Me(Ui=>{var Cr=class extends Error{constructor(r,n,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=r,this.nestedError=void 0}},Di=class extends Cr{constructor(r){super(1,"commander.invalidArgument",r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ui.CommanderError=Cr;Ui.InvalidArgumentError=Di});var Nr=Me(Zi=>{var{InvalidArgumentError:Xg}=Zt(),Ri=class{constructor(r,n){switch(this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,r[0]){case"<":this.required=!0,this._name=r.slice(1,-1);break;case"[":this.required=!1,this._name=r.slice(1,-1);break;default:this.required=!0,this._name=r;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}argParser(r){return this.parseArg=r,this}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new Xg(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Qg(t){let r=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+r+">":"["+r+"]"}Zi.Argument=Ri;Zi.humanReadableArgName=Qg});var Mi=Me(Fi=>{var{humanReadableArgName:eh}=Nr(),Li=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(r){this.helpWidth=this.helpWidth??r.helpWidth??80}visibleCommands(r){let n=r.commands.filter(e=>!e._hidden),o=r._getHelpCommand();return o&&!o._hidden&&n.push(o),this.sortSubcommands&&n.sort((e,i)=>e.name().localeCompare(i.name())),n}compareOptions(r,n){let o=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return o(r).localeCompare(o(n))}visibleOptions(r){let n=r.options.filter(e=>!e.hidden),o=r._getHelpOption();if(o&&!o.hidden){let e=o.short&&r._findOption(o.short),i=o.long&&r._findOption(o.long);!e&&!i?n.push(o):o.long&&!i?n.push(r.createOption(o.long,o.description)):o.short&&!e&&n.push(r.createOption(o.short,o.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(r){if(!this.showGlobalOptions)return[];let n=[];for(let o=r.parent;o;o=o.parent){let e=o.options.filter(i=>!i.hidden);n.push(...e)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(r){return r._argsDescription&&r.registeredArguments.forEach(n=>{n.description=n.description||r._argsDescription[n.name()]||""}),r.registeredArguments.find(n=>n.description)?r.registeredArguments:[]}subcommandTerm(r){let n=r.registeredArguments.map(o=>eh(o)).join(" ");return r._name+(r._aliases[0]?"|"+r._aliases[0]:"")+(r.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(r){return r.flags}argumentTerm(r){return r.name()}longestSubcommandTermLength(r,n){return n.visibleCommands(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(e)))),0)}longestOptionTermLength(r,n){return n.visibleOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestGlobalOptionTermLength(r,n){return n.visibleGlobalOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestArgumentTermLength(r,n){return n.visibleArguments(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(e)))),0)}commandUsage(r){let n=r._name;r._aliases[0]&&(n=n+"|"+r._aliases[0]);let o="";for(let e=r.parent;e;e=e.parent)o=e.name()+" "+o;return o+n+" "+r.usage()}commandDescription(r){return r.description()}subcommandDescription(r){return r.summary()||r.description()}optionDescription(r){let n=[];return r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&(r.required||r.optional||r.isBoolean()&&typeof r.defaultValue=="boolean")&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),r.presetArg!==void 0&&r.optional&&n.push(`preset: ${JSON.stringify(r.presetArg)}`),r.envVar!==void 0&&n.push(`env: ${r.envVar}`),n.length>0?`${r.description} (${n.join(", ")})`:r.description}argumentDescription(r){let n=[];if(r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),n.length>0){let o=`(${n.join(", ")})`;return r.description?`${r.description} ${o}`:o}return r.description}formatHelp(r,n){let o=n.padWidth(r,n),e=n.helpWidth??80;function i(p,g){return n.formatItem(p,o,g,n)}let a=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(r))}`,""],s=n.commandDescription(r);s.length>0&&(a=a.concat([n.boxWrap(n.styleCommandDescription(s),e),""]));let u=n.visibleArguments(r).map(p=>i(n.styleArgumentTerm(n.argumentTerm(p)),n.styleArgumentDescription(n.argumentDescription(p))));u.length>0&&(a=a.concat([n.styleTitle("Arguments:"),...u,""]));let l=n.visibleOptions(r).map(p=>i(n.styleOptionTerm(n.optionTerm(p)),n.styleOptionDescription(n.optionDescription(p))));if(l.length>0&&(a=a.concat([n.styleTitle("Options:"),...l,""])),n.showGlobalOptions){let p=n.visibleGlobalOptions(r).map(g=>i(n.styleOptionTerm(n.optionTerm(g)),n.styleOptionDescription(n.optionDescription(g))));p.length>0&&(a=a.concat([n.styleTitle("Global Options:"),...p,""]))}let d=n.visibleCommands(r).map(p=>i(n.styleSubcommandTerm(n.subcommandTerm(p)),n.styleSubcommandDescription(n.subcommandDescription(p))));return d.length>0&&(a=a.concat([n.styleTitle("Commands:"),...d,""])),a.join(`
4
+ `)}displayWidth(r){return Pl(r).length}styleTitle(r){return r}styleUsage(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).join(" ")}styleCommandDescription(r){return this.styleDescriptionText(r)}styleOptionDescription(r){return this.styleDescriptionText(r)}styleSubcommandDescription(r){return this.styleDescriptionText(r)}styleArgumentDescription(r){return this.styleDescriptionText(r)}styleDescriptionText(r){return r}styleOptionTerm(r){return this.styleOptionText(r)}styleSubcommandTerm(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).join(" ")}styleArgumentTerm(r){return this.styleArgumentText(r)}styleOptionText(r){return r}styleArgumentText(r){return r}styleSubcommandText(r){return r}styleCommandText(r){return r}padWidth(r,n){return Math.max(n.longestOptionTermLength(r,n),n.longestGlobalOptionTermLength(r,n),n.longestSubcommandTermLength(r,n),n.longestArgumentTermLength(r,n))}preformatted(r){return/\n[^\S\r\n]/.test(r)}formatItem(r,n,o,e){let a=" ".repeat(2);if(!o)return a+r;let s=r.padEnd(n+r.length-e.displayWidth(r)),u=2,d=(this.helpWidth??80)-n-u-2,p;return d<this.minWidthToWrap||e.preformatted(o)?p=o:p=e.boxWrap(o,d).replace(/\n/g,`
5
+ `+" ".repeat(n+u)),a+s+" ".repeat(u)+p.replace(/\n/g,`
6
+ ${a}`)}boxWrap(r,n){if(n<this.minWidthToWrap)return r;let o=r.split(/\r\n|\n/),e=/[\s]*[^\s]+/g,i=[];return o.forEach(a=>{let s=a.match(e);if(s===null){i.push("");return}let u=[s.shift()],l=this.displayWidth(u[0]);s.forEach(d=>{let p=this.displayWidth(d);if(l+p<=n){u.push(d),l+=p;return}i.push(u.join(""));let g=d.trimStart();u=[g],l=this.displayWidth(g)}),i.push(u.join(""))}),i.join(`
7
+ `)}};function Pl(t){let r=/\x1b\[\d*(;\d*)*m/g;return t.replace(r,"")}Fi.Help=Li;Fi.stripColor=Pl});var Gi=Me(Hi=>{var{InvalidArgumentError:th}=Zt(),Vi=class{constructor(r,n){this.flags=r,this.description=n||"",this.required=r.includes("<"),this.optional=r.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(r),this.mandatory=!1;let o=rh(r);this.short=o.shortFlag,this.long=o.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}preset(r){return this.presetArg=r,this}conflicts(r){return this.conflictsWith=this.conflictsWith.concat(r),this}implies(r){let n=r;return typeof r=="string"&&(n={[r]:!0}),this.implied=Object.assign(this.implied||{},n),this}env(r){return this.envVar=r,this}argParser(r){return this.parseArg=r,this}makeOptionMandatory(r=!0){return this.mandatory=!!r,this}hideHelp(r=!0){return this.hidden=!!r,this}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new th(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?El(this.name().replace(/^no-/,"")):El(this.name())}is(r){return this.short===r||this.long===r}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Bi=class{constructor(r){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,r.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(r,n){let o=n.attributeName();if(!this.dualOptions.has(o))return!0;let e=this.negativeOptions.get(o).presetArg,i=e!==void 0?e:!1;return n.negate===(i===r)}};function El(t){return t.split("-").reduce((r,n)=>r+n[0].toUpperCase()+n.slice(1))}function rh(t){let r,n,o=/^-[^-]$/,e=/^--[^-]/,i=t.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(r=i.shift()),e.test(i[0])&&(n=i.shift()),!r&&o.test(i[0])&&(r=i.shift()),!r&&e.test(i[0])&&(r=n,n=i.shift()),i[0].startsWith("-")){let a=i[0],s=`option creation failed due to '${a}' in option flags '${t}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
8
8
  - a short flag is a single dash and a single character
9
9
  - either use a single dash and a single character (for a short flag)
10
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(a)?new Error(`${s}
11
- - too many short flags`):n.test(a)?new Error(`${s}
10
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(a)?new Error(`${s}
11
+ - too many short flags`):e.test(a)?new Error(`${s}
12
12
  - too many long flags`):new Error(`${s}
13
- - unrecognised flag format`)}if(e===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:r}}ds.Option=us;ds.DualOptions=ls});var jp=x(Cp=>{function bk(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let i=0;i<=t.length;i++)r[i]=[i];for(let i=0;i<=e.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++)for(let n=1;n<=t.length;n++){let o=1;t[n-1]===e[i-1]?o=0:o=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&t[n-1]===e[i-2]&&t[n-2]===e[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[t.length][e.length]}function $k(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(a=>a.slice(2)));let i=[],n=3,o=.4;return e.forEach(a=>{if(a.length<=1)return;let s=bk(t,a),c=Math.max(t.length,a.length);(c-s)/c>o&&(s<n?(n=s,i=[a]):s===n&&i.push(a))}),i.sort((a,s)=>a.localeCompare(s)),r&&(i=i.map(a=>`--${a}`)),i.length>1?`
14
- (Did you mean one of ${i.join(", ")}?)`:i.length===1?`
15
- (Did you mean ${i[0]}?)`:""}Cp.suggestSimilar=$k});var Lp=x(vs=>{var kk=Je("node:events").EventEmitter,ms=Je("node:child_process"),Ge=Je("node:path"),si=Je("node:fs"),M=Je("node:process"),{Argument:wk,humanReadableArgName:xk}=ai(),{CommanderError:ps}=Fn(),{Help:Sk,stripColor:Ik}=cs(),{Option:Dp,DualOptions:Ok}=fs(),{suggestSimilar:Up}=jp(),gs=class t extends kk{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>M.stdout.write(r),writeErr:r=>M.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>M.stdout.isTTY?M.stdout.columns:void 0,getErrHelpWidth:()=>M.stderr.isTTY?M.stderr.columns:void 0,getOutHasColors:()=>hs()??(M.stdout.isTTY&&M.stdout.hasColors?.()),getErrHasColors:()=>hs()??(M.stderr.isTTY&&M.stderr.hasColors?.()),stripColor:r=>Ik(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,i){let n=r,o=i;typeof n=="object"&&n!==null&&(o=n,n=null),o=o||{};let[,a,s]=e.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return n&&(c.description(n),c._executableHandler=!0),o.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(o.noHelp||o.hidden),c._executableFile=o.executableFile||null,s&&c.arguments(s),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Sk,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
16
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new wk(e,r)}argument(e,r,i,n){let o=this.createArgument(e,r);return typeof i=="function"?o.default(n).argParser(i):o.default(i),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,r){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,i,n]=e.match(/([^ ]+) *(.*)/),o=r??"display help for command",a=this.createCommand(i);return a.helpOption(!1),n&&a.arguments(n),o&&a.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(e,r){return typeof e!="object"?(this.helpCommand(e,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
17
- Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,i){this._exitCallback&&this._exitCallback(new ps(e,r,i)),M.exit(e)}action(e){let r=i=>{let n=this.registeredArguments.length,o=i.slice(0,n);return this._storeOptionsAsProperties?o[n]=this:o[n]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new Dp(e,r)}_callParseArg(e,r,i,n){try{return e.parseArg(r,i)}catch(o){if(o.code==="commander.invalidArgument"){let a=`${n} ${o.message}`;this.error(a,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){let i=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
18
- - already used by option '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=n=>[n.name()].concat(n.aliases()),i=r(e).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),o=r(e).join("|");throw new Error(`cannot add command '${o}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),i=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(i,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(i,e.defaultValue,"default");let n=(o,a,s)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let c=this.getOptionValue(i);o!==null&&e.parseArg?o=this._callParseArg(e,o,c,a):o!==null&&e.variadic&&(o=e._concatValue(o,c)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(i,o,s)};return this.on("option:"+r,o=>{let a=`error: option '${e.flags}' argument '${o}' is invalid.`;n(o,a,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let a=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;n(o,a,"env")}),this}_optionEx(e,r,i,n,o){if(typeof r=="object"&&r instanceof Dp)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,i);if(a.makeOptionMandatory(!!e.mandatory),typeof n=="function")a.default(o).argParser(n);else if(n instanceof RegExp){let s=n;n=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(o).argParser(n)}else a.default(n);return this.addOption(a)}option(e,r,i,n){return this._optionEx({},e,r,i,n)}requiredOption(e,r,i,n){return this._optionEx({mandatory:!0},e,r,i,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,i){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=i,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(e)!==void 0&&(r=i.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},e===void 0&&r.from===void 0){M.versions?.electron&&(r.from="electron");let n=M.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}e===void 0&&(e=M.argv),this.rawArgs=e.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=e[1],i=e.slice(2);break;case"electron":M.defaultApp?(this._scriptPath=e[1],i=e.slice(2)):i=e.slice(1);break;case"user":i=e.slice(0);break;case"eval":i=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return this._parseCommand([],i),this}async parseAsync(e,r){this._prepareForParse();let i=this._prepareUserArgs(e,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,r,i){if(si.existsSync(e))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",o=`'${e}' does not exist
20
- - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
13
+ - unrecognised flag format`)}if(r===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:r,longFlag:n}}Hi.Option=Vi;Hi.DualOptions=Bi});var jl=Me(Tl=>{function nh(t,r){if(Math.abs(t.length-r.length)>3)return Math.max(t.length,r.length);let n=[];for(let o=0;o<=t.length;o++)n[o]=[o];for(let o=0;o<=r.length;o++)n[0][o]=o;for(let o=1;o<=r.length;o++)for(let e=1;e<=t.length;e++){let i=1;t[e-1]===r[o-1]?i=0:i=1,n[e][o]=Math.min(n[e-1][o]+1,n[e][o-1]+1,n[e-1][o-1]+i),e>1&&o>1&&t[e-1]===r[o-2]&&t[e-2]===r[o-1]&&(n[e][o]=Math.min(n[e][o],n[e-2][o-2]+1))}return n[t.length][r.length]}function ih(t,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));let n=t.startsWith("--");n&&(t=t.slice(2),r=r.map(a=>a.slice(2)));let o=[],e=3,i=.4;return r.forEach(a=>{if(a.length<=1)return;let s=nh(t,a),u=Math.max(t.length,a.length);(u-s)/u>i&&(s<e?(e=s,o=[a]):s===e&&o.push(a))}),o.sort((a,s)=>a.localeCompare(s)),n&&(o=o.map(a=>`--${a}`)),o.length>1?`
14
+ (Did you mean one of ${o.join(", ")}?)`:o.length===1?`
15
+ (Did you mean ${o[0]}?)`:""}Tl.suggestSimilar=ih});var Dl=Me(Yi=>{var oh=Rt("node:events").EventEmitter,Wi=Rt("node:child_process"),xe=Rt("node:path"),Dr=Rt("node:fs"),P=Rt("node:process"),{Argument:ah,humanReadableArgName:sh}=Nr(),{CommanderError:Ji}=Zt(),{Help:ch,stripColor:uh}=Mi(),{Option:Al,DualOptions:lh}=Gi(),{suggestSimilar:Cl}=jl(),qi=class t extends oh{constructor(r){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=r||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:n=>P.stdout.write(n),writeErr:n=>P.stderr.write(n),outputError:(n,o)=>o(n),getOutHelpWidth:()=>P.stdout.isTTY?P.stdout.columns:void 0,getErrHelpWidth:()=>P.stderr.isTTY?P.stderr.columns:void 0,getOutHasColors:()=>Ki()??(P.stdout.isTTY&&P.stdout.hasColors?.()),getErrHasColors:()=>Ki()??(P.stderr.isTTY&&P.stderr.hasColors?.()),stripColor:n=>uh(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(r){return this._outputConfiguration=r._outputConfiguration,this._helpOption=r._helpOption,this._helpCommand=r._helpCommand,this._helpConfiguration=r._helpConfiguration,this._exitCallback=r._exitCallback,this._storeOptionsAsProperties=r._storeOptionsAsProperties,this._combineFlagAndOptionalValue=r._combineFlagAndOptionalValue,this._allowExcessArguments=r._allowExcessArguments,this._enablePositionalOptions=r._enablePositionalOptions,this._showHelpAfterError=r._showHelpAfterError,this._showSuggestionAfterError=r._showSuggestionAfterError,this}_getCommandAndAncestors(){let r=[];for(let n=this;n;n=n.parent)r.push(n);return r}command(r,n,o){let e=n,i=o;typeof e=="object"&&e!==null&&(i=e,e=null),i=i||{};let[,a,s]=r.match(/([^ ]+) *(.*)/),u=this.createCommand(a);return e&&(u.description(e),u._executableHandler=!0),i.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(i.noHelp||i.hidden),u._executableFile=i.executableFile||null,s&&u.arguments(s),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),e?this:u}createCommand(r){return new t(r)}createHelp(){return Object.assign(new ch,this.configureHelp())}configureHelp(r){return r===void 0?this._helpConfiguration:(this._helpConfiguration=r,this)}configureOutput(r){return r===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,r),this)}showHelpAfterError(r=!0){return typeof r!="string"&&(r=!!r),this._showHelpAfterError=r,this}showSuggestionAfterError(r=!0){return this._showSuggestionAfterError=!!r,this}addCommand(r,n){if(!r._name)throw new Error(`Command passed to .addCommand() must have a name
16
+ - specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=r._name),(n.noHelp||n.hidden)&&(r._hidden=!0),this._registerCommand(r),r.parent=this,r._checkForBrokenPassThrough(),this}createArgument(r,n){return new ah(r,n)}argument(r,n,o,e){let i=this.createArgument(r,n);return typeof o=="function"?i.default(e).argParser(o):i.default(o),this.addArgument(i),this}arguments(r){return r.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(r){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.name()}'`);if(r.required&&r.defaultValue!==void 0&&r.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${r.name()}'`);return this.registeredArguments.push(r),this}helpCommand(r,n){if(typeof r=="boolean")return this._addImplicitHelpCommand=r,this;r=r??"help [command]";let[,o,e]=r.match(/([^ ]+) *(.*)/),i=n??"display help for command",a=this.createCommand(o);return a.helpOption(!1),e&&a.arguments(e),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(r,n){return typeof r!="object"?(this.helpCommand(r,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=r,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(r,n){let o=["preSubcommand","preAction","postAction"];if(!o.includes(r))throw new Error(`Unexpected value for event passed to hook : '${r}'.
17
+ Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[r]?this._lifeCycleHooks[r].push(n):this._lifeCycleHooks[r]=[n],this}exitOverride(r){return r?this._exitCallback=r:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(r,n,o){this._exitCallback&&this._exitCallback(new Ji(r,n,o)),P.exit(r)}action(r){let n=o=>{let e=this.registeredArguments.length,i=o.slice(0,e);return this._storeOptionsAsProperties?i[e]=this:i[e]=this.opts(),i.push(this),r.apply(this,i)};return this._actionHandler=n,this}createOption(r,n){return new Al(r,n)}_callParseArg(r,n,o,e){try{return r.parseArg(n,o)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${e} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(r){let n=r.short&&this._findOption(r.short)||r.long&&this._findOption(r.long);if(n){let o=r.long&&this._findOption(r.long)?r.long:r.short;throw new Error(`Cannot add option '${r.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
18
+ - already used by option '${n.flags}'`)}this.options.push(r)}_registerCommand(r){let n=e=>[e.name()].concat(e.aliases()),o=n(r).find(e=>this._findCommand(e));if(o){let e=n(this._findCommand(o)).join("|"),i=n(r).join("|");throw new Error(`cannot add command '${i}' as already have command '${e}'`)}this.commands.push(r)}addOption(r){this._registerOption(r);let n=r.name(),o=r.attributeName();if(r.negate){let i=r.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,r.defaultValue===void 0?!0:r.defaultValue,"default")}else r.defaultValue!==void 0&&this.setOptionValueWithSource(o,r.defaultValue,"default");let e=(i,a,s)=>{i==null&&r.presetArg!==void 0&&(i=r.presetArg);let u=this.getOptionValue(o);i!==null&&r.parseArg?i=this._callParseArg(r,i,u,a):i!==null&&r.variadic&&(i=r._concatValue(i,u)),i==null&&(r.negate?i=!1:r.isBoolean()||r.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,s)};return this.on("option:"+n,i=>{let a=`error: option '${r.flags}' argument '${i}' is invalid.`;e(i,a,"cli")}),r.envVar&&this.on("optionEnv:"+n,i=>{let a=`error: option '${r.flags}' value '${i}' from env '${r.envVar}' is invalid.`;e(i,a,"env")}),this}_optionEx(r,n,o,e,i){if(typeof n=="object"&&n instanceof Al)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(n,o);if(a.makeOptionMandatory(!!r.mandatory),typeof e=="function")a.default(i).argParser(e);else if(e instanceof RegExp){let s=e;e=(u,l)=>{let d=s.exec(u);return d?d[0]:l},a.default(i).argParser(e)}else a.default(e);return this.addOption(a)}option(r,n,o,e){return this._optionEx({},r,n,o,e)}requiredOption(r,n,o,e){return this._optionEx({mandatory:!0},r,n,o,e)}combineFlagAndOptionalValue(r=!0){return this._combineFlagAndOptionalValue=!!r,this}allowUnknownOption(r=!0){return this._allowUnknownOption=!!r,this}allowExcessArguments(r=!0){return this._allowExcessArguments=!!r,this}enablePositionalOptions(r=!0){return this._enablePositionalOptions=!!r,this}passThroughOptions(r=!0){return this._passThroughOptions=!!r,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(r=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!r,this}getOptionValue(r){return this._storeOptionsAsProperties?this[r]:this._optionValues[r]}setOptionValue(r,n){return this.setOptionValueWithSource(r,n,void 0)}setOptionValueWithSource(r,n,o){return this._storeOptionsAsProperties?this[r]=n:this._optionValues[r]=n,this._optionValueSources[r]=o,this}getOptionValueSource(r){return this._optionValueSources[r]}getOptionValueSourceWithGlobals(r){let n;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(r)!==void 0&&(n=o.getOptionValueSource(r))}),n}_prepareUserArgs(r,n){if(r!==void 0&&!Array.isArray(r))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},r===void 0&&n.from===void 0){P.versions?.electron&&(n.from="electron");let e=P.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(n.from="eval")}r===void 0&&(r=P.argv),this.rawArgs=r.slice();let o;switch(n.from){case void 0:case"node":this._scriptPath=r[1],o=r.slice(2);break;case"electron":P.defaultApp?(this._scriptPath=r[1],o=r.slice(2)):o=r.slice(1);break;case"user":o=r.slice(0);break;case"eval":o=r.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return this._parseCommand([],o),this}async parseAsync(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return await this._parseCommand([],o),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(r,n,o){if(Dr.existsSync(r))return;let e=n?`searched for local subcommand relative to directory '${n}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${r}' does not exist
20
+ - if '${o}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
21
21
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
22
- - ${n}`;throw new Error(o)}_executeSubCommand(e,r){r=r.slice();let i=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function o(l,d){let m=Ge.resolve(l,d);if(si.existsSync(m))return m;if(n.includes(Ge.extname(d)))return;let p=n.find(y=>si.existsSync(`${m}${y}`));if(p)return`${m}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=si.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=Ge.resolve(Ge.dirname(l),s)}if(s){let l=o(s,a);if(!l&&!e._executableFile&&this._scriptPath){let d=Ge.basename(this._scriptPath,Ge.extname(this._scriptPath));d!==this._name&&(l=o(s,`${d}-${e._name}`))}a=l||a}i=n.includes(Ge.extname(a));let c;M.platform!=="win32"?i?(r.unshift(a),r=Rp(M.execArgv).concat(r),c=ms.spawn(M.argv[0],r,{stdio:"inherit"})):c=ms.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,e._name),r.unshift(a),r=Rp(M.execArgv).concat(r),c=ms.spawn(M.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(d=>{M.on(d,()=>{c.killed===!1&&c.exitCode===null&&c.kill(d)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new ps(l,"commander.executeSubCommandAsync","(close)")):M.exit(l)}),c.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,e._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!u)M.exit(1);else{let d=new ps(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,u(d)}}),this.runningCommand=c}_dispatchSubcommand(e,r,i){let n=this._findCommand(e);n||this.help({error:!0}),n._prepareForParse();let o;return o=this._chainOrCallSubCommandHook(o,n,"preSubcommand"),o=this._chainOrCall(o,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),o}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(i,n,o)=>{let a=n;if(n!==null&&i.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;a=this._callParseArg(i,n,o,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let o=i.defaultValue;i.variadic?n<this.args.length?(o=this.args.slice(n),i.parseArg&&(o=o.reduce((a,s)=>e(i,s,a),i.defaultValue))):o===void 0&&(o=[]):n<this.args.length&&(o=this.args[n],i.parseArg&&(o=e(i,o,i.defaultValue))),r[n]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let i=e,n=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(a=>{n.push({hookedCommand:o,callback:a})})}),r==="postAction"&&n.reverse(),n.forEach(o=>{i=this._chainOrCall(i,()=>o.callback(o.hookedCommand,this))}),i}_chainOrCallSubCommandHook(e,r,i){let n=e;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(o=>{n=this._chainOrCall(n,()=>o(this,r))}),n}_parseCommand(e,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(i.operands),r=i.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(o,e,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(o))n(),this._processArguments(),this.parent.emit(o,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});e.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=e.find(o=>i.conflictsWith.includes(o.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],i=[],n=r,o=e.slice();function a(c){return c.length>1&&c[0]==="-"}let s=null;for(;o.length;){let c=o.shift();if(c==="--"){n===i&&n.push(c),n.push(...o);break}if(s&&!a(c)){this.emit(`option:${s.name()}`,c);continue}if(s=null,a(c)){let u=this._findOption(c);if(u){if(u.required){let l=o.shift();l===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,l)}else if(u.optional){let l=null;o.length>0&&!a(o[0])&&(l=o.shift()),this.emit(`option:${u.name()}`,l)}else this.emit(`option:${u.name()}`);s=u.variadic?u:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let u=this._findOption(`-${c[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,c.slice(2)):(this.emit(`option:${u.name()}`),o.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let u=c.indexOf("="),l=this._findOption(c.slice(0,u));if(l&&(l.required||l.optional)){this.emit(`option:${l.name()}`,c.slice(u+1));continue}}if(a(c)&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(c)){r.push(c),o.length>0&&i.push(...o);break}else if(this._getHelpCommand()&&c===this._getHelpCommand().name()){r.push(c),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){i.push(c),o.length>0&&i.push(...o);break}}if(this._passThroughOptions){n.push(c),o.length>0&&n.push(...o);break}n.push(c)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
22
+ - ${e}`;throw new Error(i)}_executeSubCommand(r,n){n=n.slice();let o=!1,e=[".js",".ts",".tsx",".mjs",".cjs"];function i(d,p){let g=xe.resolve(d,p);if(Dr.existsSync(g))return g;if(e.includes(xe.extname(p)))return;let _=e.find(x=>Dr.existsSync(`${g}${x}`));if(_)return`${g}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=r._executableFile||`${this._name}-${r._name}`,s=this._executableDir||"";if(this._scriptPath){let d;try{d=Dr.realpathSync(this._scriptPath)}catch{d=this._scriptPath}s=xe.resolve(xe.dirname(d),s)}if(s){let d=i(s,a);if(!d&&!r._executableFile&&this._scriptPath){let p=xe.basename(this._scriptPath,xe.extname(this._scriptPath));p!==this._name&&(d=i(s,`${p}-${r._name}`))}a=d||a}o=e.includes(xe.extname(a));let u;P.platform!=="win32"?o?(n.unshift(a),n=Nl(P.execArgv).concat(n),u=Wi.spawn(P.argv[0],n,{stdio:"inherit"})):u=Wi.spawn(a,n,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,r._name),n.unshift(a),n=Nl(P.execArgv).concat(n),u=Wi.spawn(P.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(p=>{P.on(p,()=>{u.killed===!1&&u.exitCode===null&&u.kill(p)})});let l=this._exitCallback;u.on("close",d=>{d=d??1,l?l(new Ji(d,"commander.executeSubCommandAsync","(close)")):P.exit(d)}),u.on("error",d=>{if(d.code==="ENOENT")this._checkForMissingExecutable(a,s,r._name);else if(d.code==="EACCES")throw new Error(`'${a}' not executable`);if(!l)P.exit(1);else{let p=new Ji(1,"commander.executeSubCommandAsync","(error)");p.nestedError=d,l(p)}}),this.runningCommand=u}_dispatchSubcommand(r,n,o){let e=this._findCommand(r);e||this.help({error:!0}),e._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,e,"preSubcommand"),i=this._chainOrCall(i,()=>{if(e._executableHandler)this._executeSubCommand(e,n.concat(o));else return e._parseCommand(n,o)}),i}_dispatchHelpCommand(r){r||this.help();let n=this._findCommand(r);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(r,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((r,n)=>{r.required&&this.args[n]==null&&this.missingArgument(r.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let r=(o,e,i)=>{let a=e;if(e!==null&&o.parseArg){let s=`error: command-argument value '${e}' is invalid for argument '${o.name()}'.`;a=this._callParseArg(o,e,i,s)}return a};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((o,e)=>{let i=o.defaultValue;o.variadic?e<this.args.length?(i=this.args.slice(e),o.parseArg&&(i=i.reduce((a,s)=>r(o,s,a),o.defaultValue))):i===void 0&&(i=[]):e<this.args.length&&(i=this.args[e],o.parseArg&&(i=r(o,i,o.defaultValue))),n[e]=i}),this.processedArgs=n}_chainOrCall(r,n){return r&&r.then&&typeof r.then=="function"?r.then(()=>n()):n()}_chainOrCallHooks(r,n){let o=r,e=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[n]!==void 0).forEach(i=>{i._lifeCycleHooks[n].forEach(a=>{e.push({hookedCommand:i,callback:a})})}),n==="postAction"&&e.reverse(),e.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(r,n,o){let e=r;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{e=this._chainOrCall(e,()=>i(this,n))}),e}_parseCommand(r,n){let o=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),r=r.concat(o.operands),n=o.unknown,this.args=r.concat(n),r&&this._findCommand(r[0]))return this._dispatchSubcommand(r[0],r.slice(1),n);if(this._getHelpCommand()&&r[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(r[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,r,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let e=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){e(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(i,r,n)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(i))e(),this._processArguments(),this.parent.emit(i,r,n);else if(r.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",r,n);this.listenerCount("command:*")?this.emit("command:*",r,n):this.commands.length?this.unknownCommand():(e(),this._processArguments())}else this.commands.length?(e(),this.help({error:!0})):(e(),this._processArguments())}_findCommand(r){if(r)return this.commands.find(n=>n._name===r||n._aliases.includes(r))}_findOption(r){return this.options.find(n=>n.is(r))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(r=>{r.options.forEach(n=>{n.mandatory&&r.getOptionValue(n.attributeName())===void 0&&r.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let r=this.options.filter(o=>{let e=o.attributeName();return this.getOptionValue(e)===void 0?!1:this.getOptionValueSource(e)!=="default"});r.filter(o=>o.conflictsWith.length>0).forEach(o=>{let e=r.find(i=>o.conflictsWith.includes(i.attributeName()));e&&this._conflictingOption(o,e)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(r=>{r._checkForConflictingLocalOptions()})}parseOptions(r){let n=[],o=[],e=n,i=r.slice();function a(u){return u.length>1&&u[0]==="-"}let s=null;for(;i.length;){let u=i.shift();if(u==="--"){e===o&&e.push(u),e.push(...i);break}if(s&&!a(u)){this.emit(`option:${s.name()}`,u);continue}if(s=null,a(u)){let l=this._findOption(u);if(l){if(l.required){let d=i.shift();d===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,d)}else if(l.optional){let d=null;i.length>0&&!a(i[0])&&(d=i.shift()),this.emit(`option:${l.name()}`,d)}else this.emit(`option:${l.name()}`);s=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),i.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),d=this._findOption(u.slice(0,l));if(d&&(d.required||d.optional)){this.emit(`option:${d.name()}`,u.slice(l+1));continue}}if(a(u)&&(e=o),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&o.length===0){if(this._findCommand(u)){n.push(u),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){n.push(u),i.length>0&&n.push(...i);break}else if(this._defaultCommandName){o.push(u),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){e.push(u),i.length>0&&e.push(...i);break}e.push(u)}return{operands:n,unknown:o}}opts(){if(this._storeOptionsAsProperties){let r={},n=this.options.length;for(let o=0;o<n;o++){let e=this.options[o].attributeName();r[e]=e===this._versionOptionName?this._version:this[e]}return r}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((r,n)=>Object.assign(r,n.opts()),{})}error(r,n){this._outputConfiguration.outputError(`${r}
23
23
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
24
24
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
25
- `),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,o=i.code||"commander.error";this._exit(n,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in M.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,M.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Ok(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&e.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let i=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(d=>d.negate&&s===d.attributeName()),l=this.options.find(d=>!d.negate&&s===d.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},n=a=>{let s=i(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},o=`error: ${n(e)} cannot be used with ${n(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],o=this;do{let a=o.createHelp().visibleOptions(o).filter(s=>s.long).map(s=>s.long);n=n.concat(a),o=o.parent}while(o&&!o._enablePositionalOptions);r=Up(e,n)}let i=`error: unknown option '${e}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${i} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(o=>{n.push(o.name()),o.alias()&&n.push(o.alias())}),r=Up(e,n)}let i=`error: unknown command '${e}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(e,r,i){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${e}
26
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>xk(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Ge.basename(e,Ge.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp(),i=this._getOutputContext(e);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(e){e=e||{};let r=!!e.error,i,n,o;return r?(i=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(i=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),i(s)),hasColors:n,helpWidth:o}}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let i=this._getOutputContext(e),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let o=this.helpInformation({error:i.error});if(r&&(o=r(o),typeof o!="string"&&!Buffer.isBuffer(o)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(o),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(e,r){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",r=r??"display help for command",this._helpOption=this.createOption(e,r),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let r=Number(M.exitCode??0);r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
27
- Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,o=>{let a;typeof r=="function"?a=r({error:o.error,command:o.command}):a=r,a&&o.write(`${a}
28
- `)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Rp(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,i="127.0.0.1",n="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?n=o[3]:i=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],i=o[3],n=o[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:e})}function hs(){if(M.env.NO_COLOR||M.env.FORCE_COLOR==="0"||M.env.FORCE_COLOR==="false")return!1;if(M.env.FORCE_COLOR||M.env.CLICOLOR_FORCE!==void 0)return!0}vs.Command=gs;vs.useColor=hs});var qp=x(xe=>{var{Argument:Zp}=ai(),{Command:ys}=Lp(),{CommanderError:Pk,InvalidArgumentError:Mp}=Fn(),{Help:Ek}=cs(),{Option:Fp}=fs();xe.program=new ys;xe.createCommand=t=>new ys(t);xe.createOption=(t,e)=>new Fp(t,e);xe.createArgument=(t,e)=>new Zp(t,e);xe.Command=ys;xe.Option=Fp;xe.Argument=Zp;xe.Help=Ek;xe.CommanderError=Pk;xe.InvalidArgumentError=Mp;xe.InvalidOptionArgumentError=Mp});var L=x(ae=>{"use strict";var $s=Symbol.for("yaml.alias"),ng=Symbol.for("yaml.document"),di=Symbol.for("yaml.map"),rg=Symbol.for("yaml.pair"),ks=Symbol.for("yaml.scalar"),fi=Symbol.for("yaml.seq"),He=Symbol.for("yaml.node.type"),zk=t=>!!t&&typeof t=="object"&&t[He]===$s,Ck=t=>!!t&&typeof t=="object"&&t[He]===ng,jk=t=>!!t&&typeof t=="object"&&t[He]===di,Dk=t=>!!t&&typeof t=="object"&&t[He]===rg,ig=t=>!!t&&typeof t=="object"&&t[He]===ks,Uk=t=>!!t&&typeof t=="object"&&t[He]===fi;function og(t){if(t&&typeof t=="object")switch(t[He]){case di:case fi:return!0}return!1}function Rk(t){if(t&&typeof t=="object")switch(t[He]){case $s:case di:case ks:case fi:return!0}return!1}var Lk=t=>(ig(t)||og(t))&&!!t.anchor;ae.ALIAS=$s;ae.DOC=ng;ae.MAP=di;ae.NODE_TYPE=He;ae.PAIR=rg;ae.SCALAR=ks;ae.SEQ=fi;ae.hasAnchor=Lk;ae.isAlias=zk;ae.isCollection=og;ae.isDocument=Ck;ae.isMap=jk;ae.isNode=Rk;ae.isPair=Dk;ae.isScalar=ig;ae.isSeq=Uk});var Vn=x(ws=>{"use strict";var re=L(),pe=Symbol("break visit"),ag=Symbol("skip children"),Le=Symbol("remove node");function mi(t,e){let r=sg(e);re.isDocument(t)?Vt(null,t.contents,r,Object.freeze([t]))===Le&&(t.contents=null):Vt(null,t,r,Object.freeze([]))}mi.BREAK=pe;mi.SKIP=ag;mi.REMOVE=Le;function Vt(t,e,r,i){let n=cg(t,e,r,i);if(re.isNode(n)||re.isPair(n))return ug(t,i,n),Vt(t,n,r,i);if(typeof n!="symbol"){if(re.isCollection(e)){i=Object.freeze(i.concat(e));for(let o=0;o<e.items.length;++o){let a=Vt(o,e.items[o],r,i);if(typeof a=="number")o=a-1;else{if(a===pe)return pe;a===Le&&(e.items.splice(o,1),o-=1)}}}else if(re.isPair(e)){i=Object.freeze(i.concat(e));let o=Vt("key",e.key,r,i);if(o===pe)return pe;o===Le&&(e.key=null);let a=Vt("value",e.value,r,i);if(a===pe)return pe;a===Le&&(e.value=null)}}return n}async function pi(t,e){let r=sg(e);re.isDocument(t)?await Bt(null,t.contents,r,Object.freeze([t]))===Le&&(t.contents=null):await Bt(null,t,r,Object.freeze([]))}pi.BREAK=pe;pi.SKIP=ag;pi.REMOVE=Le;async function Bt(t,e,r,i){let n=await cg(t,e,r,i);if(re.isNode(n)||re.isPair(n))return ug(t,i,n),Bt(t,n,r,i);if(typeof n!="symbol"){if(re.isCollection(e)){i=Object.freeze(i.concat(e));for(let o=0;o<e.items.length;++o){let a=await Bt(o,e.items[o],r,i);if(typeof a=="number")o=a-1;else{if(a===pe)return pe;a===Le&&(e.items.splice(o,1),o-=1)}}}else if(re.isPair(e)){i=Object.freeze(i.concat(e));let o=await Bt("key",e.key,r,i);if(o===pe)return pe;o===Le&&(e.key=null);let a=await Bt("value",e.value,r,i);if(a===pe)return pe;a===Le&&(e.value=null)}}return n}function sg(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function cg(t,e,r,i){if(typeof r=="function")return r(t,e,i);if(re.isMap(e))return r.Map?.(t,e,i);if(re.isSeq(e))return r.Seq?.(t,e,i);if(re.isPair(e))return r.Pair?.(t,e,i);if(re.isScalar(e))return r.Scalar?.(t,e,i);if(re.isAlias(e))return r.Alias?.(t,e,i)}function ug(t,e,r){let i=e[e.length-1];if(re.isCollection(i))i.items[t]=r;else if(re.isPair(i))t==="key"?i.key=r:i.value=r;else if(re.isDocument(i))i.contents=r;else{let n=re.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}ws.visit=mi;ws.visitAsync=pi});var xs=x(dg=>{"use strict";var lg=L(),Zk=Vn(),Mk={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Fk=t=>t.replace(/[!,[\]{}]/g,e=>Mk[e]),Bn=class t{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},t.defaultYaml,e),this.tags=Object.assign({},t.defaultTags,r)}clone(){let e=new t(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new t(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:t.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},t.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:t.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},t.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,a]=i;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let a=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,a),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let a=e.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}let[,i,n]=e.match(/^(.*!)([^!]*)$/s);n||r(`The ${e} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(a){return r(String(a)),null}return i==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[r,i]of Object.entries(this.tags))if(e.startsWith(i))return r+Fk(e.substring(i.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(e&&i.length>0&&lg.isNode(e.contents)){let o={};Zk.visit(e.contents,(a,s)=>{lg.isNode(s)&&s.tag&&(o[s.tag]=!0)}),n=Object.keys(o)}else n=[];for(let[o,a]of i)o==="!!"&&a==="tag:yaml.org,2002:"||(!e||n.some(s=>s.startsWith(a)))&&r.push(`%TAG ${o} ${a}`);return r.join(`
29
- `)}};Bn.defaultYaml={explicit:!1,version:"1.2"};Bn.defaultTags={"!!":"tag:yaml.org,2002:"};dg.Directives=Bn});var gi=x(Kn=>{"use strict";var fg=L(),qk=Vn();function Vk(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(r)}return!0}function mg(t){let e=new Set;return qk.visit(t,{Value(r,i){i.anchor&&e.add(i.anchor)}}),e}function pg(t,e){for(let r=1;;++r){let i=`${t}${r}`;if(!e.has(i))return i}}function Bk(t,e){let r=[],i=new Map,n=null;return{onAnchor:o=>{r.push(o),n??(n=mg(t));let a=pg(e,n);return n.add(a),a},setAnchors:()=>{for(let o of r){let a=i.get(o);if(typeof a=="object"&&a.anchor&&(fg.isScalar(a.node)||fg.isCollection(a.node)))a.node.anchor=a.anchor;else{let s=new Error("Failed to resolve repeated object (this should not happen)");throw s.source=o,s}}},sourceObjects:i}}Kn.anchorIsValid=Vk;Kn.anchorNames=mg;Kn.createNodeAnchors=Bk;Kn.findNewAnchor=pg});var Ss=x(gg=>{"use strict";function Jn(t,e,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){let a=i[n],s=Jn(t,i,String(n),a);s===void 0?delete i[n]:s!==a&&(i[n]=s)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let o=i.get(n),a=Jn(t,i,n,o);a===void 0?i.delete(n):a!==o&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let o=Jn(t,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(let[n,o]of Object.entries(i)){let a=Jn(t,i,n,o);a===void 0?delete i[n]:a!==o&&(i[n]=a)}return t.call(e,r,i)}gg.applyReviver=Jn});var rt=x(vg=>{"use strict";var Kk=L();function hg(t,e,r){if(Array.isArray(t))return t.map((i,n)=>hg(i,String(n),r));if(t&&typeof t.toJSON=="function"){if(!r||!Kk.hasAnchor(t))return t.toJSON(e,r);let i={aliasCount:0,count:1,res:void 0};r.anchors.set(t,i),r.onCreate=o=>{i.res=o,delete r.onCreate};let n=t.toJSON(e,r);return r.onCreate&&r.onCreate(n),n}return typeof t=="bigint"&&!r?.keep?Number(t):t}vg.toJS=hg});var hi=x(_g=>{"use strict";var Jk=Ss(),yg=L(),Wk=rt(),Is=class{constructor(e){Object.defineProperty(this,yg.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!yg.isDocument(e))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},s=Wk.toJS(this,"",a);if(typeof n=="function")for(let{count:c,res:u}of a.anchors.values())n(u,c);return typeof o=="function"?Jk.applyReviver(o,{"":s},"",s):s}};_g.NodeBase=Is});var Wn=x(bg=>{"use strict";var Gk=gi(),Hk=Vn(),Kt=L(),Yk=hi(),Xk=rt(),Os=class extends Yk.NodeBase{constructor(e){super(Kt.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],Hk.visit(e,{Node:(o,a)=>{(Kt.isAlias(a)||Kt.hasAnchor(a))&&i.push(a)}}),r&&(r.aliasResolveCache=i));let n;for(let o of i){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(e,r){if(!r)return{source:this.source};let{anchors:i,doc:n,maxAliasCount:o}=r,a=this.resolve(n,r);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let s=i.get(a);if(s||(Xk.toJS(a,null,r),s=i.get(a)),s?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(s.count+=1,s.aliasCount===0&&(s.aliasCount=vi(n,a,i)),s.count*s.aliasCount>o)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return s.res}toString(e,r,i){let n=`*${this.source}`;if(e){if(Gk.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(e.implicitKey)return`${n} `}return n}};function vi(t,e,r){if(Kt.isAlias(e)){let i=e.resolve(t),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(Kt.isCollection(e)){let i=0;for(let n of e.items){let o=vi(t,n,r);o>i&&(i=o)}return i}else if(Kt.isPair(e)){let i=vi(t,e.key,r),n=vi(t,e.value,r);return Math.max(i,n)}return 1}bg.Alias=Os});var Q=x(Ps=>{"use strict";var Qk=L(),ew=hi(),tw=rt(),nw=t=>!t||typeof t!="function"&&typeof t!="object",it=class extends ew.NodeBase{constructor(e){super(Qk.SCALAR),this.value=e}toJSON(e,r){return r?.keep?this.value:tw.toJS(this.value,e,r)}toString(){return String(this.value)}};it.BLOCK_FOLDED="BLOCK_FOLDED";it.BLOCK_LITERAL="BLOCK_LITERAL";it.PLAIN="PLAIN";it.QUOTE_DOUBLE="QUOTE_DOUBLE";it.QUOTE_SINGLE="QUOTE_SINGLE";Ps.Scalar=it;Ps.isScalarValue=nw});var Gn=x(kg=>{"use strict";var rw=Wn(),St=L(),$g=Q(),iw="tag:yaml.org,2002:";function ow(t,e,r){if(e){let i=r.filter(o=>o.tag===e),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return r.find(i=>i.identify?.(t)&&!i.format)}function aw(t,e,r){if(St.isDocument(t)&&(t=t.contents),St.isNode(t))return t;if(St.isPair(t)){let d=r.schema[St.MAP].createNode?.(r.schema,null,r);return d.items.push(t),d}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:o,schema:a,sourceObjects:s}=r,c;if(i&&t&&typeof t=="object"){if(c=s.get(t),c)return c.anchor??(c.anchor=n(t)),new rw.Alias(c.anchor);c={anchor:null,node:null},s.set(t,c)}e?.startsWith("!!")&&(e=iw+e.slice(2));let u=ow(t,e,a.tags);if(!u){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){let d=new $g.Scalar(t);return c&&(c.node=d),d}u=t instanceof Map?a[St.MAP]:Symbol.iterator in Object(t)?a[St.SEQ]:a[St.MAP]}o&&(o(u),delete r.onTagObj);let l=u?.createNode?u.createNode(r.schema,t,r):typeof u?.nodeClass?.from=="function"?u.nodeClass.from(r.schema,t,r):new $g.Scalar(t);return e?l.tag=e:u.default||(l.tag=u.tag),c&&(c.node=l),l}kg.createNode=aw});var _i=x(yi=>{"use strict";var sw=Gn(),Ze=L(),cw=hi();function Es(t,e,r){let i=r;for(let n=e.length-1;n>=0;--n){let o=e[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=i,i=a}else i=new Map([[o,i]])}return sw.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}var wg=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done,Ts=class extends cw.NodeBase{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(i=>Ze.isNode(i)||Ze.isPair(i)?i.clone(e):i),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(wg(e))this.add(r);else{let[i,...n]=e,o=this.get(i,!0);if(Ze.isCollection(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,Es(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(e){let[r,...i]=e;if(i.length===0)return this.delete(r);let n=this.get(r,!0);if(Ze.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(e,r){let[i,...n]=e,o=this.get(i,!0);return n.length===0?!r&&Ze.isScalar(o)?o.value:o:Ze.isCollection(o)?o.getIn(n,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!Ze.isPair(r))return!1;let i=r.value;return i==null||e&&Ze.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[r,...i]=e;if(i.length===0)return this.has(r);let n=this.get(r,!0);return Ze.isCollection(n)?n.hasIn(i):!1}setIn(e,r){let[i,...n]=e;if(n.length===0)this.set(i,r);else{let o=this.get(i,!0);if(Ze.isCollection(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,Es(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};yi.Collection=Ts;yi.collectionFromPath=Es;yi.isEmptyPath=wg});var Hn=x(bi=>{"use strict";var uw=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function As(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}var lw=(t,e,r)=>t.endsWith(`
30
- `)?As(r,e):r.includes(`
31
- `)?`
32
- `+As(r,e):(t.endsWith(" ")?"":" ")+r;bi.indentComment=As;bi.lineComment=lw;bi.stringifyComment=uw});var Sg=x(Yn=>{"use strict";var dw="flow",Ns="block",$i="quoted";function fw(t,e,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:a,onOverflow:s}={}){if(!n||n<0)return t;n<o&&(o=0);let c=Math.max(1+o,1+n-e.length);if(t.length<=c)return t;let u=[],l={},d=n-e.length;typeof i=="number"&&(i>n-Math.max(2,o)?u.push(0):d=n-i);let m,p,y=!1,h=-1,_=-1,O=-1;r===Ns&&(h=xg(t,h,e.length),h!==-1&&(d=h+c));for(let A;A=t[h+=1];){if(r===$i&&A==="\\"){switch(_=h,t[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}O=h}if(A===`
33
- `)r===Ns&&(h=xg(t,h,e.length)),d=h+e.length+c,m=void 0;else{if(A===" "&&p&&p!==" "&&p!==`
34
- `&&p!==" "){let I=t[h+1];I&&I!==" "&&I!==`
35
- `&&I!==" "&&(m=h)}if(h>=d)if(m)u.push(m),d=m+c,m=void 0;else if(r===$i){for(;p===" "||p===" ";)p=A,A=t[h+=1],y=!0;let I=h>O+1?h-2:_-1;if(l[I])return t;u.push(I),l[I]=!0,d=I+c,m=void 0}else y=!0}p=A}if(y&&s&&s(),u.length===0)return t;a&&a();let T=t.slice(0,u[0]);for(let A=0;A<u.length;++A){let I=u[A],P=u[A+1]||t.length;I===0?T=`
36
- ${e}${t.slice(0,P)}`:(r===$i&&l[I]&&(T+=`${t[I]}\\`),T+=`
37
- ${e}${t.slice(I+1,P)}`)}return T}function xg(t,e,r){let i=e,n=e+1,o=t[n];for(;o===" "||o===" ";)if(e<n+r)o=t[++e];else{do o=t[++e];while(o&&o!==`
38
- `);i=e,n=e+1,o=t[n]}return i}Yn.FOLD_BLOCK=Ns;Yn.FOLD_FLOW=dw;Yn.FOLD_QUOTED=$i;Yn.foldFlowLines=fw});var Qn=x(Ig=>{"use strict";var Te=Q(),ot=Sg(),wi=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),xi=t=>/^(%|---|\.\.\.)/m.test(t);function mw(t,e,r){if(!e||e<0)return!1;let i=e-r,n=t.length;if(n<=i)return!1;for(let o=0,a=0;o<n;++o)if(t[o]===`
39
- `){if(o-a>i)return!0;if(a=o+1,n-a<=i)return!1}return!0}function Xn(t,e){let r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;let{implicitKey:i}=e,n=e.options.doubleQuotedMinMultiLineLength,o=e.indent||(xi(t)?" ":""),a="",s=0;for(let c=0,u=r[c];u;u=r[++c])if(u===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(s,c)+"\\ ",c+=1,s=c,u="\\"),u==="\\")switch(r[c+1]){case"u":{a+=r.slice(s,c);let l=r.substr(c+2,4);switch(l){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:l.substr(0,2)==="00"?a+="\\x"+l.substr(2):a+=r.substr(c,6)}c+=5,s=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(a+=r.slice(s,c)+`
40
-
41
- `;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)a+=`
42
- `,c+=2;a+=o,r[c+2]===" "&&(a+="\\"),c+=1,s=c+1}break;default:c+=1}return a=s?a+r.slice(s):r,i?a:ot.foldFlowLines(a,o,ot.FOLD_QUOTED,wi(e,!1))}function zs(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
43
- `)||/[ \t]\n|\n[ \t]/.test(t))return Xn(t,e);let r=e.indent||(xi(t)?" ":""),i="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
44
- ${r}`)+"'";return e.implicitKey?i:ot.foldFlowLines(i,r,ot.FOLD_FLOW,wi(e,!1))}function Jt(t,e){let{singleQuote:r}=e.options,i;if(r===!1)i=Xn;else{let n=t.includes('"'),o=t.includes("'");n&&!o?i=zs:o&&!n?i=Xn:i=r?zs:Xn}return i(t,e)}var Cs;try{Cs=new RegExp(`(^|(?<!
45
- ))
46
- +(?!
47
- |$)`,"g")}catch{Cs=/\n+(?!\n|$)/g}function ki({comment:t,type:e,value:r},i,n,o){let{blockQuote:a,commentString:s,lineWidth:c}=i.options;if(!a||/\n[\t ]+$/.test(r))return Jt(r,i);let u=i.indent||(i.forceBlockIndent||xi(r)?" ":""),l=a==="literal"?!0:a==="folded"||e===Te.Scalar.BLOCK_FOLDED?!1:e===Te.Scalar.BLOCK_LITERAL?!0:!mw(r,c,u.length);if(!r)return l?`|
48
- `:`>
49
- `;let d,m;for(m=r.length;m>0;--m){let P=r[m-1];if(P!==`
50
- `&&P!==" "&&P!==" ")break}let p=r.substring(m),y=p.indexOf(`
51
- `);y===-1?d="-":r===p||y!==p.length-1?(d="+",o&&o()):d="",p&&(r=r.slice(0,-p.length),p[p.length-1]===`
52
- `&&(p=p.slice(0,-1)),p=p.replace(Cs,`$&${u}`));let h=!1,_,O=-1;for(_=0;_<r.length;++_){let P=r[_];if(P===" ")h=!0;else if(P===`
53
- `)O=_;else break}let T=r.substring(0,O<_?O+1:_);T&&(r=r.substring(T.length),T=T.replace(/\n+/g,`$&${u}`));let I=(h?u?"2":"1":"")+d;if(t&&(I+=" "+s(t.replace(/ ?[\r\n]+/g," ")),n&&n()),!l){let P=r.replace(/\n+/g,`
54
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),z=!1,V=wi(i,!0);a!=="folded"&&e!==Te.Scalar.BLOCK_FOLDED&&(V.onOverflow=()=>{z=!0});let E=ot.foldFlowLines(`${T}${P}${p}`,u,ot.FOLD_BLOCK,V);if(!z)return`>${I}
55
- ${u}${E}`}return r=r.replace(/\n+/g,`$&${u}`),`|${I}
56
- ${u}${T}${r}${p}`}function pw(t,e,r,i){let{type:n,value:o}=t,{actualString:a,implicitKey:s,indent:c,indentStep:u,inFlow:l}=e;if(s&&o.includes(`
57
- `)||l&&/[[\]{},]/.test(o))return Jt(o,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return s||l||!o.includes(`
58
- `)?Jt(o,e):ki(t,e,r,i);if(!s&&!l&&n!==Te.Scalar.PLAIN&&o.includes(`
59
- `))return ki(t,e,r,i);if(xi(o)){if(c==="")return e.forceBlockIndent=!0,ki(t,e,r,i);if(s&&c===u)return Jt(o,e)}let d=o.replace(/\n+/g,`$&
60
- ${c}`);if(a){let m=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(d),{compat:p,tags:y}=e.doc.schema;if(y.some(m)||p?.some(m))return Jt(o,e)}return s?d:ot.foldFlowLines(d,c,ot.FOLD_FLOW,wi(e,!1))}function gw(t,e,r,i){let{implicitKey:n,inFlow:o}=e,a=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:s}=t;s!==Te.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Te.Scalar.QUOTE_DOUBLE);let c=l=>{switch(l){case Te.Scalar.BLOCK_FOLDED:case Te.Scalar.BLOCK_LITERAL:return n||o?Jt(a.value,e):ki(a,e,r,i);case Te.Scalar.QUOTE_DOUBLE:return Xn(a.value,e);case Te.Scalar.QUOTE_SINGLE:return zs(a.value,e);case Te.Scalar.PLAIN:return pw(a,e,r,i);default:return null}},u=c(s);if(u===null){let{defaultKeyType:l,defaultStringType:d}=e.options,m=n&&l||d;if(u=c(m),u===null)throw new Error(`Unsupported default string type ${m}`)}return u}Ig.stringifyString=gw});var er=x(js=>{"use strict";var hw=gi(),at=L(),vw=Hn(),yw=Qn();function _w(t,e){let r=Object.assign({blockQuote:!0,commentString:vw.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e),i;switch(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function bw(t,e){if(e.tag){let n=t.filter(o=>o.tag===e.tag);if(n.length>0)return n.find(o=>o.format===e.format)??n[0]}let r,i;if(at.isScalar(e)){i=e.value;let n=t.filter(o=>o.identify?.(i));if(n.length>1){let o=n.filter(a=>a.test);o.length>0&&(n=o)}r=n.find(o=>o.format===e.format)??n.find(o=>!o.format)}else i=e,r=t.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function $w(t,e,{anchors:r,doc:i}){if(!i.directives)return"";let n=[],o=(at.isScalar(t)||at.isCollection(t))&&t.anchor;o&&hw.anchorIsValid(o)&&(r.add(o),n.push(`&${o}`));let a=t.tag??(e.default?null:e.tag);return a&&n.push(i.directives.tagString(a)),n.join(" ")}function kw(t,e,r,i){if(at.isPair(t))return t.toString(e,r,i);if(at.isAlias(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let n,o=at.isNode(t)?t:e.doc.createNode(t,{onTagObj:c=>n=c});n??(n=bw(e.doc.schema.tags,o));let a=$w(o,n,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);let s=typeof n.stringify=="function"?n.stringify(o,e,r,i):at.isScalar(o)?yw.stringifyString(o,e,r,i):o.toString(e,r,i);return a?at.isScalar(o)||s[0]==="{"||s[0]==="["?`${a} ${s}`:`${a}
61
- ${e.indent}${s}`:s}js.createStringifyContext=_w;js.stringify=kw});var Tg=x(Eg=>{"use strict";var Ye=L(),Og=Q(),Pg=er(),tr=Hn();function ww({key:t,value:e},r,i,n){let{allNullValues:o,doc:a,indent:s,indentStep:c,options:{commentString:u,indentSeq:l,simpleKeys:d}}=r,m=Ye.isNode(t)&&t.comment||null;if(d){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Ye.isCollection(t)||!Ye.isNode(t)&&typeof t=="object"){let V="With simple keys, collection cannot be used as a key value";throw new Error(V)}}let p=!d&&(!t||m&&e==null&&!r.inFlow||Ye.isCollection(t)||(Ye.isScalar(t)?t.type===Og.Scalar.BLOCK_FOLDED||t.type===Og.Scalar.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(d||!o),indent:s+c});let y=!1,h=!1,_=Pg.stringify(t,r,()=>y=!0,()=>h=!0);if(!p&&!r.inFlow&&_.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(o||e==null)return y&&i&&i(),_===""?"?":p?`? ${_}`:_}else if(o&&!d||e==null&&p)return _=`? ${_}`,m&&!y?_+=tr.lineComment(_,r.indent,u(m)):h&&n&&n(),_;y&&(m=null),p?(m&&(_+=tr.lineComment(_,r.indent,u(m))),_=`? ${_}
62
- ${s}:`):(_=`${_}:`,m&&(_+=tr.lineComment(_,r.indent,u(m))));let O,T,A;Ye.isNode(e)?(O=!!e.spaceBefore,T=e.commentBefore,A=e.comment):(O=!1,T=null,A=null,e&&typeof e=="object"&&(e=a.createNode(e))),r.implicitKey=!1,!p&&!m&&Ye.isScalar(e)&&(r.indentAtStart=_.length+1),h=!1,!l&&c.length>=2&&!r.inFlow&&!p&&Ye.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let I=!1,P=Pg.stringify(e,r,()=>I=!0,()=>h=!0),z=" ";if(m||O||T){if(z=O?`
63
- `:"",T){let V=u(T);z+=`
64
- ${tr.indentComment(V,r.indent)}`}P===""&&!r.inFlow?z===`
65
- `&&A&&(z=`
66
-
67
- `):z+=`
68
- ${r.indent}`}else if(!p&&Ye.isCollection(e)){let V=P[0],E=P.indexOf(`
69
- `),te=E!==-1,nt=r.inFlow??e.flow??e.items.length===0;if(te||!nt){let Ft=!1;if(te&&(V==="&"||V==="!")){let ne=P.indexOf(" ");V==="&"&&ne!==-1&&ne<E&&P[ne+1]==="!"&&(ne=P.indexOf(" ",ne+1)),(ne===-1||E<ne)&&(Ft=!0)}Ft||(z=`
70
- ${r.indent}`)}}else(P===""||P[0]===`
71
- `)&&(z="");return _+=z+P,r.inFlow?I&&i&&i():A&&!I?_+=tr.lineComment(_,r.indent,u(A)):h&&n&&n(),_}Eg.stringifyPair=ww});var Us=x(Ds=>{"use strict";var Ag=Je("process");function xw(t,...e){t==="debug"&&console.log(...e)}function Sw(t,e){(t==="debug"||t==="warn")&&(typeof Ag.emitWarning=="function"?Ag.emitWarning(e):console.warn(e))}Ds.debug=xw;Ds.warn=Sw});var Ei=x(Pi=>{"use strict";var Oi=L(),Ng=Q(),Si="<<",Ii={identify:t=>t===Si||typeof t=="symbol"&&t.description===Si,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ng.Scalar(Symbol(Si)),{addToJSMap:zg}),stringify:()=>Si},Iw=(t,e)=>(Ii.identify(e)||Oi.isScalar(e)&&(!e.type||e.type===Ng.Scalar.PLAIN)&&Ii.identify(e.value))&&t?.doc.schema.tags.some(r=>r.tag===Ii.tag&&r.default);function zg(t,e,r){let i=Cg(t,r);if(Oi.isSeq(i))for(let n of i.items)Rs(t,e,n);else if(Array.isArray(i))for(let n of i)Rs(t,e,n);else Rs(t,e,i)}function Rs(t,e,r){let i=Cg(t,r);if(!Oi.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,t,Map);for(let[o,a]of n)e instanceof Map?e.has(o)||e.set(o,a):e instanceof Set?e.add(o):Object.prototype.hasOwnProperty.call(e,o)||Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}function Cg(t,e){return t&&Oi.isAlias(e)?e.resolve(t.doc,t):e}Pi.addMergeToJSMap=zg;Pi.isMergeKey=Iw;Pi.merge=Ii});var Zs=x(Ug=>{"use strict";var Ow=Us(),jg=Ei(),Pw=er(),Dg=L(),Ls=rt();function Ew(t,e,{key:r,value:i}){if(Dg.isNode(r)&&r.addToJSMap)r.addToJSMap(t,e,i);else if(jg.isMergeKey(t,r))jg.addMergeToJSMap(t,e,i);else{let n=Ls.toJS(r,"",t);if(e instanceof Map)e.set(n,Ls.toJS(i,n,t));else if(e instanceof Set)e.add(n);else{let o=Tw(r,n,t),a=Ls.toJS(i,o,t);o in e?Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[o]=a}}return e}function Tw(t,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(Dg.isNode(t)&&r?.doc){let i=Pw.createStringifyContext(r.doc,{});i.anchors=new Set;for(let o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=t.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),Ow.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(e)}Ug.addPairToJSMap=Ew});var st=x(Ms=>{"use strict";var Rg=Gn(),Aw=Tg(),Nw=Zs(),Ti=L();function zw(t,e,r){let i=Rg.createNode(t,void 0,r),n=Rg.createNode(e,void 0,r);return new Ai(i,n)}var Ai=class t{constructor(e,r=null){Object.defineProperty(this,Ti.NODE_TYPE,{value:Ti.PAIR}),this.key=e,this.value=r}clone(e){let{key:r,value:i}=this;return Ti.isNode(r)&&(r=r.clone(e)),Ti.isNode(i)&&(i=i.clone(e)),new t(r,i)}toJSON(e,r){let i=r?.mapAsMap?new Map:{};return Nw.addPairToJSMap(r,i,this)}toString(e,r,i){return e?.doc?Aw.stringifyPair(this,e,r,i):JSON.stringify(this)}};Ms.Pair=Ai;Ms.createPair=zw});var Fs=x(Zg=>{"use strict";var It=L(),Lg=er(),Ni=Hn();function Cw(t,e,r){return(e.inFlow??t.flow?Dw:jw)(t,e,r)}function jw({comment:t,items:e},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:a,onComment:s}){let{indent:c,options:{commentString:u}}=r,l=Object.assign({},r,{indent:o,type:null}),d=!1,m=[];for(let y=0;y<e.length;++y){let h=e[y],_=null;if(It.isNode(h))!d&&h.spaceBefore&&m.push(""),zi(r,m,h.commentBefore,d),h.comment&&(_=h.comment);else if(It.isPair(h)){let T=It.isNode(h.key)?h.key:null;T&&(!d&&T.spaceBefore&&m.push(""),zi(r,m,T.commentBefore,d))}d=!1;let O=Lg.stringify(h,l,()=>_=null,()=>d=!0);_&&(O+=Ni.lineComment(O,o,u(_))),d&&_&&(d=!1),m.push(i+O)}let p;if(m.length===0)p=n.start+n.end;else{p=m[0];for(let y=1;y<m.length;++y){let h=m[y];p+=h?`
72
- ${c}${h}`:`
73
- `}}return t?(p+=`
74
- `+Ni.indentComment(u(t),c),s&&s()):d&&a&&a(),p}function Dw({items:t},e,{flowChars:r,itemIndent:i}){let{indent:n,indentStep:o,flowCollectionPadding:a,options:{commentString:s}}=e;i+=o;let c=Object.assign({},e,{indent:i,inFlow:!0,type:null}),u=!1,l=0,d=[];for(let y=0;y<t.length;++y){let h=t[y],_=null;if(It.isNode(h))h.spaceBefore&&d.push(""),zi(e,d,h.commentBefore,!1),h.comment&&(_=h.comment);else if(It.isPair(h)){let T=It.isNode(h.key)?h.key:null;T&&(T.spaceBefore&&d.push(""),zi(e,d,T.commentBefore,!1),T.comment&&(u=!0));let A=It.isNode(h.value)?h.value:null;A?(A.comment&&(_=A.comment),A.commentBefore&&(u=!0)):h.value==null&&T?.comment&&(_=T.comment)}_&&(u=!0);let O=Lg.stringify(h,c,()=>_=null);u||(u=d.length>l||O.includes(`
75
- `)),y<t.length-1?O+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(u||(u=d.reduce((T,A)=>T+A.length+2,2)+(O.length+2)>e.options.lineWidth)),u&&(O+=",")),_&&(O+=Ni.lineComment(O,i,s(_))),d.push(O),l=d.length}let{start:m,end:p}=r;if(d.length===0)return m+p;if(!u){let y=d.reduce((h,_)=>h+_.length+2,2);u=e.options.lineWidth>0&&y>e.options.lineWidth}if(u){let y=m;for(let h of d)y+=h?`
76
- ${o}${n}${h}`:`
77
- `;return`${y}
78
- ${n}${p}`}else return`${m}${a}${d.join(" ")}${a}${p}`}function zi({indent:t,options:{commentString:e}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let o=Ni.indentComment(e(i),t);r.push(o.trimStart())}}Zg.stringifyCollection=Cw});var ut=x(Vs=>{"use strict";var Uw=Fs(),Rw=Zs(),Lw=_i(),ct=L(),Ci=st(),Zw=Q();function nr(t,e){let r=ct.isScalar(e)?e.value:e;for(let i of t)if(ct.isPair(i)&&(i.key===e||i.key===r||ct.isScalar(i.key)&&i.key.value===r))return i}var qs=class extends Lw.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ct.MAP,e),this.items=[]}static from(e,r,i){let{keepUndefined:n,replacer:o}=i,a=new this(e),s=(c,u)=>{if(typeof o=="function")u=o.call(r,c,u);else if(Array.isArray(o)&&!o.includes(c))return;(u!==void 0||n)&&a.items.push(Ci.createPair(c,u,i))};if(r instanceof Map)for(let[c,u]of r)s(c,u);else if(r&&typeof r=="object")for(let c of Object.keys(r))s(c,r[c]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,r){let i;ct.isPair(e)?i=e:!e||typeof e!="object"||!("key"in e)?i=new Ci.Pair(e,e?.value):i=new Ci.Pair(e.key,e.value);let n=nr(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);ct.isScalar(n.value)&&Zw.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(o){let a=this.items.findIndex(s=>o(i,s)<0);a===-1?this.items.push(i):this.items.splice(a,0,i)}else this.items.push(i)}delete(e){let r=nr(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){let n=nr(this.items,e)?.value;return(!r&&ct.isScalar(n)?n.value:n)??void 0}has(e){return!!nr(this.items,e)}set(e,r){this.add(new Ci.Pair(e,r),!0)}toJSON(e,r,i){let n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(let o of this.items)Rw.addPairToJSMap(r,n,o);return n}toString(e,r,i){if(!e)return JSON.stringify(this);for(let n of this.items)if(!ct.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Uw.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:i,onComment:r})}};Vs.YAMLMap=qs;Vs.findPair=nr});var Wt=x(Fg=>{"use strict";var Mw=L(),Mg=ut(),Fw={collection:"map",default:!0,nodeClass:Mg.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(t,e){return Mw.isMap(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,r)=>Mg.YAMLMap.from(t,e,r)};Fg.map=Fw});var lt=x(qg=>{"use strict";var qw=Gn(),Vw=Fs(),Bw=_i(),Di=L(),Kw=Q(),Jw=rt(),Bs=class extends Bw.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Di.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let r=ji(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){let i=ji(e);if(typeof i!="number")return;let n=this.items[i];return!r&&Di.isScalar(n)?n.value:n}has(e){let r=ji(e);return typeof r=="number"&&r<this.items.length}set(e,r){let i=ji(e);if(typeof i!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[i];Di.isScalar(n)&&Kw.isScalarValue(r)?n.value=r:this.items[i]=r}toJSON(e,r){let i=[];r?.onCreate&&r.onCreate(i);let n=0;for(let o of this.items)i.push(Jw.toJS(o,String(n++),r));return i}toString(e,r,i){return e?Vw.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(e,r,i){let{replacer:n}=i,o=new this(e);if(r&&Symbol.iterator in Object(r)){let a=0;for(let s of r){if(typeof n=="function"){let c=r instanceof Set?s:String(a++);s=n.call(r,c,s)}o.items.push(qw.createNode(s,void 0,i))}}return o}};function ji(t){let e=Di.isScalar(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}qg.YAMLSeq=Bs});var Gt=x(Bg=>{"use strict";var Ww=L(),Vg=lt(),Gw={collection:"seq",default:!0,nodeClass:Vg.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Ww.isSeq(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,r)=>Vg.YAMLSeq.from(t,e,r)};Bg.seq=Gw});var rr=x(Kg=>{"use strict";var Hw=Qn(),Yw={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,r,i){return e=Object.assign({actualString:!0},e),Hw.stringifyString(t,e,r,i)}};Kg.string=Yw});var Ui=x(Gg=>{"use strict";var Jg=Q(),Wg={identify:t=>t==null,createNode:()=>new Jg.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Jg.Scalar(null),stringify:({source:t},e)=>typeof t=="string"&&Wg.test.test(t)?t:e.options.nullStr};Gg.nullTag=Wg});var Ks=x(Yg=>{"use strict";var Xw=Q(),Hg={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new Xw.Scalar(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},r){if(t&&Hg.test.test(t)){let i=t[0]==="t"||t[0]==="T";if(e===i)return t}return e?r.options.trueStr:r.options.falseStr}};Yg.boolTag=Hg});var Ht=x(Xg=>{"use strict";function Qw({format:t,minFractionDigits:e,tag:r,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!t&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let s=e-(o.length-a-1);for(;s-- >0;)o+="0"}return o}Xg.stringifyNumber=Qw});var Ws=x(Ri=>{"use strict";var ex=Q(),Js=Ht(),tx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Js.stringifyNumber},nx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():Js.stringifyNumber(t)}},rx={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){let e=new ex.Scalar(parseFloat(t)),r=t.indexOf(".");return r!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-r-1),e},stringify:Js.stringifyNumber};Ri.float=rx;Ri.floatExp=nx;Ri.floatNaN=tx});var Hs=x(Zi=>{"use strict";var Qg=Ht(),Li=t=>typeof t=="bigint"||Number.isInteger(t),Gs=(t,e,r,{intAsBigInt:i})=>i?BigInt(t):parseInt(t.substring(e),r);function eh(t,e,r){let{value:i}=t;return Li(i)&&i>=0?r+i.toString(e):Qg.stringifyNumber(t)}var ix={identify:t=>Li(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,r)=>Gs(t,2,8,r),stringify:t=>eh(t,8,"0o")},ox={identify:Li,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,r)=>Gs(t,0,10,r),stringify:Qg.stringifyNumber},ax={identify:t=>Li(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,r)=>Gs(t,2,16,r),stringify:t=>eh(t,16,"0x")};Zi.int=ox;Zi.intHex=ax;Zi.intOct=ix});var nh=x(th=>{"use strict";var sx=Wt(),cx=Ui(),ux=Gt(),lx=rr(),dx=Ks(),Ys=Ws(),Xs=Hs(),fx=[sx.map,ux.seq,lx.string,cx.nullTag,dx.boolTag,Xs.intOct,Xs.int,Xs.intHex,Ys.floatNaN,Ys.floatExp,Ys.float];th.schema=fx});var oh=x(ih=>{"use strict";var mx=Q(),px=Wt(),gx=Gt();function rh(t){return typeof t=="bigint"||Number.isInteger(t)}var Mi=({value:t})=>JSON.stringify(t),hx=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:Mi},{identify:t=>t==null,createNode:()=>new mx.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Mi},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:Mi},{identify:rh,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:r})=>r?BigInt(t):parseInt(t,10),stringify:({value:t})=>rh(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Mi}],vx={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},yx=[px.map,gx.seq].concat(hx,vx);ih.schema=yx});var ec=x(ah=>{"use strict";var ir=Je("buffer"),Qs=Q(),_x=Qn(),bx={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof ir.Buffer=="function")return ir.Buffer.from(t,"base64");if(typeof atob=="function"){let r=atob(t.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);return i}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:r},i,n,o){if(!r)return"";let a=r,s;if(typeof ir.Buffer=="function")s=a instanceof ir.Buffer?a.toString("base64"):ir.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let u=0;u<a.length;++u)c+=String.fromCharCode(a[u]);s=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Qs.Scalar.BLOCK_LITERAL),e!==Qs.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),u=Math.ceil(s.length/c),l=new Array(u);for(let d=0,m=0;d<u;++d,m+=c)l[d]=s.substr(m,c);s=l.join(e===Qs.Scalar.BLOCK_LITERAL?`
79
- `:" ")}return _x.stringifyString({comment:t,type:e,value:s},i,n,o)}};ah.binary=bx});var Vi=x(qi=>{"use strict";var Fi=L(),tc=st(),$x=Q(),kx=lt();function sh(t,e){if(Fi.isSeq(t))for(let r=0;r<t.items.length;++r){let i=t.items[r];if(!Fi.isPair(i)){if(Fi.isMap(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");let n=i.items[0]||new tc.Pair(new $x.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
80
- ${n.key.commentBefore}`:i.commentBefore),i.comment){let o=n.value??n.key;o.comment=o.comment?`${i.comment}
81
- ${o.comment}`:i.comment}i=n}t.items[r]=Fi.isPair(i)?i:new tc.Pair(i)}}else e("Expected a sequence for this tag");return t}function ch(t,e,r){let{replacer:i}=r,n=new kx.YAMLSeq(t);n.tag="tag:yaml.org,2002:pairs";let o=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof i=="function"&&(a=i.call(e,String(o++),a));let s,c;if(Array.isArray(a))if(a.length===2)s=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let u=Object.keys(a);if(u.length===1)s=u[0],c=a[s];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else s=a;n.items.push(tc.createPair(s,c,r))}return n}var wx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:sh,createNode:ch};qi.createPairs=ch;qi.pairs=wx;qi.resolvePairs=sh});var ic=x(rc=>{"use strict";var uh=L(),nc=rt(),or=ut(),xx=lt(),lh=Vi(),Ot=class t extends xx.YAMLSeq{constructor(){super(),this.add=or.YAMLMap.prototype.add.bind(this),this.delete=or.YAMLMap.prototype.delete.bind(this),this.get=or.YAMLMap.prototype.get.bind(this),this.has=or.YAMLMap.prototype.has.bind(this),this.set=or.YAMLMap.prototype.set.bind(this),this.tag=t.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let n of this.items){let o,a;if(uh.isPair(n)?(o=nc.toJS(n.key,"",r),a=nc.toJS(n.value,o,r)):o=nc.toJS(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,a)}return i}static from(e,r,i){let n=lh.createPairs(e,r,i),o=new this;return o.items=n.items,o}};Ot.tag="tag:yaml.org,2002:omap";var Sx={collection:"seq",identify:t=>t instanceof Map,nodeClass:Ot,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){let r=lh.resolvePairs(t,e),i=[];for(let{key:n}of r.items)uh.isScalar(n)&&(i.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new Ot,r)},createNode:(t,e,r)=>Ot.from(t,e,r)};rc.YAMLOMap=Ot;rc.omap=Sx});var gh=x(oc=>{"use strict";var dh=Q();function fh({value:t,source:e},r){return e&&(t?mh:ph).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}var mh={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new dh.Scalar(!0),stringify:fh},ph={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new dh.Scalar(!1),stringify:fh};oc.falseTag=ph;oc.trueTag=mh});var hh=x(Bi=>{"use strict";var Ix=Q(),ac=Ht(),Ox={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ac.stringifyNumber},Px={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){let e=Number(t.value);return isFinite(e)?e.toExponential():ac.stringifyNumber(t)}},Ex={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){let e=new Ix.Scalar(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){let i=t.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(e.minFractionDigits=i.length)}return e},stringify:ac.stringifyNumber};Bi.float=Ex;Bi.floatExp=Px;Bi.floatNaN=Ox});var yh=x(sr=>{"use strict";var vh=Ht(),ar=t=>typeof t=="bigint"||Number.isInteger(t);function Ki(t,e,r,{intAsBigInt:i}){let n=t[0];if((n==="-"||n==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),i){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}let a=BigInt(t);return n==="-"?BigInt(-1)*a:a}let o=parseInt(t,r);return n==="-"?-1*o:o}function sc(t,e,r){let{value:i}=t;if(ar(i)){let n=i.toString(e);return i<0?"-"+r+n.substr(1):r+n}return vh.stringifyNumber(t)}var Tx={identify:ar,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,r)=>Ki(t,2,2,r),stringify:t=>sc(t,2,"0b")},Ax={identify:ar,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,r)=>Ki(t,1,8,r),stringify:t=>sc(t,8,"0")},Nx={identify:ar,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,r)=>Ki(t,0,10,r),stringify:vh.stringifyNumber},zx={identify:ar,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,r)=>Ki(t,2,16,r),stringify:t=>sc(t,16,"0x")};sr.int=Nx;sr.intBin=Tx;sr.intHex=zx;sr.intOct=Ax});var uc=x(cc=>{"use strict";var Gi=L(),Ji=st(),Wi=ut(),Pt=class t extends Wi.YAMLMap{constructor(e){super(e),this.tag=t.tag}add(e){let r;Gi.isPair(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new Ji.Pair(e.key,null):r=new Ji.Pair(e,null),Wi.findPair(this.items,r.key)||this.items.push(r)}get(e,r){let i=Wi.findPair(this.items,e);return!r&&Gi.isPair(i)?Gi.isScalar(i.key)?i.key.value:i.key:i}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let i=Wi.findPair(this.items,e);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new Ji.Pair(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,i){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(e,r,i){let{replacer:n}=i,o=new this(e);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof n=="function"&&(a=n.call(r,a,a)),o.items.push(Ji.createPair(a,null,i));return o}};Pt.tag="tag:yaml.org,2002:set";var Cx={collection:"map",identify:t=>t instanceof Set,nodeClass:Pt,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,r)=>Pt.from(t,e,r),resolve(t,e){if(Gi.isMap(t)){if(t.hasAllNullValues(!0))return Object.assign(new Pt,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};cc.YAMLSet=Pt;cc.set=Cx});var dc=x(Hi=>{"use strict";var jx=Ht();function lc(t,e){let r=t[0],i=r==="-"||r==="+"?t.substring(1):t,n=a=>e?BigInt(a):Number(a),o=i.replace(/_/g,"").split(":").reduce((a,s)=>a*n(60)+n(s),n(0));return r==="-"?n(-1)*o:o}function _h(t){let{value:e}=t,r=a=>a;if(typeof e=="bigint")r=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return jx.stringifyNumber(t);let i="";e<0&&(i="-",e*=r(-1));let n=r(60),o=[e%n];return e<60?o.unshift(0):(e=(e-o[0])/n,o.unshift(e%n),e>=60&&(e=(e-o[0])/n,o.unshift(e))),i+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Dx={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:r})=>lc(t,r),stringify:_h},Ux={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>lc(t,!1),stringify:_h},bh={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){let e=t.match(bh.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,i,n,o,a,s]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0,u=Date.UTC(r,i-1,n,o||0,a||0,s||0,c),l=e[8];if(l&&l!=="Z"){let d=lc(l,!1);Math.abs(d)<30&&(d*=60),u-=6e4*d}return new Date(u)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Hi.floatTime=Ux;Hi.intTime=Dx;Hi.timestamp=bh});var wh=x(kh=>{"use strict";var Rx=Wt(),Lx=Ui(),Zx=Gt(),Mx=rr(),Fx=ec(),$h=gh(),fc=hh(),Yi=yh(),qx=Ei(),Vx=ic(),Bx=Vi(),Kx=uc(),mc=dc(),Jx=[Rx.map,Zx.seq,Mx.string,Lx.nullTag,$h.trueTag,$h.falseTag,Yi.intBin,Yi.intOct,Yi.int,Yi.intHex,fc.floatNaN,fc.floatExp,fc.float,Fx.binary,qx.merge,Vx.omap,Bx.pairs,Kx.set,mc.intTime,mc.floatTime,mc.timestamp];kh.schema=Jx});var zh=x(hc=>{"use strict";var Oh=Wt(),Wx=Ui(),Ph=Gt(),Gx=rr(),Hx=Ks(),pc=Ws(),gc=Hs(),Yx=nh(),Xx=oh(),Eh=ec(),cr=Ei(),Th=ic(),Ah=Vi(),xh=wh(),Nh=uc(),Xi=dc(),Sh=new Map([["core",Yx.schema],["failsafe",[Oh.map,Ph.seq,Gx.string]],["json",Xx.schema],["yaml11",xh.schema],["yaml-1.1",xh.schema]]),Ih={binary:Eh.binary,bool:Hx.boolTag,float:pc.float,floatExp:pc.floatExp,floatNaN:pc.floatNaN,floatTime:Xi.floatTime,int:gc.int,intHex:gc.intHex,intOct:gc.intOct,intTime:Xi.intTime,map:Oh.map,merge:cr.merge,null:Wx.nullTag,omap:Th.omap,pairs:Ah.pairs,seq:Ph.seq,set:Nh.set,timestamp:Xi.timestamp},Qx={"tag:yaml.org,2002:binary":Eh.binary,"tag:yaml.org,2002:merge":cr.merge,"tag:yaml.org,2002:omap":Th.omap,"tag:yaml.org,2002:pairs":Ah.pairs,"tag:yaml.org,2002:set":Nh.set,"tag:yaml.org,2002:timestamp":Xi.timestamp};function eS(t,e,r){let i=Sh.get(e);if(i&&!t)return r&&!i.includes(cr.merge)?i.concat(cr.merge):i.slice();let n=i;if(!n)if(Array.isArray(t))n=[];else{let o=Array.from(Sh.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${o} or define customTags array`)}if(Array.isArray(t))for(let o of t)n=n.concat(o);else typeof t=="function"&&(n=t(n.slice()));return r&&(n=n.concat(cr.merge)),n.reduce((o,a)=>{let s=typeof a=="string"?Ih[a]:a;if(!s){let c=JSON.stringify(a),u=Object.keys(Ih).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return o.includes(s)||o.push(s),o},[])}hc.coreKnownTags=Qx;hc.getTags=eS});var _c=x(Ch=>{"use strict";var vc=L(),tS=Wt(),nS=Gt(),rS=rr(),Qi=zh(),iS=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0,yc=class t{constructor({compat:e,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:a,toStringDefaults:s}){this.compat=Array.isArray(e)?Qi.getTags(e,"compat"):e?Qi.getTags(null,e):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?Qi.coreKnownTags:{},this.tags=Qi.getTags(r,this.name,i),this.toStringOptions=s??null,Object.defineProperty(this,vc.MAP,{value:tS.map}),Object.defineProperty(this,vc.SCALAR,{value:rS.string}),Object.defineProperty(this,vc.SEQ,{value:nS.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?iS:null}clone(){let e=Object.create(t.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Ch.Schema=yc});var Dh=x(jh=>{"use strict";var oS=L(),bc=er(),ur=Hn();function aS(t,e){let r=[],i=e.directives===!0;if(e.directives!==!1&&t.directives){let c=t.directives.toString(t);c?(r.push(c),i=!0):t.directives.docStart&&(i=!0)}i&&r.push("---");let n=bc.createStringifyContext(t,e),{commentString:o}=n.options;if(t.commentBefore){r.length!==1&&r.unshift("");let c=o(t.commentBefore);r.unshift(ur.indentComment(c,""))}let a=!1,s=null;if(t.contents){if(oS.isNode(t.contents)){if(t.contents.spaceBefore&&i&&r.push(""),t.contents.commentBefore){let l=o(t.contents.commentBefore);r.push(ur.indentComment(l,""))}n.forceBlockIndent=!!t.comment,s=t.contents.comment}let c=s?void 0:()=>a=!0,u=bc.stringify(t.contents,n,()=>s=null,c);s&&(u+=ur.lineComment(u,"",o(s))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(bc.stringify(t.contents,n));if(t.directives?.docEnd)if(t.comment){let c=o(t.comment);c.includes(`
82
- `)?(r.push("..."),r.push(ur.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=t.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||s)&&r[r.length-1]!==""&&r.push(""),r.push(ur.indentComment(o(c),"")))}return r.join(`
83
- `)+`
84
- `}jh.stringifyDocument=aS});var lr=x(Uh=>{"use strict";var sS=Wn(),Yt=_i(),Se=L(),cS=st(),uS=rt(),lS=_c(),dS=Dh(),$c=gi(),fS=Ss(),mS=Gn(),kc=xs(),wc=class t{constructor(e,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Se.NODE_TYPE,{value:Se.DOC});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:a}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new kc.Directives({version:a}),this.setSchema(a,i),this.contents=e===void 0?null:this.createNode(e,n,i)}clone(){let e=Object.create(t.prototype,{[Se.NODE_TYPE]:{value:Se.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Se.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Xt(this.contents)&&this.contents.add(e)}addIn(e,r){Xt(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){let i=$c.anchorNames(this);e.anchor=!r||i.has(r)?$c.findNewAnchor(r||"a",i):r}return new sS.Alias(e.anchor)}createNode(e,r,i){let n;if(typeof r=="function")e=r.call({"":e},"",e),n=r;else if(Array.isArray(r)){let _=T=>typeof T=="number"||T instanceof String||T instanceof Number,O=r.filter(_).map(String);O.length>0&&(r=r.concat(O)),n=r}else i===void 0&&r&&(i=r,r=void 0);let{aliasDuplicateObjects:o,anchorPrefix:a,flow:s,keepUndefined:c,onTagObj:u,tag:l}=i??{},{onAnchor:d,setAnchors:m,sourceObjects:p}=$c.createNodeAnchors(this,a||"a"),y={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:p},h=mS.createNode(e,l,y);return s&&Se.isCollection(h)&&(h.flow=!0),m(),h}createPair(e,r,i={}){let n=this.createNode(e,null,i),o=this.createNode(r,null,i);return new cS.Pair(n,o)}delete(e){return Xt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Yt.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):Xt(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return Se.isCollection(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return Yt.isEmptyPath(e)?!r&&Se.isScalar(this.contents)?this.contents.value:this.contents:Se.isCollection(this.contents)?this.contents.getIn(e,r):void 0}has(e){return Se.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return Yt.isEmptyPath(e)?this.contents!==void 0:Se.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=Yt.collectionFromPath(this.schema,[e],r):Xt(this.contents)&&this.contents.set(e,r)}setIn(e,r){Yt.isEmptyPath(e)?this.contents=r:this.contents==null?this.contents=Yt.collectionFromPath(this.schema,Array.from(e),r):Xt(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let i;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new kc.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new kc.Directives({version:e}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new lS.Schema(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:a}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=uS.toJS(this.contents,r??"",s);if(typeof o=="function")for(let{count:u,res:l}of s.anchors.values())o(l,u);return typeof a=="function"?fS.applyReviver(a,{"":c},"",c):c}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return dS.stringifyDocument(this,e)}};function Xt(t){if(Se.isCollection(t))return!0;throw new Error("Expected a YAML collection as document contents")}Uh.Document=wc});var mr=x(fr=>{"use strict";var dr=class extends Error{constructor(e,r,i,n){super(),this.name=e,this.code=i,this.message=n,this.pos=r}},xc=class extends dr{constructor(e,r,i){super("YAMLParseError",e,r,i)}},Sc=class extends dr{constructor(e,r,i){super("YAMLWarning",e,r,i)}},pS=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(s=>e.linePos(s));let{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,a=t.substring(e.lineStarts[i-1],e.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){let s=Math.min(o-39,a.length-79);a="\u2026"+a.substring(s),o-=s-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(a.substring(0,o))){let s=t.substring(e.lineStarts[i-2],e.lineStarts[i-1]);s.length>80&&(s=s.substring(0,79)+`\u2026
85
- `),a=s+a}if(/[^ ]/.test(a)){let s=1,c=r.linePos[1];c?.line===i&&c.col>n&&(s=Math.max(1,Math.min(c.col-n,80-o)));let u=" ".repeat(o)+"^".repeat(s);r.message+=`:
86
-
87
- ${a}
88
- ${u}
89
- `}};fr.YAMLError=dr;fr.YAMLParseError=xc;fr.YAMLWarning=Sc;fr.prettifyError=pS});var pr=x(Rh=>{"use strict";function gS(t,{flow:e,indicator:r,next:i,offset:n,onError:o,parentIndent:a,startOnNewline:s}){let c=!1,u=s,l=s,d="",m="",p=!1,y=!1,h=null,_=null,O=null,T=null,A=null,I=null,P=null;for(let E of t)switch(y&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&o(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),h&&(u&&E.type!=="comment"&&E.type!=="newline"&&o(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),E.type){case"space":!e&&(r!=="doc-start"||i?.type!=="flow-collection")&&E.source.includes(" ")&&(h=E),l=!0;break;case"comment":{l||o(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let te=E.source.substring(1)||" ";d?d+=m+te:d=te,m="",u=!1;break}case"newline":u?d?d+=E.source:(!I||r!=="seq-item-ind")&&(c=!0):m+=E.source,u=!0,p=!0,(_||O)&&(T=E),l=!0;break;case"anchor":_&&o(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&o(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),_=E,P??(P=E.offset),u=!1,l=!1,y=!0;break;case"tag":{O&&o(E,"MULTIPLE_TAGS","A node can have at most one tag"),O=E,P??(P=E.offset),u=!1,l=!1,y=!0;break}case r:(_||O)&&o(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),I&&o(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${e??"collection"}`),I=E,u=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(e){A&&o(E,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),A=E,u=!1,l=!1;break}default:o(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),u=!1,l=!1}let z=t[t.length-1],V=z?z.offset+z.source.length:n;return y&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(u&&h.indent<=a||i?.type==="block-map"||i?.type==="block-seq")&&o(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:A,found:I,spaceBefore:c,comment:d,hasNewline:p,anchor:_,tag:O,newlineAfterProp:T,end:V,start:P??V}}Rh.resolveProps=gS});var eo=x(Lh=>{"use strict";function Ic(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
90
- `))return!0;if(t.end){for(let e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of t.items){for(let r of e.start)if(r.type==="newline")return!0;if(e.sep){for(let r of e.sep)if(r.type==="newline")return!0}if(Ic(e.key)||Ic(e.value))return!0}return!1;default:return!0}}Lh.containsNewline=Ic});var Oc=x(Zh=>{"use strict";var hS=eo();function vS(t,e,r){if(e?.type==="flow-collection"){let i=e.end[0];i.indent===t&&(i.source==="]"||i.source==="}")&&hS.containsNewline(e)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Zh.flowIndentCheck=vS});var Pc=x(Fh=>{"use strict";var Mh=L();function yS(t,e,r){let{uniqueKeys:i}=t.options;if(i===!1)return!1;let n=typeof i=="function"?i:(o,a)=>o===a||Mh.isScalar(o)&&Mh.isScalar(a)&&o.value===a.value;return e.some(o=>n(o.key,r))}Fh.mapIncludes=yS});var Wh=x(Jh=>{"use strict";var qh=st(),_S=ut(),Vh=pr(),bS=eo(),Bh=Oc(),$S=Pc(),Kh="All mapping items must start at the same column";function kS({composeNode:t,composeEmptyNode:e},r,i,n,o){let a=o?.nodeClass??_S.YAMLMap,s=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,u=null;for(let l of i.items){let{start:d,key:m,sep:p,value:y}=l,h=Vh.resolveProps(d,{indicator:"explicit-key-ind",next:m??p?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),_=!h.found;if(_){if(m&&(m.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==i.indent&&n(c,"BAD_INDENT",Kh)),!h.anchor&&!h.tag&&!p){u=h.end,h.comment&&(s.comment?s.comment+=`
91
- `+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||bS.containsNewline(m))&&n(m??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==i.indent&&n(c,"BAD_INDENT",Kh);r.atKey=!0;let O=h.end,T=m?t(r,m,h,n):e(r,O,d,null,h,n);r.schema.compat&&Bh.flowIndentCheck(i.indent,m,n),r.atKey=!1,$S.mapIncludes(r,s.items,T)&&n(O,"DUPLICATE_KEY","Map keys must be unique");let A=Vh.resolveProps(p??[],{indicator:"map-value-ind",next:y,offset:T.range[2],onError:n,parentIndent:i.indent,startOnNewline:!m||m.type==="block-scalar"});if(c=A.end,A.found){_&&(y?.type==="block-map"&&!A.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<A.found.offset-1024&&n(T.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let I=y?t(r,y,A,n):e(r,c,p,null,A,n);r.schema.compat&&Bh.flowIndentCheck(i.indent,y,n),c=I.range[2];let P=new qh.Pair(T,I);r.options.keepSourceTokens&&(P.srcToken=l),s.items.push(P)}else{_&&n(T.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(T.comment?T.comment+=`
92
- `+A.comment:T.comment=A.comment);let I=new qh.Pair(T);r.options.keepSourceTokens&&(I.srcToken=l),s.items.push(I)}}return u&&u<c&&n(u,"IMPOSSIBLE","Map comment with trailing content"),s.range=[i.offset,c,u??c],s}Jh.resolveBlockMap=kS});var Hh=x(Gh=>{"use strict";var wS=lt(),xS=pr(),SS=Oc();function IS({composeNode:t,composeEmptyNode:e},r,i,n,o){let a=o?.nodeClass??wS.YAMLSeq,s=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,u=null;for(let{start:l,value:d}of i.items){let m=xS.resolveProps(l,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||d)d?.type==="block-seq"?n(m.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{u=m.end,m.comment&&(s.comment=m.comment);continue}let p=d?t(r,d,m,n):e(r,m.end,l,null,m,n);r.schema.compat&&SS.flowIndentCheck(i.indent,d,n),c=p.range[2],s.items.push(p)}return s.range=[i.offset,c,u??c],s}Gh.resolveBlockSeq=IS});var Qt=x(Yh=>{"use strict";function OS(t,e,r,i){let n="";if(t){let o=!1,a="";for(let s of t){let{source:c,type:u}=s;switch(u){case"space":o=!0;break;case"comment":{r&&!o&&i(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let l=c.substring(1)||" ";n?n+=a+l:n=l,a="";break}case"newline":n&&(a+=c),o=!0;break;default:i(s,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}e+=c.length}}return{comment:n,offset:e}}Yh.resolveEnd=OS});var tv=x(ev=>{"use strict";var PS=L(),ES=st(),Xh=ut(),TS=lt(),AS=Qt(),Qh=pr(),NS=eo(),zS=Pc(),Ec="Block collections are not allowed within flow collections",Tc=t=>t&&(t.type==="block-map"||t.type==="block-seq");function CS({composeNode:t,composeEmptyNode:e},r,i,n,o){let a=i.start.source==="{",s=a?"flow map":"flow sequence",c=o?.nodeClass??(a?Xh.YAMLMap:TS.YAMLSeq),u=new c(r.schema);u.flow=!0;let l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let _=0;_<i.items.length;++_){let O=i.items[_],{start:T,key:A,sep:I,value:P}=O,z=Qh.resolveProps(T,{flow:s,indicator:"explicit-key-ind",next:A??I?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!z.found){if(!z.anchor&&!z.tag&&!I&&!P){_===0&&z.comma?n(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):_<i.items.length-1&&n(z.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),z.comment&&(u.comment?u.comment+=`
93
- `+z.comment:u.comment=z.comment),d=z.end;continue}!a&&r.options.strict&&NS.containsNewline(A)&&n(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(_===0)z.comma&&n(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(z.comma||n(z.start,"MISSING_CHAR",`Missing , between ${s} items`),z.comment){let V="";e:for(let E of T)switch(E.type){case"comma":case"space":break;case"comment":V=E.source.substring(1);break e;default:break e}if(V){let E=u.items[u.items.length-1];PS.isPair(E)&&(E=E.value??E.key),E.comment?E.comment+=`
94
- `+V:E.comment=V,z.comment=z.comment.substring(V.length+1)}}if(!a&&!I&&!z.found){let V=P?t(r,P,z,n):e(r,z.end,I,null,z,n);u.items.push(V),d=V.range[2],Tc(P)&&n(V.range,"BLOCK_IN_FLOW",Ec)}else{r.atKey=!0;let V=z.end,E=A?t(r,A,z,n):e(r,V,T,null,z,n);Tc(A)&&n(E.range,"BLOCK_IN_FLOW",Ec),r.atKey=!1;let te=Qh.resolveProps(I??[],{flow:s,indicator:"map-value-ind",next:P,offset:E.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(te.found){if(!a&&!z.found&&r.options.strict){if(I)for(let ne of I){if(ne===te.found)break;if(ne.type==="newline"){n(ne,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}z.start<te.found.offset-1024&&n(te.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else P&&("source"in P&&P.source?.[0]===":"?n(P,"MISSING_CHAR",`Missing space after : in ${s}`):n(te.start,"MISSING_CHAR",`Missing , or : between ${s} items`));let nt=P?t(r,P,te,n):te.found?e(r,te.end,I,null,te,n):null;nt?Tc(P)&&n(nt.range,"BLOCK_IN_FLOW",Ec):te.comment&&(E.comment?E.comment+=`
95
- `+te.comment:E.comment=te.comment);let Ft=new ES.Pair(E,nt);if(r.options.keepSourceTokens&&(Ft.srcToken=O),a){let ne=u;zS.mapIncludes(r,ne.items,E)&&n(V,"DUPLICATE_KEY","Map keys must be unique"),ne.items.push(Ft)}else{let ne=new Xh.YAMLMap(r.schema);ne.flow=!0,ne.items.push(Ft);let Ap=(nt??E).range;ne.range=[E.range[0],Ap[1],Ap[2]],u.items.push(ne)}d=nt?nt.range[2]:te.end}}let m=a?"}":"]",[p,...y]=i.end,h=d;if(p?.source===m)h=p.offset+p.source.length;else{let _=s[0].toUpperCase()+s.substring(1),O=l?`${_} must end with a ${m}`:`${_} in block collection must be sufficiently indented and end with a ${m}`;n(d,l?"MISSING_CHAR":"BAD_INDENT",O),p&&p.source.length!==1&&y.unshift(p)}if(y.length>0){let _=AS.resolveEnd(y,h,r.options.strict,n);_.comment&&(u.comment?u.comment+=`
96
- `+_.comment:u.comment=_.comment),u.range=[i.offset,h,_.offset]}else u.range=[i.offset,h,h];return u}ev.resolveFlowCollection=CS});var rv=x(nv=>{"use strict";var jS=L(),DS=Q(),US=ut(),RS=lt(),LS=Wh(),ZS=Hh(),MS=tv();function Ac(t,e,r,i,n,o){let a=r.type==="block-map"?LS.resolveBlockMap(t,e,r,i,o):r.type==="block-seq"?ZS.resolveBlockSeq(t,e,r,i,o):MS.resolveFlowCollection(t,e,r,i,o),s=a.constructor;return n==="!"||n===s.tagName?(a.tag=s.tagName,a):(n&&(a.tag=n),a)}function FS(t,e,r,i,n){let o=i.tag,a=o?e.directives.tagName(o.source,m=>n(o,"TAG_RESOLVE_FAILED",m)):null;if(r.type==="block-seq"){let{anchor:m,newlineAfterProp:p}=i,y=m&&o?m.offset>o.offset?m:o:m??o;y&&(!p||p.offset<y.offset)&&n(y,"MISSING_CHAR","Missing newline after block sequence props")}let s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===US.YAMLMap.tagName&&s==="map"||a===RS.YAMLSeq.tagName&&s==="seq")return Ac(t,e,r,n,a);let c=e.schema.tags.find(m=>m.tag===a&&m.collection===s);if(!c){let m=e.schema.knownTags[a];if(m?.collection===s)e.schema.tags.push(Object.assign({},m,{default:!1})),c=m;else return m?n(o,"BAD_COLLECTION_TYPE",`${m.tag} used for ${s} collection, but expects ${m.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),Ac(t,e,r,n,a)}let u=Ac(t,e,r,n,a,c),l=c.resolve?.(u,m=>n(o,"TAG_RESOLVE_FAILED",m),e.options)??u,d=jS.isNode(l)?l:new DS.Scalar(l);return d.range=u.range,d.tag=a,c?.format&&(d.format=c.format),d}nv.composeCollection=FS});var zc=x(iv=>{"use strict";var Nc=Q();function qS(t,e,r){let i=e.offset,n=VS(e,t.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let o=n.mode===">"?Nc.Scalar.BLOCK_FOLDED:Nc.Scalar.BLOCK_LITERAL,a=e.source?BS(e.source):[],s=a.length;for(let h=a.length-1;h>=0;--h){let _=a[h][1];if(_===""||_==="\r")s=h;else break}if(s===0){let h=n.chomp==="+"&&a.length>0?`
97
- `.repeat(Math.max(1,a.length-1)):"",_=i+n.length;return e.source&&(_+=e.source.length),{value:h,type:o,comment:n.comment,range:[i,_,_]}}let c=e.indent+n.indent,u=e.offset+n.length,l=0;for(let h=0;h<s;++h){let[_,O]=a[h];if(O===""||O==="\r")n.indent===0&&_.length>c&&(c=_.length);else{_.length<c&&r(u+_.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=_.length),l=h,c===0&&!t.atRoot&&r(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=_.length+O.length+1}for(let h=a.length-1;h>=s;--h)a[h][0].length>c&&(s=h+1);let d="",m="",p=!1;for(let h=0;h<l;++h)d+=a[h][0].slice(c)+`
98
- `;for(let h=l;h<s;++h){let[_,O]=a[h];u+=_.length+O.length+1;let T=O[O.length-1]==="\r";if(T&&(O=O.slice(0,-1)),O&&_.length<c){let I=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(u-O.length-(T?2:1),"BAD_INDENT",I),_=""}o===Nc.Scalar.BLOCK_LITERAL?(d+=m+_.slice(c)+O,m=`
99
- `):_.length>c||O[0]===" "?(m===" "?m=`
100
- `:!p&&m===`
101
- `&&(m=`
102
-
103
- `),d+=m+_.slice(c)+O,m=`
104
- `,p=!0):O===""?m===`
105
- `?d+=`
106
- `:m=`
107
- `:(d+=m+O,m=" ",p=!1)}switch(n.chomp){case"-":break;case"+":for(let h=s;h<a.length;++h)d+=`
108
- `+a[h][0].slice(c);d[d.length-1]!==`
109
- `&&(d+=`
110
- `);break;default:d+=`
111
- `}let y=i+n.length+e.source.length;return{value:d,type:o,comment:n.comment,range:[i,y,y]}}function VS({offset:t,props:e},r,i){if(e[0].type!=="block-scalar-header")return i(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=e[0],o=n[0],a=0,s="",c=-1;for(let m=1;m<n.length;++m){let p=n[m];if(!s&&(p==="-"||p==="+"))s=p;else{let y=Number(p);!a&&y?a=y:c===-1&&(c=t+m)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let u=!1,l="",d=n.length;for(let m=1;m<e.length;++m){let p=e[m];switch(p.type){case"space":u=!0;case"newline":d+=p.source.length;break;case"comment":r&&!u&&i(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,l=p.source.substring(1);break;case"error":i(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{let y=`Unexpected token in block scalar header: ${p.type}`;i(p,"UNEXPECTED_TOKEN",y);let h=p.source;h&&typeof h=="string"&&(d+=h.length)}}}return{mode:o,indent:a,chomp:s,comment:l,length:d}}function BS(t){let e=t.split(/\n( *)/),r=e[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let a=1;a<e.length;a+=2)o.push([e[a],e[a+1]]);return o}iv.resolveBlockScalar=qS});var jc=x(av=>{"use strict";var Cc=Q(),KS=Qt();function JS(t,e,r){let{offset:i,type:n,source:o,end:a}=t,s,c,u=(m,p,y)=>r(i+m,p,y);switch(n){case"scalar":s=Cc.Scalar.PLAIN,c=WS(o,u);break;case"single-quoted-scalar":s=Cc.Scalar.QUOTE_SINGLE,c=GS(o,u);break;case"double-quoted-scalar":s=Cc.Scalar.QUOTE_DOUBLE,c=HS(o,u);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let l=i+o.length,d=KS.resolveEnd(a,l,e,r);return{value:c,type:s,comment:d.comment,range:[i,l,d.offset]}}function WS(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),ov(t)}function GS(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),ov(t.slice(1,-1)).replace(/''/g,"'")}function ov(t){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
112
- `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
113
- `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=e.exec(t);if(!i)return t;let n=i[1],o=" ",a=e.lastIndex;for(r.lastIndex=a;i=r.exec(t);)i[1]===""?o===`
114
- `?n+=o:o=`
115
- `:(n+=o+i[1],o=" "),a=r.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=a,i=s.exec(t),n+o+(i?.[1]??"")}function HS(t,e){let r="";for(let i=1;i<t.length-1;++i){let n=t[i];if(!(n==="\r"&&t[i+1]===`
116
- `))if(n===`
117
- `){let{fold:o,offset:a}=YS(t,i);r+=o,i=a}else if(n==="\\"){let o=t[++i],a=XS[o];if(a)r+=a;else if(o===`
118
- `)for(o=t[i+1];o===" "||o===" ";)o=t[++i+1];else if(o==="\r"&&t[i+1]===`
119
- `)for(o=t[++i+1];o===" "||o===" ";)o=t[++i+1];else if(o==="x"||o==="u"||o==="U"){let s=o==="x"?2:o==="u"?4:8;r+=QS(t,i+1,s,e),i+=s}else{let s=t.substr(i-1,2);e(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),r+=s}}else if(n===" "||n===" "){let o=i,a=t[i+1];for(;a===" "||a===" ";)a=t[++i+1];a!==`
120
- `&&!(a==="\r"&&t[i+2]===`
121
- `)&&(r+=i>o?t.slice(o,i+1):n)}else r+=n}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),r}function YS(t,e){let r="",i=t[e+1];for(;(i===" "||i===" "||i===`
122
- `||i==="\r")&&!(i==="\r"&&t[e+2]!==`
123
- `);)i===`
124
- `&&(r+=`
125
- `),e+=1,i=t[e+1];return r||(r=" "),{fold:r,offset:e}}var XS={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
126
- `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function QS(t,e,r,i){let n=t.substr(e,r),a=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;try{return String.fromCodePoint(a)}catch{let s=t.substr(e-2,r+2);return i(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`),s}}av.resolveFlowScalar=JS});var uv=x(cv=>{"use strict";var Et=L(),sv=Q(),eI=zc(),tI=jc();function nI(t,e,r,i){let{value:n,type:o,comment:a,range:s}=e.type==="block-scalar"?eI.resolveBlockScalar(t,e,i):tI.resolveFlowScalar(e,t.options.strict,i),c=r?t.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null,u;t.options.stringKeys&&t.atKey?u=t.schema[Et.SCALAR]:c?u=rI(t.schema,n,c,r,i):e.type==="scalar"?u=iI(t,n,e,i):u=t.schema[Et.SCALAR];let l;try{let d=u.resolve(n,m=>i(r??e,"TAG_RESOLVE_FAILED",m),t.options);l=Et.isScalar(d)?d:new sv.Scalar(d)}catch(d){let m=d instanceof Error?d.message:String(d);i(r??e,"TAG_RESOLVE_FAILED",m),l=new sv.Scalar(n)}return l.range=s,l.source=n,o&&(l.type=o),c&&(l.tag=c),u.format&&(l.format=u.format),a&&(l.comment=a),l}function rI(t,e,r,i,n){if(r==="!")return t[Et.SCALAR];let o=[];for(let s of t.tags)if(!s.collection&&s.tag===r)if(s.default&&s.test)o.push(s);else return s;for(let s of o)if(s.test?.test(e))return s;let a=t.knownTags[r];return a&&!a.collection?(t.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[Et.SCALAR])}function iI({atKey:t,directives:e,schema:r},i,n,o){let a=r.tags.find(s=>(s.default===!0||t&&s.default==="key")&&s.test?.test(i))||r[Et.SCALAR];if(r.compat){let s=r.compat.find(c=>c.default&&c.test?.test(i))??r[Et.SCALAR];if(a.tag!==s.tag){let c=e.tagString(a.tag),u=e.tagString(s.tag),l=`Value may be parsed as either ${c} or ${u}`;o(n,"TAG_RESOLVE_FAILED",l,!0)}}return a}cv.composeScalar=nI});var dv=x(lv=>{"use strict";function oI(t,e,r){if(e){r??(r=e.length);for(let i=r-1;i>=0;--i){let n=e[i];switch(n.type){case"space":case"comment":case"newline":t-=n.source.length;continue}for(n=e[++i];n?.type==="space";)t+=n.source.length,n=e[++i];break}}return t}lv.emptyScalarPosition=oI});var pv=x(Uc=>{"use strict";var aI=Wn(),sI=L(),cI=rv(),fv=uv(),uI=Qt(),lI=dv(),dI={composeNode:mv,composeEmptyNode:Dc};function mv(t,e,r,i){let n=t.atKey,{spaceBefore:o,comment:a,anchor:s,tag:c}=r,u,l=!0;switch(e.type){case"alias":u=fI(t,e,i),(s||c)&&i(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=fv.composeScalar(t,e,c,i),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{u=cI.composeCollection(dI,t,e,r,i),s&&(u.anchor=s.source.substring(1))}catch(d){let m=d instanceof Error?d.message:String(d);i(e,"RESOURCE_EXHAUSTION",m)}break;default:{let d=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;i(e,"UNEXPECTED_TOKEN",d),l=!1}}return u??(u=Dc(t,e.offset,void 0,null,r,i)),s&&u.anchor===""&&i(s,"BAD_ALIAS","Anchor cannot be an empty string"),n&&t.options.stringKeys&&(!sI.isScalar(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&i(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(u.spaceBefore=!0),a&&(e.type==="scalar"&&e.source===""?u.comment=a:u.commentBefore=a),t.options.keepSourceTokens&&l&&(u.srcToken=e),u}function Dc(t,e,r,i,{spaceBefore:n,comment:o,anchor:a,tag:s,end:c},u){let l={type:"scalar",offset:lI.emptyScalarPosition(e,r,i),indent:-1,source:""},d=fv.composeScalar(t,l,s,u);return a&&(d.anchor=a.source.substring(1),d.anchor===""&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function fI({options:t},{offset:e,source:r,end:i},n){let o=new aI.Alias(r.substring(1));o.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=e+r.length,s=uI.resolveEnd(i,a,t.strict,n);return o.range=[e,a,s.offset],s.comment&&(o.comment=s.comment),o}Uc.composeEmptyNode=Dc;Uc.composeNode=mv});var vv=x(hv=>{"use strict";var mI=lr(),gv=pv(),pI=Qt(),gI=pr();function hI(t,e,{offset:r,start:i,value:n,end:o},a){let s=Object.assign({_directives:e},t),c=new mI.Document(void 0,s),u={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},l=gI.resolveProps(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});l.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!l.hasNewline&&a(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?gv.composeNode(u,n,l,a):gv.composeEmptyNode(u,l.end,i,null,l,a);let d=c.contents.range[2],m=pI.resolveEnd(o,d,!1,a);return m.comment&&(c.comment=m.comment),c.range=[r,d,m.offset],c}hv.composeDoc=hI});var Lc=x(bv=>{"use strict";var vI=Je("process"),yI=xs(),_I=lr(),gr=mr(),yv=L(),bI=vv(),$I=Qt();function hr(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];let{offset:e,source:r}=t;return[e,e+(typeof r=="string"?r.length:1)]}function _v(t){let e="",r=!1,i=!1;for(let n=0;n<t.length;++n){let o=t[n];switch(o[0]){case"#":e+=(e===""?"":i?`
127
-
25
+ `),this.outputHelp({error:!0}));let o=n||{},e=o.exitCode||1,i=o.code||"commander.error";this._exit(e,i,r)}_parseOptionsEnv(){this.options.forEach(r=>{if(r.envVar&&r.envVar in P.env){let n=r.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(r.required||r.optional?this.emit(`optionEnv:${r.name()}`,P.env[r.envVar]):this.emit(`optionEnv:${r.name()}`))}})}_parseOptionsImplied(){let r=new lh(this.options),n=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&n(o.attributeName())&&r.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(e=>!n(e)).forEach(e=>{this.setOptionValueWithSource(e,o.implied[e],"implied")})})}missingArgument(r){let n=`error: missing required argument '${r}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(r){let n=`error: option '${r.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(r){let n=`error: required option '${r.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(r,n){let o=a=>{let s=a.attributeName(),u=this.getOptionValue(s),l=this.options.find(p=>p.negate&&s===p.attributeName()),d=this.options.find(p=>!p.negate&&s===p.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:d||a},e=a=>{let s=o(a),u=s.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${e(r)} cannot be used with ${e(n)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(r){if(this._allowUnknownOption)return;let n="";if(r.startsWith("--")&&this._showSuggestionAfterError){let e=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);e=e.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);n=Cl(r,e)}let o=`error: unknown option '${r}'${n}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(r){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,o=n===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${o} but got ${r.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let r=this.args[0],n="";if(this._showSuggestionAfterError){let e=[];this.createHelp().visibleCommands(this).forEach(i=>{e.push(i.name()),i.alias()&&e.push(i.alias())}),n=Cl(r,e)}let o=`error: unknown command '${r}'${n}`;this.error(o,{code:"commander.unknownCommand"})}version(r,n,o){if(r===void 0)return this._version;this._version=r,n=n||"-V, --version",o=o||"output the version number";let e=this.createOption(n,o);return this._versionOptionName=e.attributeName(),this._registerOption(e),this.on("option:"+e.name(),()=>{this._outputConfiguration.writeOut(`${r}
26
+ `),this._exit(0,"commander.version",r)}),this}description(r,n){return r===void 0&&n===void 0?this._description:(this._description=r,n&&(this._argsDescription=n),this)}summary(r){return r===void 0?this._summary:(this._summary=r,this)}alias(r){if(r===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),r===n._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(r);if(o){let e=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${r}' to command '${this.name()}' as already have command '${e}'`)}return n._aliases.push(r),this}aliases(r){return r===void 0?this._aliases:(r.forEach(n=>this.alias(n)),this)}usage(r){if(r===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(o=>sh(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=r,this}name(r){return r===void 0?this._name:(this._name=r,this)}nameFromFilename(r){return this._name=xe.basename(r,xe.extname(r)),this}executableDir(r){return r===void 0?this._executableDir:(this._executableDir=r,this)}helpInformation(r){let n=this.createHelp(),o=this._getOutputContext(r);n.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let e=n.formatHelp(this,n);return o.hasColors?e:this._outputConfiguration.stripColor(e)}_getOutputContext(r){r=r||{};let n=!!r.error,o,e,i;return n?(o=s=>this._outputConfiguration.writeErr(s),e=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=s=>this._outputConfiguration.writeOut(s),e=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:n,write:s=>(e||(s=this._outputConfiguration.stripColor(s)),o(s)),hasColors:e,helpWidth:i}}outputHelp(r){let n;typeof r=="function"&&(n=r,r=void 0);let o=this._getOutputContext(r),e={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",e)),this.emit("beforeHelp",e);let i=this.helpInformation({error:o.error});if(n&&(i=n(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");o.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",e),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",e))}helpOption(r,n){return typeof r=="boolean"?(r?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(r=r??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(r,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(r){return this._helpOption=r,this}help(r){this.outputHelp(r);let n=Number(P.exitCode??0);n===0&&r&&typeof r!="function"&&r.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(r,n){let o=["beforeAll","before","after","afterAll"];if(!o.includes(r))throw new Error(`Unexpected value for position to addHelpText.
27
+ Expecting one of '${o.join("', '")}'`);let e=`${r}Help`;return this.on(e,i=>{let a;typeof n=="function"?a=n({error:i.error,command:i.command}):a=n,a&&i.write(`${a}
28
+ `)}),this}_outputHelpIfRequested(r){let n=this._getHelpOption();n&&r.find(e=>n.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Nl(t){return t.map(r=>{if(!r.startsWith("--inspect"))return r;let n,o="127.0.0.1",e="9229",i;return(i=r.match(/^(--inspect(-brk)?)$/))!==null?n=i[1]:(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=i[1],/^\d+$/.test(i[3])?e=i[3]:o=i[3]):(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=i[1],o=i[3],e=i[4]),n&&e!=="0"?`${n}=${o}:${parseInt(e)+1}`:r})}function Ki(){if(P.env.NO_COLOR||P.env.FORCE_COLOR==="0"||P.env.FORCE_COLOR==="false")return!1;if(P.env.FORCE_COLOR||P.env.CLICOLOR_FORCE!==void 0)return!0}Yi.Command=qi;Yi.useColor=Ki});var Ll=Me(ie=>{var{Argument:Ul}=Nr(),{Command:Xi}=Dl(),{CommanderError:dh,InvalidArgumentError:Rl}=Zt(),{Help:mh}=Mi(),{Option:Zl}=Gi();ie.program=new Xi;ie.createCommand=t=>new Xi(t);ie.createOption=(t,r)=>new Zl(t,r);ie.createArgument=(t,r)=>new Ul(t,r);ie.Command=Xi;ie.Option=Zl;ie.Argument=Ul;ie.Help=mh;ie.CommanderError=dh;ie.InvalidArgumentError=Rl;ie.InvalidOptionArgumentError=Rl});var Fl=Yg(Ll(),1),{program:J$,createCommand:q$,createArgument:K$,createOption:Y$,CommanderError:X$,InvalidArgumentError:Q$,InvalidOptionArgumentError:ex,Command:Ml,Argument:tx,Option:rx,Help:nx}=Fl.default;import{readFile as j$}from"node:fs/promises";import{fileURLToPath as A$}from"node:url";import{dirname as C$,join as N$}from"node:path";var S=class extends Error{constructor(n,o,e){super(n);this.status=o;this.name="CliError",this.code=e?.code,this.details=e?.details}status;code;details};var Lt="x-fs-surface",Ft="cli";function et(t,r){let n=new URLSearchParams;for(let[e,i]of Object.entries(r))i&&n.set(e,i);let o=n.toString();return o?`${t}?${o}`:t}function Vl(t){let r=null;async function n(){let i=await fetch(`${t.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Ft}});if(!i.ok){let s=(await i.json().catch(()=>null))?.error,u=typeof s=="string"?{message:s}:s;throw new S(u?.message??i.statusText,i.status,{code:u?.code,details:u?.details})}return r=await i.json(),r}async function o(){if(!t.token.startsWith("mk_"))return t.token;let i=r?Date.parse(r.expiresAt):0;return(!r||i-Date.now()<6e4)&&await n(),r.accessToken}async function e(i,a,s){let u=await o(),l=await fetch(`${t.apiUrl}${a}`,{method:i,headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",[Lt]:Ft},body:s?JSON.stringify(s):void 0});if(!l.ok){let p=(await l.json().catch(()=>null))?.error,g=typeof p=="string"?{message:p}:p;throw new S(g?.message??l.statusText,l.status,{code:g?.code,details:g?.details})}if(l.status!==204)return l.json()}return{exchangeCliToken:n,bootstrap:()=>e("POST","/builder/context/bootstrap"),listProducts:()=>e("GET","/products"),initProduct:i=>e("POST","/products/init",i),updateProduct:(i,a,s)=>e("PATCH",et(`/products/${i}`,{env:s?.env}),a),publishProduct:i=>e("POST",`/products/${i}/publish`),createPlan:(i,a,s)=>e("POST",et(`/products/${i}/plans`,{env:s?.env}),a),updatePlan:(i,a,s,u)=>e("PATCH",et(`/products/${i}/plans/${a}`,{env:u?.env}),s),deletePlan:(i,a,s)=>e("DELETE",et(`/products/${i}/plans/${a}`,{env:s?.env})),getProduct:(i,a)=>e("GET",et(`/products/${i}`,{env:a?.env})),listEnvironments:i=>e("GET",`/products/${i}/environments`),createEnvironment:(i,a)=>e("POST",`/products/${i}/environments`,a),deleteEnvironment:(i,a)=>e("DELETE",`/products/${i}/environments/${encodeURIComponent(a)}`),deleteProduct:i=>e("DELETE",`/products/${i}`),managementListPlans:i=>e("GET",`/management/products/${i}/plans`),managementGetUsage:i=>e("GET",`/management/products/${i}/usage`),managementListMakerTokens:()=>e("GET","/maker-tokens"),managementCreateMakerToken:i=>e("POST","/maker-tokens",i),managementRevokeMakerToken:i=>e("DELETE",`/maker-tokens/${i}`),builderGitHubStatus:()=>e("GET","/builder/git/github/status"),productStripeStatus:i=>e("GET",`/products/${i}/stripe/status`),issuePersonaBootstrapKey:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/bootstrap-key`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Ft},body:JSON.stringify(s??{})});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,p=typeof d=="string"?{message:d}:d;throw new S(p?.message??u.statusText,u.status,{code:p?.code,details:p?.details})}return u.json()},listPersonas:async(i,a)=>{let s=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas`,{method:"GET",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Ft}});if(!s.ok){let l=(await s.json().catch(()=>null))?.error,d=typeof l=="string"?{message:l}:l;throw new S(d?.message??s.statusText,s.status,{code:d?.code,details:d?.details})}return s.json()},revokePersona:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas/${s}`,{method:"DELETE",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Ft}});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,p=typeof d=="string"?{message:d}:d;throw new S(p?.message??u.statusText,u.status,{code:p?.code,details:p?.details})}return u.json()},getProductConfig:(i,a)=>e("GET",et(`/products/${i}/config`,{format:"json",env:a?.env,state:a?.state})),updateProductConfigDraft:(i,a,s)=>e("PATCH",`/products/${i}/config/draft`,{spec:a,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,baseDraftHash:s?.baseDraftHash}),validateProductConfigDraft:(i,a)=>e("POST",`/products/${i}/config/draft/validate`,{env:a?.env}),applyProductConfig:(i,a)=>e("POST",`/products/${i}/config/apply`,{spec:a?.spec,dryRun:a?.dryRun===!0,env:a?.env,branch:a?.branch,source:a?.source,draftHash:a?.draftHash}),compileProduct:(i,a)=>e("POST",`/products/${i}/compile`,ph(a)),compileProductManifest:(i,a)=>e("POST",`/products/${i}/manifest/compile`,{ir:a.ir,env:a.env})}}function ph(t){let r={};return t?.branch&&(r.branch=t.branch),t?.dryRun&&(r.dryRun=!0),t?.env&&(r.env=t.env),Object.keys(r).length>0?r:void 0}import{existsSync as Ur,mkdirSync as fh,readFileSync as Gl,writeFileSync as Wl}from"node:fs";import{homedir as gh}from"node:os";import{join as eo}from"node:path";var Bl="https://core.farthershore.com";var Rr=eo(gh(),".farthershore"),Hl=eo(Rr,"config.json"),Mt=eo(Rr,"credentials.json");function Jl(t){Ur(t)||fh(t,{recursive:!0,mode:448})}var Qi={apiUrl:Bl};function ql(){if(Jl(Rr),!Ur(Hl))return Qi;try{let t=JSON.parse(Gl(Hl,"utf-8"));return{...Qi,...t}}catch{return Qi}}function Zr(){if(!Ur(Mt))return null;try{return JSON.parse(Gl(Mt,"utf-8"))}catch{return null}}function Kl(t){Jl(Rr),Wl(Mt,JSON.stringify(t,null,2)+`
29
+ `,{mode:384})}function Yl(){Ur(Mt)&&Wl(Mt,"{}")}function Xl(t){if(t)return t;let r=process.env.FARTHERSHORE_TOKEN;if(r)return r;let n=Zr();if(n?.token)return n.token;throw new S("Not authenticated. Run `farthershore auth login` or set FARTHERSHORE_TOKEN environment variable.")}import{createInterface as Ah}from"node:readline";var Ql=(t=0)=>r=>`\x1B[${r+t}m`,ed=(t=0)=>r=>`\x1B[${38+t};5;${r}m`,td=(t=0)=>(r,n,o)=>`\x1B[${38+t};2;${r};${n};${o}m`,D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},vx=Object.keys(D.modifier),hh=Object.keys(D.color),vh=Object.keys(D.bgColor),_x=[...hh,...vh];function _h(){let t=new Map;for(let[r,n]of Object.entries(D)){for(let[o,e]of Object.entries(n))D[o]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},n[o]=D[o],t.set(e[0],e[1]);Object.defineProperty(D,r,{value:n,enumerable:!1})}return Object.defineProperty(D,"codes",{value:t,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=Ql(),D.color.ansi256=ed(),D.color.ansi16m=td(),D.bgColor.ansi=Ql(10),D.bgColor.ansi256=ed(10),D.bgColor.ansi16m=td(10),Object.defineProperties(D,{rgbToAnsi256:{value(r,n,o){return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(r){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!n)return[0,0,0];let[o]=n;o.length===3&&(o=[...o].map(i=>i+i).join(""));let e=Number.parseInt(o,16);return[e>>16&255,e>>8&255,e&255]},enumerable:!1},hexToAnsi256:{value:r=>D.rgbToAnsi256(...D.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,o,e;if(r>=232)n=((r-232)*10+8)/255,o=n,e=n;else{r-=16;let s=r%36;n=Math.floor(r/36)/5,o=Math.floor(s/6)/5,e=s%6/5}let i=Math.max(n,o,e)*2;if(i===0)return 30;let a=30+(Math.round(e)<<2|Math.round(o)<<1|Math.round(n));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,o)=>D.ansi256ToAnsi(D.rgbToAnsi256(r,n,o)),enumerable:!1},hexToAnsi:{value:r=>D.ansi256ToAnsi(D.hexToAnsi256(r)),enumerable:!1}}),D}var yh=_h(),ce=yh;import to from"node:process";import bh from"node:os";import rd from"node:tty";function oe(t,r=globalThis.Deno?globalThis.Deno.args:to.argv){let n=t.startsWith("-")?"":t.length===1?"-":"--",o=r.indexOf(n+t),e=r.indexOf("--");return o!==-1&&(e===-1||o<e)}var{env:U}=to,Lr;oe("no-color")||oe("no-colors")||oe("color=false")||oe("color=never")?Lr=0:(oe("color")||oe("colors")||oe("color=true")||oe("color=always"))&&(Lr=1);function $h(){if("FORCE_COLOR"in U)return U.FORCE_COLOR==="true"?1:U.FORCE_COLOR==="false"?0:U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function xh(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function kh(t,{streamIsTTY:r,sniffFlags:n=!0}={}){let o=$h();o!==void 0&&(Lr=o);let e=n?Lr:o;if(e===0)return 0;if(n){if(oe("color=16m")||oe("color=full")||oe("color=truecolor"))return 3;if(oe("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(t&&!r&&e===void 0)return 0;let i=e||0;if(U.TERM==="dumb")return i;if(to.platform==="win32"){let a=bh.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in U)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in U)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in U)||U.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor"||U.TERM==="xterm-kitty"||U.TERM==="xterm-ghostty"||U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let a=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:i}function nd(t,r={}){let n=kh(t,{streamIsTTY:t&&t.isTTY,...r});return xh(n)}var Sh={stdout:nd({isTTY:rd.isatty(1)}),stderr:nd({isTTY:rd.isatty(2)})},id=Sh;function od(t,r,n){let o=t.indexOf(r);if(o===-1)return t;let e=r.length,i=0,a="";do a+=t.slice(i,o)+r+n,i=o+e,o=t.indexOf(r,i);while(o!==-1);return a+=t.slice(i),a}function ad(t,r,n,o){let e=0,i="";do{let a=t[o-1]==="\r";i+=t.slice(e,a?o-1:o)+r+(a?`\r
128
30
  `:`
129
- `)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":t[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:e,afterEmptyLine:i}}var Rc=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{let a=hr(r);o?this.warnings.push(new gr.YAMLWarning(a,i,n)):this.errors.push(new gr.YAMLParseError(a,i,n))},this.directives=new yI.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,r){let{comment:i,afterEmptyLine:n}=_v(this.prelude);if(i){let o=e.contents;if(r)e.comment=e.comment?`${e.comment}
130
- ${i}`:i;else if(n||e.directives.docStart||!o)e.commentBefore=i;else if(yv.isCollection(o)&&!o.flow&&o.items.length>0){let a=o.items[0];yv.isPair(a)&&(a=a.key);let s=a.commentBefore;a.commentBefore=s?`${i}
131
- ${s}`:i}else{let a=o.commentBefore;o.commentBefore=a?`${i}
132
- ${a}`:i}}if(r){for(let o=0;o<this.errors.length;++o)e.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)e.warnings.push(this.warnings[o])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:_v(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,i=-1){for(let n of e)yield*this.next(n);yield*this.end(r,i)}*next(e){switch(vI.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(r,i,n)=>{let o=hr(e);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let r=bI.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,i=new gr.YAMLParseError(hr(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new gr.YAMLParseError(hr(e),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let r=$I.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
133
- ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new gr.YAMLParseError(hr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let i=Object.assign({_directives:this.directives},this.options),n=new _I.Document(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}};bv.Composer=Rc});var wv=x(to=>{"use strict";var kI=zc(),wI=jc(),xI=mr(),$v=Qn();function SI(t,e=!0,r){if(t){let i=(n,o,a)=>{let s=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(r)r(s,o,a);else throw new xI.YAMLParseError([s,s+1],o,a)};switch(t.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return wI.resolveFlowScalar(t,e,i);case"block-scalar":return kI.resolveBlockScalar({options:{strict:e}},t,i)}}return null}function II(t,e){let{implicitKey:r=!1,indent:i,inFlow:n=!1,offset:o=-1,type:a="PLAIN"}=e,s=$v.stringifyString({type:a,value:t},{implicitKey:r,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:i,source:`
134
- `}];switch(s[0]){case"|":case">":{let u=s.indexOf(`
135
- `),l=s.substring(0,u),d=s.substring(u+1)+`
136
- `,m=[{type:"block-scalar-header",offset:o,indent:i,source:l}];return kv(m,c)||m.push({type:"newline",offset:-1,indent:i,source:`
137
- `}),{type:"block-scalar",offset:o,indent:i,props:m,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:s,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:s,end:c};default:return{type:"scalar",offset:o,indent:i,source:s,end:c}}}function OI(t,e,r={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:o=!1,type:a}=r,s="indent"in t?t.indent:null;if(i&&typeof s=="number"&&(s+=2),!a)switch(t.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let u=t.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=$v.stringifyString({type:a,value:e},{implicitKey:n||s===null,indent:s!==null&&s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":PI(t,c);break;case'"':Zc(t,c,"double-quoted-scalar");break;case"'":Zc(t,c,"single-quoted-scalar");break;default:Zc(t,c,"scalar")}}function PI(t,e){let r=e.indexOf(`
138
- `),i=e.substring(0,r),n=e.substring(r+1)+`
139
- `;if(t.type==="block-scalar"){let o=t.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=i,t.source=n}else{let{offset:o}=t,a="indent"in t?t.indent:-1,s=[{type:"block-scalar-header",offset:o,indent:a,source:i}];kv(s,"end"in t?t.end:void 0)||s.push({type:"newline",offset:-1,indent:a,source:`
140
- `});for(let c of Object.keys(t))c!=="type"&&c!=="offset"&&delete t[c];Object.assign(t,{type:"block-scalar",indent:a,props:s,source:n})}}function kv(t,e){if(e)for(let r of e)switch(r.type){case"space":case"comment":t.push(r);break;case"newline":return t.push(r),!0}return!1}function Zc(t,e,r){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=r,t.source=e;break;case"block-scalar":{let i=t.props.slice(1),n=e.length;t.props[0].type==="block-scalar-header"&&(n-=t.props[0].source.length);for(let o of i)o.offset+=n;delete t.props,Object.assign(t,{type:r,source:e,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
141
- `};delete t.items,Object.assign(t,{type:r,source:e,end:[n]});break}default:{let i="indent"in t?t.indent:-1,n="end"in t&&Array.isArray(t.end)?t.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(t))o!=="type"&&o!=="offset"&&delete t[o];Object.assign(t,{type:r,indent:i,source:e,end:n})}}}to.createScalarToken=II;to.resolveAsScalar=SI;to.setScalarValue=OI});var Sv=x(xv=>{"use strict";var EI=t=>"type"in t?ro(t):no(t);function ro(t){switch(t.type){case"block-scalar":{let e="";for(let r of t.props)e+=ro(r);return e+t.source}case"block-map":case"block-seq":{let e="";for(let r of t.items)e+=no(r);return e}case"flow-collection":{let e=t.start.source;for(let r of t.items)e+=no(r);for(let r of t.end)e+=r.source;return e}case"document":{let e=no(t);if(t.end)for(let r of t.end)e+=r.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(let r of t.end)e+=r.source;return e}}}function no({start:t,key:e,sep:r,value:i}){let n="";for(let o of t)n+=o.source;if(e&&(n+=ro(e)),r)for(let o of r)n+=o.source;return i&&(n+=ro(i)),n}xv.stringify=EI});var Ev=x(Pv=>{"use strict";var Mc=Symbol("break visit"),TI=Symbol("skip children"),Iv=Symbol("remove item");function Tt(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),Ov(Object.freeze([]),t,e)}Tt.BREAK=Mc;Tt.SKIP=TI;Tt.REMOVE=Iv;Tt.itemAtPath=(t,e)=>{let r=t;for(let[i,n]of e){let o=r?.[i];if(o&&"items"in o)r=o.items[n];else return}return r};Tt.parentCollection=(t,e)=>{let r=Tt.itemAtPath(t,e.slice(0,-1)),i=e[e.length-1][0],n=r?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function Ov(t,e,r){let i=r(e,t);if(typeof i=="symbol")return i;for(let n of["key","value"]){let o=e[n];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let s=Ov(Object.freeze(t.concat([[n,a]])),o.items[a],r);if(typeof s=="number")a=s-1;else{if(s===Mc)return Mc;s===Iv&&(o.items.splice(a,1),a-=1)}}typeof i=="function"&&n==="key"&&(i=i(e,t))}}return typeof i=="function"?i(e,t):i}Pv.visit=Tt});var io=x(ge=>{"use strict";var Fc=wv(),AI=Sv(),NI=Ev(),qc="\uFEFF",Vc="",Bc="",Kc="",zI=t=>!!t&&"items"in t,CI=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function jI(t){switch(t){case qc:return"<BOM>";case Vc:return"<DOC>";case Bc:return"<FLOW_END>";case Kc:return"<SCALAR>";default:return JSON.stringify(t)}}function DI(t){switch(t){case qc:return"byte-order-mark";case Vc:return"doc-mode";case Bc:return"flow-error-end";case Kc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
142
- `:case`\r
143
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}ge.createScalarToken=Fc.createScalarToken;ge.resolveAsScalar=Fc.resolveAsScalar;ge.setScalarValue=Fc.setScalarValue;ge.stringify=AI.stringify;ge.visit=NI.visit;ge.BOM=qc;ge.DOCUMENT=Vc;ge.FLOW_END=Bc;ge.SCALAR=Kc;ge.isCollection=zI;ge.isScalar=CI;ge.prettyToken=jI;ge.tokenType=DI});var Gc=x(Av=>{"use strict";var vr=io();function Ae(t){switch(t){case void 0:case" ":case`
144
- `:case"\r":case" ":return!0;default:return!1}}var Tv=new Set("0123456789ABCDEFabcdef"),UI=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),oo=new Set(",[]{}"),RI=new Set(` ,[]{}
145
- \r `),Jc=t=>!t||RI.has(t),Wc=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
146
- `?!0:r==="\r"?this.buffer[e+1]===`
147
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+e];if(r==="\r"){let n=this.buffer[i+e+1];if(n===`
148
- `||!n&&!this.atEnd)return e+i+1}return r===`
149
- `||i>=this.indentNext||!r&&!this.atEnd?e+i:-1}if(r==="-"||r==="."){let i=this.buffer.substr(e,3);if((i==="---"||i==="...")&&Ae(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
150
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===vr.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let r=e.length,i=e.indexOf("#");for(;i!==-1;){let o=e[i-1];if(o===" "||o===" "){r=i-1;break}else i=e.indexOf("#",i+1)}for(;;){let o=e[r-1];if(o===" "||o===" ")r-=1;else break}let n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-r),yield*this.pushNewline(),"stream"}return yield vr.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&Ae(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ae(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Ae(r)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Jc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,i=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&Ae(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield vr.FLOW_END,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Jc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||Ae(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),r=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}let i=this.buffer.substring(0,r),n=i.indexOf(`
151
- `,this.pos);if(n!==-1){for(;n!==-1;){let o=this.continueScalar(n+1);if(o===-1)break;n=i.indexOf(`
152
- `,o)}n!==-1&&(r=n-(i[n-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let r=this.buffer[++e];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Ae(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":r+=1;break;case`
153
- `:e=o,r=0;break;case"\r":{let a=this.buffer[o+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
154
- `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(e+1);if(o===-1)break;e=this.buffer.indexOf(`
155
- `,o)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
156
- `;)i=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let o=e-1,a=this.buffer[o];a==="\r"&&(a=this.buffer[--o]);let s=o;for(;a===" ";)a=this.buffer[--o];if(a===`
157
- `&&o>=this.pos&&o+1+r>s)e=o;else break}while(!0);return yield vr.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let o=this.buffer[i+1];if(Ae(o)||e&&oo.has(o))break;r=i}else if(Ae(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
158
- `?(i+=1,n=`
159
- `,o=this.buffer[i+1]):r=i),o==="#"||e&&oo.has(o))break;if(n===`
160
- `){let a=this.continueScalar(i+1);if(a===-1)break;i=Math.max(i,a-2)}}else{if(e&&oo.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield vr.SCALAR,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){let i=this.buffer.slice(this.pos,e);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Jc),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let r=this.flowLevel>0,i=this.charAt(1);if(Ae(i)||r&&oo.has(i)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!Ae(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(UI.has(r))r=this.buffer[++e];else if(r==="%"&&Tv.has(this.buffer[e+1])&&Tv.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
161
- `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
162
- `?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||e&&i===" ");let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let r=this.pos,i=this.buffer[r];for(;!e(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};Av.Lexer=Wc});var Yc=x(Nv=>{"use strict";var Hc=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,i=this.lineStarts.length;for(;r<i;){let o=r+i>>1;this.lineStarts[o]<e?r=o+1:i=o}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};let n=this.lineStarts[r-1];return{line:r,col:e-n+1}}}};Nv.LineCounter=Hc});var Qc=x(Uv=>{"use strict";var LI=Je("process"),zv=io(),ZI=Gc();function dt(t,e){for(let r=0;r<t.length;++r)if(t[r].type===e)return!0;return!1}function Cv(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Dv(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ao(t){switch(t.type){case"document":return t.start;case"block-map":{let e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function en(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function so(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let r=0;r<e.length;++r)t.push(e[r])}function jv(t){if(t.start.type==="flow-seq-start")for(let e of t.items)e.sep&&!e.value&&!dt(e.start,"explicit-key-ind")&&!dt(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Dv(e.value)?e.value.end?so(e.value.end,e.sep):e.value.end=e.sep:so(e.start,e.sep),delete e.sep)}var Xc=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ZI.Lexer,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(e,r))yield*this.next(i);r||(yield*this.end())}*next(e){if(this.source=e,LI.env.LOG_TOKENS&&console.log("|",zv.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=zv.tokenType(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let i=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&jv(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Cv(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Cv(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let r=ao(this.peek(2)),i=en(r),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
163
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
164
- `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){so(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",o=[];if(n&&r.sep&&!r.value){let a=[];for(let s=0;s<r.sep.length;++s){let c=r.sep[s];switch(c.type){case"newline":a.push(s);break;case"space":break;case"comment":c.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dt(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(Dv(r.key)&&!dt(r.sep,"newline")){let a=en(r.start),s=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:s,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(dt(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let a=en(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?e.items.push({start:o,key:null,sep:[this.sourceToken]}):dt(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);n||r.value?(e.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(e);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!dt(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&e.items.push({start:o});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){let i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){so(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||dt(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let i=this.startBlockValue(e);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===e.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let n=ao(i),o=en(n);jv(e);let a=e.end.splice(1,e.end.length);a.push(this.sourceToken);let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
165
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
166
- `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=ao(e),i=en(r);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=ao(e),i=en(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};Uv.Parser=Xc});var Fv=x(_r=>{"use strict";var Rv=Lc(),MI=lr(),yr=mr(),FI=Us(),qI=L(),VI=Yc(),Lv=Qc();function Zv(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new VI.LineCounter||null,prettyErrors:e}}function BI(t,e={}){let{lineCounter:r,prettyErrors:i}=Zv(e),n=new Lv.Parser(r?.addNewLine),o=new Rv.Composer(e),a=Array.from(o.compose(n.parse(t)));if(i&&r)for(let s of a)s.errors.forEach(yr.prettifyError(t,r)),s.warnings.forEach(yr.prettifyError(t,r));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}function Mv(t,e={}){let{lineCounter:r,prettyErrors:i}=Zv(e),n=new Lv.Parser(r?.addNewLine),o=new Rv.Composer(e),a=null;for(let s of o.compose(n.parse(t),!0,t.length))if(!a)a=s;else if(a.options.logLevel!=="silent"){a.errors.push(new yr.YAMLParseError(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(a.errors.forEach(yr.prettifyError(t,r)),a.warnings.forEach(yr.prettifyError(t,r))),a}function KI(t,e,r){let i;typeof e=="function"?i=e:r===void 0&&e&&typeof e=="object"&&(r=e);let n=Mv(t,r);if(!n)return null;if(n.warnings.forEach(o=>FI.warn(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}function JI(t,e,r){let i=null;if(typeof e=="function"||Array.isArray(e)?i=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){let n=Math.round(r);r=n<1?void 0:n>8?{indent:8}:{indent:n}}if(t===void 0){let{keepUndefined:n}=r??e??{};if(!n)return}return qI.isDocument(t)&&!i?t.toString(r):new MI.Document(t,i,r).toString(r)}_r.parse=KI;_r.parseAllDocuments=BI;_r.parseDocument=Mv;_r.stringify=JI});var uo=x(F=>{"use strict";var WI=Lc(),GI=lr(),HI=_c(),eu=mr(),YI=Wn(),ft=L(),XI=st(),QI=Q(),eO=ut(),tO=lt(),nO=io(),rO=Gc(),iO=Yc(),oO=Qc(),co=Fv(),qv=Vn();F.Composer=WI.Composer;F.Document=GI.Document;F.Schema=HI.Schema;F.YAMLError=eu.YAMLError;F.YAMLParseError=eu.YAMLParseError;F.YAMLWarning=eu.YAMLWarning;F.Alias=YI.Alias;F.isAlias=ft.isAlias;F.isCollection=ft.isCollection;F.isDocument=ft.isDocument;F.isMap=ft.isMap;F.isNode=ft.isNode;F.isPair=ft.isPair;F.isScalar=ft.isScalar;F.isSeq=ft.isSeq;F.Pair=XI.Pair;F.Scalar=QI.Scalar;F.YAMLMap=eO.YAMLMap;F.YAMLSeq=tO.YAMLSeq;F.CST=nO;F.Lexer=rO.Lexer;F.LineCounter=iO.LineCounter;F.Parser=oO.Parser;F.parse=co.parse;F.parseAllDocuments=co.parseAllDocuments;F.parseDocument=co.parseDocument;F.stringify=co.stringify;F.visit=qv.visit;F.visitAsync=qv.visitAsync});var Vp=ii(qp(),1),{program:FA,createCommand:qA,createArgument:VA,createOption:BA,CommanderError:KA,InvalidArgumentError:JA,InvalidOptionArgumentError:WA,Command:Bp,Argument:GA,Option:HA,Help:YA}=Vp.default;import{readFile as IA}from"node:fs/promises";import{fileURLToPath as OA}from"node:url";import{dirname as PA,join as EA}from"node:path";var C=class extends Error{constructor(r,i,n){super(r);this.status=i;this.name="CliError",this.code=n?.code,this.details=n?.details}status;code;details};function qt(t,e){let r=new URLSearchParams;for(let[n,o]of Object.entries(e))o&&r.set(n,o);let i=r.toString();return i?`${t}?${i}`:t}function Kp(t){let e=null;async function r(){let o=await fetch(`${t.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"}});if(!o.ok){let s=(await o.json().catch(()=>null))?.error;throw new C(s?.message??o.statusText,o.status,{code:s?.code,details:s?.details})}return e=await o.json(),e}async function i(){if(!t.token.startsWith("mk_"))return t.token;let o=e?Date.parse(e.expiresAt):0;return(!e||o-Date.now()<6e4)&&await r(),e.accessToken}async function n(o,a,s){let c=await i(),u=await fetch(`${t.apiUrl}${a}`,{method:o,headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:s?JSON.stringify(s):void 0});if(!u.ok){let d=(await u.json().catch(()=>null))?.error;throw new C(d?.message??u.statusText,u.status,{code:d?.code,details:d?.details})}if(u.status!==204)return u.json()}return{exchangeCliToken:r,bootstrap:()=>n("POST","/builder/context/bootstrap"),listProducts:()=>n("GET","/products"),initProduct:o=>n("POST","/products/init",o),updateProduct:(o,a,s)=>n("PATCH",qt(`/products/${o}`,{env:s?.env}),a),createPlan:(o,a,s)=>n("POST",qt(`/products/${o}/plans`,{env:s?.env}),a),updatePlan:(o,a,s,c)=>n("PATCH",qt(`/products/${o}/plans/${a}`,{env:c?.env}),s),deletePlan:(o,a,s)=>n("DELETE",qt(`/products/${o}/plans/${a}`,{env:s?.env})),getProduct:(o,a)=>n("GET",qt(`/products/${o}`,{env:a?.env})),listEnvironments:o=>n("GET",`/products/${o}/environments`),createEnvironment:(o,a)=>n("POST",`/products/${o}/environments`,a),deleteEnvironment:(o,a)=>n("DELETE",`/products/${o}/environments/${encodeURIComponent(a)}`),deleteProduct:o=>n("DELETE",`/products/${o}`),managementListPlans:o=>n("GET",`/management/products/${o}/plans`),managementGetUsage:o=>n("GET",`/management/products/${o}/usage`),managementListMakerTokens:()=>n("GET","/maker-tokens"),managementCreateMakerToken:o=>n("POST","/maker-tokens",o),managementRevokeMakerToken:o=>n("DELETE",`/maker-tokens/${o}`),builderGitHubStatus:()=>n("GET","/builder/github/status"),productStripeStatus:o=>n("GET",`/products/${o}/stripe/status`),issuePersonaBootstrapKey:async(o,a,s)=>{let c=await fetch(`${t.apiUrl}/portal/products/${o}/environments/${a}/test/bootstrap-key`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!c.ok){let l=(await c.json().catch(()=>null))?.error;throw new C(l?.message??c.statusText,c.status,{code:l?.code,details:l?.details})}return c.json()},listPersonas:async(o,a)=>{let s=await fetch(`${t.apiUrl}/portal/products/${o}/environments/${a}/test/personas`,{method:"GET",headers:{Authorization:`Bearer ${t.token}`}});if(!s.ok){let u=(await s.json().catch(()=>null))?.error;throw new C(u?.message??s.statusText,s.status,{code:u?.code,details:u?.details})}return s.json()},revokePersona:async(o,a,s)=>{let c=await fetch(`${t.apiUrl}/portal/products/${o}/environments/${a}/test/personas/${s}`,{method:"DELETE",headers:{Authorization:`Bearer ${t.token}`}});if(!c.ok){let l=(await c.json().catch(()=>null))?.error;throw new C(l?.message??c.statusText,c.status,{code:l?.code,details:l?.details})}return c.json()},getProductConfig:(o,a)=>n("GET",qt(`/products/${o}/config`,{format:"json",env:a?.env,state:a?.state})),updateProductConfigDraft:(o,a,s)=>n("PATCH",`/products/${o}/config/draft`,{spec:a,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,baseDraftHash:s?.baseDraftHash}),validateProductConfigDraft:(o,a)=>n("POST",`/products/${o}/config/draft/validate`,{env:a?.env}),applyProductConfig:(o,a)=>n("POST",`/products/${o}/config/apply`,{spec:a?.spec,dryRun:a?.dryRun===!0,env:a?.env,branch:a?.branch,source:a?.source,draftHash:a?.draftHash}),compileProduct:(o,a)=>n("POST",`/products/${o}/compile`,Tk(a)),validateManagedRepo:(o,a)=>n("POST",`/management/products/${o}/repo/validate`,{files:a.files,branch:a.branch}),explainDenial:o=>n("GET",`/agent/v1/explain-denial/${encodeURIComponent(o)}`),listCapabilities:()=>n("GET","/agent/v1/capabilities")}}function Tk(t){let e={};return t?.branch&&(e.branch=t.branch),t?.dryRun&&(e.dryRun=!0),t?.env&&(e.env=t.env),Object.keys(e).length>0?e:void 0}import{existsSync as ci,mkdirSync as Ak,readFileSync as Gp,writeFileSync as Hp}from"node:fs";import{homedir as Nk}from"node:os";import{join as bs}from"node:path";var Jp="https://core.farthershore.com";var ui=bs(Nk(),".farthershore"),Wp=bs(ui,"config.json"),qn=bs(ui,"credentials.json");function Yp(t){ci(t)||Ak(t,{recursive:!0,mode:448})}var _s={apiUrl:Jp};function Xp(){if(Yp(ui),!ci(Wp))return _s;try{let t=JSON.parse(Gp(Wp,"utf-8"));return{..._s,...t}}catch{return _s}}function li(){if(!ci(qn))return null;try{return JSON.parse(Gp(qn,"utf-8"))}catch{return null}}function Qp(t){Yp(ui),Hp(qn,JSON.stringify(t,null,2)+`
167
- `,{mode:384})}function eg(){ci(qn)&&Hp(qn,"{}")}function tg(t){if(t)return t;let e=process.env.FARTHERSHORE_TOKEN;if(e)return e;let r=li();if(r?.token)return r.token;throw new C("Not authenticated. Run `farthershore auth login` or set FARTHERSHORE_TOKEN environment variable.")}var $p=ii(uo(),1);import{readFileSync as _p,existsSync as bp,readdirSync as iT,statSync as oT}from"node:fs";import{execSync as aT}from"node:child_process";import{resolve as yp}from"node:path";var f={};We(f,{$brand:()=>nu,$input:()=>wd,$output:()=>kd,NEVER:()=>tu,TimePrecision:()=>Od,ZodAny:()=>vm,ZodArray:()=>$m,ZodBase64:()=>Ua,ZodBase64URL:()=>Ra,ZodBigInt:()=>Nn,ZodBigIntFormat:()=>Ma,ZodBoolean:()=>An,ZodCIDRv4:()=>ja,ZodCIDRv6:()=>Da,ZodCUID:()=>Pa,ZodCUID2:()=>Ea,ZodCatch:()=>qm,ZodCodec:()=>Yr,ZodCustom:()=>Xr,ZodCustomStringFormat:()=>En,ZodDate:()=>Kr,ZodDefault:()=>Um,ZodDiscriminatedUnion:()=>wm,ZodE164:()=>La,ZodEmail:()=>Sa,ZodEmoji:()=>Ia,ZodEnum:()=>On,ZodError:()=>DP,ZodExactOptional:()=>Cm,ZodFile:()=>Nm,ZodFirstPartyTypeKind:()=>np,ZodFunction:()=>Qm,ZodGUID:()=>Mr,ZodIPv4:()=>za,ZodIPv6:()=>Ca,ZodISODate:()=>_a,ZodISODateTime:()=>ya,ZodISODuration:()=>$a,ZodISOTime:()=>ba,ZodIntersection:()=>xm,ZodIssueCode:()=>RP,ZodJWT:()=>Za,ZodKSUID:()=>Na,ZodLazy:()=>Hm,ZodLiteral:()=>Am,ZodMAC:()=>lm,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Oa,ZodNever:()=>_m,ZodNonOptional:()=>Ja,ZodNull:()=>gm,ZodNullable:()=>Dm,ZodNumber:()=>Tn,ZodNumberFormat:()=>Lt,ZodObject:()=>Wr,ZodOptional:()=>Ka,ZodPipe:()=>Hr,ZodPrefault:()=>Lm,ZodPreprocess:()=>Km,ZodPromise:()=>Xm,ZodReadonly:()=>Jm,ZodRealError:()=>ye,ZodRecord:()=>In,ZodSet:()=>Tm,ZodString:()=>Pn,ZodStringFormat:()=>K,ZodSuccess:()=>Fm,ZodSymbol:()=>mm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>zm,ZodTuple:()=>Im,ZodType:()=>j,ZodULID:()=>Ta,ZodURL:()=>Br,ZodUUID:()=>Ve,ZodUndefined:()=>pm,ZodUnion:()=>Gr,ZodUnknown:()=>ym,ZodVoid:()=>bm,ZodXID:()=>Aa,ZodXor:()=>km,_ZodString:()=>xa,_default:()=>Rm,_function:()=>Ab,any:()=>cb,array:()=>Jr,base64:()=>B_,base64url:()=>K_,bigint:()=>rb,boolean:()=>fm,catch:()=>Vm,check:()=>Nb,cidrv4:()=>q_,cidrv6:()=>V_,clone:()=>ue,codec:()=>Ob,coerce:()=>rp,config:()=>H,core:()=>et,cuid:()=>j_,cuid2:()=>D_,custom:()=>zb,date:()=>lb,decode:()=>rm,decodeAsync:()=>om,describe:()=>Cb,discriminatedUnion:()=>hb,e164:()=>J_,email:()=>S_,emoji:()=>z_,encode:()=>nm,encodeAsync:()=>im,endsWith:()=>hn,enum:()=>Va,exactOptional:()=>jm,file:()=>wb,flattenError:()=>Or,float32:()=>Q_,float64:()=>eb,formatError:()=>Pr,fromJSONSchema:()=>Mb,function:()=>Ab,getErrorMap:()=>ZP,globalRegistry:()=>se,gt:()=>Fe,gte:()=>de,guid:()=>I_,hash:()=>X_,hex:()=>Y_,hostname:()=>H_,httpUrl:()=>N_,includes:()=>pn,instanceof:()=>Db,int:()=>ka,int32:()=>tb,int64:()=>ib,intersection:()=>Sm,invertCodec:()=>Pb,ipv4:()=>Z_,ipv6:()=>F_,iso:()=>Sn,json:()=>Rb,jwt:()=>W_,keyof:()=>db,ksuid:()=>L_,lazy:()=>Ym,length:()=>Ut,literal:()=>kb,locales:()=>Dr,looseObject:()=>pb,looseRecord:()=>yb,lowercase:()=>fn,lt:()=>Me,lte:()=>$e,mac:()=>M_,map:()=>_b,maxLength:()=>Dt,maxSize:()=>_t,meta:()=>jb,mime:()=>vn,minLength:()=>Qe,minSize:()=>qe,multipleOf:()=>yt,nan:()=>Ib,nanoid:()=>C_,nativeEnum:()=>$b,negative:()=>ca,never:()=>Fa,nonnegative:()=>la,nonoptional:()=>Mm,nonpositive:()=>ua,normalize:()=>yn,null:()=>hm,nullable:()=>qr,nullish:()=>xb,number:()=>dm,object:()=>fb,optional:()=>Fr,overwrite:()=>ze,parse:()=>Xf,parseAsync:()=>Qf,partialRecord:()=>vb,pipe:()=>wa,positive:()=>sa,prefault:()=>Zm,preprocess:()=>Lb,prettifyError:()=>gu,promise:()=>Tb,property:()=>da,readonly:()=>Wm,record:()=>Pm,refine:()=>ep,regex:()=>dn,regexes:()=>be,registry:()=>Zo,safeDecode:()=>sm,safeDecodeAsync:()=>um,safeEncode:()=>am,safeEncodeAsync:()=>cm,safeParse:()=>em,safeParseAsync:()=>tm,set:()=>bb,setErrorMap:()=>LP,size:()=>jt,slugify:()=>kn,startsWith:()=>gn,strictObject:()=>mb,string:()=>Zr,stringFormat:()=>G_,stringbool:()=>Ub,success:()=>Sb,superRefine:()=>tp,symbol:()=>ab,templateLiteral:()=>Eb,toJSONSchema:()=>ga,toLowerCase:()=>bn,toUpperCase:()=>$n,transform:()=>Ba,treeifyError:()=>pu,trim:()=>_n,tuple:()=>Om,uint32:()=>nb,uint64:()=>ob,ulid:()=>U_,undefined:()=>sb,union:()=>qa,unknown:()=>Rt,uppercase:()=>mn,url:()=>A_,util:()=>k,uuid:()=>O_,uuidv4:()=>P_,uuidv6:()=>E_,uuidv7:()=>T_,void:()=>ub,xid:()=>R_,xor:()=>gb});var et={};We(et,{$ZodAny:()=>Vl,$ZodArray:()=>Gl,$ZodAsyncError:()=>Ne,$ZodBase64:()=>Cl,$ZodBase64URL:()=>jl,$ZodBigInt:()=>No,$ZodBigIntFormat:()=>Zl,$ZodBoolean:()=>Nr,$ZodCIDRv4:()=>Al,$ZodCIDRv6:()=>Nl,$ZodCUID:()=>_l,$ZodCUID2:()=>bl,$ZodCatch:()=>md,$ZodCheck:()=>J,$ZodCheckBigIntFormat:()=>Gu,$ZodCheckEndsWith:()=>sl,$ZodCheckGreaterThan:()=>Io,$ZodCheckIncludes:()=>ol,$ZodCheckLengthEquals:()=>tl,$ZodCheckLessThan:()=>So,$ZodCheckLowerCase:()=>rl,$ZodCheckMaxLength:()=>Qu,$ZodCheckMaxSize:()=>Hu,$ZodCheckMimeType:()=>ul,$ZodCheckMinLength:()=>el,$ZodCheckMinSize:()=>Yu,$ZodCheckMultipleOf:()=>Ju,$ZodCheckNumberFormat:()=>Wu,$ZodCheckOverwrite:()=>ll,$ZodCheckProperty:()=>cl,$ZodCheckRegex:()=>nl,$ZodCheckSizeEquals:()=>Xu,$ZodCheckStartsWith:()=>al,$ZodCheckStringFormat:()=>un,$ZodCheckUpperCase:()=>il,$ZodCodec:()=>Cr,$ZodCustom:()=>$d,$ZodCustomStringFormat:()=>Rl,$ZodDate:()=>Wl,$ZodDefault:()=>ud,$ZodDiscriminatedUnion:()=>Xl,$ZodE164:()=>Dl,$ZodEmail:()=>gl,$ZodEmoji:()=>vl,$ZodEncodeError:()=>mt,$ZodEnum:()=>rd,$ZodError:()=>Ir,$ZodExactOptional:()=>sd,$ZodFile:()=>od,$ZodFunction:()=>yd,$ZodGUID:()=>ml,$ZodIPv4:()=>Pl,$ZodIPv6:()=>El,$ZodISODate:()=>Sl,$ZodISODateTime:()=>xl,$ZodISODuration:()=>Ol,$ZodISOTime:()=>Il,$ZodIntersection:()=>Ql,$ZodJWT:()=>Ul,$ZodKSUID:()=>wl,$ZodLazy:()=>bd,$ZodLiteral:()=>id,$ZodMAC:()=>Tl,$ZodMap:()=>td,$ZodNaN:()=>pd,$ZodNanoID:()=>yl,$ZodNever:()=>Kl,$ZodNonOptional:()=>dd,$ZodNull:()=>ql,$ZodNullable:()=>cd,$ZodNumber:()=>Ao,$ZodNumberFormat:()=>Ll,$ZodObject:()=>by,$ZodObjectJIT:()=>Hl,$ZodOptional:()=>Co,$ZodPipe:()=>jo,$ZodPrefault:()=>ld,$ZodPreprocess:()=>gd,$ZodPromise:()=>_d,$ZodReadonly:()=>hd,$ZodRealError:()=>ve,$ZodRecord:()=>ed,$ZodRegistry:()=>Lo,$ZodSet:()=>nd,$ZodString:()=>Ct,$ZodStringFormat:()=>B,$ZodSuccess:()=>fd,$ZodSymbol:()=>Ml,$ZodTemplateLiteral:()=>vd,$ZodTransform:()=>ad,$ZodTuple:()=>zo,$ZodType:()=>N,$ZodULID:()=>$l,$ZodURL:()=>hl,$ZodUUID:()=>pl,$ZodUndefined:()=>Fl,$ZodUnion:()=>zr,$ZodUnknown:()=>Bl,$ZodVoid:()=>Jl,$ZodXID:()=>kl,$ZodXor:()=>Yl,$brand:()=>nu,$constructor:()=>g,$input:()=>wd,$output:()=>kd,Doc:()=>Ar,JSONSchema:()=>k_,JSONSchemaGenerator:()=>ha,NEVER:()=>tu,TimePrecision:()=>Od,_any:()=>Wd,_array:()=>tf,_base64:()=>ra,_base64url:()=>ia,_bigint:()=>Md,_boolean:()=>Ld,_catch:()=>PP,_check:()=>$_,_cidrv4:()=>ta,_cidrv6:()=>na,_coercedBigint:()=>Fd,_coercedBoolean:()=>Zd,_coercedDate:()=>Qd,_coercedNumber:()=>zd,_coercedString:()=>Sd,_cuid:()=>Wo,_cuid2:()=>Go,_custom:()=>rf,_date:()=>Xd,_decode:()=>ho,_decodeAsync:()=>yo,_default:()=>SP,_discriminatedUnion:()=>mP,_e164:()=>oa,_email:()=>Mo,_emoji:()=>Ko,_encode:()=>go,_encodeAsync:()=>vo,_endsWith:()=>hn,_enum:()=>_P,_file:()=>nf,_float32:()=>jd,_float64:()=>Dd,_gt:()=>Fe,_gte:()=>de,_guid:()=>Ur,_includes:()=>pn,_int:()=>Cd,_int32:()=>Ud,_int64:()=>qd,_intersection:()=>pP,_ipv4:()=>Qo,_ipv6:()=>ea,_isoDate:()=>Ed,_isoDateTime:()=>Pd,_isoDuration:()=>Ad,_isoTime:()=>Td,_jwt:()=>aa,_ksuid:()=>Xo,_lazy:()=>NP,_length:()=>Ut,_literal:()=>$P,_lowercase:()=>fn,_lt:()=>Me,_lte:()=>$e,_mac:()=>Id,_map:()=>vP,_max:()=>$e,_maxLength:()=>Dt,_maxSize:()=>_t,_mime:()=>vn,_min:()=>de,_minLength:()=>Qe,_minSize:()=>qe,_multipleOf:()=>yt,_nan:()=>ef,_nanoid:()=>Jo,_nativeEnum:()=>bP,_negative:()=>ca,_never:()=>Hd,_nonnegative:()=>la,_nonoptional:()=>IP,_nonpositive:()=>ua,_normalize:()=>yn,_null:()=>Jd,_nullable:()=>xP,_number:()=>Nd,_optional:()=>wP,_overwrite:()=>ze,_parse:()=>on,_parseAsync:()=>an,_pipe:()=>EP,_positive:()=>sa,_promise:()=>zP,_property:()=>da,_readonly:()=>TP,_record:()=>hP,_refine:()=>of,_regex:()=>dn,_safeDecode:()=>bo,_safeDecodeAsync:()=>ko,_safeEncode:()=>_o,_safeEncodeAsync:()=>$o,_safeParse:()=>sn,_safeParseAsync:()=>cn,_set:()=>yP,_size:()=>jt,_slugify:()=>kn,_startsWith:()=>gn,_string:()=>xd,_stringFormat:()=>wn,_stringbool:()=>uf,_success:()=>OP,_superRefine:()=>af,_symbol:()=>Bd,_templateLiteral:()=>AP,_toLowerCase:()=>bn,_toUpperCase:()=>$n,_transform:()=>kP,_trim:()=>_n,_tuple:()=>gP,_uint32:()=>Rd,_uint64:()=>Vd,_ulid:()=>Ho,_undefined:()=>Kd,_union:()=>dP,_unknown:()=>Gd,_uppercase:()=>mn,_url:()=>Rr,_uuid:()=>Fo,_uuidv4:()=>qo,_uuidv6:()=>Vo,_uuidv7:()=>Bo,_void:()=>Yd,_xid:()=>Yo,_xor:()=>fP,clone:()=>ue,config:()=>H,createStandardJSONSchemaMethod:()=>xn,createToJSONSchemaMethod:()=>lf,decode:()=>zO,decodeAsync:()=>jO,describe:()=>sf,encode:()=>NO,encodeAsync:()=>CO,extractDefs:()=>$t,finalize:()=>kt,flattenError:()=>Or,formatError:()=>Pr,globalConfig:()=>At,globalRegistry:()=>se,initializeContext:()=>bt,isValidBase64:()=>zl,isValidBase64URL:()=>hy,isValidJWT:()=>vy,locales:()=>Dr,meta:()=>cf,parse:()=>mo,parseAsync:()=>po,prettifyError:()=>gu,process:()=>q,regexes:()=>be,registry:()=>Zo,safeDecode:()=>UO,safeDecodeAsync:()=>LO,safeEncode:()=>DO,safeEncodeAsync:()=>RO,safeParse:()=>hu,safeParseAsync:()=>vu,toDotPath:()=>Gv,toJSONSchema:()=>ga,treeifyError:()=>pu,util:()=>k,version:()=>dl});var Vv,tu=Object.freeze({status:"aborted"});function g(t,e,r){function i(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),e(s,c);let u=a.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){let m=l[d];m in s||(s[m]=u[m].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:t});function a(s){var c;let u=r?.Parent?new o:this;i(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var nu=Symbol("zod_brand"),Ne=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},mt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Vv=globalThis).__zod_globalConfig??(Vv.__zod_globalConfig={});var At=globalThis.__zod_globalConfig;function H(t){return t&&Object.assign(At,t),At}var k={};We(k,{BIGINT_FORMAT_RANGES:()=>fu,Class:()=>iu,NUMBER_FORMAT_RANGES:()=>du,aborted:()=>vt,allowsEval:()=>su,assert:()=>lO,assertEqual:()=>aO,assertIs:()=>cO,assertNever:()=>uO,assertNotEqual:()=>sO,assignProp:()=>gt,base64ToUint8Array:()=>Kv,base64urlToUint8Array:()=>OO,cached:()=>nn,captureStackTrace:()=>fo,cleanEnum:()=>IO,cleanRegex:()=>kr,clone:()=>ue,cloneDef:()=>fO,createTransparentProxy:()=>yO,defineLazy:()=>D,esc:()=>lo,escapeRegex:()=>Ie,explicitlyAborted:()=>mu,extend:()=>$O,finalizeIssue:()=>le,floatSafeRemainder:()=>ou,getElementAtPath:()=>mO,getEnumValues:()=>$r,getLengthableOrigin:()=>Sr,getParsedType:()=>vO,getSizableOrigin:()=>xr,hexToUint8Array:()=>EO,isObject:()=>Nt,isPlainObject:()=>ht,issue:()=>rn,joinValues:()=>v,jsonStringifyReplacer:()=>tn,merge:()=>wO,mergeDefs:()=>Xe,normalizeParams:()=>w,nullish:()=>pt,numKeys:()=>hO,objectClone:()=>dO,omit:()=>bO,optionalKeys:()=>lu,parsedType:()=>$,partial:()=>xO,pick:()=>_O,prefixIssues:()=>he,primitiveTypes:()=>uu,promiseAllObject:()=>pO,propertyKeyTypes:()=>wr,randomString:()=>gO,required:()=>SO,safeExtend:()=>kO,shallowClone:()=>cu,slugify:()=>au,stringifyPrimitive:()=>b,uint8ArrayToBase64:()=>Jv,uint8ArrayToBase64url:()=>PO,uint8ArrayToHex:()=>TO,unwrapMessage:()=>br});function aO(t){return t}function sO(t){return t}function cO(t){}function uO(t){throw new Error("Unexpected value in exhaustive check")}function lO(t){}function $r(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function v(t,e="|"){return t.map(r=>b(r)).join(e)}function tn(t,e){return typeof e=="bigint"?e.toString():e}function nn(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function pt(t){return t==null}function kr(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function ou(t,e){let r=t/e,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var Bv=Symbol("evaluating");function D(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==Bv)return i===void 0&&(i=Bv,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function dO(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function gt(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Xe(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function fO(t){return Xe(t._zod.def)}function mO(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function pO(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function gO(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function lo(t){return JSON.stringify(t)}function au(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var fo="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Nt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var su=nn(()=>{if(At.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function ht(t){if(Nt(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Nt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function cu(t){return ht(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function hO(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var vO=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},wr=new Set(["string","number","symbol"]),uu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ie(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ue(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function w(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function yO(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function b(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function lu(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var du={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]},fu={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function _O(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Xe(t._zod.def,{get shape(){let a={};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(a[s]=r.shape[s])}return gt(this,"shape",a),a},checks:[]});return ue(t,o)}function bO(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Xe(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete a[s]}return gt(this,"shape",a),a},checks:[]});return ue(t,o)}function $O(t,e){if(!ht(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let o=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Xe(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return gt(this,"shape",o),o}});return ue(t,n)}function kO(t,e){if(!ht(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Xe(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return gt(this,"shape",i),i}});return ue(t,r)}function wO(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Xe(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return gt(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ue(t,r)}function xO(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Xe(e._zod.def,{get shape(){let s=e._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=t?new t({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=t?new t({type:"optional",innerType:s[u]}):s[u];return gt(this,"shape",c),c},checks:[]});return ue(e,a)}function SO(t,e,r){let i=Xe(e._zod.def,{get shape(){let n=e._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new t({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new t({type:"nonoptional",innerType:n[a]});return gt(this,"shape",o),o}});return ue(e,i)}function vt(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function mu(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue===!1)return!0;return!1}function he(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function br(t){return typeof t=="string"?t:t?.message}function le(t,e,r){let i=t.message?t.message:br(t.inst?._zod.def?.error?.(t))??br(e?.error?.(t))??br(r.customError?.(t))??br(r.localeError?.(t))??"Invalid input",{inst:n,continue:o,input:a,...s}=t;return s.path??(s.path=[]),s.message=i,e?.reportInput&&(s.input=a),s}function xr(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Sr(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function $(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function rn(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function IO(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Kv(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function Jv(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function OO(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return Kv(e+r)}function PO(t){return Jv(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function EO(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function TO(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var iu=class{constructor(...e){}};var Wv=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,tn,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Ir=g("$ZodError",Wv),ve=g("$ZodError",Wv,{Parent:Error});function Or(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Pr(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(e(a));else{let c=r,u=0;for(;u<s.length;){let l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(e(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return i(t),r}function pu(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){r.errors.push(e(c));continue}let l=r,d=0;for(;d<u.length;){let m=u[d],p=d===u.length-1;typeof m=="string"?(l.properties??(l.properties={}),(a=l.properties)[m]??(a[m]={errors:[]}),l=l.properties[m]):(l.items??(l.items=[]),(s=l.items)[m]??(s[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(e(c)),d++}}};return i(t),r}function Gv(t){let e=[],r=t.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function gu(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${Gv(i.path)}`);return e.join(`
168
- `)}var on=t=>(e,r,i,n)=>{let o=i?{...i,async:!1}:{async:!1},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Ne;if(a.issues.length){let s=new(n?.Err??t)(a.issues.map(c=>le(c,o,H())));throw fo(s,n?.callee),s}return a.value},mo=on(ve),an=t=>async(e,r,i,n)=>{let o=i?{...i,async:!0}:{async:!0},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??t)(a.issues.map(c=>le(c,o,H())));throw fo(s,n?.callee),s}return a.value},po=an(ve),sn=t=>(e,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Ne;return o.issues.length?{success:!1,error:new(t??Ir)(o.issues.map(a=>le(a,n,H())))}:{success:!0,data:o.value}},hu=sn(ve),cn=t=>async(e,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(a=>le(a,n,H())))}:{success:!0,data:o.value}},vu=cn(ve),go=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return on(t)(e,r,n)},NO=go(ve),ho=t=>(e,r,i)=>on(t)(e,r,i),zO=ho(ve),vo=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return an(t)(e,r,n)},CO=vo(ve),yo=t=>async(e,r,i)=>an(t)(e,r,i),jO=yo(ve),_o=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return sn(t)(e,r,n)},DO=_o(ve),bo=t=>(e,r,i)=>sn(t)(e,r,i),UO=bo(ve),$o=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return cn(t)(e,r,n)},RO=$o(ve),ko=t=>async(e,r,i)=>cn(t)(e,r,i),LO=ko(ve);var be={};We(be,{base64:()=>zu,base64url:()=>wo,bigint:()=>Zu,boolean:()=>Fu,browserEmail:()=>JO,cidrv4:()=>Au,cidrv6:()=>Nu,cuid:()=>yu,cuid2:()=>_u,date:()=>Du,datetime:()=>Ru,domain:()=>HO,duration:()=>xu,e164:()=>ju,email:()=>Iu,emoji:()=>Ou,extendedDuration:()=>ZO,guid:()=>Su,hex:()=>YO,hostname:()=>GO,html5Email:()=>VO,httpProtocol:()=>Cu,idnEmail:()=>KO,integer:()=>Mu,ipv4:()=>Pu,ipv6:()=>Eu,ksuid:()=>ku,lowercase:()=>Bu,mac:()=>Tu,md5_base64:()=>QO,md5_base64url:()=>e0,md5_hex:()=>XO,nanoid:()=>wu,null:()=>qu,number:()=>xo,rfc5322Email:()=>BO,sha1_base64:()=>n0,sha1_base64url:()=>r0,sha1_hex:()=>t0,sha256_base64:()=>o0,sha256_base64url:()=>a0,sha256_hex:()=>i0,sha384_base64:()=>c0,sha384_base64url:()=>u0,sha384_hex:()=>s0,sha512_base64:()=>d0,sha512_base64url:()=>f0,sha512_hex:()=>l0,string:()=>Lu,time:()=>Uu,ulid:()=>bu,undefined:()=>Vu,unicodeEmail:()=>Hv,uppercase:()=>Ku,uuid:()=>zt,uuid4:()=>MO,uuid6:()=>FO,uuid7:()=>qO,xid:()=>$u});var yu=/^[cC][0-9a-z]{6,}$/,_u=/^[0-9a-z]+$/,bu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$u=/^[0-9a-vA-V]{20}$/,ku=/^[A-Za-z0-9]{27}$/,wu=/^[a-zA-Z0-9_-]{21}$/,xu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ZO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Su=/^([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})$/,zt=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,MO=zt(4),FO=zt(6),qO=zt(7),Iu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,VO=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,BO=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Hv=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,KO=Hv,JO=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,WO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ou(){return new RegExp(WO,"u")}var Pu=/^(?:(?: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])$/,Eu=/^(([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}|:))$/,Tu=t=>{let e=Ie(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Au=/^((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])$/,Nu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wo=/^[A-Za-z0-9_-]*$/,GO=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,HO=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Cu=/^https?$/,ju=/^\+[1-9]\d{6,14}$/,Yv="(?:(?:\\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])))",Du=new RegExp(`^${Yv}$`);function Xv(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Uu(t){return new RegExp(`^${Xv(t)}$`)}function Ru(t){let e=Xv({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${r.join("|")})`;return new RegExp(`^${Yv}T(?:${i})$`)}var Lu=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Zu=/^-?\d+n?$/,Mu=/^-?\d+$/,xo=/^-?\d+(?:\.\d+)?$/,Fu=/^(?:true|false)$/i,qu=/^null$/i;var Vu=/^undefined$/i;var Bu=/^[^A-Z]*$/,Ku=/^[^a-z]*$/,YO=/^[0-9a-fA-F]*$/;function Er(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Tr(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var XO=/^[0-9a-fA-F]{32}$/,QO=Er(22,"=="),e0=Tr(22),t0=/^[0-9a-fA-F]{40}$/,n0=Er(27,"="),r0=Tr(27),i0=/^[0-9a-fA-F]{64}$/,o0=Er(43,"="),a0=Tr(43),s0=/^[0-9a-fA-F]{96}$/,c0=Er(64,""),u0=Tr(64),l0=/^[0-9a-fA-F]{128}$/,d0=Er(86,"=="),f0=Tr(86);var J=g("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),ey={number:"number",bigint:"bigint",object:"date"},So=g("$ZodCheckLessThan",(t,e)=>{J.init(t,e);let r=ey[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Io=g("$ZodCheckGreaterThan",(t,e)=>{J.init(t,e);let r=ey[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Ju=g("$ZodCheckMultipleOf",(t,e)=>{J.init(t,e),t._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):ou(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),Wu=g("$ZodCheckNumberFormat",(t,e)=>{J.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=du[e.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=e.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Mu)}),t._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),Gu=g("$ZodCheckBigIntFormat",(t,e)=>{J.init(t,e);let[r,i]=fu[e.format];t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,o.minimum=r,o.maximum=i}),t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),Hu=g("$ZodCheckMaxSize",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:xr(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Yu=g("$ZodCheckMinSize",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:xr(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Xu=g("$ZodCheckSizeEquals",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let a=o>e.size;i.issues.push({origin:xr(n),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Qu=g("$ZodCheckMaxLength",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;if(n.length<=e.maximum)return;let a=Sr(n);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),el=g("$ZodCheckMinLength",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;if(n.length>=e.minimum)return;let a=Sr(n);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),tl=g("$ZodCheckLengthEquals",(t,e)=>{var r;J.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!pt(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=i=>{let n=i.value,o=n.length;if(o===e.length)return;let a=Sr(n),s=o>e.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),un=g("$ZodCheckStringFormat",(t,e)=>{var r,i;J.init(t,e),t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),nl=g("$ZodCheckRegex",(t,e)=>{un.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),rl=g("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Bu),un.init(t,e)}),il=g("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Ku),un.init(t,e)}),ol=g("$ZodCheckIncludes",(t,e)=>{J.init(t,e);let r=Ie(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=i,t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),al=g("$ZodCheckStartsWith",(t,e)=>{J.init(t,e);let r=new RegExp(`^${Ie(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),sl=g("$ZodCheckEndsWith",(t,e)=>{J.init(t,e);let r=new RegExp(`.*${Ie(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});function Qv(t,e,r){t.issues.length&&e.issues.push(...he(r,t.issues))}var cl=g("$ZodCheckProperty",(t,e)=>{J.init(t,e),t._zod.check=r=>{let i=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>Qv(n,r,e.property));Qv(i,r,e.property)}}),ul=g("$ZodCheckMimeType",(t,e)=>{J.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=e.mime}),t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),ll=g("$ZodCheckOverwrite",(t,e)=>{J.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var Ar=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
169
- `).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let e=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new e(...r,n.join(`
170
- `))}};var dl={major:4,minor:4,patch:3};var N=g("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=dl;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let n of i)for(let o of n._zod.onattach)o(t);if(i.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=(a,s,c)=>{let u=vt(a),l;for(let d of s){if(d._zod.def.when){if(mu(a)||!d._zod.def.when(a))continue}else if(u)continue;let m=a.issues.length,p=d._zod.check(a);if(p instanceof Promise&&c?.async===!1)throw new Ne;if(l||p instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await p,a.issues.length!==m&&(u||(u=vt(a,m)))});else{if(a.issues.length===m)continue;u||(u=vt(a,m))}}return l?l.then(()=>a):a},o=(a,s,c)=>{if(vt(a))return a.aborted=!0,a;let u=n(s,i,c);if(u instanceof Promise){if(c.async===!1)throw new Ne;return u.then(l=>t._zod.parse(l,c))}return t._zod.parse(u,c)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let u=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,a,s)):o(u,a,s)}let c=t._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Ne;return c.then(u=>n(u,i,s))}return n(c,i,s)}}D(t,"~standard",()=>({validate:n=>{try{let o=hu(t,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return vu(t,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ct=g("$ZodString",(t,e)=>{N.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Lu(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),B=g("$ZodStringFormat",(t,e)=>{un.init(t,e),Ct.init(t,e)}),ml=g("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Su),B.init(t,e)}),pl=g("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=zt(i))}else e.pattern??(e.pattern=zt());B.init(t,e)}),gl=g("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Iu),B.init(t,e)}),hl=g("$ZodURL",(t,e)=>{B.init(t,e),t._zod.check=r=>{try{let i=r.value.trim();if(!e.normalize&&e.protocol?.source===Cu.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:t,continue:!e.abort});return}let n=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),vl=g("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Ou()),B.init(t,e)}),yl=g("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=wu),B.init(t,e)}),_l=g("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=yu),B.init(t,e)}),bl=g("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=_u),B.init(t,e)}),$l=g("$ZodULID",(t,e)=>{e.pattern??(e.pattern=bu),B.init(t,e)}),kl=g("$ZodXID",(t,e)=>{e.pattern??(e.pattern=$u),B.init(t,e)}),wl=g("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=ku),B.init(t,e)}),xl=g("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Ru(e)),B.init(t,e)}),Sl=g("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Du),B.init(t,e)}),Il=g("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Uu(e)),B.init(t,e)}),Ol=g("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=xu),B.init(t,e)}),Pl=g("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Pu),B.init(t,e),t._zod.bag.format="ipv4"}),El=g("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Eu),B.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Tl=g("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Tu(e.delimiter)),B.init(t,e),t._zod.bag.format="mac"}),Al=g("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Au),B.init(t,e)}),Nl=g("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Nu),B.init(t,e),t._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function zl(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Cl=g("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=zu),B.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{zl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function hy(t){if(!wo.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return zl(r)}var jl=g("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=wo),B.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{hy(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Dl=g("$ZodE164",(t,e)=>{e.pattern??(e.pattern=ju),B.init(t,e)});function vy(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}var Ul=g("$ZodJWT",(t,e)=>{B.init(t,e),t._zod.check=r=>{vy(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),Rl=g("$ZodCustomStringFormat",(t,e)=>{B.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),Ao=g("$ZodNumber",(t,e)=>{N.init(t,e),t._zod.pattern=t._zod.bag.pattern??xo,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),Ll=g("$ZodNumberFormat",(t,e)=>{Wu.init(t,e),Ao.init(t,e)}),Nr=g("$ZodBoolean",(t,e)=>{N.init(t,e),t._zod.pattern=Fu,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),No=g("$ZodBigInt",(t,e)=>{N.init(t,e),t._zod.pattern=Zu,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),Zl=g("$ZodBigIntFormat",(t,e)=>{Gu.init(t,e),No.init(t,e)}),Ml=g("$ZodSymbol",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),Fl=g("$ZodUndefined",(t,e)=>{N.init(t,e),t._zod.pattern=Vu,t._zod.values=new Set([void 0]),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),ql=g("$ZodNull",(t,e)=>{N.init(t,e),t._zod.pattern=qu,t._zod.values=new Set([null]),t._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),Vl=g("$ZodAny",(t,e)=>{N.init(t,e),t._zod.parse=r=>r}),Bl=g("$ZodUnknown",(t,e)=>{N.init(t,e),t._zod.parse=r=>r}),Kl=g("$ZodNever",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),Jl=g("$ZodVoid",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),Wl=g("$ZodDate",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:t}),r}});function ny(t,e,r){t.issues.length&&e.issues.push(...he(r,t.issues)),e.value[r]=t.value}var Gl=g("$ZodArray",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],c=e.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(u=>ny(u,r,a))):ny(c,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function To(t,e,r,i,n,o){let a=r in i;if(t.issues.length){if(n&&o&&!a)return;e.issues.push(...he(r,t.issues))}if(!a&&!n){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}t.value===void 0?a&&(e.value[r]=void 0):e.value[r]=t.value}function yy(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=lu(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function _y(t,e,r,i,n,o){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",d=c.optout==="optional";for(let m in e){if(m==="__proto__"||s.has(m))continue;if(u==="never"){a.push(m);continue}let p=c.run({value:e[m],issues:[]},i);p instanceof Promise?t.push(p.then(y=>To(y,r,m,e,l,d))):To(p,r,m,e,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o}),t.length?Promise.all(t).then(()=>r):r}var by=g("$ZodObject",(t,e)=>{if(N.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let s=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...s};return Object.defineProperty(e,"shape",{value:c}),c}})}let i=nn(()=>yy(e));D(t._zod,"propValues",()=>{let s=e.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let n=Nt,o=e.catchall,a;t._zod.parse=(s,c)=>{a??(a=i.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),s;s.value={};let l=[],d=a.shape;for(let m of a.keys){let p=d[m],y=p._zod.optin==="optional",h=p._zod.optout==="optional",_=p._zod.run({value:u[m],issues:[]},c);_ instanceof Promise?l.push(_.then(O=>To(O,s,m,u,y,h))):To(_,s,m,u,y,h)}return o?_y(l,u,s,c,i.value,t):l.length?Promise.all(l).then(()=>s):s}}),Hl=g("$ZodObjectJIT",(t,e)=>{by.init(t,e);let r=t._zod.parse,i=nn(()=>yy(e)),n=m=>{let p=new Ar(["shape","payload","ctx"]),y=i.value,h=A=>{let I=lo(A);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};p.write("const input = payload.value;");let _=Object.create(null),O=0;for(let A of y.keys)_[A]=`key_${O++}`;p.write("const newResult = {};");for(let A of y.keys){let I=_[A],P=lo(A),z=m[A],V=z?._zod?.optin==="optional",E=z?._zod?.optout==="optional";p.write(`const ${I} = ${h(A)};`),V&&E?p.write(`
171
- if (${I}.issues.length) {
172
- if (${P} in input) {
173
- payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
31
+ `)+n,e=o+1,o=t.indexOf(`
32
+ `,e)}while(o!==-1);return i+=t.slice(e),i}var{stdout:sd,stderr:cd}=id,ro=Symbol("GENERATOR"),tt=Symbol("STYLER"),Vt=Symbol("IS_EMPTY"),ud=["ansi","ansi","ansi256","ansi16m"],rt=Object.create(null),wh=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=sd?sd.level:0;t.level=r.level===void 0?n:r.level};var Ih=t=>{let r=(...n)=>n.join(" ");return wh(r,t),Object.setPrototypeOf(r,Bt.prototype),r};function Bt(t){return Ih(t)}Object.setPrototypeOf(Bt.prototype,Function.prototype);for(let[t,r]of Object.entries(ce))rt[t]={get(){let n=Fr(this,io(r.open,r.close,this[tt]),this[Vt]);return Object.defineProperty(this,t,{value:n}),n}};rt.visible={get(){let t=Fr(this,this[tt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var no=(t,r,n,...o)=>t==="rgb"?r==="ansi16m"?ce[n].ansi16m(...o):r==="ansi256"?ce[n].ansi256(ce.rgbToAnsi256(...o)):ce[n].ansi(ce.rgbToAnsi(...o)):t==="hex"?no("rgb",r,n,...ce.hexToRgb(...o)):ce[n][t](...o),zh=["rgb","hex","ansi256"];for(let t of zh){rt[t]={get(){let{level:n}=this;return function(...o){let e=io(no(t,ud[n],"color",...o),ce.color.close,this[tt]);return Fr(this,e,this[Vt])}}};let r="bg"+t[0].toUpperCase()+t.slice(1);rt[r]={get(){let{level:n}=this;return function(...o){let e=io(no(t,ud[n],"bgColor",...o),ce.bgColor.close,this[tt]);return Fr(this,e,this[Vt])}}}}var Oh=Object.defineProperties(()=>{},{...rt,level:{enumerable:!0,get(){return this[ro].level},set(t){this[ro].level=t}}}),io=(t,r,n)=>{let o,e;return n===void 0?(o=t,e=r):(o=n.openAll+t,e=r+n.closeAll),{open:t,close:r,openAll:o,closeAll:e,parent:n}},Fr=(t,r,n)=>{let o=(...e)=>Ph(o,e.length===1?""+e[0]:e.join(" "));return Object.setPrototypeOf(o,Oh),o[ro]=t,o[tt]=r,o[Vt]=n,o},Ph=(t,r)=>{if(t.level<=0||!r)return t[Vt]?"":r;let n=t[tt];if(n===void 0)return r;let{openAll:o,closeAll:e}=n;if(r.includes("\x1B"))for(;n!==void 0;)r=od(r,n.close,n.open),n=n.parent;let i=r.indexOf(`
33
+ `);return i!==-1&&(r=ad(r,e,o,i)),o+r+e};Object.defineProperties(Bt.prototype,rt);var Eh=Bt(),Ox=Bt({level:cd?cd.level:0});var A=Eh;function ae(t){return JSON.stringify(t,null,2)}function ke(t){console.log(A.green(`\u2713 ${t}`))}function Ve(t){console.error(A.red(`\u2717 ${t}`))}function oo(t){console.warn(A.yellow(`\u26A0 ${t}`))}function Oe(t){console.log(A.dim(t))}function ao(){return process.stdout.isTTY===!0}function Pe(t){return t==="json"||t==="table"?t:ao()?"table":"json"}var Th=new Set(["production","prod","main"]);function jh(t){return Pe(t.opts().format)}function O(t,r,n){if(jh(t)==="json"){console.log(ae(n));return}ke(r)}async function N(t,r){if(r){if(r.length===36)return r;let o=(await t.listProducts()).find(e=>e.id===r||e.name.toLowerCase()===r.toLowerCase());if(o)return o.id}throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}function ld(t){let r=t?.trim();if(r)return Th.has(r.toLowerCase())?null:r}function dd(t){let r=ld(t);if(r!==void 0)return{name:r,production:r===null};let n=ld(process.env.FARTHERSHORE_ENV);return n!==void 0?{name:n,production:n===null}:{name:null,production:!0}}function md(t){return t.production?void 0:t.name??void 0}async function Ch(t){if(!ao())throw new S("No token provided. Pass --token, set FARTHERSHORE_TOKEN, or run interactively.",void 0,{code:"AUTH_NO_TOKEN"});let r=Ah({input:process.stdin,output:process.stdout,terminal:!0});return new Promise(n=>{r.question(t,o=>{r.close(),n(o.trim())})})}function pd(t,r){let n=t.command("auth").description("Manage CLI auth credentials");n.command("login").description("Store a maker token in ~/.farthershore/credentials.json").option("--token <token>","Maker token (mk_...). Falls back to FARTHERSHORE_TOKEN env, then prompt.").action(async o=>{let e=o.token??process.env.FARTHERSHORE_TOKEN??await Ch("Maker token: ");if(!e||e.length<10)throw new S("Token looks malformed.",void 0,{code:"AUTH_INVALID_TOKEN"});let i=Zr();Kl({...i??{},token:e}),O(t,"Token stored.",{ok:!0})}),n.command("whoami").description("Show current auth identity (org, role, scopes)").action(async()=>{let e=await r().bootstrap(),i=e.memberships.find(a=>a.organization.id===e.activeOrganization.id);O(t,`Authenticated as ${e.user.id}`,{ok:!0,userId:e.user.id,clerkUserId:e.user.clerkUserId,organizationId:e.activeOrganization.id,organizationName:e.activeOrganization.name??null,organizationSlug:e.activeOrganization.slug??null,role:i?.role??null,memberships:e.memberships.map(a=>({organizationId:a.organization.id,organizationName:a.organization.name??null,role:a.role}))})}),n.command("logout").description("Clear stored credentials").action(()=>{Yl(),O(t,"Logged out.",{ok:!0})})}var Mr=[{id:"requests",label:"API requests",description:"Count every call \u2014 the right default for most APIs.",meters:[{key:"requests",display:"Requests",unit:"request"}]},{id:"ai-tokens",label:"AI tokens",description:"LLM-style token metering alongside calls. The gateway estimates tokens per request and settles actuals from an x-fs-cost-tokens response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"tokens",display:"Tokens",unit:"token"}]},{id:"credits",label:"Credits",description:"Price work in abstract credits (e.g. one image = 5 credits). Report each call's cost via an x-fs-cost-credits response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"credits",display:"Credits",unit:"credit"}]},{id:"spend",label:"Metered spend",description:"Pass-through spend in cents (OpenRouter-style) via the x-fs-cost-dollars response header. Pairs with prepaid credit wallets.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"dollars",display:"Spend",unit:"cent"}]},{id:"compute",label:"Compute time",description:"Bill milliseconds of compute, settled from an x-fs-cost-compute-ms response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"compute_ms",display:"Compute Time",unit:"ms"}]}];function fd(t){let r=t.trim().toLowerCase();return Mr.find(n=>n.id===r)}function gd(){return Mr.map(t=>t.id)}function Nh(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function Dh(t){let[r="",n,o]=t.split(":");if(!/^[a-z0-9_]+$/.test(r))throw new S(`Invalid meter key in "--meter ${t}" \u2014 keys are lowercase letters, digits, and underscores (e.g. input_tokens).`,void 0,{code:"INVALID_METER_SPEC"});return{key:r,display:n?.trim()||Nh(r),unit:o?.trim()||void 0}}function Uh(t){let r=t.meter??[];if(r.length>0&&t.meters)throw new S("Pass either --meters <template> or repeated --meter entries, not both.",void 0,{code:"CONFLICTING_METER_FLAGS"});if(r.length>0){let n=r.map(Dh);if(new Set(n.map(e=>e.key)).size!==n.length)throw new S("Duplicate meter keys in --meter flags.",void 0,{code:"INVALID_METER_SPEC"});return n}if(t.meters){let n=fd(t.meters);if(!n)throw new S(`Unknown meter template "${t.meters}". Available: ${gd().join(", ")}.`,void 0,{code:"UNKNOWN_METER_TEMPLATE"});return n.meters.map(o=>({...o}))}}function hd(t,r){let n=t.command("product").description("Product lifecycle: list, show, create, update, delete, compile");n.command("list").description("List products in the current org").action(async()=>{let e=await r().listProducts();O(t,`${e.length} product(s)`,{ok:!0,count:e.length,products:e.map(i=>({id:i.id,name:i.name,displayName:i.displayName??null,baseUrl:i.baseUrl,status:i.status??null}))})}),n.command("show <productIdOrName>").description("Show a product").option("--env <env>","Environment scope (preview branch name)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.getProduct(a,{env:e.env});O(t,`Product ${a}`,{ok:!0,product:s})}),n.command("create").description("Create a new product (and provision a GitHub repo)").requiredOption("--name <name>","Product slug (becomes the subdomain)").option("--display-name <displayName>","Human-friendly product name").option("--description <description>").option("--base-url <url>","Upstream API base URL the gateway proxies to").option("--meters <template>",`Meter template: ${Mr.map(o=>`${o.id} (${o.label})`).join(", ")}. Default: requests.`).option("--meter <key[:display[:unit]]>","Custom meter, repeatable (e.g. --meter input_tokens:'Input Tokens':token). Overrides --meters.",(o,e)=>[...e,o],[]).action(async o=>{let e=Uh(o),a=await r().initProduct({name:o.name,baseUrl:o.baseUrl,description:o.description,displayName:o.displayName,meters:e});O(t,`Product created: ${o.name}`,{ok:!0,result:a})}),n.command("update <productIdOrName>").description("Update product metadata (name, baseUrl, description, etc.)").option("--display-name <displayName>").option("--description <description>").option("--base-url <url>").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={};if(e.displayName!==void 0&&(s.displayName=e.displayName),e.description!==void 0&&(s.description=e.description),e.baseUrl!==void 0&&(s.baseUrl=e.baseUrl),Object.keys(s).length===0)throw new S("No fields to update. Pass --display-name / --base-url / --description.",void 0,{code:"PRODUCT_UPDATE_NO_FIELDS"});let u=await i.updateProduct(a,s,{env:e.env});O(t,`Product ${a} updated`,{ok:!0,product:u})}),n.command("publish <productIdOrName>").description("Publish a draft product (make it live). Requires at least one plan, a base URL, and a verified Stripe connection.").action(async o=>{let e=r(),i=await N(e,o),a=await e.publishProduct(i);O(t,`Product ${i} published`,{ok:!0,product:a})}),n.command("delete <productIdOrName>").description("Permanently delete a product. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e)=>{if(!e.yes)throw new S("Pass --yes to confirm product deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let i=r(),a=await N(i,o);await i.deleteProduct(a),O(t,`Product ${a} deleted`,{ok:!0,deleted:a})}),n.command("compile <productIdOrName>").description("Run the product compiler").option("--branch <branch>","Git branch to compile").option("--dry-run","Validate only; do not publish").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.compileProduct(a,{branch:e.branch,dryRun:e.dryRun});O(t,`Compile complete for ${a}`,{ok:!0,result:s})})}function Rh(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.environments)?r.environments:[]}function vd(t,r){let n=t.command("env").description("Manage product environments (preview branches, prod)");n.command("list <productIdOrName>").description("List environments for a product").action(async o=>{let e=r(),i=await N(e,o),a=Rh(await e.listEnvironments(i));O(t,`${a.length} environment(s)`,{ok:!0,productId:i,count:a.length,environments:a.map(s=>({id:s.id,name:s.name,branch:s.branch??null,portalHostname:s.portalHostname??null,runtimeHostname:s.runtimeHostname??null,status:s.status??null}))})}),n.command("create <productIdOrName>").description("Create a preview environment bound to a git branch").requiredOption("--name <name>","Environment name (e.g. preview, staging)").requiredOption("--branch <branch>","Git branch to track (e.g. env/preview)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.createEnvironment(a,{name:e.name,branch:e.branch});O(t,`Environment ${e.name} created`,{ok:!0,productId:a,environment:s})}),n.command("delete <productIdOrName> <envName>").description("Delete an environment by name. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e,i)=>{if(!i.yes)throw new S("Pass --yes to confirm environment deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deleteEnvironment(s,e),O(t,`Environment ${e} deleted`,{ok:!0,productId:s,deleted:e})})}var c={};$e(c,{$brand:()=>co,$input:()=>Es,$output:()=>Ps,NEVER:()=>so,TimePrecision:()=>Cs,ZodAny:()=>ku,ZodArray:()=>zu,ZodBase64:()=>hi,ZodBase64URL:()=>vi,ZodBigInt:()=>At,ZodBigIntFormat:()=>bi,ZodBoolean:()=>jt,ZodCIDRv4:()=>fi,ZodCIDRv6:()=>gi,ZodCUID:()=>si,ZodCUID2:()=>ci,ZodCatch:()=>qu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Et,ZodDate:()=>_r,ZodDefault:()=>Vu,ZodDiscriminatedUnion:()=>Pu,ZodE164:()=>_i,ZodEmail:()=>ii,ZodEmoji:()=>oi,ZodEnum:()=>Ot,ZodError:()=>gy,ZodExactOptional:()=>Lu,ZodFile:()=>Ru,ZodFirstPartyTypeKind:()=>cl,ZodFunction:()=>ol,ZodGUID:()=>pr,ZodIPv4:()=>mi,ZodIPv6:()=>pi,ZodISODate:()=>Xn,ZodISODateTime:()=>Yn,ZodISODuration:()=>ei,ZodISOTime:()=>Qn,ZodIntersection:()=>Eu,ZodIssueCode:()=>vy,ZodJWT:()=>yi,ZodKSUID:()=>di,ZodLazy:()=>rl,ZodLiteral:()=>Uu,ZodMAC:()=>hu,ZodMap:()=>Nu,ZodNaN:()=>Yu,ZodNanoID:()=>ai,ZodNever:()=>wu,ZodNonOptional:()=>Ii,ZodNull:()=>$u,ZodNullable:()=>Mu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>wi,ZodPipe:()=>xr,ZodPrefault:()=>Hu,ZodPreprocess:()=>Xu,ZodPromise:()=>il,ZodReadonly:()=>Qu,ZodRealError:()=>Q,ZodRecord:()=>zt,ZodSet:()=>Du,ZodString:()=>Pt,ZodStringFormat:()=>j,ZodSuccess:()=>Ju,ZodSymbol:()=>yu,ZodTemplateLiteral:()=>tl,ZodTransform:()=>Zu,ZodTuple:()=>ju,ZodType:()=>w,ZodULID:()=>ui,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>bu,ZodUnion:()=>$r,ZodUnknown:()=>Su,ZodVoid:()=>Iu,ZodXID:()=>li,ZodXor:()=>Ou,_ZodString:()=>ni,_default:()=>Bu,_function:()=>af,any:()=>Dp,array:()=>yr,base64:()=>yp,base64url:()=>bp,bigint:()=>Tp,boolean:()=>_u,catch:()=>Ku,check:()=>sf,cidrv4:()=>vp,cidrv6:()=>_p,clone:()=>H,codec:()=>tf,coerce:()=>ul,config:()=>Z,core:()=>Ie,cuid:()=>up,cuid2:()=>lp,custom:()=>cf,date:()=>Rp,decode:()=>uu,decodeAsync:()=>du,describe:()=>uf,discriminatedUnion:()=>Bp,e164:()=>$p,email:()=>Qm,emoji:()=>sp,encode:()=>cu,encodeAsync:()=>lu,endsWith:()=>vt,enum:()=>ki,exactOptional:()=>Fu,file:()=>Yp,flattenError:()=>Qt,float32:()=>zp,float64:()=>Op,formatError:()=>er,fromJSONSchema:()=>hf,function:()=>af,getErrorMap:()=>yy,globalRegistry:()=>V,gt:()=>ve,gte:()=>W,guid:()=>ep,hash:()=>Ip,hex:()=>wp,hostname:()=>Sp,httpUrl:()=>ap,includes:()=>gt,instanceof:()=>df,int:()=>ti,int32:()=>Pp,int64:()=>jp,intersection:()=>Tu,invertCodec:()=>rf,ipv4:()=>fp,ipv6:()=>hp,iso:()=>It,json:()=>pf,jwt:()=>xp,keyof:()=>Zp,ksuid:()=>pp,lazy:()=>nl,length:()=>Ke,literal:()=>Kp,locales:()=>cr,looseObject:()=>Mp,looseRecord:()=>Gp,lowercase:()=>pt,lt:()=>he,lte:()=>te,mac:()=>gp,map:()=>Wp,maxLength:()=>qe,maxSize:()=>De,meta:()=>lf,mime:()=>_t,minLength:()=>we,minSize:()=>_e,multipleOf:()=>Ne,nan:()=>ef,nanoid:()=>cp,nativeEnum:()=>qp,negative:()=>Fn,never:()=>$i,nonnegative:()=>Vn,nonoptional:()=>Wu,nonpositive:()=>Mn,normalize:()=>yt,null:()=>xu,nullable:()=>gr,nullish:()=>Xp,number:()=>vu,object:()=>Lp,optional:()=>fr,overwrite:()=>le,parse:()=>iu,parseAsync:()=>ou,partialRecord:()=>Hp,pipe:()=>ri,positive:()=>Ln,prefault:()=>Gu,preprocess:()=>ff,prettifyError:()=>xo,promise:()=>of,property:()=>Bn,readonly:()=>el,record:()=>Cu,refine:()=>al,regex:()=>mt,regexes:()=>ee,registry:()=>yn,safeDecode:()=>pu,safeDecodeAsync:()=>gu,safeEncode:()=>mu,safeEncodeAsync:()=>fu,safeParse:()=>au,safeParseAsync:()=>su,set:()=>Jp,setErrorMap:()=>_y,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>kp,stringbool:()=>mf,success:()=>Qp,superRefine:()=>sl,symbol:()=>Cp,templateLiteral:()=>nf,toJSONSchema:()=>Jn,toLowerCase:()=>$t,toUpperCase:()=>xt,transform:()=>Si,treeifyError:()=>$o,trim:()=>bt,tuple:()=>Au,uint32:()=>Ep,uint64:()=>Ap,ulid:()=>dp,undefined:()=>Np,union:()=>xi,unknown:()=>Ye,uppercase:()=>ft,url:()=>op,util:()=>y,uuid:()=>tp,uuidv4:()=>rp,uuidv6:()=>np,uuidv7:()=>ip,void:()=>Up,xid:()=>mp,xor:()=>Vp});var Ie={};$e(Ie,{$ZodAny:()=>Ya,$ZodArray:()=>rs,$ZodAsyncError:()=>ue,$ZodBase64:()=>Fa,$ZodBase64URL:()=>Ma,$ZodBigInt:()=>dn,$ZodBigIntFormat:()=>Wa,$ZodBoolean:()=>ir,$ZodCIDRv4:()=>Ra,$ZodCIDRv6:()=>Za,$ZodCUID:()=>Ia,$ZodCUID2:()=>za,$ZodCatch:()=>bs,$ZodCheck:()=>C,$ZodCheckBigIntFormat:()=>ra,$ZodCheckEndsWith:()=>fa,$ZodCheckGreaterThan:()=>on,$ZodCheckIncludes:()=>ma,$ZodCheckLengthEquals:()=>ca,$ZodCheckLessThan:()=>nn,$ZodCheckLowerCase:()=>la,$ZodCheckMaxLength:()=>aa,$ZodCheckMaxSize:()=>na,$ZodCheckMimeType:()=>ha,$ZodCheckMinLength:()=>sa,$ZodCheckMinSize:()=>ia,$ZodCheckMultipleOf:()=>ea,$ZodCheckNumberFormat:()=>ta,$ZodCheckOverwrite:()=>va,$ZodCheckProperty:()=>ga,$ZodCheckRegex:()=>ua,$ZodCheckSizeEquals:()=>oa,$ZodCheckStartsWith:()=>pa,$ZodCheckStringFormat:()=>lt,$ZodCheckUpperCase:()=>da,$ZodCodec:()=>ar,$ZodCustom:()=>Os,$ZodCustomStringFormat:()=>Ha,$ZodDate:()=>ts,$ZodDefault:()=>hs,$ZodDiscriminatedUnion:()=>os,$ZodE164:()=>Va,$ZodEmail:()=>xa,$ZodEmoji:()=>Sa,$ZodEncodeError:()=>Ee,$ZodEnum:()=>ls,$ZodError:()=>Xt,$ZodExactOptional:()=>fs,$ZodFile:()=>ms,$ZodFunction:()=>ws,$ZodGUID:()=>ba,$ZodIPv4:()=>Na,$ZodIPv6:()=>Da,$ZodISODate:()=>ja,$ZodISODateTime:()=>Ta,$ZodISODuration:()=>Ca,$ZodISOTime:()=>Aa,$ZodIntersection:()=>as,$ZodJWT:()=>Ba,$ZodKSUID:()=>Ea,$ZodLazy:()=>zs,$ZodLiteral:()=>ds,$ZodMAC:()=>Ua,$ZodMap:()=>cs,$ZodNaN:()=>$s,$ZodNanoID:()=>wa,$ZodNever:()=>Qa,$ZodNonOptional:()=>_s,$ZodNull:()=>Ka,$ZodNullable:()=>gs,$ZodNumber:()=>ln,$ZodNumberFormat:()=>Ga,$ZodObject:()=>Jd,$ZodObjectJIT:()=>ns,$ZodOptional:()=>pn,$ZodPipe:()=>fn,$ZodPrefault:()=>vs,$ZodPreprocess:()=>xs,$ZodPromise:()=>Is,$ZodReadonly:()=>ks,$ZodRealError:()=>X,$ZodRecord:()=>ss,$ZodRegistry:()=>_n,$ZodSet:()=>us,$ZodString:()=>We,$ZodStringFormat:()=>T,$ZodSuccess:()=>ys,$ZodSymbol:()=>Ja,$ZodTemplateLiteral:()=>Ss,$ZodTransform:()=>ps,$ZodTuple:()=>mn,$ZodType:()=>k,$ZodULID:()=>Oa,$ZodURL:()=>ka,$ZodUUID:()=>$a,$ZodUndefined:()=>qa,$ZodUnion:()=>or,$ZodUnknown:()=>Xa,$ZodVoid:()=>es,$ZodXID:()=>Pa,$ZodXor:()=>is,$brand:()=>co,$constructor:()=>m,$input:()=>Es,$output:()=>Ps,Doc:()=>nr,JSONSchema:()=>Km,JSONSchemaGenerator:()=>qn,NEVER:()=>so,TimePrecision:()=>Cs,_any:()=>tc,_array:()=>cc,_base64:()=>Dn,_base64url:()=>Un,_bigint:()=>Js,_boolean:()=>Gs,_catch:()=>sy,_check:()=>qm,_cidrv4:()=>Cn,_cidrv6:()=>Nn,_coercedBigint:()=>qs,_coercedBoolean:()=>Ws,_coercedDate:()=>ac,_coercedNumber:()=>Ls,_coercedString:()=>js,_cuid:()=>zn,_cuid2:()=>On,_custom:()=>lc,_date:()=>oc,_decode:()=>Jr,_decodeAsync:()=>Kr,_default:()=>iy,_discriminatedUnion:()=>G_,_e164:()=>Rn,_email:()=>bn,_emoji:()=>wn,_encode:()=>Wr,_encodeAsync:()=>qr,_endsWith:()=>vt,_enum:()=>X_,_file:()=>uc,_float32:()=>Ms,_float64:()=>Vs,_gt:()=>ve,_gte:()=>W,_guid:()=>ur,_includes:()=>gt,_int:()=>Fs,_int32:()=>Bs,_int64:()=>Ks,_intersection:()=>W_,_ipv4:()=>jn,_ipv6:()=>An,_isoDate:()=>Ds,_isoDateTime:()=>Ns,_isoDuration:()=>Rs,_isoTime:()=>Us,_jwt:()=>Zn,_ksuid:()=>Tn,_lazy:()=>dy,_length:()=>Ke,_literal:()=>ey,_lowercase:()=>pt,_lt:()=>he,_lte:()=>te,_mac:()=>As,_map:()=>K_,_max:()=>te,_maxLength:()=>qe,_maxSize:()=>De,_mime:()=>_t,_min:()=>W,_minLength:()=>we,_minSize:()=>_e,_multipleOf:()=>Ne,_nan:()=>sc,_nanoid:()=>In,_nativeEnum:()=>Q_,_negative:()=>Fn,_never:()=>nc,_nonnegative:()=>Vn,_nonoptional:()=>oy,_nonpositive:()=>Mn,_normalize:()=>yt,_null:()=>ec,_nullable:()=>ny,_number:()=>Zs,_optional:()=>ry,_overwrite:()=>le,_parse:()=>at,_parseAsync:()=>st,_pipe:()=>cy,_positive:()=>Ln,_promise:()=>my,_property:()=>Bn,_readonly:()=>uy,_record:()=>q_,_refine:()=>dc,_regex:()=>mt,_safeDecode:()=>Xr,_safeDecodeAsync:()=>en,_safeEncode:()=>Yr,_safeEncodeAsync:()=>Qr,_safeParse:()=>ct,_safeParseAsync:()=>ut,_set:()=>Y_,_size:()=>Je,_slugify:()=>kt,_startsWith:()=>ht,_string:()=>Ts,_stringFormat:()=>St,_stringbool:()=>gc,_success:()=>ay,_superRefine:()=>mc,_symbol:()=>Xs,_templateLiteral:()=>ly,_toLowerCase:()=>$t,_toUpperCase:()=>xt,_transform:()=>ty,_trim:()=>bt,_tuple:()=>J_,_uint32:()=>Hs,_uint64:()=>Ys,_ulid:()=>Pn,_undefined:()=>Qs,_union:()=>B_,_unknown:()=>rc,_uppercase:()=>ft,_url:()=>lr,_uuid:()=>$n,_uuidv4:()=>xn,_uuidv6:()=>kn,_uuidv7:()=>Sn,_void:()=>ic,_xid:()=>En,_xor:()=>H_,clone:()=>H,config:()=>Z,createStandardJSONSchemaMethod:()=>wt,createToJSONSchemaMethod:()=>hc,decode:()=>mv,decodeAsync:()=>fv,describe:()=>pc,encode:()=>dv,encodeAsync:()=>pv,extractDefs:()=>Re,finalize:()=>Ze,flattenError:()=>Qt,formatError:()=>er,globalConfig:()=>Be,globalRegistry:()=>V,initializeContext:()=>Ue,isValidBase64:()=>La,isValidBase64URL:()=>Bd,isValidJWT:()=>Hd,locales:()=>cr,meta:()=>fc,parse:()=>Hr,parseAsync:()=>Gr,prettifyError:()=>xo,process:()=>E,regexes:()=>ee,registry:()=>yn,safeDecode:()=>hv,safeDecodeAsync:()=>_v,safeEncode:()=>gv,safeEncodeAsync:()=>vv,safeParse:()=>ko,safeParseAsync:()=>So,toDotPath:()=>kd,toJSONSchema:()=>Jn,treeifyError:()=>$o,util:()=>y,version:()=>_a});var _d,so=Object.freeze({status:"aborted"});function m(t,r,n){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),r(s,u);let l=a.prototype,d=Object.keys(l);for(let p=0;p<d.length;p++){let g=d[p];g in s||(s[g]=l[g].bind(s))}}let e=n?.Parent??Object;class i extends e{}Object.defineProperty(i,"name",{value:t});function a(s){var u;let l=n?.Parent?new i:this;o(l,s),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var co=Symbol("zod_brand"),ue=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ee=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(_d=globalThis).__zod_globalConfig??(_d.__zod_globalConfig={});var Be=globalThis.__zod_globalConfig;function Z(t){return t&&Object.assign(Be,t),Be}var y={};$e(y,{BIGINT_FORMAT_RANGES:()=>yo,Class:()=>lo,NUMBER_FORMAT_RANGES:()=>_o,aborted:()=>Ce,allowsEval:()=>fo,assert:()=>Vh,assertEqual:()=>Zh,assertIs:()=>Fh,assertNever:()=>Mh,assertNotEqual:()=>Lh,assignProp:()=>je,base64ToUint8Array:()=>bd,base64urlToUint8Array:()=>av,cached:()=>it,captureStackTrace:()=>Br,cleanEnum:()=>ov,cleanRegex:()=>Jt,clone:()=>H,cloneDef:()=>Hh,createTransparentProxy:()=>Yh,defineLazy:()=>I,esc:()=>Vr,escapeRegex:()=>se,explicitlyAborted:()=>bo,extend:()=>ev,finalizeIssue:()=>G,floatSafeRemainder:()=>mo,getElementAtPath:()=>Gh,getEnumValues:()=>Wt,getLengthableOrigin:()=>Yt,getParsedType:()=>Kh,getSizableOrigin:()=>Kt,hexToUint8Array:()=>cv,isObject:()=>He,isPlainObject:()=>Ae,issue:()=>ot,joinValues:()=>f,jsonStringifyReplacer:()=>nt,merge:()=>rv,mergeDefs:()=>Se,normalizeParams:()=>b,nullish:()=>Te,numKeys:()=>qh,objectClone:()=>Bh,omit:()=>Qh,optionalKeys:()=>vo,parsedType:()=>v,partial:()=>nv,pick:()=>Xh,prefixIssues:()=>Y,primitiveTypes:()=>ho,promiseAllObject:()=>Wh,propertyKeyTypes:()=>qt,randomString:()=>Jh,required:()=>iv,safeExtend:()=>tv,shallowClone:()=>go,slugify:()=>po,stringifyPrimitive:()=>h,uint8ArrayToBase64:()=>$d,uint8ArrayToBase64url:()=>sv,uint8ArrayToHex:()=>uv,unwrapMessage:()=>Gt});function Zh(t){return t}function Lh(t){return t}function Fh(t){}function Mh(t){throw new Error("Unexpected value in exhaustive check")}function Vh(t){}function Wt(t){let r=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,e])=>r.indexOf(+o)===-1).map(([o,e])=>e)}function f(t,r="|"){return t.map(n=>h(n)).join(r)}function nt(t,r){return typeof r=="bigint"?r.toString():r}function it(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function Te(t){return t==null}function Jt(t){let r=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(r,n)}function mo(t,r){let n=t/r,o=Math.round(n),e=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<e?0:n-o}var yd=Symbol("evaluating");function I(t,r,n){let o;Object.defineProperty(t,r,{get(){if(o!==yd)return o===void 0&&(o=yd,o=n()),o},set(e){Object.defineProperty(t,r,{value:e})},configurable:!0})}function Bh(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function je(t,r,n){Object.defineProperty(t,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Se(...t){let r={};for(let n of t){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function Hh(t){return Se(t._zod.def)}function Gh(t,r){return r?r.reduce((n,o)=>n?.[o],t):t}function Wh(t){let r=Object.keys(t),n=r.map(o=>t[o]);return Promise.all(n).then(o=>{let e={};for(let i=0;i<r.length;i++)e[r[i]]=o[i];return e})}function Jh(t=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function Vr(t){return JSON.stringify(t)}function po(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Br="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function He(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var fo=it(()=>{if(Be.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Ae(t){if(He(t)===!1)return!1;let r=t.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(He(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function go(t){return Ae(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function qh(t){let r=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&r++;return r}var Kh=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},qt=new Set(["string","number","symbol"]),ho=new Set(["string","number","bigint","boolean","symbol","undefined"]);function se(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function H(t,r,n){let o=new t._zod.constr(r??t._zod.def);return(!r||n?.parent)&&(o._zod.parent=t),o}function b(t){let r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Yh(t){let r;return new Proxy({},{get(n,o,e){return r??(r=t()),Reflect.get(r,o,e)},set(n,o,e,i){return r??(r=t()),Reflect.set(r,o,e,i)},has(n,o){return r??(r=t()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=t()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=t()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=t()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,e){return r??(r=t()),Reflect.defineProperty(r,o,e)}})}function h(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function vo(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}var _o={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]},yo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Xh(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Se(t._zod.def,{get shape(){let a={};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=n.shape[s])}return je(this,"shape",a),a},checks:[]});return H(t,i)}function Qh(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Se(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&delete a[s]}return je(this,"shape",a),a},checks:[]});return H(t,i)}function ev(t,r){if(!Ae(r))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let i=t._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let e=Se(t._zod.def,{get shape(){let i={...t._zod.def.shape,...r};return je(this,"shape",i),i}});return H(t,e)}function tv(t,r){if(!Ae(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Se(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r};return je(this,"shape",o),o}});return H(t,n)}function rv(t,r){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Se(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r._zod.def.shape};return je(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return H(t,n)}function nv(t,r,n){let e=r._zod.def.checks;if(e&&e.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Se(r._zod.def,{get shape(){let s=r._zod.def.shape,u={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=t?new t({type:"optional",innerType:s[l]}):s[l])}else for(let l in s)u[l]=t?new t({type:"optional",innerType:s[l]}):s[l];return je(this,"shape",u),u},checks:[]});return H(r,a)}function iv(t,r,n){let o=Se(r._zod.def,{get shape(){let e=r._zod.def.shape,i={...e};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new t({type:"nonoptional",innerType:e[a]}))}else for(let a in e)i[a]=new t({type:"nonoptional",innerType:e[a]});return je(this,"shape",i),i}});return H(r,o)}function Ce(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function bo(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function Y(t,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(t),n})}function Gt(t){return typeof t=="string"?t:t?.message}function G(t,r,n){let o=t.message?t.message:Gt(t.inst?._zod.def?.error?.(t))??Gt(r?.error?.(t))??Gt(n.customError?.(t))??Gt(n.localeError?.(t))??"Invalid input",{inst:e,continue:i,input:a,...s}=t;return s.path??(s.path=[]),s.message=o,r?.reportInput&&(s.input=a),s}function Kt(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Yt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function v(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function ot(...t){let[r,n,o]=t;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function ov(t){return Object.entries(t).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function bd(t){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function $d(t){let r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}function av(t){let r=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return bd(r+n)}function sv(t){return $d(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cv(t){let r=t.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function uv(t){return Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}var lo=class{constructor(...r){}};var xd=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),t.message=JSON.stringify(r,nt,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Xt=m("$ZodError",xd),X=m("$ZodError",xd,{Parent:Error});function Qt(t,r=n=>n.message){let n={},o=[];for(let e of t.issues)e.path.length>0?(n[e.path[0]]=n[e.path[0]]||[],n[e.path[0]].push(r(e))):o.push(r(e));return{formErrors:o,fieldErrors:n}}function er(t,r=n=>n.message){let n={_errors:[]},o=(e,i=[])=>{for(let a of e.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(r(a));else{let u=n,l=0;for(;l<s.length;){let d=s[l];l===s.length-1?(u[d]=u[d]||{_errors:[]},u[d]._errors.push(r(a))):u[d]=u[d]||{_errors:[]},u=u[d],l++}}}};return o(t),n}function $o(t,r=n=>n.message){let n={errors:[]},o=(e,i=[])=>{var a,s;for(let u of e.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>o({issues:l},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let l=[...i,...u.path];if(l.length===0){n.errors.push(r(u));continue}let d=n,p=0;for(;p<l.length;){let g=l[p],_=p===l.length-1;typeof g=="string"?(d.properties??(d.properties={}),(a=d.properties)[g]??(a[g]={errors:[]}),d=d.properties[g]):(d.items??(d.items=[]),(s=d.items)[g]??(s[g]={errors:[]}),d=d.items[g]),_&&d.errors.push(r(u)),p++}}};return o(t),n}function kd(t){let r=[],n=t.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function xo(t){let r=[],n=[...t.issues].sort((o,e)=>(o.path??[]).length-(e.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${kd(o.path)}`);return r.join(`
34
+ `)}var at=t=>(r,n,o,e)=>{let i=o?{...o,async:!1}:{async:!1},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ue;if(a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>G(u,i,Z())));throw Br(s,e?.callee),s}return a.value},Hr=at(X),st=t=>async(r,n,o,e)=>{let i=o?{...o,async:!0}:{async:!0},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>G(u,i,Z())));throw Br(s,e?.callee),s}return a.value},Gr=st(X),ct=t=>(r,n,o)=>{let e=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},e);if(i instanceof Promise)throw new ue;return i.issues.length?{success:!1,error:new(t??Xt)(i.issues.map(a=>G(a,e,Z())))}:{success:!0,data:i.value}},ko=ct(X),ut=t=>async(r,n,o)=>{let e=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},e);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>G(a,e,Z())))}:{success:!0,data:i.value}},So=ut(X),Wr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return at(t)(r,n,e)},dv=Wr(X),Jr=t=>(r,n,o)=>at(t)(r,n,o),mv=Jr(X),qr=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return st(t)(r,n,e)},pv=qr(X),Kr=t=>async(r,n,o)=>st(t)(r,n,o),fv=Kr(X),Yr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ct(t)(r,n,e)},gv=Yr(X),Xr=t=>(r,n,o)=>ct(t)(r,n,o),hv=Xr(X),Qr=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ut(t)(r,n,e)},vv=Qr(X),en=t=>async(r,n,o)=>ut(t)(r,n,o),_v=en(X);var ee={};$e(ee,{base64:()=>Lo,base64url:()=>tn,bigint:()=>Wo,boolean:()=>qo,browserEmail:()=>Iv,cidrv4:()=>Ro,cidrv6:()=>Zo,cuid:()=>wo,cuid2:()=>Io,date:()=>Vo,datetime:()=>Ho,domain:()=>Pv,duration:()=>To,e164:()=>Mo,email:()=>Ao,emoji:()=>Co,extendedDuration:()=>yv,guid:()=>jo,hex:()=>Ev,hostname:()=>Ov,html5Email:()=>kv,httpProtocol:()=>Fo,idnEmail:()=>wv,integer:()=>Jo,ipv4:()=>No,ipv6:()=>Do,ksuid:()=>Po,lowercase:()=>Xo,mac:()=>Uo,md5_base64:()=>jv,md5_base64url:()=>Av,md5_hex:()=>Tv,nanoid:()=>Eo,null:()=>Ko,number:()=>rn,rfc5322Email:()=>Sv,sha1_base64:()=>Nv,sha1_base64url:()=>Dv,sha1_hex:()=>Cv,sha256_base64:()=>Rv,sha256_base64url:()=>Zv,sha256_hex:()=>Uv,sha384_base64:()=>Fv,sha384_base64url:()=>Mv,sha384_hex:()=>Lv,sha512_base64:()=>Bv,sha512_base64url:()=>Hv,sha512_hex:()=>Vv,string:()=>Go,time:()=>Bo,ulid:()=>zo,undefined:()=>Yo,unicodeEmail:()=>Sd,uppercase:()=>Qo,uuid:()=>Ge,uuid4:()=>bv,uuid6:()=>$v,uuid7:()=>xv,xid:()=>Oo});var wo=/^[cC][0-9a-z]{6,}$/,Io=/^[0-9a-z]+$/,zo=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Oo=/^[0-9a-vA-V]{20}$/,Po=/^[A-Za-z0-9]{27}$/,Eo=/^[a-zA-Z0-9_-]{21}$/,To=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yv=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jo=/^([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})$/,Ge=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,bv=Ge(4),$v=Ge(6),xv=Ge(7),Ao=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Sv=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Sd=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,wv=Sd,Iv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Co(){return new RegExp(zv,"u")}var No=/^(?:(?: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])$/,Do=/^(([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}|:))$/,Uo=t=>{let r=se(t??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Ro=/^((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])$/,Zo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tn=/^[A-Za-z0-9_-]*$/,Ov=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Pv=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Fo=/^https?$/,Mo=/^\+[1-9]\d{6,14}$/,wd="(?:(?:\\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])))",Vo=new RegExp(`^${wd}$`);function Id(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bo(t){return new RegExp(`^${Id(t)}$`)}function Ho(t){let r=Id({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${wd}T(?:${o})$`)}var Go=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Wo=/^-?\d+n?$/,Jo=/^-?\d+$/,rn=/^-?\d+(?:\.\d+)?$/,qo=/^(?:true|false)$/i,Ko=/^null$/i;var Yo=/^undefined$/i;var Xo=/^[^A-Z]*$/,Qo=/^[^a-z]*$/,Ev=/^[0-9a-fA-F]*$/;function tr(t,r){return new RegExp(`^[A-Za-z0-9+/]{${t}}${r}$`)}function rr(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Tv=/^[0-9a-fA-F]{32}$/,jv=tr(22,"=="),Av=rr(22),Cv=/^[0-9a-fA-F]{40}$/,Nv=tr(27,"="),Dv=rr(27),Uv=/^[0-9a-fA-F]{64}$/,Rv=tr(43,"="),Zv=rr(43),Lv=/^[0-9a-fA-F]{96}$/,Fv=tr(64,""),Mv=rr(64),Vv=/^[0-9a-fA-F]{128}$/,Bv=tr(86,"=="),Hv=rr(86);var C=m("$ZodCheck",(t,r)=>{var n;t._zod??(t._zod={}),t._zod.def=r,(n=t._zod).onattach??(n.onattach=[])}),Od={number:"number",bigint:"bigint",object:"date"},nn=m("$ZodCheckLessThan",(t,r)=>{C.init(t,r);let n=Od[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?e.maximum=r.value:e.exclusiveMaximum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),on=m("$ZodCheckGreaterThan",(t,r)=>{C.init(t,r);let n=Od[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?e.minimum=r.value:e.exclusiveMinimum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),ea=m("$ZodCheckMultipleOf",(t,r)=>{C.init(t,r),t._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),t._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):mo(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:t,continue:!r.abort})}}),ta=m("$ZodCheckNumberFormat",(t,r)=>{C.init(t,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[e,i]=_o[r.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=r.format,s.minimum=e,s.maximum=i,n&&(s.pattern=Jo)}),t._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort});return}}s<e&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:e,inclusive:!0,inst:t,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!r.abort})}}),ra=m("$ZodCheckBigIntFormat",(t,r)=>{C.init(t,r);let[n,o]=yo[r.format];t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),t._zod.check=e=>{let i=e.value;i<n&&e.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!r.abort}),i>o&&e.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!r.abort})}}),na=m("$ZodCheckMaxSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;e.size<=r.maximum||o.issues.push({origin:Kt(e),code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),ia=m("$ZodCheckMinSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;e.size>=r.minimum||o.issues.push({origin:Kt(e),code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),oa=m("$ZodCheckSizeEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.size,e.maximum=r.size,e.size=r.size}),t._zod.check=o=>{let e=o.value,i=e.size;if(i===r.size)return;let a=i>r.size;o.issues.push({origin:Kt(e),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),aa=m("$ZodCheckMaxLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;if(e.length<=r.maximum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),sa=m("$ZodCheckMinLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;if(e.length>=r.minimum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),ca=m("$ZodCheckLengthEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!Te(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.length,e.maximum=r.length,e.length=r.length}),t._zod.check=o=>{let e=o.value,i=e.length;if(i===r.length)return;let a=Yt(e),s=i>r.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),lt=m("$ZodCheckStringFormat",(t,r)=>{var n,o;C.init(t,r),t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=t._zod).check??(n.check=e=>{r.pattern.lastIndex=0,!r.pattern.test(e.value)&&e.issues.push({origin:"string",code:"invalid_format",format:r.format,input:e.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(o=t._zod).check??(o.check=()=>{})}),ua=m("$ZodCheckRegex",(t,r)=>{lt.init(t,r),t._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),la=m("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=Xo),lt.init(t,r)}),da=m("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=Qo),lt.init(t,r)}),ma=m("$ZodCheckIncludes",(t,r)=>{C.init(t,r);let n=se(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,t._zod.onattach.push(e=>{let i=e._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=e=>{e.value.includes(r.includes,r.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:e.value,inst:t,continue:!r.abort})}}),pa=m("$ZodCheckStartsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`^${se(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:t,continue:!r.abort})}}),fa=m("$ZodCheckEndsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`.*${se(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:t,continue:!r.abort})}});function zd(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues))}var ga=m("$ZodCheckProperty",(t,r)=>{C.init(t,r),t._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(e=>zd(e,n,r.property));zd(o,n,r.property)}}),ha=m("$ZodCheckMimeType",(t,r)=>{C.init(t,r);let n=new Set(r.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),t._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:t,continue:!r.abort})}}),va=m("$ZodCheckOverwrite",(t,r)=>{C.init(t,r),t._zod.check=n=>{n.value=r.tx(n.value)}});var nr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
35
+ `).filter(a=>a),e=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(e)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let r=Function,n=this?.args,e=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,e.join(`
36
+ `))}};var _a={major:4,minor:4,patch:3};var k=m("$ZodType",(t,r)=>{var n;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=_a;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let e of o)for(let i of e._zod.onattach)i(t);if(o.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let e=(a,s,u)=>{let l=Ce(a),d;for(let p of s){if(p._zod.def.when){if(bo(a)||!p._zod.def.when(a))continue}else if(l)continue;let g=a.issues.length,_=p._zod.check(a);if(_ instanceof Promise&&u?.async===!1)throw new ue;if(d||_ instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await _,a.issues.length!==g&&(l||(l=Ce(a,g)))});else{if(a.issues.length===g)continue;l||(l=Ce(a,g))}}return d?d.then(()=>a):a},i=(a,s,u)=>{if(Ce(a))return a.aborted=!0,a;let l=e(s,o,u);if(l instanceof Promise){if(u.async===!1)throw new ue;return l.then(d=>t._zod.parse(d,u))}return t._zod.parse(l,u)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let l=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,s)):i(l,a,s)}let u=t._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new ue;return u.then(l=>e(l,o,s))}return e(u,o,s)}}I(t,"~standard",()=>({validate:e=>{try{let i=ko(t,e);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return So(t,e).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),We=m("$ZodString",(t,r)=>{k.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Go(t._zod.bag),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),T=m("$ZodStringFormat",(t,r)=>{lt.init(t,r),We.init(t,r)}),ba=m("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=jo),T.init(t,r)}),$a=m("$ZodUUID",(t,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Ge(o))}else r.pattern??(r.pattern=Ge());T.init(t,r)}),xa=m("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=Ao),T.init(t,r)}),ka=m("$ZodURL",(t,r)=>{T.init(t,r),t._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===Fo.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!r.abort});return}let e=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(e.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:t,continue:!r.abort})),r.normalize?n.value=e.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort})}}}),Sa=m("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=Co()),T.init(t,r)}),wa=m("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=Eo),T.init(t,r)}),Ia=m("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=wo),T.init(t,r)}),za=m("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=Io),T.init(t,r)}),Oa=m("$ZodULID",(t,r)=>{r.pattern??(r.pattern=zo),T.init(t,r)}),Pa=m("$ZodXID",(t,r)=>{r.pattern??(r.pattern=Oo),T.init(t,r)}),Ea=m("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=Po),T.init(t,r)}),Ta=m("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=Ho(r)),T.init(t,r)}),ja=m("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=Vo),T.init(t,r)}),Aa=m("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=Bo(r)),T.init(t,r)}),Ca=m("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=To),T.init(t,r)}),Na=m("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=No),T.init(t,r),t._zod.bag.format="ipv4"}),Da=m("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=Do),T.init(t,r),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!r.abort})}}}),Ua=m("$ZodMAC",(t,r)=>{r.pattern??(r.pattern=Uo(r.delimiter)),T.init(t,r),t._zod.bag.format="mac"}),Ra=m("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=Ro),T.init(t,r)}),Za=m("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=Zo),T.init(t,r),t._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[e,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!r.abort})}}});function La(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Fa=m("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=Lo),T.init(t,r),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{La(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!r.abort})}});function Bd(t){if(!tn.test(t))return!1;let r=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return La(n)}var Ma=m("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=tn),T.init(t,r),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Bd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!r.abort})}}),Va=m("$ZodE164",(t,r)=>{r.pattern??(r.pattern=Mo),T.init(t,r)});function Hd(t,r=null){try{let n=t.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let e=JSON.parse(atob(o));return!("typ"in e&&e?.typ!=="JWT"||!e.alg||r&&(!("alg"in e)||e.alg!==r))}catch{return!1}}var Ba=m("$ZodJWT",(t,r)=>{T.init(t,r),t._zod.check=n=>{Hd(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!r.abort})}}),Ha=m("$ZodCustomStringFormat",(t,r)=>{T.init(t,r),t._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:t,continue:!r.abort})}}),ln=m("$ZodNumber",(t,r)=>{k.init(t,r),t._zod.pattern=t._zod.bag.pattern??rn,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let e=n.value;if(typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e))return n;let i=typeof e=="number"?Number.isNaN(e)?"NaN":Number.isFinite(e)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:e,inst:t,...i?{received:i}:{}}),n}}),Ga=m("$ZodNumberFormat",(t,r)=>{ta.init(t,r),ln.init(t,r)}),ir=m("$ZodBoolean",(t,r)=>{k.init(t,r),t._zod.pattern=qo,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let e=n.value;return typeof e=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:e,inst:t}),n}}),dn=m("$ZodBigInt",(t,r)=>{k.init(t,r),t._zod.pattern=Wo,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),Wa=m("$ZodBigIntFormat",(t,r)=>{ra.init(t,r),dn.init(t,r)}),Ja=m("$ZodSymbol",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:e,inst:t}),n}}),qa=m("$ZodUndefined",(t,r)=>{k.init(t,r),t._zod.pattern=Yo,t._zod.values=new Set([void 0]),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:e,inst:t}),n}}),Ka=m("$ZodNull",(t,r)=>{k.init(t,r),t._zod.pattern=Ko,t._zod.values=new Set([null]),t._zod.parse=(n,o)=>{let e=n.value;return e===null||n.issues.push({expected:"null",code:"invalid_type",input:e,inst:t}),n}}),Ya=m("$ZodAny",(t,r)=>{k.init(t,r),t._zod.parse=n=>n}),Xa=m("$ZodUnknown",(t,r)=>{k.init(t,r),t._zod.parse=n=>n}),Qa=m("$ZodNever",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),es=m("$ZodVoid",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"void",code:"invalid_type",input:e,inst:t}),n}}),ts=m("$ZodDate",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let e=n.value,i=e instanceof Date;return i&&!Number.isNaN(e.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:e,...i?{received:"Invalid Date"}:{},inst:t}),n}});function Ed(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}var rs=m("$ZodArray",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Array.isArray(e))return n.issues.push({expected:"array",code:"invalid_type",input:e,inst:t}),n;n.value=Array(e.length);let i=[];for(let a=0;a<e.length;a++){let s=e[a],u=r.element._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Ed(l,n,a))):Ed(u,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function un(t,r,n,o,e,i){let a=n in o;if(t.issues.length){if(e&&i&&!a)return;r.issues.push(...Y(n,t.issues))}if(!a&&!e){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?a&&(r.value[n]=void 0):r.value[n]=t.value}function Gd(t){let r=Object.keys(t.shape);for(let o of r)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=vo(t.shape);return{...t,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function Wd(t,r,n,o,e,i){let a=[],s=e.keySet,u=e.catchall._zod,l=u.def.type,d=u.optin==="optional",p=u.optout==="optional";for(let g in r){if(g==="__proto__"||s.has(g))continue;if(l==="never"){a.push(g);continue}let _=u.run({value:r[g],issues:[]},o);_ instanceof Promise?t.push(_.then(x=>un(x,n,g,r,d,p))):un(_,n,g,r,d,p)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),t.length?Promise.all(t).then(()=>n):n}var Jd=m("$ZodObject",(t,r)=>{if(k.init(t,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...s};return Object.defineProperty(r,"shape",{value:u}),u}})}let o=it(()=>Gd(r));I(t._zod,"propValues",()=>{let s=r.shape,u={};for(let l in s){let d=s[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let p of d.values)u[l].add(p)}}return u});let e=He,i=r.catchall,a;t._zod.parse=(s,u)=>{a??(a=o.value);let l=s.value;if(!e(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:t}),s;s.value={};let d=[],p=a.shape;for(let g of a.keys){let _=p[g],x=_._zod.optin==="optional",K=_._zod.optout==="optional",F=_._zod.run({value:l[g],issues:[]},u);F instanceof Promise?d.push(F.then(Ci=>un(Ci,s,g,l,x,K))):un(F,s,g,l,x,K)}return i?Wd(d,l,s,u,o.value,t):d.length?Promise.all(d).then(()=>s):s}}),ns=m("$ZodObjectJIT",(t,r)=>{Jd.init(t,r);let n=t._zod.parse,o=it(()=>Gd(r)),e=g=>{let _=new nr(["shape","payload","ctx"]),x=o.value,K=ge=>{let R=Vr(ge);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};_.write("const input = payload.value;");let F=Object.create(null),Ci=0;for(let ge of x.keys)F[ge]=`key_${Ci++}`;_.write("const newResult = {};");for(let ge of x.keys){let R=F[ge],M=Vr(ge),zl=g[ge],Ol=zl?._zod?.optin==="optional",Bg=zl?._zod?.optout==="optional";_.write(`const ${R} = ${K(ge)};`),Ol&&Bg?_.write(`
37
+ if (${R}.issues.length) {
38
+ if (${M} in input) {
39
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
174
40
  ...iss,
175
- path: iss.path ? [${P}, ...iss.path] : [${P}]
41
+ path: iss.path ? [${M}, ...iss.path] : [${M}]
176
42
  })));
177
43
  }
178
44
  }
179
45
 
180
- if (${I}.value === undefined) {
181
- if (${P} in input) {
182
- newResult[${P}] = undefined;
46
+ if (${R}.value === undefined) {
47
+ if (${M} in input) {
48
+ newResult[${M}] = undefined;
183
49
  }
184
50
  } else {
185
- newResult[${P}] = ${I}.value;
51
+ newResult[${M}] = ${R}.value;
186
52
  }
187
53
 
188
- `):V?p.write(`
189
- if (${I}.issues.length) {
190
- payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
54
+ `):Ol?_.write(`
55
+ if (${R}.issues.length) {
56
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
191
57
  ...iss,
192
- path: iss.path ? [${P}, ...iss.path] : [${P}]
58
+ path: iss.path ? [${M}, ...iss.path] : [${M}]
193
59
  })));
194
60
  }
195
61
 
196
- if (${I}.value === undefined) {
197
- if (${P} in input) {
198
- newResult[${P}] = undefined;
62
+ if (${R}.value === undefined) {
63
+ if (${M} in input) {
64
+ newResult[${M}] = undefined;
199
65
  }
200
66
  } else {
201
- newResult[${P}] = ${I}.value;
67
+ newResult[${M}] = ${R}.value;
202
68
  }
203
69
 
204
- `):p.write(`
205
- const ${I}_present = ${P} in input;
206
- if (${I}.issues.length) {
207
- payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
70
+ `):_.write(`
71
+ const ${R}_present = ${M} in input;
72
+ if (${R}.issues.length) {
73
+ payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
208
74
  ...iss,
209
- path: iss.path ? [${P}, ...iss.path] : [${P}]
75
+ path: iss.path ? [${M}, ...iss.path] : [${M}]
210
76
  })));
211
77
  }
212
- if (!${I}_present && !${I}.issues.length) {
78
+ if (!${R}_present && !${R}.issues.length) {
213
79
  payload.issues.push({
214
80
  code: "invalid_type",
215
81
  expected: "nonoptional",
216
82
  input: undefined,
217
- path: [${P}]
83
+ path: [${M}]
218
84
  });
219
85
  }
220
86
 
221
- if (${I}_present) {
222
- if (${I}.value === undefined) {
223
- newResult[${P}] = undefined;
87
+ if (${R}_present) {
88
+ if (${R}.value === undefined) {
89
+ newResult[${M}] = undefined;
224
90
  } else {
225
- newResult[${P}] = ${I}.value;
91
+ newResult[${M}] = ${R}.value;
226
92
  }
227
93
  }
228
94
 
229
- `)}p.write("payload.value = newResult;"),p.write("return payload;");let T=p.compile();return(A,I)=>T(m,A,I)},o,a=Nt,s=!At.jitless,u=s&&su.value,l=e.catchall,d;t._zod.parse=(m,p)=>{d??(d=i.value);let y=m.value;return a(y)?s&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=n(e.shape)),m=o(m,p),l?_y([],y,m,p,d,t):m):r(m,p):(m.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),m)}});function ry(t,e,r,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let n=t.filter(o=>!vt(o));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>le(a,i,H())))}),e)}var zr=g("$ZodUnion",(t,e)=>{N.init(t,e),D(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),D(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),D(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),D(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){let i=e.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>kr(n.source)).join("|")})$`)}});let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of e.options){let c=s._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(s=>ry(s,i,t,n)):ry(a,i,t,n)}});function iy(t,e,r,i){let n=t.filter(o=>o.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>le(a,i,H())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}var Yl=g("$ZodXor",(t,e)=>{zr.init(t,e),e.inclusive=!1;let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of e.options){let c=s._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(s=>iy(s,i,t,n)):iy(a,i,t,n)}}),Xl=g("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,zr.init(t,e);let r=t._zod.parse;D(t._zod,"propValues",()=>{let n={};for(let o of e.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let i=nn(()=>{let n=e.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[e.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(let c of s){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});t._zod.parse=(n,o)=>{let a=n.value;if(!Nt(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;let s=i.value.get(a?.[e.discriminator]);return s?s._zod.run(n,o):e.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(i.value.keys()),input:a,path:[e.discriminator],inst:t}),n)}}),Ql=g("$ZodIntersection",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),a=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>oy(r,c,u)):oy(r,o,a)}});function fl(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(ht(t)&&ht(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};for(let o of i){let a=fl(t[o],e[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let n=t[i],o=e[i],a=fl(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function oy(t,e,r){let i=new Map,n;for(let s of e.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else t.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else t.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&t.issues.push({...n,keys:o}),vt(t))return t;let a=fl(e.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var zo=g("$ZodTuple",(t,e)=>{N.init(t,e);let r=e.items;t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=ay(r,"optin"),c=ay(r,"optout");if(!e.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:t,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:t,origin:"array"})}let u=new Array(r.length);for(let l=0;l<r.length;l++){let d=r[l]._zod.run({value:o[l],issues:[]},n);d instanceof Promise?a.push(d.then(m=>{u[l]=m})):u[l]=d}if(e.rest){let l=r.length-1,d=o.slice(r.length);for(let m of d){l++;let p=e.rest._zod.run({value:m,issues:[]},n);p instanceof Promise?a.push(p.then(y=>sy(y,i,l))):sy(p,i,l)}}return a.length?Promise.all(a).then(()=>cy(u,i,r,o,c)):cy(u,i,r,o,c)}});function ay(t,e){for(let r=t.length-1;r>=0;r--)if(t[r]._zod[e]!=="optional")return r+1;return 0}function sy(t,e,r){t.issues.length&&e.issues.push(...he(r,t.issues)),e.value[r]=t.value}function cy(t,e,r,i,n){for(let o=0;o<r.length;o++){let a=t[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){e.value.length=o;break}e.issues.push(...he(o,a.issues))}e.value[o]=a.value}for(let o=e.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&e.value[o]===void 0);o--)e.value.length=o;return e}var ed=g("$ZodRecord",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!ht(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let o=[],a=e.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=e.keyType._zod.run({value:u,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>le(p,i,H())),input:u,path:[u],inst:t});continue}let d=l.value,m=e.valueType._zod.run({value:n[u],issues:[]},i);m instanceof Promise?o.push(m.then(p=>{p.issues.length&&r.issues.push(...he(u,p.issues)),r.value[d]=p.value})):(m.issues.length&&r.issues.push(...he(u,m.issues)),r.value[d]=m.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=e.keyType._zod.run({value:s,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&xo.test(s)&&c.issues.length){let d=e.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){e.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>le(d,i,H())),input:s,path:[s],inst:t});continue}let l=e.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...he(s,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...he(s,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),td=g("$ZodMap",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let o=[];r.value=new Map;for(let[a,s]of n){let c=e.keyType._zod.run({value:a,issues:[]},i),u=e.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,d])=>{uy(l,d,r,a,n,t,i)})):uy(c,u,r,a,n,t,i)}return o.length?Promise.all(o).then(()=>r):r}});function uy(t,e,r,i,n,o,a){t.issues.length&&(wr.has(typeof i)?r.issues.push(...he(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(s=>le(s,a,H()))})),e.issues.length&&(wr.has(typeof i)?r.issues.push(...he(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(s=>le(s,a,H()))})),r.value.set(t.value,e.value)}var nd=g("$ZodSet",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=e.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(c=>ly(c,r))):ly(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function ly(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var rd=g("$ZodEnum",(t,e)=>{N.init(t,e);let r=$r(e.entries),i=new Set(r);t._zod.values=i,t._zod.pattern=new RegExp(`^(${r.filter(n=>wr.has(typeof n)).map(n=>typeof n=="string"?Ie(n):n.toString()).join("|")})$`),t._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:t}),n}}),id=g("$ZodLiteral",(t,e)=>{if(N.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?Ie(i):i?Ie(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),od=g("$ZodFile",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),ad=g("$ZodTransform",(t,e)=>{N.init(t,e),t._zod.optin="optional",t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new mt(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new Ne;return r.value=n,r.fallback=!0,r}});function dy(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Co=g("$ZodOptional",(t,e)=>{N.init(t,e),t._zod.optin="optional",t._zod.optout="optional",D(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),D(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${kr(r.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(e.innerType._zod.optin==="optional"){let n=r.value,o=e.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>dy(a,n)):dy(o,n)}return r.value===void 0?r:e.innerType._zod.run(r,i)}}),sd=g("$ZodExactOptional",(t,e)=>{Co.init(t,e),D(t._zod,"values",()=>e.innerType._zod.values),D(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),cd=g("$ZodNullable",(t,e)=>{N.init(t,e),D(t._zod,"optin",()=>e.innerType._zod.optin),D(t._zod,"optout",()=>e.innerType._zod.optout),D(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${kr(r.source)}|null)$`):void 0}),D(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),ud=g("$ZodDefault",(t,e)=>{N.init(t,e),t._zod.optin="optional",D(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>fy(o,e)):fy(n,e)}});function fy(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var ld=g("$ZodPrefault",(t,e)=>{N.init(t,e),t._zod.optin="optional",D(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),dd=g("$ZodNonOptional",(t,e)=>{N.init(t,e),D(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>my(o,t)):my(n,t)}});function my(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var fd=g("$ZodSuccess",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new mt("ZodSuccess");let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),md=g("$ZodCatch",(t,e)=>{N.init(t,e),t._zod.optin="optional",D(t._zod,"optout",()=>e.innerType._zod.optout),D(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(a=>le(a,i,H()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(o=>le(o,i,H()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),pd=g("$ZodNaN",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),jo=g("$ZodPipe",(t,e)=>{N.init(t,e),D(t._zod,"values",()=>e.in._zod.values),D(t._zod,"optin",()=>e.in._zod.optin),D(t._zod,"optout",()=>e.out._zod.optout),D(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Oo(a,e.in,i)):Oo(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Oo(o,e.out,i)):Oo(n,e.out,i)}});function Oo(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},r)}var Cr=g("$ZodCodec",(t,e)=>{N.init(t,e),D(t._zod,"values",()=>e.in._zod.values),D(t._zod,"optin",()=>e.in._zod.optin),D(t._zod,"optout",()=>e.out._zod.optout),D(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Po(a,e,i)):Po(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Po(a,e,i)):Po(o,e,i)}}});function Po(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(o=>Eo(t,o,e.out,r)):Eo(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>Eo(t,o,e.in,r)):Eo(t,n,e.in,r)}}function Eo(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}var gd=g("$ZodPreprocess",(t,e)=>{jo.init(t,e)}),hd=g("$ZodReadonly",(t,e)=>{N.init(t,e),D(t._zod,"propValues",()=>e.innerType._zod.propValues),D(t._zod,"values",()=>e.innerType._zod.values),D(t._zod,"optin",()=>e.innerType?._zod?.optin),D(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(py):py(n)}});function py(t){return t.value=Object.freeze(t.value),t}var vd=g("$ZodTemplateLiteral",(t,e)=>{N.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||uu.has(typeof i))r.push(Ie(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),i)}),yd=g("$ZodFunction",(t,e)=>(N.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=t._def.input?mo(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?mo(t._def.output,o):o}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=t._def.input?await po(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await po(t._def.output,o):o}},t._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:"function",input:new zo({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new i({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:r})},t)),_d=g("$ZodPromise",(t,e)=>{N.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),bd=g("$ZodLazy",(t,e)=>{N.init(t,e),D(t._zod,"innerType",()=>{let r=e;return r._cachedInner||(r._cachedInner=e.getter()),r._cachedInner}),D(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),D(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),D(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),D(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),$d=g("$ZodCustom",(t,e)=>{J.init(t,e),N.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>gy(o,r,i,t));gy(n,r,i,t)}});function gy(t,e,r,i){if(!t){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),e.issues.push(rn(n))}}var Dr={};We(Dr,{ar:()=>$y,az:()=>ky,be:()=>xy,bg:()=>Sy,ca:()=>Iy,cs:()=>Oy,da:()=>Py,de:()=>Ey,el:()=>Ty,en:()=>Do,eo:()=>Ay,es:()=>Ny,fa:()=>zy,fi:()=>Cy,fr:()=>jy,frCA:()=>Dy,he:()=>Uy,hr:()=>Ry,hu:()=>Ly,hy:()=>My,id:()=>Fy,is:()=>qy,it:()=>Vy,ja:()=>By,ka:()=>Ky,kh:()=>Jy,km:()=>Uo,ko:()=>Wy,lt:()=>Hy,mk:()=>Yy,ms:()=>Xy,nl:()=>Qy,no:()=>e_,ota:()=>t_,pl:()=>r_,ps:()=>n_,pt:()=>i_,ro:()=>o_,ru:()=>s_,sl:()=>c_,sv:()=>u_,ta:()=>l_,th:()=>d_,tr:()=>f_,ua:()=>m_,uk:()=>Ro,ur:()=>p_,uz:()=>g_,vi:()=>h_,yo:()=>__,zhCN:()=>v_,zhTW:()=>y_});var p0=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${b(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function $y(){return{localeError:p0()}}var g0=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${b(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function ky(){return{localeError:g0()}}function wy(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}var h0=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${b(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),c=wy(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),c=wy(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function xy(){return{localeError:h0()}}var v0=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${b(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Sy(){return{localeError:v0()}}var y0=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${b(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=e(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=e(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Iy(){return{localeError:y0()}}var _0=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${b(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Oy(){return{localeError:_0()}}var b0=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${b(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Py(){return{localeError:b0()}}var $0=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${b(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Ey(){return{localeError:$0()}}var k0=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function e(n){return t[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${b(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Ty(){return{localeError:k0()}}var w0=()=>{let t={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 e(n){return t[n]??null}let r={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",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${b(n.values[0])}`:`Invalid option: expected one of ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Do(){return{localeError:w0()}}var x0=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${b(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Ay(){return{localeError:x0()}}var S0=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${b(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function Ny(){return{localeError:S0()}}var I0=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${b(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function zy(){return{localeError:I0()}}var O0=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${b(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Cy(){return{localeError:O0()}}var P0=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${b(n.values[0])} attendu`:`Option invalide : une valeur parmi ${v(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function jy(){return{localeError:P0()}}var E0=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${b(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=e(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=e(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${v(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Dy(){return{localeError:E0()}}var T0=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?t[u]:void 0,i=u=>{let l=r(u);return l?l.label:u??t.unknown.label},n=u=>`\u05D4${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?e[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,d=c[l??""]??i(l),m=$(u.input),p=c[m]??t[m]?.label??m;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${b(u.values[0])}`;let l=u.values.map(p=>b(p));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let d=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let y=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let m=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let y=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(u.origin==="array"||u.origin==="set"){let y=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let _=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`}let h=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let m=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let d=s[l.format],m=d?.label??l.format,y=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${y}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Uy(){return{localeError:T0()}}var A0=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function e(n){return t[n]??null}let r={regex:"unos",email:"email adresa",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 datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${b(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${v(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function Ry(){return{localeError:A0()}}var N0=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}let r={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${b(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Ly(){return{localeError:N0()}}function Zy(t,e,r){return Math.abs(t)===1?e:r}function ln(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}var z0=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${b(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),c=Zy(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ln(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ln(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),c=Zy(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ln(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ln(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${v(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ln(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${ln(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function My(){return{localeError:z0()}}var C0=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${b(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Fy(){return{localeError:C0()}}var j0=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${b(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${v(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function qy(){return{localeError:j0()}}var D0=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}let r={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${b(n.values[0])}`:`Opzione non valida: atteso uno tra ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${v(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Vy(){return{localeError:D0()}}var U0=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${b(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=e(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=e(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function By(){return{localeError:U0()}}var R0=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${b(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Ky(){return{localeError:R0()}}var L0=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${b(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Uo(){return{localeError:L0()}}function Jy(){return Uo()}var Z0=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${b(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Wy(){return{localeError:Z0()}}var jr=t=>t.charAt(0).toUpperCase()+t.slice(1);function Gy(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var M0=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,o,a,s){let c=t[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${b(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=e(n.origin,Gy(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${jr(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${jr(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=e(n.origin,Gy(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${jr(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${jr(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${v(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${jr(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Hy(){return{localeError:M0()}}var F0=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${b(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Yy(){return{localeError:F0()}}var q0=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${b(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Xy(){return{localeError:q0()}}var V0=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}let r={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${b(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function Qy(){return{localeError:V0()}}var B0=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${b(n.values[0])}`:`Ugyldig valg: forventet en av ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function e_(){return{localeError:B0()}}var K0=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${b(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function t_(){return{localeError:K0()}}var J0=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${b(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function n_(){return{localeError:J0()}}var W0=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${b(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function r_(){return{localeError:W0()}}var G0=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${b(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function i_(){return{localeError:G0()}}var H0=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function e(n){return t[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${b(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${v(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function o_(){return{localeError:H0()}}function a_(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}var Y0=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${b(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),c=a_(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),c=a_(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function s_(){return{localeError:Y0()}}var X0=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${b(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function c_(){return{localeError:X0()}}var Q0=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${b(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function u_(){return{localeError:Q0()}}var eP=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${b(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function l_(){return{localeError:eP()}}var tP=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${b(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function d_(){return{localeError:tP()}}var nP=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}let r={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${b(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function f_(){return{localeError:nP()}}var rP=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${b(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ro(){return{localeError:rP()}}function m_(){return Ro()}var iP=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${b(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${v(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function p_(){return{localeError:iP()}}var oP=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${b(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function g_(){return{localeError:oP()}}var aP=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${b(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function h_(){return{localeError:aP()}}var sP=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${b(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function v_(){return{localeError:sP()}}var cP=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${b(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${v(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function y_(){return{localeError:cP()}}var uP=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=$(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${b(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function __(){return{localeError:uP()}}var b_,kd=Symbol("ZodOutput"),wd=Symbol("ZodInput"),Lo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let i=r[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Zo(){return new Lo}(b_=globalThis).__zod_globalRegistry??(b_.__zod_globalRegistry=Zo());var se=globalThis.__zod_globalRegistry;function xd(t,e){return new t({type:"string",...w(e)})}function Sd(t,e){return new t({type:"string",coerce:!0,...w(e)})}function Mo(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...w(e)})}function Ur(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...w(e)})}function Fo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...w(e)})}function qo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...w(e)})}function Vo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...w(e)})}function Bo(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...w(e)})}function Rr(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...w(e)})}function Ko(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...w(e)})}function Jo(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...w(e)})}function Wo(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...w(e)})}function Go(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...w(e)})}function Ho(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...w(e)})}function Yo(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...w(e)})}function Xo(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...w(e)})}function Qo(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...w(e)})}function ea(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...w(e)})}function Id(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...w(e)})}function ta(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...w(e)})}function na(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...w(e)})}function ra(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...w(e)})}function ia(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...w(e)})}function oa(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...w(e)})}function aa(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...w(e)})}var Od={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pd(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...w(e)})}function Ed(t,e){return new t({type:"string",format:"date",check:"string_format",...w(e)})}function Td(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...w(e)})}function Ad(t,e){return new t({type:"string",format:"duration",check:"string_format",...w(e)})}function Nd(t,e){return new t({type:"number",checks:[],...w(e)})}function zd(t,e){return new t({type:"number",coerce:!0,checks:[],...w(e)})}function Cd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...w(e)})}function jd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...w(e)})}function Dd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...w(e)})}function Ud(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...w(e)})}function Rd(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...w(e)})}function Ld(t,e){return new t({type:"boolean",...w(e)})}function Zd(t,e){return new t({type:"boolean",coerce:!0,...w(e)})}function Md(t,e){return new t({type:"bigint",...w(e)})}function Fd(t,e){return new t({type:"bigint",coerce:!0,...w(e)})}function qd(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...w(e)})}function Vd(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...w(e)})}function Bd(t,e){return new t({type:"symbol",...w(e)})}function Kd(t,e){return new t({type:"undefined",...w(e)})}function Jd(t,e){return new t({type:"null",...w(e)})}function Wd(t){return new t({type:"any"})}function Gd(t){return new t({type:"unknown"})}function Hd(t,e){return new t({type:"never",...w(e)})}function Yd(t,e){return new t({type:"void",...w(e)})}function Xd(t,e){return new t({type:"date",...w(e)})}function Qd(t,e){return new t({type:"date",coerce:!0,...w(e)})}function ef(t,e){return new t({type:"nan",...w(e)})}function Me(t,e){return new So({check:"less_than",...w(e),value:t,inclusive:!1})}function $e(t,e){return new So({check:"less_than",...w(e),value:t,inclusive:!0})}function Fe(t,e){return new Io({check:"greater_than",...w(e),value:t,inclusive:!1})}function de(t,e){return new Io({check:"greater_than",...w(e),value:t,inclusive:!0})}function sa(t){return Fe(0,t)}function ca(t){return Me(0,t)}function ua(t){return $e(0,t)}function la(t){return de(0,t)}function yt(t,e){return new Ju({check:"multiple_of",...w(e),value:t})}function _t(t,e){return new Hu({check:"max_size",...w(e),maximum:t})}function qe(t,e){return new Yu({check:"min_size",...w(e),minimum:t})}function jt(t,e){return new Xu({check:"size_equals",...w(e),size:t})}function Dt(t,e){return new Qu({check:"max_length",...w(e),maximum:t})}function Qe(t,e){return new el({check:"min_length",...w(e),minimum:t})}function Ut(t,e){return new tl({check:"length_equals",...w(e),length:t})}function dn(t,e){return new nl({check:"string_format",format:"regex",...w(e),pattern:t})}function fn(t){return new rl({check:"string_format",format:"lowercase",...w(t)})}function mn(t){return new il({check:"string_format",format:"uppercase",...w(t)})}function pn(t,e){return new ol({check:"string_format",format:"includes",...w(e),includes:t})}function gn(t,e){return new al({check:"string_format",format:"starts_with",...w(e),prefix:t})}function hn(t,e){return new sl({check:"string_format",format:"ends_with",...w(e),suffix:t})}function da(t,e,r){return new cl({check:"property",property:t,schema:e,...w(r)})}function vn(t,e){return new ul({check:"mime_type",mime:t,...w(e)})}function ze(t){return new ll({check:"overwrite",tx:t})}function yn(t){return ze(e=>e.normalize(t))}function _n(){return ze(t=>t.trim())}function bn(){return ze(t=>t.toLowerCase())}function $n(){return ze(t=>t.toUpperCase())}function kn(){return ze(t=>au(t))}function tf(t,e,r){return new t({type:"array",element:e,...w(r)})}function dP(t,e,r){return new t({type:"union",options:e,...w(r)})}function fP(t,e,r){return new t({type:"union",options:e,inclusive:!1,...w(r)})}function mP(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...w(i)})}function pP(t,e,r){return new t({type:"intersection",left:e,right:r})}function gP(t,e,r,i){let n=r instanceof N,o=n?i:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...w(o)})}function hP(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...w(i)})}function vP(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...w(i)})}function yP(t,e,r){return new t({type:"set",valueType:e,...w(r)})}function _P(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...w(r)})}function bP(t,e,r){return new t({type:"enum",entries:e,...w(r)})}function $P(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...w(r)})}function nf(t,e){return new t({type:"file",...w(e)})}function kP(t,e){return new t({type:"transform",transform:e})}function wP(t,e){return new t({type:"optional",innerType:e})}function xP(t,e){return new t({type:"nullable",innerType:e})}function SP(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():cu(r)}})}function IP(t,e,r){return new t({type:"nonoptional",innerType:e,...w(r)})}function OP(t,e){return new t({type:"success",innerType:e})}function PP(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function EP(t,e,r){return new t({type:"pipe",in:e,out:r})}function TP(t,e){return new t({type:"readonly",innerType:e})}function AP(t,e,r){return new t({type:"template_literal",parts:e,...w(r)})}function NP(t,e){return new t({type:"lazy",getter:e})}function zP(t,e){return new t({type:"promise",innerType:e})}function rf(t,e,r){let i=w(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function of(t,e,r){return new t({type:"custom",check:"custom",fn:e,...w(r)})}function af(t,e){let r=$_(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(rn(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(rn(o))}},t(i.value,i)),e);return r}function $_(t,e){let r=new J({check:"custom",...w(e)});return r._zod.check=t,r}function sf(t){let e=new J({check:"describe"});return e._zod.onattach=[r=>{let i=se.get(r)??{};se.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function cf(t){let e=new J({check:"meta"});return e._zod.onattach=[r=>{let i=se.get(r)??{};se.add(r,{...i,...t})}],e._zod.check=()=>{},e}function uf(t,e){let r=w(e),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),a=new Set(n),s=t.Codec??Cr,c=t.Boolean??Nr,u=t.String??Ct,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),m=new s({type:"pipe",in:l,out:d,transform:((p,y)=>{let h=p;return r.case!=="sensitive"&&(h=h.toLowerCase()),o.has(h)?!0:a.has(h)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:m,continue:!1}),{})}),reverseTransform:((p,y)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return m}function wn(t,e,r,i={}){let n=w(i),o={...w(i),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}function bt(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??se,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function q(t,e,r={path:[],schemaPath:[]}){var i;let n=t._zod.def,o=e.seen.get(t);if(o)return o.count++,r.schemaPath.includes(t)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,a.schema,l);else{let m=a.schema,p=e.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(t,e,m,l)}let d=t._zod.parent;d&&(a.ref||(a.ref=d),q(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&Object.assign(a.schema,c),e.io==="input"&&fe(t)&&(delete a.schema.examples,delete a.schema.default),e.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,e.seen.get(t).schema}function $t(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let c=i.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(a[0])?.id,m=t.external.uri??(y=>y);if(d)return{ref:m(d)};let p=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=p,{defId:p,ref:`${m("__shared")}#/${s}/${p}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let d in l)delete l[d];l.$ref=c};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
230
-
231
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(e===a[0]){o(a);continue}if(t.external){let u=t.external.registry.get(a[0])?.id;if(e!==a[0]&&u){o(a);continue}}if(t.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&t.reused==="ref"){o(a);continue}}}function kt(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let c=t.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){i(d);let p=t.seen.get(d),y=p.schema;if(y.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(y)):Object.assign(u,y),Object.assign(u,l),s._zod.parent===d)for(let _ in u)_==="$ref"||_==="allOf"||_ in l||delete u[_];if(y.$ref&&p.def)for(let _ in u)_==="$ref"||_==="allOf"||_ in p.def&&JSON.stringify(u[_])===JSON.stringify(p.def[_])&&delete u[_]}let m=s._zod.parent;if(m&&m!==d){i(m);let p=t.seen.get(m);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let y in u)y==="$ref"||y==="allOf"||y in p.def&&JSON.stringify(u[y])===JSON.stringify(p.def[y])&&delete u[y]}t.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...t.seen.entries()].reverse())i(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:xn(e,"input",t.processors),output:xn(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function fe(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return fe(i.element,r);if(i.type==="set")return fe(i.valueType,r);if(i.type==="lazy")return fe(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return fe(i.innerType,r);if(i.type==="intersection")return fe(i.left,r)||fe(i.right,r);if(i.type==="record"||i.type==="map")return fe(i.keyType,r)||fe(i.valueType,r);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:fe(i.in,r)||fe(i.out,r);if(i.type==="object"){for(let n in i.shape)if(fe(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(fe(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(fe(n,r))return!0;return!!(i.rest&&fe(i.rest,r))}return!1}var lf=(t,e={})=>r=>{let i=bt({...r,processors:e});return q(t,i),$t(i,t),kt(i,t)},xn=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=bt({...n??{},target:o,io:e,processors:r});return q(t,a),$t(a,t),kt(a,t)};var CP={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},df=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:u}=t._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=CP[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ff=(t,e,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=t._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let d=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),p=e.target==="draft-04"||e.target==="openapi-3.0";d?p?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),m?p?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},mf=(t,e,r,i)=>{r.type="boolean"},pf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},gf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},hf=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},vf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},yf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},_f=(t,e,r,i)=>{r.not={}},bf=(t,e,r,i)=>{},$f=(t,e,r,i)=>{},kf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wf=(t,e,r,i)=>{let n=t._zod.def,o=$r(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},xf=(t,e,r,i)=>{let n=t._zod.def,o=[];for(let a of n.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Sf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},If=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Of=(t,e,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=t._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},Pf=(t,e,r,i)=>{r.type="boolean"},Ef=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Tf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Af=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Nf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},zf=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Cf=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=q(o.element,e,{...i,path:[...i.path,"items"]})},jf=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object",n.properties={};let a=o.shape;for(let u in a)n.properties[u]=q(a[u],e,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let l=o.shape[u]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=q(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},ma=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,a=n.options.map((s,c)=>q(s,e,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=a:r.anyOf=a},Df=(t,e,r,i)=>{let n=t._zod.def,o=q(n.left,e,{...i,path:[...i.path,"allOf",0]}),a=q(n.right,e,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=c},Uf=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,p)=>q(m,e,{...i,path:[...i.path,a,p]})),u=o.rest?q(o.rest,e,{...i,path:[...i.path,s,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):e.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},Rf=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=q(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)n.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=q(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=q(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},Lf=(t,e,r,i)=>{let n=t._zod.def,o=q(n.innerType,e,i),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Zf=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Mf=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Ff=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},qf=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Vf=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=e.io==="input"?o?n.out:n.in:n.out;q(a,e,i);let s=e.seen.get(t);s.ref=a},Bf=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},Kf=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},pa=(t,e,r,i)=>{let n=t._zod.def;q(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Jf=(t,e,r,i)=>{let n=t._zod.innerType;q(n,e,i);let o=e.seen.get(t);o.ref=n},fa={string:df,number:ff,boolean:mf,bigint:pf,symbol:gf,null:hf,undefined:vf,void:yf,never:_f,any:bf,unknown:$f,date:kf,enum:wf,literal:xf,nan:Sf,template_literal:If,file:Of,success:Pf,custom:Ef,function:Tf,transform:Af,map:Nf,set:zf,array:Cf,object:jf,union:ma,intersection:Df,tuple:Uf,record:Rf,nullable:Lf,nonoptional:Zf,default:Mf,prefault:Ff,catch:qf,pipe:Vf,readonly:Bf,promise:Kf,optional:pa,lazy:Jf};function ga(t,e){if("_idmap"in t){let i=t,n=bt({...e,processors:fa}),o={};for(let c of i._idmap.entries()){let[u,l]=c;q(l,n)}let a={},s={registry:i,uri:e?.uri,defs:o};n.external=s;for(let c of i._idmap.entries()){let[u,l]=c;$t(n,l),a[u]=kt(n,l)}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let r=bt({...e,processors:fa});return q(t,r),$t(r,t),kt(r,t)}var ha=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=bt({processors:fa,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return q(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),$t(this.ctx,e);let i=kt(this.ctx,e),{"~standard":n,...o}=i;return o}};var k_={};var Lr={};We(Lr,{ZodAny:()=>vm,ZodArray:()=>$m,ZodBase64:()=>Ua,ZodBase64URL:()=>Ra,ZodBigInt:()=>Nn,ZodBigIntFormat:()=>Ma,ZodBoolean:()=>An,ZodCIDRv4:()=>ja,ZodCIDRv6:()=>Da,ZodCUID:()=>Pa,ZodCUID2:()=>Ea,ZodCatch:()=>qm,ZodCodec:()=>Yr,ZodCustom:()=>Xr,ZodCustomStringFormat:()=>En,ZodDate:()=>Kr,ZodDefault:()=>Um,ZodDiscriminatedUnion:()=>wm,ZodE164:()=>La,ZodEmail:()=>Sa,ZodEmoji:()=>Ia,ZodEnum:()=>On,ZodExactOptional:()=>Cm,ZodFile:()=>Nm,ZodFunction:()=>Qm,ZodGUID:()=>Mr,ZodIPv4:()=>za,ZodIPv6:()=>Ca,ZodIntersection:()=>xm,ZodJWT:()=>Za,ZodKSUID:()=>Na,ZodLazy:()=>Hm,ZodLiteral:()=>Am,ZodMAC:()=>lm,ZodMap:()=>Em,ZodNaN:()=>Bm,ZodNanoID:()=>Oa,ZodNever:()=>_m,ZodNonOptional:()=>Ja,ZodNull:()=>gm,ZodNullable:()=>Dm,ZodNumber:()=>Tn,ZodNumberFormat:()=>Lt,ZodObject:()=>Wr,ZodOptional:()=>Ka,ZodPipe:()=>Hr,ZodPrefault:()=>Lm,ZodPreprocess:()=>Km,ZodPromise:()=>Xm,ZodReadonly:()=>Jm,ZodRecord:()=>In,ZodSet:()=>Tm,ZodString:()=>Pn,ZodStringFormat:()=>K,ZodSuccess:()=>Fm,ZodSymbol:()=>mm,ZodTemplateLiteral:()=>Gm,ZodTransform:()=>zm,ZodTuple:()=>Im,ZodType:()=>j,ZodULID:()=>Ta,ZodURL:()=>Br,ZodUUID:()=>Ve,ZodUndefined:()=>pm,ZodUnion:()=>Gr,ZodUnknown:()=>ym,ZodVoid:()=>bm,ZodXID:()=>Aa,ZodXor:()=>km,_ZodString:()=>xa,_default:()=>Rm,_function:()=>Ab,any:()=>cb,array:()=>Jr,base64:()=>B_,base64url:()=>K_,bigint:()=>rb,boolean:()=>fm,catch:()=>Vm,check:()=>Nb,cidrv4:()=>q_,cidrv6:()=>V_,codec:()=>Ob,cuid:()=>j_,cuid2:()=>D_,custom:()=>zb,date:()=>lb,describe:()=>Cb,discriminatedUnion:()=>hb,e164:()=>J_,email:()=>S_,emoji:()=>z_,enum:()=>Va,exactOptional:()=>jm,file:()=>wb,float32:()=>Q_,float64:()=>eb,function:()=>Ab,guid:()=>I_,hash:()=>X_,hex:()=>Y_,hostname:()=>H_,httpUrl:()=>N_,instanceof:()=>Db,int:()=>ka,int32:()=>tb,int64:()=>ib,intersection:()=>Sm,invertCodec:()=>Pb,ipv4:()=>Z_,ipv6:()=>F_,json:()=>Rb,jwt:()=>W_,keyof:()=>db,ksuid:()=>L_,lazy:()=>Ym,literal:()=>kb,looseObject:()=>pb,looseRecord:()=>yb,mac:()=>M_,map:()=>_b,meta:()=>jb,nan:()=>Ib,nanoid:()=>C_,nativeEnum:()=>$b,never:()=>Fa,nonoptional:()=>Mm,null:()=>hm,nullable:()=>qr,nullish:()=>xb,number:()=>dm,object:()=>fb,optional:()=>Fr,partialRecord:()=>vb,pipe:()=>wa,prefault:()=>Zm,preprocess:()=>Lb,promise:()=>Tb,readonly:()=>Wm,record:()=>Pm,refine:()=>ep,set:()=>bb,strictObject:()=>mb,string:()=>Zr,stringFormat:()=>G_,stringbool:()=>Ub,success:()=>Sb,superRefine:()=>tp,symbol:()=>ab,templateLiteral:()=>Eb,transform:()=>Ba,tuple:()=>Om,uint32:()=>nb,uint64:()=>ob,ulid:()=>U_,undefined:()=>sb,union:()=>qa,unknown:()=>Rt,url:()=>A_,uuid:()=>O_,uuidv4:()=>P_,uuidv6:()=>E_,uuidv7:()=>T_,void:()=>ub,xid:()=>R_,xor:()=>gb});var va={};We(va,{endsWith:()=>hn,gt:()=>Fe,gte:()=>de,includes:()=>pn,length:()=>Ut,lowercase:()=>fn,lt:()=>Me,lte:()=>$e,maxLength:()=>Dt,maxSize:()=>_t,mime:()=>vn,minLength:()=>Qe,minSize:()=>qe,multipleOf:()=>yt,negative:()=>ca,nonnegative:()=>la,nonpositive:()=>ua,normalize:()=>yn,overwrite:()=>ze,positive:()=>sa,property:()=>da,regex:()=>dn,size:()=>jt,slugify:()=>kn,startsWith:()=>gn,toLowerCase:()=>bn,toUpperCase:()=>$n,trim:()=>_n,uppercase:()=>mn});var Sn={};We(Sn,{ZodISODate:()=>_a,ZodISODateTime:()=>ya,ZodISODuration:()=>$a,ZodISOTime:()=>ba,date:()=>Gf,datetime:()=>Wf,duration:()=>Yf,time:()=>Hf});var ya=g("ZodISODateTime",(t,e)=>{xl.init(t,e),K.init(t,e)});function Wf(t){return Pd(ya,t)}var _a=g("ZodISODate",(t,e)=>{Sl.init(t,e),K.init(t,e)});function Gf(t){return Ed(_a,t)}var ba=g("ZodISOTime",(t,e)=>{Il.init(t,e),K.init(t,e)});function Hf(t){return Td(ba,t)}var $a=g("ZodISODuration",(t,e)=>{Ol.init(t,e),K.init(t,e)});function Yf(t){return Ad($a,t)}var w_=(t,e)=>{Ir.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Pr(t,r)},flatten:{value:r=>Or(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,tn,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,tn,2)}},isEmpty:{get(){return t.issues.length===0}}})},DP=g("ZodError",w_),ye=g("ZodError",w_,{Parent:Error});var Xf=on(ye),Qf=an(ye),em=sn(ye),tm=cn(ye),nm=go(ye),rm=ho(ye),im=vo(ye),om=yo(ye),am=_o(ye),sm=bo(ye),cm=$o(ye),um=ko(ye);var x_=new WeakMap;function Vr(t,e,r){let i=Object.getPrototypeOf(t),n=x_.get(i);if(n||(n=new Set,x_.set(i,n)),!n.has(e)){n.add(e);for(let o in r){let a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var j=g("ZodType",(t,e)=>(N.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:xn(t,"input"),output:xn(t,"output")}}),t.toJSONSchema=lf(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(r,i)=>Xf(t,r,i,{callee:t.parse}),t.safeParse=(r,i)=>em(t,r,i),t.parseAsync=async(r,i)=>Qf(t,r,i,{callee:t.parseAsync}),t.safeParseAsync=async(r,i)=>tm(t,r,i),t.spa=t.safeParseAsync,t.encode=(r,i)=>nm(t,r,i),t.decode=(r,i)=>rm(t,r,i),t.encodeAsync=async(r,i)=>im(t,r,i),t.decodeAsync=async(r,i)=>om(t,r,i),t.safeEncode=(r,i)=>am(t,r,i),t.safeDecode=(r,i)=>sm(t,r,i),t.safeEncodeAsync=async(r,i)=>cm(t,r,i),t.safeDecodeAsync=async(r,i)=>um(t,r,i),Vr(t,"ZodType",{check(...r){let i=this.def;return this.clone(k.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return ue(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(ep(r,i))},superRefine(r,i){return this.check(tp(r,i))},overwrite(r){return this.check(ze(r))},optional(){return Fr(this)},exactOptional(){return jm(this)},nullable(){return qr(this)},nullish(){return Fr(qr(this))},nonoptional(r){return Mm(this,r)},array(){return Jr(this)},or(r){return qa([this,r])},and(r){return Sm(this,r)},transform(r){return wa(this,Ba(r))},default(r){return Rm(this,r)},prefault(r){return Zm(this,r)},catch(r){return Vm(this,r)},pipe(r){return wa(this,r)},readonly(){return Wm(this)},describe(r){let i=this.clone();return se.add(i,{description:r}),i},meta(...r){if(r.length===0)return se.get(this);let i=this.clone();return se.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(t,"description",{get(){return se.get(t)?.description},configurable:!0}),t)),xa=g("_ZodString",(t,e)=>{Ct.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,n,o)=>df(t,i,n,o);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,Vr(t,"_ZodString",{regex(...i){return this.check(dn(...i))},includes(...i){return this.check(pn(...i))},startsWith(...i){return this.check(gn(...i))},endsWith(...i){return this.check(hn(...i))},min(...i){return this.check(Qe(...i))},max(...i){return this.check(Dt(...i))},length(...i){return this.check(Ut(...i))},nonempty(...i){return this.check(Qe(1,...i))},lowercase(i){return this.check(fn(i))},uppercase(i){return this.check(mn(i))},trim(){return this.check(_n())},normalize(...i){return this.check(yn(...i))},toLowerCase(){return this.check(bn())},toUpperCase(){return this.check($n())},slugify(){return this.check(kn())}})}),Pn=g("ZodString",(t,e)=>{Ct.init(t,e),xa.init(t,e),t.email=r=>t.check(Mo(Sa,r)),t.url=r=>t.check(Rr(Br,r)),t.jwt=r=>t.check(aa(Za,r)),t.emoji=r=>t.check(Ko(Ia,r)),t.guid=r=>t.check(Ur(Mr,r)),t.uuid=r=>t.check(Fo(Ve,r)),t.uuidv4=r=>t.check(qo(Ve,r)),t.uuidv6=r=>t.check(Vo(Ve,r)),t.uuidv7=r=>t.check(Bo(Ve,r)),t.nanoid=r=>t.check(Jo(Oa,r)),t.guid=r=>t.check(Ur(Mr,r)),t.cuid=r=>t.check(Wo(Pa,r)),t.cuid2=r=>t.check(Go(Ea,r)),t.ulid=r=>t.check(Ho(Ta,r)),t.base64=r=>t.check(ra(Ua,r)),t.base64url=r=>t.check(ia(Ra,r)),t.xid=r=>t.check(Yo(Aa,r)),t.ksuid=r=>t.check(Xo(Na,r)),t.ipv4=r=>t.check(Qo(za,r)),t.ipv6=r=>t.check(ea(Ca,r)),t.cidrv4=r=>t.check(ta(ja,r)),t.cidrv6=r=>t.check(na(Da,r)),t.e164=r=>t.check(oa(La,r)),t.datetime=r=>t.check(Wf(r)),t.date=r=>t.check(Gf(r)),t.time=r=>t.check(Hf(r)),t.duration=r=>t.check(Yf(r))});function Zr(t){return xd(Pn,t)}var K=g("ZodStringFormat",(t,e)=>{B.init(t,e),xa.init(t,e)}),Sa=g("ZodEmail",(t,e)=>{gl.init(t,e),K.init(t,e)});function S_(t){return Mo(Sa,t)}var Mr=g("ZodGUID",(t,e)=>{ml.init(t,e),K.init(t,e)});function I_(t){return Ur(Mr,t)}var Ve=g("ZodUUID",(t,e)=>{pl.init(t,e),K.init(t,e)});function O_(t){return Fo(Ve,t)}function P_(t){return qo(Ve,t)}function E_(t){return Vo(Ve,t)}function T_(t){return Bo(Ve,t)}var Br=g("ZodURL",(t,e)=>{hl.init(t,e),K.init(t,e)});function A_(t){return Rr(Br,t)}function N_(t){return Rr(Br,{protocol:be.httpProtocol,hostname:be.domain,...k.normalizeParams(t)})}var Ia=g("ZodEmoji",(t,e)=>{vl.init(t,e),K.init(t,e)});function z_(t){return Ko(Ia,t)}var Oa=g("ZodNanoID",(t,e)=>{yl.init(t,e),K.init(t,e)});function C_(t){return Jo(Oa,t)}var Pa=g("ZodCUID",(t,e)=>{_l.init(t,e),K.init(t,e)});function j_(t){return Wo(Pa,t)}var Ea=g("ZodCUID2",(t,e)=>{bl.init(t,e),K.init(t,e)});function D_(t){return Go(Ea,t)}var Ta=g("ZodULID",(t,e)=>{$l.init(t,e),K.init(t,e)});function U_(t){return Ho(Ta,t)}var Aa=g("ZodXID",(t,e)=>{kl.init(t,e),K.init(t,e)});function R_(t){return Yo(Aa,t)}var Na=g("ZodKSUID",(t,e)=>{wl.init(t,e),K.init(t,e)});function L_(t){return Xo(Na,t)}var za=g("ZodIPv4",(t,e)=>{Pl.init(t,e),K.init(t,e)});function Z_(t){return Qo(za,t)}var lm=g("ZodMAC",(t,e)=>{Tl.init(t,e),K.init(t,e)});function M_(t){return Id(lm,t)}var Ca=g("ZodIPv6",(t,e)=>{El.init(t,e),K.init(t,e)});function F_(t){return ea(Ca,t)}var ja=g("ZodCIDRv4",(t,e)=>{Al.init(t,e),K.init(t,e)});function q_(t){return ta(ja,t)}var Da=g("ZodCIDRv6",(t,e)=>{Nl.init(t,e),K.init(t,e)});function V_(t){return na(Da,t)}var Ua=g("ZodBase64",(t,e)=>{Cl.init(t,e),K.init(t,e)});function B_(t){return ra(Ua,t)}var Ra=g("ZodBase64URL",(t,e)=>{jl.init(t,e),K.init(t,e)});function K_(t){return ia(Ra,t)}var La=g("ZodE164",(t,e)=>{Dl.init(t,e),K.init(t,e)});function J_(t){return oa(La,t)}var Za=g("ZodJWT",(t,e)=>{Ul.init(t,e),K.init(t,e)});function W_(t){return aa(Za,t)}var En=g("ZodCustomStringFormat",(t,e)=>{Rl.init(t,e),K.init(t,e)});function G_(t,e,r={}){return wn(En,t,e,r)}function H_(t){return wn(En,"hostname",be.hostname,t)}function Y_(t){return wn(En,"hex",be.hex,t)}function X_(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=be[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return wn(En,i,n,e)}var Tn=g("ZodNumber",(t,e)=>{Ao.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,n,o)=>ff(t,i,n,o),Vr(t,"ZodNumber",{gt(i,n){return this.check(Fe(i,n))},gte(i,n){return this.check(de(i,n))},min(i,n){return this.check(de(i,n))},lt(i,n){return this.check(Me(i,n))},lte(i,n){return this.check($e(i,n))},max(i,n){return this.check($e(i,n))},int(i){return this.check(ka(i))},safe(i){return this.check(ka(i))},positive(i){return this.check(Fe(0,i))},nonnegative(i){return this.check(de(0,i))},negative(i){return this.check(Me(0,i))},nonpositive(i){return this.check($e(0,i))},multipleOf(i,n){return this.check(yt(i,n))},step(i,n){return this.check(yt(i,n))},finite(){return this}});let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function dm(t){return Nd(Tn,t)}var Lt=g("ZodNumberFormat",(t,e)=>{Ll.init(t,e),Tn.init(t,e)});function ka(t){return Cd(Lt,t)}function Q_(t){return jd(Lt,t)}function eb(t){return Dd(Lt,t)}function tb(t){return Ud(Lt,t)}function nb(t){return Rd(Lt,t)}var An=g("ZodBoolean",(t,e)=>{Nr.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>mf(t,r,i,n)});function fm(t){return Ld(An,t)}var Nn=g("ZodBigInt",(t,e)=>{No.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,n,o)=>pf(t,i,n,o),t.gte=(i,n)=>t.check(de(i,n)),t.min=(i,n)=>t.check(de(i,n)),t.gt=(i,n)=>t.check(Fe(i,n)),t.gte=(i,n)=>t.check(de(i,n)),t.min=(i,n)=>t.check(de(i,n)),t.lt=(i,n)=>t.check(Me(i,n)),t.lte=(i,n)=>t.check($e(i,n)),t.max=(i,n)=>t.check($e(i,n)),t.positive=i=>t.check(Fe(BigInt(0),i)),t.negative=i=>t.check(Me(BigInt(0),i)),t.nonpositive=i=>t.check($e(BigInt(0),i)),t.nonnegative=i=>t.check(de(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(yt(i,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function rb(t){return Md(Nn,t)}var Ma=g("ZodBigIntFormat",(t,e)=>{Zl.init(t,e),Nn.init(t,e)});function ib(t){return qd(Ma,t)}function ob(t){return Vd(Ma,t)}var mm=g("ZodSymbol",(t,e)=>{Ml.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>gf(t,r,i,n)});function ab(t){return Bd(mm,t)}var pm=g("ZodUndefined",(t,e)=>{Fl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>vf(t,r,i,n)});function sb(t){return Kd(pm,t)}var gm=g("ZodNull",(t,e)=>{ql.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>hf(t,r,i,n)});function hm(t){return Jd(gm,t)}var vm=g("ZodAny",(t,e)=>{Vl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>bf(t,r,i,n)});function cb(){return Wd(vm)}var ym=g("ZodUnknown",(t,e)=>{Bl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>$f(t,r,i,n)});function Rt(){return Gd(ym)}var _m=g("ZodNever",(t,e)=>{Kl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>_f(t,r,i,n)});function Fa(t){return Hd(_m,t)}var bm=g("ZodVoid",(t,e)=>{Jl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>yf(t,r,i,n)});function ub(t){return Yd(bm,t)}var Kr=g("ZodDate",(t,e)=>{Wl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,n,o)=>kf(t,i,n,o),t.min=(i,n)=>t.check(de(i,n)),t.max=(i,n)=>t.check($e(i,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function lb(t){return Xd(Kr,t)}var $m=g("ZodArray",(t,e)=>{Gl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Cf(t,r,i,n),t.element=e.element,Vr(t,"ZodArray",{min(r,i){return this.check(Qe(r,i))},nonempty(r){return this.check(Qe(1,r))},max(r,i){return this.check(Dt(r,i))},length(r,i){return this.check(Ut(r,i))},unwrap(){return this.element}})});function Jr(t,e){return tf($m,t,e)}function db(t){let e=t._zod.def.shape;return Va(Object.keys(e))}var Wr=g("ZodObject",(t,e)=>{Hl.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>jf(t,r,i,n),k.defineLazy(t,"shape",()=>e.shape),Vr(t,"ZodObject",{keyof(){return Va(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Rt()})},loose(){return this.clone({...this._zod.def,catchall:Rt()})},strict(){return this.clone({...this._zod.def,catchall:Fa()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return k.extend(this,r)},safeExtend(r){return k.safeExtend(this,r)},merge(r){return k.merge(this,r)},pick(r){return k.pick(this,r)},omit(r){return k.omit(this,r)},partial(...r){return k.partial(Ka,this,r[0])},required(...r){return k.required(Ja,this,r[0])}})});function fb(t,e){let r={type:"object",shape:t??{},...k.normalizeParams(e)};return new Wr(r)}function mb(t,e){return new Wr({type:"object",shape:t,catchall:Fa(),...k.normalizeParams(e)})}function pb(t,e){return new Wr({type:"object",shape:t,catchall:Rt(),...k.normalizeParams(e)})}var Gr=g("ZodUnion",(t,e)=>{zr.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ma(t,r,i,n),t.options=e.options});function qa(t,e){return new Gr({type:"union",options:t,...k.normalizeParams(e)})}var km=g("ZodXor",(t,e)=>{Gr.init(t,e),Yl.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ma(t,r,i,n),t.options=e.options});function gb(t,e){return new km({type:"union",options:t,inclusive:!1,...k.normalizeParams(e)})}var wm=g("ZodDiscriminatedUnion",(t,e)=>{Gr.init(t,e),Xl.init(t,e)});function hb(t,e,r){return new wm({type:"union",options:e,discriminator:t,...k.normalizeParams(r)})}var xm=g("ZodIntersection",(t,e)=>{Ql.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Df(t,r,i,n)});function Sm(t,e){return new xm({type:"intersection",left:t,right:e})}var Im=g("ZodTuple",(t,e)=>{zo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Uf(t,r,i,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function Om(t,e,r){let i=e instanceof N,n=i?r:e,o=i?e:null;return new Im({type:"tuple",items:t,rest:o,...k.normalizeParams(n)})}var In=g("ZodRecord",(t,e)=>{ed.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Rf(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});function Pm(t,e,r){return!e||!e._zod?new In({type:"record",keyType:Zr(),valueType:t,...k.normalizeParams(e)}):new In({type:"record",keyType:t,valueType:e,...k.normalizeParams(r)})}function vb(t,e,r){let i=ue(t);return i._zod.values=void 0,new In({type:"record",keyType:i,valueType:e,...k.normalizeParams(r)})}function yb(t,e,r){return new In({type:"record",keyType:t,valueType:e,mode:"loose",...k.normalizeParams(r)})}var Em=g("ZodMap",(t,e)=>{td.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Nf(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(qe(...r)),t.nonempty=r=>t.check(qe(1,r)),t.max=(...r)=>t.check(_t(...r)),t.size=(...r)=>t.check(jt(...r))});function _b(t,e,r){return new Em({type:"map",keyType:t,valueType:e,...k.normalizeParams(r)})}var Tm=g("ZodSet",(t,e)=>{nd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zf(t,r,i,n),t.min=(...r)=>t.check(qe(...r)),t.nonempty=r=>t.check(qe(1,r)),t.max=(...r)=>t.check(_t(...r)),t.size=(...r)=>t.check(jt(...r))});function bb(t,e){return new Tm({type:"set",valueType:t,...k.normalizeParams(e)})}var On=g("ZodEnum",(t,e)=>{rd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(i,n,o)=>wf(t,i,n,o),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new On({...e,checks:[],...k.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new On({...e,checks:[],...k.normalizeParams(n),entries:o})}});function Va(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new On({type:"enum",entries:r,...k.normalizeParams(e)})}function $b(t,e){return new On({type:"enum",entries:t,...k.normalizeParams(e)})}var Am=g("ZodLiteral",(t,e)=>{id.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>xf(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function kb(t,e){return new Am({type:"literal",values:Array.isArray(t)?t:[t],...k.normalizeParams(e)})}var Nm=g("ZodFile",(t,e)=>{od.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Of(t,r,i,n),t.min=(r,i)=>t.check(qe(r,i)),t.max=(r,i)=>t.check(_t(r,i)),t.mime=(r,i)=>t.check(vn(Array.isArray(r)?r:[r],i))});function wb(t){return nf(Nm,t)}var zm=g("ZodTransform",(t,e)=>{ad.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Af(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new mt(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(k.issue(o,r.value,e));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),r.issues.push(k.issue(a))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Ba(t){return new zm({type:"transform",transform:t})}var Ka=g("ZodOptional",(t,e)=>{Co.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>pa(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Fr(t){return new Ka({type:"optional",innerType:t})}var Cm=g("ZodExactOptional",(t,e)=>{sd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>pa(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function jm(t){return new Cm({type:"optional",innerType:t})}var Dm=g("ZodNullable",(t,e)=>{cd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Lf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function qr(t){return new Dm({type:"nullable",innerType:t})}function xb(t){return Fr(qr(t))}var Um=g("ZodDefault",(t,e)=>{ud.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Mf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Rm(t,e){return new Um({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():k.shallowClone(e)}})}var Lm=g("ZodPrefault",(t,e)=>{ld.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ff(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Zm(t,e){return new Lm({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():k.shallowClone(e)}})}var Ja=g("ZodNonOptional",(t,e)=>{dd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Zf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Mm(t,e){return new Ja({type:"nonoptional",innerType:t,...k.normalizeParams(e)})}var Fm=g("ZodSuccess",(t,e)=>{fd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Pf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Sb(t){return new Fm({type:"success",innerType:t})}var qm=g("ZodCatch",(t,e)=>{md.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Vm(t,e){return new qm({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Bm=g("ZodNaN",(t,e)=>{pd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Sf(t,r,i,n)});function Ib(t){return ef(Bm,t)}var Hr=g("ZodPipe",(t,e)=>{jo.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Vf(t,r,i,n),t.in=e.in,t.out=e.out});function wa(t,e){return new Hr({type:"pipe",in:t,out:e})}var Yr=g("ZodCodec",(t,e)=>{Hr.init(t,e),Cr.init(t,e)});function Ob(t,e,r){return new Yr({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function Pb(t){let e=t._zod.def;return new Yr({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var Km=g("ZodPreprocess",(t,e)=>{Hr.init(t,e),gd.init(t,e)}),Jm=g("ZodReadonly",(t,e)=>{hd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Bf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Wm(t){return new Jm({type:"readonly",innerType:t})}var Gm=g("ZodTemplateLiteral",(t,e)=>{vd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>If(t,r,i,n)});function Eb(t,e){return new Gm({type:"template_literal",parts:t,...k.normalizeParams(e)})}var Hm=g("ZodLazy",(t,e)=>{bd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Jf(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});function Ym(t){return new Hm({type:"lazy",getter:t})}var Xm=g("ZodPromise",(t,e)=>{_d.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Kf(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Tb(t){return new Xm({type:"promise",innerType:t})}var Qm=g("ZodFunction",(t,e)=>{yd.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Tf(t,r,i,n)});function Ab(t){return new Qm({type:"function",input:Array.isArray(t?.input)?Om(t?.input):t?.input??Jr(Rt()),output:t?.output??Rt()})}var Xr=g("ZodCustom",(t,e)=>{$d.init(t,e),j.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ef(t,r,i,n)});function Nb(t){let e=new J({check:"custom"});return e._zod.check=t,e}function zb(t,e){return rf(Xr,t??(()=>!0),e)}function ep(t,e={}){return of(Xr,t,e)}function tp(t,e){return af(t,e)}var Cb=sf,jb=cf;function Db(t,e={}){let r=new Xr({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...k.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var Ub=(...t)=>uf({Codec:Yr,Boolean:An,String:Pn},...t);function Rb(t){let e=Ym(()=>qa([Zr(t),dm(),fm(),hm(),Jr(e),Pm(Zr(),e)]));return e}function Lb(t,e){return new Km({type:"pipe",in:Ba(t),out:e})}var RP={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function LP(t){H({customError:t})}function ZP(){return H().customError}var np;np||(np={});var S={...Lr,...va,iso:Sn},MP=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function FP(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function qP(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function Zb(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return S.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return S.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=qP(n,e),a=ce(o,e);return e.refs.set(n,a),e.processing.delete(n),a}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return S.null();if(n.length===0)return S.never();if(n.length===1)return S.literal(n[0]);if(n.every(a=>typeof a=="string"))return S.enum(n);let o=n.map(a=>S.literal(a));return o.length<2?o[0]:S.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return S.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...t,type:o};return Zb(a,e)});return n.length===0?S.never():n.length===1?n[0]:S.union(n)}if(!r)return S.any();let i;switch(r){case"string":{let n=S.string();if(t.format){let o=t.format;o==="email"?n=n.check(S.email()):o==="uri"||o==="uri-reference"?n=n.check(S.url()):o==="uuid"||o==="guid"?n=n.check(S.uuid()):o==="date-time"?n=n.check(S.iso.datetime()):o==="date"?n=n.check(S.iso.date()):o==="time"?n=n.check(S.iso.time()):o==="duration"?n=n.check(S.iso.duration()):o==="ipv4"?n=n.check(S.ipv4()):o==="ipv6"?n=n.check(S.ipv6()):o==="mac"?n=n.check(S.mac()):o==="cidr"?n=n.check(S.cidrv4()):o==="cidr-v6"?n=n.check(S.cidrv6()):o==="base64"?n=n.check(S.base64()):o==="base64url"?n=n.check(S.base64url()):o==="e164"?n=n.check(S.e164()):o==="jwt"?n=n.check(S.jwt()):o==="emoji"?n=n.check(S.emoji()):o==="nanoid"?n=n.check(S.nanoid()):o==="cuid"?n=n.check(S.cuid()):o==="cuid2"?n=n.check(S.cuid2()):o==="ulid"?n=n.check(S.ulid()):o==="xid"?n=n.check(S.xid()):o==="ksuid"&&(n=n.check(S.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?S.number().int():S.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=S.boolean();break}case"null":{i=S.null();break}case"object":{let n={},o=t.properties||{},a=new Set(t.required||[]);for(let[c,u]of Object.entries(o)){let l=ce(u,e);n[c]=a.has(c)?l:l.optional()}if(t.propertyNames){let c=ce(t.propertyNames,e),u=t.additionalProperties&&typeof t.additionalProperties=="object"?ce(t.additionalProperties,e):S.any();if(Object.keys(n).length===0){i=S.record(c,u);break}let l=S.object(n).passthrough(),d=S.looseRecord(c,u);i=S.intersection(l,d);break}if(t.patternProperties){let c=t.patternProperties,u=Object.keys(c),l=[];for(let m of u){let p=ce(c[m],e),y=S.string().regex(new RegExp(m));l.push(S.looseRecord(y,p))}let d=[];if(Object.keys(n).length>0&&d.push(S.object(n).passthrough()),d.push(...l),d.length===0)i=S.object({}).passthrough();else if(d.length===1)i=d[0];else{let m=S.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)m=S.intersection(m,d[p]);i=m}break}let s=S.object(n);t.additionalProperties===!1?i=s.strict():typeof t.additionalProperties=="object"?i=s.catchall(ce(t.additionalProperties,e)):i=s.passthrough();break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let a=n.map(c=>ce(c,e)),s=o&&typeof o=="object"&&!Array.isArray(o)?ce(o,e):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof t.minItems=="number"&&(i=i.check(S.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(S.maxLength(t.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>ce(c,e)),s=t.additionalItems&&typeof t.additionalItems=="object"?ce(t.additionalItems,e):void 0;s?i=S.tuple(a).rest(s):i=S.tuple(a),typeof t.minItems=="number"&&(i=i.check(S.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(S.maxLength(t.maxItems)))}else if(o!==void 0){let a=ce(o,e),s=S.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),i=s}else i=S.array(S.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ce(t,e){if(typeof t=="boolean")return t?S.any():S.never();let r=Zb(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(u=>ce(u,e)),c=S.union(s);r=i?S.intersection(r,c):c}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(u=>ce(u,e)),c=S.xor(s);r=i?S.intersection(r,c):c}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:S.any();else{let s=i?r:ce(t.allOf[0],e),c=i?0:1;for(let u=c;u<t.allOf.length;u++)s=S.intersection(s,ce(t.allOf[u],e));r=s}t.nullable===!0&&e.version==="openapi-3.0"&&(r=S.nullable(r)),t.readOnly===!0&&(r=S.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in t&&(n[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(n[s]=t[s]);for(let s of Object.keys(t))MP.has(s)||(n[s]=t[s]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function Mb(t,e){if(typeof t=="boolean")return t?S.any():S.never();let r;try{r=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=FP(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??se};return ce(r,o)}var rp={};We(rp,{bigint:()=>JP,boolean:()=>KP,date:()=>WP,number:()=>BP,string:()=>VP});function VP(t){return Sd(Pn,t)}function BP(t){return zd(Tn,t)}function KP(t){return Zd(An,t)}function JP(t){return Fd(Nn,t)}function WP(t){return Qd(Kr,t)}H(Do());var GP=f.string().min(1),HP=f.object({type:f.literal("named"),name:f.enum(["second","minute","hour","day","week","month"])}),YP=f.object({type:f.literal("custom"),seconds:f.number().int().positive(),label:f.string().optional()}),XP=f.discriminatedUnion("type",[HP,YP]),zn=f.object({dimension:GP,window:XP,capacity:f.number().nonnegative(),enforcement:f.enum(["enforce","track"]).optional(),acknowledgeUnreachable:f.boolean().optional()}),SD=f.array(zn).max(20);var Ce=f.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),ip=f.object({default:Ce.default("preserve_current_period"),proration:f.enum(["none","prorate","credit"]).default("none"),when:f.object({price_increase:Ce.optional(),price_decrease:Ce.optional(),feature_added:Ce.optional(),feature_removed:Ce.optional(),limit_increased:Ce.optional(),limit_reduced:Ce.optional(),credit_increased:Ce.optional(),credit_reduced:Ce.optional(),rating_changed:Ce.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"}),allowImmediatePriceIncrease:f.boolean().default(!1),allowImmediateEntitlementReduction:f.boolean().default(!1)}).strict().superRefine((t,e)=>{let r=new Set(["switch_immediately","switch_immediately_prorate"]);r.has(t.when.price_increase??t.default)&&!t.allowImmediatePriceIncrease&&e.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let i of["feature_removed","limit_reduced","credit_reduced"])r.has(t.when[i]??t.default)&&!t.allowImmediateEntitlementReduction&&e.addIssue({code:"custom",path:["when",i],message:`${i} cannot switch immediately without allowImmediateEntitlementReduction: true`})});var QP=f.enum(["linear","active_count"]),eE=f.object({up_to:f.number().int().positive().nullable(),price_per_unit_micros:f.number().int().nonnegative()}),tE=f.object({strategy:f.enum(["graduated","volume"]),tiers:f.array(eE).min(1).max(20)}),je=f.object({dimension:f.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter dimension must be lowercase alphanumeric with underscores"),kind:QP.default("linear"),price_per_unit_micros:f.number().int().nonnegative().default(0),tiered:tE.optional()}).superRefine((t,e)=>{if(t.tiered&&t.price_per_unit_micros>0&&e.addIssue({code:"custom",message:"`tiered` is mutually exclusive with a non-zero `price_per_unit_micros` \u2014 drop one",path:["tiered"]}),t.tiered){let r=0,i=!1;for(let n=0;n<t.tiered.tiers.length;n++){let o=t.tiered.tiers[n];if(i){e.addIssue({code:"custom",message:"Open-ended tier (`up_to: null`) must be the final tier",path:["tiered","tiers",n,"up_to"]});break}if(o.up_to===null){i=!0;continue}o.up_to<=r&&e.addIssue({code:"custom",message:`Tier upper bounds must be strictly ascending (tier ${n} = ${o.up_to} <= previous ${r})`,path:["tiered","tiers",n,"up_to"]}),r=o.up_to}}}),nE=f.object({meters:f.array(je).default([]),recurring_fee_cents:f.number().int().nonnegative().default(0),recurring_credit_grant_cents:f.number().int().nonnegative().default(0),one_time_credit_grant_cents:f.number().int().nonnegative().default(0),trial_days:f.number().int().nonnegative().default(0),max_monthly_spend_cents:f.number().int().nonnegative().optional()});var rE=f.object({kind:f.literal("recurring"),amount_cents:f.number().int().nonnegative()}),iE=f.object({kind:f.literal("one_time"),amount_cents:f.number().int().nonnegative()}),oE=f.object({kind:f.literal("promotional"),amount_cents:f.number().int().nonnegative(),label:f.string().min(1).max(120),expires_after_days:f.number().int().positive().optional()}),aE=f.object({kind:f.literal("trial")}),sE=f.object({kind:f.literal("rollover"),percent:f.number().int().min(0).max(100)}),cE=f.object({kind:f.literal("top_up"),sku:f.string().min(1).max(120),label:f.string().min(1).max(200),price_cents:f.number().int().positive(),credit_cents:f.number().int().positive()}),uE=f.object({kind:f.literal("auto_recharge"),threshold_cents:f.number().int().nonnegative(),refill_cents:f.number().int().positive()}),lE=f.object({kind:f.literal("minimum_commit"),period:f.enum(["monthly","annual"]),amount_cents:f.number().int().positive()}),Qr=f.discriminatedUnion("kind",[rE,iE,oE,aE,sE,cE,uE,lE]),Fb=["recurring","one_time","promotional","trial","rollover","top_up","auto_recharge","minimum_commit"];var dE=f.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),fE={meters:f.array(je).default([]),recurring_fee_cents:f.number().int().nonnegative().default(0),recurring_credit_grant_cents:f.number().int().nonnegative().default(0),one_time_credit_grant_cents:f.number().int().nonnegative().default(0),trial_days:f.number().int().nonnegative().default(0),max_monthly_spend_cents:f.number().int().nonnegative().optional(),min_monthly_spend_cents:f.number().int().nonnegative().optional(),grants:f.array(Qr).max(40).default([])},mE={meters:f.array(je).optional(),recurring_fee_cents:f.number().int().nonnegative().optional(),recurring_credit_grant_cents:f.number().int().nonnegative().optional(),one_time_credit_grant_cents:f.number().int().nonnegative().optional(),trial_days:f.number().int().nonnegative().optional(),max_monthly_spend_cents:f.number().int().nonnegative().optional(),min_monthly_spend_cents:f.number().int().nonnegative().optional(),grants:f.array(Qr).max(40).optional()},qb=f.object({id:f.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:f.string().max(200).optional(),rolloutPercent:f.number().int().min(0).max(100),assignmentSeed:f.string().min(1).max(100).default("default"),prorationOnRollback:dE,...mE,limits:f.array(zn).max(20).optional(),featureGates:f.record(f.string(),f.boolean()).optional(),capability_limits:f.record(f.string().min(1).max(120),f.union([f.number().int().nonnegative(),f.boolean()])).optional(),overageBehavior:f.enum(["block","allow_and_bill"]).optional()}),op=f.object({key:f.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:f.string().min(1).max(100),description:f.string().max(500).optional(),details:f.array(f.string().max(200)).max(10).optional(),...fE,free:f.boolean().default(!1),limits:f.array(zn).max(20).default([]),featureGates:f.record(f.string(),f.boolean()).optional(),capability_limits:f.record(f.string().min(1).max(120),f.union([f.number().int().nonnegative(),f.boolean()])).default({}),overageBehavior:f.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:f.boolean().default(!0),legacy:f.boolean().optional().default(!1),variants:f.array(qb).max(4).optional(),archive:f.object({at:f.string().datetime().optional(),transitionTo:f.string().optional(),strategy:f.enum(["auto","explicit","block"]).default("auto")}).optional()});var ap=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],Cn=f.enum(ap);var pE=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,sp=f.string().min(3).max(200).refine(t=>pE.test(t),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),cp=f.object({maxAttempts:f.number().int().min(1).max(20).default(5),backoff:f.enum(["exponential","fixed"]).default("exponential")}),Vb=f.object({id:f.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:f.string().url("webhooks.endpoints[].url must be a valid URL"),secret:sp,events:f.array(Cn).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:f.boolean().default(!0),retryPolicy:cp.default({maxAttempts:5,backoff:"exponential"})}),up=f.object({endpoints:f.array(Vb).max(50).default([])});var gE=f.object({meters:f.array(je).optional(),recurring_fee_cents:f.number().int().nonnegative().optional(),recurring_credit_grant_cents:f.number().int().nonnegative().optional(),one_time_credit_grant_cents:f.number().int().nonnegative().optional(),trial_days:f.number().int().nonnegative().optional(),max_monthly_spend_cents:f.number().int().nonnegative().optional(),limits:f.array(zn).max(20).optional(),featureGates:f.record(f.string(),f.boolean()).optional(),overageBehavior:f.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:f.boolean().optional(),legacy:f.boolean().optional()}).strict(),hE=f.object({url:f.string().url().optional(),secret:sp.optional(),events:f.array(Cn).optional(),enabled:f.boolean().optional(),retryPolicy:cp.partial().optional()}).strict(),vE=f.object({plans:f.record(f.string(),gE).optional(),webhooks:f.object({endpoints:f.record(f.string(),hE).optional()}).strict().optional()}).strict(),lp=f.record(f.string().min(1).max(64),vE);var yE=f.object({key:f.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"AddOn key must be lowercase alphanumeric with hyphens/underscores"),name:f.string().min(1).max(100),description:f.string().max(500).optional(),recurring_fee_cents:f.number().int().nonnegative().default(0),meters:f.array(je).default([]),grants:f.array(Qr).max(40).default([]),capability_limits:f.record(f.string().min(1).max(120),f.union([f.number().int().nonnegative(),f.boolean()])).default({}),featureGates:f.record(f.string(),f.boolean()).optional(),selfServeEnabled:f.boolean().default(!0)}),Bb=f.record(f.string().min(1).max(64),yE).default({}),_E=f.enum(["active","canceled","paused","pending_activation"]),XD=f.object({addOnKey:f.string().min(1).max(64),status:_E.default("active"),activatedAt:f.string().datetime().optional(),canceledAt:f.string().datetime().nullable().optional(),stripeSubscriptionItemId:f.string().optional()});function Kb(t,e){t.usagePricing!==void 0&&e.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."})}function Jb(t,e){t.filter(i=>i.free).length>1&&e.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"}),t.forEach((i,n)=>{i.free&&(bE(i,n,e),$E(i,n,e))})}function bE(t,e,r){(Qb(t)??0)!==0&&r.addIssue({code:"custom",path:["plans",e,"recurring_fee_cents"],message:"Free plans must have zero price"})}function $E(t,e,r){t.limits.some(n=>!n.enforcement||n.enforcement==="enforce")||r.addIssue({code:"custom",path:["plans",e,"limits"],message:"Free plans must include at least one hard enforced limit"})}function Wb(t,e){let r=new Map;t.forEach((i,n)=>{if(i.free)return;let o=Qb(i);if(o===void 0||o<=0)return;let a=IE(i,o),s=r.get(a);if(s){e.addIssue({code:"custom",path:["plans",n,"recurring_fee_cents"],message:`Paid plan price duplicates plan "${s}" (${a})`});return}r.set(a,i.key)})}function Gb(t,e){let r=new Set((t.metering?.meters??[]).map(n=>n.key).filter(n=>typeof n=="string"&&n.length>0)),i=new Set(Object.keys(t.usage?.meters??{}));t.plans.forEach((n,o)=>{let a=n.meters;a&&a.forEach((s,c)=>{let u=s.dimension;typeof u!="string"||u.length===0||r.has(u)||i.has(u)||e.addIssue({code:"custom",path:["plans",o,"meters",c,"dimension"],message:`Plan "${n.key}" prices meter "${u}" but no metering.meters[] entry and no usage.meters[] entry declares it.`})})})}function Hb(t,e){if(!t.features)return;let r=new Set(t.plans.map(i=>i.key));for(let[i,n]of Object.entries(t.features)){if(!n.plans)continue;n.plans.forEach((a,s)=>{r.has(a)||e.addIssue({code:"custom",path:["features",i,"plans",s],message:`Feature "${i}" references unknown plan "${a}"`})});let o=new Set;n.plans.forEach((a,s)=>{o.has(a)&&e.addIssue({code:"custom",path:["features",i,"plans",s],message:`Feature "${i}" lists plan "${a}" more than once`}),o.add(a)})}}function Yb(t,e){if(!t.features)return;let r=new Set((t.metering?.meters??[]).map(n=>n.key).filter(n=>typeof n=="string"&&n.length>0)),i=!1;for(let[n,o]of Object.entries(t.features))(o.routes??[]).forEach((s,c)=>{!s.meters||s.meters.length===0||(i=!0,s.meters.forEach((u,l)=>{r.has(u)||e.addIssue({code:"custom",path:["features",n,"routes",c,"meters",l],message:`Route references unknown meter "${u}". Declare it in metering.meters[].`})}))});i&&r.size===0&&e.addIssue({code:"custom",path:["metering","meters"],message:"One or more routes declare `meters` but `metering.meters[]` is empty. Declare meters at the product level first."})}function kE(t,e){let r=new Map;for(let i of t.plans)r.set(i.key,new Set);if(!t.features){for(let i of r.values())for(let n of e)i.add(n);return r}for(let i of Object.values(t.features))wE(i,e,r);return r}function wE(t,e,r){let i=t.plans??[],n=t.routes??[];for(let o of i){let a=r.get(o);if(a){for(let s of n)if(s.unmetered!==!0){if(s.meters&&s.meters.length>0){for(let c of s.meters)a.add(c);continue}for(let c of e)a.add(c)}}}}function xE(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.dimension=="string"?e.dimension:null}var SE=new Set(["credits"]);function Xb(t,e){if(!t.plans||t.plans.length===0)return;let r=new Set((t.metering?.meters??[]).map(o=>o.key).filter(o=>typeof o=="string"&&o.length>0)),i=new Set(Object.keys(t.usage?.meters??{})),n=kE(t,r);t.plans.forEach((o,a)=>{let s=o.limits??[],c=n.get(o.key)??new Set;s.forEach((u,l)=>{if(u&&typeof u=="object"?u.acknowledgeUnreachable===!0:!1)return;let m=xE(u);m&&(c.has(m)||i.has(m)||SE.has(m)||e.addIssue({code:"custom",path:["plans",a,"limits",l,"meter"],message:`Plan "${o.key}" limits meter "${m}" but no route in any granted feature emits this meter, and the meter is not declared under usage.meters either. Either grant a feature whose routes meter "${m}" to this plan, declare the meter under metering.meters[] or usage.meters, or set acknowledgeUnreachable: true if the limit is intentional (e.g. soft budget).`}))})})}function Qb(t){return t.recurring_fee_cents}function IE(t,e){return`USD:month:${e}`}var OE=f.object({subdomain:f.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),e$=f.object({key:f.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:f.string().min(1).max(100),unit:f.string().max(20).optional(),aggregation:f.enum(["SUM","COUNT","MAX","UNIQUE_COUNT","LATEST"]).default("COUNT"),window:f.enum(["minute","hour","day","month","billing_period"]).default("billing_period"),valueProperty:f.string().optional(),uniqueProperty:f.string().optional(),groupBy:f.array(f.string()).optional(),eventCode:f.string().optional()}),t$=f.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),PE=f.enum(["pass_through","markup","fixed_margin","customer_rate"]),EE=f.object({source:f.literal("fixed"),rates:f.record(f.string().min(1),f.record(t$,f.number().int().nonnegative()))}),TE=f.object({source:f.literal("provider_catalog"),catalog:f.string().min(1).max(100),pricePolicy:PE.default("pass_through"),markupPercent:f.number().nonnegative().max(1e4).optional(),marginMicros:f.number().int().nonnegative().optional()}),AE=f.object({source:f.literal("upstream_reported"),amountField:f.string().min(1).max(500),currencyField:f.string().min(1).max(500).optional()}),NE=f.object({source:f.literal("external_rate_api"),resolver:f.string().min(1).max(100),configRef:f.string().min(1).max(200).optional()}),zE=f.object({source:f.literal("custom"),resolver:f.string().min(1).max(100),configRef:f.string().min(1).max(200).optional()}),n$=f.discriminatedUnion("source",[EE,TE,AE,NE,zE]),r$=f.object({selector:f.string().min(1).max(100).optional(),measures:f.array(t$).min(1).max(20),rating:n$.optional()}),i$=f.object({meters:f.record(f.string().min(1).max(64).regex(/^[a-z0-9_]+$/),r$)}),o$=f.object({method:f.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:f.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]"),meters:f.array(f.string().min(1).max(64)).min(1,"Use `unmetered: true` instead of an empty array (typo guard against silently-unmetered routes)").max(20).nullable().optional(),unmetered:f.boolean().optional()}).superRefine((t,e)=>{t.unmetered===!0&&t.meters&&t.meters.length>0&&e.addIssue({code:"custom",message:"`unmetered: true` is mutually exclusive with `meters` \u2014 drop one",path:["unmetered"]})}),a$=f.object({description:f.string().max(500).optional(),routes:f.array(o$).min(1).max(50),plans:f.array(f.string().min(1)).min(1).max(20)}),s$=f.record(f.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),a$),Zt=f.object({product:f.object({name:f.string().min(1).max(100),displayName:f.string().max(200).optional(),description:f.string().max(2e3).optional(),baseUrl:f.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:f.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:f.enum(["public","private"]).default("public"),logoUrl:f.string().url().optional(),primaryColor:f.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:f.string().max(50).nullable().optional()}),gateway:f.object({authHeader:f.string().min(1).max(100).default("x-api-key"),upstreamAuth:f.object({type:f.enum(["none","static_bearer"]),token:f.string().optional()}).default({type:"none"})}),metering:f.object({meters:f.array(e$).max(10).default([]),billOn4xx:f.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:i$.optional(),usagePricing:f.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:s$.optional(),billing:f.object({gracePeriodDays:f.number().int().nonnegative().default(3),subscriberChangePolicy:ip.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}).default({gracePeriodDays:3,subscriberChangePolicy:{default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1}}),plans:f.array(op).max(4).default([]),add_ons:Bb,lifecycle:f.object({breaking_changes:f.object({require_deprecation_window_days:f.number().int().nonnegative().default(0),require_successor_route:f.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:up.optional(),environments:lp.optional(),ephemeral:f.object({defaultPlan:f.string().min(1).optional()}).optional()}).superRefine((t,e)=>{Kb(t,e),Jb(t.plans,e),Wb(t.plans,e),Gb(t,e),Hb(t,e),Yb(t,e),Xb(t,e)}),CE=f.object({product:Zt.shape.product}),jE=f.object({gateway:Zt.shape.gateway}),DE=f.object({metering:Zt.shape.metering}),UE=f.object({plans:Zt.shape.plans});var De=["free","starter","pro","prepaid","metered"],RE={kind:"free",label:"Free",description:"No recurring fee and no metered usage. Pure freemium tier.",pricing:{meters:[],recurring_fee_cents:0,recurring_credit_grant_cents:0,one_time_credit_grant_cents:0,trial_days:0}},LE={kind:"starter",label:"Starter \u2014 $20/mo + $20 included",description:"$20/month subscription with $20 of usage credit each period. Stripe-style minimum-spend; overage billed at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:2e3,recurring_credit_grant_cents:2e3,one_time_credit_grant_cents:0,trial_days:0}},ZE={kind:"pro",label:"Pro \u2014 $100/mo + $200 included",description:"$100/month subscription with $200 of usage credit each period and a 14-day trial. Overage billed at $0.0005/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:500}],recurring_fee_cents:1e4,recurring_credit_grant_cents:2e4,one_time_credit_grant_cents:0,trial_days:14}},ME={kind:"prepaid",label:"Prepaid \u2014 $50 sign-up credit, then PAYG",description:"$50 one-time credit at signup. Once depleted the subscriber pays-as-they-go at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,recurring_credit_grant_cents:0,one_time_credit_grant_cents:5e3,trial_days:0}},FE={kind:"metered",label:"Metered (pay-as-you-go)",description:"No subscription fee. Pure usage billing at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,recurring_credit_grant_cents:0,one_time_credit_grant_cents:0,trial_days:0}},c$=Object.freeze({free:RE,starter:LE,pro:ZE,prepaid:ME,metered:FE});function Wa(t){return c$[t]}function dp(){return De.map(t=>c$[t])}var w1=f.object({recurring_fee_cents:f.number().int().nonnegative().optional(),recurring_credit_grant_cents:f.number().int().nonnegative().optional(),one_time_credit_grant_cents:f.number().int().nonnegative().optional(),min_monthly_spend_cents:f.number().int().nonnegative().optional(),max_monthly_spend_cents:f.number().int().nonnegative().optional(),meters:f.array(je).optional(),notes:f.string().max(2e3).optional()});var u$=(t=0)=>e=>`\x1B[${e+t}m`,l$=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,d$=(t=0)=>(e,r,i)=>`\x1B[${38+t};2;${e};${r};${i}m`,W={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},D1=Object.keys(W.modifier),qE=Object.keys(W.color),VE=Object.keys(W.bgColor),U1=[...qE,...VE];function BE(){let t=new Map;for(let[e,r]of Object.entries(W)){for(let[i,n]of Object.entries(r))W[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=W[i],t.set(n[0],n[1]);Object.defineProperty(W,e,{value:r,enumerable:!1})}return Object.defineProperty(W,"codes",{value:t,enumerable:!1}),W.color.close="\x1B[39m",W.bgColor.close="\x1B[49m",W.color.ansi=u$(),W.color.ansi256=l$(),W.color.ansi16m=d$(),W.bgColor.ansi=u$(10),W.bgColor.ansi256=l$(10),W.bgColor.ansi16m=d$(10),Object.defineProperties(W,{rgbToAnsi256:{value(e,r,i){return e===r&&r===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(e){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>W.rgbToAnsi256(...W.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,i,n;if(e>=232)r=((e-232)*10+8)/255,i=r,n=r;else{e-=16;let s=e%36;r=Math.floor(e/36)/5,i=Math.floor(s/6)/5,n=s%6/5}let o=Math.max(r,i,n)*2;if(o===0)return 30;let a=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,r,i)=>W.ansi256ToAnsi(W.rgbToAnsi256(e,r,i)),enumerable:!1},hexToAnsi:{value:e=>W.ansi256ToAnsi(W.hexToAnsi256(e)),enumerable:!1}}),W}var KE=BE(),Ue=KE;import fp from"node:process";import JE from"node:os";import f$ from"node:tty";function Oe(t,e=globalThis.Deno?globalThis.Deno.args:fp.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:G}=fp,Ga;Oe("no-color")||Oe("no-colors")||Oe("color=false")||Oe("color=never")?Ga=0:(Oe("color")||Oe("colors")||Oe("color=true")||Oe("color=always"))&&(Ga=1);function WE(){if("FORCE_COLOR"in G)return G.FORCE_COLOR==="true"?1:G.FORCE_COLOR==="false"?0:G.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(G.FORCE_COLOR,10),3)}function GE(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function HE(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let i=WE();i!==void 0&&(Ga=i);let n=r?Ga:i;if(n===0)return 0;if(r){if(Oe("color=16m")||Oe("color=full")||Oe("color=truecolor"))return 3;if(Oe("color=256"))return 2}if("TF_BUILD"in G&&"AGENT_NAME"in G)return 1;if(t&&!e&&n===void 0)return 0;let o=n||0;if(G.TERM==="dumb")return o;if(fp.platform==="win32"){let a=JE.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in G)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in G)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in G)||G.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in G)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G.TEAMCITY_VERSION)?1:0;if(G.COLORTERM==="truecolor"||G.TERM==="xterm-kitty"||G.TERM==="xterm-ghostty"||G.TERM==="wezterm")return 3;if("TERM_PROGRAM"in G){let a=Number.parseInt((G.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(G.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(G.TERM)||"COLORTERM"in G?1:o}function m$(t,e={}){let r=HE(t,{streamIsTTY:t&&t.isTTY,...e});return GE(r)}var YE={stdout:m$({isTTY:f$.isatty(1)}),stderr:m$({isTTY:f$.isatty(2)})},p$=YE;function g$(t,e,r){let i=t.indexOf(e);if(i===-1)return t;let n=e.length,o=0,a="";do a+=t.slice(o,i)+e+r,o=i+n,i=t.indexOf(e,o);while(i!==-1);return a+=t.slice(o),a}function h$(t,e,r,i){let n=0,o="";do{let a=t[i-1]==="\r";o+=t.slice(n,a?i-1:i)+e+(a?`\r
232
- `:`
233
- `)+r,n=i+1,i=t.indexOf(`
234
- `,n)}while(i!==-1);return o+=t.slice(n),o}var{stdout:v$,stderr:y$}=p$,mp=Symbol("GENERATOR"),jn=Symbol("STYLER"),ei=Symbol("IS_EMPTY"),_$=["ansi","ansi","ansi256","ansi16m"],Dn=Object.create(null),XE=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=v$?v$.level:0;t.level=e.level===void 0?r:e.level};var QE=t=>{let e=(...r)=>r.join(" ");return XE(e,t),Object.setPrototypeOf(e,ti.prototype),e};function ti(t){return QE(t)}Object.setPrototypeOf(ti.prototype,Function.prototype);for(let[t,e]of Object.entries(Ue))Dn[t]={get(){let r=Ha(this,gp(e.open,e.close,this[jn]),this[ei]);return Object.defineProperty(this,t,{value:r}),r}};Dn.visible={get(){let t=Ha(this,this[jn],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var pp=(t,e,r,...i)=>t==="rgb"?e==="ansi16m"?Ue[r].ansi16m(...i):e==="ansi256"?Ue[r].ansi256(Ue.rgbToAnsi256(...i)):Ue[r].ansi(Ue.rgbToAnsi(...i)):t==="hex"?pp("rgb",e,r,...Ue.hexToRgb(...i)):Ue[r][t](...i),eT=["rgb","hex","ansi256"];for(let t of eT){Dn[t]={get(){let{level:r}=this;return function(...i){let n=gp(pp(t,_$[r],"color",...i),Ue.color.close,this[jn]);return Ha(this,n,this[ei])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Dn[e]={get(){let{level:r}=this;return function(...i){let n=gp(pp(t,_$[r],"bgColor",...i),Ue.bgColor.close,this[jn]);return Ha(this,n,this[ei])}}}}var tT=Object.defineProperties(()=>{},{...Dn,level:{enumerable:!0,get(){return this[mp].level},set(t){this[mp].level=t}}}),gp=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},Ha=(t,e,r)=>{let i=(...n)=>nT(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,tT),i[mp]=t,i[jn]=e,i[ei]=r,i},nT=(t,e)=>{if(t.level<=0||!e)return t[ei]?"":e;let r=t[jn];if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=g$(e,r.close,r.open),r=r.parent;let o=e.indexOf(`
235
- `);return o!==-1&&(e=h$(e,n,i,o)),i+e+n};Object.defineProperties(ti.prototype,Dn);var rT=ti(),J1=ti({level:y$?y$.level:0});var U=rT;function ie(t){return JSON.stringify(t,null,2)}function Pe(t){console.log(U.green(`\u2713 ${t}`))}function _e(t){console.error(U.red(`\u2717 ${t}`))}function tt(t){console.warn(U.yellow(`\u26A0 ${t}`))}function Un(t){console.log(U.dim(t))}function hp(){return process.stdout.isTTY===!0}function Rn(t){return t==="json"||t==="table"?t:hp()?"table":"json"}var sT=!!process.env.CI||!!process.env.GITHUB_ACTIONS;function cT(){return sT&&process.env.VITEST_WORKER_ID===void 0&&process.env.NODE_ENV!=="test"}function uT(){let t=process.env.GITHUB_HEAD_REF;if(t)return t;let e=process.env.GITHUB_REF_NAME;if(e)return e;try{let r=aT("git rev-parse --abbrev-ref HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();return r&&r!=="HEAD"?r:void 0}catch{return}}function $$(t){let e=lT(t);if(e.length>0)return{valid:!1,errors:e,warnings:[]};let r=Zt.safeParse(t);if(!r.success)return{valid:!1,errors:r.error.issues.map(o=>dT(o,t)),warnings:[]};let i=mT(r.data),n=hT(r.data);return n.length>0?{valid:!1,errors:[`Duplicate plan keys: ${n.join(", ")}`],warnings:i}:{valid:!0,errors:[],warnings:i}}function lT(t){let e=[];if(!Ya(t))return e;let r=Ya(t.billing)?t.billing:void 0,i=Ya(r?.subscriberChangePolicy)?r.subscriberChangePolicy:void 0,n=Ya(i?.when)?i.when:{};b$(n.price_increase)&&i?.allowImmediatePriceIncrease!==!0&&e.push("billing.subscriberChangePolicy.when.price_increase cannot switch immediately without allowImmediatePriceIncrease: true");for(let o of["feature_removed","limit_reduced","credit_reduced"])b$(n[o])&&i?.allowImmediateEntitlementReduction!==!0&&e.push(`billing.subscriberChangePolicy.when.${o} cannot switch immediately without allowImmediateEntitlementReduction: true`);return e}function b$(t){return t==="switch_immediately"||t==="switch_immediately_prorate"}function Ya(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function dT(t,e){let r=t.path;if(r.length>=2&&r[0]==="plans"&&typeof r[1]=="number"){let o=(e?.plans??[])[r[1]],a=o?.key??o?.name??`#${r[1]}`,s=r.slice(2).join("."),c=fT(t,r)??t.message;return s?`Plan "${a}": ${s} \u2014 ${c}`:`Plan "${a}": ${c}`}return`${r.length>0?r.join("."):"(root)"}: ${t.message}`}function fT(t,e){if(t.code!=="invalid_union")return null;for(let r=0;r<e.length-2;r++)if(e[r]==="grants"&&typeof e[r+1]=="number"&&e[r+2]==="kind")return`Unknown grant kind. Valid kinds: ${Fb.join(", ")}.`;return null}function mT(t){let e=[];return e.push(...gT(t)),t.plans.length===0?e.push("No plans declared \u2014 product cannot accept signups yet"):t.plans.some(i=>i.free===!0)||e.push("No free plan \u2014 consider adding one for developer adoption"),(!t.product.displayName||t.product.displayName===t.product.name)&&e.push("product.displayName not set \u2014 using product.name on the pricing page"),e.push(...pT(t)),e}function pT(t){let e=[],r=new Set(["recurring","rollover","trial","minimum_commit"]);for(let i of t.plans){let n=i.grants??[];if(n.length===0)continue;let o=n.some(c=>c.kind==="recurring"),a=n.some(c=>c.kind==="one_time");o&&(i.recurring_credit_grant_cents??0)>0&&e.push(`Plan "${i.key}": grants[] includes a recurring entry; recurring_credit_grant_cents will be ignored.`),a&&(i.one_time_credit_grant_cents??0)>0&&e.push(`Plan "${i.key}": grants[] includes a one_time entry; one_time_credit_grant_cents will be ignored.`),n.some(c=>c.kind==="trial")&&(i.trial_days??0)===0&&e.push(`Plan "${i.key}": grants[] declares a trial entry but trial_days is 0; no trial will be delivered.`);let s=new Set;for(let c of n)r.has(c.kind)&&(s.has(c.kind)&&e.push(`Plan "${i.key}": grants[] declares "${c.kind}" more than once; only the first entry is honored.`),s.add(c.kind))}return e}function gT(t){let e=[],r=t.lifecycle;if(!r)return e;let i=r.breaking_changes;if(!i)return e;let n=i.require_deprecation_window_days,o=i.require_successor_route;return typeof n=="number"&&n>0&&e.push(`lifecycle.breaking_changes.require_deprecation_window_days = ${n}. Route removals must observe this window; server-side breaking-change-safety-check (cron 3b-2) reads ConsumerActivity to gate the publish.`),o===!0&&(n??0)===0&&e.push("lifecycle.breaking_changes.require_successor_route is true but require_deprecation_window_days is 0. Successor enforcement is a no-op without an active deprecation window."),e}function hT(t){let e=new Set,r=new Set;for(let i of t.plans)e.has(i.key)?r.add(i.key):e.add(i.key);return[...r]}function kp(t){if(!bp(t))return{ok:!1,reason:"missing",message:t};try{let e=_p(t,"utf-8");return{ok:!0,spec:$p.default.parse(e)}}catch(e){return{ok:!1,reason:"parse",message:e instanceof Error?e.message:String(e)}}}function vT(t,e="table"){if(e==="json"){console.log(ie({ok:t.errors.length===0,success:t.errors.length===0,errors:t.errors,warnings:t.warnings})),t.errors.length>0&&(process.exitCode=1);return}if(cT()){for(let r of t.errors)console.log(`::error file=${r.path??"product.yaml"}::${r.message}`);for(let r of t.warnings)console.log(`::warning file=${r.path??"product.yaml"}::${r.message}`)}if(t.errors.length===0){Pe("Managed repo validation passed");for(let r of t.warnings)tt(vp(r));return}_e(`Managed repo has ${t.errors.length} error(s):
236
- `);for(let r of t.errors)console.log(` \u2022 ${vp(r)}`);if(t.warnings.length>0){console.log();for(let r of t.warnings)tt(vp(r))}process.exitCode=1}function vp(t){return`${t.path?`\`${t.path}\`: `:""}${t.message}`}function wp(t=process.cwd()){let e={};for(let r of["product.yaml","brand.yaml"]){let i=yp(t,r);bp(i)&&(e[r]=_p(i,"utf-8"))}return ni(e,t,"docs"),ni(e,t,"skills"),ni(e,t,".skills"),ni(e,t,".github/workflows"),e}function ni(t,e,r){let i=yp(e,r);if(bp(i))for(let n of iT(i)){let o=`${r}/${n}`,a=yp(e,o),s=oT(a);s.isDirectory()?ni(t,e,o):s.isFile()&&(t[o]=_p(a,"utf-8"))}}async function yT(t,e){let r=e["product.yaml"];if(r){let n=$p.default.parse(r).product?.name;if(n){let a=(await t.listProducts()).find(s=>s.name.toLowerCase()===n.toLowerCase());if(a)return a.id}}return null}function k$(t,e){t.command("validate").description("Validate this managed repo using Farther Shore backend checks").addHelpText("after",`
237
- Agent notes:
238
- Use validate before committing managed repo changes. This uses the same backend validator as the Farther Shore GitHub bot.
95
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");let Vg=_.compile();return(ge,R)=>Vg(g,ge,R)},i,a=He,s=!Be.jitless,l=s&&fo.value,d=r.catchall,p;t._zod.parse=(g,_)=>{p??(p=o.value);let x=g.value;return a(x)?s&&l&&_?.async===!1&&_.jitless!==!0?(i||(i=e(r.shape)),g=i(g,_),d?Wd([],x,g,_,p,t):g):n(g,_):(g.issues.push({expected:"object",code:"invalid_type",input:x,inst:t}),g)}});function Td(t,r,n,o){for(let i of t)if(i.issues.length===0)return r.value=i.value,r;let e=t.filter(i=>!Ce(i));return e.length===1?(r.value=e[0].value,e[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>G(a,o,Z())))}),r)}var or=m("$ZodUnion",(t,r)=>{k.init(t,r),I(t._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),I(t._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),I(t._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),I(t._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(e=>e._zod.pattern);return new RegExp(`^(${o.map(e=>Jt(e.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(s=>Td(s,o,t,e)):Td(a,o,t,e)}});function jd(t,r,n,o){let e=t.filter(i=>i.issues.length===0);return e.length===1?(r.value=e[0].value,r):(e.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>G(a,o,Z())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var is=m("$ZodXor",(t,r)=>{or.init(t,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);u instanceof Promise?(a.push(u),i=!0):a.push(u)}return i?Promise.all(a).then(s=>jd(s,o,t,e)):jd(a,o,t,e)}}),os=m("$ZodDiscriminatedUnion",(t,r)=>{r.inclusive=!1,or.init(t,r);let n=t._zod.parse;I(t._zod,"propValues",()=>{let e={};for(let i of r.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[s,u]of Object.entries(a)){e[s]||(e[s]=new Set);for(let l of u)e[s].add(l)}}return e});let o=it(()=>{let e=r.options,i=new Map;for(let a of e){let s=a._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let u of s){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});t._zod.parse=(e,i)=>{let a=e.value;if(!He(a))return e.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),e;let s=o.value.get(a?.[r.discriminator]);return s?s._zod.run(e,i):r.unionFallback||i.direction==="backward"?n(e,i):(e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:a,path:[r.discriminator],inst:t}),e)}}),as=m("$ZodIntersection",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value,i=r.left._zod.run({value:e,issues:[]},o),a=r.right._zod.run({value:e,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>Ad(n,u,l)):Ad(n,i,a)}});function ya(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Ae(t)&&Ae(r)){let n=Object.keys(r),o=Object.keys(t).filter(i=>n.indexOf(i)!==-1),e={...t,...r};for(let i of o){let a=ya(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};e[i]=a.data}return{valid:!0,data:e}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<t.length;o++){let e=t[o],i=r[o],a=ya(e,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ad(t,r,n){let o=new Map,e;for(let s of r.issues)if(s.code==="unrecognized_keys"){e??(e=s);for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else t.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else t.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&e&&t.issues.push({...e,keys:i}),Ce(t))return t;let a=ya(r.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var mn=m("$ZodTuple",(t,r)=>{k.init(t,r);let n=r.items;t._zod.parse=(o,e)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=Cd(n,"optin"),u=Cd(n,"optout");if(!r.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:t,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:t,origin:"array"})}let l=new Array(n.length);for(let d=0;d<n.length;d++){let p=n[d]._zod.run({value:i[d],issues:[]},e);p instanceof Promise?a.push(p.then(g=>{l[d]=g})):l[d]=p}if(r.rest){let d=n.length-1,p=i.slice(n.length);for(let g of p){d++;let _=r.rest._zod.run({value:g,issues:[]},e);_ instanceof Promise?a.push(_.then(x=>Nd(x,o,d))):Nd(_,o,d)}}return a.length?Promise.all(a).then(()=>Dd(l,o,n,i,u)):Dd(l,o,n,i,u)}});function Cd(t,r){for(let n=t.length-1;n>=0;n--)if(t[n]._zod[r]!=="optional")return n+1;return 0}function Nd(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}function Dd(t,r,n,o,e){for(let i=0;i<n.length;i++){let a=t[i],s=i<o.length;if(a.issues.length){if(!s&&i>=e){r.value.length=i;break}r.issues.push(...Y(i,a.issues))}r.value[i]=a.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var ss=m("$ZodRecord",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Ae(e))return n.issues.push({expected:"record",code:"invalid_type",input:e,inst:t}),n;let i=[],a=r.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=r.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(_=>G(_,o,Z())),input:l,path:[l],inst:t});continue}let p=d.value,g=r.valueType._zod.run({value:e[l],issues:[]},o);g instanceof Promise?i.push(g.then(_=>{_.issues.length&&n.issues.push(...Y(l,_.issues)),n.value[p]=_.value})):(g.issues.length&&n.issues.push(...Y(l,g.issues)),n.value[p]=g.value)}let u;for(let l in e)s.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:e,inst:t,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(e)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(e,s))continue;let u=r.keyType._zod.run({value:s,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&rn.test(s)&&u.issues.length){let p=r.keyType._zod.run({value:Number(s),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(u=p)}if(u.issues.length){r.mode==="loose"?n.value[s]=e[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>G(p,o,Z())),input:s,path:[s],inst:t});continue}let d=r.valueType._zod.run({value:e[s],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&n.issues.push(...Y(s,p.issues)),n.value[u.value]=p.value})):(d.issues.length&&n.issues.push(...Y(s,d.issues)),n.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),cs=m("$ZodMap",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:e,inst:t}),n;let i=[];n.value=new Map;for(let[a,s]of e){let u=r.keyType._zod.run({value:a,issues:[]},o),l=r.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,p])=>{Ud(d,p,n,a,e,t,o)})):Ud(u,l,n,a,e,t,o)}return i.length?Promise.all(i).then(()=>n):n}});function Ud(t,r,n,o,e,i,a){t.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:e,inst:i,issues:t.issues.map(s=>G(s,a,Z()))})),r.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:e,inst:i,key:o,issues:r.issues.map(s=>G(s,a,Z()))})),n.value.set(t.value,r.value)}var us=m("$ZodSet",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Set))return n.issues.push({input:e,inst:t,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of e){let s=r.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(u=>Rd(u,n))):Rd(s,n)}return i.length?Promise.all(i).then(()=>n):n}});function Rd(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}var ls=m("$ZodEnum",(t,r)=>{k.init(t,r);let n=Wt(r.entries),o=new Set(n);t._zod.values=o,t._zod.pattern=new RegExp(`^(${n.filter(e=>qt.has(typeof e)).map(e=>typeof e=="string"?se(e):e.toString()).join("|")})$`),t._zod.parse=(e,i)=>{let a=e.value;return o.has(a)||e.issues.push({code:"invalid_value",values:n,input:a,inst:t}),e}}),ds=m("$ZodLiteral",(t,r)=>{if(k.init(t,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?se(o):o?se(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,e)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:t}),o}}),ms=m("$ZodFile",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return e instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:e,inst:t}),n}}),ps=m("$ZodTransform",(t,r)=>{k.init(t,r),t._zod.optin="optional",t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ee(t.constructor.name);let e=r.transform(n.value,n);if(o.async)return(e instanceof Promise?e:Promise.resolve(e)).then(a=>(n.value=a,n.fallback=!0,n));if(e instanceof Promise)throw new ue;return n.value=e,n.fallback=!0,n}});function Zd(t,r){return r===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var pn=m("$ZodOptional",(t,r)=>{k.init(t,r),t._zod.optin="optional",t._zod.optout="optional",I(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),I(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)})?$`):void 0}),t._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let e=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>Zd(a,e)):Zd(i,e)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),fs=m("$ZodExactOptional",(t,r)=>{pn.init(t,r),I(t._zod,"values",()=>r.innerType._zod.values),I(t._zod,"pattern",()=>r.innerType._zod.pattern),t._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),gs=m("$ZodNullable",(t,r)=>{k.init(t,r),I(t._zod,"optin",()=>r.innerType._zod.optin),I(t._zod,"optout",()=>r.innerType._zod.optout),I(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)}|null)$`):void 0}),I(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),hs=m("$ZodDefault",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Ld(i,r)):Ld(e,r)}});function Ld(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}var vs=m("$ZodPrefault",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),_s=m("$ZodNonOptional",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),t._zod.parse=(n,o)=>{let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Fd(i,t)):Fd(e,t)}});function Fd(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}var ys=m("$ZodSuccess",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ee("ZodSuccess");let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.issues.length===0,n)):(n.value=e.issues.length===0,n)}}),bs=m("$ZodCatch",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"optout",()=>r.innerType._zod.optout),I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(a=>G(a,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=e.value,e.issues.length&&(n.value=r.catchValue({...n,error:{issues:e.issues.map(i=>G(i,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),$s=m("$ZodNaN",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),fn=m("$ZodPipe",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>r.in._zod.values),I(t._zod,"optin",()=>r.in._zod.optin),I(t._zod,"optout",()=>r.out._zod.optout),I(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>an(a,r.in,o)):an(i,r.in,o)}let e=r.in._zod.run(n,o);return e instanceof Promise?e.then(i=>an(i,r.out,o)):an(e,r.out,o)}});function an(t,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},n)}var ar=m("$ZodCodec",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>r.in._zod.values),I(t._zod,"optin",()=>r.in._zod.optin),I(t._zod,"optout",()=>r.out._zod.optout),I(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(a=>sn(a,r,o)):sn(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>sn(a,r,o)):sn(i,r,o)}}});function sn(t,r,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){let e=r.transform(t.value,t);return e instanceof Promise?e.then(i=>cn(t,i,r.out,n)):cn(t,e,r.out,n)}else{let e=r.reverseTransform(t.value,t);return e instanceof Promise?e.then(i=>cn(t,i,r.in,n)):cn(t,e,r.in,n)}}function cn(t,r,n,o){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:r,issues:t.issues},o)}var xs=m("$ZodPreprocess",(t,r)=>{fn.init(t,r)}),ks=m("$ZodReadonly",(t,r)=>{k.init(t,r),I(t._zod,"propValues",()=>r.innerType._zod.propValues),I(t._zod,"values",()=>r.innerType._zod.values),I(t._zod,"optin",()=>r.innerType?._zod?.optin),I(t._zod,"optout",()=>r.innerType?._zod?.optout),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(Md):Md(e)}});function Md(t){return t.value=Object.freeze(t.value),t}var Ss=m("$ZodTemplateLiteral",(t,r)=>{k.init(t,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let e=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!e)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;n.push(e.slice(i,a))}else if(o===null||ho.has(typeof o))n.push(se(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(o,e)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:r.format??"template_literal",pattern:t._zod.pattern.source}),o)}),ws=m("$ZodFunction",(t,r)=>(k.init(t,r),t._def=r,t._zod.def=r,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let e=t._def.input?Hr(t._def.input,o):o,i=Reflect.apply(n,this,e);return t._def.output?Hr(t._def.output,i):i}},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let e=t._def.input?await Gr(t._def.input,o):o,i=await Reflect.apply(n,this,e);return t._def.output?await Gr(t._def.output,i):i}},t._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{let o=t.constructor;return Array.isArray(n[0])?new o({type:"function",input:new mn({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new o({type:"function",input:n[0],output:t._def.output})},t.output=n=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:n})},t)),Is=m("$ZodPromise",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>Promise.resolve(n.value).then(e=>r.innerType._zod.run({value:e,issues:[]},o))}),zs=m("$ZodLazy",(t,r)=>{k.init(t,r),I(t._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),I(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),I(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),I(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),I(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(n,o)=>t._zod.innerType._zod.run(n,o)}),Os=m("$ZodCustom",(t,r)=>{C.init(t,r),k.init(t,r),t._zod.parse=(n,o)=>n,t._zod.check=n=>{let o=n.value,e=r.fn(o);if(e instanceof Promise)return e.then(i=>Vd(i,n,o,t));Vd(e,n,o,t)}});function Vd(t,r,n,o){if(!t){let e={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),r.issues.push(ot(e))}}var cr={};$e(cr,{ar:()=>qd,az:()=>Kd,be:()=>Xd,bg:()=>Qd,ca:()=>em,cs:()=>tm,da:()=>rm,de:()=>nm,el:()=>im,en:()=>gn,eo:()=>om,es:()=>am,fa:()=>sm,fi:()=>cm,fr:()=>um,frCA:()=>lm,he:()=>dm,hr:()=>mm,hu:()=>pm,hy:()=>gm,id:()=>hm,is:()=>vm,it:()=>_m,ja:()=>ym,ka:()=>bm,kh:()=>$m,km:()=>hn,ko:()=>xm,lt:()=>Sm,mk:()=>wm,ms:()=>Im,nl:()=>zm,no:()=>Om,ota:()=>Pm,pl:()=>Tm,ps:()=>Em,pt:()=>jm,ro:()=>Am,ru:()=>Nm,sl:()=>Dm,sv:()=>Um,ta:()=>Rm,th:()=>Zm,tr:()=>Lm,ua:()=>Fm,uk:()=>vn,ur:()=>Mm,uz:()=>Vm,vi:()=>Bm,yo:()=>Wm,zhCN:()=>Hm,zhTW:()=>Gm});var Wv=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${e.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return e.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${h(e.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${e.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??e.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${e.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${e.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${e.keys.length>1?"\u0629":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function qd(){return{localeError:Wv()}}var Jv=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let 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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${e.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return e.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${h(e.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??e.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${e.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${e.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Kd(){return{localeError:Jv()}}function Yd(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var qv=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${e.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${h(e.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Yd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Yd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${e.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${e.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Xd(){return{localeError:qv()}}var Kv=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${h(e.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${e.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u043E\u0432\u0435":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Qd(){return{localeError:Kv()}}var Yv=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${e.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return e.values.length===1?`Valor inv\xE0lid: s'esperava ${h(e.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${f(e.values," o ")}`;case"too_big":{let i=e.inclusive?"com a m\xE0xim":"menys de",a=r(e.origin);return a?`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xE9s ${i} ${e.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(e.origin);return a?`Massa petit: s'esperava que ${e.origin} contingu\xE9s ${i} ${e.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${e.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${e.origin}`;default:return"Entrada inv\xE0lida"}}};function em(){return{localeError:Yv()}}var Xv=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(e){return t[e]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",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:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${e.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return e.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${h(e.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??e.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${f(e.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${e.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${e.origin}`;default:return"Neplatn\xFD vstup"}}};function tm(){return{localeError:Xv()}}var Qv=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-mailadresse",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 dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig v\xE6rdi: forventede ${h(e.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${e.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${e.origin}`;default:return"Ugyldigt input"}}};function rm(){return{localeError:Qv()}}var e_=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(e){return t[e]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",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-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${e.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return e.values.length===1?`Ung\xFCltige Eingabe: erwartet ${h(e.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ist`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ist`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${e.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${e.origin}`;default:return"Ung\xFCltige Eingabe"}}};function nm(){return{localeError:e_()}}var t_=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(e){return t[e]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return typeof e.expected=="string"&&/^[A-Z]/.test(e.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${e.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return e.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${h(e.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${e.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${e.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${e.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${e.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${e.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function im(){return{localeError:t_()}}var r_=()=>{let t={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 r(e){return t[e]??null}let 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",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`Invalid option: expected one of ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Too big: expected ${e.origin??"value"} to have ${i}${e.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Too small: expected ${e.origin} to have ${i}${e.minimum.toString()} ${a.unit}`:`Too small: expected ${e.origin} to be ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;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]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`;default:return"Invalid input"}}};function gn(){return{localeError:r_()}}var n_=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(e){return t[e]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${e.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return e.values.length===1?`Nevalida enigo: atendi\u011Dis ${h(e.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Tro malgranda: atendi\u011Dis ke ${e.origin} havu ${i}${e.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${e.origin} estu ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} \u015Dlosilo${e.keys.length>1?"j":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${e.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`;default:return"Nevalida enigo"}}};function om(){return{localeError:n_()}}var i_=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${e.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: se esperaba ${h(e.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${e.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[e.origin]??e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[e.origin]??e.origin}`;default:return"Entrada inv\xE1lida"}}};function am(){return{localeError:i_()}}var o_=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${e.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return e.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${h(e.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${f(e.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??e.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${e.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${e.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${f(e.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${e.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${e.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function sm(){return{localeError:o_()}}var a_=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(e){return t[e]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return e.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${h(e.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${e.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${e.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${f(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function cm(){return{localeError:a_()}}var s_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",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:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : instanceof ${e.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : ${h(e.values[0])} attendu`:`Option invalide : une valeur parmi ${f(e.values,"|")} attendue`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Trop grand : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Trop petit : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function um(){return{localeError:s_()}}var c_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse courriel",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:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : attendu instanceof ${e.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : attendu ${h(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u2264":"<",a=r(e.origin);return a?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${i}${e.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u2265":">",a=r(e.origin);return a?`Trop petit : attendu que ${e.origin} ait ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${e.origin} soit ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function lm(){return{localeError:c_()}}var u_=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=l=>l?t[l]:void 0,o=l=>{let d=n(l);return d?d.label:l??t.unknown.label},e=l=>`\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?r[l]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,p=u[d??""]??o(d),g=v(l.input),_=u[g]??t[g]?.label??g;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${h(l.values[0])}`;let d=l.values.map(_=>h(_));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let d=a(l.origin),p=e(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",K=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?"<=":"<",_=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${_} ${g}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${_} ${g}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),p=e(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let F=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${F}`}let K=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?">=":">",_=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${_} ${g}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${_} ${g}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let p=s[d.format],g=p?.label??d.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${f(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${e(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function dm(){return{localeError:u_()}}var l_=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(e){return t[e]??null}let n={regex:"unos",email:"email adresa",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 datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${e.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return e.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${h(e.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${e.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${e.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??e.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${e.divisor}`;case"unrecognized_keys":return`Neprepoznat${e.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[e.origin]??e.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[e.origin]??e.origin}`;default:return"Neispravan unos"}}};function mm(){return{localeError:l_()}}var d_=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(e){return t[e]??null}let n={regex:"bemenet",email:"email c\xEDm",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 id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${e.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return e.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${h(e.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xFAl nagy: ${e.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${e.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${e.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} m\xE9rete t\xFAl kicsi ${i}${e.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} t\xFAl kicsi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??e.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${e.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${e.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${e.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function pm(){return{localeError:d_()}}function fm(t,r,n){return Math.abs(t)===1?r:n}function dt(t){if(!t)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=t[t.length-1];return t+(r.includes(n)?"\u0576":"\u0568")}var m_=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(e){return t[e]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${e.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return e.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${h(e.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=fm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=fm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056C\u056B\u0576\u056B ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??e.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${e.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${e.keys.length>1?"\u0576\u0565\u0580":""}. ${f(e.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dt(e.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${dt(e.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function gm(){return{localeError:m_()}}var p_=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat email",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:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak valid: diharapkan ${h(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: diharapkan ${e.origin} memiliki ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`;default:return"Input tidak valid"}}};function hm(){return{localeError:p_()}}var f_=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(e){return t[e]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${e.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return e.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${h(e.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} hafi ${i}${e.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} s\xE9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} hafi ${i}${e.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} s\xE9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??e.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${f(e.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${e.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${e.origin}`;default:return"Rangt gildi"}}};function vm(){return{localeError:f_()}}var g_=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(e){return t[e]??null}let n={regex:"input",email:"indirizzo email",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:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return e.values.length===1?`Input non valido: atteso ${h(e.values[0])}`:`Opzione non valida: atteso uno tra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Troppo grande: ${e.origin??"valore"} deve avere ${i}${e.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Troppo piccolo: ${e.origin} deve avere ${i}${e.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${e.origin} deve essere ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${f(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`;default:return"Input non valido"}}};function _m(){return{localeError:g_()}}var h_=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(e){return t[e]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${e.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return e.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${h(e.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${f(e.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=e.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(e.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=e.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(e.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${e.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${e.keys.length>1?"\u7FA4":""}: ${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function ym(){return{localeError:h_()}}var v_=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(e){return t[e]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${e.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return e.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${h(e.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${f(e.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${e.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${e.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${e.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${e.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function bm(){return{localeError:v_()}}var __=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(e){return t[e]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${e.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return e.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${h(e.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${e.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${f(e.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function hn(){return{localeError:__()}}function $m(){return hn()}var y_=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(e){return t[e]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${e.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return e.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${h(e.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${f(e.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=e.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()} ${i}${a}`}case"too_small":{let i=e.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??e.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${e.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${f(e.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${e.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${e.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function xm(){return{localeError:y_()}}var sr=t=>t.charAt(0).toUpperCase()+t.slice(1);function km(t){let r=Math.abs(t),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var b_=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(e,i,a,s){let u=t[e]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${e.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return e.values.length===1?`Privalo b\u016Bti ${h(e.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${f(e.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[e.origin]??e.origin,a=r(e.origin,km(Number(e.maximum)),e.inclusive??!1,"smaller");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.maximum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[e.origin]??e.origin,a=r(e.origin,km(Number(e.minimum)),e.inclusive??!1,"bigger");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.minimum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??e.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${f(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[e.origin]??e.origin;return`${sr(i??e.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Sm(){return{localeError:b_()}}var $_=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(e){return t[e]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${e.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${e.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${e.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function wm(){return{localeError:$_()}}var x_=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat e-mel",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:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak sah: dijangka ${h(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: dijangka ${e.origin??"nilai"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: dijangka ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`;default:return"Input tidak sah"}}};function Im(){return{localeError:x_()}}var k_=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(e){return t[e]??null}let n={regex:"invoer",email:"emailadres",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 datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return e.values.length===1?`Ongeldige invoer: verwacht ${h(e.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=e.origin==="date"?"laat":e.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} is`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=e.origin==="date"?"vroeg":e.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} is`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`;default:return"Ongeldige invoer"}}};function zm(){return{localeError:k_()}}var S_=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-postadresse",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 dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig verdi: forventet ${h(e.values[0])}`:`Ugyldig valg: forventet en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${e.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`;default:return"Ugyldig input"}}};function Om(){return{localeError:S_()}}var w_=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n={regex:"giren",email:"epostag\xE2h",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 heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`F\xE2sit giren: umulan instanceof ${e.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`F\xE2sit giren: umulan ${h(e.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=e;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??e.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${e.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${e.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Pm(){return{localeError:w_()}}var I_=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${e.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return e.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${h(e.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${f(e.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0648\u064A`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??e.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${e.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${e.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${e.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${e.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Em(){return{localeError:I_()}}var z_=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(e){return t[e]??null}let n={regex:"wyra\u017Cenie",email:"adres email",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:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${e.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return e.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${h(e.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??e.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${e.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${e.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Tm(){return{localeError:z_()}}var O_=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(e){return t[e]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipo inv\xE1lido: esperado instanceof ${e.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: esperado ${h(e.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Muito pequeno: esperado que ${e.origin} tivesse ${i}${e.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??e.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${e.origin}`;default:return"Campo inv\xE1lido"}}};function jm(){return{localeError:O_()}}var P_=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(e){return t[e]??null}let n={regex:"intrare",email:"adres\u0103 de email",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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return e.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${h(e.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} s\u0103 fie ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Prea mic: a\u0219teptat ca ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${e.origin} s\u0103 fie ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??e.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${e.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${f(e.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${e.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${e.origin}`;default:return"Intrare invalid\u0103"}}};function Am(){return{localeError:P_()}}function Cm(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var E_=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${h(e.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Cm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Cm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${e.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0438":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Nm(){return{localeError:E_()}}var T_=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(e){return t[e]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",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 datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${e.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return e.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${h(e.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} imelo ${i}${e.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${e.origin} imelo ${i}${e.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??e.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${e.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`;default:return"Neveljaven vnos"}}};function Dm(){return{localeError:T_()}}var j_=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(e){return t[e]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",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-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${e.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return e.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${h(e.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${e.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Um(){return{localeError:j_()}}var A_=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(e){return t[e]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${e.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return e.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(e.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${f(e.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${e.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${e.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Rm(){return{localeError:A_()}}var C_=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(e){return t[e]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${e.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return e.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${h(e.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${e.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${f(e.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Zm(){return{localeError:C_()}}var N_=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(e){return t[e]??null}let n={regex:"girdi",email:"e-posta adresi",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 tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${e.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${h(e.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??e.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${e.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${e.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Lm(){return{localeError:N_()}}var D_=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${e.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${h(e.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} \u0431\u0443\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0456":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${e.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function vn(){return{localeError:D_()}}function Fm(){return vn()}var U_=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(e){return t[e]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${e.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return e.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${h(e.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${f(e.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${e.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u06D2 ${i}${e.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u0627 ${i}${e.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${e.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${e.keys.length>1?"\u0632":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Mm(){return{localeError:U_()}}var R_=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(e){return t[e]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return e.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${h(e.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??e.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${e.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${e.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Vm(){return{localeError:R_()}}var Z_=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(e){return t[e]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",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:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${e.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return e.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${h(e.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??e.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${e.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${f(e.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Bm(){return{localeError:Z_()}}var L_=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(e){return t[e]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${e.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return e.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${h(e.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??e.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${e.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${e.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Hm(){return{localeError:L_()}}var F_=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(e){return t[e]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${e.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return e.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${h(e.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${e.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${e.keys.length>1?"\u5011":""}\uFF1A${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Gm(){return{localeError:F_()}}var M_=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(e){return t[e]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${e.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return e.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${h(e.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin??"iye"} ${a.verb} ${i}${e.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.maximum}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin} ${a.verb} ${i}${e.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.minimum}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??e.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${e.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${f(e.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Wm(){return{localeError:M_()}}var Jm,Ps=Symbol("ZodOutput"),Es=Symbol("ZodInput"),_n=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let e={...o,...this._map.get(r)};return Object.keys(e).length?e:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function yn(){return new _n}(Jm=globalThis).__zod_globalRegistry??(Jm.__zod_globalRegistry=yn());var V=globalThis.__zod_globalRegistry;function Ts(t,r){return new t({type:"string",...b(r)})}function js(t,r){return new t({type:"string",coerce:!0,...b(r)})}function bn(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...b(r)})}function ur(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...b(r)})}function $n(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...b(r)})}function xn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(r)})}function kn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(r)})}function Sn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(r)})}function lr(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...b(r)})}function wn(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...b(r)})}function In(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(r)})}function zn(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...b(r)})}function On(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(r)})}function Pn(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...b(r)})}function En(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...b(r)})}function Tn(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(r)})}function jn(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(r)})}function An(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(r)})}function As(t,r){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...b(r)})}function Cn(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(r)})}function Nn(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(r)})}function Dn(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...b(r)})}function Un(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...b(r)})}function Rn(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...b(r)})}function Zn(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...b(r)})}var Cs={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ns(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(r)})}function Ds(t,r){return new t({type:"string",format:"date",check:"string_format",...b(r)})}function Us(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...b(r)})}function Rs(t,r){return new t({type:"string",format:"duration",check:"string_format",...b(r)})}function Zs(t,r){return new t({type:"number",checks:[],...b(r)})}function Ls(t,r){return new t({type:"number",coerce:!0,checks:[],...b(r)})}function Fs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...b(r)})}function Ms(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...b(r)})}function Vs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...b(r)})}function Bs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...b(r)})}function Hs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...b(r)})}function Gs(t,r){return new t({type:"boolean",...b(r)})}function Ws(t,r){return new t({type:"boolean",coerce:!0,...b(r)})}function Js(t,r){return new t({type:"bigint",...b(r)})}function qs(t,r){return new t({type:"bigint",coerce:!0,...b(r)})}function Ks(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...b(r)})}function Ys(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...b(r)})}function Xs(t,r){return new t({type:"symbol",...b(r)})}function Qs(t,r){return new t({type:"undefined",...b(r)})}function ec(t,r){return new t({type:"null",...b(r)})}function tc(t){return new t({type:"any"})}function rc(t){return new t({type:"unknown"})}function nc(t,r){return new t({type:"never",...b(r)})}function ic(t,r){return new t({type:"void",...b(r)})}function oc(t,r){return new t({type:"date",...b(r)})}function ac(t,r){return new t({type:"date",coerce:!0,...b(r)})}function sc(t,r){return new t({type:"nan",...b(r)})}function he(t,r){return new nn({check:"less_than",...b(r),value:t,inclusive:!1})}function te(t,r){return new nn({check:"less_than",...b(r),value:t,inclusive:!0})}function ve(t,r){return new on({check:"greater_than",...b(r),value:t,inclusive:!1})}function W(t,r){return new on({check:"greater_than",...b(r),value:t,inclusive:!0})}function Ln(t){return ve(0,t)}function Fn(t){return he(0,t)}function Mn(t){return te(0,t)}function Vn(t){return W(0,t)}function Ne(t,r){return new ea({check:"multiple_of",...b(r),value:t})}function De(t,r){return new na({check:"max_size",...b(r),maximum:t})}function _e(t,r){return new ia({check:"min_size",...b(r),minimum:t})}function Je(t,r){return new oa({check:"size_equals",...b(r),size:t})}function qe(t,r){return new aa({check:"max_length",...b(r),maximum:t})}function we(t,r){return new sa({check:"min_length",...b(r),minimum:t})}function Ke(t,r){return new ca({check:"length_equals",...b(r),length:t})}function mt(t,r){return new ua({check:"string_format",format:"regex",...b(r),pattern:t})}function pt(t){return new la({check:"string_format",format:"lowercase",...b(t)})}function ft(t){return new da({check:"string_format",format:"uppercase",...b(t)})}function gt(t,r){return new ma({check:"string_format",format:"includes",...b(r),includes:t})}function ht(t,r){return new pa({check:"string_format",format:"starts_with",...b(r),prefix:t})}function vt(t,r){return new fa({check:"string_format",format:"ends_with",...b(r),suffix:t})}function Bn(t,r,n){return new ga({check:"property",property:t,schema:r,...b(n)})}function _t(t,r){return new ha({check:"mime_type",mime:t,...b(r)})}function le(t){return new va({check:"overwrite",tx:t})}function yt(t){return le(r=>r.normalize(t))}function bt(){return le(t=>t.trim())}function $t(){return le(t=>t.toLowerCase())}function xt(){return le(t=>t.toUpperCase())}function kt(){return le(t=>po(t))}function cc(t,r,n){return new t({type:"array",element:r,...b(n)})}function B_(t,r,n){return new t({type:"union",options:r,...b(n)})}function H_(t,r,n){return new t({type:"union",options:r,inclusive:!1,...b(n)})}function G_(t,r,n,o){return new t({type:"union",options:n,discriminator:r,...b(o)})}function W_(t,r,n){return new t({type:"intersection",left:r,right:n})}function J_(t,r,n,o){let e=n instanceof k,i=e?o:n,a=e?n:null;return new t({type:"tuple",items:r,rest:a,...b(i)})}function q_(t,r,n,o){return new t({type:"record",keyType:r,valueType:n,...b(o)})}function K_(t,r,n,o){return new t({type:"map",keyType:r,valueType:n,...b(o)})}function Y_(t,r,n){return new t({type:"set",valueType:r,...b(n)})}function X_(t,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(e=>[e,e])):r;return new t({type:"enum",entries:o,...b(n)})}function Q_(t,r,n){return new t({type:"enum",entries:r,...b(n)})}function ey(t,r,n){return new t({type:"literal",values:Array.isArray(r)?r:[r],...b(n)})}function uc(t,r){return new t({type:"file",...b(r)})}function ty(t,r){return new t({type:"transform",transform:r})}function ry(t,r){return new t({type:"optional",innerType:r})}function ny(t,r){return new t({type:"nullable",innerType:r})}function iy(t,r,n){return new t({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():go(n)}})}function oy(t,r,n){return new t({type:"nonoptional",innerType:r,...b(n)})}function ay(t,r){return new t({type:"success",innerType:r})}function sy(t,r,n){return new t({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function cy(t,r,n){return new t({type:"pipe",in:r,out:n})}function uy(t,r){return new t({type:"readonly",innerType:r})}function ly(t,r,n){return new t({type:"template_literal",parts:r,...b(n)})}function dy(t,r){return new t({type:"lazy",getter:r})}function my(t,r){return new t({type:"promise",innerType:r})}function lc(t,r,n){let o=b(n);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:r,...o})}function dc(t,r,n){return new t({type:"custom",check:"custom",fn:r,...b(n)})}function mc(t,r){let n=qm(o=>(o.addIssue=e=>{if(typeof e=="string")o.issues.push(ot(e,o.value,n._zod.def));else{let i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(ot(i))}},t(o.value,o)),r);return n}function qm(t,r){let n=new C({check:"custom",...b(r)});return n._zod.check=t,n}function pc(t){let r=new C({check:"describe"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,description:t})}],r._zod.check=()=>{},r}function fc(t){let r=new C({check:"meta"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,...t})}],r._zod.check=()=>{},r}function gc(t,r){let n=b(r),o=n.truthy??["true","1","yes","on","y","enabled"],e=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),e=e.map(_=>typeof _=="string"?_.toLowerCase():_));let i=new Set(o),a=new Set(e),s=t.Codec??ar,u=t.Boolean??ir,l=t.String??We,d=new l({type:"string",error:n.error}),p=new u({type:"boolean",error:n.error}),g=new s({type:"pipe",in:d,out:p,transform:((_,x)=>{let K=_;return n.case!=="sensitive"&&(K=K.toLowerCase()),i.has(K)?!0:a.has(K)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:g,continue:!1}),{})}),reverseTransform:((_,x)=>_===!0?o[0]||"true":e[0]||"false"),error:n.error});return g}function St(t,r,n,o={}){let e=b(o),i={...b(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s),...e};return n instanceof RegExp&&(i.pattern=n),new t(i)}function Ue(t){let r=t?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??V,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function E(t,r,n={path:[],schemaPath:[]}){var o;let e=t._zod.def,i=r.seen.get(t);if(i)return i.count++,n.schemaPath.includes(t)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,a.schema,d);else{let g=a.schema,_=r.processors[e.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${e.type}`);_(t,r,g,d)}let p=t._zod.parent;p&&(a.ref||(a.ref=p),E(p,r,d),r.seen.get(p).isParent=!0)}let u=r.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),r.io==="input"&&J(t)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(t).schema}function Re(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let u=o.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let e=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(a[0])?.id,g=t.external.uri??(x=>x);if(p)return{ref:g(p)};let _=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=_,{defId:_,ref:`${g("__shared")}#/${s}/${_}`}}if(a[1]===n)return{ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:l+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:l}=e(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let p in d)delete d[p];d.$ref=u};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
239
96
 
240
- Examples:
241
- farthershore validate
242
- farthershore apply --dry-run --format json
243
- `).action(async()=>{let r=e(),n=t.opts().format==="json"?"json":"table",o=wp(),a=await yT(r,o);if(!a){_e("No product context found. Run from a managed product repo with a product.yaml."),process.exitCode=1;return}let s=await r.validateManagedRepo(a,{files:o,branch:uT()});vT({errors:s.errors??[],warnings:s.warnings??[]},n)})}var Z$=ii(uo(),1);import{execSync as UT}from"node:child_process";import{readFileSync as L$,existsSync as Qa}from"node:fs";import{resolve as Ln}from"node:path";var _T=new Set(["production","prod","main"]);function bT(t){return Rn(t.opts().format)}function Z(t,e,r){if(bT(t)==="json"){console.log(ie(r));return}Pe(e)}async function Y(t,e){if(e){if(e.length===36)return e;let i=(await t.listProducts()).find(n=>n.id===e||n.name.toLowerCase()===e.toLowerCase());if(i)return i.id}throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}function w$(t){let e=t?.trim();if(e)return _T.has(e.toLowerCase())?null:e}function x$(t){let e=w$(t);if(e!==void 0)return{name:e,production:e===null};let r=w$(process.env.FARTHERSHORE_ENV);return r!==void 0?{name:r,production:r===null}:{name:null,production:!0}}function S$(t){return t.production?void 0:t.name??void 0}var $T="preserve_current_period",kT={price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period",plan_removed:"preserve_current_period",plan_added:"switch_immediately",route_removed:"preserve_current_period"};function D$(t){let e=ee(t.fromSpec),r=ee(t.toSpec),i=CT(r),n=[],o=[],a=[],s=xp(e),c=xp(r);for(let[l,d]of s){let m=c.get(l);if(!m){n.push(ke(i,{kind:"plan_removed",planKey:l,from:l,to:null,message:`Plan "${l}" was removed`}));continue}wT(l,d,m,i,n)}for(let l of c.keys())s.has(l)||n.push(ke(i,{kind:"plan_added",planKey:l,from:null,to:l,message:`Plan "${l}" was added`}));PT(e,r,i,n),ET(e,r,i,n,a);for(let l of n)l.kind==="plan_removed"&&l.subscriberAction!=="new_subscribers_only"&&(jT(r,l.planKey)||o.push(`Plan "${l.planKey}": removed plan must define archive.transitionTo or use new_subscribers_only`)),l.requiresAcknowledgment&&!zT(i,l)&&o.push(NT(l.kind));n.length===0&&a.push("No billing-affecting changes detected");let u=DT(n,o);return{valid:o.length===0,from:t.fromLabel??"from",to:t.toLabel??"product.yaml",policy:i,changes:n,errors:o,warnings:a,agentHints:u}}function wT(t,e,r,i,n){let o=T$(e),a=T$(r);a>o?n.push(ke(i,{kind:"price_increase",planKey:t,from:o,to:a,message:`Plan "${t}" price increases from ${o} to ${a}`})):a<o&&n.push(ke(i,{kind:"price_decrease",planKey:t,from:o,to:a,message:`Plan "${t}" price decreases from ${o} to ${a}`})),ST(t,"feature",N$(e),N$(r),i,n),IT(t,e,r,i,n),OT(t,e,r,i,n),xT(t,e,r,i,n)}function xT(t,e,r,i,n){let o=A$(e),a=A$(r);for(let[s,c]of a){let u=o.get(s);u!==void 0&&u!==c&&n.push(ke(i,{kind:"rating_changed",planKey:t,meter:s,from:u,to:c,message:`Plan "${t}" meter "${s}" price changes from ${u} to ${c}`}))}}function ST(t,e,r,i,n,o){for(let a of i)r.has(a)||o.push(ke(n,{kind:"feature_added",planKey:t,feature:a,from:null,to:a,message:`Plan "${t}" adds ${e} "${a}"`}));for(let a of r)i.has(a)||o.push(ke(n,{kind:"feature_removed",planKey:t,feature:a,from:a,to:null,message:`Plan "${t}" removes ${e} "${a}"`}))}function IT(t,e,r,i,n){let o=z$(e),a=z$(r);for(let[s,c]of a){let u=o.get(s);u!==void 0&&(c>u?n.push(ke(i,{kind:"limit_increased",planKey:t,meter:s,from:u,to:c,message:`Plan "${t}" limit for "${s}" increases from ${u} to ${c}`})):c<u&&n.push(ke(i,{kind:"limit_reduced",planKey:t,meter:s,from:u,to:c,message:`Plan "${t}" limit for "${s}" reduces from ${u} to ${c}`})))}}function OT(t,e,r,i,n){let o=C$(e),a=C$(r);a>o?n.push(ke(i,{kind:"credit_increased",planKey:t,from:o,to:a,message:`Plan "${t}" credits increase from ${o} to ${a}`})):a<o&&n.push(ke(i,{kind:"credit_reduced",planKey:t,from:o,to:a,message:`Plan "${t}" credits reduce from ${o} to ${a}`}))}function PT(t,e,r,i){let n=j$(t),o=j$(e);for(let[a,s]of o){let c=n.get(a);c!==void 0&&Xa(c)!==Xa(s)&&i.push(ke(r,{kind:"rating_changed",meter:a,from:c,to:s,message:`Meter "${a}" rating changed`}))}}function ET(t,e,r,i,n){let o=P$(t),a=P$(e),s=[];for(let[l,d]of o){let m=a.get(l)??new Set;for(let p of d)m.has(p)||s.push({feature:l,route:p})}for(let[l,d]of o)if(!a.has(l))for(let m of d)s.some(p=>p.feature===l&&p.route===m)||s.push({feature:l,route:m});if(s.length===0)return;let c=I$(e)||I$(t),u=O$(e)||O$(t);for(let{feature:l,route:d}of s)i.push(ke(r,{kind:"route_removed",feature:l,route:d,from:d,to:null,message:`Feature "${l}" removes route ${d}`}));c>0&&n.push(`Deprecation window: ${s.length} route removal(s) detected. lifecycle.breaking_changes.require_deprecation_window_days = ${c}. The server-side breaking-change-safety-check cron will block the publish unless the window has elapsed for each consumer.`),u&&n.push("Deprecation window: lifecycle.breaking_changes.require_successor_route = true. Each removed route must declare a successor before the server accepts the transition.")}function I$(t){let e=ee(t.lifecycle),i=ee(e.breaking_changes).require_deprecation_window_days;return typeof i=="number"&&i>0?i:0}function O$(t){let e=ee(t.lifecycle);return ee(e.breaking_changes).require_successor_route===!0}function P$(t){let e=ee(t.features),r=new Map;for(let[i,n]of Object.entries(e)){let o=ee(n),a=Array.isArray(o.routes)?o.routes:[],s=new Set;for(let c of a){let u=ee(c),l=typeof u.method=="string"?u.method.toUpperCase():"GET",d=typeof u.path=="string"?u.path:null;d&&s.add(`${l} ${d}`)}r.set(i,s)}return r}function ke(t,e){let r=TT(t,e.kind);return{...e,subscriberAction:r,requiresAcknowledgment:AT(e.kind,r)}}function TT(t,e){return t.when[e]??t.default}function AT(t,e){return e!=="switch_immediately"&&e!=="switch_immediately_prorate"?!1:t==="price_increase"||t==="feature_removed"||t==="limit_reduced"||t==="credit_reduced"}function NT(t){return t==="price_increase"?"Immediate price increases require billing.subscriberChangePolicy.allowImmediatePriceIncrease: true":`Immediate ${t} requires billing.subscriberChangePolicy.allowImmediateEntitlementReduction: true`}function zT(t,e){return e.requiresAcknowledgment?e.kind==="price_increase"?t.allowImmediatePriceIncrease:t.allowImmediateEntitlementReduction:!0}function CT(t){let e=ee(t.billing),r=ee(e.subscriberChangePolicy),i=ee(r.when),n=E$(r.default)??$T;return{default:n,proration:typeof r.proration=="string"?r.proration:"none",allowImmediatePriceIncrease:r.allowImmediatePriceIncrease===!0,allowImmediateEntitlementReduction:r.allowImmediateEntitlementReduction===!0,when:Object.fromEntries(Object.entries(kT).map(([o,a])=>[o,E$(i[o])??a??n]))}}function E$(t){if(t==="preserve_current_period"||t==="switch_immediately"||t==="switch_immediately_prorate"||t==="new_subscribers_only")return t}function xp(t){let e=Array.isArray(t.plans)?t.plans:[],r=new Map;for(let i of e){let n=ee(i);typeof n.key=="string"&&r.set(n.key,n)}return r}function T$(t){return typeof t.recurring_fee_cents=="number"?t.recurring_fee_cents:0}function A$(t){let e=Array.isArray(t.meters)?t.meters:[],r=new Map;for(let i of e){let n=ee(i),o=Sp(n.dimension),a=n.price_per_unit_micros;!o||typeof a!="number"||r.set(o,a)}return r}function N$(t){let e=Array.isArray(t.features)?t.features:[],r=ee(t.featureGates),i=e.filter(n=>typeof n=="string");for(let[n,o]of Object.entries(r))o===!0&&i.push(n);return new Set(i)}function z$(t){let e=Array.isArray(t.limits)?t.limits:[],r=new Map;for(let i of e){let n=ee(i),o=Sp(n.meter)??Sp(n.dimension);!o||typeof n.capacity!="number"||r.set(o,n.capacity)}return r}function C$(t){return typeof t.recurring_credit_grant_cents=="number"?t.recurring_credit_grant_cents:0}function j$(t){let e=ee(t.usage),r=ee(e.meters),i=new Map;for(let[n,o]of Object.entries(r)){let a=ee(o).rating;a!==void 0&&i.set(n,a)}return i}function jT(t,e){if(!e)return;let r=xp(t).get(e),i=ee(r?.archive);return typeof i.transitionTo=="string"?i.transitionTo:void 0}function ee(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function Sp(t){return typeof t=="string"?t:void 0}function Xa(t){return Array.isArray(t)?`[${t.map(Xa).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[r])=>e.localeCompare(r)).map(([e,r])=>`${JSON.stringify(e)}:${Xa(r)}`).join(",")}}`:JSON.stringify(t)}function DT(t,e){let r=[];return e.length>0&&r.push("Fix errors before running farthershore apply."),t.some(i=>i.kind==="plan_removed")&&r.push("For removed plans with active subscribers, add archive.transitionTo or set the relevant policy to new_subscribers_only."),t.some(i=>i.requiresAcknowledgment)&&r.push("Avoid immediate harmful changes unless the YAML explicitly acknowledges them."),t.some(i=>i.kind==="route_removed")&&r.push("Route removals are subject to lifecycle.breaking_changes.require_deprecation_window_days. The server-side breaking-change-safety-check cron consults ConsumerActivity per route before allowing the publish."),t.length>0&&r.push("New subscribers use the proposed product.yaml immediately; listed subscriberAction values apply to existing subscribers."),r}var RT=!!process.env.CI||!!process.env.GITHUB_ACTIONS,ri="product.yaml";function Mt(){return RT&&process.env.VITEST_WORKER_ID===void 0&&process.env.NODE_ENV!=="test"}function LT(t){if(t)return t;let e=process.env.GITHUB_HEAD_REF;if(e)return e;let r=process.env.GITHUB_REF_NAME;if(r)return r;try{let i=UT("git rev-parse --abbrev-ref HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();return i&&i!=="HEAD"?i:void 0}catch{return}}function M$(){let t=Ln(ri);if(!Qa(t))return null;try{return Z$.default.parse(L$(t,"utf-8")).product?.name??null}catch{return null}}function ZT(t,e=ri){let r=Ln(e);if(!Qa(r))return null;let i=kp(r);if(!i.ok)return F$(i,t),null;let n=$$(i.spec);if(!n.valid)return MT(n,t),null;if(t!=="json"){Pe("Local product.yaml passed validation");for(let o of n.warnings)tt(o);Un(`Remote validation will use ${e} as the proposal.`)}return i}function F$(t,e){let r=t.reason==="parse"?`Local product.yaml failed to parse; remote validation was not started.
244
- ${t.message}`:`Local product.yaml could not be read; remote validation was not started.
245
- ${t.message}`;Mt()&&console.log(`::error file=product.yaml::${r}`),e==="json"?q$([{message:r}],[]):_e(r),process.exitCode=1}function MT(t,e){if(Mt()){for(let r of t.errors)console.log(`::error file=product.yaml::${r}`);for(let r of t.warnings)console.log(`::warning file=product.yaml::${r}`)}if(e==="json")q$(t.errors.map(r=>({message:r})),t.warnings.map(r=>({message:r})));else{_e(`Local product.yaml failed validation; remote validation was not started.
246
- `);for(let r of t.errors)console.log(` \u2022 ${r}`);t.warnings.length>0&&console.log();for(let r of t.warnings)tt(r)}process.exitCode=1}function q$(t,e){console.log(ie({ok:!1,success:!1,phase:"local_validation",errors:t,warnings:e,nextActions:["Fix product.yaml and run apply again"]}))}function U$(t){let e=Ln(ri);if(!Qa(e))return!1;if(!t)return!0;let r=M$();return typeof r=="string"&&r.toLowerCase()===t.toLowerCase()}async function FT(t,e){let r=e??M$();if(!r)return null;if(r.length===36&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(r))return r;try{return(await t.listProducts()).find(o=>o.name===r||o.name.toLowerCase()===r.toLowerCase())?.id??null}catch(i){let n=i instanceof Error?i.message:String(i);process.stderr.write(`Warning: Failed to resolve product slug: ${n}
247
- `)}return null}function qT(t,e){return{...t?{branch:t}:{},...e?{dryRun:!0}:{}}}function xt(t){let e=t.code?`[${t.code}] `:"",r=t.planKey?`(plan: ${t.planKey}) `:"";return`${e}${r}${t.message}`}function VT(t,e){let r=t.ok!==!1;if(Mt()){for(let i of t.errors??[])console.log(`::error file=product.yaml::${xt(i)}`);for(let i of t.warnings??[])console.log(`::warning file=product.yaml::${xt(i)}`)}if(e==="json"){console.log(ie({ok:r,success:r,...t,errors:t.errors??[],warnings:t.warnings??[],lifecyclePlan:t.lifecyclePlan??null,nextActions:r?[t.dryRun?"Run farthershore apply --format json to publish this proposal":"Product config published"]:["Fix errors and run farthershore apply --dry-run --format json"]})),r||(process.exitCode=1);return}if(r){Pe(t.dryRun?"Remote config dry-run passed":"Product config published");for(let i of t.warnings??[])tt(xt(i));BT(t.lifecyclePlan)}else{_e(`Remote config validation failed
248
- `);for(let i of t.errors??[])console.log(` \u2022 ${xt(i)}`);process.exitCode=1}}function BT(t){if(t){if(t.requiresSubscriptionMigration){tt(`Subscription migration required (${t.actions.length} domain action(s)). See lifecyclePlan in --format json output for details.`);return}t.actions.length>0&&Un(`Lifecycle plan: ${t.actions.length} domain action(s); no subscription migration required.`)}}function KT(t,e){let r=t.success!==!1&&(t.errors?.length??0)===0;if(Mt()){for(let i of t.errors??[])console.log(`::error file=${i.path??"product.yaml"}::${xt(i)}`);for(let i of t.warnings??[])console.log(`::warning file=${i.path??"product.yaml"}::${xt(i)}`)}if(e==="json"){console.log(ie({ok:r,success:r,dryRun:!0,errors:t.errors??[],warnings:t.warnings??[],summary:t.summary,nextActions:r?["Managed repo validation passed"]:["Fix the reported managed repo validation errors"]})),r||(process.exitCode=1);return}if(r){Pe("Managed repo validation passed");for(let i of t.warnings??[])tt(xt(i));return}_e(`Managed repo validation failed
249
- `);for(let i of t.errors??[]){let n=i.path?`\`${i.path}\`: `:"";console.log(` \u2022 ${n}${xt(i)}`)}process.exitCode=1}function V$(t,e){t.command("apply [product]").description("Publish the shared server draft, or submit a product.yaml proposal with --to. Core publishes only after schema, transition-safety, and compiler dry-run checks pass.").option("--branch <branch>","Override the branch used for env-scoped compilation (default: auto-detected)").option("--env <environment>","Environment name or production").option("--to <file>","Publish this product.yaml proposal instead of the stored draft").option("--save-draft","When used with --to, stage the file as the shared draft before publishing").option("--dry-run","Run remote compile without publishing product state").addHelpText("after",`
250
- Agent notes:
251
- apply without --to publishes the shared server draft as one product release.
252
- apply --to product.yaml submits that file as a one-off proposal; add --save-draft to also stage it.
253
- --dry-run runs server-side validation without replacing acceptedProductSpec.
254
- Use --format json for stable output: ok, success, errors, warnings, nextActions.
255
-
256
- Examples:
257
- farthershore apply --dry-run --format json
258
- farthershore apply --format json
259
- farthershore apply --to product.yaml --dry-run --format json
260
- farthershore apply --to product.yaml --format json
261
- farthershore apply my-weather-api --dry-run --format json
262
- farthershore apply my-weather-api --env preview --dry-run --format json
263
- farthershore apply my-weather-api --branch feature/billing-change --dry-run --format json
264
- `).action(async(r,i)=>{let n=e(),o=t.opts(),a=i.env??o.env,s=o.format==="json"?"json":"table",c=typeof i.to=="string"||U$(r);if(i.to&&!Qa(Ln(i.to))){_e(`Product YAML file not found: ${i.to}`),process.exitCode=1;return}if(!i.to&&c&&!U$(r)){_e("No matching product.yaml found. Run from a product repo or pass the matching product name."),process.exitCode=1;return}let u=c&&i.dryRun?kp(Ln(i.to??ri)):c?ZT(s,i.to??ri):null;if(c&&!u?.ok){u&&F$(u,s);return}let l=await FT(n,r);if(!l){let y=r?`Product "${r}" not found. Check the name and try again.`:`No product specified and no product.yaml found.
265
- Run from inside a product repo, or pass the slug: farthershore apply my-api`;_e(y),process.exitCode=1;return}let d=x$(a),m=S$(d),p=m?void 0:LT(i.branch);p&&Mt()&&console.log(`::notice::Applying branch '${p}'`),m&&Mt()&&console.log(`::notice::Applying environment '${m}'`);try{let y=u?.ok?u.spec:void 0,h=await JT(n,l,m,y);if(y!==void 0&&i.saveDraft&&!i.dryRun&&await n.updateProductConfigDraft(l,y,{env:m,source:"CLI"}),y!==void 0&&i.dryRun){let O=wp();i.to&&(O["product.yaml"]=L$(Ln(i.to),"utf-8"));let T=await n.validateManagedRepo(l,{files:O,branch:p});KT(T,s);return}let _=await n.applyProductConfig(l,{spec:y,...qT(p,i.dryRun),env:m,source:"CLI"});VT({..._,localPlanTransition:h},s)}catch(y){let h=y instanceof Error?y.message:"Compilation check failed";if(Mt()&&console.log(`::error::${h}`),s==="json"){let _=y&&typeof y=="object"&&"details"in y?y.details??{}:{};console.log(ie({ok:!1,success:!1,errors:R$(_.errors,h),warnings:R$(_.warnings),nextActions:["Fix product.yaml and run farthershore apply --dry-run --format json"]}))}else _e(h);process.exitCode=1}})}async function JT(t,e,r,i){try{let n=await t.getProductConfig(e,{env:r,state:"accepted"}),o=await t.getProductConfig(e,{env:r,state:"draft"});return n.acceptedConfig?D$({fromSpec:n.acceptedConfig,toSpec:i??o.draftConfig,fromLabel:"acceptedProductSpec",toLabel:i?"product.yaml":"draftProductSpec"}):void 0}catch{return}}function R$(t,e){return Array.isArray(t)?t.map(r=>r&&typeof r=="object"&&"message"in r?r:{message:String(r)}):e?[{message:e}]:[]}import{createInterface as WT}from"node:readline";async function GT(t){if(!hp())throw new C("No token provided. Pass --token, set FARTHERSHORE_TOKEN, or run interactively.",void 0,{code:"AUTH_NO_TOKEN"});let e=WT({input:process.stdin,output:process.stdout,terminal:!0});return new Promise(r=>{e.question(t,i=>{e.close(),r(i.trim())})})}function B$(t,e){let r=t.command("auth").description("Manage CLI auth credentials");r.command("login").description("Store a maker token in ~/.farthershore/credentials.json").option("--token <token>","Maker token (mk_...). Falls back to FARTHERSHORE_TOKEN env, then prompt.").action(async i=>{let n=i.token??process.env.FARTHERSHORE_TOKEN??await GT("Maker token: ");if(!n||n.length<10)throw new C("Token looks malformed.",void 0,{code:"AUTH_INVALID_TOKEN"});let o=li();Qp({...o??{},token:n}),Z(t,"Token stored.",{ok:!0})}),r.command("whoami").description("Show current auth identity (org, role, scopes)").action(async()=>{let n=await e().bootstrap(),o=n.memberships.find(a=>a.organization.id===n.activeOrganization.id);Z(t,`Authenticated as ${n.user.id}`,{ok:!0,userId:n.user.id,clerkUserId:n.user.clerkUserId,organizationId:n.activeOrganization.id,organizationName:n.activeOrganization.name??null,organizationSlug:n.activeOrganization.slug??null,role:o?.role??null,memberships:n.memberships.map(a=>({organizationId:a.organization.id,organizationName:a.organization.name??null,role:a.role}))})}),r.command("logout").description("Clear stored credentials").action(()=>{eg(),Z(t,"Logged out.",{ok:!0})})}function K$(t,e){let r=t.command("product").description("Product lifecycle: list, show, create, update, delete, compile");r.command("list").description("List products in the current org").action(async()=>{let n=await e().listProducts();Z(t,`${n.length} product(s)`,{ok:!0,count:n.length,products:n.map(o=>({id:o.id,name:o.name,displayName:o.displayName??null,baseUrl:o.baseUrl,status:o.status??null}))})}),r.command("show <productIdOrName>").description("Show a product").option("--env <env>","Environment scope (preview branch name)").action(async(i,n)=>{let o=e(),a=await Y(o,i),s=await o.getProduct(a,{env:n.env});Z(t,`Product ${a}`,{ok:!0,product:s})}),r.command("create").description("Create a new product (and provision a GitHub repo)").requiredOption("--name <name>","Product slug (becomes the subdomain)").option("--display-name <displayName>","Human-friendly product name").option("--description <description>").option("--base-url <url>","Upstream API base URL the gateway proxies to").action(async i=>{let o=await e().initProduct({name:i.name,baseUrl:i.baseUrl,description:i.description,displayName:i.displayName});Z(t,`Product created: ${i.name}`,{ok:!0,result:o})}),r.command("update <productIdOrName>").description("Update product metadata (name, baseUrl, description, etc.)").option("--display-name <displayName>").option("--description <description>").option("--base-url <url>").option("--env <env>","Environment scope").action(async(i,n)=>{let o=e(),a=await Y(o,i),s={};if(n.displayName!==void 0&&(s.displayName=n.displayName),n.description!==void 0&&(s.description=n.description),n.baseUrl!==void 0&&(s.baseUrl=n.baseUrl),Object.keys(s).length===0)throw new C("No fields to update. Pass --display-name / --base-url / --description.",void 0,{code:"PRODUCT_UPDATE_NO_FIELDS"});let c=await o.updateProduct(a,s,{env:n.env});Z(t,`Product ${a} updated`,{ok:!0,product:c})}),r.command("delete <productIdOrName>").description("Permanently delete a product. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(i,n)=>{if(!n.yes)throw new C("Pass --yes to confirm product deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let o=e(),a=await Y(o,i);await o.deleteProduct(a),Z(t,`Product ${a} deleted`,{ok:!0,deleted:a})}),r.command("compile <productIdOrName>").description("Run the product compiler").option("--branch <branch>","Git branch to compile").option("--dry-run","Validate only; do not publish").action(async(i,n)=>{let o=e(),a=await Y(o,i),s=await o.compileProduct(a,{branch:n.branch,dryRun:n.dryRun});Z(t,`Compile complete for ${a}`,{ok:!0,result:s})})}function HT(t){if(!t||typeof t!="object")return[];let e=t;return Array.isArray(e.data)?e.data:Array.isArray(e.environments)?e.environments:[]}function J$(t,e){let r=t.command("env").description("Manage product environments (preview branches, prod)");r.command("list <productIdOrName>").description("List environments for a product").action(async i=>{let n=e(),o=await Y(n,i),a=HT(await n.listEnvironments(o));Z(t,`${a.length} environment(s)`,{ok:!0,productId:o,count:a.length,environments:a.map(s=>({id:s.id,name:s.name,branch:s.branch??null,portalHostname:s.portalHostname??null,runtimeHostname:s.runtimeHostname??null,status:s.status??null}))})}),r.command("create <productIdOrName>").description("Create a preview environment bound to a git branch").requiredOption("--name <name>","Environment name (e.g. preview, staging)").requiredOption("--branch <branch>","Git branch to track (e.g. env/preview)").action(async(i,n)=>{let o=e(),a=await Y(o,i),s=await o.createEnvironment(a,{name:n.name,branch:n.branch});Z(t,`Environment ${n.name} created`,{ok:!0,productId:a,environment:s})}),r.command("delete <productIdOrName> <envName>").description("Delete an environment by name. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(i,n,o)=>{if(!o.yes)throw new C("Pass --yes to confirm environment deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=e(),s=await Y(a,i);await a.deleteEnvironment(s,n),Z(t,`Environment ${n} deleted`,{ok:!0,productId:s,deleted:n})})}function YT(t){if(!t||typeof t!="object")return[];let e=t;return Array.isArray(e.data)?e.data:Array.isArray(e.plans)?e.plans:Array.isArray(t)?t:[]}function XT(t){if(t.length===0)return"(no plans)";let e=["KEY","NAME","FREE","FEE\xA2","RECUR_GRANT\xA2","ONE_TIME\xA2","TRIAL_D","MAX_SPEND\xA2","STATUS"],r=s=>s===null?"\u2014":s.toLocaleString("en-US"),i=t.map(s=>[s.key,s.name,s.free?"Y":"N",r(s.recurring_fee_cents),r(s.recurring_credit_grant_cents),r(s.one_time_credit_grant_cents),r(s.trial_days),r(s.max_monthly_spend_cents),s.status]),n=e.map((s,c)=>Math.max(s.length,...i.map(u=>u[c]?.length??0))),o=s=>s.map((c,u)=>c.padEnd(n[u]??c.length)).join(" "),a=n.map(s=>"-".repeat(s)).join(" ");return[o(e),a,...i.map(o)].join(`
266
- `)}function W$(t,e){let r=t.command("plan").description("Plan management: list, create, update, delete");r.command("list <productIdOrName>").description("List plans for a product").addHelpText("after",`
97
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(r===a[0]){i(a);continue}if(t.external){let l=t.external.registry.get(a[0])?.id;if(r!==a[0]&&l){i(a);continue}}if(t.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&t.reused==="ref"){i(a);continue}}}function Ze(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,d={...l},p=u.ref;if(u.ref=null,p){o(p);let _=t.seen.get(p),x=_.schema;if(x.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(x)):Object.assign(l,x),Object.assign(l,d),s._zod.parent===p)for(let F in l)F==="$ref"||F==="allOf"||F in d||delete l[F];if(x.$ref&&_.def)for(let F in l)F==="$ref"||F==="allOf"||F in _.def&&JSON.stringify(l[F])===JSON.stringify(_.def[F])&&delete l[F]}let g=s._zod.parent;if(g&&g!==p){o(g);let _=t.seen.get(g);if(_?.schema.$ref&&(l.$ref=_.schema.$ref,_.def))for(let x in l)x==="$ref"||x==="allOf"||x in _.def&&JSON.stringify(l[x])===JSON.stringify(_.def[x])&&delete l[x]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})};for(let s of[...t.seen.entries()].reverse())o(s[0]);let e={};if(t.target==="draft-2020-12"?e.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?e.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?e.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(r)?.id;if(!s)throw new Error("Schema is missing an `id` property");e.$id=t.external.uri(s)}Object.assign(e,n.def??n.schema);let i=t.metadataRegistry.get(r)?.id;i!==void 0&&e.id===i&&delete e.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?e.$defs=a:e.definitions=a);try{let s=JSON.parse(JSON.stringify(e));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:wt(r,"input",t.processors),output:wt(r,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function J(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return J(o.element,n);if(o.type==="set")return J(o.valueType,n);if(o.type==="lazy")return J(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return J(o.innerType,n);if(o.type==="intersection")return J(o.left,n)||J(o.right,n);if(o.type==="record"||o.type==="map")return J(o.keyType,n)||J(o.valueType,n);if(o.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:J(o.in,n)||J(o.out,n);if(o.type==="object"){for(let e in o.shape)if(J(o.shape[e],n))return!0;return!1}if(o.type==="union"){for(let e of o.options)if(J(e,n))return!0;return!1}if(o.type==="tuple"){for(let e of o.items)if(J(e,n))return!0;return!!(o.rest&&J(o.rest,n))}return!1}var hc=(t,r={})=>n=>{let o=Ue({...n,processors:r});return E(t,o),Re(o,t),Ze(o,t)},wt=(t,r,n={})=>o=>{let{libraryOptions:e,target:i}=o??{},a=Ue({...e??{},target:i,io:r,processors:n});return E(t,a),Re(a,t),Ze(a,t)};var py={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vc=(t,r,n,o)=>{let e=n;e.type="string";let{minimum:i,maximum:a,format:s,patterns:u,contentEncoding:l}=t._zod.bag;if(typeof i=="number"&&(e.minLength=i),typeof a=="number"&&(e.maxLength=a),s&&(e.format=py[s]??s,e.format===""&&delete e.format,s==="time"&&delete e.format),l&&(e.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?e.pattern=d[0].source:d.length>1&&(e.allOf=[...d.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},_c=(t,r,n,o)=>{let e=n,{minimum:i,maximum:a,format:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=t._zod.bag;typeof s=="string"&&s.includes("int")?e.type="integer":e.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),g=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),_=r.target==="draft-04"||r.target==="openapi-3.0";p?_?(e.minimum=d,e.exclusiveMinimum=!0):e.exclusiveMinimum=d:typeof i=="number"&&(e.minimum=i),g?_?(e.maximum=l,e.exclusiveMaximum=!0):e.exclusiveMaximum=l:typeof a=="number"&&(e.maximum=a),typeof u=="number"&&(e.multipleOf=u)},yc=(t,r,n,o)=>{n.type="boolean"},bc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},$c=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},xc=(t,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},kc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Sc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},wc=(t,r,n,o)=>{n.not={}},Ic=(t,r,n,o)=>{},zc=(t,r,n,o)=>{},Oc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Pc=(t,r,n,o)=>{let e=t._zod.def,i=Wt(e.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Ec=(t,r,n,o)=>{let e=t._zod.def,i=[];for(let a of e.values)if(a===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Tc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},jc=(t,r,n,o)=>{let e=n,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");e.type="string",e.pattern=i.source},Ac=(t,r,n,o)=>{let e=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),u?u.length===1?(i.contentMediaType=u[0],Object.assign(e,i)):(Object.assign(e,i),e.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(e,i)},Cc=(t,r,n,o)=>{n.type="boolean"},Nc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Dc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Uc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Rc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Lc=(t,r,n,o)=>{let e=n,i=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(e.minItems=a),typeof s=="number"&&(e.maxItems=s),e.type="array",e.items=E(i.element,r,{...o,path:[...o.path,"items"]})},Fc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object",e.properties={};let a=i.shape;for(let l in a)e.properties[l]=E(a[l],r,{...o,path:[...o.path,"properties",l]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(l=>{let d=i.shape[l]._zod;return r.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(e.required=Array.from(u)),i.catchall?._zod.def.type==="never"?e.additionalProperties=!1:i.catchall?i.catchall&&(e.additionalProperties=E(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(e.additionalProperties=!1)},Gn=(t,r,n,o)=>{let e=t._zod.def,i=e.inclusive===!1,a=e.options.map((s,u)=>E(s,r,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=a:n.anyOf=a},Mc=(t,r,n,o)=>{let e=t._zod.def,i=E(e.left,r,{...o,path:[...o.path,"allOf",0]}),a=E(e.right,r,{...o,path:[...o.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,u=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=u},Vc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="array";let a=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((g,_)=>E(g,r,{...o,path:[...o.path,a,_]})),l=i.rest?E(i.rest,r,{...o,path:[...o.path,s,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(e.prefixItems=u,l&&(e.items=l)):r.target==="openapi-3.0"?(e.items={anyOf:u},l&&e.items.anyOf.push(l),e.minItems=u.length,l||(e.maxItems=u.length)):(e.items=u,l&&(e.additionalItems=l));let{minimum:d,maximum:p}=t._zod.bag;typeof d=="number"&&(e.minItems=d),typeof p=="number"&&(e.maxItems=p)},Bc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=E(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});e.patternProperties={};for(let p of u)e.patternProperties[p.source]=d}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(e.propertyNames=E(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),e.additionalProperties=E(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(e.required=d)}},Hc=(t,r,n,o)=>{let e=t._zod.def,i=E(e.innerType,r,o),a=r.seen.get(t);r.target==="openapi-3.0"?(a.ref=e.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Gc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Wc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.default=JSON.parse(JSON.stringify(e.defaultValue))},Jc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(e.defaultValue)))},qc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType;let a;try{a=e.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Kc=(t,r,n,o)=>{let e=t._zod.def,i=e.in._zod.traits.has("$ZodTransform"),a=r.io==="input"?i?e.out:e.in:e.out;E(a,r,o);let s=r.seen.get(t);s.ref=a},Yc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.readOnly=!0},Xc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Wn=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Qc=(t,r,n,o)=>{let e=t._zod.innerType;E(e,r,o);let i=r.seen.get(t);i.ref=e},Hn={string:vc,number:_c,boolean:yc,bigint:bc,symbol:$c,null:xc,undefined:kc,void:Sc,never:wc,any:Ic,unknown:zc,date:Oc,enum:Pc,literal:Ec,nan:Tc,template_literal:jc,file:Ac,success:Cc,custom:Nc,function:Dc,transform:Uc,map:Rc,set:Zc,array:Lc,object:Fc,union:Gn,intersection:Mc,tuple:Vc,record:Bc,nullable:Hc,nonoptional:Gc,default:Wc,prefault:Jc,catch:qc,pipe:Kc,readonly:Yc,promise:Xc,optional:Wn,lazy:Qc};function Jn(t,r){if("_idmap"in t){let o=t,e=Ue({...r,processors:Hn}),i={};for(let u of o._idmap.entries()){let[l,d]=u;E(d,e)}let a={},s={registry:o,uri:r?.uri,defs:i};e.external=s;for(let u of o._idmap.entries()){let[l,d]=u;Re(e,d),a[l]=Ze(e,d)}if(Object.keys(i).length>0){let u=e.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let n=Ue({...r,processors:Hn});return E(t,n),Re(n,t),Ze(n,t)}var qn=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Ue({processors:Hn,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return E(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Re(this.ctx,r);let o=Ze(this.ctx,r),{"~standard":e,...i}=o;return i}};var Km={};var dr={};$e(dr,{ZodAny:()=>ku,ZodArray:()=>zu,ZodBase64:()=>hi,ZodBase64URL:()=>vi,ZodBigInt:()=>At,ZodBigIntFormat:()=>bi,ZodBoolean:()=>jt,ZodCIDRv4:()=>fi,ZodCIDRv6:()=>gi,ZodCUID:()=>si,ZodCUID2:()=>ci,ZodCatch:()=>qu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Et,ZodDate:()=>_r,ZodDefault:()=>Vu,ZodDiscriminatedUnion:()=>Pu,ZodE164:()=>_i,ZodEmail:()=>ii,ZodEmoji:()=>oi,ZodEnum:()=>Ot,ZodExactOptional:()=>Lu,ZodFile:()=>Ru,ZodFunction:()=>ol,ZodGUID:()=>pr,ZodIPv4:()=>mi,ZodIPv6:()=>pi,ZodIntersection:()=>Eu,ZodJWT:()=>yi,ZodKSUID:()=>di,ZodLazy:()=>rl,ZodLiteral:()=>Uu,ZodMAC:()=>hu,ZodMap:()=>Nu,ZodNaN:()=>Yu,ZodNanoID:()=>ai,ZodNever:()=>wu,ZodNonOptional:()=>Ii,ZodNull:()=>$u,ZodNullable:()=>Mu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>wi,ZodPipe:()=>xr,ZodPrefault:()=>Hu,ZodPreprocess:()=>Xu,ZodPromise:()=>il,ZodReadonly:()=>Qu,ZodRecord:()=>zt,ZodSet:()=>Du,ZodString:()=>Pt,ZodStringFormat:()=>j,ZodSuccess:()=>Ju,ZodSymbol:()=>yu,ZodTemplateLiteral:()=>tl,ZodTransform:()=>Zu,ZodTuple:()=>ju,ZodType:()=>w,ZodULID:()=>ui,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>bu,ZodUnion:()=>$r,ZodUnknown:()=>Su,ZodVoid:()=>Iu,ZodXID:()=>li,ZodXor:()=>Ou,_ZodString:()=>ni,_default:()=>Bu,_function:()=>af,any:()=>Dp,array:()=>yr,base64:()=>yp,base64url:()=>bp,bigint:()=>Tp,boolean:()=>_u,catch:()=>Ku,check:()=>sf,cidrv4:()=>vp,cidrv6:()=>_p,codec:()=>tf,cuid:()=>up,cuid2:()=>lp,custom:()=>cf,date:()=>Rp,describe:()=>uf,discriminatedUnion:()=>Bp,e164:()=>$p,email:()=>Qm,emoji:()=>sp,enum:()=>ki,exactOptional:()=>Fu,file:()=>Yp,float32:()=>zp,float64:()=>Op,function:()=>af,guid:()=>ep,hash:()=>Ip,hex:()=>wp,hostname:()=>Sp,httpUrl:()=>ap,instanceof:()=>df,int:()=>ti,int32:()=>Pp,int64:()=>jp,intersection:()=>Tu,invertCodec:()=>rf,ipv4:()=>fp,ipv6:()=>hp,json:()=>pf,jwt:()=>xp,keyof:()=>Zp,ksuid:()=>pp,lazy:()=>nl,literal:()=>Kp,looseObject:()=>Mp,looseRecord:()=>Gp,mac:()=>gp,map:()=>Wp,meta:()=>lf,nan:()=>ef,nanoid:()=>cp,nativeEnum:()=>qp,never:()=>$i,nonoptional:()=>Wu,null:()=>xu,nullable:()=>gr,nullish:()=>Xp,number:()=>vu,object:()=>Lp,optional:()=>fr,partialRecord:()=>Hp,pipe:()=>ri,prefault:()=>Gu,preprocess:()=>ff,promise:()=>of,readonly:()=>el,record:()=>Cu,refine:()=>al,set:()=>Jp,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>kp,stringbool:()=>mf,success:()=>Qp,superRefine:()=>sl,symbol:()=>Cp,templateLiteral:()=>nf,transform:()=>Si,tuple:()=>Au,uint32:()=>Ep,uint64:()=>Ap,ulid:()=>dp,undefined:()=>Np,union:()=>xi,unknown:()=>Ye,url:()=>op,uuid:()=>tp,uuidv4:()=>rp,uuidv6:()=>np,uuidv7:()=>ip,void:()=>Up,xid:()=>mp,xor:()=>Vp});var Kn={};$e(Kn,{endsWith:()=>vt,gt:()=>ve,gte:()=>W,includes:()=>gt,length:()=>Ke,lowercase:()=>pt,lt:()=>he,lte:()=>te,maxLength:()=>qe,maxSize:()=>De,mime:()=>_t,minLength:()=>we,minSize:()=>_e,multipleOf:()=>Ne,negative:()=>Fn,nonnegative:()=>Vn,nonpositive:()=>Mn,normalize:()=>yt,overwrite:()=>le,positive:()=>Ln,property:()=>Bn,regex:()=>mt,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,toLowerCase:()=>$t,toUpperCase:()=>xt,trim:()=>bt,uppercase:()=>ft});var It={};$e(It,{ZodISODate:()=>Xn,ZodISODateTime:()=>Yn,ZodISODuration:()=>ei,ZodISOTime:()=>Qn,date:()=>tu,datetime:()=>eu,duration:()=>nu,time:()=>ru});var Yn=m("ZodISODateTime",(t,r)=>{Ta.init(t,r),j.init(t,r)});function eu(t){return Ns(Yn,t)}var Xn=m("ZodISODate",(t,r)=>{ja.init(t,r),j.init(t,r)});function tu(t){return Ds(Xn,t)}var Qn=m("ZodISOTime",(t,r)=>{Aa.init(t,r),j.init(t,r)});function ru(t){return Us(Qn,t)}var ei=m("ZodISODuration",(t,r)=>{Ca.init(t,r),j.init(t,r)});function nu(t){return Rs(ei,t)}var Ym=(t,r)=>{Xt.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>er(t,n)},flatten:{value:n=>Qt(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,nt,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,nt,2)}},isEmpty:{get(){return t.issues.length===0}}})},gy=m("ZodError",Ym),Q=m("ZodError",Ym,{Parent:Error});var iu=at(Q),ou=st(Q),au=ct(Q),su=ut(Q),cu=Wr(Q),uu=Jr(Q),lu=qr(Q),du=Kr(Q),mu=Yr(Q),pu=Xr(Q),fu=Qr(Q),gu=en(Q);var Xm=new WeakMap;function hr(t,r,n){let o=Object.getPrototypeOf(t),e=Xm.get(o);if(e||(e=new Set,Xm.set(o,e)),!e.has(r)){e.add(r);for(let i in n){let a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var w=m("ZodType",(t,r)=>(k.init(t,r),Object.assign(t["~standard"],{jsonSchema:{input:wt(t,"input"),output:wt(t,"output")}}),t.toJSONSchema=hc(t,{}),t.def=r,t.type=r.type,Object.defineProperty(t,"_def",{value:r}),t.parse=(n,o)=>iu(t,n,o,{callee:t.parse}),t.safeParse=(n,o)=>au(t,n,o),t.parseAsync=async(n,o)=>ou(t,n,o,{callee:t.parseAsync}),t.safeParseAsync=async(n,o)=>su(t,n,o),t.spa=t.safeParseAsync,t.encode=(n,o)=>cu(t,n,o),t.decode=(n,o)=>uu(t,n,o),t.encodeAsync=async(n,o)=>lu(t,n,o),t.decodeAsync=async(n,o)=>du(t,n,o),t.safeEncode=(n,o)=>mu(t,n,o),t.safeDecode=(n,o)=>pu(t,n,o),t.safeEncodeAsync=async(n,o)=>fu(t,n,o),t.safeDecodeAsync=async(n,o)=>gu(t,n,o),hr(t,"ZodType",{check(...n){let o=this.def;return this.clone(y.mergeDefs(o,{checks:[...o.checks??[],...n.map(e=>typeof e=="function"?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return H(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(al(n,o))},superRefine(n,o){return this.check(sl(n,o))},overwrite(n){return this.check(le(n))},optional(){return fr(this)},exactOptional(){return Fu(this)},nullable(){return gr(this)},nullish(){return fr(gr(this))},nonoptional(n){return Wu(this,n)},array(){return yr(this)},or(n){return xi([this,n])},and(n){return Tu(this,n)},transform(n){return ri(this,Si(n))},default(n){return Bu(this,n)},prefault(n){return Gu(this,n)},catch(n){return Ku(this,n)},pipe(n){return ri(this,n)},readonly(){return el(this)},describe(n){let o=this.clone();return V.add(o,{description:n}),o},meta(...n){if(n.length===0)return V.get(this);let o=this.clone();return V.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(t,"description",{get(){return V.get(t)?.description},configurable:!0}),t)),ni=m("_ZodString",(t,r)=>{We.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>vc(t,o,e,i);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,hr(t,"_ZodString",{regex(...o){return this.check(mt(...o))},includes(...o){return this.check(gt(...o))},startsWith(...o){return this.check(ht(...o))},endsWith(...o){return this.check(vt(...o))},min(...o){return this.check(we(...o))},max(...o){return this.check(qe(...o))},length(...o){return this.check(Ke(...o))},nonempty(...o){return this.check(we(1,...o))},lowercase(o){return this.check(pt(o))},uppercase(o){return this.check(ft(o))},trim(){return this.check(bt())},normalize(...o){return this.check(yt(...o))},toLowerCase(){return this.check($t())},toUpperCase(){return this.check(xt())},slugify(){return this.check(kt())}})}),Pt=m("ZodString",(t,r)=>{We.init(t,r),ni.init(t,r),t.email=n=>t.check(bn(ii,n)),t.url=n=>t.check(lr(vr,n)),t.jwt=n=>t.check(Zn(yi,n)),t.emoji=n=>t.check(wn(oi,n)),t.guid=n=>t.check(ur(pr,n)),t.uuid=n=>t.check($n(ye,n)),t.uuidv4=n=>t.check(xn(ye,n)),t.uuidv6=n=>t.check(kn(ye,n)),t.uuidv7=n=>t.check(Sn(ye,n)),t.nanoid=n=>t.check(In(ai,n)),t.guid=n=>t.check(ur(pr,n)),t.cuid=n=>t.check(zn(si,n)),t.cuid2=n=>t.check(On(ci,n)),t.ulid=n=>t.check(Pn(ui,n)),t.base64=n=>t.check(Dn(hi,n)),t.base64url=n=>t.check(Un(vi,n)),t.xid=n=>t.check(En(li,n)),t.ksuid=n=>t.check(Tn(di,n)),t.ipv4=n=>t.check(jn(mi,n)),t.ipv6=n=>t.check(An(pi,n)),t.cidrv4=n=>t.check(Cn(fi,n)),t.cidrv6=n=>t.check(Nn(gi,n)),t.e164=n=>t.check(Rn(_i,n)),t.datetime=n=>t.check(eu(n)),t.date=n=>t.check(tu(n)),t.time=n=>t.check(ru(n)),t.duration=n=>t.check(nu(n))});function mr(t){return Ts(Pt,t)}var j=m("ZodStringFormat",(t,r)=>{T.init(t,r),ni.init(t,r)}),ii=m("ZodEmail",(t,r)=>{xa.init(t,r),j.init(t,r)});function Qm(t){return bn(ii,t)}var pr=m("ZodGUID",(t,r)=>{ba.init(t,r),j.init(t,r)});function ep(t){return ur(pr,t)}var ye=m("ZodUUID",(t,r)=>{$a.init(t,r),j.init(t,r)});function tp(t){return $n(ye,t)}function rp(t){return xn(ye,t)}function np(t){return kn(ye,t)}function ip(t){return Sn(ye,t)}var vr=m("ZodURL",(t,r)=>{ka.init(t,r),j.init(t,r)});function op(t){return lr(vr,t)}function ap(t){return lr(vr,{protocol:ee.httpProtocol,hostname:ee.domain,...y.normalizeParams(t)})}var oi=m("ZodEmoji",(t,r)=>{Sa.init(t,r),j.init(t,r)});function sp(t){return wn(oi,t)}var ai=m("ZodNanoID",(t,r)=>{wa.init(t,r),j.init(t,r)});function cp(t){return In(ai,t)}var si=m("ZodCUID",(t,r)=>{Ia.init(t,r),j.init(t,r)});function up(t){return zn(si,t)}var ci=m("ZodCUID2",(t,r)=>{za.init(t,r),j.init(t,r)});function lp(t){return On(ci,t)}var ui=m("ZodULID",(t,r)=>{Oa.init(t,r),j.init(t,r)});function dp(t){return Pn(ui,t)}var li=m("ZodXID",(t,r)=>{Pa.init(t,r),j.init(t,r)});function mp(t){return En(li,t)}var di=m("ZodKSUID",(t,r)=>{Ea.init(t,r),j.init(t,r)});function pp(t){return Tn(di,t)}var mi=m("ZodIPv4",(t,r)=>{Na.init(t,r),j.init(t,r)});function fp(t){return jn(mi,t)}var hu=m("ZodMAC",(t,r)=>{Ua.init(t,r),j.init(t,r)});function gp(t){return As(hu,t)}var pi=m("ZodIPv6",(t,r)=>{Da.init(t,r),j.init(t,r)});function hp(t){return An(pi,t)}var fi=m("ZodCIDRv4",(t,r)=>{Ra.init(t,r),j.init(t,r)});function vp(t){return Cn(fi,t)}var gi=m("ZodCIDRv6",(t,r)=>{Za.init(t,r),j.init(t,r)});function _p(t){return Nn(gi,t)}var hi=m("ZodBase64",(t,r)=>{Fa.init(t,r),j.init(t,r)});function yp(t){return Dn(hi,t)}var vi=m("ZodBase64URL",(t,r)=>{Ma.init(t,r),j.init(t,r)});function bp(t){return Un(vi,t)}var _i=m("ZodE164",(t,r)=>{Va.init(t,r),j.init(t,r)});function $p(t){return Rn(_i,t)}var yi=m("ZodJWT",(t,r)=>{Ba.init(t,r),j.init(t,r)});function xp(t){return Zn(yi,t)}var Et=m("ZodCustomStringFormat",(t,r)=>{Ha.init(t,r),j.init(t,r)});function kp(t,r,n={}){return St(Et,t,r,n)}function Sp(t){return St(Et,"hostname",ee.hostname,t)}function wp(t){return St(Et,"hex",ee.hex,t)}function Ip(t,r){let n=r?.enc??"hex",o=`${t}_${n}`,e=ee[o];if(!e)throw new Error(`Unrecognized hash format: ${o}`);return St(Et,o,e,r)}var Tt=m("ZodNumber",(t,r)=>{ln.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>_c(t,o,e,i),hr(t,"ZodNumber",{gt(o,e){return this.check(ve(o,e))},gte(o,e){return this.check(W(o,e))},min(o,e){return this.check(W(o,e))},lt(o,e){return this.check(he(o,e))},lte(o,e){return this.check(te(o,e))},max(o,e){return this.check(te(o,e))},int(o){return this.check(ti(o))},safe(o){return this.check(ti(o))},positive(o){return this.check(ve(0,o))},nonnegative(o){return this.check(W(0,o))},negative(o){return this.check(he(0,o))},nonpositive(o){return this.check(te(0,o))},multipleOf(o,e){return this.check(Ne(o,e))},step(o,e){return this.check(Ne(o,e))},finite(){return this}});let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function vu(t){return Zs(Tt,t)}var Xe=m("ZodNumberFormat",(t,r)=>{Ga.init(t,r),Tt.init(t,r)});function ti(t){return Fs(Xe,t)}function zp(t){return Ms(Xe,t)}function Op(t){return Vs(Xe,t)}function Pp(t){return Bs(Xe,t)}function Ep(t){return Hs(Xe,t)}var jt=m("ZodBoolean",(t,r)=>{ir.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>yc(t,n,o,e)});function _u(t){return Gs(jt,t)}var At=m("ZodBigInt",(t,r)=>{dn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>bc(t,o,e,i),t.gte=(o,e)=>t.check(W(o,e)),t.min=(o,e)=>t.check(W(o,e)),t.gt=(o,e)=>t.check(ve(o,e)),t.gte=(o,e)=>t.check(W(o,e)),t.min=(o,e)=>t.check(W(o,e)),t.lt=(o,e)=>t.check(he(o,e)),t.lte=(o,e)=>t.check(te(o,e)),t.max=(o,e)=>t.check(te(o,e)),t.positive=o=>t.check(ve(BigInt(0),o)),t.negative=o=>t.check(he(BigInt(0),o)),t.nonpositive=o=>t.check(te(BigInt(0),o)),t.nonnegative=o=>t.check(W(BigInt(0),o)),t.multipleOf=(o,e)=>t.check(Ne(o,e));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});function Tp(t){return Js(At,t)}var bi=m("ZodBigIntFormat",(t,r)=>{Wa.init(t,r),At.init(t,r)});function jp(t){return Ks(bi,t)}function Ap(t){return Ys(bi,t)}var yu=m("ZodSymbol",(t,r)=>{Ja.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>$c(t,n,o,e)});function Cp(t){return Xs(yu,t)}var bu=m("ZodUndefined",(t,r)=>{qa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>kc(t,n,o,e)});function Np(t){return Qs(bu,t)}var $u=m("ZodNull",(t,r)=>{Ka.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>xc(t,n,o,e)});function xu(t){return ec($u,t)}var ku=m("ZodAny",(t,r)=>{Ya.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ic(t,n,o,e)});function Dp(){return tc(ku)}var Su=m("ZodUnknown",(t,r)=>{Xa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>zc(t,n,o,e)});function Ye(){return rc(Su)}var wu=m("ZodNever",(t,r)=>{Qa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>wc(t,n,o,e)});function $i(t){return nc(wu,t)}var Iu=m("ZodVoid",(t,r)=>{es.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Sc(t,n,o,e)});function Up(t){return ic(Iu,t)}var _r=m("ZodDate",(t,r)=>{ts.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>Oc(t,o,e,i),t.min=(o,e)=>t.check(W(o,e)),t.max=(o,e)=>t.check(te(o,e));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function Rp(t){return oc(_r,t)}var zu=m("ZodArray",(t,r)=>{rs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Lc(t,n,o,e),t.element=r.element,hr(t,"ZodArray",{min(n,o){return this.check(we(n,o))},nonempty(n){return this.check(we(1,n))},max(n,o){return this.check(qe(n,o))},length(n,o){return this.check(Ke(n,o))},unwrap(){return this.element}})});function yr(t,r){return cc(zu,t,r)}function Zp(t){let r=t._zod.def.shape;return ki(Object.keys(r))}var br=m("ZodObject",(t,r)=>{ns.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Fc(t,n,o,e),y.defineLazy(t,"shape",()=>r.shape),hr(t,"ZodObject",{keyof(){return ki(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ye()})},loose(){return this.clone({...this._zod.def,catchall:Ye()})},strict(){return this.clone({...this._zod.def,catchall:$i()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return y.extend(this,n)},safeExtend(n){return y.safeExtend(this,n)},merge(n){return y.merge(this,n)},pick(n){return y.pick(this,n)},omit(n){return y.omit(this,n)},partial(...n){return y.partial(wi,this,n[0])},required(...n){return y.required(Ii,this,n[0])}})});function Lp(t,r){let n={type:"object",shape:t??{},...y.normalizeParams(r)};return new br(n)}function Fp(t,r){return new br({type:"object",shape:t,catchall:$i(),...y.normalizeParams(r)})}function Mp(t,r){return new br({type:"object",shape:t,catchall:Ye(),...y.normalizeParams(r)})}var $r=m("ZodUnion",(t,r)=>{or.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gn(t,n,o,e),t.options=r.options});function xi(t,r){return new $r({type:"union",options:t,...y.normalizeParams(r)})}var Ou=m("ZodXor",(t,r)=>{$r.init(t,r),is.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gn(t,n,o,e),t.options=r.options});function Vp(t,r){return new Ou({type:"union",options:t,inclusive:!1,...y.normalizeParams(r)})}var Pu=m("ZodDiscriminatedUnion",(t,r)=>{$r.init(t,r),os.init(t,r)});function Bp(t,r,n){return new Pu({type:"union",options:r,discriminator:t,...y.normalizeParams(n)})}var Eu=m("ZodIntersection",(t,r)=>{as.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Mc(t,n,o,e)});function Tu(t,r){return new Eu({type:"intersection",left:t,right:r})}var ju=m("ZodTuple",(t,r)=>{mn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Vc(t,n,o,e),t.rest=n=>t.clone({...t._zod.def,rest:n})});function Au(t,r,n){let o=r instanceof k,e=o?n:r,i=o?r:null;return new ju({type:"tuple",items:t,rest:i,...y.normalizeParams(e)})}var zt=m("ZodRecord",(t,r)=>{ss.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Bc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType});function Cu(t,r,n){return!r||!r._zod?new zt({type:"record",keyType:mr(),valueType:t,...y.normalizeParams(r)}):new zt({type:"record",keyType:t,valueType:r,...y.normalizeParams(n)})}function Hp(t,r,n){let o=H(t);return o._zod.values=void 0,new zt({type:"record",keyType:o,valueType:r,...y.normalizeParams(n)})}function Gp(t,r,n){return new zt({type:"record",keyType:t,valueType:r,mode:"loose",...y.normalizeParams(n)})}var Nu=m("ZodMap",(t,r)=>{cs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Rc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType,t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(De(...n)),t.size=(...n)=>t.check(Je(...n))});function Wp(t,r,n){return new Nu({type:"map",keyType:t,valueType:r,...y.normalizeParams(n)})}var Du=m("ZodSet",(t,r)=>{us.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Zc(t,n,o,e),t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(De(...n)),t.size=(...n)=>t.check(Je(...n))});function Jp(t,r){return new Du({type:"set",valueType:t,...y.normalizeParams(r)})}var Ot=m("ZodEnum",(t,r)=>{ls.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>Pc(t,o,e,i),t.enum=r.entries,t.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));t.extract=(o,e)=>{let i={};for(let a of o)if(n.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})},t.exclude=(o,e)=>{let i={...r.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})}});function ki(t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new Ot({type:"enum",entries:n,...y.normalizeParams(r)})}function qp(t,r){return new Ot({type:"enum",entries:t,...y.normalizeParams(r)})}var Uu=m("ZodLiteral",(t,r)=>{ds.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ec(t,n,o,e),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Kp(t,r){return new Uu({type:"literal",values:Array.isArray(t)?t:[t],...y.normalizeParams(r)})}var Ru=m("ZodFile",(t,r)=>{ms.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ac(t,n,o,e),t.min=(n,o)=>t.check(_e(n,o)),t.max=(n,o)=>t.check(De(n,o)),t.mime=(n,o)=>t.check(_t(Array.isArray(n)?n:[n],o))});function Yp(t){return uc(Ru,t)}var Zu=m("ZodTransform",(t,r)=>{ps.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Uc(t,n,o,e),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ee(t.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(y.issue(i,n.value,r));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),n.issues.push(y.issue(a))}};let e=r.transform(n.value,n);return e instanceof Promise?e.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=e,n.fallback=!0,n)}});function Si(t){return new Zu({type:"transform",transform:t})}var wi=m("ZodOptional",(t,r)=>{pn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function fr(t){return new wi({type:"optional",innerType:t})}var Lu=m("ZodExactOptional",(t,r)=>{fs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Fu(t){return new Lu({type:"optional",innerType:t})}var Mu=m("ZodNullable",(t,r)=>{gs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Hc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function gr(t){return new Mu({type:"nullable",innerType:t})}function Xp(t){return fr(gr(t))}var Vu=m("ZodDefault",(t,r)=>{hs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Bu(t,r){return new Vu({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Hu=m("ZodPrefault",(t,r)=>{vs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Jc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Gu(t,r){return new Hu({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Ii=m("ZodNonOptional",(t,r)=>{_s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Wu(t,r){return new Ii({type:"nonoptional",innerType:t,...y.normalizeParams(r)})}var Ju=m("ZodSuccess",(t,r)=>{ys.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Cc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Qp(t){return new Ju({type:"success",innerType:t})}var qu=m("ZodCatch",(t,r)=>{bs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>qc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Ku(t,r){return new qu({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}var Yu=m("ZodNaN",(t,r)=>{$s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Tc(t,n,o,e)});function ef(t){return sc(Yu,t)}var xr=m("ZodPipe",(t,r)=>{fn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Kc(t,n,o,e),t.in=r.in,t.out=r.out});function ri(t,r){return new xr({type:"pipe",in:t,out:r})}var kr=m("ZodCodec",(t,r)=>{xr.init(t,r),ar.init(t,r)});function tf(t,r,n){return new kr({type:"pipe",in:t,out:r,transform:n.decode,reverseTransform:n.encode})}function rf(t){let r=t._zod.def;return new kr({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var Xu=m("ZodPreprocess",(t,r)=>{xr.init(t,r),xs.init(t,r)}),Qu=m("ZodReadonly",(t,r)=>{ks.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Yc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function el(t){return new Qu({type:"readonly",innerType:t})}var tl=m("ZodTemplateLiteral",(t,r)=>{Ss.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>jc(t,n,o,e)});function nf(t,r){return new tl({type:"template_literal",parts:t,...y.normalizeParams(r)})}var rl=m("ZodLazy",(t,r)=>{zs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Qc(t,n,o,e),t.unwrap=()=>t._zod.def.getter()});function nl(t){return new rl({type:"lazy",getter:t})}var il=m("ZodPromise",(t,r)=>{Is.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Xc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function of(t){return new il({type:"promise",innerType:t})}var ol=m("ZodFunction",(t,r)=>{ws.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Dc(t,n,o,e)});function af(t){return new ol({type:"function",input:Array.isArray(t?.input)?Au(t?.input):t?.input??yr(Ye()),output:t?.output??Ye()})}var Sr=m("ZodCustom",(t,r)=>{Os.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Nc(t,n,o,e)});function sf(t){let r=new C({check:"custom"});return r._zod.check=t,r}function cf(t,r){return lc(Sr,t??(()=>!0),r)}function al(t,r={}){return dc(Sr,t,r)}function sl(t,r){return mc(t,r)}var uf=pc,lf=fc;function df(t,r={}){let n=new Sr({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...y.normalizeParams(r)});return n._zod.bag.Class=t,n._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mf=(...t)=>gc({Codec:kr,Boolean:jt,String:Pt},...t);function pf(t){let r=nl(()=>xi([mr(t),vu(),_u(),xu(),yr(r),Cu(mr(),r)]));return r}function ff(t,r){return new Xu({type:"pipe",in:Si(t),out:r})}var vy={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _y(t){Z({customError:t})}function yy(){return Z().customError}var cl;cl||(cl={});var $={...dr,...Kn,iso:It},by=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function $y(t,r){let n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function xy(t,r){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let e=n[1];if(!e||!r.defs[e])throw new Error(`Reference not found: ${t}`);return r.defs[e]}throw new Error(`Reference not found: ${t}`)}function gf(t,r){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let e=t.$ref;if(r.refs.has(e))return r.refs.get(e);if(r.processing.has(e))return $.lazy(()=>{if(!r.refs.has(e))throw new Error(`Circular reference not resolved: ${e}`);return r.refs.get(e)});r.processing.add(e);let i=xy(e,r),a=B(i,r);return r.refs.set(e,a),r.processing.delete(e),a}if(t.enum!==void 0){let e=t.enum;if(r.version==="openapi-3.0"&&t.nullable===!0&&e.length===1&&e[0]===null)return $.null();if(e.length===0)return $.never();if(e.length===1)return $.literal(e[0]);if(e.every(a=>typeof a=="string"))return $.enum(e);let i=e.map(a=>$.literal(a));return i.length<2?i[0]:$.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return $.literal(t.const);let n=t.type;if(Array.isArray(n)){let e=n.map(i=>{let a={...t,type:i};return gf(a,r)});return e.length===0?$.never():e.length===1?e[0]:$.union(e)}if(!n)return $.any();let o;switch(n){case"string":{let e=$.string();if(t.format){let i=t.format;i==="email"?e=e.check($.email()):i==="uri"||i==="uri-reference"?e=e.check($.url()):i==="uuid"||i==="guid"?e=e.check($.uuid()):i==="date-time"?e=e.check($.iso.datetime()):i==="date"?e=e.check($.iso.date()):i==="time"?e=e.check($.iso.time()):i==="duration"?e=e.check($.iso.duration()):i==="ipv4"?e=e.check($.ipv4()):i==="ipv6"?e=e.check($.ipv6()):i==="mac"?e=e.check($.mac()):i==="cidr"?e=e.check($.cidrv4()):i==="cidr-v6"?e=e.check($.cidrv6()):i==="base64"?e=e.check($.base64()):i==="base64url"?e=e.check($.base64url()):i==="e164"?e=e.check($.e164()):i==="jwt"?e=e.check($.jwt()):i==="emoji"?e=e.check($.emoji()):i==="nanoid"?e=e.check($.nanoid()):i==="cuid"?e=e.check($.cuid()):i==="cuid2"?e=e.check($.cuid2()):i==="ulid"?e=e.check($.ulid()):i==="xid"?e=e.check($.xid()):i==="ksuid"&&(e=e.check($.ksuid()))}typeof t.minLength=="number"&&(e=e.min(t.minLength)),typeof t.maxLength=="number"&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),o=e;break}case"number":case"integer":{let e=n==="integer"?$.number().int():$.number();typeof t.minimum=="number"&&(e=e.min(t.minimum)),typeof t.maximum=="number"&&(e=e.max(t.maximum)),typeof t.exclusiveMinimum=="number"?e=e.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(e=e.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?e=e.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(e=e.lt(t.maximum)),typeof t.multipleOf=="number"&&(e=e.multipleOf(t.multipleOf)),o=e;break}case"boolean":{o=$.boolean();break}case"null":{o=$.null();break}case"object":{let e={},i=t.properties||{},a=new Set(t.required||[]);for(let[u,l]of Object.entries(i)){let d=B(l,r);e[u]=a.has(u)?d:d.optional()}if(t.propertyNames){let u=B(t.propertyNames,r),l=t.additionalProperties&&typeof t.additionalProperties=="object"?B(t.additionalProperties,r):$.any();if(Object.keys(e).length===0){o=$.record(u,l);break}let d=$.object(e).passthrough(),p=$.looseRecord(u,l);o=$.intersection(d,p);break}if(t.patternProperties){let u=t.patternProperties,l=Object.keys(u),d=[];for(let g of l){let _=B(u[g],r),x=$.string().regex(new RegExp(g));d.push($.looseRecord(x,_))}let p=[];if(Object.keys(e).length>0&&p.push($.object(e).passthrough()),p.push(...d),p.length===0)o=$.object({}).passthrough();else if(p.length===1)o=p[0];else{let g=$.intersection(p[0],p[1]);for(let _=2;_<p.length;_++)g=$.intersection(g,p[_]);o=g}break}let s=$.object(e);t.additionalProperties===!1?o=s.strict():typeof t.additionalProperties=="object"?o=s.catchall(B(t.additionalProperties,r)):o=s.passthrough();break}case"array":{let e=t.prefixItems,i=t.items;if(e&&Array.isArray(e)){let a=e.map(u=>B(u,r)),s=i&&typeof i=="object"&&!Array.isArray(i)?B(i,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>B(u,r)),s=t.additionalItems&&typeof t.additionalItems=="object"?B(t.additionalItems,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(i!==void 0){let a=B(i,r),s=$.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),o=s}else o=$.array($.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function B(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n=gf(t,r),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(l=>B(l,r)),u=$.union(s);n=o?$.intersection(n,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(l=>B(l,r)),u=$.xor(s);n=o?$.intersection(n,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=o?n:$.any();else{let s=o?n:B(t.allOf[0],r),u=o?0:1;for(let l=u;l<t.allOf.length;l++)s=$.intersection(s,B(t.allOf[l],r));n=s}t.nullable===!0&&r.version==="openapi-3.0"&&(n=$.nullable(n)),t.readOnly===!0&&(n=$.readonly(n)),t.default!==void 0&&(n=n.default(t.default));let e={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in t&&(e[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(e[s]=t[s]);for(let s of Object.keys(t))by.has(s)||(e[s]=t[s]);return Object.keys(e).length>0&&r.registry.add(n,e),t.description&&(n=n.describe(t.description)),n}function hf(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=$y(n,r?.defaultTarget),e=n.$defs||n.definitions||{},i={version:o,defs:e,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??V};return B(n,i)}var ul={};$e(ul,{bigint:()=>Iy,boolean:()=>wy,date:()=>zy,number:()=>Sy,string:()=>ky});function ky(t){return js(Pt,t)}function Sy(t){return Ls(Tt,t)}function wy(t){return Ws(jt,t)}function Iy(t){return qs(At,t)}function zy(t){return ac(_r,t)}Z(gn());var Oy=c.string().min(1),Py=c.object({type:c.literal("named"),name:c.enum(["second","minute","hour","day","week","month"])}),Ey=c.object({type:c.literal("custom"),seconds:c.number().int().positive(),label:c.string().optional()}),Ty=c.discriminatedUnion("type",[Py,Ey]),Le=c.object({dimension:Oy,window:Ty,capacity:c.number().nonnegative(),enforcement:c.enum(["enforce","track"]).optional(),acknowledgeUnreachable:c.boolean().optional()}),Mw=c.array(Le).max(20);var de=c.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),wr=c.object({default:de.default("preserve_current_period"),proration:c.enum(["none","prorate","credit"]).default("none"),when:c.object({price_increase:de.optional(),price_decrease:de.optional(),feature_added:de.optional(),feature_removed:de.optional(),limit_increased:de.optional(),limit_reduced:de.optional(),credit_increased:de.optional(),credit_reduced:de.optional(),rating_changed:de.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"}),allowImmediatePriceIncrease:c.boolean().default(!1),allowImmediateEntitlementReduction:c.boolean().default(!1)}).strict().superRefine((t,r)=>{let n=new Set(["switch_immediately","switch_immediately_prorate"]);n.has(t.when.price_increase??t.default)&&!t.allowImmediatePriceIncrease&&r.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let o of["feature_removed","limit_reduced","credit_reduced"])n.has(t.when[o]??t.default)&&!t.allowImmediateEntitlementReduction&&r.addIssue({code:"custom",path:["when",o],message:`${o} cannot switch immediately without allowImmediateEntitlementReduction: true`})});var jy=c.object({kind:c.literal("recurring"),amount_cents:c.number().int().nonnegative()}),Ay=c.object({kind:c.literal("one_time"),amount_cents:c.number().int().nonnegative()}),Cy=c.object({kind:c.literal("promotional"),amount_cents:c.number().int().nonnegative(),label:c.string().min(1).max(120),expires_after_days:c.number().int().positive().optional()}),Ny=c.object({kind:c.literal("trial")}),Dy=c.object({kind:c.literal("rollover"),percent:c.number().int().min(0).max(100)}),Uy=c.object({kind:c.literal("top_up"),sku:c.string().min(1).max(120),label:c.string().min(1).max(200),price_cents:c.number().int().positive(),credit_cents:c.number().int().positive()}),Ry=c.object({kind:c.literal("auto_recharge"),threshold_cents:c.number().int().nonnegative(),refill_cents:c.number().int().positive()}),re=c.discriminatedUnion("kind",[jy,Ay,Cy,Ny,Dy,Uy,Ry]);function Ir(t,r,n=["grants"]){if(!t)return;let o=0,e=0;for(let i of t)i.kind==="recurring"?o+=1:i.kind==="one_time"&&(e+=1);o>1&&r.addIssue({code:"custom",message:"At most one `recurring` grant is allowed \u2014 recurring credit is a single canonical entry.",path:n}),e>1&&r.addIssue({code:"custom",message:"At most one `one_time` grant is allowed \u2014 one-time credit is a single canonical entry.",path:n})}function Zy(t){let r=[];return t.grants&&t.grants.length>0&&r.push(...t.grants),(t.trial_days??0)>0&&!r.some(n=>n.kind==="trial")&&r.push({kind:"trial"}),r}function vf(t,r){return Zy(t).find(n=>n.kind===r)}function zr(t){return vf(t,"recurring")?.amount_cents??0}function Ct(t){return vf(t,"one_time")?.amount_cents??0}var _f=c.enum(["linear","active_count"]);var Ly=c.object({up_to:c.number().int().positive().nullable(),price_per_unit_micros:c.number().int().nonnegative()}),Fy=c.object({strategy:c.enum(["graduated","volume"]),tiers:c.array(Ly).min(1).max(20)}),ne=c.object({dimension:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter dimension must be lowercase alphanumeric with underscores"),kind:_f.default("linear"),price_per_unit_micros:c.number().int().nonnegative().default(0),tiered:Fy.optional(),included_units:c.number().int().positive().optional()}).superRefine((t,r)=>{if(t.tiered&&t.price_per_unit_micros>0&&r.addIssue({code:"custom",message:"`tiered` is mutually exclusive with a non-zero `price_per_unit_micros` \u2014 drop one",path:["tiered"]}),t.included_units!==void 0&&t.tiered&&r.addIssue({code:"custom",message:"`included_units` is mutually exclusive with `tiered` \u2014 a tiered schedule already expresses the included allotment as a zero-priced first tier",path:["included_units"]}),t.tiered){let n=0,o=!1;for(let e=0;e<t.tiered.tiers.length;e++){let i=t.tiered.tiers[e];if(o){r.addIssue({code:"custom",message:"Open-ended tier (`up_to: null`) must be the final tier",path:["tiered","tiers",e,"up_to"]});break}if(i.up_to===null){o=!0;continue}i.up_to<=n&&r.addIssue({code:"custom",message:`Tier upper bounds must be strictly ascending (tier ${e} = ${i.up_to} <= previous ${n})`,path:["tiered","tiers",e,"up_to"]}),n=i.up_to}o||r.addIssue({code:"custom",message:"The final tier of a `tiered` schedule must be open-ended (`up_to: null`)",path:["tiered","tiers",t.tiered.tiers.length-1,"up_to"]})}}),me=c.enum(["month","year"]),My=c.object({meters:c.array(ne).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),grants:c.array(re).max(40).default([]),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional()});var Vy=c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),By={meters:c.array(ne).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(re).max(40).default([])},Hy={meters:c.array(ne).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(re).max(40).optional()},Gy=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:c.string().max(200).optional(),rolloutPercent:c.number().int().min(0).max(100),assignmentSeed:c.string().min(1).max(100).default("default"),prorationOnRollback:Vy,...Hy,limits:c.array(Le).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional()}),yf=Gy.superRefine((t,r)=>{Ir(t.grants,r)}),bf=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...By,free:c.boolean().default(!1),limits:c.array(Le).max(20).default([]),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),variants:c.array(yf).max(4).optional(),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}),ll=bf.superRefine((t,r)=>{Ir(t.grants,r)});var dl=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],Nt=c.enum(dl);var Wy=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,ml=c.string().min(3).max(200).refine(t=>Wy.test(t),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),pl=c.object({maxAttempts:c.number().int().min(1).max(20).default(5),backoff:c.enum(["exponential","fixed"]).default("exponential")}),$f=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:c.string().url("webhooks.endpoints[].url must be a valid URL"),secret:ml,events:c.array(Nt).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:c.boolean().default(!0),retryPolicy:pl.default({maxAttempts:5,backoff:"exponential"})}),Or=c.object({endpoints:c.array($f).max(50).default([])});var Jy=c.object({meters:c.array(ne).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),grants:c.array(re).max(40).optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),limits:c.array(Le).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:c.boolean().optional(),legacy:c.boolean().optional()}).strict(),qy=c.object({url:c.string().url().optional(),secret:ml.optional(),events:c.array(Nt).optional(),enabled:c.boolean().optional(),retryPolicy:pl.partial().optional()}).strict(),Ky=c.object({plans:c.record(c.string(),Jy).optional(),webhooks:c.object({endpoints:c.record(c.string(),qy).optional()}).strict().optional()}).strict(),Pr=c.record(c.string().min(1).max(64),Ky);var xf=1,kf=["plans_table","usage_card","api_keys_panel","billing_summary","credit_balance","feature_panel","product_docs","audit_log","team_panel","markdown"],Sf=["/","/pricing","/dashboard","/dashboard/*","/settings","/settings/*","/team","/audit-log","/docs","/docs/*","/terms","/privacy","/persona","/persona-sign-in"],wf=c.string().min(1).max(200).regex(/^\/[a-zA-Z0-9_./-]*$/,"path must start with / and contain only [a-zA-Z0-9_./-]"),fl=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/),If=c.object({label:c.string().min(1).max(80),path:wf,capability:fl.optional()}),zf=c.enum(kf),Of=c.object({component:zf,props:c.record(c.string().min(1).max(80),c.unknown()).optional(),capability:fl.optional(),gateMode:c.enum(["hide","disable","upsell"]).default("hide")}),Pf=c.object({path:wf,title:c.string().min(1).max(120),requiresAuth:c.boolean(),capability:fl.optional(),components:c.array(Of).max(12).default([])}),Er=c.object({version:c.literal(xf),nav:c.array(If).max(12).default([]),pages:c.array(Pf).max(24).default([])}).superRefine((t,r)=>{let n=new Set;t.pages.forEach((o,e)=>{n.has(o.path)&&r.addIssue({code:"custom",message:`duplicate frontend page path "${o.path}"`,path:["pages",e,"path"]}),n.add(o.path),Ef(o.path)&&r.addIssue({code:"custom",message:`frontend page path "${o.path}" is reserved by the template`,path:["pages",e,"path"]})})});function Ef(t){return Sf.some(r=>{if(r.endsWith("/*")){let n=r.slice(0,-2);return t===n||t.startsWith(`${n}/`)}return t===r})}var gl=c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),Tf=c.string().min(1).max(100),Yy=c.object({plan:gl,version:Tf.optional()}),Xy=c.object({plan:gl,version:c.literal("head").default("head")}),Qy=c.object({plan:gl,version:Tf}),jf=c.enum(["grandfather","next_renewal","by_date","immediate","opt_in"]),Af=c.enum(["none","prorate","credit"]),Cf=c.object({effective:jf,date:c.string().datetime().optional(),proration:Af.optional()}).superRefine((t,r)=>{t.effective==="by_date"&&t.date===void 0&&r.addIssue({code:"custom",path:["date"],message:"existingCustomers.date is required when effective is by_date"})}),Nf=c.object({subscriber:c.string().min(1).max(200),pinTo:Qy,until:c.string().datetime().optional(),notes:c.string().max(1e3).optional()}),Df=c.object({id:c.string().min(1).max(120).regex(/^[a-z0-9][a-z0-9_.-]*$/,"Migration id must be lowercase alphanumeric with dots, hyphens, or underscores"),from:Yy,to:Xy,newCustomers:c.literal("immediate").default("immediate"),existingCustomers:Cf,pins:c.array(Nf).max(50).default([])}),Tr=c.array(Df).superRefine((t,r)=>{let n=new Set;t.forEach((o,e)=>{n.has(o.id)&&r.addIssue({code:"custom",path:[e,"id"],message:`duplicate migration id "${o.id}"`}),n.add(o.id)})});var Uf=c.enum(["subscription","subject"]),Rf=c.enum(["reported","action_inferred"]),Zf=c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),Lf=c.object({name:Zf,display:c.string().min(1).max(120).optional(),scope:Uf.default("subscription"),subjectType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),countSource:Rf.default("reported")}).superRefine((t,r)=>{t.scope==="subject"&&!t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is required when resource scope is subject"}),t.scope==="subscription"&&t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is only valid for subject-scoped counted resources"})}),jr=c.array(Lf).max(100).default([]);var eb=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"AddOn key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),meters:c.array(ne).default([]),grants:c.array(re).max(40).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),featureGates:c.record(c.string(),c.boolean()).optional(),selfServeEnabled:c.boolean().default(!0)}),zi=c.record(c.string().min(1).max(64),eb).default({}),tb=c.enum(["active","canceled","paused","pending_activation"]),kI=c.object({addOnKey:c.string().min(1).max(64),status:tb.default("active"),activatedAt:c.string().datetime().optional(),canceledAt:c.string().datetime().nullable().optional(),stripeSubscriptionItemId:c.string().optional()});function Ff(t,r){t.usagePricing!==void 0&&r.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."})}function Mf(t,r){t.filter(o=>o.free).length>1&&r.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"}),t.forEach((o,e)=>{o.free&&(rb(o,e,r),nb(o,e,r))})}function rb(t,r,n){(Jf(t)??0)!==0&&n.addIssue({code:"custom",path:["plans",r,"recurring_fee_cents"],message:"Free plans must have zero price"})}function nb(t,r,n){t.limits.some(e=>!e.enforcement||e.enforcement==="enforce")||n.addIssue({code:"custom",path:["plans",r,"limits"],message:"Free plans must include at least one hard enforced limit"})}function Vf(t,r){let n=new Map;t.forEach((o,e)=>{if(o.free)return;let i=Jf(o);if(i===void 0||i<=0)return;let a=cb(o,i),s=n.get(a);if(s){r.addIssue({code:"custom",path:["plans",e,"recurring_fee_cents"],message:`Paid plan price duplicates plan "${s}" (${a})`});return}n.set(a,o.key)})}function Bf(t,r){let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=new Set(Object.keys(t.usage?.meters??{}));t.plans.forEach((e,i)=>{let a=e.meters;a&&a.forEach((s,u)=>{let l=s.dimension;typeof l!="string"||l.length===0||n.has(l)||o.has(l)||r.addIssue({code:"custom",path:["plans",i,"meters",u,"dimension"],message:`Plan "${e.key}" prices meter "${l}" but no metering.meters[] entry and no usage.meters[] entry declares it.`})})})}function Hf(t,r){if(!t.features)return;let n=new Set(t.plans.map(o=>o.key));for(let[o,e]of Object.entries(t.features)){if(!e.plans)continue;e.plans.forEach((a,s)=>{n.has(a)||r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" references unknown plan "${a}"`})});let i=new Set;e.plans.forEach((a,s)=>{i.has(a)&&r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" lists plan "${a}" more than once`}),i.add(a)})}}function Gf(t,r){if(!t.features)return;let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=!1;for(let[e,i]of Object.entries(t.features))(i.routes??[]).forEach((s,u)=>{!s.meters||s.meters.length===0||(o=!0,s.meters.forEach((l,d)=>{n.has(l)||r.addIssue({code:"custom",path:["features",e,"routes",u,"meters",d],message:`Route references unknown meter "${l}". Declare it in metering.meters[].`})}))});o&&n.size===0&&r.addIssue({code:"custom",path:["metering","meters"],message:"One or more routes declare `meters` but `metering.meters[]` is empty. Declare meters at the product level first."})}function ib(t,r){let n=new Map;for(let o of t.plans)n.set(o.key,new Set);if(!t.features){for(let o of n.values())for(let e of r)o.add(e);return n}for(let o of Object.values(t.features))ob(o,r,n);return n}function ob(t,r,n){let o=t.plans??[],e=t.routes??[];for(let i of o){let a=n.get(i);if(a){for(let s of e)if(s.unmetered!==!0){if(s.meters&&s.meters.length>0){for(let u of s.meters)a.add(u);continue}for(let u of r)a.add(u)}}}}function ab(t){if(!t||typeof t!="object")return null;let r=t;return typeof r.dimension=="string"?r.dimension:null}var sb=new Set(["credits"]);function Wf(t,r){if(!t.plans||t.plans.length===0)return;let n=new Set((t.metering?.meters??[]).map(i=>i.key).filter(i=>typeof i=="string"&&i.length>0)),o=new Set(Object.keys(t.usage?.meters??{})),e=ib(t,n);t.plans.forEach((i,a)=>{let s=i.limits??[],u=e.get(i.key)??new Set;s.forEach((l,d)=>{if(l&&typeof l=="object"?l.acknowledgeUnreachable===!0:!1)return;let g=ab(l);g&&(u.has(g)||o.has(g)||sb.has(g)||r.addIssue({code:"custom",path:["plans",a,"limits",d,"meter"],message:`Plan "${i.key}" limits meter "${g}" but no route in any granted feature emits this meter, and the meter is not declared under usage.meters either. Either grant a feature whose routes meter "${g}" to this plan, declare the meter under metering.meters[] or usage.meters, or set acknowledgeUnreachable: true if the limit is intentional (e.g. soft budget).`}))})})}function Jf(t){return t.recurring_fee_cents}function cb(t,r){return`USD:month:${r}`}var qf=c.object({subdomain:c.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),ub=c.enum(["exact_pre_request","estimated_then_settled","postpaid","strict_concurrency"]),Oi=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:c.string().min(1).max(100),unit:c.string().max(20).optional(),enforcementType:ub.default("estimated_then_settled"),aggregation:c.enum(["SUM","COUNT","MAX","UNIQUE_COUNT","LATEST"]).default("COUNT"),window:c.enum(["minute","hour","day","month","billing_period"]).default("billing_period"),valueProperty:c.string().optional(),uniqueProperty:c.string().optional(),groupBy:c.array(c.string()).optional(),eventCode:c.string().optional()}),Kf=c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),lb=c.enum(["pass_through","markup","fixed_margin","customer_rate"]),db=c.object({source:c.literal("fixed"),rates:c.record(c.string().min(1),c.record(Kf,c.number().int().nonnegative()))}),mb=c.object({source:c.literal("provider_catalog"),catalog:c.string().min(1).max(100),pricePolicy:lb.default("pass_through"),markupPercent:c.number().nonnegative().max(1e4).optional(),marginMicros:c.number().int().nonnegative().optional()}),pb=c.object({source:c.literal("upstream_reported"),amountField:c.string().min(1).max(500),currencyField:c.string().min(1).max(500).optional()}),fb=c.object({source:c.literal("external_rate_api"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),gb=c.object({source:c.literal("custom"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),Yf=c.discriminatedUnion("source",[db,mb,pb,fb,gb]),Xf=c.object({selector:c.string().min(1).max(100).optional(),measures:c.array(Kf).min(1).max(20),rating:Yf.optional()}),Qf=c.object({meters:c.record(c.string().min(1).max(64).regex(/^[a-z0-9_]+$/),Xf)}),eg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]"),meters:c.array(c.string().min(1).max(64)).min(1,"Use `unmetered: true` instead of an empty array (typo guard against silently-unmetered routes)").max(20).nullable().optional(),unmetered:c.boolean().optional()}).superRefine((t,r)=>{t.unmetered===!0&&t.meters&&t.meters.length>0&&r.addIssue({code:"custom",message:"`unmetered: true` is mutually exclusive with `meters` \u2014 drop one",path:["unmetered"]})}),tg=c.object({description:c.string().max(500).optional(),routes:c.array(eg).min(1).max(50),plans:c.array(c.string().min(1)).min(1).max(20)}),rg=c.record(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),tg),ng=c.enum(["report","pull_request"]),ig=c.enum(["safe","non_blocking","economic_risk","blocking"]),Pi=c.object({cleanup:c.object({enabled:c.boolean().default(!1),mode:ng.default("report")}).default({enabled:!1,mode:"report"}),change_approval:c.object({auto_merge_max_risk:c.enum(["none","safe","non_blocking"]).default("none"),require_human_for:c.array(ig).default(["economic_risk","blocking"])}).default({auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]})}).default({cleanup:{enabled:!1,mode:"report"},change_approval:{auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]}}),og=c.enum(["org_only","org_and_user"]),ag=c.enum(["clerk","test-personas"]),Ei=c.object({identity_requirement:og.optional(),context_tokens:c.object({enabled:c.boolean().default(!0)}).optional(),portal_auth:c.object({strategy:ag}).optional()}),Qe=c.object({product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),gateway:c.object({authHeader:c.string().min(1).max(100).default("x-api-key"),upstreamAuth:c.object({type:c.enum(["none","static_bearer"]),token:c.string().optional()}).default({type:"none"})}),metering:c.object({meters:c.array(Oi).max(10).default([]),billOn4xx:c.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:Qf.optional(),usagePricing:c.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:rg.optional(),resources:jr,policies:Pi,customer_context:Ei.optional(),frontend:Er.optional(),migrations:Tr.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}).default({gracePeriodDays:3,subscriberChangePolicy:{default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1}}),plans:c.array(ll).max(4).default([]),add_ons:zi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Pr.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()}).superRefine((t,r)=>{Ff(t,r),Mf(t.plans,r),Vf(t.plans,r),Bf(t,r),Hf(t,r),Gf(t,r),Wf(t,r)}),hb=c.object({product:Qe.shape.product}),vb=c.object({gateway:Qe.shape.gateway}),_b=c.object({metering:Qe.shape.metering}),yb=c.object({plans:Qe.shape.plans});var bb=c.string().min(2).max(20).regex(/^\d+(ms|s|m|h)$/,"rate_limit window must look like `60s`, `5m`, `1h`"),sg=c.object({strategy:c.enum(["token_bucket","sliding_window","fixed_window"]).default("token_bucket"),dimensions:c.array(c.enum(["subscription","credential","ip","route"])).min(1).max(4).default(["subscription"]),limits:c.array(c.object({window:bb,max:c.number().int().positive().max(1e7)})).min(1).max(10),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(100),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(50),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:100,max_window_seconds:60,recovery_threshold:50,degraded_mode:"safe_mode_throttle"})}),cg=c.object({header_name:c.string().min(1).max(100).default("x-api-key"),upstream_token_source:c.discriminatedUnion("type",[c.object({type:c.literal("none")}),c.object({type:c.literal("static_bearer"),token_secret_ref:c.string().min(1).max(200).describe("Reference into the secret store (e.g. CF Secret name); not the raw token")})]).default({type:"none"}),scope_mode:c.enum(["strict","advisory","off"]).default("strict")}),ug=c.object({max_in_flight:c.number().int().positive().max(1e4),dimensions:c.array(c.enum(["subscription","credential","capability"])).min(1).max(3).default(["subscription"]),capability:c.string().min(1).max(120).optional(),lease_ttl_seconds:c.number().int().positive().max(600).default(30),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(50),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(20),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:50,max_window_seconds:60,recovery_threshold:20,degraded_mode:"safe_mode_throttle"})}),lg=c.object({max_attempts:c.number().int().min(1).max(5).default(2),retry_on_status:c.array(c.number().int().min(400).max(599)).min(1).max(20).default([502,503,504]),backoff:c.object({initial_ms:c.number().int().positive().max(5e3).default(100),multiplier:c.number().positive().max(10).default(2),jitter:c.enum(["none","full","equal"]).default("equal"),total_budget_ms:c.number().int().positive().max(3e4).default(5e3)}).default({initial_ms:100,multiplier:2,jitter:"equal",total_budget_ms:5e3})}),dg=c.object({applies_to:c.enum(["request","response","both"]).default("request"),rewrites:c.array(c.object({source:c.string().min(1).max(200),target:c.string().min(1).max(200).nullable()})).min(1).max(20)});var hl=c.discriminatedUnion("type",[c.object({type:c.literal("rate_limit"),config:sg}),c.object({type:c.literal("auth"),config:cg}),c.object({type:c.literal("concurrency"),config:ug}),c.object({type:c.literal("retry"),config:lg}),c.object({type:c.literal("transform"),config:dg})]);var Fe=c.enum(["long","short","blocking"]).default("long"),mg=c.object({route_types:c.array(c.enum(["http"])).max(5).optional(),meters:c.array(c.string().min(1).max(64)).max(20).optional(),auth_modes:c.array(c.enum(["api_key","oauth2","anonymous"])).max(5).optional()});var vl=c.intersection(c.object({name:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Policy name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),compatible_with:mg.default({}),mutation_class:c.enum(["runtime","contractual"]).default("runtime"),cacheProfile:Fe}),hl);var $b=c.enum(["query","mutation"]),xb=c.enum(["none","metadata","full"]),kb=c.object({type:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/),from:c.enum(["header","path_param"]),name:c.string().min(1).max(120)}),Sb=c.object({resource:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),effect:c.enum(["create","delete"])}),pg=c.object({id:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/),title:c.string().min(1).max(160).optional(),kind:$b,actorType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),subject:kb.optional(),inputSchemaRef:c.string().min(1).max(240).optional(),audit:xb.default("metadata"),resource:Sb.optional()});var fg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]")}),gg=c.object({match:fg,meters:c.array(c.string().min(1).max(64)).min(1,"Use `unmetered: true` instead of an empty array (typo guard against silently-unmetered routes)").max(20).nullable().optional(),unmetered:c.boolean().optional(),action:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/).optional()}).superRefine((t,r)=>{t.unmetered===!0&&t.meters&&t.meters.length>0&&r.addIssue({code:"custom",message:"`unmetered: true` is mutually exclusive with `meters` \u2014 drop one",path:["unmetered"]})}),hg=c.object({override_origin:c.string().url("override_origin must be a valid URL").nullable().default(null)}),vg=c.object({rollout_key:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"rollout_key must be lowercase alphanumeric with hyphens/underscores").optional(),required_flags:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}),_l=c.object({feature:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/,"feature key must be lowercase alphanumeric with [_.:-]"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),cacheProfile:Fe,routes:c.array(gg).min(1).max(50),upstream:hg.default({override_origin:null}),policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),runtime:vg.default({}),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),plans:c.array(c.string().min(1).max(64)).max(20).default([]),actions:c.array(pg).max(100).optional()});var Ti=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"runtime key must be lowercase alphanumeric with hyphens/underscores"),yl=c.object({runtime_flags:c.array(Ti).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),_g=c.object({plans:c.array(c.string().min(1).max(64)).max(20).optional(),environments:c.array(c.string().min(1).max(64)).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),wb=c.object({missing_behavior:c.enum(["treat_as_zero_percent","treat_as_full_rollout","fail_closed"]).default("treat_as_zero_percent"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),yg=c.object({description:c.string().max(500).optional(),audience:_g,percent:c.number().int().min(0).max(100),assignment_seed:c.string().min(1).max(120).default("default"),depends_on:yl,defaults:wb.default({missing_behavior:"treat_as_zero_percent",stale_behavior:"use_last_known"})}),Ib=c.object({cacheProfile:Fe.default("blocking"),rollouts:c.record(Ti,yg).default({})}),zb=c.object({missing_behavior:c.enum(["disabled","enabled","fail_closed"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),bg=c.object({description:c.string().max(500).optional(),enabled:c.boolean(),audience:_g,depends_on:yl,defaults:zb.default({missing_behavior:"disabled",stale_behavior:"use_last_known"}),killswitch_target:c.object({kind:c.enum(["policy","route","rollout"]),name:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)}).optional()}),Ob=c.object({cacheProfile:Fe.default("blocking"),flags:c.record(Ti,bg).default({})}),Pb=c.object({missing_behavior:c.enum(["disabled","pending_review"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),$g=c.object({description:c.string().max(500).optional(),from_plan_key:c.string().min(1).max(64),to_plan_key:c.string().min(1).max(64),policy:c.enum(["GRANDFATHER","MIGRATE_AT_RENEWAL","MIGRATE_IMMEDIATELY","MIGRATE_BY_DATE","OPT_IN"]).default("MIGRATE_AT_RENEWAL"),proration_policy:c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),cutover_at:c.string().datetime().optional(),freeze_contract_mutations:c.boolean().default(!0),depends_on:yl,defaults:Pb.default({missing_behavior:"disabled",stale_behavior:"use_last_known"})}),Eb=c.object({cacheProfile:Fe.default("blocking"),migrations:c.record(Ti,$g).default({})});var bl=c.object({capability:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"capability name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),includes_features:c.array(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/)).max(20).default([]),includes_policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),includes_capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([])});var $l=1,Tb={meters:c.array(ne).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(re).max(40).default([])},kg=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...Tb,free:c.boolean().default(!1),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),limits:c.array(Le).max(20).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}).superRefine((t,r)=>{Ir(t.grants,r)}),xg={default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1},jb=c.object({artifactSchemaVersion:c.literal($l).default($l),product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),meters:c.array(Oi).max(10).default([]),billOn4xx:c.boolean().default(!1),frontend:Er.optional(),migrations:Tr.optional(),resources:jr,policies:Pi,customer_context:Ei.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default(xg)}).default({gracePeriodDays:3,subscriberChangePolicy:xg}),plans:c.array(kg).max(4).default([]),add_ons:zi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Pr.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()});var Sg=1;var Ab=c.object({irVersion:c.literal(Sg),sdkVersion:c.string().min(1).max(64),product:Qe,routes:c.array(_l).max(200).default([]),policies:c.array(vl).max(200).default([]),capabilities:c.array(bl).max(200).default([]),runtime:c.object({rollout:c.null().default(null),flags:c.null().default(null),migrations:c.null().default(null)}).default({rollout:null,flags:null,migrations:null})});var pe=["free","starter","pro","prepaid","metered"],Cb={kind:"free",label:"Free",description:"No recurring fee and no metered usage. Pure freemium tier.",pricing:{meters:[],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},Nb={kind:"starter",label:"Starter \u2014 $20/mo + $20 included",description:"$20/month subscription with $20 of usage credit each period. Stripe-style minimum-spend; overage billed at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:2e3,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e3}],trial_days:0}},Db={kind:"pro",label:"Pro \u2014 $100/mo + $200 included",description:"$100/month subscription with $200 of usage credit each period and a 14-day trial. Overage billed at $0.0005/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:500}],recurring_fee_cents:1e4,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e4}],trial_days:14}},Ub={kind:"prepaid",label:"Prepaid \u2014 $50 sign-up credit, then PAYG",description:"$50 one-time credit at signup. Once depleted the subscriber pays-as-they-go at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[{kind:"one_time",amount_cents:5e3}],trial_days:0}},Rb={kind:"metered",label:"Metered (pay-as-you-go)",description:"No subscription fee. Pure usage billing at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},wg=Object.freeze({free:Cb,starter:Nb,pro:Db,prepaid:Ub,metered:Rb});function ji(t){return wg[t]}function xl(){return pe.map(t=>wg[t])}var rO=c.object({recurring_fee_cents:c.number().int().nonnegative().optional(),grants:c.array(re).max(40).optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),meters:c.array(ne).optional(),notes:c.string().max(2e3).optional()});function Ig(t,r){if(typeof t!="number"&&typeof r!="number")return;let n=[];return typeof t=="number"&&t>0&&n.push({kind:"recurring",amount_cents:t}),typeof r=="number"&&r>0&&n.push({kind:"one_time",amount_cents:r}),n}function Zb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.plans)?r.plans:Array.isArray(t)?t:[]}function Lb(t){if(t.length===0)return"(no plans)";let r=["KEY","NAME","FREE","FEE\xA2","RECUR_GRANT\xA2","ONE_TIME\xA2","TRIAL_D","MAX_SPEND\xA2","STATUS"],n=s=>s===null?"\u2014":s.toLocaleString("en-US"),o=t.map(s=>[s.key,s.name,s.free?"Y":"N",n(s.recurring_fee_cents),n(s.recurring_credit_grant_cents),n(s.one_time_credit_grant_cents),n(s.trial_days),n(s.max_monthly_spend_cents),s.status]),e=r.map((s,u)=>Math.max(s.length,...o.map(l=>l[u]?.length??0))),i=s=>s.map((u,l)=>u.padEnd(e[l]??u.length)).join(" "),a=e.map(s=>"-".repeat(s)).join(" ");return[i(r),a,...o.map(i)].join(`
98
+ `)}function zg(t,r){let n=t.command("plan").description("Plan management: list, create, update, delete");n.command("list <productIdOrName>").description("List plans for a product").addHelpText("after",`
267
99
  Output:
268
100
  --format json \u2014 stable agent-friendly JSON envelope (default for non-TTY)
269
101
  --format table \u2014 human-readable summary table (default for TTY)
270
- `).action(async i=>{let n=e(),o=await Y(n,i),s=YT(await n.managementListPlans(o)).map(l=>({id:l.id,key:l.planKey??l.key??"",name:l.name??"",version:l.version??null,free:l.free??!1,recurring_fee_cents:l.recurring_fee_cents??0,recurring_credit_grant_cents:l.recurring_credit_grant_cents??0,one_time_credit_grant_cents:l.one_time_credit_grant_cents??0,trial_days:l.trial_days??0,max_monthly_spend_cents:l.max_monthly_spend_cents??null,status:l.status??(l.isActive===!1?"INACTIVE":"ACTIVE")})),c=t.opts();if(Rn(c.format)==="json"){console.log(ie({ok:!0,productId:o,count:s.length,plans:s}));return}Pe(`${s.length} plan(s) for product ${o}`),console.log(XT(s))}),r.command("create <productIdOrName>").description("Create a plan on a product (5-knob spec)").requiredOption("--key <key>","Stable plan key (e.g. starter, pro)").requiredOption("--name <name>","Human-friendly plan name").option("--free","Mark this as the free plan (requires hard-enforced limits)").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",i=>parseInt(i,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",i=>parseInt(i,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",i=>parseInt(i,10)).option("--trial-days <days>","Free-trial length in days",i=>parseInt(i,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",i=>parseInt(i,10)).option("--env <env>","Environment scope").action(async(i,n)=>{let o=e(),a=await Y(o,i),s={key:n.key,name:n.name};n.free&&(s.free=!0),typeof n.recurringFeeCents=="number"&&(s.recurring_fee_cents=n.recurringFeeCents),typeof n.recurringCreditGrantCents=="number"&&(s.recurring_credit_grant_cents=n.recurringCreditGrantCents),typeof n.oneTimeCreditGrantCents=="number"&&(s.one_time_credit_grant_cents=n.oneTimeCreditGrantCents),typeof n.trialDays=="number"&&(s.trial_days=n.trialDays),typeof n.maxMonthlySpendCents=="number"&&(s.max_monthly_spend_cents=n.maxMonthlySpendCents);let c=await o.createPlan(a,s,{env:n.env});Z(t,`Plan ${n.key} created`,{ok:!0,productId:a,plan:c})}),r.command("update <productIdOrName> <planId>").description("Update a plan (5-knob spec)").option("--name <name>","Human-friendly plan name").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",i=>parseInt(i,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",i=>parseInt(i,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",i=>parseInt(i,10)).option("--trial-days <days>","Free-trial length in days",i=>parseInt(i,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",i=>parseInt(i,10)).option("--env <env>","Environment scope").action(async(i,n,o)=>{let a=e(),s=await Y(a,i),c={};if(o.name!==void 0&&(c.name=o.name),typeof o.recurringFeeCents=="number"&&(c.recurring_fee_cents=o.recurringFeeCents),typeof o.recurringCreditGrantCents=="number"&&(c.recurring_credit_grant_cents=o.recurringCreditGrantCents),typeof o.oneTimeCreditGrantCents=="number"&&(c.one_time_credit_grant_cents=o.oneTimeCreditGrantCents),typeof o.trialDays=="number"&&(c.trial_days=o.trialDays),typeof o.maxMonthlySpendCents=="number"&&(c.max_monthly_spend_cents=o.maxMonthlySpendCents),Object.keys(c).length===0)throw new C("No fields to update. Pass --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, or --max-monthly-spend-cents.",void 0,{code:"PLAN_UPDATE_NO_FIELDS"});let u=await a.updatePlan(s,n,c,{env:o.env});Z(t,`Plan ${n} updated`,{ok:!0,productId:s,plan:u})}),r.command("delete <productIdOrName> <planId>").description("Delete a plan. Requires --yes.").option("--yes","Skip confirmation; required for delete").option("--env <env>","Environment scope").action(async(i,n,o)=>{if(!o.yes)throw new C("Pass --yes to confirm plan deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=e(),s=await Y(a,i);await a.deletePlan(s,n,{env:o.env}),Z(t,`Plan ${n} deleted`,{ok:!0,productId:s,deleted:n})})}async function Ip(t,e,r){let n=await t.listEnvironments(e),a=(Array.isArray(n.data)?n.data:Array.isArray(n.environments)?n.environments:[]).find(s=>s.name.toLowerCase()===r.toLowerCase()||s.id===r);if(!a)throw new C(`Environment "${r}" not found on product ${e}.`,void 0,{code:"ENV_NOT_FOUND"});return a.id}function G$(t,e){let r=t.command("persona").description("Mint and manage test-env personas (test API keys)");r.command("bootstrap <productIdOrName>").description("Issue a fresh fsk_test_ API key in a test environment").requiredOption("--env <env>","Environment name (must be test-strategy)").option("--plan <planKey>","Plan key to assign (e.g. starter)").option("--display-name <name>","Persona display name").action(async(i,n)=>{let o=e(),a=await Y(o,i),s=await Ip(o,a,n.env),c=await o.issuePersonaBootstrapKey(a,s,{planKey:n.plan,displayName:n.displayName});Z(t,"Persona bootstrapped",{ok:!0,productId:a,environmentId:s,result:c})}),r.command("list <productIdOrName>").description("List personas for a test environment").requiredOption("--env <env>","Environment name").action(async(i,n)=>{let o=e(),a=await Y(o,i),s=await Ip(o,a,n.env),c=await o.listPersonas(a,s);Z(t,"Personas",{ok:!0,productId:a,environmentId:s,result:c})}),r.command("revoke <productIdOrName> <personaId>").description("Revoke a persona's API key").requiredOption("--env <env>","Environment name").action(async(i,n,o)=>{let a=e(),s=await Y(a,i),c=await Ip(a,s,o.env),u=await a.revokePersona(s,c,n);Z(t,`Persona ${n} revoked`,{ok:!0,productId:s,environmentId:c,result:u})})}function H$(t,e){t.command("usage").description("Usage observability for a product").command("summary <productIdOrName>").description("Show usage summary for the last 30 days").action(async i=>{let n=e(),o=await Y(n,i),a=await n.managementGetUsage(o);Z(t,"Usage summary",{ok:!0,productId:o,summary:a})})}function Y$(t,e){let r=t.command("connect").description("Connection status for GitHub and Stripe (browser-only flows)");r.command("github").description("Print GitHub-connection status").action(async()=>{let n=await e().builderGitHubStatus();Z(t,"GitHub status",{ok:!0,status:n})}),r.command("stripe <productIdOrName>").description("Print Stripe Connect status for a product").action(async i=>{let n=e(),o=await Y(n,i),a=await n.productStripeStatus(o);Z(t,"Stripe status",{ok:!0,productId:o,status:a})})}function QT(t){if(!t||typeof t!="object")return[];let e=t;return Array.isArray(e.data)?e.data:Array.isArray(e.tokens)?e.tokens:Array.isArray(t)?t:[]}function X$(t,e){let r=t.command("token").description("Maker-token management (list, create, revoke)");r.command("list").description("List maker tokens in the current org").action(async()=>{let i=e(),n=QT(await i.managementListMakerTokens());Z(t,`${n.length} token(s)`,{ok:!0,count:n.length,tokens:n.map(o=>({id:o.id,name:o.name??null,scopes:o.scopes??[],productId:o.productId??null,lastFour:o.lastFour??null,createdAt:o.createdAt??null,revokedAt:o.revokedAt??null}))})}),r.command("create").description("Create a new maker token (returns the secret once)").requiredOption("--name <name>","Human-friendly token name").option("--scope <scope...>","Scope(s) to attach (e.g. products:update products:publish)").option("--product <productId>","Scope to a specific product").action(async i=>{let o=await e().managementCreateMakerToken({name:i.name,scopes:i.scope,productId:i.product});Z(t,"Token created",{ok:!0,result:o})}),r.command("revoke <tokenId>").description("Revoke a maker token. Requires --yes.").option("--yes","Skip confirmation; required for revoke").action(async(i,n)=>{if(!n.yes)throw new C("Pass --yes to confirm token revocation.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});await e().managementRevokeMakerToken(i),Z(t,`Token ${i} revoked`,{ok:!0,revoked:i})})}var tk=ii(uo(),1);import{existsSync as eA,writeFileSync as tA}from"node:fs";import{resolve as nA}from"node:path";import{createInterface as rA}from"node:readline/promises";import{stdin as Q$,stdout as ek}from"node:process";var Op="product.yaml";function iA(t){let e=new Set;for(let a of t.pricing.meters??[])typeof a.dimension=="string"&&e.add(a.dimension);let r=new Set,i={key:t.kind,name:t.label.split(" \u2014 ")[0]??t.label,description:t.description,...t.pricing};t.kind==="free"&&(i.free=!0,i.limits=[{dimension:"requests",window:{type:"named",name:"month"},capacity:1e3,enforcement:"enforce"}],r.add("requests"));let n={product:{name:"my-product",displayName:"My Product",baseUrl:"https://api.example.com"},gateway:{},plans:[i]},o=new Set([...e,...r]);return o.size>0&&(n.metering={meters:[...o].map(a=>({key:a,display:a.charAt(0).toUpperCase()+a.slice(1)}))}),n}function oA(t){if(!t)throw new C(`--template is required. Choose one of: ${De.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let e=t.toLowerCase();if(!De.includes(e))throw new C(`Unknown template "${t}". Choose one of: ${De.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});return e}function aA(t){return tk.default.stringify(iA(t))}function sA(){return dp().map((t,e)=>` ${e+1}) ${t.kind.padEnd(8)} \u2014 ${t.description}`).join(`
271
- `)}function cA(t){let e=t.pricing,r=(e.meters??[]).map(n=>`${n.dimension} @ ${n.price_per_unit_micros} micros/unit`).join(", "),i=[` recurring_fee_cents ${e.recurring_fee_cents}`,` recurring_credit_grant_cents ${e.recurring_credit_grant_cents}`,` one_time_credit_grant_cents ${e.one_time_credit_grant_cents}`,` trial_days ${e.trial_days}`];return r&&i.push(` meters ${r}`),i.join(`
272
- `)}async function uA(t){t.log("FartherShore init \u2014 pick a starter plan preset:"),t.log(""),t.log(sA()),t.log("");let e=(await t.ask("Preset (number or name, blank to cancel): ")).trim();if(!e)return null;let r=Number.parseInt(e,10),i=null;if(Number.isInteger(r)&&r>=1&&r<=De.length?i=De[r-1]??null:De.includes(e.toLowerCase())&&(i=e.toLowerCase()),!i)throw new C(`Unknown preset "${e}". Choose one of: ${De.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});t.log(""),t.log(`Preview \u2014 ${Wa(i).label}:`),t.log(cA(Wa(i))),t.log("");let n=(await t.ask(`Output path (default: ${Op}): `)).trim();return{kind:i,path:n||Op}}function nk(t){t.command("init").description("Scaffold a starter product.yaml from a named plan preset (free | starter | pro | prepaid | metered)").option("--template <kind>",`Plan preset to scaffold. One of: ${De.join(" | ")}`).option("--force","Overwrite product.yaml if it already exists").option("--path <path>","Output path for the generated product.yaml (default: ./product.yaml)").addHelpText("after",`
102
+ `).action(async o=>{let e=r(),i=await N(e,o),s=Zb(await e.managementListPlans(i)).map(d=>({id:d.id,key:d.planKey??d.key??"",name:d.name??"",version:d.version??null,free:d.free??!1,recurring_fee_cents:d.recurring_fee_cents??0,recurring_credit_grant_cents:zr({grants:d.grants}),one_time_credit_grant_cents:Ct({grants:d.grants}),trial_days:d.trial_days??0,max_monthly_spend_cents:d.max_monthly_spend_cents??null,status:d.status??(d.isActive===!1?"INACTIVE":"ACTIVE")})),u=t.opts();if(Pe(u.format)==="json"){console.log(ae({ok:!0,productId:i,count:s.length,plans:s}));return}ke(`${s.length} plan(s) for product ${i}`),console.log(Lb(s))}),n.command("create <productIdOrName>").description("Create a plan on a product (5-knob spec)").requiredOption("--key <key>","Stable plan key (e.g. starter, pro)").requiredOption("--name <name>","Human-friendly plan name").option("--free","Mark this as the free plan (requires hard-enforced limits)").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--rate-limit <maxPerWindow>","Burst-protection rate limit on requests (default: 600). Publishing requires every plan to carry one \u2014 pass --no-rate-limit only for drafts.",o=>parseInt(o,10)).option("--no-rate-limit","Create the plan without a burst rate limit").option("--rate-window <window>","Rate limit window: second | minute | hour (default: minute)").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={key:e.key,name:e.name};if(e.free&&(s.free=!0),e.rateLimit!==!1){let d=typeof e.rateLimit=="number"?e.rateLimit:600,p=e.rateWindow??"minute";if(!["second","minute","hour"].includes(p))throw new S(`Invalid --rate-window "${p}" \u2014 use second, minute, or hour.`,void 0,{code:"INVALID_RATE_WINDOW"});s.limits=[{dimension:"requests",window:{type:"named",name:p},capacity:d,enforcement:"enforce"}]}typeof e.recurringFeeCents=="number"&&(s.recurring_fee_cents=e.recurringFeeCents);let u=Ig(e.recurringCreditGrantCents,e.oneTimeCreditGrantCents);u&&(s.grants=u),typeof e.trialDays=="number"&&(s.trial_days=e.trialDays),typeof e.maxMonthlySpendCents=="number"&&(s.max_monthly_spend_cents=e.maxMonthlySpendCents);let l=await i.createPlan(a,s,{env:e.env});O(t,`Plan ${e.key} created`,{ok:!0,productId:a,plan:l})}),n.command("update <productIdOrName> <planId>").description("Update a plan (5-knob spec)").option("--name <name>","Human-friendly plan name").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--env <env>","Environment scope").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u={};i.name!==void 0&&(u.name=i.name),typeof i.recurringFeeCents=="number"&&(u.recurring_fee_cents=i.recurringFeeCents);let l=Ig(i.recurringCreditGrantCents,i.oneTimeCreditGrantCents);if(l&&(u.grants=l),typeof i.trialDays=="number"&&(u.trial_days=i.trialDays),typeof i.maxMonthlySpendCents=="number"&&(u.max_monthly_spend_cents=i.maxMonthlySpendCents),Object.keys(u).length===0)throw new S("No fields to update. Pass --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, or --max-monthly-spend-cents.",void 0,{code:"PLAN_UPDATE_NO_FIELDS"});let d=await a.updatePlan(s,e,u,{env:i.env});O(t,`Plan ${e} updated`,{ok:!0,productId:s,plan:d})}),n.command("delete <productIdOrName> <planId>").description("Delete a plan. Requires --yes.").option("--yes","Skip confirmation; required for delete").option("--env <env>","Environment scope").action(async(o,e,i)=>{if(!i.yes)throw new S("Pass --yes to confirm plan deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deletePlan(s,e,{env:i.env}),O(t,`Plan ${e} deleted`,{ok:!0,productId:s,deleted:e})})}async function kl(t,r,n){let e=await t.listEnvironments(r),a=(Array.isArray(e.data)?e.data:Array.isArray(e.environments)?e.environments:[]).find(s=>s.name.toLowerCase()===n.toLowerCase()||s.id===n);if(!a)throw new S(`Environment "${n}" not found on product ${r}.`,void 0,{code:"ENV_NOT_FOUND"});return a.id}function Og(t,r){let n=t.command("persona").description("Mint and manage test-env personas (test API keys)");n.command("bootstrap <productIdOrName>").description("Issue a fresh fsk_test_ API key in a test environment").requiredOption("--env <env>","Environment name (must be test-strategy)").option("--plan <planKey>","Plan key to assign (e.g. starter)").option("--display-name <name>","Persona display name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await kl(i,a,e.env),u=await i.issuePersonaBootstrapKey(a,s,{planKey:e.plan,displayName:e.displayName});O(t,"Persona bootstrapped",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("list <productIdOrName>").description("List personas for a test environment").requiredOption("--env <env>","Environment name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await kl(i,a,e.env),u=await i.listPersonas(a,s);O(t,"Personas",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("revoke <productIdOrName> <personaId>").description("Revoke a persona's API key").requiredOption("--env <env>","Environment name").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u=await kl(a,s,i.env),l=await a.revokePersona(s,u,e);O(t,`Persona ${e} revoked`,{ok:!0,productId:s,environmentId:u,result:l})})}function Pg(t,r){t.command("usage").description("Usage observability for a product").command("summary <productIdOrName>").description("Show usage summary for the last 30 days").action(async o=>{let e=r(),i=await N(e,o),a=await e.managementGetUsage(i);O(t,"Usage summary",{ok:!0,productId:i,summary:a})})}function Eg(t,r){let n=t.command("connect").description("Connection status for GitHub and Stripe (browser-only flows)");n.command("github").description("Print GitHub-connection status").action(async()=>{let e=await r().builderGitHubStatus();O(t,"GitHub status",{ok:!0,status:e})}),n.command("stripe <productIdOrName>").description("Print Stripe Connect status for a product").action(async o=>{let e=r(),i=await N(e,o),a=await e.productStripeStatus(i);O(t,"Stripe status",{ok:!0,productId:i,status:a})})}function Fb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.tokens)?r.tokens:Array.isArray(t)?t:[]}function Tg(t,r){let n=t.command("token").description("Maker-token management (list, create, revoke)");n.command("list").description("List maker tokens in the current org").action(async()=>{let o=r(),e=Fb(await o.managementListMakerTokens());O(t,`${e.length} token(s)`,{ok:!0,count:e.length,tokens:e.map(i=>({id:i.id,name:i.name??null,scopes:i.scopes??[],productId:i.productId??null,lastFour:i.lastFour??null,createdAt:i.createdAt??null,revokedAt:i.revokedAt??null}))})}),n.command("create").description("Create a new maker token (returns the secret once)").requiredOption("--name <name>","Human-friendly token name").option("--scope <scope...>","Scope(s) to attach (e.g. products:update products:publish)").option("--product <productId>","Scope to a specific product").action(async o=>{let i=await r().managementCreateMakerToken({name:o.name,scopes:o.scope,productId:o.product});O(t,"Token created",{ok:!0,result:i})}),n.command("revoke <tokenId>").description("Revoke a maker token. Requires --yes.").option("--yes","Skip confirmation; required for revoke").action(async(o,e)=>{if(!e.yes)throw new S("Pass --yes to confirm token revocation.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});await r().managementRevokeMakerToken(o),O(t,`Token ${o} revoked`,{ok:!0,revoked:o})})}import{existsSync as Mb,mkdirSync as Vb,writeFileSync as Bb}from"node:fs";import{dirname as Hb,resolve as Gb}from"node:path";import{createInterface as Wb}from"node:readline/promises";import{stdin as jg,stdout as Ag}from"node:process";var Sl="product/product.config.ts";function Jb(t){let r=new Set;for(let a of t.pricing.meters??[])typeof a.dimension=="string"&&r.add(a.dimension);let n=new Set,o={key:t.kind,name:t.label.split(" \u2014 ")[0]??t.label,description:t.description,...t.pricing};t.kind==="free"&&(o.free=!0,o.limits=[{dimension:"requests",window:{type:"named",name:"month"},capacity:1e3,enforcement:"enforce"}],n.add("requests"));let e={product:{name:"my-product",displayName:"My Product",baseUrl:"https://api.example.com"},gateway:{},plans:[o]},i=new Set([...r,...n]);return i.size>0&&(e.metering={meters:[...i].map(a=>({key:a,display:a.charAt(0).toUpperCase()+a.slice(1)}))}),e}function qb(t){if(!t)throw new S(`--template is required. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let r=t.toLowerCase();if(!pe.includes(r))throw new S(`Unknown template "${t}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});return r}function Kb(t){let r=Jb(t),n={};r.gateway&&Object.keys(r.gateway).length>0&&(n.gateway=r.gateway),r.metering&&(n.metering=r.metering);let o=Object.keys(n).length>0?`
103
+
104
+ business.raw.productPatch(${Ar(n)});`:"",e=r.plans.map(i=>`
105
+
106
+ business.raw.plan(${Ar(i)});`).join("");return`import { fs } from "@farthershore/product";
107
+
108
+ const business = fs.business(${Ar(r.product.name)}, {
109
+ baseUrl: ${Ar(r.product.baseUrl)},
110
+ displayName: ${Ar(r.product.displayName)},
111
+ });
112
+ ${o}${e}
113
+
114
+ export default business;
115
+ `}function Yb(){return xl().map((t,r)=>` ${r+1}) ${t.kind.padEnd(8)} \u2014 ${t.description}`).join(`
116
+ `)}function Xb(t){let r=t.pricing,n=(r.meters??[]).map(e=>`${e.dimension} @ ${e.price_per_unit_micros} micros/unit`).join(", "),o=[` recurring_fee_cents ${r.recurring_fee_cents}`,` recurring credit (grant) ${zr(r)}`,` one-time credit (grant) ${Ct(r)}`,` trial_days ${r.trial_days}`];return n&&o.push(` meters ${n}`),o.join(`
117
+ `)}async function Qb(t){t.log("FartherShore init \u2014 pick a starter plan preset:"),t.log(""),t.log(Yb()),t.log("");let r=(await t.ask("Preset (number or name, blank to cancel): ")).trim();if(!r)return null;let n=Number.parseInt(r,10),o=null;if(Number.isInteger(n)&&n>=1&&n<=pe.length?o=pe[n-1]??null:pe.includes(r.toLowerCase())&&(o=r.toLowerCase()),!o)throw new S(`Unknown preset "${r}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});t.log(""),t.log(`Preview \u2014 ${ji(o).label}:`),t.log(Xb(ji(o))),t.log("");let e=(await t.ask(`Output path (default: ${Sl}): `)).trim();return{kind:o,path:e||Sl}}function Cg(t){t.command("init").description("Scaffold a starter product/product.config.ts from a named plan preset (free | starter | pro | prepaid | metered)").option("--template <kind>",`Plan preset to scaffold. One of: ${pe.join(" | ")}`).option("--force","Overwrite product/product.config.ts if it already exists").option("--path <path>","Output path for the generated product config (default: ./product/product.config.ts)").addHelpText("after",`
273
118
  Examples:
274
119
  farthershore init # interactive (TTY only)
275
120
  farthershore init --template free
@@ -277,18 +122,23 @@ Examples:
277
122
  farthershore init --template metered --format json
278
123
 
279
124
  Available templates:
280
- ${dp().map(e=>` ${e.kind.padEnd(8)} ${e.description}`).join(`
125
+ ${xl().map(r=>` ${r.kind.padEnd(8)} ${r.description}`).join(`
281
126
  `)}
282
- `).action(async e=>{let r,i=e.path;if(e.template)r=oA(e.template);else if(Q$.isTTY&&ek.isTTY){let u=rA({input:Q$,output:ek});try{let l=await uA({ask:d=>u.question(d),log:d=>{console.log(d)}});if(!l){Un("Cancelled.");return}r=l.kind,i=i??l.path}finally{u.close()}}else throw new C(`--template is required when stdin is not a TTY. Choose one of: ${De.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let n=Wa(r),o=nA(i??Op);if(eA(o)&&!e.force)throw new C(`${o} already exists. Pass --force to overwrite.`,void 0,{code:"INIT_FILE_EXISTS"});let a=aA(n);tA(o,a,"utf-8");let s=t.opts();if(Rn(s.format)==="json"){Z(t,"",{ok:!0,template:r,path:o,preset:{kind:n.kind,label:n.label},content:a});return}Pe(`Scaffolded ${o} from preset "${n.label}".`),Un("Next: edit product.name, product.baseUrl, then run `farthershore validate`.")})}function we(t,e){let r;return e==null||e===""?r=U.dim("(unset)"):typeof e=="object"?r=JSON.stringify(e):typeof e=="string"||typeof e=="number"||typeof e=="boolean"?r=String(e):r=JSON.stringify(e),` ${U.dim(t.padEnd(20))}${r}`}function lA(t){let{decision:e,runtimeContext:r,createdAt:i,retryAfterSeconds:n}=t,o=[];if(o.push(U.bold(`Decision ${e.decisionId}`)),o.push(""),o.push(` ${U.red("[DENY]")} ${U.bold(e.code)}`),o.push(` Reason: ${e.reason}`),n!==void 0&&o.push(` Retry-After: ${n}s`),o.push(` Recorded: ${i}`),o.push(""),o.push(U.bold("RuntimeContext snapshot")),o.push(we("surface",r.surface)),o.push(we("credential.type",r.credential?.type)),o.push(we("credential.id",r.credential?.id)),o.push(we("builderOrgId",r.builderOrgId)),o.push(we("productId",r.productId)),o.push(we("capability",r.capability)),o.push(we("scopes",r.scopes&&r.scopes.length>0?r.scopes.join(", "):r.scopes?"(none)":void 0)),o.push(we("caller",r.caller?.id)),o.push(we("actor",r.actor?.id)),o.push(we("billingSubject",r.billingSubject?`${r.billingSubject.kind}:${r.billingSubject.id}`:void 0)),o.push(we("trust.issuer",r.trust?.issuer)),o.push(we("trust.delegationHops",r.trust?.delegationChain?String(r.trust.delegationChain.length):void 0)),e.details&&Object.keys(e.details).length>0){o.push(""),o.push(U.bold("Decision details"));for(let[a,s]of Object.entries(e.details))o.push(we(a,s))}return o.join(`
283
- `)}function dA(t,e){if(t instanceof C){if(t.status===404)throw new C(`Decision not found: ${e}`,404,{code:"DECISION_NOT_FOUND",details:{decisionId:e}});if(t.status===401)throw new C("Authentication failed \u2014 token is missing, expired, or lacks audit:read scope.",401,{code:"AUTH_UNAUTHORIZED"})}throw t}function rk(t,e){t.command("explain-denial <decisionId>").description("Look up a denial decision by id and print the deny code + RuntimeContext snapshot").option("--json","Emit the raw DenialEvent JSON instead of the pretty-printed view").action(async(r,i)=>{let n=e(),o;try{o=await n.explainDenial(r)}catch(a){dA(a,r)}if(i.json){console.log(ie(o));return}console.log(lA(o))})}var me={id:32,description:50,scopes:28,surfaces:22,credentialTypes:36};function Be(t,e){return t.length<=e?t.padEnd(e):e<=1?t.slice(0,e):`${t.slice(0,e-1)}\u2026`}function Pp(t){return t.length===0?"(none)":t.join(", ")}function fA(t){let e=[Be("ID",me.id),Be("Description",me.description),Be("Required Scopes",me.scopes),Be("Allowed Surfaces",me.surfaces),Be("Allowed Credential Types",me.credentialTypes)],r=U.dim(e.join(" ")),i=U.dim(["-".repeat(me.id),"-".repeat(me.description),"-".repeat(me.scopes),"-".repeat(me.surfaces),"-".repeat(me.credentialTypes)].join(" ")),n=t.map(o=>[Be(o.id,me.id),Be(o.description,me.description),Be(Pp(o.requiredScopes),me.scopes),Be(Pp(o.allowedSurfaces),me.surfaces),Be(Pp(o.allowedCredentialTypes),me.credentialTypes)].join(" "));return[r,i,...n].join(`
284
- `)}function mA(t,e){if(!e)return[...t];let r=e.toLowerCase();return t.filter(i=>i.id.toLowerCase().includes(r))}function ik(t,e){t.command("capabilities").description("Inspect the platform capability registry").command("list").description("List registered capabilities as a table (id, description, scopes, surfaces, credential types)").option("--json","Emit the raw `{ capabilities: Capability[] }` JSON payload instead of the table").option("--filter <substring>","Show only capabilities whose id contains the substring (case-insensitive)").action(async i=>{let o=await e().listCapabilities(),a=mA(o.capabilities,i.filter);if(i.json){console.log(ie({capabilities:a}));return}console.log(fA(a)),console.log(U.dim(`
285
- ${a.length} capabilities`))})}var pA=["ProductApplyWorkflow","RollbackWorkflow","StripeSyncWorkflow","WebhookDispatchWorkflow","DLQReplayWorkflow","NoOpWorkflow"];function gA(){let t=process.env.FARTHERSHORE_API_URL;if(!t)throw new C("FARTHERSHORE_API_URL is not set. Point it at the core base URL (e.g. https://core.farthershore.com) before running `farthershore workflows`.",void 0,{code:"ADMIN_API_URL_MISSING"});return t.replace(/\/+$/,"")}function hA(){let t=process.env.FARTHERSHORE_ADMIN_SECRET;if(!t)throw new C("FARTHERSHORE_ADMIN_SECRET is not set. This command authenticates against core's /internal/admin/workflow/* proxy with the same shared secret fs-admin uses.",void 0,{code:"ADMIN_SECRET_MISSING"});return t}async function ok(t){let e=gA(),r=hA(),i=await fetch(`${e}${t}`,{method:"GET",headers:{"content-type":"application/json","x-admin-service-secret":r,"x-admin-actor-id":"farthershore-cli"}});if(!i.ok){let o=(await i.json().catch(()=>null))?.error;throw new C(o?.message??i.statusText,i.status,{code:o?.code,details:o?.details})}if(i.status!==204)return i.json()}function Tp(t){if(t==null)return"\u2014";if(t<1e3)return`${t}ms`;let e=t/1e3;if(e<60)return`${e.toFixed(1)}s`;let r=e/60;return r<60?`${r.toFixed(1)}m`:`${(r/60).toFixed(1)}h`}function ak(t,e=new Date){let r=new Date(t.startedAt).getTime(),i=t.completedAt?new Date(t.completedAt).getTime():t.failedAt?new Date(t.failedAt).getTime():e.getTime();return Math.max(0,i-r)}function es(t){switch(t){case"COMPLETED":case"SUCCEEDED":case"CONVERGED":return U.green;case"RUNNING":case"PENDING":case"PAUSED":case"RETRYING":case"WAITING_FOR_APPROVAL":return U.yellow;case"FAILED":case"DIVERGED":case"STALLED":case"REQUIRES_HUMAN_INTERVENTION":case"TIMEOUT":return U.red;case"ROLLED_BACK":case"CANCELLED":case"COMPENSATED":return U.magenta;default:return e=>e}}function R(t,e){return t.length<=e?t.padEnd(e):e<=1?t.slice(0,e):`${t.slice(0,e-1)}\u2026`}var X={id:30,type:24,product:18,status:16,phase:26,started:24,duration:10};function vA(t,e=new Date){let r=U.dim([R("ID",X.id),R("TYPE",X.type),R("PRODUCT",X.product),R("STATUS",X.status),R("PHASE",X.phase),R("STARTED",X.started),R("DURATION",X.duration)].join(" ")),i=U.dim(["-".repeat(X.id),"-".repeat(X.type),"-".repeat(X.product),"-".repeat(X.status),"-".repeat(X.phase),"-".repeat(X.started),"-".repeat(X.duration)].join(" ")),n=t.map(o=>{let a=Tp(ak(o,e)),s=es(o.status)(R(o.status,X.status));return[R(o.id,X.id),R(o.workflowType,X.type),R(o.productId??"\u2014",X.product),s,R(o.currentPhase??"\u2014",X.phase),R(o.startedAt,X.started),R(a,X.duration)].join(" ")});return[r,i,...n].join(`
286
- `)}function Re(t,e){let r;return e==null||e===""?r=U.dim("(unset)"):typeof e=="object"?r=JSON.stringify(e):typeof e=="string"||typeof e=="number"||typeof e=="boolean"?r=String(e):r=JSON.stringify(e),` ${U.dim(t.padEnd(20))}${r}`}var Ke={stepName:28,phase:26,status:14,attempt:8,duration:10},Zn={eventType:28,occurredAt:24,payload:60},Mn={surface:24,status:14,delta:60};function yA(t){if(t.length===0)return U.dim(" (no steps recorded)");let e=U.dim([R("STEP",Ke.stepName),R("PHASE",Ke.phase),R("STATUS",Ke.status),R("ATTEMPT",Ke.attempt),R("DURATION",Ke.duration)].join(" ")),r=t.map(i=>[R(i.stepName,Ke.stepName),R(i.phase,Ke.phase),es(i.status)(R(i.status,Ke.status)),R(String(i.attempt),Ke.attempt),R(Tp(i.durationMs),Ke.duration)].join(" "));return[e,...r].join(`
287
- `)}function _A(t){return Object.keys(t).length===0?"(empty)":JSON.stringify(t)}function bA(t){if(t.length===0)return U.dim(" (no events recorded)");let e=U.dim([R("EVENT",Zn.eventType),R("OCCURRED AT",Zn.occurredAt),R("PAYLOAD",Zn.payload)].join(" ")),r=t.map(i=>[R(i.eventType,Zn.eventType),R(i.occurredAt,Zn.occurredAt),R(_A(i.payload),Zn.payload)].join(" "));return[e,...r].join(`
288
- `)}function $A(t){if(t.length===0)return U.dim(" (no convergence state recorded)");let e=U.dim([R("SURFACE",Mn.surface),R("STATUS",Mn.status),R("DELTA",Mn.delta)].join(" ")),r=t.map(i=>[R(i.surface,Mn.surface),es(i.status)(R(i.status,Mn.status)),R(i.deltaDescription??"\u2014",Mn.delta)].join(" "));return[e,...r].join(`
289
- `)}function kA(t){let{execution:e,steps:r,events:i,convergence:n}=t,o=[];return o.push(U.bold(`Workflow ${e.id}`)),o.push(Re("type",e.workflowType)),o.push(Re("status",es(e.status)(e.status))),o.push(Re("currentPhase",e.currentPhase)),o.push(Re("startedAt",e.startedAt)),o.push(Re("completedAt",e.completedAt)),o.push(Re("triggeredBy",e.triggeredBy)),o.push(Re("correlationId",e.correlationId)),o.push(Re("productId",e.productId)),o.push(Re("duration",Tp(ak(e)))),o.push(""),o.push(U.bold("Steps")),o.push(yA(r)),o.push(""),o.push(U.bold("Events")),o.push(bA(i)),o.push(""),o.push(U.bold("Convergence")),o.push($A(n)),e.errorReason&&(o.push(""),o.push(U.bold(U.red("Error"))),o.push(Re("reason",e.errorReason)),o.push(Re("classification",e.errorClassification))),o.join(`
290
- `)}var Ep=["RUNNING","COMPLETED","FAILED","ROLLED_BACK","STALLED","REQUIRES_HUMAN_INTERVENTION","WAITING_FOR_APPROVAL","CANCELLED"];function wA(t){if(!t)return 50;let e=Number.parseInt(t,10);if(Number.isNaN(e)||e<=0)throw new C(`--limit must be a positive integer (got "${t}")`,void 0,{code:"INVALID_LIMIT"});return e}function xA(t){let e=new URLSearchParams;if(t.status){if(!Ep.includes(t.status))throw new C(`--status must be one of: ${Ep.join(", ")} (got "${t.status}")`,void 0,{code:"INVALID_STATUS"});e.set("status",t.status)}t.type&&e.set("workflowType",t.type),t.product&&e.set("productId",t.product),e.set("limit",String(wA(t.limit)));let r=e.toString();return r?`?${r}`:""}function sk(t){let e=t.command("workflows").description("Inspect durable lifecycle workflow executions (list / show / replay)");e.command("ls").description("List workflow executions as a table").option("--status <status>",`Filter by status (one of: ${Ep.join(", ")})`).option("--type <type>",`Filter by workflow type (e.g. ${pA.join(", ")})`).option("--product <productId>","Filter by productId").option("--limit <N>","Maximum number of rows to return (default 50)").option("--json","Emit raw JSON for piping instead of the pretty table").action(async r=>{let i=xA(r),n=await ok(`/internal/admin/workflow/executions${i}`);if(r.json){console.log(ie(n));return}console.log(vA(n.items)),console.log(U.dim(`
291
- ${n.items.length} executions${n.nextCursor?" (more available \u2014 pass --limit to see more)":""}`))}),e.command("show <workflowExecutionId>").description("Show a single workflow execution: header, steps, events, convergence panel").option("--json","Emit raw JSON instead of the pretty-printed view").action(async(r,i)=>{let n=await ok(`/internal/admin/workflow/executions/${encodeURIComponent(r)}`);if(i.json){console.log(ie(n));return}console.log(kA(n))}),e.command("replay <workflowExecutionId>").description("Replay a workflow execution (or a single step). STUB in Wave 5 \u2014 operator-action endpoints land in a follow-up.").option("--step <stepName>","Replay only the named step rather than the full execution").action((r,i)=>{_e("Replay is not yet implemented; use core's /workflow/<id>/rollback for now. Tracked in FAR-<followup>."),process.exitCode=1})}var SA={UNAUTHORIZED:"Token is invalid or revoked. Run `farthershore auth login` to update it.",FORBIDDEN:"Your token doesn't have access to this resource. Check the org / product scope.",INVALID_ACCESS_KEY:"Token format is wrong. Generate a new one at https://farthershore.com/settings/tokens.",MAKER_TOKEN_REVOKED:"This maker token was revoked. Mint a new one in the product settings.",MAKER_TOKEN_NO_PRODUCT:"Maker token is not bound to a product. Re-create it from the product page.",AUTH_NO_TOKEN:"Pass --token <mk_...> or set FARTHERSHORE_TOKEN, or run interactively in a TTY.",AUTH_INVALID_TOKEN:"Token format is malformed. Maker tokens start with `mk_` and are 30+ characters.",DESTRUCTIVE_OP_REQUIRES_YES:"Destructive ops (delete) require an explicit `--yes` to proceed. This is intentional safety.",PRODUCT_UPDATE_NO_FIELDS:"Pass at least one field flag (--display-name, --base-url, --description).",PLAN_UPDATE_NO_FIELDS:"Pass at least one of --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, --max-monthly-spend-cents.",ENV_NOT_FOUND:"Environment doesn't exist. Use `farthershore env list <product>` to see available envs, or create one with `farthershore env create`.",STRIPE_NOT_CONFIGURED:"Stripe isn't connected on this product. Connect it in the dashboard before running billing operations.",STRIPE_BALANCE_OUTSTANDING:"Customer has an outstanding balance. Resolve the invoice in Stripe before retrying.",CHECKOUT_SESSION_FAILED:"Stripe rejected the checkout request. Check that the plan exists and Stripe credentials are valid.",PRODUCT_NOT_FOUND:"Check the product slug. Run `farthershore` (no args) for a list of products you can see.",PRODUCT_REPO_NOT_LINKED:"Link a GitHub repo to this product before running `apply`.",PRODUCT_YAML_NOT_FOUND:"No product.yaml on the target branch. Push a config file before running `apply`.",YAML_PARSE_ERROR:"product.yaml is not valid YAML. Run `farthershore validate` locally to see the parse error.",GITHUB_NOT_CONNECTED:"Connect GitHub on the org page before running `init` (it provisions the repo).",BRANCH_NO_MATCHING_ENV:"The current branch isn't mapped to an environment. Add a branch rule in product settings or pass --branch explicitly.",PLAN_NOT_FOUND:"Plan key doesn't exist on this product. Check `plans:` in product.yaml.",PLAN_HAS_ACTIVE_SUBSCRIPTIONS:"Plan has active subscribers and can't be deleted. Migrate them to another plan first.",PLAN_SLUG_CONFLICT:"Another plan already uses this key. Pick a unique key in product.yaml.",SLUG_CONFLICT:"This product slug is taken. Pick a different name.",SLUG_BLOCKED:"This slug is reserved or blocked. Pick a different name.",SLUG_RESERVED:"This slug is reserved by Farther Shore. Pick a different name.",SLUG_INVALID_FORMAT:"Slug must be lowercase letters, digits, and hyphens (no leading/trailing hyphen).",DECISION_NOT_FOUND:"No DenialEvent recorded for that decisionId. Verify the id from the original deny response or audit log.",AUTH_UNAUTHORIZED:"Token is missing, expired, or lacks the audit:read scope required to read denial events.",RATE_LIMIT_EXCEEDED:"You've hit the rate limit. Wait a moment and retry.",VALIDATION_ERROR:"Request is malformed. The `details` field has the field-level errors.",CONFLICT:"The resource is in a state that conflicts with the request. Inspect `details` to learn more."};function ck(t){if(t)return SA[t]}var TA=PA(OA(import.meta.url)),AA=JSON.parse(await IA(EA(TA,"..","package.json"),"utf-8")),oe=new Bp;oe.name("farthershore").description("FartherShore CLI \u2014 agent-friendly commands for product configuration").version(AA.version).option("--token <token>","Override auth token").option("--api-url <url>","Override API base URL").option("--env <environment>","Environment scope. Use production/prod/main for production").option("--format <format>","Output format. Use --format json for machine-readable agent output");function Ee(){let t=Xp(),e=oe.opts(),r=tg(e.token),i=e.apiUrl??process.env.FARTHERSHORE_API_URL??t.apiUrl;return Kp({apiUrl:i,token:r})}B$(oe,Ee);K$(oe,Ee);J$(oe,Ee);W$(oe,Ee);G$(oe,Ee);H$(oe,Ee);Y$(oe,Ee);X$(oe,Ee);k$(oe,Ee);V$(oe,Ee);nk(oe);rk(oe,Ee);ik(oe,Ee);sk(oe);oe.exitOverride();function NA(t){let e=t.code?` [${t.code}]`:"";process.stderr.write(`Error${e}: ${t.message}
292
- `);let r=ck(t.code);r&&process.stderr.write(`Hint: ${r}
293
- `)}async function zA(){try{await oe.parseAsync(process.argv)}catch(t){if(t instanceof C)NA(t),process.exitCode=1;else if(t instanceof Error){let e=t.code;e==="commander.helpDisplayed"||e==="commander.version"||t.message!=="(outputHelp)"&&(process.stderr.write(`Error: ${t.message}
294
- `),process.exitCode=1)}}}zA();
127
+ `).action(async r=>{let n,o=r.path;if(r.template)n=qb(r.template);else if(jg.isTTY&&Ag.isTTY){let l=Wb({input:jg,output:Ag});try{let d=await Qb({ask:p=>l.question(p),log:p=>{console.log(p)}});if(!d){Oe("Cancelled.");return}n=d.kind,o=o??d.path}finally{l.close()}}else throw new S(`--template is required when stdin is not a TTY. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let e=ji(n),i=Gb(o??Sl);if(Mb(i)&&!r.force)throw new S(`${i} already exists. Pass --force to overwrite.`,void 0,{code:"INIT_FILE_EXISTS"});let a=Kb(e);Vb(Hb(i),{recursive:!0}),Bb(i,a,"utf-8");let s=t.opts();if(Pe(s.format)==="json"){O(t,"",{ok:!0,template:n,path:i,preset:{kind:e.kind,label:e.label},content:a});return}ke(`Scaffolded ${i} from preset "${e.label}".`),Oe("Next: edit product/product.config.ts, then run `farthershore build --validate`.")})}function Ar(t){return JSON.stringify(t,null,2)}var e$="x-fs-surface",t$="cli",r$=["ProductApplyWorkflow","RollbackWorkflow","StripeSyncWorkflow","WebhookDispatchWorkflow","DLQReplayWorkflow","NoOpWorkflow"];function n$(){let t=process.env.FARTHERSHORE_API_URL;if(!t)throw new S("FARTHERSHORE_API_URL is not set. Point it at the core base URL (e.g. https://core.farthershore.com) before running `farthershore workflows`.",void 0,{code:"ADMIN_API_URL_MISSING"});return t.replace(/\/+$/,"")}function i$(){let t=process.env.FARTHERSHORE_ADMIN_SECRET;if(!t)throw new S("FARTHERSHORE_ADMIN_SECRET is not set. This command authenticates against core's /internal/admin/workflow/* proxy with the same shared secret fs-admin uses.",void 0,{code:"ADMIN_SECRET_MISSING"});return t}async function Ng(t){let r=n$(),n=i$(),o=await fetch(`${r}${t}`,{method:"GET",headers:{"content-type":"application/json","x-admin-service-secret":n,"x-admin-actor-id":"farthershore-cli",[e$]:t$}});if(!o.ok){let i=(await o.json().catch(()=>null))?.error;throw new S(i?.message??o.statusText,o.status,{code:i?.code,details:i?.details})}if(o.status!==204)return o.json()}function Il(t){if(t==null)return"\u2014";if(t<1e3)return`${t}ms`;let r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;let n=r/60;return n<60?`${n.toFixed(1)}m`:`${(n/60).toFixed(1)}h`}function Dg(t,r=new Date){let n=new Date(t.startedAt).getTime(),o=t.completedAt?new Date(t.completedAt).getTime():t.failedAt?new Date(t.failedAt).getTime():r.getTime();return Math.max(0,o-n)}function Ai(t){switch(t){case"COMPLETED":case"SUCCEEDED":case"CONVERGED":return A.green;case"RUNNING":case"PENDING":case"PAUSED":case"RETRYING":case"WAITING_FOR_APPROVAL":return A.yellow;case"FAILED":case"DIVERGED":case"STALLED":case"REQUIRES_HUMAN_INTERVENTION":case"TIMEOUT":return A.red;case"ROLLED_BACK":case"CANCELLED":case"COMPENSATED":return A.magenta;default:return r=>r}}function z(t,r){return t.length<=r?t.padEnd(r):r<=1?t.slice(0,r):`${t.slice(0,r-1)}\u2026`}var L={id:30,type:24,product:18,status:16,phase:26,started:24,duration:10};function o$(t,r=new Date){let n=A.dim([z("ID",L.id),z("TYPE",L.type),z("PRODUCT",L.product),z("STATUS",L.status),z("PHASE",L.phase),z("STARTED",L.started),z("DURATION",L.duration)].join(" ")),o=A.dim(["-".repeat(L.id),"-".repeat(L.type),"-".repeat(L.product),"-".repeat(L.status),"-".repeat(L.phase),"-".repeat(L.started),"-".repeat(L.duration)].join(" ")),e=t.map(i=>{let a=Il(Dg(i,r)),s=Ai(i.status)(z(i.status,L.status));return[z(i.id,L.id),z(i.workflowType,L.type),z(i.productId??"\u2014",L.product),s,z(i.currentPhase??"\u2014",L.phase),z(i.startedAt,L.started),z(a,L.duration)].join(" ")});return[n,o,...e].join(`
128
+ `)}function fe(t,r){let n;return r==null||r===""?n=A.dim("(unset)"):typeof r=="object"?n=JSON.stringify(r):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?n=String(r):n=JSON.stringify(r),` ${A.dim(t.padEnd(20))}${n}`}var be={stepName:28,phase:26,status:14,attempt:8,duration:10},Dt={eventType:28,occurredAt:24,payload:60},Ut={surface:24,status:14,delta:60};function a$(t){if(t.length===0)return A.dim(" (no steps recorded)");let r=A.dim([z("STEP",be.stepName),z("PHASE",be.phase),z("STATUS",be.status),z("ATTEMPT",be.attempt),z("DURATION",be.duration)].join(" ")),n=t.map(o=>[z(o.stepName,be.stepName),z(o.phase,be.phase),Ai(o.status)(z(o.status,be.status)),z(String(o.attempt),be.attempt),z(Il(o.durationMs),be.duration)].join(" "));return[r,...n].join(`
129
+ `)}function s$(t){return Object.keys(t).length===0?"(empty)":JSON.stringify(t)}function c$(t){if(t.length===0)return A.dim(" (no events recorded)");let r=A.dim([z("EVENT",Dt.eventType),z("OCCURRED AT",Dt.occurredAt),z("PAYLOAD",Dt.payload)].join(" ")),n=t.map(o=>[z(o.eventType,Dt.eventType),z(o.occurredAt,Dt.occurredAt),z(s$(o.payload),Dt.payload)].join(" "));return[r,...n].join(`
130
+ `)}function u$(t){if(t.length===0)return A.dim(" (no convergence state recorded)");let r=A.dim([z("SURFACE",Ut.surface),z("STATUS",Ut.status),z("DELTA",Ut.delta)].join(" ")),n=t.map(o=>[z(o.surface,Ut.surface),Ai(o.status)(z(o.status,Ut.status)),z(o.deltaDescription??"\u2014",Ut.delta)].join(" "));return[r,...n].join(`
131
+ `)}function l$(t){let{execution:r,steps:n,events:o,convergence:e}=t,i=[];return i.push(A.bold(`Workflow ${r.id}`)),i.push(fe("type",r.workflowType)),i.push(fe("status",Ai(r.status)(r.status))),i.push(fe("currentPhase",r.currentPhase)),i.push(fe("startedAt",r.startedAt)),i.push(fe("completedAt",r.completedAt)),i.push(fe("triggeredBy",r.triggeredBy)),i.push(fe("correlationId",r.correlationId)),i.push(fe("productId",r.productId)),i.push(fe("duration",Il(Dg(r)))),i.push(""),i.push(A.bold("Steps")),i.push(a$(n)),i.push(""),i.push(A.bold("Events")),i.push(c$(o)),i.push(""),i.push(A.bold("Convergence")),i.push(u$(e)),r.errorReason&&(i.push(""),i.push(A.bold(A.red("Error"))),i.push(fe("reason",r.errorReason)),i.push(fe("classification",r.errorClassification))),i.join(`
132
+ `)}var wl=["RUNNING","COMPLETED","FAILED","ROLLED_BACK","STALLED","REQUIRES_HUMAN_INTERVENTION","WAITING_FOR_APPROVAL","CANCELLED"];function d$(t){if(!t)return 50;let r=Number.parseInt(t,10);if(Number.isNaN(r)||r<=0)throw new S(`--limit must be a positive integer (got "${t}")`,void 0,{code:"INVALID_LIMIT"});return r}function m$(t){let r=new URLSearchParams;if(t.status){if(!wl.includes(t.status))throw new S(`--status must be one of: ${wl.join(", ")} (got "${t.status}")`,void 0,{code:"INVALID_STATUS"});r.set("status",t.status)}t.type&&r.set("workflowType",t.type),t.product&&r.set("productId",t.product),r.set("limit",String(d$(t.limit)));let n=r.toString();return n?`?${n}`:""}function Ug(t){let r=t.command("workflows").description("Inspect durable lifecycle workflow executions (list / show / replay)");r.command("ls").description("List workflow executions as a table").option("--status <status>",`Filter by status (one of: ${wl.join(", ")})`).option("--type <type>",`Filter by workflow type (e.g. ${r$.join(", ")})`).option("--product <productId>","Filter by productId").option("--limit <N>","Maximum number of rows to return (default 50)").option("--json","Emit raw JSON for piping instead of the pretty table").action(async n=>{let o=m$(n),e=await Ng(`/internal/admin/workflow/executions${o}`);if(n.json){console.log(ae(e));return}console.log(o$(e.items)),console.log(A.dim(`
133
+ ${e.items.length} executions${e.nextCursor?" (more available \u2014 pass --limit to see more)":""}`))}),r.command("show <workflowExecutionId>").description("Show a single workflow execution: header, steps, events, convergence panel").option("--json","Emit raw JSON instead of the pretty-printed view").action(async(n,o)=>{let e=await Ng(`/internal/admin/workflow/executions/${encodeURIComponent(n)}`);if(o.json){console.log(ae(e));return}console.log(l$(e))}),r.command("replay <workflowExecutionId>").description("Replay a workflow execution (or a single step). STUB in Wave 5 \u2014 operator-action endpoints land in a follow-up.").option("--step <stepName>","Replay only the named step rather than the full execution").action((n,o)=>{Ve("Replay is not yet implemented; use core's /workflow/<id>/rollback for now. Tracked in FAR-<followup>."),process.exitCode=1})}import{spawn as p$}from"node:child_process";import{existsSync as Lg}from"node:fs";import{readFile as f$}from"node:fs/promises";var g$="product/product.config.ts",h$="manifest-ir.json",Rg="./product/node_modules/.bin/farthershore-manifest-build",v$="./node_modules/.bin/farthershore-manifest-build";function _$(t=Lg){return t(Rg)?Rg:v$}async function y$(t,r=p$,n=Lg){let o=_$(n),e=["--entry",t.entry,"--out",t.out],i=r(o,e,{stdio:["ignore","pipe","pipe"]}),a="",s="",u=!1;return i.stdout?.setEncoding("utf8"),i.stderr?.setEncoding("utf8"),i.stdout?.on("data",l=>{a+=l}),i.stderr?.on("data",l=>{s+=l}),new Promise(l=>{let d=(p,g)=>{u||(u=!0,l({command:o,args:e,exitCode:p,signal:g,stdout:a,stderr:s}))};i.on("error",p=>{s+=`${p.message}
134
+ `,d(1,null)}),i.on("close",(p,g)=>{d(p??(g?1:0),g)})})}async function b$(t){let r=await f$(t,"utf8"),n=JSON.parse(r);if(!E$(n)||!("ir"in n))throw new Error(`${t} is not a Manifest IR envelope with an ir field`);return{ir:n.ir,irHash:typeof n.irHash=="string"?n.irHash:void 0}}function Fg(t,r,n={}){t.command("build").description("Build product/product.config.ts into a Manifest IR envelope").option("--entry <path>","Product-as-code entry file (default: product/product.config.ts)").option("--out <path>","Output path for the Manifest IR envelope (default: manifest-ir.json)").option("--validate <product>","After the local build succeeds, dry-run compile this product id or name").option("--env <environment>","Environment name or production").addHelpText("after",`
135
+ Examples:
136
+ farthershore build
137
+ farthershore build --entry product/product.config.ts --out manifest-ir.json
138
+ farthershore build --validate weather-api --format json
139
+ farthershore build --validate weather-api --env preview --format json
140
+ `).action(async o=>{let e=t.opts(),i=Pe(e.format),a=o.entry??g$,s=o.out??h$,u=n.runLocalManifestBuild??y$,l=n.readManifestEnvelope??b$,d=await u({entry:a,out:s});if($$(d,i),d.exitCode!==0){x$(d,a,s,i);return}let p;try{p=await l(s)}catch(_){k$(_,a,s,i);return}let g=null;if(o.validate)try{g=await w$({client:r(),product:o.validate,ir:p.ir,envName:o.env??e.env})}catch(_){S$(_,a,s,p,i);return}I$({entry:a,out:s,envelope:p,validation:g,format:i})})}function $$(t,r){r!=="json"&&(t.stdout&&process.stdout.write(t.stdout),t.stderr&&process.stderr.write(t.stderr))}function x$(t,r,n,o){if(process.exitCode=t.exitCode||1,o==="json"){console.log(ae({ok:!1,success:!1,phase:"local_build",entry:r,out:n,command:t.command,args:t.args,exitCode:t.exitCode,signal:t.signal,stdout:t.stdout,stderr:t.stderr,nextActions:["Fix product/product.config.ts and run farthershore build again"]}));return}Ve(`Manifest build failed with exit code ${t.exitCode||1}`)}function k$(t,r,n,o){let e=t instanceof Error?t.message:"Manifest IR output could not be read";if(process.exitCode=1,o==="json"){console.log(ae({ok:!1,success:!1,phase:"read_manifest_ir",entry:r,out:n,errors:[{message:e}],nextActions:["Check the manifest build output path and run farthershore build again"]}));return}Ve(e)}function S$(t,r,n,o,e){let i=t instanceof Error?t.message:"Manifest compile dry-run failed";if(process.exitCode=1,e==="json"){console.log(ae({ok:!1,success:!1,phase:"remote_validation",entry:r,out:n,irHash:o.irHash??null,errors:[{message:i}],nextActions:["Fix product/product.config.ts or credentials and run farthershore build --validate again"]}));return}Ve(i)}async function w$(t){let r=await N(t.client,t.product),n=dd(t.envName),o=md(n);return t.client.compileProductManifest(r,{ir:t.ir,env:o})}function I$(t){let r=t.validation?.success!==!1;if(r||(process.exitCode=1),t.format==="json"){console.log(ae({ok:r,success:r,entry:t.entry,out:t.out,irHash:t.envelope.irHash??t.validation?.irHash??null,validation:t.validation,errors:t.validation?.errors??[],warnings:t.validation?.warnings??[],lifecyclePlan:t.validation?.lifecyclePlan??null,nextActions:z$(r,t.validation)}));return}if(ke(`Manifest IR written to ${t.out}`),!t.validation){Oe("Run farthershore build --validate <product> to dry-run compile against core.");return}if(r){ke("Manifest compile dry-run passed");for(let n of t.validation.warnings??[])oo(Zg(n));O$(t.validation.lifecyclePlan),P$(t.validation.compiledPlans);return}Ve(`Manifest compile dry-run failed
141
+ `);for(let n of t.validation.errors??[])console.log(` - ${Zg(n)}`)}function z$(t,r){return r?t?["Commit product/product.config.ts and the generated Manifest IR if desired"]:["Fix product/product.config.ts and run farthershore build --validate again"]:["Run farthershore build --validate <product> to dry-run compile"]}function Zg(t){let r=t.code?`[${t.code}] `:"",n=t.path?`${t.path}: `:"";return`${r}${n}${t.message}`}function O$(t){if(t){if(t.requiresSubscriptionMigration){oo(`Subscription migration required (${t.actions.length} domain action(s)). See lifecyclePlan in --format json output for details.`);return}t.actions.length>0&&Oe(`Lifecycle plan: ${t.actions.length} domain action(s); no subscription migration required.`)}}function P$(t){if(t?.length){Oe("Compiled plan active subscriptions:");for(let r of t){let n=r.planKey??"(unknown)",o=r.status?` ${r.status}`:"",e=r.activeSubscriptionCount??0;Oe(` - ${n}:${o} ${e}`)}}}function E$(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}var T$={UNAUTHORIZED:"Token is invalid or revoked. Run `farthershore auth login` to update it.",FORBIDDEN:"Your token doesn't have access to this resource. Check the org / product scope.",INVALID_ACCESS_KEY:"Token format is wrong. Generate a new one at https://farthershore.com/settings/tokens.",MAKER_TOKEN_REVOKED:"This maker token was revoked. Mint a new one in the product settings.",MAKER_TOKEN_NO_PRODUCT:"Maker token is not bound to a product. Re-create it from the product page.",AUTH_NO_TOKEN:"Pass --token <mk_...> or set FARTHERSHORE_TOKEN, or run interactively in a TTY.",AUTH_INVALID_TOKEN:"Token format is malformed. Maker tokens start with `mk_` and are 30+ characters.",DESTRUCTIVE_OP_REQUIRES_YES:"Destructive ops (delete) require an explicit `--yes` to proceed. This is intentional safety.",PRODUCT_UPDATE_NO_FIELDS:"Pass at least one field flag (--display-name, --base-url, --description).",PLAN_UPDATE_NO_FIELDS:"Pass at least one of --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, --max-monthly-spend-cents.",ENV_NOT_FOUND:"Environment doesn't exist. Use `farthershore env list <product>` to see available envs, or create one with `farthershore env create`.",STRIPE_NOT_CONFIGURED:"Stripe isn't connected on this product. Connect it in the dashboard before running billing operations.",STRIPE_NOT_CONNECTED:"Publishing requires a connected Stripe account. Connect one on the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_NOT_VERIFIED:"Your Stripe account isn't fully verified yet. Finish Stripe onboarding, then re-run `farthershore product publish`.",BILLING_TAX_NOT_ENROLLED:"Stripe Tax isn't enrolled for this account. Enable it from the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_BALANCE_OUTSTANDING:"Customer has an outstanding balance. Resolve the invoice in Stripe before retrying.",CHECKOUT_SESSION_FAILED:"Stripe rejected the checkout request. Check that the plan exists and Stripe credentials are valid.",PRODUCT_NOT_FOUND:"Check the product slug. Run `farthershore` (no args) for a list of products you can see.",PRODUCT_REPO_NOT_LINKED:"Link a GitHub repo to this product before publishing or validating product manifests.",YAML_PARSE_ERROR:"product manifest is not valid. Run `farthershore build --validate <product>` to surface validation details.",GITHUB_NOT_CONNECTED:"Connect GitHub on the org page before running `init` (it provisions the repo).",BRANCH_NO_MATCHING_ENV:"The current branch isn't mapped to an environment. Add a branch rule in product settings or pass --branch explicitly.",PLAN_NOT_FOUND:"Plan key doesn't exist on this product. Check the `plans` block in your local product manifest.",PLAN_HAS_ACTIVE_SUBSCRIPTIONS:"Plan has active subscribers and can't be deleted. Migrate them to another plan first.",PLAN_SLUG_CONFLICT:"Another plan already uses this key. Pick a unique plan key in your manifest.",SLUG_CONFLICT:"This product slug is taken. Pick a different name.",SLUG_BLOCKED:"This slug is reserved or blocked. Pick a different name.",SLUG_RESERVED:"This slug is reserved by Farther Shore. Pick a different name.",SLUG_INVALID_FORMAT:"Slug must be lowercase letters, digits, and hyphens (no leading/trailing hyphen).",DECISION_NOT_FOUND:"No DenialEvent recorded for that decisionId. Verify the id from the original deny response or audit log.",AUTH_UNAUTHORIZED:"Token is missing, expired, or lacks the audit:read scope required to read denial events.",RATE_LIMIT_EXCEEDED:"You've hit the rate limit. Wait a moment and retry.",VALIDATION_ERROR:"Request is malformed. The `details` field has the field-level errors.",CONFLICT:"The resource is in a state that conflicts with the request. Inspect `details` to learn more."};function Mg(t){if(t)return T$[t]}var D$=C$(A$(import.meta.url)),U$=JSON.parse(await j$(N$(D$,"..","package.json"),"utf-8")),q=new Ml;q.name("farthershore").description("FartherShore CLI \u2014 agent-friendly commands for product configuration").version(U$.version).option("--token <token>","Override auth token").option("--api-url <url>","Override API base URL").option("--env <environment>","Environment scope. Use production/prod/main for production").option("--format <format>","Output format. Use --format json for machine-readable agent output");function ze(){let t=ql(),r=q.opts(),n=Xl(r.token),o=r.apiUrl??process.env.FARTHERSHORE_API_URL??t.apiUrl;return Vl({apiUrl:o,token:n})}pd(q,ze);hd(q,ze);vd(q,ze);zg(q,ze);Og(q,ze);Pg(q,ze);Eg(q,ze);Tg(q,ze);Cg(q);Fg(q,ze);Ug(q);q.exitOverride();function R$(t){let r=t.code?` [${t.code}]`:"";process.stderr.write(`Error${r}: ${t.message}
142
+ `);let n=Mg(t.code);n&&process.stderr.write(`Hint: ${n}
143
+ `)}async function Z$(){try{await q.parseAsync(process.argv)}catch(t){if(t instanceof S)R$(t),process.exitCode=1;else if(t instanceof Error){let r=t.code;r==="commander.helpDisplayed"||r==="commander.version"||t.message!=="(outputHelp)"&&(process.stderr.write(`Error: ${t.message}
144
+ `),process.exitCode=1)}}}Z$();